(window.webpackJsonp_kbnSharedDeps_=window.webpackJsonp_kbnSharedDeps_||[]).push([[1],Array(283).concat([function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0}),e.NotNull=function(t,e,r){},e.Nullable=function(t,e,r){},e.Override=function(t,e,r){},e.SuppressWarnings=function(t){return(t,e,r)=>{}}},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0});const n=r(295);var i;(i=e.Token||(e.Token={})).INVALID_TYPE=0,i.EPSILON=-2,i.MIN_USER_TOKEN_TYPE=1,i.EOF=n.IntStream.EOF,i.DEFAULT_CHANNEL=0,i.HIDDEN_CHANNEL=1,i.MIN_USER_CHANNEL_VALUE=2},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0}),function(t){const e=0;function r(t=e){return t}function n(t,e){null==e?e=0:"string"==typeof e?e=function(t){let e=t.length;if(0===e)return 0;let r=0;for(let n=0;n>>0)-r+t.charCodeAt(n),r|=0;return r}(e):"object"==typeof e&&(e=e.hashCode());let r=e;return r=Math.imul(r,3432918353),r=r<<15|r>>>17,r=Math.imul(r,461845907),t=(t^=r)<<13|t>>>19,4294967295&Math.imul(t,5)+3864292196}function i(t,e){return t^=4*e,t^=t>>>16,t=Math.imul(t,2246822507),t^=t>>>13,(t=Math.imul(t,3266489909))^t>>>16}t.initialize=r,t.update=n,t.finish=i,t.hashCode=function(t,o=e){let s=r(o),l=0;for(let e of t)s=n(s,e),l++;return s=i(s,l),s}}(e.MurmurHash||(e.MurmurHash={}))},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.ATNStateType||(e.ATNStateType={}))[n.INVALID_TYPE=0]="INVALID_TYPE",n[n.BASIC=1]="BASIC",n[n.RULE_START=2]="RULE_START",n[n.BLOCK_START=3]="BLOCK_START",n[n.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",n[n.STAR_BLOCK_START=5]="STAR_BLOCK_START",n[n.TOKEN_START=6]="TOKEN_START",n[n.RULE_STOP=7]="RULE_STOP",n[n.BLOCK_END=8]="BLOCK_END",n[n.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",n[n.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",n[n.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",n[n.LOOP_END=12]="LOOP_END"},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283);class o{constructor(t,e){this.a=t,this.b=e}static get INVALID(){return o._INVALID}static of(t,e){return t!==e||t<0||t>1e3?new o(t,e):(null==o.cache[t]&&(o.cache[t]=new o(t,t)),o.cache[t])}get length(){return this.b=t.a}startsAfter(t){return this.a>t.a}startsAfterDisjoint(t){return this.a>t.b}startsAfterNonDisjoint(t){return this.a>t.a&&this.a<=t.b}disjoint(t){return this.startsBeforeDisjoint(t)||this.startsAfterDisjoint(t)}adjacent(t){return this.a===t.b+1||this.b===t.a-1}properlyContains(t){return t.a>=this.a&&t.b<=this.b}union(t){return o.of(Math.min(this.a,t.a),Math.max(this.b,t.b))}intersection(t){return o.of(Math.max(this.a,t.a),Math.min(this.b,t.b))}differenceNotProperlyContained(t){let e;return t.startsBeforeNonDisjoint(this)?e=o.of(Math.max(this.a,t.b+1),this.b):t.startsAfterNonDisjoint(this)&&(e=o.of(this.a,t.a-1)),e}toString(){return this.a+".."+this.b}}o._INVALID=new o(-1,-2),o.cache=new Array(1001),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"toString",null),e.Interval=o},function(t,e,r){"use strict";(function(e){var n=r(373); /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i=0;u--)if(c[u]!==h[u])return!1;for(u=c.length-1;u>=0;u--)if(!x(t[l=c[u]],e[l],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function N(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function E(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function T(t,e,r,n){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&y(i,r,"Missing expected exception"+n);var o="string"==typeof n,l=!t&&i&&!r;if((!t&&s.isError(i)&&o&&E(i,r)||l)&&y(i,r,"Got unwanted exception"+n),t&&i&&r&&!E(i,r)||!t&&i)throw i}p.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=_(g(this.actual),128)+" "+this.operator+" "+_(g(this.expected),128),this.generatedMessage=!0);var e=t.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=f(e),o=n.indexOf("\n"+i);if(o>=0){var s=n.indexOf("\n",o+1);n=n.substring(s+1)}this.stack=n}}},s.inherits(p.AssertionError,Error),p.fail=y,p.ok=m,p.equal=function(t,e,r){t!=e&&y(t,e,r,"==",p.equal)},p.notEqual=function(t,e,r){t==e&&y(t,e,r,"!=",p.notEqual)},p.deepEqual=function(t,e,r){x(t,e,!1)||y(t,e,r,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(t,e,r){x(t,e,!0)||y(t,e,r,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(t,e,r){x(t,e,!1)&&y(t,e,r,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=function t(e,r,n){x(e,r,!0)&&y(e,r,n,"notDeepStrictEqual",t)},p.strictEqual=function(t,e,r){t!==e&&y(t,e,r,"===",p.strictEqual)},p.notStrictEqual=function(t,e,r){t===e&&y(t,e,r,"!==",p.notStrictEqual)},p.throws=function(t,e,r){T(!0,t,e,r)},p.doesNotThrow=function(t,e,r){T(!1,t,e,r)},p.ifError=function(t){if(t)throw t},p.strict=n((function t(e,r){e||y(e,!0,r,"==",t)}),p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var S=Object.keys||function(t){var e=[];for(var r in t)l.call(t,r)&&e.push(r);return e}}).call(this,r(196))},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(306),s=r(298),l=r(330),a=r(285),u=r(283),c=r(332),h=r(288);class p{constructor(t){this.cachedHashCode=t}static calculateEmptyHashCode(){let t=a.MurmurHash.initialize(1);return t=a.MurmurHash.finish(t,0),t}static calculateSingleHashCode(t,e){let r=a.MurmurHash.initialize(1);return r=a.MurmurHash.update(r,t),r=a.MurmurHash.update(r,e),r=a.MurmurHash.finish(r,2),r}static calculateHashCode(t,e){let r=a.MurmurHash.initialize(1);for(let e of t)r=a.MurmurHash.update(r,e);for(let t of e)r=a.MurmurHash.update(r,t);return r=a.MurmurHash.finish(r,2*t.length),r}static fromRuleContext(t,e,r=!0){if(e.isEmpty)return r?p.EMPTY_FULL:p.EMPTY_LOCAL;let n;n=e._parent?p.fromRuleContext(t,e._parent,r):r?p.EMPTY_FULL:p.EMPTY_LOCAL;let i=t.states[e.invokingState].transition(0);return n.getChild(i.followState.stateNumber)}static addEmptyContext(t){return t.addEmptyContext()}static removeEmptyContext(t){return t.removeEmptyContext()}static join(t,e,r=c.PredictionContextCache.UNCACHED){if(t===e)return t;if(t.isEmpty)return p.isEmptyLocal(t)?t:p.addEmptyContext(e);if(e.isEmpty)return p.isEmptyLocal(e)?e:p.addEmptyContext(t);let n=t.size,i=e.size;if(1===n&&1===i&&t.getReturnState(0)===e.getReturnState(0)){let n=r.join(t.getParent(0),e.getParent(0));return n===t.getParent(0)?t:n===e.getParent(0)?e:n.getChild(t.getReturnState(0))}let o=0,s=new Array(n+i),l=new Array(s.length),a=0,u=0,d=!0,g=!0;for(;a0){let t=1;for(;1<>>0>o&(1<>>0)-1,s=s&&e>=l.size-1,e>=l.size)continue t;o+=t}if(t){u.length>1&&(u+=" ");let e=t.atn.states[a];u+=t.ruleNames[e.ruleIndex]}else l.getReturnState(e)!==p.EMPTY_FULL_STATE_KEY&&(l.isEmpty||(u.length>1&&(u+=" "),u+=l.getReturnState(e)));a=l.getReturnState(e),l=l.getParent(e)}if(u+="]",n.push(u),s)break}return n}}n([u.Override],p.prototype,"hashCode",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],p,"join",null),n([i(0,u.NotNull),i(1,u.NotNull),i(2,u.NotNull)],p,"getCachedContext",null),e.PredictionContext=p;class d extends p{constructor(t){super(p.calculateEmptyHashCode()),this.fullContext=t}get isFullContext(){return this.fullContext}addEmptyContext(){return this}removeEmptyContext(){throw new Error("Cannot remove the empty context from itself.")}getParent(t){throw new Error("index out of bounds")}getReturnState(t){throw new Error("index out of bounds")}findReturnState(t){return-1}get size(){return 0}appendSingleContext(t,e){return e.getChild(this,t)}appendContext(t,e){return t}get isEmpty(){return!0}get hasEmpty(){return!0}equals(t){return this===t}toStrings(t,e,r){return["[]"]}}n([u.Override],d.prototype,"addEmptyContext",null),n([u.Override],d.prototype,"removeEmptyContext",null),n([u.Override],d.prototype,"getParent",null),n([u.Override],d.prototype,"getReturnState",null),n([u.Override],d.prototype,"findReturnState",null),n([u.Override],d.prototype,"size",null),n([u.Override],d.prototype,"appendSingleContext",null),n([u.Override],d.prototype,"appendContext",null),n([u.Override],d.prototype,"isEmpty",null),n([u.Override],d.prototype,"hasEmpty",null),n([u.Override],d.prototype,"equals",null),n([u.Override],d.prototype,"toStrings",null);let f=class t extends p{constructor(t,e,r){super(r||p.calculateHashCode(t,e)),h(t.length===e.length),h(e.length>1||e[0]!==p.EMPTY_FULL_STATE_KEY,"Should be using PredictionContext.EMPTY instead."),this.parents=t,this.returnStates=e}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}findReturnState(t){return l.Arrays.binarySearch(this.returnStates,t)}get size(){return this.returnStates.length}get isEmpty(){return!1}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===p.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let e=this.parents.slice(0),r=this.returnStates.slice(0);return e.push(p.EMPTY_FULL),r.push(p.EMPTY_FULL_STATE_KEY),new t(e,r)}removeEmptyContext(){if(!this.hasEmpty)return this;if(2===this.returnStates.length)return new _(this.parents[0],this.returnStates[0]);{let e=this.parents.slice(0,this.parents.length-1),r=this.returnStates.slice(0,this.returnStates.length-1);return new t(e,r)}}appendContext(e,r){return t.appendContextImpl(this,e,new p.IdentityHashMap)}static appendContextImpl(e,r,n){if(r.isEmpty){if(p.isEmptyLocal(r)){if(e.hasEmpty)return p.EMPTY_LOCAL;throw new Error("what to do here?")}return e}if(1!==r.size)throw new Error("Appending a tree suffix is not yet supported.");let i=n.get(e);if(!i){if(e.isEmpty)i=r;else{let o=e.size;e.hasEmpty&&o--;let s=new Array(o),l=new Array(o);for(let t=0;t1),i=new t(s,l)),e.hasEmpty&&(i=p.join(i,r))}n.put(e,i)}return i}equals(e){if(this===e)return!0;if(!(e instanceof t))return!1;if(this.hashCode()!==e.hashCode())return!1;let r=e;return this.equalsImpl(r,new s.Array2DHashSet)}equalsImpl(t,e){let r=[],n=[];for(r.push(this),n.push(t);;){let t=r.pop(),i=n.pop();if(!t||!i)break;let o=new c.PredictionContextCache.IdentityCommutativePredictionContextOperands(t,i);if(!e.add(o))continue;let s=o.x.size;if(0!==s){if(s!==o.y.size)return!1;for(let t=0;t=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(338),o=r(287),s=r(283),l=r(359),a=r(307);class u extends l.RuleContext{constructor(t,e){null==e?super():super(t,e)}static emptyContext(){return u.EMPTY}copyFrom(t){if(this._parent=t._parent,this.invokingState=t.invokingState,this._start=t._start,this._stop=t._stop,t.children){this.children=[];for(let e of t.children)e instanceof i.ErrorNode&&this.addChild(e)}}enterRule(t){}exitRule(t){}addAnyChild(t){return this.children?this.children.push(t):this.children=[t],t}addChild(t){return t instanceof a.TerminalNode?(t.setParent(this),void this.addAnyChild(t)):t instanceof l.RuleContext?void this.addAnyChild(t):(t=new a.TerminalNode(t),this.addAnyChild(t),t.setParent(this),t)}addErrorNode(t){if(t instanceof i.ErrorNode){const e=t;return e.setParent(this),this.addAnyChild(e)}{const e=t;let r=new i.ErrorNode(e);return this.addAnyChild(r),r.setParent(this),r}}removeLastChild(){this.children&&this.children.pop()}get parent(){let t=super.parent;if(void 0===t||t instanceof u)return t;throw new TypeError("Invalid parent type for ParserRuleContext")}getChild(t,e){if(!this.children||t<0||t>=this.children.length)throw new RangeError("index parameter must be between >= 0 and <= number of children.");if(null==e)return this.children[t];let r=this.tryGetChild(t,e);if(void 0===r)throw new Error("The specified node does not exist");return r}tryGetChild(t,e){if(!this.children||t<0||t>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof e&&(r++,r===t))return n}getToken(t,e){let r=this.tryGetToken(t,e);if(void 0===r)throw new Error("The specified token does not exist");return r}tryGetToken(t,e){if(!this.children||e<0||e>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof a.TerminalNode&&n.symbol.type===t&&(r++,r===e))return n}getTokens(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof a.TerminalNode&&r.symbol.type===t&&e.push(r);return e}get ruleContext(){return this}getRuleContext(t,e){return this.getChild(t,e)}tryGetRuleContext(t,e){return this.tryGetChild(t,e)}getRuleContexts(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof t&&e.push(r);return e}get childCount(){return this.children?this.children.length:0}get sourceInterval(){return this._start?!this._stop||this._stop.tokenIndex=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283);class o{hashCode(t){return null==t?0:t.hashCode()}equals(t,e){return null==t?null==e:t.equals(e)}}o.INSTANCE=new o,n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),e.ObjectEqualityComparator=o},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0}),e.escapeWhitespace=function(t,e){return e?t.replace(/ /,"·"):t.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")},e.join=function(t,e){let r="",n=!0;for(let i of t)n?n=!1:r+=e,r+=i;return r},e.equals=function(t,e){return t===e||void 0!==t&&void 0!==e&&t.equals(e)},e.toMap=function(t){let e=new Map;for(let r=0;r=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(306),s=r(349),l=r(302),a=r(352),u=r(376),c=r(283),h=r(291),p=r(289),d=r(284),f=r(288);let _=class{constructor(t,e){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new o.Array2DHashMap(h.ObjectEqualityComparator.INSTANCE),this.decisionToDFA=[],this.modeToDFA=[],this.LL1Table=new Map,this.grammarType=t,this.maxTokenType=e}clearDFA(){this.decisionToDFA=new Array(this.decisionToState.length);for(let t=0;t0)return this.decisionToState[t]}get numberOfDecisions(){return this.decisionToState.length}getExpectedTokens(t,e){if(t<0||t>=this.states.length)throw new RangeError("Invalid state number.");let r=e,n=this.states[t],i=this.nextTokens(n);if(!i.contains(d.Token.EPSILON))return i;let o=new l.IntervalSet;for(o.addAll(i),o.remove(d.Token.EPSILON);null!=r&&r.invokingState>=0&&i.contains(d.Token.EPSILON);){let t=this.states[r.invokingState].transition(0);i=this.nextTokens(t.followState),o.addAll(i),o.remove(d.Token.EPSILON),r=r._parent}return i.contains(d.Token.EPSILON)&&o.add(d.Token.EOF),o}};n([c.NotNull],_.prototype,"states",void 0),n([c.NotNull],_.prototype,"decisionToState",void 0),n([c.NotNull],_.prototype,"modeNameToStartState",void 0),n([c.NotNull],_.prototype,"modeToStartState",void 0),n([c.NotNull],_.prototype,"decisionToDFA",void 0),n([c.NotNull],_.prototype,"modeToDFA",void 0),n([c.NotNull],_.prototype,"nextTokens",null),n([i(0,c.NotNull)],_.prototype,"removeState",null),n([i(0,c.NotNull),i(1,c.NotNull)],_.prototype,"defineMode",null),n([i(0,c.NotNull)],_.prototype,"defineDecisionState",null),n([c.NotNull],_.prototype,"getExpectedTokens",null),_=n([i(0,c.NotNull)],_),e.ATN=_,function(t){t.INVALID_ALT_NUMBER=0}(_=e.ATN||(e.ATN={})),e.ATN=_},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283);class o{constructor(){this.stateNumber=o.INVALID_STATE_NUMBER,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.optimizedTransitions=this.transitions}getStateNumber(){return this.stateNumber}get nonStopStateNumber(){return this.getStateNumber()}hashCode(){return this.stateNumber}equals(t){return t instanceof o&&this.stateNumber===t.stateNumber}get isNonGreedyExitState(){return!1}toString(){return String(this.stateNumber)}getTransitions(){return this.transitions.slice(0)}get numberOfTransitions(){return this.transitions.length}addTransition(t,e){if(0===this.transitions.length)this.epsilonOnlyTransitions=t.isEpsilon;else if(this.epsilonOnlyTransitions!==t.isEpsilon)throw this.epsilonOnlyTransitions=!1,new Error("ATN state "+this.stateNumber+" has both epsilon and non-epsilon transitions.");this.transitions.splice(void 0!==e?e:this.transitions.length,0,t)}transition(t){return this.transitions[t]}setTransition(t,e){this.transitions[t]=e}removeTransition(t){return this.transitions.splice(t,1)[0]}get onlyHasEpsilonTransitions(){return this.epsilonOnlyTransitions}setRuleIndex(t){this.ruleIndex=t}get isOptimized(){return this.optimizedTransitions!==this.transitions}get numberOfOptimizedTransitions(){return this.optimizedTransitions.length}getOptimizedTransition(t){return this.optimizedTransitions[t]}addOptimizedTransition(t){this.isOptimized||(this.optimizedTransitions=new Array),this.optimizedTransitions.push(t)}setOptimizedTransition(t,e){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions[t]=e}removeOptimizedTransition(t){if(!this.isOptimized)throw new Error("This ATNState is not optimized.");this.optimizedTransitions.splice(t,1)}}n([i.Override],o.prototype,"hashCode",null),n([i.Override],o.prototype,"equals",null),n([i.Override],o.prototype,"toString",null),e.ATNState=o,function(t){t.INVALID_STATE_NUMBER=-1}(o=e.ATNState||(e.ATNState={}))},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.IntStream||(e.IntStream={})).EOF=-1,n.UNKNOWN_SOURCE_NAME=""},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(t,e,r,n){super(n),this._offendingState=-1,this._recognizer=t,this.input=e,this.ctx=r,t&&(this._offendingState=t.state)}get offendingState(){return this._offendingState}setOffendingState(t){this._offendingState=t}get expectedTokens(){if(this._recognizer)return this._recognizer.atn.getExpectedTokens(this._offendingState,this.ctx)}get context(){return this.ctx}get inputStream(){return this.input}getOffendingToken(t){if(!t||t===this._recognizer)return this.offendingToken}setOffendingToken(t,e){t===this._recognizer&&(this.offendingToken=e)}get recognizer(){return this._recognizer}}e.RecognitionException=n},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(283);let s=class{constructor(t){if(null==t)throw new Error("target cannot be null.");this.target=t}get isEpsilon(){return!1}get label(){}};s.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],n([o.NotNull],s.prototype,"target",void 0),s=n([i(0,o.NotNull)],s),e.Transition=s},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(288),s=r(374),l=r(283),a=r(285);class u{constructor(t,e=16){if(this.n=0,this.threshold=Math.floor(12),t instanceof u){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let t=0;tthis.threshold&&this.expand(),this.getOrAddImpl(t)}getOrAddImpl(t){let e=this.getBucket(t),r=this.buckets[e];if(!r)return r=[t],this.buckets[e]=r,this.n++,t;for(let e of r)if(this.comparator.equals(e,t))return e;return r.push(t),this.n++,t}get(t){if(null==t)return t;let e=this.getBucket(t),r=this.buckets[e];if(r)for(let e of r)if(this.comparator.equals(e,t))return e}getBucket(t){return this.comparator.hashCode(t)&this.buckets.length-1}hashCode(){let t=a.MurmurHash.initialize();for(let e of this.buckets)if(null!=e)for(let r of e){if(null==r)break;t=a.MurmurHash.update(t,this.comparator.hashCode(r))}return t=a.MurmurHash.finish(t,this.size),t}equals(t){return t===this||t instanceof u&&(t.size===this.size&&this.containsAll(t))}expand(){let t=this.buckets,e=2*this.buckets.length,r=this.createBuckets(e);this.buckets=r,this.threshold=Math.floor(.75*e);let n=this.size;for(let e of t)if(e)for(let t of e){let e=this.getBucket(t),r=this.buckets[e];r||(r=[],this.buckets[e]=r),r.push(t)}o(this.n===n)}add(t){return this.getOrAdd(t)===t}get size(){return this.n}get isEmpty(){return 0===this.n}contains(t){return this.containsFast(this.asElementType(t))}containsFast(t){return null!=t&&null!=this.get(t)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const t=new Array(this.size);let e=0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;t[e++]=n}return t}containsAll(t){if(t instanceof u){let e=t;for(let t of e.buckets)if(null!=t)for(let e of t){if(null==e)break;if(!this.containsFast(this.asElementType(e)))return!1}}else for(let e of t)if(!this.containsFast(this.asElementType(e)))return!1;return!0}addAll(t){let e=!1;for(let r of t)this.getOrAdd(r)!==r&&(e=!0);return e}clear(){this.buckets=this.createBuckets(16),this.n=0,this.threshold=Math.floor(12)}toString(){if(0===this.size)return"{}";let t="{",e=!0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;e?e=!1:t+=", ",t+=n.toString()}return t+="}",t}toTableString(){let t="";for(let e of this.buckets){if(null==e){t+="null\n";continue}t+="[";let r=!0;for(let n of e)r?r=!1:t+=" ",t+=null==n?"_":n.toString();t+="]\n"}return t}asElementType(t){return t}createBuckets(t){return new Array(t)}}n([l.NotNull],u.prototype,"comparator",void 0),n([l.Override],u.prototype,"hashCode",null),n([l.Override],u.prototype,"equals",null),n([l.Override],u.prototype,"add",null),n([l.Override],u.prototype,"size",null),n([l.Override],u.prototype,"isEmpty",null),n([l.Override],u.prototype,"contains",null),n([i(0,l.Nullable)],u.prototype,"containsFast",null),n([l.Override],u.prototype,Symbol.iterator,null),n([l.Override],u.prototype,"toArray",null),n([l.Override],u.prototype,"containsAll",null),n([l.Override],u.prototype,"addAll",null),n([l.Override],u.prototype,"clear",null),n([l.Override],u.prototype,"toString",null),n([l.SuppressWarnings("unchecked")],u.prototype,"asElementType",null),n([l.SuppressWarnings("unchecked")],u.prototype,"createBuckets",null),e.Array2DHashSet=u},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(331),o=r(347),s=r(287),l=r(295),a=r(319),u=r(323),c=r(283),h=r(311),p=r(284);class d extends h.Recognizer{constructor(t){super(),this._factory=i.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=!1,this._channel=0,this._type=0,this._modeStack=new o.IntegerStack,this._mode=d.DEFAULT_MODE,this._input=t,this._tokenFactorySourcePair={source:this,stream:t}}static get DEFAULT_TOKEN_CHANNEL(){return p.Token.DEFAULT_CHANNEL}static get HIDDEN(){return p.Token.HIDDEN_CHANNEL}reset(t){(void 0===t||t)&&this._input.seek(0),this._token=void 0,this._type=p.Token.INVALID_TYPE,this._channel=p.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=!1,this._mode=d.DEFAULT_MODE,this._modeStack.clear(),this.interpreter.reset()}nextToken(){if(null==this._input)throw new Error("nextToken requires a non-null input stream.");let t=this._input.mark();try{t:for(;;){if(this._hitEOF)return this.emitEOF();this._token=void 0,this._channel=p.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartCharPositionInLine=this.interpreter.charPositionInLine,this._tokenStartLine=this.interpreter.line,this._text=void 0;do{let t;this._type=p.Token.INVALID_TYPE;try{t=this.interpreter.match(this._input,this._mode)}catch(e){if(!(e instanceof u.LexerNoViableAltException))throw e;this.notifyListeners(e),this.recover(e),t=d.SKIP}if(this._input.LA(1)===l.IntStream.EOF&&(this._hitEOF=!0),this._type===p.Token.INVALID_TYPE&&(this._type=t),this._type===d.SKIP)continue t}while(this._type===d.MORE);return null==this._token?this.emit():this._token}}finally{this._input.release(t)}}skip(){this._type=d.SKIP}more(){this._type=d.MORE}mode(t){this._mode=t}pushMode(t){a.LexerATNSimulator.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return a.LexerATNSimulator.debug&&console.log("popMode back to "+this._modeStack.peek()),this.mode(this._modeStack.pop()),this._mode}get tokenFactory(){return this._factory}set tokenFactory(t){this._factory=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t,this._tokenFactorySourcePair={source:this,stream:this._input}}get sourceName(){return this._input.sourceName}emit(t){return t||(t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.charIndex-1,this._tokenStartLine,this._tokenStartCharPositionInLine)),this._token=t,t}emitEOF(){let t=this.charPositionInLine,e=this.line,r=this._factory.create(this._tokenFactorySourcePair,p.Token.EOF,void 0,p.Token.DEFAULT_CHANNEL,this._input.index,this._input.index-1,e,t);return this.emit(r),r}get line(){return this.interpreter.line}set line(t){this.interpreter.line=t}get charPositionInLine(){return this.interpreter.charPositionInLine}set charPositionInLine(t){this.interpreter.charPositionInLine=t}get charIndex(){return this._input.index}get text(){return null!=this._text?this._text:this.interpreter.getText(this._input)}set text(t){this._text=t}get token(){return this._token}set token(t){this._token=t}set type(t){this._type=t}get type(){return this._type}set channel(t){this._channel=t}get channel(){return this._channel}getAllTokens(){let t=[],e=this.nextToken();for(;e.type!==p.Token.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){let e=this._input.getText(s.Interval.of(this._tokenStartCharIndex,this._input.index)),r="token recognition error at: '"+this.getErrorDisplay(e)+"'",n=this.getErrorListenerDispatch();n.syntaxError&&n.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,r,t)}getErrorDisplay(t){if("number"==typeof t){switch(t){case p.Token.EOF:return"";case 10:return"\\n";case 9:return"\\t";case 13:return"\\r"}return String.fromCharCode(t)}return t.replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r")}getCharErrorDisplay(t){return"'"+this.getErrorDisplay(t)+"'"}recover(t){t instanceof u.LexerNoViableAltException?this._input.LA(1)!==l.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume()}}d.DEFAULT_MODE=0,d.MORE=-2,d.SKIP=-3,d.MIN_CHAR_VALUE=0,d.MAX_CHAR_VALUE=1114111,n([c.Override],d.prototype,"nextToken",null),n([c.Override],d.prototype,"tokenFactory",null),n([c.Override],d.prototype,"inputStream",null),n([c.Override],d.prototype,"sourceName",null),n([c.Override],d.prototype,"line",null),n([c.Override],d.prototype,"charPositionInLine",null),e.Lexer=d},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0});const n=r(344),i=r(285),o=new Uint16Array(0);function s(t){return t>>>4}function l(t){return 16*t}function a(t){let e=1;for(let r=0;r<16;r++){if(0!=(t&e))return r;e=e<<1>>>0}throw new RangeError("No specified bit found")}function u(t){let e=32768;for(let r=15;r>=0;r--){if(0!=(t&e))return r;e>>>=1}throw new RangeError("No specified bit found")}function c(t,e){return(t&=15)==(e&=15)?1<>>0:65535>>>15-e^65535>>>16-t}const h=new Uint8Array(65536);for(let t=0;t<16;t++){const e=1<>>0;let r=0;for(;rr)return-1;let i=65535^c(t,15);if(65535==(e[n]|i)){for(n++,i=0;nr)return-1;let i=c(t,15);if(0==(e[n]&i)){for(n++,i=65535;n=r)return-1}return l(n)+a(e[n]&i)}or(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),s=e.length===i?e:new Uint16Array(i);let l=-1;for(let t=0;tr.length?e:r;for(let t=n;t=r&&(n=r-1);let i=65535^c(0,t);if(65535==(e[n]|i)){for(i=0,n--;n>=0&&65535===e[n];n--);if(n<0)return-1}return l(n)+u(65535^(e[n]|i))}previousSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=s(t);n>=r&&(n=r-1);let i=c(0,t);if(0==(e[n]&i)){for(n--,i=65535;n>=0&&0===e[n];n--);if(n<0)return-1}return l(n)+u(e[n]&i)}set(t,e,r){if(void 0===e?(e=t,r=!0):"boolean"==typeof e&&(r=e,e=t),void 0===r&&(r=!0),t<0||t>e)throw new RangeError;let n=s(t),i=s(e);if(r&&i>=this.data.length){let t=new Uint16Array(i+1);this.data.forEach(((e,r)=>t[r]=e)),this.data=t}else if(!r){if(n>=this.data.length)return;i>=this.data.length&&(i=this.data.length-1,e=16*this.data.length-1)}if(n===i)this._setBits(n,r,c(t,e));else{for(this._setBits(n++,r,c(t,15));n=0;r=this.nextSetBit(r+1))e?e=!1:t+=", ",t+=r;return t+="}",t}xor(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length),i=Math.max(e.length,r.length),s=e.length===i?e:new Uint16Array(i);let l=-1;for(let t=0;tr.length?e:r;for(let t=n;t=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283),o=r(284);class s{constructor(t,e,r){this.literalNames=t,this.symbolicNames=e,this.displayNames=r,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(t){if(t>=0&&t=0&&t=0&&t=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(317),s=r(329),l=r(287),a=r(299),u=r(285),c=r(283),h=r(284);class p{constructor(t){this.readonly=!1,this._intervals=null!=t?t.slice(0):[]}static get COMPLETE_CHAR_SET(){return void 0===p._COMPLETE_CHAR_SET&&(p._COMPLETE_CHAR_SET=p.of(a.Lexer.MIN_CHAR_VALUE,a.Lexer.MAX_CHAR_VALUE),p._COMPLETE_CHAR_SET.setReadonly(!0)),p._COMPLETE_CHAR_SET}static get EMPTY_SET(){return null==p._EMPTY_SET&&(p._EMPTY_SET=new p,p._EMPTY_SET.setReadonly(!0)),p._EMPTY_SET}static of(t,e=t){let r=new p;return r.add(t,e),r}clear(){if(this.readonly)throw new Error("can't alter readonly IntervalSet");this._intervals.length=0}add(t,e=t){this.addRange(l.Interval.of(t,e))}addRange(t){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(t.bs.b)n++;else if(a.a>s.a&&(t=new l.Interval(s.a,a.a-1)),a.b>1,i=this._intervals[n],o=i.a;if(i.bt))return!0;r=n-1}}return!1}get isNil(){return null==this._intervals||0===this._intervals.length}get maxElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[this._intervals.length-1].b}get minElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[0].a}get intervals(){return this._intervals}hashCode(){let t=u.MurmurHash.initialize();for(let e of this._intervals)t=u.MurmurHash.update(t,e.a),t=u.MurmurHash.update(t,e.b);return t=u.MurmurHash.finish(t,2*this._intervals.length),t}equals(t){return null!=t&&t instanceof p&&o.ArrayEqualityComparator.INSTANCE.equals(this._intervals,t._intervals)}toString(t=!1){let e="";if(null==this._intervals||0===this._intervals.length)return"{}";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,o=n.b;i===o?i===h.Token.EOF?e+="":e+=t?"'"+String.fromCodePoint(i)+"'":i:e+=t?"'"+String.fromCodePoint(i)+"'..'"+String.fromCodePoint(o)+"'":i+".."+o}return this.size>1&&(e+="}"),e}toStringVocabulary(t){if(null==this._intervals||0===this._intervals.length)return"{}";let e="";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,o=n.b;if(i===o)e+=this.elementName(t,i);else for(let r=i;r<=o;r++)r>i&&(e+=", "),e+=this.elementName(t,r)}return this.size>1&&(e+="}"),e}elementName(t,e){return e===h.Token.EOF?"":e===h.Token.EPSILON?"":t.getDisplayName(e)}get size(){let t=0,e=this._intervals.length;if(1===e){let t=this._intervals[0];return t.b-t.a+1}for(let r=0;rn&&t=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(293),s=r(309),l=r(338),a=r(283),u=r(313),c=r(290),h=r(339),p=r(307),d=r(284),f=r(292);class _{static toStringTree(t,e){let r;r=e instanceof u.Parser?e.ruleNames:e;let n=f.escapeWhitespace(this.getNodeText(t,r),!1);if(0===t.childCount)return n;let i="";i+="(",n=f.escapeWhitespace(this.getNodeText(t,r),!1),i+=n,i+=" ";for(let e=0;e0&&(i+=" "),i+=this.toStringTree(t.getChild(e),r);return i+=")",i}static getNodeText(t,e){let r;if(e instanceof u.Parser)r=e.ruleNames;else{if(!e){let e=t.payload;return"string"==typeof e.text?e.text:t.payload.toString()}r=e}if(t instanceof h.RuleNode){let e=t.ruleContext,n=r[e.ruleIndex],i=e.altNumber;return i!==o.ATN.INVALID_ALT_NUMBER?n+":"+i:n}if(t instanceof l.ErrorNode)return t.toString();if(t instanceof p.TerminalNode)return t.symbol.text||"";throw new TypeError("Unexpected node type")}static getChildren(t){let e=[];for(let r=0;r=t.start.tokenIndex&&(null==n||r<=n.tokenIndex))return t}}static stripChildrenOutOfRange(t,e,r,n){if(!t)return;let i=t.childCount;for(let o=0;on)&&_.isAncestorOf(i,e)){let e=new s.CommonToken(d.Token.INVALID_TYPE,"...");t.children[o]=new p.TerminalNode(e)}}}static findNodeSuchThat(t,e){if(e(t))return t;let r=t.childCount;for(let n=0;n=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(298),s=r(317),l=r(285),a=r(283),u=r(291),c=r(292);class h{static get NONE(){return void 0===h._NONE&&(h._NONE=new h.Predicate),h._NONE}evalPrecedence(t,e){return this}static and(t,e){if(!t||t===h.NONE)return e;if(e===h.NONE)return t;let r=new h.AND(t,e);return 1===r.opnds.length?r.opnds[0]:r}static or(t,e){if(!t)return e;if(t===h.NONE||e===h.NONE)return h.NONE;let r=new h.OR(t,e);return 1===r.opnds.length?r.opnds[0]:r}}e.SemanticContext=h,function(t){function e(e){let r=[];for(let n=0;n=prec}?"}}n([a.Override],h.prototype,"eval",null),n([a.Override],h.prototype,"evalPrecedence",null),n([a.Override],h.prototype,"compareTo",null),n([a.Override],h.prototype,"hashCode",null),n([a.Override],h.prototype,"equals",null),n([a.Override],h.prototype,"toString",null),t.PrecedencePredicate=h;class p extends t{}t.Operator=p;let d=class r extends p{constructor(t,n){super();let i=new o.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);t instanceof r?i.addAll(t.opnds):i.add(t),n instanceof r?i.addAll(n.opnds):i.add(n),this.opnds=i.toArray();let s=function(t){let e;for(let r of t)void 0!==e?e.compareTo(r)>0&&(e=r):e=r;return e}(e(this.opnds));s&&this.opnds.push(s)}get operands(){return this.opnds}equals(t){return this===t||t instanceof r&&s.ArrayEqualityComparator.INSTANCE.equals(this.opnds,t.opnds)}hashCode(){return l.MurmurHash.hashCode(this.opnds,40363613)}eval(t,e){for(let r of this.opnds)if(!r.eval(t,e))return!1;return!0}evalPrecedence(e,r){let n=!1,i=[];for(let o of this.opnds){let s=o.evalPrecedence(e,r);if(n=n||s!==o,null==s)return;s!==t.NONE&&i.push(s)}if(!n)return this;if(0===i.length)return t.NONE;let o=i[0];for(let e=1;e=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(287),o=r(283),s=r(284);class l{constructor(t){this._symbol=t}getChild(t){throw new RangeError("Terminal Node has no children.")}get symbol(){return this._symbol}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this._symbol}get sourceInterval(){let t=this._symbol.tokenIndex;return new i.Interval(t,t)}get childCount(){return 0}accept(t){return t.visitTerminal(this)}get text(){return this._symbol.text||""}toStringTree(t){return this.toString()}toString(){return this._symbol.type===s.Token.EOF?"":this._symbol.text||""}}n([o.Override],l.prototype,"getChild",null),n([o.Override],l.prototype,"parent",null),n([o.Override],l.prototype,"setParent",null),n([o.Override],l.prototype,"payload",null),n([o.Override],l.prototype,"sourceInterval",null),n([o.Override],l.prototype,"childCount",null),n([o.Override],l.prototype,"accept",null),n([o.Override],l.prototype,"text",null),n([o.Override],l.prototype,"toStringTree",null),n([o.Override],l.prototype,"toString",null),e.TerminalNode=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283);class o{constructor(t){this.nodeName=t,this.invert=!1}toString(){let t=this.invert?"!":"";return Object.constructor.name+"["+t+this.nodeName+"]"}}n([i.Override],o.prototype,"toString",null),e.XPathElement=o},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(287),s=r(283),l=r(284);let a=class t{constructor(e,r,n=t.EMPTY_SOURCE,i=l.Token.DEFAULT_CHANNEL,o=0,s=0){this._line=0,this._charPositionInLine=-1,this._channel=l.Token.DEFAULT_CHANNEL,this.index=-1,this._text=r,this._type=e,this.source=n,this._channel=i,this.start=o,this.stop=s,null!=n.source&&(this._line=n.source.line,this._charPositionInLine=n.source.charPositionInLine)}static fromToken(e){let r=new t(e.type,void 0,t.EMPTY_SOURCE,e.channel,e.startIndex,e.stopIndex);return r._line=e.line,r.index=e.tokenIndex,r._charPositionInLine=e.charPositionInLine,e instanceof t?(r._text=e.text,r.source=e.source):(r._text=e.text,r.source={source:e.tokenSource,stream:e.inputStream}),r}get type(){return this._type}set type(t){this._type=t}get line(){return this._line}set line(t){this._line=t}get text(){if(null!=this._text)return this._text;let t=this.inputStream;if(null==t)return;let e=t.size;return this.start"}set text(t){this._text=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}get channel(){return this._channel}set channel(t){this._channel=t}get startIndex(){return this.start}set startIndex(t){this.start=t}get stopIndex(){return this.stop}set stopIndex(t){this.stop=t}get tokenIndex(){return this.index}set tokenIndex(t){this.index=t}get tokenSource(){return this.source.source}get inputStream(){return this.source.stream}toString(t){let e="";this._channel>0&&(e=",channel="+this._channel);let r=this.text;null!=r?(r=r.replace(/\n/g,"\\n"),r=r.replace(/\r/g,"\\r"),r=r.replace(/\t/g,"\\t")):r="";let n=String(this._type);return t&&(n=t.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+r+"',<"+n+">"+e+","+this._line+":"+this.charPositionInLine+"]"}};a.EMPTY_SOURCE={source:void 0,stream:void 0},n([s.NotNull],a.prototype,"source",void 0),n([s.Override],a.prototype,"type",null),n([s.Override],a.prototype,"line",null),n([s.Override],a.prototype,"text",null),n([s.Override],a.prototype,"charPositionInLine",null),n([s.Override],a.prototype,"channel",null),n([s.Override],a.prototype,"startIndex",null),n([s.Override],a.prototype,"stopIndex",null),n([s.Override],a.prototype,"tokenIndex",null),n([s.Override],a.prototype,"tokenSource",null),n([s.Override],a.prototype,"inputStream",null),n([s.Override],a.prototype,"toString",null),n([i(0,s.NotNull)],a,"fromToken",null),a=n([i(2,s.NotNull)],a),e.CommonToken=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(306),o=r(298),s=r(317),l=r(293),a=r(320),u=r(300),c=r(283),h=r(291),p=r(289),d=r(332),f=r(305),_=r(288),g=r(292);class y{hashCode(t){return t.state^t.alt}equals(t,e){return t.state===e.state&&t.alt===e.alt}}function m(t){return t?new i.Array2DHashMap(t):new i.Array2DHashMap(y.INSTANCE)}y.INSTANCE=new y;class x{constructor(t,e){this._uniqueAlt=0,this._hasSemanticContext=!1,this._dipsIntoOuterContext=!1,this.outermostConfigSet=!1,this.cachedHashCode=-1,t?(e?(this.mergedConfigs=void 0,this.unmerged=void 0):t.isReadOnly?(this.mergedConfigs=m(),this.unmerged=[]):(this.mergedConfigs=m(t.mergedConfigs),this.unmerged=t.unmerged.slice(0)),this.configs=t.configs.slice(0),this._dipsIntoOuterContext=t._dipsIntoOuterContext,this._hasSemanticContext=t._hasSemanticContext,this.outermostConfigSet=t.outermostConfigSet,!e&&t.isReadOnly||(this._uniqueAlt=t._uniqueAlt,this._conflictInfo=t._conflictInfo)):(this.mergedConfigs=m(),this.unmerged=[],this.configs=[],this._uniqueAlt=l.ATN.INVALID_ALT_NUMBER)}getRepresentedAlternatives(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts.clone();let t=new u.BitSet;for(let e of this)t.set(e.alt);return t}get isReadOnly(){return null==this.mergedConfigs}get isOutermostConfigSet(){return this.outermostConfigSet}set isOutermostConfigSet(t){if(this.outermostConfigSet&&!t)throw new Error("IllegalStateException");_(!t||!this._dipsIntoOuterContext),this.outermostConfigSet=t}getStates(){let t=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE);for(let e of this.configs)t.add(e.state);return t}optimizeConfigs(t){if(0!==this.configs.length)for(let e of this.configs)e.context=t.atn.getCachedContext(e.context)}clone(t){let e=new x(this,t);return!t&&this.isReadOnly&&e.addAll(this.configs),e}get size(){return this.configs.length}get isEmpty(){return 0===this.configs.length}contains(t){if(!(t instanceof a.ATNConfig))return!1;if(this.mergedConfigs&&this.unmerged){let e=t,r=this.getKey(e),n=this.mergedConfigs.get(r);if(null!=n&&this.canMerge(e,r,n))return n.contains(e);for(let e of this.unmerged)if(e.contains(t))return!0}else for(let e of this.configs)if(e.contains(t))return!0;return!1}*[Symbol.iterator](){yield*this.configs}toArray(){return this.configs}add(t,e){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");let r;_(!this.outermostConfigSet||!t.reachesIntoOuterContext),null==e&&(e=d.PredictionContextCache.UNCACHED);let n=this.getKey(t),i=this.mergedConfigs.get(n);if(r=null==i,null!=i&&this.canMerge(t,n,i)){i.outerContextDepth=Math.max(i.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(i.isPrecedenceFilterSuppressed=!0);let r=p.PredictionContext.join(i.context,t.context,e);return this.updatePropertiesForMergedConfig(t),i.context!==r&&(i.context=r,!0)}for(let i=0;it.alt!==e.alt?t.alt-e.alt:t.state.stateNumber!==e.state.stateNumber?t.state.stateNumber-e.state.stateNumber:t.semanticContext.toString().localeCompare(e.semanticContext.toString()))),e+="[";for(let n=0;n0&&(e+=", "),e+=r[n].toString(void 0,!0,t);return e+="]",this._hasSemanticContext&&(e+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==l.ATN.INVALID_ALT_NUMBER&&(e+=",uniqueAlt="+this._uniqueAlt),null!=this._conflictInfo&&(e+=",conflictingAlts="+this._conflictInfo.conflictedAlts,this._conflictInfo.isExact||(e+="*")),this._dipsIntoOuterContext&&(e+=",dipsIntoOuterContext"),e.toString()}get uniqueAlt(){return this._uniqueAlt}get hasSemanticContext(){return this._hasSemanticContext}set hasSemanticContext(t){this.ensureWritable(),this._hasSemanticContext=t}get conflictInfo(){return this._conflictInfo}set conflictInfo(t){this.ensureWritable(),this._conflictInfo=t}get conflictingAlts(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts}get isExactConflict(){return null!=this._conflictInfo&&this._conflictInfo.isExact}get dipsIntoOuterContext(){return this._dipsIntoOuterContext}get(t){return this.configs[t]}ensureWritable(){if(this.isReadOnly)throw new Error("This ATNConfigSet is read only.")}}n([c.NotNull],x.prototype,"getRepresentedAlternatives",null),n([c.Override],x.prototype,"size",null),n([c.Override],x.prototype,"isEmpty",null),n([c.Override],x.prototype,"contains",null),n([c.Override],x.prototype,Symbol.iterator,null),n([c.Override],x.prototype,"toArray",null),n([c.Override],x.prototype,"containsAll",null),n([c.Override],x.prototype,"clear",null),n([c.Override],x.prototype,"equals",null),n([c.Override],x.prototype,"hashCode",null),e.ATNConfigSet=x},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(351),s=r(333),l=r(283),a=r(284),u=r(292);class c{constructor(){this._listeners=[o.ConsoleErrorListener.INSTANCE],this._stateNumber=-1}getTokenTypeMap(){let t=this.vocabulary,e=c.tokenTypeMapCache.get(t);if(null==e){let r=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){let n=t.getLiteralName(e);null!=n&&r.set(n,e);let i=t.getSymbolicName(e);null!=i&&r.set(i,e)}r.set("EOF",a.Token.EOF),e=r,c.tokenTypeMapCache.set(t,e)}return e}getRuleIndexMap(){let t=this.ruleNames;if(null==t)throw new Error("The current recognizer does not provide a list of rule names.");let e=c.ruleIndexMapCache.get(t);return null==e&&(e=u.toMap(t),c.ruleIndexMapCache.set(t,e)),e}getTokenType(t){let e=this.getTokenTypeMap().get(t);return null!=e?e:a.Token.INVALID_TYPE}get serializedATN(){throw new Error("there is no serialized ATN")}get atn(){return this._interp.atn}get interpreter(){return this._interp}set interpreter(t){this._interp=t}get parseInfo(){return Promise.resolve(void 0)}getErrorHeader(t){let e=t.getOffendingToken();return e?"line "+e.line+":"+e.charPositionInLine:""}addErrorListener(t){if(!t)throw new TypeError("listener must not be null");this._listeners.push(t)}removeErrorListener(t){let e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}removeErrorListeners(){this._listeners.length=0}getErrorListeners(){return this._listeners.slice(0)}getErrorListenerDispatch(){return new s.ProxyErrorListener(this.getErrorListeners())}sempred(t,e,r){return!0}precpred(t,e){return!0}action(t,e,r){}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}c.EOF=-1,c.tokenTypeMapCache=new WeakMap,c.ruleIndexMapCache=new WeakMap,n([l.SuppressWarnings("serial"),l.NotNull],c.prototype,"_listeners",void 0),n([l.NotNull],c.prototype,"getTokenTypeMap",null),n([l.NotNull],c.prototype,"getRuleIndexMap",null),n([l.NotNull],c.prototype,"serializedATN",null),n([l.NotNull],c.prototype,"atn",null),n([l.NotNull,i(0,l.NotNull)],c.prototype,"interpreter",null),n([l.NotNull,i(0,l.NotNull)],c.prototype,"getErrorHeader",null),n([i(0,l.NotNull)],c.prototype,"addErrorListener",null),n([i(0,l.NotNull)],c.prototype,"removeErrorListener",null),n([l.NotNull],c.prototype,"getErrorListeners",null),e.Recognizer=c},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(294),o=r(286),s=r(283);class l extends i.ATNState{get nonStopStateNumber(){return-1}get stateType(){return o.ATNStateType.RULE_STOP}}n([s.Override],l.prototype,"nonStopStateNumber",null),n([s.Override],l.prototype,"stateType",null),e.RuleStopState=l},function(t,e,r){"use strict";(function(t){ /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */ var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}},o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{a(n.next(t))}catch(t){o(t)}}function l(t){try{a(n.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):new r((function(e){e(t.value)})).then(s,l)}a((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const s=r(292),l=r(355),a=r(325),u=r(327),c=r(338),h=r(347),p=r(299),d=r(283),f=r(402),_=r(314),g=r(361),y=r(311),m=r(307),x=r(284);class N{constructor(t,e){this.ruleNames=t,this.tokenStream=e}enterEveryRule(t){console.log("enter "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}exitEveryRule(t){console.log("exit "+this.ruleNames[t.ruleIndex]+", LT(1)="+this.tokenStream.LT(1).text)}visitErrorNode(t){}visitTerminal(t){let e=t.parent.ruleContext,r=t.symbol;console.log("consume "+r+" rule "+this.ruleNames[e.ruleIndex])}}n([d.Override],N.prototype,"enterEveryRule",null),n([d.Override],N.prototype,"exitEveryRule",null),n([d.Override],N.prototype,"visitErrorNode",null),n([d.Override],N.prototype,"visitTerminal",null);class E extends y.Recognizer{constructor(t){super(),this._errHandler=new u.DefaultErrorStrategy,this._precedenceStack=new h.IntegerStack,this._buildParseTrees=!0,this._parseListeners=[],this._syntaxErrors=0,this.matchedEOF=!1,this._precedenceStack.push(0),this.inputStream=t}reset(t){(void 0===t||t)&&this.inputStream.seek(0),this._errHandler.reset(this),this._ctx=void 0,this._syntaxErrors=0,this.matchedEOF=!1,this.isTrace=!1,this._precedenceStack.clear(),this._precedenceStack.push(0);let e=this.interpreter;null!=e&&e.reset()}match(t){let e=this.currentToken;return e.type===t?(t===x.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,e))),e}matchWildcard(){let t=this.currentToken;return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))),t}set buildParseTree(t){this._buildParseTrees=t}get buildParseTree(){return this._buildParseTrees}getParseListeners(){return this._parseListeners}addParseListener(t){if(null==t)throw new TypeError("listener cannot be null");this._parseListeners.push(t)}removeParseListener(t){let e=this._parseListeners.findIndex((e=>e===t));-1!==e&&this._parseListeners.splice(e,1)}removeParseListeners(){this._parseListeners.length=0}triggerEnterRuleEvent(){for(let t of this._parseListeners)t.enterEveryRule&&t.enterEveryRule(this._ctx),this._ctx.enterRule(t)}triggerExitRuleEvent(){for(let t=this._parseListeners.length-1;t>=0;t--){let e=this._parseListeners[t];this._ctx.exitRule(e),e.exitEveryRule&&e.exitEveryRule(this._ctx)}}get numberOfSyntaxErrors(){return this._syntaxErrors}get tokenFactory(){return this._input.tokenSource.tokenFactory}getATNWithBypassAlts(){let t=this.serializedATN;if(null==t)throw new Error("The current parser does not support an ATN with bypass alternatives.");let e=E.bypassAltsAtnCache.get(t);if(null==e){let r=new l.ATNDeserializationOptions;r.isGenerateRuleBypassTransitions=!0,e=new a.ATNDeserializer(r).deserialize(s.toCharArray(t)),E.bypassAltsAtnCache.set(t,e)}return e}compileParseTreePattern(t,e,n){return o(this,void 0,void 0,(function*(){if(!n){if(this.inputStream){let t=this.inputStream.tokenSource;t instanceof p.Lexer&&(n=t)}if(!n)throw new Error("Parser can't discover a lexer to use")}let i=n;return new((yield Promise.resolve().then((()=>r(403)))).ParseTreePatternMatcher)(i,this).compile(t,e)}))}get errorHandler(){return this._errHandler}set errorHandler(t){this._errHandler=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t}get currentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){void 0===e?e=this.currentToken:null===e&&(e=void 0),this._syntaxErrors++;let n=-1,i=-1;null!=e&&(n=e.line,i=e.charPositionInLine);let o=this.getErrorListenerDispatch();o.syntaxError&&o.syntaxError(this,e,n,i,t,r)}consume(){let t=this.currentToken;t.type!==E.EOF&&this.inputStream.consume();let e=0!==this._parseListeners.length;if(this._buildParseTrees||e)if(this._errHandler.inErrorRecoveryMode(this)){let r=this._ctx.addErrorNode(this.createErrorNode(this._ctx,t));if(e)for(let t of this._parseListeners)t.visitErrorNode&&t.visitErrorNode(r)}else{let r=this.createTerminalNode(this._ctx,t);if(this._ctx.addChild(r),e)for(let t of this._parseListeners)t.visitTerminal&&t.visitTerminal(r)}return t}createTerminalNode(t,e){return new m.TerminalNode(e)}createErrorNode(t,e){return new c.ErrorNode(e)}addContextToParseTree(){let t=this._ctx._parent;null!=t&&t.addChild(this._ctx)}enterRule(t,e,r){this.state=e,this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}enterLeftFactoredRule(t,e,r){if(this.state=e,this._buildParseTrees){let e=this._ctx.getChild(this._ctx.childCount-1);this._ctx.removeLastChild(),e._parent=t,t.addChild(e)}this._ctx=t,this._ctx._start=this._input.LT(1),this._buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this.matchedEOF?this._ctx._stop=this._input.LT(1):this._ctx._stop=this._input.tryLT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx._parent}enterOuterAlt(t,e){if(t.altNumber=e,this._buildParseTrees&&this._ctx!==t){let e=this._ctx._parent;null!=e&&(e.removeLastChild(),e.addChild(t))}this._ctx=t}get precedence(){return this._precedenceStack.isEmpty?-1:this._precedenceStack.peek()}enterRecursionRule(t,e,r,n){this.state=e,this._precedenceStack.push(n),this._ctx=t,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){let n=this._ctx;n._parent=t,n.invokingState=e,n._stop=this._input.tryLT(-1),this._ctx=t,this._ctx._start=n._start,this._buildParseTrees&&this._ctx.addChild(n),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let e=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=t;e._parent=t,this._buildParseTrees&&null!=t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;e&&e.ruleIndex!==t;)e=e._parent;return e}get context(){return this._ctx}set context(t){this._ctx=t}precpred(t,e){return e>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new g.ProxyParserErrorListener(this.getErrorListeners())}inContext(t){return!1}isExpectedToken(t){let e=this.interpreter.atn,r=this._ctx,n=e.states[this.state],i=e.nextTokens(n);if(i.contains(t))return!0;if(!i.contains(x.Token.EPSILON))return!1;for(;null!=r&&r.invokingState>=0&&i.contains(x.Token.EPSILON);){let n=e.states[r.invokingState].transition(0);if(i=e.nextTokens(n.followState),i.contains(t))return!0;r=r._parent}return!(!i.contains(x.Token.EPSILON)||t!==x.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let t=this.interpreter.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){let e=this.getRuleIndexMap().get(t);return null!=e?e:-1}get ruleContext(){return this._ctx}getRuleInvocationStack(t=this._ctx){let e=t,r=this.ruleNames,n=[];for(;null!=e;){let t=e.ruleIndex;t<0?n.push("n/a"):n.push(r[t]),e=e._parent}return n}getDFAStrings(){let t=[];for(let e of this._interp.atn.decisionToDFA)t.push(e.toString(this.vocabulary,this.ruleNames));return t}dumpDFA(){let e=!1;for(let r of this._interp.atn.decisionToDFA)r.isEmpty||(e&&console.log(),console.log("Decision "+r.decision+":"),t.stdout.write(r.toString(this.vocabulary,this.ruleNames)),e=!0)}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then((()=>r(370))).then((t=>{let e=this.interpreter;if(e instanceof t.ProfilingATNSimulator)return new f.ParseInfo(e)}))}setProfile(t){return o(this,void 0,void 0,(function*(){let e=yield Promise.resolve().then((()=>r(370))),n=this.interpreter;t?n instanceof e.ProfilingATNSimulator||(this.interpreter=new e.ProfilingATNSimulator(this)):n instanceof e.ProfilingATNSimulator&&(this.interpreter=new _.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(n.getPredictionMode())}))}set isTrace(t){t?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new N(this.ruleNames,this._input),this.addParseListener(this._tracer)):this._tracer&&(this.removeParseListener(this._tracer),this._tracer=void 0)}get isTrace(){return null!=this._tracer}}E.bypassAltsAtnCache=new Map,n([d.NotNull],E.prototype,"_errHandler",void 0),n([d.NotNull],E.prototype,"match",null),n([d.NotNull],E.prototype,"matchWildcard",null),n([d.NotNull],E.prototype,"getParseListeners",null),n([i(0,d.NotNull)],E.prototype,"addParseListener",null),n([d.NotNull],E.prototype,"getATNWithBypassAlts",null),n([d.NotNull,i(0,d.NotNull)],E.prototype,"errorHandler",null),n([d.Override],E.prototype,"inputStream",null),n([d.NotNull],E.prototype,"currentToken",null),n([i(0,d.NotNull)],E.prototype,"enterRule",null),n([d.Override,i(0,d.Nullable)],E.prototype,"precpred",null),n([d.Override],E.prototype,"getErrorListenerDispatch",null),n([d.NotNull],E.prototype,"getExpectedTokens",null),n([d.NotNull],E.prototype,"getExpectedTokensWithinCurrentRule",null),n([d.Override],E.prototype,"parseInfo",null),e.Parser=E}).call(this,r(186))},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(348),s=r(356),l=r(298),a=r(330),u=r(293),c=r(320),h=r(310),p=r(321),d=r(286),f=r(357),_=r(300),g=r(391),y=r(303),m=r(322),x=r(329),N=r(287),E=r(295),T=r(283),S=r(335),O=r(324),v=r(291),R=r(290),A=r(289),C=r(332),b=r(392),I=r(312),L=r(337),P=r(305),w=r(336),k=r(360),D=r(284),M=r(301),j=r(288),F=-2147483648;let U=class t extends p.ATNSimulator{constructor(t,e){super(t),this.predictionMode=b.PredictionMode.LL,this.force_global_context=!1,this.always_try_local_context=!0,this.enable_global_context_dfa=!1,this.optimize_unique_closure=!0,this.optimize_ll1=!0,this.optimize_tail_calls=!0,this.tail_call_preserves_sll=!0,this.treat_sllk1_conflict_as_ambiguity=!1,this.reportAmbiguities=!1,this.userWantsCtxSensitive=!0,this._parser=e}getPredictionMode(){return this.predictionMode}setPredictionMode(t){this.predictionMode=t}reset(){}adaptivePredict(e,r,n,i){void 0===i&&(i=!1);let o,s=this.atn.decisionToDFA[r];if(j(null!=s),this.optimize_ll1&&!s.isPrecedenceDfa&&!s.isEmpty){let t=e.LA(1);if(t>=0&&t<=65535){let e=(r<<16>>>0)+t,n=this.atn.LL1Table.get(e);if(null!=n)return n}}this.dfa=s,this.force_global_context?i=!0:this.always_try_local_context||(i=i||s.isContextSensitive),this.userWantsCtxSensitive=i||this.predictionMode!==b.PredictionMode.SLL&&null!=n&&!this.atn.decisionToState[r].sll,null==n&&(n=R.ParserRuleContext.emptyContext()),s.isEmpty||(o=this.getStartState(s,e,n,i)),null==o&&(null==n&&(n=R.ParserRuleContext.emptyContext()),t.debug&&console.log("ATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+n.toString(this._parser)),o=this.computeStartState(s,n,i));let l=e.mark(),a=e.index;try{let r=this.execDFA(s,e,a,o);return t.debug&&console.log("DFA after predictATN: "+s.toString(this._parser.vocabulary,this._parser.ruleNames)),r}finally{this.dfa=void 0,e.seek(a),e.release(l)}}getStartState(t,e,r,n){if(!n){if(t.isPrecedenceDfa){let e=t.getPrecedenceStartState(this._parser.precedence,!1);if(null==e)return;return new k.SimulatorState(r,e,!1,r)}if(null==t.s0)return;return new k.SimulatorState(r,t.s0,!1,r)}if(!this.enable_global_context_dfa)return;let i,o=r;for(j(null!=r),i=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,!0):t.s0full;null!=o&&null!=i&&i.isContextSensitive;)o=this.skipTailCalls(o),i=i.getContextTarget(this.getReturnState(o)),o.isEmpty?j(null==i||!i.isContextSensitive):o=o.parent;return null!=i?new k.SimulatorState(r,i,n,o):void 0}execDFA(e,r,n,i){let o=i.outerContext;t.dfa_debug&&console.log("DFA decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r)+", outerContext="+o.toString(this._parser)),t.dfa_debug&&console.log(e.toString(this._parser.vocabulary,this._parser.ruleNames));let s=i.s0,l=r.LA(1),a=i.remainingOuterContext;for(;;){if(t.dfa_debug&&console.log("DFA state "+s.stateNumber+" LA(1)=="+this.getLookaheadName(r)),i.useContext)for(;s.isContextSymbol(l);){let t;if(null!=a&&(a=this.skipTailCalls(a),t=s.getContextTarget(this.getReturnState(a))),null==t){let t=new k.SimulatorState(i.outerContext,s,i.useContext,a);return this.execATN(e,r,n,t)}j(null!=a),a=a.parent,s=t}if(this.isAcceptState(s,i.useContext)){null!=s.predicates?t.dfa_debug&&console.log("accept "+s):t.dfa_debug&&console.log("accept; predict "+s.prediction+" in state "+s.stateNumber);break}j(!this.isAcceptState(s,i.useContext));let u=this.getExistingTargetState(s,l);if(null==u){let u;if(t.dfa_debug&&l>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(l)),t.dfa_debug){let t=N.Interval.of(n,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(t)+" at DFA state "+s.stateNumber)}let c=new k.SimulatorState(o,s,i.useContext,a);return u=this.execATN(e,r,n,c),t.dfa_debug&&console.log("back from DFA update, alt="+u+", dfa=\n"+e.toString(this._parser.vocabulary,this._parser.ruleNames)),t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+u),u}if(u===p.ATNSimulator.ERROR){let t=new k.SimulatorState(o,s,i.useContext,a);return this.handleNoViableAlt(r,n,t)}s=u,this.isAcceptState(s,i.useContext)||l===E.IntStream.EOF||(r.consume(),l=r.LA(1))}if(!i.useContext&&null!=s.configs.conflictInfo&&e.atnStartState instanceof y.DecisionState&&!(!this.userWantsCtxSensitive||!s.configs.dipsIntoOuterContext&&s.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&r.index===n)){let t;j(!i.useContext);let l=s.predicates;if(null!=l){let e=r.index;if(e!==n&&r.seek(n),t=this.evalSemanticContext(l,o,!0),1===t.cardinality())return t.nextSetBit(0);e!==n&&r.seek(e)}if(this.reportAmbiguities){let l=new k.SimulatorState(o,s,i.useContext,a);this.reportAttemptingFullContext(e,t,l,n,r.index)}return r.seek(n),this.adaptivePredict(r,e.decision,o,!0)}let u=s.predicates;if(null!=u){let t=r.index;n!==t&&r.seek(n);let i=this.evalSemanticContext(u,o,this.reportAmbiguities&&this.predictionMode===b.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(i.cardinality()){case 0:throw this.noViableAlt(r,o,s.configs,n);case 1:return i.nextSetBit(0);default:return n!==t&&r.seek(t),this.reportAmbiguity(e,s,n,t,s.configs.isExactConflict,i,s.configs),i.nextSetBit(0)}}return t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+s.prediction),s.prediction}isAcceptState(t,e){return!!t.isAcceptState&&(null==t.configs.conflictingAlts||!e||this.predictionMode!==b.PredictionMode.LL_EXACT_AMBIG_DETECTION||t.configs.isExactConflict)}execATN(e,r,n,i){t.debug&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r));let o=i.outerContext,s=i.useContext,l=r.LA(1),a=i,c=new C.PredictionContextCache;for(;;){let i=this.computeReachSet(e,a,l,c);if(null==i)return this.setDFAEdge(a.s0,r.LA(1),p.ATNSimulator.ERROR),this.handleNoViableAlt(r,n,a);let h=i.s0;if(j(h.isAcceptState||h.prediction===u.ATN.INVALID_ALT_NUMBER),j(h.isAcceptState||null==h.configs.conflictInfo),this.isAcceptState(h,s)){let a=h.configs.conflictingAlts,c=null==a?h.prediction:u.ATN.INVALID_ALT_NUMBER;if(c!==u.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&r.index===n&&!e.isPrecedenceDfa&&i.outerContext===i.remainingOuterContext&&e.decision>=0&&!h.configs.hasSemanticContext&&l>=0&&l<=65535){let t=(e.decision<<16>>>0)+l;this.atn.LL1Table.set(t,c)}s&&this.always_try_local_context&&this.reportContextSensitivity(e,c,i,n,r.index)}c=h.prediction;let p=null!=a&&this.userWantsCtxSensitive;if(p&&(p=!s&&(h.configs.dipsIntoOuterContext||!h.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||r.index!==n)),h.configs.hasSemanticContext){let t=h.predicates;if(null!=t){let e=r.index;switch(e!==n&&r.seek(n),a=this.evalSemanticContext(t,o,p||this.reportAmbiguities),a.cardinality()){case 0:throw this.noViableAlt(r,o,h.configs,n);case 1:return a.nextSetBit(0)}e!==n&&r.seek(e)}}if(p){j(!s),j(this.isAcceptState(h,!1)),t.debug&&console.log("RETRY with outerContext="+o);let l=this.computeStartState(e,o,!0);return this.reportAmbiguities&&this.reportAttemptingFullContext(e,a,i,n,r.index),r.seek(n),this.execATN(e,r,n,l)}return null!=a&&(this.reportAmbiguities&&a.cardinality()>1&&this.reportAmbiguity(e,h,n,r.index,h.configs.isExactConflict,a,h.configs),c=a.nextSetBit(0)),c}a=i,l!==E.IntStream.EOF&&(r.consume(),l=r.LA(1))}}handleNoViableAlt(t,e,r){if(null!=r.s0){let n=new _.BitSet,i=0;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof I.RuleStopState)&&(n.set(t.alt),i=Math.max(i,t.alt));switch(n.cardinality()){case 0:break;case 1:return n.nextSetBit(0);default:if(!r.s0.configs.hasSemanticContext)return n.nextSetBit(0);let o=new h.ATNConfigSet;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof I.RuleStopState)&&o.add(t);let s=this.getPredsForAmbigAlts(n,o,i);if(null!=s){let i=this.getPredicatePredictions(n,s);if(null!=i){let n=t.index;try{t.seek(e);let n=this.evalSemanticContext(i,r.outerContext,!1);if(!n.isEmpty)return n.nextSetBit(0)}finally{t.seek(n)}}}return n.nextSetBit(0)}}throw this.noViableAlt(t,r.outerContext,r.s0.configs,e)}computeReachSet(t,e,r,n){let i=e.useContext,o=e.remainingOuterContext,s=e.s0;if(i)for(;s.isContextSymbol(r);){let t;if(null!=o&&(o=this.skipTailCalls(o),t=s.getContextTarget(this.getReturnState(o))),null==t)break;j(null!=o),o=o.parent,s=t}if(j(!this.isAcceptState(s,i)),this.isAcceptState(s,i))return new k.SimulatorState(e.outerContext,s,i,o);let l=s,a=this.getExistingTargetState(l,r);if(null==a){let e=this.computeTargetState(t,l,o,r,i,n);a=e[0],o=e[1]}return a!==p.ATNSimulator.ERROR?(j(!i||!a.configs.dipsIntoOuterContext),new k.SimulatorState(e.outerContext,a,i,o)):void 0}getExistingTargetState(t,e){return t.getTarget(e)}computeTargetState(e,r,n,i,o,s){let l,a,c=r.configs.toArray(),d=new h.ATNConfigSet;do{let e=!o||null!=n;e||(d.isOutermostConfigSet=!0);let r,p=new h.ATNConfigSet;for(let e of c){if(t.debug&&console.log("testing "+this.getTokenName(i)+" at "+e.toString()),e.state instanceof I.RuleStopState){j(e.context.isEmpty),(o&&!e.reachesIntoOuterContext||i===E.IntStream.EOF)&&(null==r&&(r=[]),r.push(e));continue}let n=e.state.numberOfOptimizedTransitions;for(let t=0;t0);for(let t of r)d.add(t,s)}if(o&&a){d.clear(),n=this.skipTailCalls(n);let t=this.getReturnState(n);if(null==l&&(l=new x.IntegerList),n=n.isEmpty?void 0:n.parent,l.add(t),t!==A.PredictionContext.EMPTY_FULL_STATE_KEY)for(let e=0;e0;){let t=new h.ATNConfigSet;for(let l of s)this.closureImpl(l,e,t,a,r,n,i,0,o);s=t}}closureImpl(e,r,n,i,o,l,a,u,h){if(t.debug&&console.log("closure("+e.toString(this._parser,!0)+")"),e.state instanceof I.RuleStopState)if(e.context.isEmpty){if(!l)return void r.add(e,a);t.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),e.context===A.PredictionContext.EMPTY_FULL?e=e.transform(e.state,!1,A.PredictionContext.EMPTY_LOCAL):!e.reachesIntoOuterContext&&A.PredictionContext.isEmptyLocal(e.context)&&r.add(e,a)}else{let t=e.context.hasEmpty,s=e.context.size-(t?1:0);for(let t=0;tF),this.closureImpl(d,r,n,i,o,l,a,u-1,h)}if(!t||!l)return;e=e.transform(e.state,!1,A.PredictionContext.EMPTY_LOCAL)}let p=e.state;p.onlyHasEpsilonTransitions||(r.add(e,a),t.debug&&console.log("added config "+r));for(let c=0;cF),s--,t.debug&&console.log("dips into outer ctx: "+g)}else if(f instanceof L.RuleTransition)!this.optimize_tail_calls||!f.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?s>=0&&s++:(j(g.context===e.context),0===s&&(s--,!this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)&&(g.outerContextDepth=g.outerContextDepth+1)));else if(!f.isEpsilon&&!i.add(g))continue;this.closureImpl(g,r,n,i,_,l,a,s,h)}}}getRuleName(t){return null!=this._parser&&t>=0?this._parser.ruleNames[t]:""}getEpsilonTarget(t,e,r,n,i,o){switch(e.serializationType){case 3:return this.ruleTransition(t,e,i);case 10:return this.precedenceTransition(t,e,r,n);case 4:return this.predTransition(t,e,r,n);case 6:return this.actionTransition(t,e);case 1:return t.transform(e.target,!1);case 5:case 2:case 7:return o&&e.matches(D.Token.EOF,0,1)?t.transform(e.target,!1):void 0;default:return}}actionTransition(e,r){return t.debug&&console.log("ACTION edge "+r.ruleIndex+":"+r.actionIndex),e.transform(r.target,!1)}precedenceTransition(e,r,n,i){let o;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.precedence+">=_p, ctx dependent=true"),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&i){let t=P.SemanticContext.and(e.semanticContext,r.predicate);o=e.transform(r.target,!1,t)}else o=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+o),o}predTransition(e,r,n,i){let o;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.ruleIndex+":"+r.predIndex+", ctx dependent="+r.isCtxDependent),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&(!r.isCtxDependent||r.isCtxDependent&&i)){let t=P.SemanticContext.and(e.semanticContext,r.predicate);o=e.transform(r.target,!1,t)}else o=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+o),o}ruleTransition(e,r,n){t.debug&&console.log("CALL rule "+this.getRuleName(r.target.ruleIndex)+", ctx="+e.context);let i,o=r.followState;return i=!this.optimize_tail_calls||!r.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?null!=n?n.getChild(e.context,o.stateNumber):e.context.getChild(o.stateNumber):e.context,e.transform(r.target,!1,i)}isConflicted(e,r){if(e.uniqueAlt!==u.ATN.INVALID_ALT_NUMBER||e.size<=1)return;let n=e.toArray();n.sort(t.STATE_ALT_SORT_COMPARATOR);let i=!e.dipsIntoOuterContext,o=new _.BitSet,s=n[0].alt;o.set(s);let l,a=n[0].state.nonStopStateNumber;for(let t of n){let e=t.state.nonStopStateNumber;if(e!==a){if(t.alt!==s)return;a=e}}if(i){a=n[0].state.nonStopStateNumber,l=new _.BitSet;let t=s;for(let e of n){if(e.state.nonStopStateNumber!==a)break;let r=e.alt;l.set(r),t=r}a=n[0].state.nonStopStateNumber;let e=s;for(let r of n){let n=r.state.nonStopStateNumber,o=r.alt;if(n!==a){if(e!==t){i=!1;break}a=n,e=s}else if(o!==e){if(o!==l.nextSetBit(e+1)){i=!1;break}e=o}}}a=n[0].state.nonStopStateNumber;let c=0,h=0,p=n[0].context;for(let t=1;t"}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");let e=t.deadEndConfigs;if(e)for(let t of e){let e="no edges";if(t.state.numberOfOptimizedTransitions>0){let r=t.state.getOptimizedTransition(0);r instanceof f.AtomTransition?e="Atom "+this.getTokenName(r._label):r instanceof w.SetTransition&&(e=(r instanceof S.NotSetTransition?"~":"")+"Set "+r.set.toString())}console.log(t.toString(this._parser,!0)+":"+e)}}noViableAlt(t,e,r,n){return new O.NoViableAltException(this._parser,t,t.get(n),t.LT(1),r,e)}getUniqueAlt(t){let e=u.ATN.INVALID_ALT_NUMBER;for(let r of t)if(e===u.ATN.INVALID_ALT_NUMBER)e=r.alt;else if(r.alt!==e)return u.ATN.INVALID_ALT_NUMBER;return e}configWithAltAtStopState(t,e){for(let r of t)if(r.alt===e&&r.state instanceof I.RuleStopState)return!0;return!1}addDFAEdge(e,r,n,i,o,s){j(null==i||i.isEmpty||e.isContextSensitive);let l=r,a=this.addDFAState(e,o,s);if(null!=i)for(let t of i.toArray()){if(t===A.PredictionContext.EMPTY_FULL_STATE_KEY&&l.configs.isOutermostConfigSet)continue;l.setContextSensitive(this.atn),l.setContextSymbol(n);let r=l.getContextTarget(t);null==r?(r=this.addDFAContextState(e,l.configs,t,s),j(t!==A.PredictionContext.EMPTY_FULL_STATE_KEY||r.configs.isOutermostConfigSet),l.setContextTarget(t,r),l=r):l=r}return t.debug&&console.log("EDGE "+l+" -> "+a+" upon "+this.getTokenName(n)),this.setDFAEdge(l,n,a),t.debug&&console.log("DFA=\n"+e.toString(null!=this._parser?this._parser.vocabulary:M.VocabularyImpl.EMPTY_VOCABULARY,null!=this._parser?this._parser.ruleNames:void 0)),a}setDFAEdge(t,e,r){null!=t&&t.setTarget(e,r)}addDFAContextState(t,e,r,n){if(r!==A.PredictionContext.EMPTY_FULL_STATE_KEY){let i=new h.ATNConfigSet;for(let t of e)i.add(t.appendContext(r,n));return this.addDFAState(t,i,n)}return j(!e.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),(e=e.clone(!0)).isOutermostConfigSet=!0,this.addDFAState(t,e,n)}addDFAState(e,r,n){let i=this.enable_global_context_dfa||!r.isOutermostConfigSet;if(i){r.isReadOnly||r.optimizeConfigs(this);let t=this.createDFAState(e,r),n=e.states.get(t);if(null!=n)return n}r.isReadOnly||null==r.conflictInfo&&(r.conflictInfo=this.isConflicted(r,n));let s=this.createDFAState(e,r.clone(!0)),l=this.atn.getDecisionState(e.decision),a=this.getUniqueAlt(r);if(a!==u.ATN.INVALID_ALT_NUMBER)s.acceptStateInfo=new o.AcceptStateInfo(a);else if(null!=r.conflictingAlts){let t=r.conflictingAlts;t&&(s.acceptStateInfo=new o.AcceptStateInfo(t.nextSetBit(0)))}if(s.isAcceptState&&r.hasSemanticContext&&this.predicateDFAState(s,r,l.numberOfTransitions),!i)return s;let c=e.addState(s);return t.debug&&c===s&&console.log("adding new DFA state: "+s),c}createDFAState(t,e){return new m.DFAState(e)}reportAttemptingFullContext(e,r,n,i,o){if(t.debug||t.retry_debug){let t=N.Interval.of(i,o);console.log("reportAttemptingFullContext decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAttemptingFullContext&&t.reportAttemptingFullContext(this._parser,e,i,o,r,n)}}reportContextSensitivity(e,r,n,i,o){if(t.debug||t.retry_debug){let t=N.Interval.of(i,o);console.log("reportContextSensitivity decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportContextSensitivity&&t.reportContextSensitivity(this._parser,e,i,o,r,n)}}reportAmbiguity(e,r,n,i,o,s,l){if(t.debug||t.retry_debug){let t=N.Interval.of(n,i);console.log("reportAmbiguity "+s+":"+l+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAmbiguity&&t.reportAmbiguity(this._parser,e,n,i,o,s,l)}}getReturnState(t){return t.isEmpty?A.PredictionContext.EMPTY_FULL_STATE_KEY:this.atn.states[t.invokingState].transition(0).followState.stateNumber}skipTailCalls(t){if(!this.optimize_tail_calls)return t;for(;!t.isEmpty;){let e=this.atn.states[t.invokingState];if(j(1===e.numberOfTransitions&&3===e.transition(0).serializationType),!e.transition(0).tailCall)break;t=t.parent}return t}get parser(){return this._parser}};U.debug=!1,U.dfa_debug=!1,U.retry_debug=!1,U.STATE_ALT_SORT_COMPARATOR=(t,e)=>{let r=t.state.nonStopStateNumber-e.state.nonStopStateNumber;return 0!==r?r:(r=t.alt-e.alt,0!==r?r:0)},n([T.NotNull],U.prototype,"predictionMode",void 0),n([T.NotNull],U.prototype,"getPredictionMode",null),n([i(0,T.NotNull)],U.prototype,"setPredictionMode",null),n([T.Override],U.prototype,"reset",null),n([i(0,T.NotNull)],U.prototype,"adaptivePredict",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],U.prototype,"getStartState",null),n([i(0,T.NotNull),i(1,T.NotNull),i(3,T.NotNull)],U.prototype,"execDFA",null),n([i(0,T.NotNull),i(1,T.NotNull),i(3,T.NotNull)],U.prototype,"execATN",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"handleNoViableAlt",null),n([i(0,T.NotNull)],U.prototype,"getExistingTargetState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"computeTargetState",null),n([T.NotNull,i(0,T.NotNull)],U.prototype,"removeAllConfigsNotInRuleStopState",null),n([T.NotNull],U.prototype,"computeStartState",null),n([T.NotNull,i(0,T.NotNull)],U.prototype,"applyPrecedenceFilter",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getReachableTarget",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getPredsForAmbigAlts",null),n([i(0,T.NotNull)],U.prototype,"evalSemanticContext",null),n([i(0,T.NotNull)],U.prototype,"evalSemanticContextImpl",null),n([i(1,T.NotNull),i(4,T.Nullable)],U.prototype,"closure",null),n([i(0,T.NotNull),i(1,T.NotNull),i(2,T.Nullable),i(3,T.NotNull),i(6,T.NotNull)],U.prototype,"closureImpl",null),n([T.NotNull],U.prototype,"getRuleName",null),n([i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"getEpsilonTarget",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"actionTransition",null),n([T.Nullable,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"precedenceTransition",null),n([T.Nullable,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"predTransition",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(2,T.Nullable)],U.prototype,"ruleTransition",null),n([i(0,T.NotNull)],U.prototype,"isConflicted",null),n([T.NotNull],U.prototype,"getTokenName",null),n([i(0,T.NotNull)],U.prototype,"dumpDeadEndConfigs",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(2,T.NotNull)],U.prototype,"noViableAlt",null),n([i(0,T.NotNull)],U.prototype,"getUniqueAlt",null),n([i(0,T.NotNull)],U.prototype,"configWithAltAtStopState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull),i(4,T.NotNull)],U.prototype,"addDFAEdge",null),n([i(0,T.Nullable),i(2,T.Nullable)],U.prototype,"setDFAEdge",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"addDFAContextState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"addDFAState",null),n([T.NotNull,i(0,T.NotNull),i(1,T.NotNull)],U.prototype,"createDFAState",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"reportAttemptingFullContext",null),n([i(0,T.NotNull),i(2,T.NotNull)],U.prototype,"reportContextSensitivity",null),n([i(0,T.NotNull),i(5,T.NotNull),i(6,T.NotNull)],U.prototype,"reportAmbiguity",null),U=n([i(0,T.NotNull)],U),e.ParserATNSimulator=U},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(283);let s=class{constructor(t,e,r,n,i,o){this.decision=t,this.fullCtx=o,this.stopIndex=i,this.input=r,this.startIndex=n,this.state=e}};n([o.NotNull],s.prototype,"input",void 0),s=n([i(2,o.NotNull)],s),e.DecisionEventInfo=s},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(296),s=r(283),l=r(346);let a=class t extends o.RecognitionException{constructor(e,r,n){super(e,e.inputStream,e.context,t.formatMessage(r,n));let i=e.interpreter.atn.states[e.state].transition(0);i instanceof l.PredicateTransition?(this._ruleIndex=i.ruleIndex,this._predicateIndex=i.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=r,super.setOffendingToken(e,e.currentToken)}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(t,e){return e||`failed predicate: {${t}}?`}};n([s.NotNull],a,"formatMessage",null),a=n([i(0,s.NotNull)],a),e.FailedPredicateException=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283),o=r(285),s=r(291);class l{hashCode(t){return null==t?0:o.MurmurHash.hashCode(t,0)}equals(t,e){if(null==t)return null==e;if(null==e)return!1;if(t.length!==e.length)return!1;for(let r=0;r=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(296),s=r(283);let l=class extends o.RecognitionException{constructor(t,e,r){void 0===r&&(r=t.context),super(t,t.inputStream,r),void 0!==e&&this.setOffendingState(e),this.setOffendingToken(t,t.currentToken)}};l=n([i(0,s.NotNull)],l),e.InputMismatchException=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(348),s=r(293),l=r(320),a=r(310),u=r(321),c=r(322),h=r(287),p=r(295),d=r(299),f=r(377),_=r(323),g=r(283),y=r(379),m=r(289),x=r(312),N=r(284),E=r(288);let T=class t extends u.ATNSimulator{constructor(e,r){super(e),this.optimize_tail_calls=!0,this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=d.Lexer.DEFAULT_MODE,this.prevAccept=new t.SimState,this.recog=r}copyState(t){this._charPositionInLine=t.charPositionInLine,this._line=t._line,this.mode=t.mode,this.startIndex=t.startIndex}match(e,r){t.match_calls++,this.mode=r;let n=e.mark();try{this.startIndex=e.index,this.prevAccept.reset();let t=this.atn.modeToDFA[r].s0;return null==t?this.matchATN(e):this.execATN(e,t)}finally{e.release(n)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this._line=1,this._charPositionInLine=0,this.mode=d.Lexer.DEFAULT_MODE}matchATN(e){let r=this.atn.modeToStartState[this.mode];t.debug&&console.log(`matchATN mode ${this.mode} start: ${r}`);let n=this.mode,i=this.computeStartState(e,r),o=i.hasSemanticContext;o&&(i.hasSemanticContext=!1);let s=this.addDFAState(i);if(!o){let t=this.atn.modeToDFA[this.mode];t.s0?s=t.s0:t.s0=s}let l=this.execATN(e,s);return t.debug&&console.log(`DFA after matchATN: ${this.atn.modeToDFA[n].toLexerString()}`),l}execATN(e,r){t.debug&&console.log(`start state closure=${r.configs}`),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let n=e.LA(1),i=r;for(;;){t.debug&&console.log(`execATN loop starting closure: ${i.configs}`);let r=this.getExistingTargetState(i,n);if(null==r&&(r=this.computeTargetState(e,i,n)),r===u.ATNSimulator.ERROR)break;if(n!==p.IntStream.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),n===p.IntStream.EOF))break;n=e.LA(1),i=r}return this.failOrAccept(this.prevAccept,e,i.configs,n)}getExistingTargetState(e,r){let n=e.getTarget(r);return t.debug&&null!=n&&console.log("reuse state "+e.stateNumber+" edge to "+n.stateNumber),n}computeTargetState(t,e,r){let n=new y.OrderedATNConfigSet;return this.getReachableConfigSet(t,e.configs,n,r),n.isEmpty?(n.hasSemanticContext||this.addDFAEdge(e,r,u.ATNSimulator.ERROR),u.ATNSimulator.ERROR):this.addDFAEdge(e,r,n)}failOrAccept(t,e,r,n){if(null!=t.dfaState){let r=t.dfaState.lexerActionExecutor;return this.accept(e,r,this.startIndex,t.index,t.line,t.charPos),t.dfaState.prediction}if(n===p.IntStream.EOF&&e.index===this.startIndex)return N.Token.EOF;throw new _.LexerNoViableAltException(this.recog,e,this.startIndex,r)}getReachableConfigSet(e,r,n,i){let o=s.ATN.INVALID_ALT_NUMBER;for(let s of r){let r=s.alt===o;if(r&&s.hasPassedThroughNonGreedyDecision)continue;t.debug&&console.log(`testing ${this.getTokenName(i)} at ${s.toString(this.recog,!0)}`);let l=s.state.numberOfOptimizedTransitions;for(let t=0;t "+n+" upon "+String.fromCharCode(r)),null!=e&&e.setTarget(r,n)}addDFAState(t){E(!t.hasSemanticContext);let e=new c.DFAState(t),r=this.atn.modeToDFA[this.mode].states.get(e);if(null!=r)return r;t.optimizeConfigs(this);let n,i=new c.DFAState(t.clone(!0));for(let e of t)if(e.state instanceof x.RuleStopState){n=e;break}if(null!=n){let t=this.atn.ruleToTokenType[n.state.ruleIndex],e=n.lexerActionExecutor;i.acceptStateInfo=new o.AcceptStateInfo(t,e)}return this.atn.modeToDFA[this.mode].addState(i)}getDFA(t){return this.atn.modeToDFA[t]}getText(t){return t.getText(h.Interval.of(this.startIndex,t.index-1))}get line(){return this._line}set line(t){this._line=t}get charPositionInLine(){return this._charPositionInLine}set charPositionInLine(t){this._charPositionInLine=t}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this._line++,this._charPositionInLine=0):this._charPositionInLine++,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}};T.match_calls=0,n([g.NotNull],T.prototype,"prevAccept",void 0),n([i(0,g.NotNull)],T.prototype,"copyState",null),n([i(0,g.NotNull)],T.prototype,"match",null),n([g.Override],T.prototype,"reset",null),n([i(0,g.NotNull)],T.prototype,"matchATN",null),n([i(0,g.NotNull),i(1,g.NotNull)],T.prototype,"execATN",null),n([i(0,g.NotNull)],T.prototype,"getExistingTargetState",null),n([g.NotNull,i(0,g.NotNull),i(1,g.NotNull)],T.prototype,"computeTargetState",null),n([i(0,g.NotNull),i(1,g.NotNull),i(2,g.NotNull)],T.prototype,"getReachableConfigSet",null),n([i(0,g.NotNull)],T.prototype,"accept",null),n([g.NotNull,i(0,g.NotNull),i(1,g.NotNull)],T.prototype,"computeStartState",null),n([i(0,g.NotNull),i(1,g.NotNull),i(2,g.NotNull)],T.prototype,"closure",null),n([i(0,g.NotNull),i(1,g.NotNull),i(2,g.NotNull),i(3,g.NotNull)],T.prototype,"getEpsilonTarget",null),n([i(0,g.NotNull)],T.prototype,"evaluatePredicate",null),n([i(0,g.NotNull),i(1,g.NotNull),i(2,g.NotNull)],T.prototype,"captureSimState",null),n([g.NotNull,i(0,g.NotNull)],T.prototype,"addDFAState",null),n([g.NotNull],T.prototype,"getDFA",null),n([g.NotNull,i(0,g.NotNull)],T.prototype,"getText",null),n([i(0,g.NotNull)],T.prototype,"consume",null),n([g.NotNull],T.prototype,"getTokenName",null),T=n([i(0,g.NotNull)],T),e.LexerATNSimulator=T,function(t){t.debug=!1,t.dfa_debug=!1,t.SimState=class{constructor(){this.index=-1,this.line=0,this.charPos=-1}reset(){this.index=-1,this.line=0,this.charPos=-1,this.dfaState=void 0}}}(T=e.LexerATNSimulator||(e.LexerATNSimulator={})),e.LexerATNSimulator=T},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(306),s=r(303),l=r(285),a=r(283),u=r(291),c=r(289),h=r(305),p=r(288),d=2147483648;let f=class t{constructor(t,e,r){"number"==typeof e?(p((16777215&e)===e),this._state=t,this.altAndOuterContextDepth=e,this._context=r):(this._state=t,this.altAndOuterContextDepth=e.altAndOuterContextDepth,this._context=r)}static create(e,r,n,i=h.SemanticContext.NONE,o){return i!==h.SemanticContext.NONE?null!=o?new y(o,i,e,r,n,!1):new _(i,e,r,n):null!=o?new g(o,e,r,n,!1):new t(e,r,n)}get state(){return this._state}get alt(){return 16777215&this.altAndOuterContextDepth}get context(){return this._context}set context(t){this._context=t}get reachesIntoOuterContext(){return 0!==this.outerContextDepth}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(t){p(t>=0),t=Math.min(t,127),this.altAndOuterContextDepth=t<<24|(-2130706433&this.altAndOuterContextDepth)>>>0}get lexerActionExecutor(){}get semanticContext(){return h.SemanticContext.NONE}get hasPassedThroughNonGreedyDecision(){return!1}clone(){return this.transform(this.state,!1)}transform(t,e,r){return null==r?this.transformImpl(t,this._context,this.semanticContext,e,this.lexerActionExecutor):r instanceof c.PredictionContext?this.transformImpl(t,r,this.semanticContext,e,this.lexerActionExecutor):r instanceof h.SemanticContext?this.transformImpl(t,this._context,r,e,this.lexerActionExecutor):this.transformImpl(t,this._context,this.semanticContext,e,r)}transformImpl(e,r,n,i,o){let s=i&&t.checkNonGreedyDecision(this,e);return n!==h.SemanticContext.NONE?null!=o||s?new y(o,n,e,this,r,s):new _(n,e,this,r):null!=o||s?new g(o,e,this,r,s):new t(e,this,r)}static checkNonGreedyDecision(t,e){return t.hasPassedThroughNonGreedyDecision||e instanceof s.DecisionState&&e.nonGreedy}appendContext(t,e){if("number"==typeof t){let r=this.context.appendSingleContext(t,e);return this.transform(this.state,!1,r)}{let r=this.context.appendContext(t,e);return this.transform(this.state,!1,r)}}contains(t){if(this.state.stateNumber!==t.state.stateNumber||this.alt!==t.alt||!this.semanticContext.equals(t.semanticContext))return!1;let e=[],r=[];for(e.push(this.context),r.push(t.context);;){let t=e.pop(),n=r.pop();if(!t||!n)break;if(t===n)return!0;if(t.size=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(310),s=r(322),l=r(283),a=r(289);let u=class t{constructor(t){this.atn=t}static get ERROR(){return t._ERROR||(t._ERROR=new s.DFAState(new o.ATNConfigSet),t._ERROR.stateNumber=a.PredictionContext.EMPTY_FULL_STATE_KEY),t._ERROR}clearDFA(){this.atn.clearDFA()}};n([l.NotNull],u.prototype,"atn",void 0),n([l.NotNull],u,"ERROR",null),u=n([i(0,l.NotNull)],u),e.ATNSimulator=u,u=e.ATNSimulator||(e.ATNSimulator={}),e.ATNSimulator=u},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(293),s=r(300),l=r(285),a=r(283),u=r(289),c=r(288);class h{constructor(t){this.stateNumber=-1,this.configs=t,this.edges=new Map,this.contextEdges=new Map}get isContextSensitive(){return!!this.contextSymbols}isContextSymbol(t){return!!this.isContextSensitive&&this.contextSymbols.get(t)}setContextSymbol(t){c(this.isContextSensitive),this.contextSymbols.set(t)}setContextSensitive(t){c(!this.configs.isOutermostConfigSet),this.isContextSensitive||this.contextSymbols||(this.contextSymbols=new s.BitSet)}get acceptStateInfo(){return this._acceptStateInfo}set acceptStateInfo(t){this._acceptStateInfo=t}get isAcceptState(){return!!this._acceptStateInfo}get prediction(){return this._acceptStateInfo?this._acceptStateInfo.prediction:o.ATN.INVALID_ALT_NUMBER}get lexerActionExecutor(){if(this._acceptStateInfo)return this._acceptStateInfo.lexerActionExecutor}getTarget(t){return this.edges.get(t)}setTarget(t,e){this.edges.set(t,e)}getEdgeMap(){return this.edges}getContextTarget(t){return t===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.get(t)}setContextTarget(t,e){if(!this.isContextSensitive)throw new Error("The state is not context sensitive.");t===u.PredictionContext.EMPTY_FULL_STATE_KEY&&(t=-1),this.contextEdges.set(t,e)}getContextEdgeMap(){let t=new Map(this.contextEdges),e=t.get(-1);if(void 0!==e){if(1===t.size){let t=new Map;return t.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,e),t}t.delete(-1),t.set(u.PredictionContext.EMPTY_FULL_STATE_KEY,e)}return t}hashCode(){let t=l.MurmurHash.initialize(7);return t=l.MurmurHash.update(t,this.configs.hashCode()),t=l.MurmurHash.finish(t,1),t}equals(t){if(this===t)return!0;if(!(t instanceof h))return!1;let e=t;return this.configs.equals(e.configs)}toString(){let t="";return t+=this.stateNumber+":"+this.configs,this.isAcceptState&&(t+="=>",this.predicates?t+=this.predicates:t+=this.prediction),t.toString()}}n([a.NotNull],h.prototype,"configs",void 0),n([a.NotNull],h.prototype,"edges",void 0),n([a.NotNull],h.prototype,"contextEdges",void 0),n([a.Override],h.prototype,"hashCode",null),n([a.Override],h.prototype,"equals",null),n([a.Override],h.prototype,"toString",null),e.DFAState=h,function(t){let e=class{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}};n([a.NotNull],e.prototype,"pred",void 0),n([a.Override],e.prototype,"toString",null),e=n([i(0,a.NotNull)],e),t.PredPrediction=e}(h=e.DFAState||(e.DFAState={}))},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(296),s=r(283),l=r(287),a=r(292);let u=class extends o.RecognitionException{constructor(t,e,r,n){super(t,e),this._startIndex=r,this._deadEndConfigs=n}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let t="";return this._startIndex>=0&&this._startIndex=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(313),o=r(296),s=r(283);class l extends o.RecognitionException{constructor(t,e,r,n,o,s){t instanceof i.Parser&&(void 0===e&&(e=t.inputStream),void 0===r&&(r=t.currentToken),void 0===n&&(n=t.currentToken),void 0===s&&(s=t.context)),super(t,e,s),this._deadEndConfigs=o,this._startToken=r,this.setOffendingToken(t,n)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}}n([s.NotNull],l.prototype,"_startToken",void 0),e.NoViableAltException=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(356),s=r(298),l=r(293),a=r(355),u=r(286),c=r(357),h=r(380),p=r(353),d=r(300),f=r(381),_=r(326),g=r(303),y=r(349),m=r(382),x=r(302),N=r(352),E=r(383),T=r(384),S=r(385),O=r(386),v=r(387),R=r(388),A=r(389),C=r(390),b=r(358),I=r(283),L=r(335),P=r(314),w=r(393),k=r(394),D=r(395),M=r(346),j=r(396),F=r(397),U=r(312),z=r(337),H=r(336),B=r(398),q=r(399),G=r(334),V=r(284),Y=r(400),K=r(401),W=r(354);var $;!function(t){t[t.UNICODE_BMP=0]="UNICODE_BMP",t[t.UNICODE_SMP=1]="UNICODE_SMP"}($||($={}));class X{constructor(t){null==t&&(t=a.ATNDeserializationOptions.defaultOptions),this.deserializationOptions=t}static get SERIALIZED_VERSION(){return 3}static isFeatureSupported(t,e){let r=X.SUPPORTED_UUIDS.findIndex((e=>e.equals(t)));return!(r<0)&&X.SUPPORTED_UUIDS.findIndex((t=>t.equals(e)))>=r}static getUnicodeDeserializer(t){return 0===t?{readUnicode:(t,e)=>X.toInt(t[e]),size:1}:{readUnicode:(t,e)=>X.toInt32(t,e),size:2}}deserialize(t){t=t.slice(0);for(let e=1;et.equals(n)))<0){let t=`Could not deserialize ATN with UUID ${n} (expected ${X.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(t)}let i=X.isFeatureSupported(X.ADDED_LEXER_ACTIONS,n),a=X.toInt(t[e++]),d=X.toInt(t[e++]),g=new l.ATN(a,d),x=[],E=[],S=X.toInt(t[e++]);for(let r=0;rt.stopState^t.returnState^t.outermostPrecedenceReturn,equals:(t,e)=>t.stopState===e.stopState&&t.returnState===e.returnState&&t.outermostPrecedenceReturn===e.outermostPrecedenceReturn}),D=[];for(let t of g.states){let e=t.ruleIndex>=0&&g.ruleToStartState[t.ruleIndex].leftFactored;for(let r=0;r0;){let r=g.ruleToStartState[t].removeTransition(g.ruleToStartState[t].numberOfTransitions-1);e.addTransition(r)}g.ruleToStartState[t].addTransition(new m.EpsilonTransition(e)),i.addTransition(new m.EpsilonTransition(r));let o=new p.BasicState;g.addState(o),o.addTransition(new c.AtomTransition(i,g.ruleToTokenType[t])),e.addTransition(new m.EpsilonTransition(o))}this.deserializationOptions.isVerifyATN&&this.verifyATN(g)}if(this.deserializationOptions.isOptimize){for(;;){let t=0;t+=X.inlineSetRules(g),t+=X.combineChainedEpsilons(g);let e=0===g.grammarType;if(t+=X.optimizeSets(g,e),0===t)break}this.deserializationOptions.isVerifyATN&&this.verifyATN(g)}return X.identifyTailCalls(g),g}deserializeSets(t,e,r,n){let i=X.toInt(t[e++]);for(let o=0;o=0)}else this.checkCondition(e.numberOfTransitions<=1||e instanceof U.RuleStopState)}}checkCondition(t,e){if(!t)throw new Error("IllegalStateException: "+e)}static inlineSetRules(t){let e=0,r=new Array(t.ruleToStartState.length);for(let e=0;e0;)n.removeOptimizedTransition(n.numberOfOptimizedTransitions-1);for(let t of i)n.addOptimizedTransition(t)}}return P.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" rule invocations by inlining sets."),e}static combineChainedEpsilons(t){let e=0;for(let r of t.states){if(!r.onlyHasEpsilonTransitions||r instanceof U.RuleStopState)continue;let t;t:for(let n=0;n0;)r.removeOptimizedTransition(r.numberOfOptimizedTransitions-1);for(let e of t)r.addOptimizedTransition(e)}}return P.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" transitions by combining chained epsilon transitions."),e}static optimizeSets(t,e){if(e)return 0;let r=0,n=t.decisionToState;for(let e of n){let n=new x.IntervalSet;for(let t=0;t0;)e.removeOptimizedTransition(e.numberOfOptimizedTransitions-1);for(let t of i)e.addOptimizedTransition(t)}return P.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+r+" paths by collapsing sets."),r}static identifyTailCalls(t){for(let e of t.states){for(let r=0;r>>0}static toUUID(t,e){let r=X.toInt32(t,e),n=X.toInt32(t,e+2),i=X.toInt32(t,e+4),o=X.toInt32(t,e+6);return new K.UUID(o,i,n,r)}edgeFactory(t,e,r,n,i,s,l,a){let u=t.states[n];switch(e){case 1:return new m.EpsilonTransition(u);case 2:return 0!==l?new j.RangeTransition(u,V.Token.EOF,s):new j.RangeTransition(u,i,s);case 3:return new z.RuleTransition(t.states[i],s,l,u);case 4:return new M.PredicateTransition(u,i,s,0!==l);case 10:return new D.PrecedencePredicateTransition(u,i);case 5:return 0!==l?new c.AtomTransition(u,V.Token.EOF):new c.AtomTransition(u,i);case 6:return new o.ActionTransition(u,i,s,0!==l);case 7:return new H.SetTransition(u,a[i]);case 8:return new L.NotSetTransition(u,a[i]);case 9:return new W.WildcardTransition(u)}throw new Error("The specified transition type is not valid.")}stateFactory(t,e){let r;switch(t){case u.ATNStateType.INVALID_TYPE:return new N.InvalidState;case u.ATNStateType.BASIC:r=new p.BasicState;break;case u.ATNStateType.RULE_START:r=new F.RuleStartState;break;case u.ATNStateType.BLOCK_START:r=new h.BasicBlockStartState;break;case u.ATNStateType.PLUS_BLOCK_START:r=new w.PlusBlockStartState;break;case u.ATNStateType.STAR_BLOCK_START:r=new B.StarBlockStartState;break;case u.ATNStateType.TOKEN_START:r=new Y.TokensStartState;break;case u.ATNStateType.RULE_STOP:r=new U.RuleStopState;break;case u.ATNStateType.BLOCK_END:r=new f.BlockEndState;break;case u.ATNStateType.STAR_LOOP_BACK:r=new q.StarLoopbackState;break;case u.ATNStateType.STAR_LOOP_ENTRY:r=new G.StarLoopEntryState;break;case u.ATNStateType.PLUS_LOOP_BACK:r=new k.PlusLoopbackState;break;case u.ATNStateType.LOOP_END:r=new b.LoopEndState;break;default:throw new Error(`The specified state type ${t} is not valid.`)}return r.ruleIndex=e,r}lexerActionFactory(t,e,r){switch(t){case 0:return new E.LexerChannelAction(e);case 1:return new T.LexerCustomAction(e,r);case 2:return new S.LexerModeAction(e);case 3:return O.LexerMoreAction.INSTANCE;case 4:return v.LexerPopModeAction.INSTANCE;case 5:return new R.LexerPushModeAction(e);case 6:return A.LexerSkipAction.INSTANCE;case 7:return new C.LexerTypeAction(e);default:throw new Error(`The specified lexer action type ${t} is not valid.`)}}}X.BASE_SERIALIZED_UUID=K.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),X.ADDED_LEXER_ACTIONS=K.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),X.ADDED_UNICODE_SMP=K.UUID.fromString("C23FEA89-0605-4f51-AFB8-058BCAB8C91B"),X.SUPPORTED_UUIDS=[X.BASE_SERIALIZED_UUID,X.ADDED_LEXER_ACTIONS,X.ADDED_UNICODE_SMP],X.SERIALIZED_UUID=X.ADDED_UNICODE_SMP,n([I.NotNull],X.prototype,"deserializationOptions",void 0),n([i(0,I.NotNull)],X.prototype,"deserialize",null),n([i(0,I.NotNull)],X.prototype,"markPrecedenceDecisions",null),n([I.NotNull,i(0,I.NotNull)],X.prototype,"edgeFactory",null),e.ATNDeserializer=X},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0});const n=r(303);class i extends n.DecisionState{}e.BlockStartState=i},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(294),s=r(286),l=r(316),a=r(318),u=r(302),c=r(324),h=r(289),p=r(284),d=r(283);class f{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=void 0,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof c.NoViableAltException?this.reportNoViableAlternative(t,e):e instanceof a.InputMismatchException?this.reportInputMismatch(t,e):e instanceof l.FailedPredicateException?this.reportFailedPredicate(t,e):(console.error(`unknown recognition error type: ${e}`),this.notifyErrorListeners(t,e.toString(),e)))}notifyErrorListeners(t,e,r){let n=r.getOffendingToken(t);void 0===n&&(n=null),t.notifyErrorListeners(e,n,r)}recover(t,e){this.lastErrorIndex===t.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(t.state)&&t.consume(),this.lastErrorIndex=t.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new u.IntervalSet),this.lastErrorStates.add(t.state);let r=this.getErrorRecoverySet(t);this.consumeUntil(t,r)}sync(t){let e=t.interpreter.atn.states[t.state];if(this.inErrorRecoveryMode(t))return;let r=t.inputStream.LA(1),n=t.atn.nextTokens(e);if(n.contains(r))return this.nextTokensContext=void 0,void(this.nextTokensState=o.ATNState.INVALID_STATE_NUMBER);if(n.contains(p.Token.EPSILON))void 0===this.nextTokensContext&&(this.nextTokensContext=t.context,this.nextTokensState=t.state);else switch(e.stateType){case s.ATNStateType.BLOCK_START:case s.ATNStateType.STAR_BLOCK_START:case s.ATNStateType.PLUS_BLOCK_START:case s.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(t))return;throw new a.InputMismatchException(t);case s.ATNStateType.PLUS_LOOP_BACK:case s.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(t);let e=t.getExpectedTokens().or(this.getErrorRecoverySet(t));this.consumeUntil(t,e)}}reportNoViableAlternative(t,e){let r,n=t.inputStream;r=n?e.startToken.type===p.Token.EOF?"":n.getTextFromRange(e.startToken,e.getOffendingToken()):"";let i="no viable alternative at input "+this.escapeWSAndQuote(r);this.notifyErrorListeners(t,i,e)}reportInputMismatch(t,e){let r=e.expectedTokens,n=r?r.toStringVocabulary(t.vocabulary):"",i="mismatched input "+this.getTokenErrorDisplay(e.getOffendingToken(t))+" expecting "+n;this.notifyErrorListeners(t,i,e)}reportFailedPredicate(t,e){let r="rule "+t.ruleNames[t.context.ruleIndex]+" "+e.message;this.notifyErrorListeners(t,r,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary);t.notifyErrorListeners(r,e,void 0)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="missing "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,void 0)}recoverInline(t){let e=this.singleTokenDeletion(t);if(e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw void 0===this.nextTokensContext?new a.InputMismatchException(t):new a.InputMismatchException(t,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(t){let e=t.inputStream.LA(1),r=t.interpreter.atn.states[t.state].transition(0).target,n=t.interpreter.atn;return!!n.nextTokens(r,h.PredictionContext.fromRuleContext(n,t.context)).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){let e=t.inputStream.LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();let e=t.currentToken;return this.reportMatch(t),e}}getMissingSymbol(t){let e,r=t.currentToken,n=this.getExpectedTokens(t),i=p.Token.INVALID_TYPE;n.isNil||(i=n.minElement),e=i===p.Token.EOF?"":"";let o=r,s=t.inputStream.tryLT(-1);return o.type===p.Token.EOF&&null!=s&&(o=s),this.constructToken(t.inputStream.tokenSource,i,e,o)}constructToken(t,e,r,n){let i=t.tokenFactory,o=n.tokenSource,s=o?o.inputStream:void 0;return i.create({source:t,stream:s},e,r,p.Token.DEFAULT_CHANNEL,-1,-1,n.line,n.charPositionInLine)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(!t)return"";let e=this.getSymbolText(t);return e||(e=this.getSymbolType(t)===p.Token.EOF?"":`<${this.getSymbolType(t)}>`),this.escapeWSAndQuote(e)}getSymbolText(t){return t.text}getSymbolType(t){return t.type}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace("\n","\\n")).replace("\r","\\r")).replace("\t","\\t"))+"'"}getErrorRecoverySet(t){let e=t.interpreter.atn,r=t.context,n=new u.IntervalSet;for(;r&&r.invokingState>=0;){let t=e.states[r.invokingState].transition(0),i=e.nextTokens(t.followState);n.addAll(i),r=r._parent}return n.remove(p.Token.EPSILON),n}consumeUntil(t,e){let r=t.inputStream.LA(1);for(;r!==p.Token.EOF&&!e.contains(r);)t.consume(),r=t.inputStream.LA(1)}}n([d.Override],f.prototype,"reset",null),n([i(0,d.NotNull)],f.prototype,"beginErrorCondition",null),n([d.Override],f.prototype,"inErrorRecoveryMode",null),n([i(0,d.NotNull)],f.prototype,"endErrorCondition",null),n([d.Override],f.prototype,"reportMatch",null),n([d.Override],f.prototype,"reportError",null),n([i(0,d.NotNull)],f.prototype,"notifyErrorListeners",null),n([d.Override],f.prototype,"recover",null),n([d.Override],f.prototype,"sync",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"reportNoViableAlternative",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"reportInputMismatch",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"reportFailedPredicate",null),n([i(0,d.NotNull)],f.prototype,"reportUnwantedToken",null),n([i(0,d.NotNull)],f.prototype,"reportMissingToken",null),n([d.Override],f.prototype,"recoverInline",null),n([i(0,d.NotNull)],f.prototype,"singleTokenInsertion",null),n([i(0,d.NotNull)],f.prototype,"singleTokenDeletion",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"getMissingSymbol",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"getExpectedTokens",null),n([i(0,d.NotNull)],f.prototype,"getSymbolText",null),n([i(0,d.NotNull)],f.prototype,"getSymbolType",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"escapeWSAndQuote",null),n([d.NotNull,i(0,d.NotNull)],f.prototype,"getErrorRecoverySet",null),n([i(0,d.NotNull),i(1,d.NotNull)],f.prototype,"consumeUntil",null),e.DefaultErrorStrategy=f},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0});const n=r(297);class i extends n.Transition{constructor(t){super(t)}}e.AbstractPredicateTransition=i},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(330),o=r(283),s=new Int32Array(0),l=2147483639;class a{constructor(t){if(t)if(t instanceof a)this._data=t._data.slice(0),this._size=t._size;else if("number"==typeof t)0===t?(this._data=s,this._size=0):(this._data=new Int32Array(t),this._size=0);else{this._data=s,this._size=0;for(let e of t)this.add(e)}else this._data=s,this._size=0}add(t){this._data.length===this._size&&this.ensureCapacity(this._size+1),this._data[this._size]=t,this._size++}addAll(t){if(Array.isArray(t))this.ensureCapacity(this._size+t.length),this._data.subarray(this._size,this._size+t.length).set(t),this._size+=t.length;else if(t instanceof a)this.ensureCapacity(this._size+t._size),this._data.subarray(this._size,this._size+t.size).set(t._data),this._size+=t._size;else{this.ensureCapacity(this._size+t.size);let e=0;for(let r of t)this._data[this._size+e]=r,e++;this._size+=t.size}}get(t){if(t<0||t>=this._size)throw RangeError();return this._data[t]}contains(t){for(let e=0;e=this._size)throw RangeError();let r=this._data[t];return this._data[t]=e,r}removeAt(t){let e=this.get(t);return this._data.copyWithin(t,t+1,this._size),this._data[this._size-1]=0,this._size--,e}removeRange(t,e){if(t<0||e<0||t>this._size||e>this._size)throw RangeError();if(t>e)throw RangeError();this._data.copyWithin(e,t,this._size),this._data.fill(0,this._size-(e-t),this._size),this._size-=e-t}get isEmpty(){return 0===this._size}get size(){return this._size}trimToSize(){this._data.length!==this._size&&(this._data=this._data.slice(0,this._size))}clear(){this._data.fill(0,0,this._size),this._size=0}toArray(){return 0===this._size?[]:Array.from(this._data.subarray(0,this._size))}sort(){this._data.subarray(0,this._size).sort()}equals(t){if(t===this)return!0;if(!(t instanceof a))return!1;if(this._size!==t._size)return!1;for(let e=0;ethis._size||r>this._size)throw new RangeError;if(e>r)throw new RangeError;return i.Arrays.binarySearch(this._data,t,e,r)}ensureCapacity(t){if(t<0||t>l)throw new RangeError;let e;for(e=0===this._data.length?4:this._data.length;el)&&(e=l);let r=new Int32Array(e);r.set(this._data),this._data=r}toCharArray(){let t=new Uint16Array(this._size),e=0,r=!1;for(let n=0;n=0&&i<65536){t[e]=i,e++;continue}if(!r){let e=new Uint16Array(this.charArraySize());e.set(t,0),t=e,r=!0}let o=String.fromCodePoint(i);t[e]=o.charCodeAt(0),t[e+1]=o.charCodeAt(1),e+=2}return t}charArraySize(){let t=0;for(let e=0;e=65536?2:1;return t}}n([o.NotNull],a.prototype,"_data",void 0),n([o.Override],a.prototype,"equals",null),n([o.Override],a.prototype,"hashCode",null),n([o.Override],a.prototype,"toString",null),e.IntegerList=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.Arrays||(e.Arrays={})).binarySearch=function(t,e,r,n){return function(t,e,r,n){let i=e,o=r-1;for(;i<=o;){let e=i+o>>>1,r=t[e];if(rn))return e;o=e-1}}return-(i+1)}(t,void 0!==r?r:0,void 0!==n?n:t.length,e)},n.toString=function(t){let e="[",r=!0;for(let n of t)r?r=!1:e+=", ",e+=null===n?"null":void 0===n?"undefined":n;return e+="]",e}},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(309),o=r(287),s=r(283);class l{constructor(t=!1){this.copyText=t}create(t,e,r,n,s,l,a,u){let c=new i.CommonToken(e,r,t,n,s,l);return c.line=a,c.charPositionInLine=u,null==r&&this.copyText&&null!=t.stream&&(c.text=t.stream.getText(o.Interval.of(s,l))),c}createSimple(t,e){return new i.CommonToken(t,e)}}n([s.Override],l.prototype,"create",null),n([s.Override],l.prototype,"createSimple",null),e.CommonTokenFactory=l,function(t){t.DEFAULT=new t}(l=e.CommonTokenFactory||(e.CommonTokenFactory={}))},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(306),o=r(283),s=r(291),l=r(289),a=r(288);class u{constructor(t=!0){this.contexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.childContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.joinContexts=new i.Array2DHashMap(s.ObjectEqualityComparator.INSTANCE),this.enableCache=t}getAsCached(t){if(!this.enableCache)return t;let e=this.contexts.get(t);return e||(e=t,this.contexts.put(t,t)),e}getChild(t,e){if(!this.enableCache)return t.getChild(e);let r=new u.PredictionContextAndInt(t,e),n=this.childContexts.get(r);return n||(n=t.getChild(e),n=this.getAsCached(n),this.childContexts.put(r,n)),n}join(t,e){if(!this.enableCache)return l.PredictionContext.join(t,e,this);let r=new u.IdentityCommutativePredictionContextOperands(t,e),n=this.joinContexts.get(r);return n||(n=l.PredictionContext.join(t,e,this),n=this.getAsCached(n),this.joinContexts.put(r,n),n)}}u.UNCACHED=new u(!1),e.PredictionContextCache=u,function(t){class e{constructor(t,e){this.obj=t,this.value=e}equals(t){if(!(t instanceof e))return!1;if(t===this)return!0;let r=t;return this.value===r.value&&(this.obj===r.obj||null!=this.obj&&this.obj.equals(r.obj))}hashCode(){let t=5;return t=7*t+(null!=this.obj?this.obj.hashCode():0),t=7*t+this.value,t}}n([o.Override],e.prototype,"equals",null),n([o.Override],e.prototype,"hashCode",null),t.PredictionContextAndInt=e;class r{constructor(t,e){a(null!=t),a(null!=e),this._x=t,this._y=e}get x(){return this._x}get y(){return this._y}equals(t){if(!(t instanceof r))return!1;if(this===t)return!0;let e=t;return this._x===e._x&&this._y===e._y||this._x===e._y&&this._y===e._x}hashCode(){return this._x.hashCode()^this._y.hashCode()}}n([o.Override],r.prototype,"equals",null),n([o.Override],r.prototype,"hashCode",null),t.IdentityCommutativePredictionContextOperands=r}(u=e.PredictionContextCache||(e.PredictionContextCache={}))},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(283);class s{constructor(t){if(this.delegates=t,!t)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(t,e,r,n,i,o){this.delegates.forEach((s=>{s.syntaxError&&s.syntaxError(t,e,r,n,i,o)}))}}n([o.Override,i(0,o.NotNull),i(4,o.NotNull)],s.prototype,"syntaxError",null),e.ProxyErrorListener=s},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(286),o=r(300),s=r(303),l=r(283);class a extends s.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new o.BitSet}get stateType(){return i.ATNStateType.STAR_LOOP_ENTRY}}n([l.Override],a.prototype,"stateType",null),e.StarLoopEntryState=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(283),s=r(336);let l=class extends s.SetTransition{constructor(t,e){super(t,e)}get serializationType(){return 8}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}};n([o.Override],l.prototype,"serializationType",null),n([o.Override],l.prototype,"matches",null),n([o.Override],l.prototype,"toString",null),l=n([i(0,o.NotNull),i(1,o.Nullable)],l),e.NotSetTransition=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(302),s=r(283),l=r(284),a=r(297);let u=class extends a.Transition{constructor(t,e){super(t),null==e&&(e=o.IntervalSet.of(l.Token.INVALID_TYPE)),this.set=e}get serializationType(){return 7}get label(){return this.set}matches(t,e,r){return this.set.contains(t)}toString(){return this.set.toString()}};n([s.NotNull],u.prototype,"set",void 0),n([s.Override],u.prototype,"serializationType",null),n([s.Override,s.NotNull],u.prototype,"label",null),n([s.Override],u.prototype,"matches",null),n([s.Override,s.NotNull],u.prototype,"toString",null),u=n([i(0,s.NotNull),i(1,s.Nullable)],u),e.SetTransition=u},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(283),s=r(297);let l=class extends s.Transition{constructor(t,e,r,n){super(t),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=e,this.precedence=r,this.followState=n}get serializationType(){return 3}get isEpsilon(){return!0}matches(t,e,r){return!1}};n([o.NotNull],l.prototype,"followState",void 0),n([o.Override],l.prototype,"serializationType",null),n([o.Override],l.prototype,"isEpsilon",null),n([o.Override],l.prototype,"matches",null),l=n([i(0,o.NotNull),i(3,o.NotNull)],l),e.RuleTransition=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283),o=r(307);class s extends o.TerminalNode{constructor(t){super(t)}accept(t){return t.visitErrorNode(this)}}n([i.Override],s.prototype,"accept",null),e.ErrorNode=s},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0}),e.RuleNode=class{}},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0});const n=r(362),i=r(363),o=r(295);(e.CharStreams||(e.CharStreams={})).fromString=function(t,e){void 0!==e&&0!==e.length||(e=o.IntStream.UNKNOWN_SOURCE_NAME);let r=n.CodePointBuffer.builder(t.length),s=new Uint16Array(t.length);for(let e=0;e=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(364),s=r(283),l=r(284);let a=class extends o.BufferedTokenStream{constructor(t,e=l.Token.DEFAULT_CHANNEL){super(t),this.channel=e}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}tryLB(t){if(this.p-t<0)return;let e=this.p,r=1;for(;r<=t&&e>0;)e=this.previousTokenOnChannel(e-1,this.channel),r++;return e<0?void 0:this.tokens[e]}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p,r=1;for(;r{throw t},e.removeErrorListeners(),e.addErrorListener(new u.XPathLexerErrorListener);let r=new i.CommonTokenStream(e);try{r.fill()}catch(r){if(r instanceof o.LexerNoViableAltException){let n="Invalid tokens or characters at index "+e.charPositionInLine+" in path '"+t+"' -- "+r.message;throw new RangeError(n)}throw r}let s=r.getTokens(),c=[],h=s.length,p=0;t:for(;p0&&this.elements[n].evaluate(e).forEach(t.add,t);n++,r=t}return r}}g.WILDCARD="*",g.NOT="!",e.XPath=g},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(r(372)),n(r(345)),n(r(364)),n(r(340)),n(r(362)),n(r(363)),n(r(309)),n(r(331)),n(r(341)),n(r(351)),n(r(327)),n(r(426)),n(r(427)),n(r(316)),n(r(318)),n(r(368)),n(r(295)),n(r(299)),n(r(428)),n(r(323)),n(r(365)),n(r(324)),n(r(313)),n(r(367)),n(r(290)),n(r(333)),n(r(361)),n(r(296)),n(r(311)),n(r(359)),n(r(429)),n(r(430)),n(r(431)),n(r(284)),n(r(432)),n(r(301))},,function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(327),o=r(318),s=r(283),l=r(366);class a extends i.DefaultErrorStrategy{recover(t,e){for(let r=t.context;r;r=r.parent)r.exception=e;throw new l.ParseCancellationException(e)}recoverInline(t){let e=new o.InputMismatchException(t);for(let r=t.context;r;r=r.parent)r.exception=e;throw new l.ParseCancellationException(e)}sync(t){}}n([s.Override],a.prototype,"recover",null),n([s.Override],a.prototype,"recoverInline",null),n([s.Override],a.prototype,"sync",null),e.BailErrorStrategy=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(328),s=r(283),l=r(305);let a=class extends o.AbstractPredicateTransition{constructor(t,e,r,n){super(t),this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=n}get serializationType(){return 4}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new l.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};n([s.Override],a.prototype,"serializationType",null),n([s.Override],a.prototype,"isEpsilon",null),n([s.Override],a.prototype,"matches",null),n([s.Override,s.NotNull],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.PredicateTransition=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0});const n=r(329);class i extends n.IntegerList{constructor(t){super(t)}push(t){this.add(t)}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}}e.IntegerStack=i},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0}),e.AcceptStateInfo=class{constructor(t,e){this._prediction=t,this._lexerActionExecutor=e}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}}},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(298),s=r(310),l=r(350),a=r(322),u=r(375),c=r(283),h=r(291),p=r(334),d=r(301);let f=class{constructor(t,e=0){if(this.states=new o.Array2DHashSet(h.ObjectEqualityComparator.INSTANCE),this.nextStateNumber=0,!t.atn)throw new Error("The ATNState must be associated with an ATN");this.atnStartState=t,this.atn=t.atn,this.decision=e;let r=!1;t instanceof p.StarLoopEntryState&&t.precedenceRuleDecision&&(r=!0,this.s0=new a.DFAState(new s.ATNConfigSet),this.s0full=new a.DFAState(new s.ATNConfigSet)),this.precedenceDfa=r}get isPrecedenceDfa(){return this.precedenceDfa}getPrecedenceStartState(t,e){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");return e?this.s0full.getTarget(t):this.s0.getTarget(t)}setPrecedenceStartState(t,e,r){if(!this.isPrecedenceDfa)throw new Error("Only precedence DFAs may contain a precedence start state.");t<0||(e?this.s0full.setTarget(t,r):this.s0.setTarget(t,r))}get isEmpty(){return this.isPrecedenceDfa?0===this.s0.getEdgeMap().size&&0===this.s0full.getEdgeMap().size:null==this.s0&&null==this.s0full}get isContextSensitive(){return this.isPrecedenceDfa?this.s0full.getEdgeMap().size>0:null!=this.s0full}addState(t){return t.stateNumber=this.nextStateNumber++,this.states.getOrAdd(t)}toString(t,e){if(t||(t=d.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return"";let r;return r=e?new l.DFASerializer(this,t,e,this.atnStartState.atn):new l.DFASerializer(this,t),r.toString()}toLexerString(){return this.s0?new u.LexerDFASerializer(this).toString():""}};n([c.NotNull],f.prototype,"states",void 0),n([c.NotNull],f.prototype,"atnStartState",void 0),n([c.NotNull],f.prototype,"atn",void 0),f=n([i(0,c.NotNull)],f),e.DFA=f},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(321),o=r(283),s=r(289),l=r(311),a=r(301);class u{constructor(t,e,r,n){e instanceof l.Recognizer?(r=e.ruleNames,n=e.atn,e=e.vocabulary):e||(e=a.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=t,this.vocabulary=e,this.ruleNames=r,this.atn=n}toString(){if(!this.dfa.s0)return"";let t="";if(this.dfa.states){let e=new Array(...this.dfa.states.toArray());e.sort(((t,e)=>t.stateNumber-e.stateNumber));for(let r of e){let e=r.getEdgeMap(),n=[...e.keys()].sort(((t,e)=>t-e)),o=r.getContextEdgeMap(),s=[...o.keys()].sort(((t,e)=>t-e));for(let o of n){let n=e.get(o);if((null==n||n===i.ATNSimulator.ERROR)&&!r.isContextSymbol(o))continue;let s=!1;t+=this.getStateString(r)+"-"+this.getEdgeLabel(o)+"->",r.isContextSymbol(o)&&(t+="!",s=!0);let l=n;l&&l.stateNumber!==i.ATNSimulator.ERROR.stateNumber?t+=this.getStateString(l)+"\n":s&&(t+="ctx\n")}if(r.isContextSensitive)for(let e of s)t+=this.getStateString(r)+"-"+this.getContextLabel(e)+"->"+this.getStateString(o.get(e))+"\n"}}let e=t;return 0===e.length?"":e}getContextLabel(t){if(t===s.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(t===s.PredictionContext.EMPTY_LOCAL_STATE_KEY)return"ctx:EMPTY_LOCAL";if(this.atn&&t>0&&t<=this.atn.states.length){let e=this.atn.states[t].ruleIndex;if(this.ruleNames&&e>=0&&e"+t.predicates:":s"+e+"=>"+t.prediction),t.isContextSensitive){r+="*";for(let e of t.configs)if(e.reachesIntoOuterContext){r+="*";break}}return r}}n([o.NotNull],u.prototype,"dfa",void 0),n([o.NotNull],u.prototype,"vocabulary",void 0),n([o.Override],u.prototype,"toString",null),e.DFASerializer=u},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0});class n{syntaxError(t,e,r,n,i,o){console.error(`line ${r}:${n} ${i}`)}}n.INSTANCE=new n,e.ConsoleErrorListener=n},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(286),o=r(353),s=r(283);class l extends o.BasicState{get stateType(){return i.ATNStateType.INVALID_TYPE}}n([s.Override],l.prototype,"stateType",null),e.InvalidState=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(294),o=r(286),s=r(283);class l extends i.ATNState{get stateType(){return o.ATNStateType.BASIC}}n([s.Override],l.prototype,"stateType",null),e.BasicState=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(283),s=r(297);let l=class extends s.Transition{constructor(t){super(t)}get serializationType(){return 9}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}};n([o.Override],l.prototype,"serializationType",null),n([o.Override],l.prototype,"matches",null),n([o.Override,o.NotNull],l.prototype,"toString",null),l=n([i(0,o.NotNull)],l),e.WildcardTransition=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283);class o{constructor(t){this.readOnly=!1,t?(this.verifyATN=t.verifyATN,this.generateRuleBypassTransitions=t.generateRuleBypassTransitions,this.optimize=t.optimize):(this.verifyATN=!0,this.generateRuleBypassTransitions=!1,this.optimize=!0)}static get defaultOptions(){return null==o._defaultOptions&&(o._defaultOptions=new o,o._defaultOptions.makeReadOnly()),o._defaultOptions}get isReadOnly(){return this.readOnly}makeReadOnly(){this.readOnly=!0}get isVerifyATN(){return this.verifyATN}set isVerifyATN(t){this.throwIfReadOnly(),this.verifyATN=t}get isGenerateRuleBypassTransitions(){return this.generateRuleBypassTransitions}set isGenerateRuleBypassTransitions(t){this.throwIfReadOnly(),this.generateRuleBypassTransitions=t}get isOptimize(){return this.optimize}set isOptimize(t){this.throwIfReadOnly(),this.optimize=t}throwIfReadOnly(){if(this.isReadOnly)throw new Error("The object is read only.")}}n([i.NotNull],o,"defaultOptions",null),e.ATNDeserializationOptions=o},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(283),s=r(297);let l=class extends s.Transition{constructor(t,e,r=-1,n=!1){super(t),this.ruleIndex=e,this.actionIndex=r,this.isCtxDependent=n}get serializationType(){return 6}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};n([o.Override],l.prototype,"serializationType",null),n([o.Override],l.prototype,"isEpsilon",null),n([o.Override],l.prototype,"matches",null),n([o.Override],l.prototype,"toString",null),l=n([i(0,o.NotNull)],l),e.ActionTransition=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(302),s=r(283),l=r(297);let a=class extends l.Transition{constructor(t,e){super(t),this._label=e}get serializationType(){return 5}get label(){return o.IntervalSet.of(this._label)}matches(t,e,r){return this._label===t}toString(){return String(this.label)}};n([s.Override],a.prototype,"serializationType",null),n([s.Override,s.NotNull],a.prototype,"label",null),n([s.Override],a.prototype,"matches",null),n([s.Override,s.NotNull],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.AtomTransition=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(294),o=r(286),s=r(283);class l extends i.ATNState{get stateType(){return o.ATNStateType.LOOP_END}}n([s.Override],l.prototype,"stateType",null),e.LoopEndState=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(293),o=r(311),s=r(339),l=r(287),a=r(283),u=r(304),c=r(290);class h extends s.RuleNode{constructor(t,e){super(),this._parent=t,this.invokingState=null!=e?e:-1}static getChildContext(t,e){return new h(t,e)}depth(){let t=0,e=this;for(;e;)e=e._parent,t++;return t}get isEmpty(){return-1===this.invokingState}get sourceInterval(){return l.Interval.INVALID}get ruleContext(){return this}get parent(){return this._parent}setParent(t){this._parent=t}get payload(){return this}get text(){if(0===this.childCount)return"";let t="";for(let e=0;e=0&&t=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(283),s=r(290);let l=class{constructor(t,e,r,n){this.outerContext=null!=t?t:s.ParserRuleContext.emptyContext(),this.s0=e,this.useContext=r,this.remainingOuterContext=n}};l=n([i(1,o.NotNull)],l),e.SimulatorState=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(333),o=r(283);class s extends i.ProxyErrorListener{constructor(t){super(t)}reportAmbiguity(t,e,r,n,i,o,s){this.getDelegates().forEach((l=>{l.reportAmbiguity&&l.reportAmbiguity(t,e,r,n,i,o,s)}))}reportAttemptingFullContext(t,e,r,n,i,o){this.getDelegates().forEach((s=>{s.reportAttemptingFullContext&&s.reportAttemptingFullContext(t,e,r,n,i,o)}))}reportContextSensitivity(t,e,r,n,i,o){this.getDelegates().forEach((s=>{s.reportContextSensitivity&&s.reportContextSensitivity(t,e,r,n,i,o)}))}}n([o.Override],s.prototype,"reportAmbiguity",null),n([o.Override],s.prototype,"reportAttemptingFullContext",null),n([o.Override],s.prototype,"reportContextSensitivity",null),e.ProxyParserErrorListener=s},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0});const n=r(288),i=r(404);class o{constructor(t,e){this.buffer=t,this._position=0,this._size=e}static withArray(t){return new o(t,t.length)}get position(){return this._position}set position(t){if(t<0||t>this._size)throw new RangeError;this._position=t}get remaining(){return this._size-this.position}get(t){return this.buffer[t]}array(){return this.buffer.slice(0,this._size)}static builder(t){return new o.Builder(t)}}e.CodePointBuffer=o,function(t){let e;!function(t){t[t.BYTE=0]="BYTE",t[t.CHAR=1]="CHAR",t[t.INT=2]="INT"}(e||(e={}));class r{constructor(t){this.type=0,this.buffer=new Uint8Array(t),this.prevHighSurrogate=-1,this.position=0}build(){return new t(this.buffer,this.position)}static roundUpToNextPowerOfTwo(t){let e=32-Math.clz32(t-1);return Math.pow(2,e)}ensureRemaining(t){switch(this.type){case 0:if(this.buffer.length-this.position>1));e.set(this.buffer.subarray(0,this.position),0),this.type=1,this.buffer=e}byteToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>2));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}charToIntBuffer(t){let e=new Int32Array(Math.max(this.position+t,this.buffer.length>>1));e.set(this.buffer.subarray(0,this.position),0),this.type=2,this.buffer=e}}t.Builder=r}(o=e.CodePointBuffer||(e.CodePointBuffer={}))},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(288),o=r(295),s=r(287),l=r(283);class a{constructor(t,e,r,n){i(0===e),this._array=t,this._size=r,this._name=n,this._position=0}get internalStorage(){return this._array}static fromBuffer(t,e){return void 0!==e&&0!==e.length||(e=o.IntStream.UNKNOWN_SOURCE_NAME),new a(t.array(),t.position,t.remaining,e)}consume(){if(this._size-this._position==0)throw i(this.LA(1)===o.IntStream.EOF),new RangeError("cannot consume EOF");this._position++}get index(){return this._position}get size(){return this._size}mark(){return-1}release(t){}seek(t){this._position=t}get sourceName(){return this._name}toString(){return this.getText(s.Interval.of(0,this.size-1))}LA(t){let e;switch(Math.sign(t)){case-1:return e=this.index+t,e<0?o.IntStream.EOF:this._array[e];case 0:return 0;case 1:return e=this.index+t-1,e>=this.size?o.IntStream.EOF:this._array[e]}throw new RangeError("Not reached")}getText(t){const e=Math.min(t.a,this.size),r=Math.min(t.b-t.a+1,this.size-e);return this._array instanceof Int32Array?String.fromCodePoint(...Array.from(this._array.subarray(e,e+r))):String.fromCharCode(...Array.from(this._array.subarray(e,e+r)))}}n([l.Override],a.prototype,"consume",null),n([l.Override],a.prototype,"index",null),n([l.Override],a.prototype,"size",null),n([l.Override],a.prototype,"mark",null),n([l.Override],a.prototype,"release",null),n([l.Override],a.prototype,"seek",null),n([l.Override],a.prototype,"sourceName",null),n([l.Override],a.prototype,"toString",null),n([l.Override],a.prototype,"LA",null),n([l.Override],a.prototype,"getText",null),e.CodePointCharStream=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(288),s=r(309),l=r(287),a=r(299),u=r(283),c=r(284);let h=class{constructor(t){if(this.tokens=[],this.p=-1,this.fetchedEOF=!1,null==t)throw new Error("tokenSource cannot be null");this._tokenSource=t}get tokenSource(){return this._tokenSource}set tokenSource(t){this._tokenSource=t,this.tokens.length=0,this.p=-1,this.fetchedEOF=!1}get index(){return this.p}mark(){return 0}release(t){}seek(t){this.lazyInit(),this.p=this.adjustSeekIndex(t)}get size(){return this.tokens.length}consume(){let t;if(t=this.p>=0&&(this.fetchedEOF?this.p=0);let e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(t){if(this.fetchedEOF)return 0;for(let e=0;e=this.tokens.length)throw new RangeError("token index "+t+" out of range 0.."+(this.tokens.length-1));return this.tokens[t]}getRange(t,e){if(t<0||e<0)return[];this.lazyInit();let r=new Array;e>=this.tokens.length&&(e=this.tokens.length-1);for(let n=t;n<=e;n++){let t=this.tokens[n];if(t.type===c.Token.EOF)break;r.push(t)}return r}LA(t){let e=this.LT(t);return e?e.type:c.Token.INVALID_TYPE}tryLB(t){if(!(this.p-t<0))return this.tokens[this.p-t]}LT(t){let e=this.tryLT(t);if(void 0===e)throw new RangeError("requested lookback index out of range");return e}tryLT(t){if(this.lazyInit(),0===t)throw new RangeError("0 is not a valid lookahead index");if(t<0)return this.tryLB(-t);let e=this.p+t-1;return this.sync(e),e>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[e]}adjustSeekIndex(t){return t}lazyInit(){-1===this.p&&this.setup()}setup(){this.sync(0),this.p=this.adjustSeekIndex(0)}getTokens(t,e,r){if(this.lazyInit(),void 0===t)return o(void 0===e&&void 0===r),this.tokens;if(void 0===e&&(e=this.tokens.length-1),t<0||e>=this.tokens.length||e<0||t>=this.tokens.length)throw new RangeError("start "+t+" or stop "+e+" not in 0.."+(this.tokens.length-1));if(t>e)return[];if(void 0===r)return this.tokens.slice(t,e+1);"number"==typeof r&&(r=(new Set).add(r));let n=r,i=this.tokens.slice(t,e+1);return i=i.filter((t=>n.has(t.type))),i}nextTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;let r=this.tokens[t];for(;r.channel!==e;){if(r.type===c.Token.EOF)return t;t++,this.sync(t),r=this.tokens[t]}return t}previousTokenOnChannel(t,e){if(this.sync(t),t>=this.size)return this.size-1;for(;t>=0;){let r=this.tokens[t];if(r.type===c.Token.EOF||r.channel===e)return t;t--}return t}getHiddenTokensToRight(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));let r,n=this.nextTokenOnChannel(t+1,a.Lexer.DEFAULT_TOKEN_CHANNEL),i=t+1;return r=-1===n?this.size-1:n,this.filterForChannel(i,r,e)}getHiddenTokensToLeft(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));if(0===t)return[];let r=this.previousTokenOnChannel(t-1,a.Lexer.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return[];let n=r+1,i=t-1;return this.filterForChannel(n,i,e)}filterForChannel(t,e,r){let n=new Array;for(let i=t;i<=e;i++){let t=this.tokens[i];-1===r?t.channel!==a.Lexer.DEFAULT_TOKEN_CHANNEL&&n.push(t):t.channel===r&&n.push(t)}return n}get sourceName(){return this.tokenSource.sourceName}getText(t){void 0===t?t=l.Interval.of(0,this.size-1):t instanceof l.Interval||(t=t.sourceInterval);let e=t.a,r=t.b;if(e<0||r<0)return"";this.fill(),r>=this.tokens.length&&(r=this.tokens.length-1);let n="";for(let t=e;t<=r;t++){let e=this.tokens[t];if(e.type===c.Token.EOF)break;n+=e.text}return n.toString()}getTextFromRange(t,e){return this.isToken(t)&&this.isToken(e)?this.getText(l.Interval.of(t.tokenIndex,e.tokenIndex)):""}fill(){for(this.lazyInit();;)if(this.fetch(1e3)<1e3)return}isWritableToken(t){return t instanceof s.CommonToken}isToken(t){return t instanceof s.CommonToken}};n([u.NotNull],h.prototype,"_tokenSource",void 0),n([u.Override],h.prototype,"tokenSource",null),n([u.Override],h.prototype,"index",null),n([u.Override],h.prototype,"mark",null),n([u.Override],h.prototype,"release",null),n([u.Override],h.prototype,"seek",null),n([u.Override],h.prototype,"size",null),n([u.Override],h.prototype,"consume",null),n([u.Override],h.prototype,"get",null),n([u.Override],h.prototype,"LA",null),n([u.NotNull,u.Override],h.prototype,"LT",null),n([u.Override],h.prototype,"sourceName",null),n([u.NotNull,u.Override],h.prototype,"getText",null),n([u.NotNull,u.Override],h.prototype,"getTextFromRange",null),h=n([i(0,u.NotNull)],h),e.BufferedTokenStream=h},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(331),s=r(283),l=r(284);let a=class{constructor(t,e){if(this.i=0,this._factory=o.CommonTokenFactory.DEFAULT,null==t)throw new Error("tokens cannot be null");this.tokens=t,this._sourceName=e}get charPositionInLine(){if(this.i0){let t=this.tokens[this.tokens.length-1],e=t.text;if(null!=e){let t=e.lastIndexOf("\n");if(t>=0)return e.length-t-1}return t.charPositionInLine+t.stopIndex-t.startIndex+1}return 0}nextToken(){if(this.i>=this.tokens.length){if(null==this.eofToken){let t=-1;if(this.tokens.length>0){let e=this.tokens[this.tokens.length-1].stopIndex;-1!==e&&(t=e+1)}let e=Math.max(-1,t-1);this.eofToken=this._factory.create({source:this,stream:this.inputStream},l.Token.EOF,"EOF",l.Token.DEFAULT_CHANNEL,t,e,this.line,this.charPositionInLine)}return this.eofToken}let t=this.tokens[this.i];return this.i===this.tokens.length-1&&t.type===l.Token.EOF&&(this.eofToken=t),this.i++,t}get line(){if(this.i0){let t=this.tokens[this.tokens.length-1],e=t.line,r=t.text;if(null!=r)for(let t=0;t0?this.tokens[this.tokens.length-1].inputStream:void 0}get sourceName(){if(this._sourceName)return this._sourceName;let t=this.inputStream;return null!=t?t.sourceName:"List"}set tokenFactory(t){this._factory=t}get tokenFactory(){return this._factory}};n([s.Override],a.prototype,"charPositionInLine",null),n([s.Override],a.prototype,"nextToken",null),n([s.Override],a.prototype,"line",null),n([s.Override],a.prototype,"inputStream",null),n([s.Override],a.prototype,"sourceName",null),n([s.Override,s.NotNull,i(0,s.NotNull)],a.prototype,"tokenFactory",null),a=n([i(0,s.NotNull)],a),e.ListTokenSource=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(t){super(t.message),this.cause=t,this.stack=t.stack}getCause(){return this.cause}}e.ParseCancellationException=n},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(294),s=r(286),l=r(300),a=r(316),u=r(318),c=r(368),h=r(358),p=r(283),d=r(283),f=r(313),_=r(314),g=r(296),y=r(334),m=r(284);let x=class t extends f.Parser{constructor(e,r,n,i,o){if(super(e instanceof t?e.inputStream:o),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0,e instanceof t){let t=e;this._grammarFileName=t._grammarFileName,this._atn=t._atn,this.pushRecursionContextStates=t.pushRecursionContextStates,this._ruleNames=t._ruleNames,this._vocabulary=t._vocabulary,this.interpreter=new _.ParserATNSimulator(this._atn,this)}else{this._grammarFileName=e,this._atn=i,this._ruleNames=n.slice(0),this._vocabulary=r,this.pushRecursionContextStates=new l.BitSet(i.states.length);for(let t of i.states)t instanceof y.StarLoopEntryState&&t.precedenceRuleDecision&&this.pushRecursionContextStates.set(t.stateNumber);this.interpreter=new _.ParserATNSimulator(i,this)}}reset(t){void 0===t?super.reset():super.reset(t),this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0}get atn(){return this._atn}get vocabulary(){return this._vocabulary}get ruleNames(){return this._ruleNames}get grammarFileName(){return this._grammarFileName}parse(t){let e=this._atn.ruleToStartState[t];for(this._rootContext=this.createInterpreterRuleContext(void 0,o.ATNState.INVALID_STATE_NUMBER,t),e.isPrecedenceRule?this.enterRecursionRule(this._rootContext,e.stateNumber,t,0):this.enterRule(this._rootContext,e.stateNumber,t);;){let t=this.atnState;if(t.stateType===s.ATNStateType.RULE_STOP){if(this._ctx.isEmpty){if(e.isPrecedenceRule){let t=this._ctx,e=this._parentContextStack.pop();return this.unrollRecursionContexts(e[0]),t}return this.exitRule(),this._rootContext}this.visitRuleStopState(t)}else try{this.visitState(t)}catch(e){if(!(e instanceof g.RecognitionException))throw e;this.state=this._atn.ruleToStopState[t.ruleIndex].stateNumber,this.context.exception=e,this.errorHandler.reportError(this,e),this.recover(e)}}}enterRecursionRule(t,e,r,n){this._parentContextStack.push([this._ctx,t.invokingState]),super.enterRecursionRule(t,e,r,n)}get atnState(){return this._atn.states[this.state]}visitState(t){let e=1;t.numberOfTransitions>1&&(e=this.visitDecisionState(t));let r=t.transition(e-1);switch(r.serializationType){case 1:if(this.pushRecursionContextStates.get(t.stateNumber)&&!(r.target instanceof h.LoopEndState)){let e=this._parentContextStack[this._parentContextStack.length-1],r=this.createInterpreterRuleContext(e[0],e[1],this._ctx.ruleIndex);this.pushNewRecursionContext(r,this._atn.ruleToStartState[t.ruleIndex].stateNumber,this._ctx.ruleIndex)}break;case 5:this.match(r._label);break;case 2:case 7:case 8:r.matches(this._input.LA(1),m.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let e=r.target,n=e.ruleIndex,i=this.createInterpreterRuleContext(this._ctx,t.stateNumber,n);e.isPrecedenceRule?this.enterRecursionRule(i,e.stateNumber,n,r.precedence):this.enterRule(i,r.target.stateNumber,n);break;case 4:let o=r;if(!this.sempred(this._ctx,o.ruleIndex,o.predIndex))throw new a.FailedPredicateException(this);break;case 6:let s=r;this.action(this._ctx,s.ruleIndex,s.actionIndex);break;case 10:if(!this.precpred(this._ctx,r.precedence)){let t=r.precedence;throw new a.FailedPredicateException(this,`precpred(_ctx, ${t})`)}break;default:throw new Error("UnsupportedOperationException: Unrecognized ATN transition type.")}this.state=r.target.stateNumber}visitDecisionState(t){let e;this.errorHandler.sync(this);let r=t.decision;return r!==this.overrideDecision||this._input.index!==this.overrideDecisionInputIndex||this.overrideDecisionReached?e=this.interpreter.adaptivePredict(this._input,r,this._ctx):(e=this.overrideDecisionAlt,this.overrideDecisionReached=!0),e}createInterpreterRuleContext(t,e,r){return new c.InterpreterRuleContext(r,t,e)}visitRuleStopState(t){if(this._atn.ruleToStartState[t.ruleIndex].isPrecedenceRule){let t=this._parentContextStack.pop();this.unrollRecursionContexts(t[0]),this.state=t[1]}else this.exitRule();let e=this._atn.states[this.state].transition(0);this.state=e.followState.stateNumber}addDecisionOverride(t,e,r){this.overrideDecision=t,this.overrideDecisionInputIndex=e,this.overrideDecisionAlt=r}get overrideDecisionRoot(){return this._overrideDecisionRoot}recover(t){let e=this._input.index;if(this.errorHandler.recover(this,t),this._input.index===e){let e=t.getOffendingToken();if(!e)throw new Error("Expected exception to have an offending token");let r=e.tokenSource,n={source:r,stream:void 0!==r?r.inputStream:void 0};if(t instanceof u.InputMismatchException){let r=t.expectedTokens;if(void 0===r)throw new Error("Expected the exception to provide expected tokens");let i=m.Token.INVALID_TYPE;r.isNil||(i=r.minElement);let o=this.tokenFactory.create(n,i,e.text,m.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,o))}else{e.tokenSource;let t=this.tokenFactory.create(n,m.Token.INVALID_TYPE,e.text,m.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,t))}}}recoverInline(){return this._errHandler.recoverInline(this)}get rootContext(){return this._rootContext}};n([p.NotNull],x.prototype,"_vocabulary",void 0),n([d.Override],x.prototype,"reset",null),n([d.Override],x.prototype,"atn",null),n([d.Override],x.prototype,"vocabulary",null),n([d.Override],x.prototype,"ruleNames",null),n([d.Override],x.prototype,"grammarFileName",null),n([d.Override],x.prototype,"enterRecursionRule",null),x=n([i(1,p.NotNull)],x),e.ParserInterpreter=x},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283),o=r(290);class s extends o.ParserRuleContext{constructor(t,e,r){void 0!==r?super(e,r):super(),this._ruleIndex=t}get ruleIndex(){return this._ruleIndex}}n([i.Override],s.prototype,"ruleIndex",null),e.InterpreterRuleContext=s},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0}),e.Chunk=class{}},function(t,e,r){"use strict";(function(t){ /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */ var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(420),s=r(293),l=r(321),a=r(421),u=r(422),c=r(423),h=r(283),p=r(424),d=r(314),f=r(425),_=r(305),g=r(360);class y extends d.ParserATNSimulator{constructor(t){super(t.interpreter.atn,t),this._startIndex=0,this._sllStopIndex=0,this._llStopIndex=0,this.currentDecision=0,this.conflictingAltResolvedBySLL=0,this.optimize_ll1=!1,this.reportAmbiguities=!0,this.numDecisions=this.atn.decisionToState.length,this.decisions=[];for(let t=0;tthis.decisions[r].SLL_MaxLook&&(this.decisions[r].SLL_MaxLook=u,this.decisions[r].SLL_MaxLookEvent=new p.LookaheadEventInfo(r,void 0,o,e,this._startIndex,this._sllStopIndex,!1)),this._llStopIndex>=0){let t=this._llStopIndex-this._startIndex+1;this.decisions[r].LL_TotalLook+=t,this.decisions[r].LL_MinLook=0===this.decisions[r].LL_MinLook?t:Math.min(this.decisions[r].LL_MinLook,t),t>this.decisions[r].LL_MaxLook&&(this.decisions[r].LL_MaxLook=t,this.decisions[r].LL_MaxLookEvent=new p.LookaheadEventInfo(r,void 0,o,e,this._startIndex,this._llStopIndex,!0))}return o}finally{this._input=void 0,this.currentDecision=-1}}getStartState(t,e,r,n){let i=super.getStartState(t,e,r,n);return this.currentState=i,i}computeStartState(t,e,r){let n=super.computeStartState(t,e,r);return this.currentState=n,n}computeReachSet(t,e,r,n){if(void 0===this._input)throw new Error("Invalid state");let i=super.computeReachSet(t,e,r,n);return null==i&&this.decisions[this.currentDecision].errors.push(new c.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index)),this.currentState=i,i}getExistingTargetState(t,e){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");this.currentState.useContext?this._llStopIndex=this._input.index:this._sllStopIndex=this._input.index;let r=super.getExistingTargetState(t,e);if(null!=r&&(this.currentState=new g.SimulatorState(this.currentState.outerContext,r,this.currentState.useContext,this.currentState.remainingOuterContext),this.currentState.useContext?this.decisions[this.currentDecision].LL_DFATransitions++:this.decisions[this.currentDecision].SLL_DFATransitions++,r===l.ATNSimulator.ERROR)){let e=new g.SimulatorState(this.currentState.outerContext,t,this.currentState.useContext,this.currentState.remainingOuterContext);this.decisions[this.currentDecision].errors.push(new c.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index))}return r}computeTargetState(t,e,r,n,i,o){let s=super.computeTargetState(t,e,r,n,i,o);return i?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,s}evalSemanticContextImpl(t,e,r){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let n=super.evalSemanticContextImpl(t,e,r);if(!(t instanceof _.SemanticContext.PrecedencePredicate)){let e=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new f.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,e,t,n,r))}return n}reportContextSensitivity(t,e,r,n,i){if(void 0===this._input)throw new Error("Invalid state");e!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new a.ContextSensitivityInfo(this.currentDecision,r,this._input,n,i)),super.reportContextSensitivity(t,e,r,n,i)}reportAttemptingFullContext(t,e,r,n,i){this.conflictingAltResolvedBySLL=null!=e?e.nextSetBit(0):r.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(t,e,r,n,i)}reportAmbiguity(t,e,r,n,i,l,u){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let c;c=null!=l?l.nextSetBit(0):u.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==s.ATN.INVALID_ALT_NUMBER&&c!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new a.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,r,n)),this.decisions[this.currentDecision].ambiguities.push(new o.AmbiguityInfo(this.currentDecision,this.currentState,l,this._input,r,n)),super.reportAmbiguity(t,e,r,n,i,l,u)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}}n([h.Override,i(0,h.NotNull)],y.prototype,"adaptivePredict",null),n([h.Override],y.prototype,"getStartState",null),n([h.Override],y.prototype,"computeStartState",null),n([h.Override],y.prototype,"computeReachSet",null),n([h.Override],y.prototype,"getExistingTargetState",null),n([h.Override],y.prototype,"computeTargetState",null),n([h.Override],y.prototype,"evalSemanticContextImpl",null),n([h.Override],y.prototype,"reportContextSensitivity",null),n([h.Override],y.prototype,"reportAttemptingFullContext",null),n([h.Override,i(0,h.NotNull),i(5,h.NotNull),i(6,h.NotNull)],y.prototype,"reportAmbiguity",null),e.ProfilingATNSimulator=y}).call(this,r(186))},,function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(288),o=r(283),s=r(295);class l{constructor(t){this.p=0,this.data=t,this.n=t.length}reset(){this.p=0}consume(){if(this.p>=this.n)throw i(this.LA(1)===s.IntStream.EOF),new Error("cannot consume EOF");this.p=this.n?s.IntStream.EOF:this.data.charCodeAt(this.p+t-1)}LT(t){return this.LA(t)}get index(){return this.p}get size(){return this.n}mark(){return-1}release(t){}seek(t){if(t<=this.p)this.p=t;else for(t=Math.min(t,this.n);this.p=this.n&&(r=this.n-1);let n=r-e+1;return e>=this.n?"":this.data.substr(e,n)}get sourceName(){return this.name?this.name:s.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}}n([o.Override],l.prototype,"consume",null),n([o.Override],l.prototype,"LA",null),n([o.Override],l.prototype,"index",null),n([o.Override],l.prototype,"size",null),n([o.Override],l.prototype,"mark",null),n([o.Override],l.prototype,"release",null),n([o.Override],l.prototype,"seek",null),n([o.Override],l.prototype,"getText",null),n([o.Override],l.prototype,"sourceName",null),n([o.Override],l.prototype,"toString",null),e.ANTLRInputStream=l},,function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283),o=r(285),s=r(291);class l{hashCode(t){return null==t?0:"string"==typeof t||"number"==typeof t?o.MurmurHash.hashCode([t]):s.ObjectEqualityComparator.INSTANCE.hashCode(t)}equals(t,e){return null==t?null==e:"string"==typeof t||"number"==typeof t?t===e:s.ObjectEqualityComparator.INSTANCE.equals(t,e)}}l.INSTANCE=new l,n([i.Override],l.prototype,"hashCode",null),n([i.Override],l.prototype,"equals",null),e.DefaultEqualityComparator=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(350),s=r(283),l=r(301);let a=class extends o.DFASerializer{constructor(t){super(t,l.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(t){return"'"+String.fromCodePoint(t)+"'"}};n([s.Override,s.NotNull],a.prototype,"getEdgeLabel",null),a=n([i(0,s.NotNull)],a),e.LexerDFASerializer=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(328),s=r(298),l=r(320),a=r(300),u=r(302),c=r(283),h=r(335),p=r(291),d=r(289),f=r(312),_=r(337),g=r(284),y=r(354);let m=class t{constructor(t){this.atn=t}getDecisionLookahead(e){if(null==e)return;let r=new Array(e.numberOfTransitions);for(let n=0;n=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(317),s=r(378),l=r(285),a=r(283);let u=class t{constructor(t){this._lexerActions=t;let e=l.MurmurHash.initialize();for(let r of t)e=l.MurmurHash.update(e,r);this.cachedHashCode=l.MurmurHash.finish(e,t.length)}static append(e,r){if(!e)return new t([r]);let n=e._lexerActions.slice(0);return n.push(r),new t(n)}fixOffsetBeforeMatch(e){let r;for(let t=0;t=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(285),s=r(283);let l=class t{constructor(t,e){this._offset=t,this._action=e}get offset(){return this._offset}get action(){return this._action}get actionType(){return this._action.actionType}get isPositionDependent(){return!0}execute(t){this._action.execute(t)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this._offset),t=o.MurmurHash.update(t,this._action),o.MurmurHash.finish(t,2)}equals(e){return e===this||e instanceof t&&this._offset===e._offset&&this._action.equals(e._action)}};n([s.NotNull],l.prototype,"action",null),n([s.Override],l.prototype,"actionType",null),n([s.Override],l.prototype,"isPositionDependent",null),n([s.Override],l.prototype,"execute",null),n([s.Override],l.prototype,"hashCode",null),n([s.Override],l.prototype,"equals",null),l=n([i(1,s.NotNull)],l),e.LexerIndexedCustomAction=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(310),o=r(283);class s extends i.ATNConfigSet{constructor(t,e){null!=t&&null!=e?super(t,e):super()}clone(t){let e=new s(this,t);return!t&&this.isReadOnly&&e.addAll(this),e}getKey(t){return{state:0,alt:t.hashCode()}}canMerge(t,e,r){return t.equals(r)}}n([o.Override],s.prototype,"clone",null),n([o.Override],s.prototype,"getKey",null),n([o.Override],s.prototype,"canMerge",null),e.OrderedATNConfigSet=s},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(286),o=r(326),s=r(283);class l extends o.BlockStartState{get stateType(){return i.ATNStateType.BLOCK_START}}n([s.Override],l.prototype,"stateType",null),e.BasicBlockStartState=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(294),o=r(286),s=r(283);class l extends i.ATNState{get stateType(){return o.ATNStateType.BLOCK_END}}n([s.Override],l.prototype,"stateType",null),e.BlockEndState=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(283),s=r(297);let l=class extends s.Transition{constructor(t,e=-1){super(t),this._outermostPrecedenceReturn=e}get outermostPrecedenceReturn(){return this._outermostPrecedenceReturn}get serializationType(){return 1}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"epsilon"}};n([o.Override],l.prototype,"serializationType",null),n([o.Override],l.prototype,"isEpsilon",null),n([o.Override],l.prototype,"matches",null),n([o.Override,o.NotNull],l.prototype,"toString",null),l=n([i(0,o.NotNull)],l),e.EpsilonTransition=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(285),s=r(283);class l{constructor(t){this._channel=t}get channel(){return this._channel}get actionType(){return 0}get isPositionDependent(){return!1}execute(t){t.channel=this._channel}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._channel),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof l&&this._channel===t._channel}toString(){return`channel(${this._channel})`}}n([s.Override],l.prototype,"actionType",null),n([s.Override],l.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],l.prototype,"execute",null),n([s.Override],l.prototype,"hashCode",null),n([s.Override],l.prototype,"equals",null),n([s.Override],l.prototype,"toString",null),e.LexerChannelAction=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(285),s=r(283);class l{constructor(t,e){this._ruleIndex=t,this._actionIndex=e}get ruleIndex(){return this._ruleIndex}get actionIndex(){return this._actionIndex}get actionType(){return 1}get isPositionDependent(){return!0}execute(t){t.action(void 0,this._ruleIndex,this._actionIndex)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._ruleIndex),t=o.MurmurHash.update(t,this._actionIndex),o.MurmurHash.finish(t,3)}equals(t){return t===this||t instanceof l&&this._ruleIndex===t._ruleIndex&&this._actionIndex===t._actionIndex}}n([s.Override],l.prototype,"actionType",null),n([s.Override],l.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],l.prototype,"execute",null),n([s.Override],l.prototype,"hashCode",null),n([s.Override],l.prototype,"equals",null),e.LexerCustomAction=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(285),s=r(283);class l{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 2}get isPositionDependent(){return!1}execute(t){t.mode(this._mode)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._mode),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof l&&this._mode===t._mode}toString(){return`mode(${this._mode})`}}n([s.Override],l.prototype,"actionType",null),n([s.Override],l.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],l.prototype,"execute",null),n([s.Override],l.prototype,"hashCode",null),n([s.Override],l.prototype,"equals",null),n([s.Override],l.prototype,"toString",null),e.LexerModeAction=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(285),s=r(283);class l{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(t){t.more()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"more"}}n([s.Override],l.prototype,"actionType",null),n([s.Override],l.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],l.prototype,"execute",null),n([s.Override],l.prototype,"hashCode",null),n([s.Override],l.prototype,"equals",null),n([s.Override],l.prototype,"toString",null),e.LexerMoreAction=l,function(t){t.INSTANCE=new t}(l=e.LexerMoreAction||(e.LexerMoreAction={}))},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(285),s=r(283);class l{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(t){t.popMode()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"popMode"}}n([s.Override],l.prototype,"actionType",null),n([s.Override],l.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],l.prototype,"execute",null),n([s.Override],l.prototype,"hashCode",null),n([s.Override],l.prototype,"equals",null),n([s.Override],l.prototype,"toString",null),e.LexerPopModeAction=l,function(t){t.INSTANCE=new t}(l=e.LexerPopModeAction||(e.LexerPopModeAction={}))},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(285),s=r(283);class l{constructor(t){this._mode=t}get mode(){return this._mode}get actionType(){return 5}get isPositionDependent(){return!1}execute(t){t.pushMode(this._mode)}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._mode),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof l&&this._mode===t._mode}toString(){return`pushMode(${this._mode})`}}n([s.Override],l.prototype,"actionType",null),n([s.Override],l.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],l.prototype,"execute",null),n([s.Override],l.prototype,"hashCode",null),n([s.Override],l.prototype,"equals",null),n([s.Override],l.prototype,"toString",null),e.LexerPushModeAction=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(285),s=r(283);class l{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(t){t.skip()}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),o.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"skip"}}n([s.Override],l.prototype,"actionType",null),n([s.Override],l.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],l.prototype,"execute",null),n([s.Override],l.prototype,"hashCode",null),n([s.Override],l.prototype,"equals",null),n([s.Override],l.prototype,"toString",null),e.LexerSkipAction=l,function(t){t.INSTANCE=new t}(l=e.LexerSkipAction||(e.LexerSkipAction={}))},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(285),s=r(283);class l{constructor(t){this._type=t}get type(){return this._type}get actionType(){return 7}get isPositionDependent(){return!1}execute(t){t.type=this._type}hashCode(){let t=o.MurmurHash.initialize();return t=o.MurmurHash.update(t,this.actionType),t=o.MurmurHash.update(t,this._type),o.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof l&&this._type===t._type}toString(){return`type(${this._type})`}}n([s.Override],l.prototype,"actionType",null),n([s.Override],l.prototype,"isPositionDependent",null),n([s.Override,i(0,s.NotNull)],l.prototype,"execute",null),n([s.Override],l.prototype,"hashCode",null),n([s.Override],l.prototype,"equals",null),n([s.Override],l.prototype,"toString",null),e.LexerTypeAction=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283),o=r(292);class s{constructor(t,e){this._conflictedAlts=t,this.exact=e}get conflictedAlts(){return this._conflictedAlts}get isExact(){return this.exact}equals(t){return t===this||t instanceof s&&this.isExact===t.isExact&&o.equals(this.conflictedAlts,t.conflictedAlts)}hashCode(){return this.conflictedAlts.hashCode()}}n([i.Override],s.prototype,"equals",null),n([i.Override],s.prototype,"hashCode",null),e.ConflictInfo=s},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(306),o=r(285),s=r(283),l=r(312);var a;(a=e.PredictionMode||(e.PredictionMode={}))[a.SLL=0]="SLL",a[a.LL=1]="LL",a[a.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION",function(t){class e extends i.Array2DHashMap{constructor(){super(r.INSTANCE)}}class r{AltAndContextConfigEqualityComparator(){}hashCode(t){let e=o.MurmurHash.initialize(7);return e=o.MurmurHash.update(e,t.state.stateNumber),e=o.MurmurHash.update(e,t.context),e=o.MurmurHash.finish(e,2),e}equals(t,e){return t===e||null!=t&&null!=e&&t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)}}r.INSTANCE=new r,n([s.Override],r.prototype,"hashCode",null),n([s.Override],r.prototype,"equals",null),t.hasConfigInRuleStopState=function(t){for(let e of t)if(e.state instanceof l.RuleStopState)return!0;return!1},t.allConfigsInRuleStopStates=function(t){for(let e of t)if(!(e.state instanceof l.RuleStopState))return!1;return!0}}(e.PredictionMode||(e.PredictionMode={}))},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(286),o=r(326),s=r(283);class l extends o.BlockStartState{get stateType(){return i.ATNStateType.PLUS_BLOCK_START}}n([s.Override],l.prototype,"stateType",null),e.PlusBlockStartState=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(286),o=r(303),s=r(283);class l extends o.DecisionState{get stateType(){return i.ATNStateType.PLUS_LOOP_BACK}}n([s.Override],l.prototype,"stateType",null),e.PlusLoopbackState=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(328),s=r(283),l=r(305);let a=class extends o.AbstractPredicateTransition{constructor(t,e){super(t),this.precedence=e}get serializationType(){return 10}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new l.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};n([s.Override],a.prototype,"serializationType",null),n([s.Override],a.prototype,"isEpsilon",null),n([s.Override],a.prototype,"matches",null),n([s.Override],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.PrecedencePredicateTransition=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(302),s=r(283),l=r(297);let a=class extends l.Transition{constructor(t,e,r){super(t),this.from=e,this.to=r}get serializationType(){return 2}get label(){return o.IntervalSet.of(this.from,this.to)}matches(t,e,r){return t>=this.from&&t<=this.to}toString(){return"'"+String.fromCodePoint(this.from)+"'..'"+String.fromCodePoint(this.to)+"'"}};n([s.Override],a.prototype,"serializationType",null),n([s.Override,s.NotNull],a.prototype,"label",null),n([s.Override],a.prototype,"matches",null),n([s.Override,s.NotNull],a.prototype,"toString",null),a=n([i(0,s.NotNull)],a),e.RangeTransition=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(294),o=r(286),s=r(283);class l extends i.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return o.ATNStateType.RULE_START}}n([s.Override],l.prototype,"stateType",null),e.RuleStartState=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(286),o=r(326),s=r(283);class l extends o.BlockStartState{get stateType(){return i.ATNStateType.STAR_BLOCK_START}}n([s.Override],l.prototype,"stateType",null),e.StarBlockStartState=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(294),o=r(286),s=r(283);class l extends i.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return o.ATNStateType.STAR_LOOP_BACK}}n([s.Override],l.prototype,"stateType",null),e.StarLoopbackState=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(286),o=r(303),s=r(283);class l extends o.DecisionState{get stateType(){return i.ATNStateType.TOKEN_START}}n([s.Override],l.prototype,"stateType",null),e.TokensStartState=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0});const n=r(285);class i{constructor(t,e,r,n){this.data=new Uint32Array(4),this.data[0]=t,this.data[1]=e,this.data[2]=r,this.data[3]=n}static fromString(t){if(!/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/.test(t))throw new Error("Incorrectly formatted UUID");let e=t.split("-"),r=parseInt(e[0],16),n=(parseInt(e[1],16)<<16>>>0)+parseInt(e[2],16),o=(parseInt(e[3],16)<<16>>>0)+parseInt(e[4].substr(0,4),16),s=parseInt(e[4].substr(-8),16);return new i(r,n,o,s)}hashCode(){return n.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(t){return t===this||t instanceof i&&this.data[0]===t.data[0]&&this.data[1]===t.data[1]&&this.data[2]===t.data[2]&&this.data[3]===t.data[3]}toString(){return("00000000"+this.data[0].toString(16)).substr(-8)+"-"+("0000"+(this.data[1]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[1].toString(16)).substr(-4)+"-"+("0000"+(this.data[2]>>>16).toString(16)).substr(-4)+"-"+("0000"+this.data[2].toString(16)).substr(-4)+("00000000"+this.data[3].toString(16)).substr(-8)}}e.UUID=i},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(283);let s=class{constructor(t){this.atnSimulator=t}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let t=this.atnSimulator.getDecisionInfo(),e=[];for(let r=0;r0&&e.push(r);return e}getTotalTimeInPrediction(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.timeInPrediction;return e}getTotalSLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_TotalLook;return e}getTotalLLLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_TotalLook;return e}getTotalSLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions;return e}getTotalLLATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.LL_ATNTransitions;return e}getTotalATNLookaheadOps(){let t=this.atnSimulator.getDecisionInfo(),e=0;for(let r of t)e+=r.SLL_ATNTransitions,e+=r.LL_ATNTransitions;return e}getDFASize(t){if(t)return this.atnSimulator.atn.decisionToDFA[t].states.size;{let t=0,e=this.atnSimulator.atn.decisionToDFA;for(let r=0;r=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(345),s=r(340),l=r(341),a=r(365),u=r(405),c=r(283),h=r(366),p=r(367),d=r(290),f=r(406),_=r(407),g=r(296),y=r(339),m=r(416),x=r(417),N=r(307),E=r(418),T=r(284),S=r(419);class O{constructor(t,e){this.start="<",this.stop=">",this.escape="\\",this.escapeRE=/\\/g,this._lexer=t,this._parser=e}setDelimiters(t,e,r){if(!t)throw new Error("start cannot be null or empty");if(!e)throw new Error("stop cannot be null or empty");this.start=t,this.stop=e,this.escape=r,this.escapeRE=new RegExp(r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g")}matches(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.matches(t,n)}{let r=new u.MultiMap;return!this.matchImpl(t,e.patternTree,r)}}match(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.match(t,n)}{let r=new u.MultiMap,n=this.matchImpl(t,e.patternTree,r);return new f.ParseTreeMatch(t,e,r,n)}}compile(t,e){let r=this.tokenize(t),n=new a.ListTokenSource(r),i=new l.CommonTokenStream(n);const s=this._parser;let u,c=new p.ParserInterpreter(s.grammarFileName,s.vocabulary,s.ruleNames,s.getATNWithBypassAlts(),i);try{c.errorHandler=new o.BailErrorStrategy,u=c.parse(e)}catch(t){throw t instanceof h.ParseCancellationException?t.getCause():t instanceof g.RecognitionException?t:t instanceof Error?new O.CannotInvokeStartRule(t):t}if(i.LA(1)!==T.Token.EOF)throw new O.StartRuleDoesNotConsumeFullPattern;return new _.ParseTreePattern(this,t,e,u)}get lexer(){return this._lexer}get parser(){return this._parser}matchImpl(t,e,r){if(!t)throw new TypeError("tree cannot be null");if(!e)throw new TypeError("patternTree cannot be null");if(t instanceof N.TerminalNode&&e instanceof N.TerminalNode){let n;if(t.symbol.type===e.symbol.type)if(e.symbol instanceof S.TokenTagToken){let n=e.symbol;r.map(n.tokenName,t);const i=n.label;i&&r.map(i,t)}else t.text===e.text||n||(n=t);else n||(n=t);return n}if(t instanceof d.ParserRuleContext&&e instanceof d.ParserRuleContext){let n,i=this.getRuleTagToken(e);if(i){if(t.ruleContext.ruleIndex===e.ruleContext.ruleIndex){r.map(i.ruleName,t);const e=i.label;e&&r.map(e,t)}else n||(n=t);return n}if(t.childCount!==e.childCount)return n||(n=t),n;let o=t.childCount;for(let n=0;no.length)throw new Error("unterminated tag in pattern: "+t);if(i.length=o[e])throw new Error("tag delimiters out of order in pattern: "+t);if(0===s){let e=t.substring(0,r);n.push(new E.TextChunk(e))}if(s>0&&i[0]>0){let e=t.substring(0,i[0]);n.push(new E.TextChunk(e))}for(let e=0;e=0&&(r=l.substring(0,u),a=l.substring(u+1,l.length)),n.push(new x.TagChunk(a,r)),e+10){let e=o[s-1]+this.stop.length;if(e=55296&&t<=56319},e.isLowSurrogate=function(t){return t>=56320&&t<=57343},e.isSupplementaryCodePoint=function(t){return t>=65536}},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0});class n extends Map{constructor(){super()}map(t,e){let r=super.get(t);r||(r=[],super.set(t,r)),r.push(e)}getPairs(){let t=[];return this.forEach(((e,r)=>{e.forEach((e=>{t.push([r,e])}))})),t}}e.MultiMap=n},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(283);let s=class{constructor(t,e,r,n){if(!t)throw new Error("tree cannot be null");if(!e)throw new Error("pattern cannot be null");if(!r)throw new Error("labels cannot be null");this._tree=t,this._pattern=e,this._labels=r,this._mismatchedNode=n}get(t){let e=this._labels.get(t);if(e&&0!==e.length)return e[e.length-1]}getAll(t){return this._labels.get(t)||[]}get labels(){return this._labels}get mismatchedNode(){return this._mismatchedNode}get succeeded(){return!this._mismatchedNode}get pattern(){return this._pattern}get tree(){return this._tree}toString(){return`Match ${this.succeeded?"succeeded":"failed"}; found ${this.labels.size} labels`}};n([o.NotNull,i(0,o.NotNull)],s.prototype,"getAll",null),n([o.NotNull],s.prototype,"labels",null),n([o.NotNull],s.prototype,"pattern",null),n([o.NotNull],s.prototype,"tree",null),n([o.Override],s.prototype,"toString",null),s=n([i(0,o.NotNull),i(1,o.NotNull),i(2,o.NotNull)],s),e.ParseTreeMatch=s},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(283),s=r(342);let l=class{constructor(t,e,r,n){this._matcher=t,this._patternRuleIndex=r,this._pattern=e,this._patternTree=n}match(t){return this._matcher.match(t,this)}matches(t){return this._matcher.match(t,this).succeeded}findAll(t,e){let r=s.XPath.findAll(t,e,this._matcher.parser),n=[];for(let t of r){let e=this.match(t);e.succeeded&&n.push(e)}return n}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};n([o.NotNull],l.prototype,"_pattern",void 0),n([o.NotNull],l.prototype,"_patternTree",void 0),n([o.NotNull],l.prototype,"_matcher",void 0),n([o.NotNull,i(0,o.NotNull)],l.prototype,"match",null),n([i(0,o.NotNull)],l.prototype,"matches",null),n([o.NotNull,i(0,o.NotNull),i(1,o.NotNull)],l.prototype,"findAll",null),n([o.NotNull],l.prototype,"matcher",null),n([o.NotNull],l.prototype,"pattern",null),n([o.NotNull],l.prototype,"patternTree",null),l=n([i(0,o.NotNull),i(1,o.NotNull),i(3,o.NotNull)],l),e.ParseTreePattern=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const n=r(325),i=r(299),o=r(319),s=r(301),l=r(292);class a extends i.Lexer{constructor(t){super(t),this._interp=new o.LexerATNSimulator(a._ATN,this)}get vocabulary(){return a.VOCABULARY}get grammarFileName(){return"XPathLexer.g4"}get ruleNames(){return a.ruleNames}get serializedATN(){return a._serializedATN}get channelNames(){return a.channelNames}get modeNames(){return a.modeNames}action(t,e,r){4===e&&this.ID_action(t,r)}ID_action(t,e){if(0===e){let t=this.text;t.charAt(0)===t.charAt(0).toUpperCase()?this.type=a.TOKEN_REF:this.type=a.RULE_REF}}static get _ATN(){return a.__ATN||(a.__ATN=(new n.ATNDeserializer).deserialize(l.toCharArray(a._serializedATN))),a.__ATN}}a.TOKEN_REF=1,a.RULE_REF=2,a.ANYWHERE=3,a.ROOT=4,a.WILDCARD=5,a.BANG=6,a.ID=7,a.STRING=8,a.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],a.modeNames=["DEFAULT_MODE"],a.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],a._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],a._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],a.VOCABULARY=new s.VocabularyImpl(a._LITERAL_NAMES,a._SYMBOLIC_NAMES,[]),a._serializedATNSegments=2,a._serializedATNSegment0='줝쪺֍꾺体؇쉁\n2\b\t\t\t\t\t\t\b\t\b\t\t\t\n\f"\v\b\b\t\t\t,\n\t\f\t\t/\v\t\t\t-\n\t\b\v\t\r\nʶ\n2;C\\aac|¡¬¬¯¯··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰̂Ͷ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃҅҉ҌԱԳ՘՛՛գ։ֿׁׁ֓׃ׄ׆ׇ׉׉ג׬ײ״؂؇ؒ؜؞؞آ٫ٰە۪ۗ۟ۡ۬۾܁܁ܑ݌ݏ޳߂߷߼߼ࠂ࠯ࡂ࡝ࢢࢶࢸࢿࣖ॥२ॱॳঅই঎঑঒কপবল঴঴স঻া৆৉৊্৐৙৙৞য়ৡ৥২৳ਃਅਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਾਾੀ੄੉੊੍੏੓੓ਜ਼ਫ਼੠੠੨੷ઃઅઇએઑઓકપબલ઴વષ઻ાેૉો્૏૒૒ૢ૥૨૱ૻૻଃଅଇ଎଑଒କପବଲ଴ଵଷ଻ା୆୉୊୍୏୘୙୞ୟୡ୥୨ୱ୳୳஄அஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻ீ௄ைொௌ௏௒௒௙௙௨௱ంఅఇఎఐఒఔపబ఻ిెైొౌ౏౗ౘౚ౜ౢ౥౨౱ಂಅಇಎಐಒಔಪಬವಷ಻ಾೆೈೊೌ೏೗೘ೠೠೢ೥೨ೱೳ೴ഃഅഇഎഐഒഔ഼ിെൈൊൌ൐ൖ൙ൡ൥൨൱ർඁ඄අඇ඘ගඳඵල඿඿ෂ෈෌෌ෑූෘෘේ෡෨෱෴෵ฃ฼โ๐๒๛຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯົຽ຿ໂໆ່່໊໏໒໛ໞ໡༂༂༚༛༢༫༹༹༷༷༻༻ཀཉཋ཮ཱི྆ྈྙྛ྾࿈࿈ဂ။ၒ႟ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜፟፡ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐ᜖ᜢ᜶ᝂ᝕ᝢᝮᝰᝲ᝴᝵គ៕៙៙៞៟២៫᠍᠐᠒᠛ᠢ᡹ᢂ᢬ᢲ᣷ᤂᤠᤢ᤭ᤲ᤽᥈᥯ᥲ᥶ᦂ᦭ᦲ᧋᧒᧛ᨂ᨝ᨢ᩠ᩢ᩾᪁᪋᪒᪛᪩᪩ᪿ᪲ᬂ᭍᭒᭛᭭᭵ᮂ᯵ᰂ᰹᱂᱋ᱏ᱿ᲂᲊ᳔᳖᳒᳸ᳺ᳻ᴂ᷽᷷἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾‍‑‬‰⁁⁂⁖⁖⁢⁦⁨ⁱ⁳⁳₁₁ₒ₞⃒⃞⃣⃣⃧⃲℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶁ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠⷢ⸁⸱⸱〇〉〣〱〳〷〺〾ぃ゘゛゜ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘭Ꙃ꙱ꙶꙿꚁ꛳ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹ꠩ꡂ꡵ꢂ꣇꣒꣛꣢꣹ꣽꣽꣿꣿ꤂꤯ꤲ꥕ꥢ꥾ꦂ꧂꧑꧛ꧢꨀꨂ꨸ꩂ꩏꩒꩛ꩢ꩸ꩼ꫄ꫝ꫟ꫢ꫱ꫴ꫸ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲ꯬꯮꯯꯲꯻갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽︂︑︢︱︵︶﹏﹑ﹲﹶﹸ﻾!!2;C\aac|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞�\r(*<>?AOR_‚üłŶǿǿʂʞʢ˒ˢˢ̡̲̂͌͒ͼ΂Ο΢υϊϑϓϗЂҟҢҫҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਅਇਈ਎ਕਗਙਛਵ਺਼ੁੁ੢੾ંઞૂૉો૨ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴ဂ၈ၨၱႁႼႿႿგცჲ჻ᄂᄶᄸᅁᅒᅵᅸᅸᆂᇆᇌᇎᇒᇜᇞᇞሂሓሕሹቀቀኂኈኊኊኌ኏ኑኟኡኪኲዬዲዻጂጅጇጎ጑ጒጕጪጬጲጴጵጷጻጾፆፉፊፍፏፒፒፙፙ፟፥፨፮፲፶ᐂᑌᑒᑛᒂᓇᓉᓉᓒᓛᖂᖷᖺᗂᗚᗟᘂᙂᙆᙆᙒᙛᚂᚹᛂᛋᜂ᜛ᜟᜭᜲ᜻ᢢᣫᤁᤁ᫂᫺ᰂᰊᰌ᰸᰺᱂᱒ᱛᱴᲑᲔᲩᲫᲸ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠橢橫櫒櫯櫲櫶欂欸歂歅歒歛步歹歿殑漂潆潒澀澑澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛벟베벢벥텧텫텯톄톇톍톬톯퉄퉆퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍퟐ\ud801\uda02\uda38\uda3d\uda6e\uda77\uda77\uda86\uda86\uda9d\udaa1\udaa3\udab1ꛘ꜂뜶띂렟렢캣﨟"ĂDZɀC\\c|¬¬··¼¼ÂØÚøú˃ˈ˓ˢ˦ˮˮ˰˰ͲͶ͸͹ͼͿ΁΁ΈΈΊΌΎΎΐΣΥϷϹ҃ҌԱԳ՘՛՛գ։ג׬ײ״آٌٰٱٳەۗۗۧۨ۰۱ۼ۾܁܁ܒܒܔܱݏާ޳޳ߌ߬߶߷߼߼ࠂࠗࠜࠜࠦࠦࠪࠪࡂ࡚ࢢࢶࢸࢿआऻिि॒॒ग़ॣॳংই঎঑঒কপবল঴঴স঻িি৐৐৞য়ৡৣ৲৳ਇ਌਑਒ਕਪਬਲ਴ਵ਷ਸ਺਻ਜ਼ਫ਼੠੠ੴ੶ઇએઑઓકપબલ઴વષ઻િિ૒૒ૢૣૻૻଇ଎଑଒କପବଲ଴ଵଷ଻ିି୞ୟୡୣ୳୳அஅஇ஌ஐஒஔ஗஛ஜஞஞ஠஡஥஦ப஬ர஻௒௒ఇఎఐఒఔపబ఻ిిౚ౜ౢౣಂಂಇಎಐಒಔಪಬವಷ಻ಿಿೠೠೢೣೳ೴ഇഎഐഒഔ഼ിി൐൐ൖ൘ൡൣർඁඇ඘ගඳඵල඿඿ෂ෈ฃาิีโ่຃ຄຆຆຉຊຌຌຏຏຖນປມຣລວວຩຩຬອຯາິີ຿຿ໂໆ່່ໞ໡༂༂གཉཋ཮ྊྎဂာ၁၁ၒၗၜၟၣၣၧၨၰၲၷႃ႐႐ႢჇ჉჉჏჏გჼჾቊቌ቏ቒቘቚቚቜ቟ቢኊኌ኏ኒኲኴ኷ኺዀዂዂዄ዇ዊዘዚጒጔ጗ጚ፜ᎂ᎑Ꭲ᏷ᏺ᏿ᐃ᙮ᙱᚁᚃ᚜ᚢ᛬ᛰ᛺ᜂᜎᜐᜓᜢᜳᝂᝓᝢᝮᝰᝲគ឵៙៙៞៞ᠢ᡹ᢂᢆᢉᢪ᢬᢬ᢲ᣷ᤂᤠᥒ᥯ᥲ᥶ᦂ᦭ᦲ᧋ᨂᨘᨢᩖ᪩᪩ᬈᭇ᭍ᮅᮢ᮰᮱ᮼᯧᰂᰥᱏ᱑ᱜ᱿ᲂᲊᳫᳮᳰᳳ᳷᳸ᴂ᷁Ḃ἗Ἒ἟ἢ὇Ὂ὏ὒὙὛὛὝὝὟὟὡ὿ᾂᾶᾸι῀῀ῄῆῈ῎ῒ῕Ῐ῝ῢ΅ῴῶῸ῾⁳⁳₁₁ₒ₞℄℄℉℉ℌℕ℗℗ℛ℟ΩΩℨℨKKℬℯℱ℻ℾ⅁ⅇ⅋⅐⅐Ⅲ↊ⰂⰰⰲⱠⱢ⳦Ⳮ⳰⳴⳵ⴂⴧ⴩⴩⴯⴯ⴲ⵩⵱⵱ⶂ⶘ⶢⶨⶪⶰⶲⶸⶺⷀⷂⷈⷊⷐⷒⷘⷚⷠ⸱⸱〇〉〣〫〳〷〺〾ぃ゘ゟァィーヾ㄁ㄇㄯㄳ㆐ㆢㆼㇲ㈁㐂䶷丂鿗ꀂ꒎ꓒ꓿ꔂ꘎ꘒ꘡꘬꘭Ꙃ꙰ꚁꚟꚢ꛱ꜙ꜡Ꜥ꞊ꞍꞰꞲꞹꟹꠃꠅꠇꠉꠌꠎꠤꡂ꡵ꢄꢵꣴ꣹ꣽꣽꣿꣿꤌꤧꤲꥈꥢ꥾ꦆꦴ꧑꧑ꧢꧦꧨ꧱ꧼꨀꨂꨪꩂꩄꩆꩍꩢ꩸ꩼꩼꪀꪱꪳꪳꪷꪸꪻ꪿ꫂꫂ꫄꫄ꫝ꫟ꫢꫬꫴ꫶ꬃ꬈ꬋ꬐ꬓ꬘ꬢꬨꬪꬰꬲꭜꭞꭧꭲꯤ갂힥ힲ퟈ퟍ퟽車﩯全﫛fl﬈ﬕ﬙ײַײַﬡשׁשּׁטּךּמּנּנּ﭂ףּ﭅צּרּ﮳ﯕ﴿ﵒ﶑ﶔ﷉ﷲ﷽ﹲﹶﹸ﻾C\c|ィ￀ᅣ￉ᅩ￑ᅯ￙ᅵ￞\r(*<>?AOR_‚üłŶʂʞʢ˒̡̲̂͌͒ͷ΂Ο΢υϊϑϓϗЂҟҲӕӚӽԂԩԲե؂ܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠ࣢ࣶࣴࣷंगढऻংহীুਂਂ਒ਕਗਙਛਵ੢੾ંઞૂૉો૦ଂଷୂୗୢ୴ஂஓంొಂ಴ೂ೴စ္ႅႱგცᄅᄨᅒᅴᅸᅸᆅᆴᇃᇆᇜᇜᇞᇞሂሓሕርኂኈኊኊኌ኏ኑኟኡኪኲዠጇጎ጑ጒጕጪጬጲጴጵጷጻጿጿፒፒ፟፣ᐂᐶᑉᑌᒂᒱᓆᓇᓉᓉᖂᖰᗚᗝᘂᘱᙆᙆᚂᚬᜂ᜛ᢢᣡᤁᤁ᫂᫺ᰂᰊᰌᰰ᱂᱂ᱴᲑ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠櫒櫯欂欱歂歅步歹歿殑漂潆潒潒澕澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈',a._serializedATNSegment1="핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌힪힬ퟄퟆퟍꛘ꜂뜶띂렟렢캣﨟1\t\v\t\v\r%')111,\b#\n \b\r\"  !!#\" #$\b$\f%&\t&'(\t()-)*,\v+*,/-.-+.0/-01)1 -",a._serializedATN=l.join([a._serializedATNSegment0,a._serializedATNSegment1],""),e.XPathLexer=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283);class o{syntaxError(t,e,r,n,i,o){}}n([i.Override],o.prototype,"syntaxError",null),e.XPathLexerErrorListener=o},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283),o=r(304),s=r(308);class l extends s.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){return o.Trees.findAllRuleNodes(t,this.ruleIndex)}}n([i.Override],l.prototype,"evaluate",null),e.XPathRuleAnywhereElement=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(290),o=r(283),s=r(304),l=r(308);class a extends l.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){let e=[];for(let r of s.Trees.getChildren(t))r instanceof i.ParserRuleContext&&(r.ruleIndex===this.ruleIndex&&!this.invert||r.ruleIndex!==this.ruleIndex&&this.invert)&&e.push(r);return e}}n([o.Override],a.prototype,"evaluate",null),e.XPathRuleElement=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283),o=r(304),s=r(308);class l extends s.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){return o.Trees.findAllTokenNodes(t,this.tokenType)}}n([i.Override],l.prototype,"evaluate",null),e.XPathTokenAnywhereElement=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283),o=r(307),s=r(304),l=r(308);class a extends l.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){let e=[];for(let r of s.Trees.getChildren(t))r instanceof o.TerminalNode&&(r.symbol.type===this.tokenType&&!this.invert||r.symbol.type!==this.tokenType&&this.invert)&&e.push(r);return e}}n([i.Override],a.prototype,"evaluate",null),e.XPathTokenElement=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283),o=r(304),s=r(342),l=r(308);class a extends l.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(t){return this.invert?[]:o.Trees.getDescendants(t)}}n([i.Override],a.prototype,"evaluate",null),e.XPathWildcardAnywhereElement=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283),o=r(304),s=r(342),l=r(308);class a extends l.XPathElement{constructor(){super(s.XPath.WILDCARD)}evaluate(t){let e=[];if(this.invert)return e;for(let r of o.Trees.getChildren(t))e.push(r);return e}}n([i.Override],a.prototype,"evaluate",null),e.XPathWildcardElement=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(283),s=r(284);let l=class{constructor(t,e,r){if(null==t||0===t.length)throw new Error("ruleName cannot be null or empty.");this._ruleName=t,this.bypassTokenType=e,this._label=r}get ruleName(){return this._ruleName}get label(){return this._label}get channel(){return s.Token.DEFAULT_CHANNEL}get text(){return null!=this._label?"<"+this._label+":"+this._ruleName+">":"<"+this._ruleName+">"}get type(){return this.bypassTokenType}get line(){return 0}get charPositionInLine(){return-1}get tokenIndex(){return-1}get startIndex(){return-1}get stopIndex(){return-1}get tokenSource(){}get inputStream(){}toString(){return this._ruleName+":"+this.bypassTokenType}};n([o.NotNull],l.prototype,"ruleName",null),n([o.Override],l.prototype,"channel",null),n([o.Override],l.prototype,"text",null),n([o.Override],l.prototype,"type",null),n([o.Override],l.prototype,"line",null),n([o.Override],l.prototype,"charPositionInLine",null),n([o.Override],l.prototype,"tokenIndex",null),n([o.Override],l.prototype,"startIndex",null),n([o.Override],l.prototype,"stopIndex",null),n([o.Override],l.prototype,"tokenSource",null),n([o.Override],l.prototype,"inputStream",null),n([o.Override],l.prototype,"toString",null),l=n([i(0,o.NotNull)],l),e.RuleTagToken=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(369),o=r(283);class s extends i.Chunk{constructor(t,e){if(super(),null==t||0===t.length)throw new Error("tag cannot be null or empty");this._tag=t,this._label=e}get tag(){return this._tag}get label(){return this._label}toString(){return null!=this._label?this._label+":"+this._tag:this._tag}}n([o.NotNull],s.prototype,"tag",null),n([o.Override],s.prototype,"toString",null),e.TagChunk=s},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(369),s=r(283);let l=class extends o.Chunk{constructor(t){if(super(),null==t)throw new Error("text cannot be null");this._text=t}get text(){return this._text}toString(){return"'"+this._text+"'"}};n([s.NotNull],l.prototype,"_text",void 0),n([s.NotNull],l.prototype,"text",null),n([s.Override],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.TextChunk=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(309),s=r(283);let l=class extends o.CommonToken{constructor(t,e,r){super(e),this._tokenName=t,this._label=r}get tokenName(){return this._tokenName}get label(){return this._label}get text(){return null!=this._label?"<"+this._label+":"+this._tokenName+">":"<"+this._tokenName+">"}toString(){return this._tokenName+":"+this.type}};n([s.NotNull],l.prototype,"_tokenName",void 0),n([s.NotNull],l.prototype,"tokenName",null),n([s.Override],l.prototype,"text",null),n([s.Override],l.prototype,"toString",null),l=n([i(0,s.NotNull)],l),e.TokenTagToken=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(315),s=r(283);let l=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o){super(t,e,n,i,o,e.useContext),this.ambigAlts=r}get ambiguousAlternatives(){return this.ambigAlts}};n([s.NotNull],l.prototype,"ambigAlts",void 0),n([s.NotNull],l.prototype,"ambiguousAlternatives",null),l=n([i(1,s.NotNull),i(2,s.NotNull),i(3,s.NotNull)],l),e.AmbiguityInfo=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(315),s=r(283);let l=class extends o.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}};l=n([i(1,s.NotNull),i(2,s.NotNull)],l),e.ContextSensitivityInfo=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(283);class o{constructor(t){this.invocations=0,this.timeInPrediction=0,this.SLL_TotalLook=0,this.SLL_MinLook=0,this.SLL_MaxLook=0,this.LL_TotalLook=0,this.LL_MinLook=0,this.LL_MaxLook=0,this.contextSensitivities=[],this.errors=[],this.ambiguities=[],this.predicateEvals=[],this.SLL_ATNTransitions=0,this.SLL_DFATransitions=0,this.LL_Fallback=0,this.LL_ATNTransitions=0,this.LL_DFATransitions=0,this.decision=t}toString(){return"{decision="+this.decision+", contextSensitivities="+this.contextSensitivities.length+", errors="+this.errors.length+", ambiguities="+this.ambiguities.length+", SLL_lookahead="+this.SLL_TotalLook+", SLL_ATNTransitions="+this.SLL_ATNTransitions+", SLL_DFATransitions="+this.SLL_DFATransitions+", LL_Fallback="+this.LL_Fallback+", LL_lookahead="+this.LL_TotalLook+", LL_ATNTransitions="+this.LL_ATNTransitions+"}"}}n([i.Override],o.prototype,"toString",null),e.DecisionInfo=o},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(315),s=r(283);let l=class extends o.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,e.useContext)}};l=n([i(1,s.NotNull),i(2,s.NotNull)],l),e.ErrorInfo=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(315),s=r(283);let l=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o,s){super(t,e,n,i,o,s),this.predictedAlt=r}};l=n([i(3,s.NotNull)],l),e.LookaheadEventInfo=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(315),s=r(283);let l=class extends o.DecisionEventInfo{constructor(t,e,r,n,i,o,s,l){super(e,t,r,n,i,t.useContext),this.semctx=o,this.evalResult=s,this.predictedAlt=l}};l=n([i(0,s.NotNull),i(2,s.NotNull),i(5,s.NotNull)],l),e.PredicateEvalInfo=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n;Object.defineProperty(e,"__esModule",{value:!0}),(n=e.Dependents||(e.Dependents={}))[n.SELF=0]="SELF",n[n.PARENTS=1]="PARENTS",n[n.CHILDREN=2]="CHILDREN",n[n.ANCESTORS=3]="ANCESTORS",n[n.DESCENDANTS=4]="DESCENDANTS",n[n.SIBLINGS=5]="SIBLINGS",n[n.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",n[n.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",n[n.PRECEEDING=8]="PRECEEDING",n[n.FOLLOWING=9]="FOLLOWING"},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(300),s=r(283),l=r(287);class a{constructor(t=!0){this.exactOnly=t,this.exactOnly=t}syntaxError(t,e,r,n,i,o){}reportAmbiguity(t,e,r,n,i,o,s){if(this.exactOnly&&!i)return;let a=`reportAmbiguity d=${this.getDecisionDescription(t,e)}: ambigAlts=${this.getConflictingAlts(o,s)}, input='${t.inputStream.getText(l.Interval.of(r,n))}'`;t.notifyErrorListeners(a)}reportAttemptingFullContext(t,e,r,n,i,o){let s=`reportAttemptingFullContext d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(l.Interval.of(r,n))}'`;t.notifyErrorListeners(s)}reportContextSensitivity(t,e,r,n,i,o){let s=`reportContextSensitivity d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(l.Interval.of(r,n))}'`;t.notifyErrorListeners(s)}getDecisionDescription(t,e){let r=e.decision,n=e.atnStartState.ruleIndex,i=t.ruleNames;if(n<0||n>=i.length)return r.toString();let o=i[n];return o?`${r} (${o})`:r.toString()}getConflictingAlts(t,e){if(null!=t)return t;let r=new o.BitSet;for(let t of e)r.set(t.alt);return r}}n([s.Override],a.prototype,"syntaxError",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(6,s.NotNull)],a.prototype,"reportAmbiguity",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],a.prototype,"reportAttemptingFullContext",null),n([s.Override,i(0,s.NotNull),i(1,s.NotNull),i(5,s.NotNull)],a.prototype,"reportContextSensitivity",null),n([i(0,s.NotNull),i(1,s.NotNull)],a.prototype,"getDecisionDescription",null),n([s.NotNull,i(1,s.NotNull)],a.prototype,"getConflictingAlts",null),e.DiagnosticErrorListener=a},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s},i=this&&this.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0});const o=r(299),s=r(319),l=r(283),a=r(283);let u=class extends o.Lexer{constructor(t,e,r,n,i,o,l){if(super(l),0!==o.grammarType)throw new Error("IllegalArgumentException: The ATN must be a lexer ATN.");this._grammarFileName=t,this._atn=o,this._ruleNames=r.slice(0),this._channelNames=n.slice(0),this._modeNames=i.slice(0),this._vocabulary=e,this._interp=new s.LexerATNSimulator(o,this)}get atn(){return this._atn}get grammarFileName(){return this._grammarFileName}get ruleNames(){return this._ruleNames}get channelNames(){return this._channelNames}get modeNames(){return this._modeNames}get vocabulary(){return this._vocabulary}};n([l.NotNull],u.prototype,"_vocabulary",void 0),n([a.Override],u.prototype,"atn",null),n([a.Override],u.prototype,"grammarFileName",null),n([a.Override],u.prototype,"ruleNames",null),n([a.Override],u.prototype,"channelNames",null),n([a.Override],u.prototype,"modeNames",null),n([a.Override],u.prototype,"vocabulary",null),u=n([i(1,l.NotNull)],u),e.LexerInterpreter=u},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(293),o=r(283),s=r(290);class l extends s.ParserRuleContext{constructor(t,e){void 0!==e?super(t,e):super(),this._altNumber=i.ATN.INVALID_ALT_NUMBER}get altNumber(){return this._altNumber}set altNumber(t){this._altNumber=t}}n([o.Override],l.prototype,"altNumber",null),e.RuleContextWithAltNum=l},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0}),e.RuleDependency=function(t){return(t,e,r)=>{}}},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */Object.defineProperty(e,"__esModule",{value:!0}),e.RuleVersion=function(t){return(t,e,r)=>{}}},function(t,e,r){"use strict"; /*! * Copyright 2016 The ANTLR Project. All rights reserved. * Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information. */var n=this&&this.__decorate||function(t,e,r,n){var i,o=arguments.length,s=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0});const i=r(287),o=r(283),s=r(284);class l{constructor(t){this.tokens=t,this.programs=new Map,this.programs.set(l.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map}getTokenStream(){return this.tokens}rollback(t,e=l.DEFAULT_PROGRAM_NAME){let r=this.programs.get(e);null!=r&&this.programs.set(e,r.slice(l.MIN_TOKEN_INDEX,t))}deleteProgram(t=l.DEFAULT_PROGRAM_NAME){this.rollback(l.MIN_TOKEN_INDEX,t)}insertAfter(t,e,r=l.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=new c(this.tokens,n,e),o=this.getProgram(r);i.instructionIndex=o.length,o.push(i)}insertBefore(t,e,r=l.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=new u(this.tokens,n,e),o=this.getProgram(r);i.instructionIndex=o.length,o.push(i)}replaceSingle(t,e){this.replace(t,t,e)}replace(t,e,r,n=l.DEFAULT_PROGRAM_NAME){if("number"!=typeof t&&(t=t.tokenIndex),"number"!=typeof e&&(e=e.tokenIndex),t>e||t<0||e<0||e>=this.tokens.size)throw new RangeError(`replace: range invalid: ${t}..${e}(size=${this.tokens.size})`);let i=new h(this.tokens,t,e,r),o=this.getProgram(n);i.instructionIndex=o.length,o.push(i)}delete(t,e,r=l.DEFAULT_PROGRAM_NAME){void 0===e&&(e=t),this.replace(t,e,"",r)}getLastRewriteTokenIndex(t=l.DEFAULT_PROGRAM_NAME){let e=this.lastRewriteTokenIndexes.get(t);return null==e?-1:e}setLastRewriteTokenIndex(t,e){this.lastRewriteTokenIndexes.set(t,e)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){let e=[];return this.programs.set(t,e),e}getText(t,e=l.DEFAULT_PROGRAM_NAME){let r;r=t instanceof i.Interval?t:i.Interval.of(0,this.tokens.size-1),"string"==typeof t&&(e=t);let n=this.programs.get(e),o=r.a,a=r.b;if(a>this.tokens.size-1&&(a=this.tokens.size-1),o<0&&(o=0),null==n||0===n.length)return this.tokens.getText(r);let u=[],c=this.reduceToSingleOperationPerIndex(n),h=o;for(;h<=a&&h=this.tokens.size-1&&u.push(t.text.toString());return u.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;en.index&&e.index<=n.lastIndex&&(t[e.instructionIndex]=void 0);let o=this.getKindOfOps(t,h,e);for(let e of o){if(e.index>=n.index&&e.lastIndex<=n.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndexn.lastIndex;if(null!=e.text||null!=n.text||r){if(!r)throw new Error(`replace op boundaries of ${n} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,n.index=Math.min(e.index,n.index),n.lastIndex=Math.max(e.lastIndex,n.lastIndex)}}for(let e=0;e=r.index&&n.index<=r.lastIndex)throw new Error(`insert op ${n} within boundaries of previous ${r}`)}else r.text=this.catOpText(n.text,r.text),t[e]=void 0}let e=new Map;for(let r of t)if(null!=r){if(null!=e.get(r.index))throw new Error("should only be one op per index");e.set(r.index,r)}return e}catOpText(t,e){let r="",n="";return null!=t&&(r=t.toString()),null!=e&&(n=e.toString()),r+n}getKindOfOps(t,e,r){let n=[];for(let i=0;i'}}n([o.Override],a.prototype,"toString",null),e.RewriteOperation=a;class u extends a{constructor(t,e,r){super(t,e,r)}execute(t){return t.push(this.text.toString()),this.tokens.get(this.index).type!==s.Token.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}}n([o.Override],u.prototype,"execute",null);class c extends u{constructor(t,e,r){super(t,e+1,r)}}class h extends a{constructor(t,e,r,n){super(t,e,n),this.lastIndex=r}execute(t){return null!=this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"":"'}}n([o.Override],h.prototype,"execute",null),n([o.Override],h.prototype,"toString",null)},,,,function(t,e,r){"use strict";r.r(e),r.d(e,"ESQLTokensProvider",(function(){return gt}));var n=r(343),i=r(37),o=r.n(i);class s{constructor(){o()(this,"errors",[])}syntaxError(t,e,r,n,i){let o=n+1;null!=e&&e._text&&(o=n+e._text.length),this.errors.push({startLineNumber:r,endLineNumber:r,startColumn:n,endColumn:o,message:i})}getErrors(){return this.errors}}var l=r(124);class a{constructor(t,e,r){o()(this,"scopes",void 0),this.startIndex=e,this.stopIndex=r,this.scopes=t.toLowerCase()+l.c}}class u{clone(){return new u}equals(t){return!1}}class c{constructor(t){o()(this,"endState",void 0),o()(this,"tokens",void 0),this.endState=new u,this.tokens=t}}var h=r(325),p=r(299),d=r(319),f=r(301),_=r(292);class g extends p.Lexer{get vocabulary(){return g.VOCABULARY}constructor(t){super(t),this._interp=new d.LexerATNSimulator(g._ATN,this)}get grammarFileName(){return"esql_lexer.g4"}get ruleNames(){return g.ruleNames}get serializedATN(){return g._serializedATN}get channelNames(){return g.channelNames}get modeNames(){return g.modeNames}static get _ATN(){return g.__ATN||(g.__ATN=(new h.ATNDeserializer).deserialize(_.toCharArray(g._serializedATN))),g.__ATN}}o()(g,"EVAL",1),o()(g,"EXPLAIN",2),o()(g,"FROM",3),o()(g,"ROW",4),o()(g,"STATS",5),o()(g,"WHERE",6),o()(g,"SORT",7),o()(g,"LIMIT",8),o()(g,"PROJECT",9),o()(g,"LINE_COMMENT",10),o()(g,"MULTILINE_COMMENT",11),o()(g,"WS",12),o()(g,"PIPE",13),o()(g,"STRING",14),o()(g,"INTEGER_LITERAL",15),o()(g,"DECIMAL_LITERAL",16),o()(g,"BY",17),o()(g,"AND",18),o()(g,"ASSIGN",19),o()(g,"COMMA",20),o()(g,"DOT",21),o()(g,"LP",22),o()(g,"OPENING_BRACKET",23),o()(g,"CLOSING_BRACKET",24),o()(g,"NOT",25),o()(g,"NULL",26),o()(g,"OR",27),o()(g,"RP",28),o()(g,"BOOLEAN_VALUE",29),o()(g,"COMPARISON_OPERATOR",30),o()(g,"PLUS",31),o()(g,"MINUS",32),o()(g,"ASTERISK",33),o()(g,"SLASH",34),o()(g,"PERCENT",35),o()(g,"ORDERING",36),o()(g,"NULLS_ORDERING",37),o()(g,"NULLS_ORDERING_DIRECTION",38),o()(g,"UNARY_FUNCTION",39),o()(g,"UNQUOTED_IDENTIFIER",40),o()(g,"QUOTED_IDENTIFIER",41),o()(g,"EXPR_LINE_COMMENT",42),o()(g,"EXPR_MULTILINE_COMMENT",43),o()(g,"EXPR_WS",44),o()(g,"SRC_UNQUOTED_IDENTIFIER",45),o()(g,"SRC_QUOTED_IDENTIFIER",46),o()(g,"SRC_LINE_COMMENT",47),o()(g,"SRC_MULTILINE_COMMENT",48),o()(g,"SRC_WS",49),o()(g,"EXPRESSION",1),o()(g,"SOURCE_IDENTIFIERS",2),o()(g,"channelNames",["DEFAULT_TOKEN_CHANNEL","HIDDEN"]),o()(g,"modeNames",["DEFAULT_MODE","EXPRESSION","SOURCE_IDENTIFIERS"]),o()(g,"ruleNames",["EVAL","EXPLAIN","FROM","ROW","STATS","WHERE","SORT","LIMIT","PROJECT","LINE_COMMENT","MULTILINE_COMMENT","WS","PIPE","DIGIT","LETTER","ESCAPE_SEQUENCE","UNESCAPED_CHARS","EXPONENT","STRING","INTEGER_LITERAL","DECIMAL_LITERAL","BY","AND","ASSIGN","COMMA","DOT","LP","OPENING_BRACKET","CLOSING_BRACKET","NOT","NULL","OR","RP","BOOLEAN_VALUE","COMPARISON_OPERATOR","PLUS","MINUS","ASTERISK","SLASH","PERCENT","ORDERING","NULLS_ORDERING","NULLS_ORDERING_DIRECTION","UNARY_FUNCTION","UNQUOTED_IDENTIFIER","QUOTED_IDENTIFIER","EXPR_LINE_COMMENT","EXPR_MULTILINE_COMMENT","EXPR_WS","SRC_PIPE","SRC_CLOSING_BRACKET","SRC_COMMA","SRC_ASSIGN","SRC_UNQUOTED_IDENTIFIER","SRC_UNQUOTED_IDENTIFIER_PART","SRC_QUOTED_IDENTIFIER","SRC_LINE_COMMENT","SRC_MULTILINE_COMMENT","SRC_WS"]),o()(g,"_LITERAL_NAMES",[void 0,"'eval'","'explain'","'from'","'row'","'stats'","'where'","'sort'","'limit'","'project'",void 0,void 0,void 0,void 0,void 0,void 0,void 0,"'by'","'and'",void 0,void 0,"'.'","'('","'['","']'","'not'","'null'","'or'","')'",void 0,void 0,"'+'","'-'","'*'","'/'","'%'",void 0,"'nulls'"]),o()(g,"_SYMBOLIC_NAMES",[void 0,"EVAL","EXPLAIN","FROM","ROW","STATS","WHERE","SORT","LIMIT","PROJECT","LINE_COMMENT","MULTILINE_COMMENT","WS","PIPE","STRING","INTEGER_LITERAL","DECIMAL_LITERAL","BY","AND","ASSIGN","COMMA","DOT","LP","OPENING_BRACKET","CLOSING_BRACKET","NOT","NULL","OR","RP","BOOLEAN_VALUE","COMPARISON_OPERATOR","PLUS","MINUS","ASTERISK","SLASH","PERCENT","ORDERING","NULLS_ORDERING","NULLS_ORDERING_DIRECTION","UNARY_FUNCTION","UNQUOTED_IDENTIFIER","QUOTED_IDENTIFIER","EXPR_LINE_COMMENT","EXPR_MULTILINE_COMMENT","EXPR_WS","SRC_UNQUOTED_IDENTIFIER","SRC_QUOTED_IDENTIFIER","SRC_LINE_COMMENT","SRC_MULTILINE_COMMENT","SRC_WS"]),o()(g,"VOCABULARY",new f.VocabularyImpl(g._LITERAL_NAMES,g._SYMBOLIC_NAMES,[])),o()(g,"_serializedATN","줝쪺֍꾺体؇쉁3ȕ\b\b\b\t\t\t\t\t\t\b\t\b\t\t\t\n\t\n\v\t\v\f\t\f\r\t\r\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t !\t!\"\t\"#\t#$\t$%\t%&\t&'\t'(\t()\t)*\t*+\t+,\t,-\t-.\t./\t/0\t01\t12\t23\t34\t45\t56\t67\t78\t89\t9:\t:;\t;<\t<\b\b\b\b\b\b\b\t\t\t\t\t\t\t\t\n\n\n\n\n\n\n\n\n\n\v\v\v\v\vÇ\n\v\f\v\vÊ\v\v\v\vÍ\n\v\v\vÐ\n\v\v\v\f\f\f\f\f\fÙ\n\f\f\f\fÜ\v\f\f\f\f\f\f\r\rä\n\r\r\r\rå\r\rù\nü\n\rýă\n\fĆ\vĎ\n\fđ\vĘ\ně\nĝ\nĠ\n\rġĥ\n\rĦī\n\fĮ\vIJ\n\rijķ\n\rĸĽ\n\fŀ\vł\nň\n\rʼnŎ\n     !!!\"\"##########ſ\n#$$$$$$$$$$$Ƌ\n$%%&&''(())********ƞ\n*++++++,,,,,,,,,,Ư\n,------------------ǂ\n-...dž\n.....Nj\n.\f..ǎ\v./////ǔ\n/\f//Ǘ\v///000011112222333334444445555666677ǻ\n7\r77Ǽ88Ȁ\n8\r88ȁ888Ȇ\n899::::;;;;<<<<Úď=\t\v\r\b\t\n\v\f\r!#%')+-/13579;=?ACEGI K!M\"O#Q$S%U&W'Y([)]*_+a,c-e.gikmo/qs0u1w2y3\r\f\f\v\f\"\"2;C\\c|$$^^ppttvv\f\f$$^^GGgg--//bb\f\v\f\"\"..11??]]__bb~~,,11Ⱥ\t\v\r)+-/13579;=?ACEGIKMOQSUWY[]_acegikmosuwy{‚\tŒ\v“\r™¡©°¸ÂÓãéí!ï#ñ%ô'ö)Ĝ+ğ-ō/ŏ1Œ3Ŗ5Ř7Ś9Ŝ;Ş=Ţ?ŧAūCŰEųGžIƊKƌMƎOƐQƒSƔUƝWƟYƮ[ǁ]Dž_ǏaǚcǞeǢgǦiǫkDZmǵoǺqȅsȇuȉwȍyȑ{|g|}x}~c~n€€\b‚ƒgƒ„z„…r…†n†‡c‡ˆkˆ‰p‰ŠŠ‹\b‹\bŒhŽtŽqo‘‘’\b’\n“”t”•q•–y–——˜\b˜\f™šuš›v›œcœvžužŸŸ \b ¡¢y¢£j£¤g¤¥t¥¦g¦§§¨\b¨©ªuª«q«¬t¬­v­®®¯\b\b¯°±n±²k²³o³´k´µvµ¶¶·\b\t·¸¹r¹ºtº»q»¼l¼½g½¾e¾¿v¿ÀÀÁ\b\nÁÂÃ1ÃÄ1ÄÈÅÇ\nÆÅÇÊÈÆÈÉÉÌÊÈËÍÌËÌÍÍÏÎÐ\fÏÎÏÐÐÑÑÒ\b\vÒÓÔ1ÔÕ,ÕÚÖÙ\f×Ù\vØÖØ×ÙÜÚÛÚØÛÝÜÚÝÞ,Þß1ßààá\b\fáâä\tãâäååãåææççè\b\rèéê~êëëì\bìíî\tî ïð\tð\"ñò^òó\tó$ôõ\nõ&öø\t\b÷ù\t\tø÷øùùûúüûúüýýûýþþ(ÿĄ$Āă#āă%ĂĀĂāăĆĄĂĄąąćĆĄćĝ$Ĉĉ$ĉĊ$Ċċ$ċďČĎ\nčČĎđďĐďčĐĒđďĒē$ēĔ$Ĕĕ$ĕėĖĘ$ėĖėĘĘĚęě$ĚęĚěěĝĜÿĜĈĝ*ĞĠğĞĠġġğġĢĢ,ģĥĤģĥĦĦĤĦħħĨĨĬ7ĩīĪĩīĮĬĪĬĭĭŎĮĬįı7İIJıİIJijijıijĴĴŎĵķĶĵķĸĸĶĸĹĹŁĺľ7ĻĽļĻĽŀľļľĿĿłŀľŁĺŁłłŃŃń'ńŎŅŇ7ņňŇņňʼnʼnŇʼnŊŊŋŋŌ'ŌŎōĤōįōĶōŅŎ.ŏŐdŐő{ő0ŒœcœŔpŔŕfŕ2Ŗŗ?ŗ4Řř.ř6Śś0ś8Ŝŝ*ŝ:Şş]şŠŠš\bš<Ţţ_ţŤŤť\bťŦ\bŦ>ŧŨpŨũqũŪvŪ@ūŬpŬŭwŭŮnŮůnůBŰűqűŲtŲDųŴ+ŴFŵŶvŶŷtŷŸwŸſgŹźhźŻcŻżnżŽuŽſgžŵžŹſHƀƁ?ƁƋ?Ƃƃ#ƃƋ?ƄƋ>ƅƆ>ƆƋ?ƇƋ@ƈƉ@ƉƋ?ƊƀƊƂƊƄƊƅƊƇƊƈƋJƌƍ-ƍLƎƏ/ƏNƐƑ,ƑPƒƓ1ƓRƔƕ'ƕTƖƗcƗƘuƘƞeƙƚfƚƛgƛƜuƜƞeƝƖƝƙƞVƟƠpƠơwơƢnƢƣnƣƤuƤXƥƦhƦƧkƧƨtƨƩuƩƯvƪƫnƫƬcƬƭuƭƯvƮƥƮƪƯZưƱtƱƲqƲƳwƳƴpƴǂfƵƶcƶƷxƷǂiƸƹoƹƺkƺǂpƻƼoƼƽcƽǂzƾƿuƿǀwǀǂoǁưǁƵǁƸǁƻǁƾǂ\\ǃdž!DŽdžaDžǃDžDŽdžnjLJNj!LjNjljNjaNJLJNJLjNJljNjǎnjNJnjǍǍ^ǎnjǏǕbǐǔ\n\nǑǒbǒǔbǓǐǓǑǔǗǕǓǕǖǖǘǗǕǘǙbǙ`ǚǛ\vǛǜǜǝ\b0ǝbǞǟ\fǟǠǠǡ\b1ǡdǢǣ\rǣǤǤǥ\b2ǥfǦǧ~ǧǨǨǩ\b3ǩǪ\b3ǪhǫǬ_ǬǭǭǮ\b4Ǯǯ\b4ǯǰ\b4\bǰjDZDz.DzdzdzǴ\b5\tǴlǵǶ?ǶǷǷǸ\b6\nǸnǹǻq8ǺǹǻǼǼǺǼǽǽpǾȀ\n\vǿǾȀȁȁǿȁȂȂȆȃȄ1ȄȆ\n\fȅǿȅȃȆrȇȈ_/ȈtȉȊ\vȊȋȋȌ\b:ȌvȍȎ\fȎȏȏȐ\b;ȐxȑȒ\rȒȓȓȔ\b<Ȕz)ÈÌÏØÚåøýĂĄďėĚĜġĦĬijĸľŁʼnōžƊƝƮǁDžNJnjǓǕǼȁȅ\v\t\t\t\t"),o()(g,"__ATN",void 0);var y=r(293),m=r(316),x=r(324),N=r(313),E=r(290),T=r(314),S=r(296),O=r(284);class v extends N.Parser{get vocabulary(){return v.VOCABULARY}get grammarFileName(){return"esql_parser.g4"}get ruleNames(){return v.ruleNames}get serializedATN(){return v._serializedATN}constructor(t){super(t),this._interp=new T.ParserATNSimulator(v._ATN,this)}singleStatement(){let t=new R(this._ctx,this.state);this.enterRule(t,0,v.RULE_singleStatement);try{this.enterOuterAlt(t,1),this.state=72,this.query(0),this.state=73,this.match(v.EOF)}catch(e){if(!(e instanceof S.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}query(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new A(this._ctx,r),i=n;this.enterRecursionRule(n,2,v.RULE_query,t);try{let t;for(this.enterOuterAlt(n,1),n=new C(n),this._ctx=n,i=n,this.state=76,this.sourceCommand(),this._ctx._stop=this._input.tryLT(-1),this.state=83,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,0,this._ctx);2!==t&&t!==y.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,n=new b(new A(e,r)),this.pushNewRecursionContext(n,2,v.RULE_query),this.state=78,!this.precpred(this._ctx,1))throw new m.FailedPredicateException(this,"this.precpred(this._ctx, 1)");this.state=79,this.match(v.PIPE),this.state=80,this.processingCommand()}this.state=85,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,0,this._ctx)}}catch(t){if(!(t instanceof S.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}sourceCommand(){let t=new I(this._ctx,this.state);this.enterRule(t,4,v.RULE_sourceCommand);try{switch(this.state=89,this._errHandler.sync(this),this._input.LA(1)){case v.EXPLAIN:this.enterOuterAlt(t,1),this.state=86,this.explainCommand();break;case v.FROM:this.enterOuterAlt(t,2),this.state=87,this.fromCommand();break;case v.ROW:this.enterOuterAlt(t,3),this.state=88,this.rowCommand();break;default:throw new x.NoViableAltException(this)}}catch(e){if(!(e instanceof S.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}processingCommand(){let t=new L(this._ctx,this.state);this.enterRule(t,6,v.RULE_processingCommand);try{switch(this.state=97,this._errHandler.sync(this),this._input.LA(1)){case v.EVAL:this.enterOuterAlt(t,1),this.state=91,this.evalCommand();break;case v.LIMIT:this.enterOuterAlt(t,2),this.state=92,this.limitCommand();break;case v.PROJECT:this.enterOuterAlt(t,3),this.state=93,this.projectCommand();break;case v.SORT:this.enterOuterAlt(t,4),this.state=94,this.sortCommand();break;case v.STATS:this.enterOuterAlt(t,5),this.state=95,this.statsCommand();break;case v.WHERE:this.enterOuterAlt(t,6),this.state=96,this.whereCommand();break;default:throw new x.NoViableAltException(this)}}catch(e){if(!(e instanceof S.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}whereCommand(){let t=new P(this._ctx,this.state);this.enterRule(t,8,v.RULE_whereCommand);try{this.enterOuterAlt(t,1),this.state=99,this.match(v.WHERE),this.state=100,this.booleanExpression(0)}catch(e){if(!(e instanceof S.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}booleanExpression(t){void 0===t&&(t=0);let e=this._ctx,r=this.state,n=new w(this._ctx,r),i=n;this.enterRecursionRule(n,10,v.RULE_booleanExpression,t);try{let t;switch(this.enterOuterAlt(n,1),this.state=106,this._errHandler.sync(this),this._input.LA(1)){case v.NOT:this.state=103,this.match(v.NOT),this.state=104,this.booleanExpression(4);break;case v.STRING:case v.INTEGER_LITERAL:case v.DECIMAL_LITERAL:case v.LP:case v.NULL:case v.BOOLEAN_VALUE:case v.PLUS:case v.MINUS:case v.UNARY_FUNCTION:case v.UNQUOTED_IDENTIFIER:case v.QUOTED_IDENTIFIER:this.state=105,this.valueExpression();break;default:throw new x.NoViableAltException(this)}for(this._ctx._stop=this._input.tryLT(-1),this.state=116,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,5,this._ctx);2!==t&&t!==y.ATN.INVALID_ALT_NUMBER;){if(1===t)switch(null!=this._parseListeners&&this.triggerExitRuleEvent(),i=n,this.state=114,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,4,this._ctx)){case 1:if(n=new w(e,r),n._left=i,this.pushNewRecursionContext(n,10,v.RULE_booleanExpression),this.state=108,!this.precpred(this._ctx,2))throw new m.FailedPredicateException(this,"this.precpred(this._ctx, 2)");this.state=109,n._operator=this.match(v.AND),this.state=110,n._right=this.booleanExpression(3);break;case 2:if(n=new w(e,r),n._left=i,this.pushNewRecursionContext(n,10,v.RULE_booleanExpression),this.state=111,!this.precpred(this._ctx,1))throw new m.FailedPredicateException(this,"this.precpred(this._ctx, 1)");this.state=112,n._operator=this.match(v.OR),this.state=113,n._right=this.booleanExpression(2)}this.state=118,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,5,this._ctx)}}catch(t){if(!(t instanceof S.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(e)}return n}valueExpression(){let t=new k(this._ctx,this.state);this.enterRule(t,12,v.RULE_valueExpression);try{switch(this.state=121,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,6,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=119,this.operatorExpression(0);break;case 2:this.enterOuterAlt(t,2),this.state=120,this.comparison()}}catch(e){if(!(e instanceof S.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}comparison(){let t=new D(this._ctx,this.state);this.enterRule(t,14,v.RULE_comparison);try{this.enterOuterAlt(t,1),this.state=123,t._left=this.operatorExpression(0),this.state=124,this.comparisonOperator(),this.state=125,t._right=this.operatorExpression(0)}catch(e){if(!(e instanceof S.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mathFn(){let t,e=new M(this._ctx,this.state);this.enterRule(e,16,v.RULE_mathFn);try{if(this.enterOuterAlt(e,1),this.state=127,this.functionIdentifier(),this.state=128,this.match(v.LP),this.state=137,this._errHandler.sync(this),t=this._input.LA(1),0==(t-14&-32)&&0!=(1<@BDFH!"#%/0*+ĵJM[\bc\ne\fl{}”µ·ºÇÉ Ë"Ô$×&Ý(á*ã,ë.ó0õ2û4ý6Ā8ĉ:đ<ğ>ġ@ĥBħDĩFīHĮJKKLLMN\bNOOUPQ\fQRRT\bSPTWUSUVVWUX\\F$Y\\ Z\\\r[X[Y[Z\\]d"^d4_d:`d6ad$bd\nc]c^c_c`cacbd\tef\bfg\fg\vhi\bijjm\fkm\blhlkmvno\foppu\fqr\frssu\ftntquxvtvww\rxvy|\vz|\t{y{z|}~\v~D#€\v€‚0‚‹ƒˆ(„……‡(†„‡Šˆ†ˆ‰‰ŒŠˆ‹ƒ‹ŒŒŽŽ\b\v•\f‘•\n’“\t“•\v””‘”’•ž–—\f—˜\t˜\v™š\fš›\t›\vœ–œ™ žœžŸŸ ž¡¶2¢¶*£¤¤¥\f¥¦¦¶§¨.¨±©®\fª««­\f¬ª­°®¬®¯¯²°®±©±²²³³´´¶µ¡µ¢µ£µ§¶·¸¸¹¹º¿»¼¼¾½»¾Á¿½¿ÀÀÁ¿ÂÈ\fÃÄÄÅÅÆ\fÆÈÇÂÇÃÈÉÊ.ÊËÌÌÑ&ÍÎÎÐ&ÏÍÐÓÑÏÑÒÒ!ÓÑÔÕÕÖÖ#רØÛÙÚÚÜ,ÛÙÛÜÜ%ÝÞ\tÞ\'ßâ*àâB"áßáàâ)ãè.äååç.æäçêèæèéé+êèëð*ìííï*îìïòðîðññ-òðóô\tô/õö)ö1÷üøü@!ùü> úüB"û÷ûøûùûúü3ýþ\nþÿÿ5Āā\tāĆ8Ăăăą8ĄĂąĈĆĄĆćć7ĈĆĉċ\fĊČ&ċĊċČČďčĎ\'ĎĐ(ďčďĐĐ9đĒ\vĒė<ēĔĔĖ<ĕēĖęėĕėĘĘ;ęėĚĠ&ěĜ&ĜĝĝĞ&ĞĠğĚğěĠ=ġĢĢ?ģĦĤĦĥģĥĤĦAħĨĨCĩĪ ĪEīĬĬĭH%ĭGĮįįİİııIU[cltv{ˆ‹”œž®±µ¿ÇÑÛáèðûĆċďėğĥ'),o()(v,"__ATN",void 0);class R extends E.ParserRuleContext{query(){return this.getRuleContext(0,A)}EOF(){return this.getToken(v.EOF,0)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_singleStatement}enterRule(t){t.enterSingleStatement&&t.enterSingleStatement(this)}exitRule(t){t.exitSingleStatement&&t.exitSingleStatement(this)}}class A extends E.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_query}copyFrom(t){super.copyFrom(t)}}class C extends A{sourceCommand(){return this.getRuleContext(0,I)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}enterRule(t){t.enterSingleCommandQuery&&t.enterSingleCommandQuery(this)}exitRule(t){t.exitSingleCommandQuery&&t.exitSingleCommandQuery(this)}}class b extends A{query(){return this.getRuleContext(0,A)}PIPE(){return this.getToken(v.PIPE,0)}processingCommand(){return this.getRuleContext(0,L)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}enterRule(t){t.enterCompositeQuery&&t.enterCompositeQuery(this)}exitRule(t){t.exitCompositeQuery&&t.exitCompositeQuery(this)}}class I extends E.ParserRuleContext{explainCommand(){return this.tryGetRuleContext(0,ft)}fromCommand(){return this.tryGetRuleContext(0,q)}rowCommand(){return this.tryGetRuleContext(0,U)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_sourceCommand}enterRule(t){t.enterSourceCommand&&t.enterSourceCommand(this)}exitRule(t){t.exitSourceCommand&&t.exitSourceCommand(this)}}class L extends E.ParserRuleContext{evalCommand(){return this.tryGetRuleContext(0,G)}limitCommand(){return this.tryGetRuleContext(0,nt)}projectCommand(){return this.tryGetRuleContext(0,st)}sortCommand(){return this.tryGetRuleContext(0,it)}statsCommand(){return this.tryGetRuleContext(0,V)}whereCommand(){return this.tryGetRuleContext(0,P)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_processingCommand}enterRule(t){t.enterProcessingCommand&&t.enterProcessingCommand(this)}exitRule(t){t.exitProcessingCommand&&t.exitProcessingCommand(this)}}class P extends E.ParserRuleContext{WHERE(){return this.getToken(v.WHERE,0)}booleanExpression(){return this.getRuleContext(0,w)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_whereCommand}enterRule(t){t.enterWhereCommand&&t.enterWhereCommand(this)}exitRule(t){t.exitWhereCommand&&t.exitWhereCommand(this)}}class w extends E.ParserRuleContext{NOT(){return this.tryGetToken(v.NOT,0)}booleanExpression(t){return void 0===t?this.getRuleContexts(w):this.getRuleContext(t,w)}valueExpression(){return this.tryGetRuleContext(0,k)}AND(){return this.tryGetToken(v.AND,0)}OR(){return this.tryGetToken(v.OR,0)}constructor(t,e){super(t,e),o()(this,"_left",void 0),o()(this,"_operator",void 0),o()(this,"_right",void 0)}get ruleIndex(){return v.RULE_booleanExpression}enterRule(t){t.enterBooleanExpression&&t.enterBooleanExpression(this)}exitRule(t){t.exitBooleanExpression&&t.exitBooleanExpression(this)}}class k extends E.ParserRuleContext{operatorExpression(){return this.tryGetRuleContext(0,j)}comparison(){return this.tryGetRuleContext(0,D)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_valueExpression}enterRule(t){t.enterValueExpression&&t.enterValueExpression(this)}exitRule(t){t.exitValueExpression&&t.exitValueExpression(this)}}class D extends E.ParserRuleContext{comparisonOperator(){return this.getRuleContext(0,dt)}operatorExpression(t){return void 0===t?this.getRuleContexts(j):this.getRuleContext(t,j)}constructor(t,e){super(t,e),o()(this,"_left",void 0),o()(this,"_right",void 0)}get ruleIndex(){return v.RULE_comparison}enterRule(t){t.enterComparison&&t.enterComparison(this)}exitRule(t){t.exitComparison&&t.exitComparison(this)}}class M extends E.ParserRuleContext{functionIdentifier(){return this.getRuleContext(0,Q)}LP(){return this.getToken(v.LP,0)}RP(){return this.getToken(v.RP,0)}functionExpressionArgument(t){return void 0===t?this.getRuleContexts(K):this.getRuleContext(t,K)}COMMA(t){return void 0===t?this.getTokens(v.COMMA):this.getToken(v.COMMA,t)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_mathFn}enterRule(t){t.enterMathFn&&t.enterMathFn(this)}exitRule(t){t.exitMathFn&&t.exitMathFn(this)}}class j extends E.ParserRuleContext{primaryExpression(){return this.tryGetRuleContext(0,F)}mathFn(){return this.tryGetRuleContext(0,M)}operatorExpression(t){return void 0===t?this.getRuleContexts(j):this.getRuleContext(t,j)}MINUS(){return this.tryGetToken(v.MINUS,0)}PLUS(){return this.tryGetToken(v.PLUS,0)}ASTERISK(){return this.tryGetToken(v.ASTERISK,0)}SLASH(){return this.tryGetToken(v.SLASH,0)}PERCENT(){return this.tryGetToken(v.PERCENT,0)}constructor(t,e){super(t,e),o()(this,"_left",void 0),o()(this,"_operator",void 0),o()(this,"_right",void 0)}get ruleIndex(){return v.RULE_operatorExpression}enterRule(t){t.enterOperatorExpression&&t.enterOperatorExpression(this)}exitRule(t){t.exitOperatorExpression&&t.exitOperatorExpression(this)}}class F extends E.ParserRuleContext{constant(){return this.tryGetRuleContext(0,J)}qualifiedName(){return this.tryGetRuleContext(0,W)}LP(){return this.tryGetToken(v.LP,0)}booleanExpression(t){return void 0===t?this.getRuleContexts(w):this.getRuleContext(t,w)}RP(){return this.tryGetToken(v.RP,0)}identifier(){return this.tryGetRuleContext(0,X)}COMMA(t){return void 0===t?this.getTokens(v.COMMA):this.getToken(v.COMMA,t)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_primaryExpression}enterRule(t){t.enterPrimaryExpression&&t.enterPrimaryExpression(this)}exitRule(t){t.exitPrimaryExpression&&t.exitPrimaryExpression(this)}}class U extends E.ParserRuleContext{ROW(){return this.getToken(v.ROW,0)}fields(){return this.getRuleContext(0,z)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_rowCommand}enterRule(t){t.enterRowCommand&&t.enterRowCommand(this)}exitRule(t){t.exitRowCommand&&t.exitRowCommand(this)}}class z extends E.ParserRuleContext{field(t){return void 0===t?this.getRuleContexts(H):this.getRuleContext(t,H)}COMMA(t){return void 0===t?this.getTokens(v.COMMA):this.getToken(v.COMMA,t)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_fields}enterRule(t){t.enterFields&&t.enterFields(this)}exitRule(t){t.exitFields&&t.exitFields(this)}}class H extends E.ParserRuleContext{booleanExpression(){return this.getRuleContext(0,w)}userVariable(){return this.tryGetRuleContext(0,B)}ASSIGN(){return this.tryGetToken(v.ASSIGN,0)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_field}enterRule(t){t.enterField&&t.enterField(this)}exitRule(t){t.exitField&&t.exitField(this)}}class B extends E.ParserRuleContext{identifier(){return this.getRuleContext(0,X)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_userVariable}enterRule(t){t.enterUserVariable&&t.enterUserVariable(this)}exitRule(t){t.exitUserVariable&&t.exitUserVariable(this)}}class q extends E.ParserRuleContext{FROM(){return this.getToken(v.FROM,0)}sourceIdentifier(t){return void 0===t?this.getRuleContexts(Y):this.getRuleContext(t,Y)}COMMA(t){return void 0===t?this.getTokens(v.COMMA):this.getToken(v.COMMA,t)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_fromCommand}enterRule(t){t.enterFromCommand&&t.enterFromCommand(this)}exitRule(t){t.exitFromCommand&&t.exitFromCommand(this)}}class G extends E.ParserRuleContext{EVAL(){return this.getToken(v.EVAL,0)}fields(){return this.getRuleContext(0,z)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_evalCommand}enterRule(t){t.enterEvalCommand&&t.enterEvalCommand(this)}exitRule(t){t.exitEvalCommand&&t.exitEvalCommand(this)}}class V extends E.ParserRuleContext{STATS(){return this.getToken(v.STATS,0)}fields(){return this.getRuleContext(0,z)}BY(){return this.tryGetToken(v.BY,0)}qualifiedNames(){return this.tryGetRuleContext(0,$)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_statsCommand}enterRule(t){t.enterStatsCommand&&t.enterStatsCommand(this)}exitRule(t){t.exitStatsCommand&&t.exitStatsCommand(this)}}class Y extends E.ParserRuleContext{SRC_UNQUOTED_IDENTIFIER(){return this.tryGetToken(v.SRC_UNQUOTED_IDENTIFIER,0)}SRC_QUOTED_IDENTIFIER(){return this.tryGetToken(v.SRC_QUOTED_IDENTIFIER,0)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_sourceIdentifier}enterRule(t){t.enterSourceIdentifier&&t.enterSourceIdentifier(this)}exitRule(t){t.exitSourceIdentifier&&t.exitSourceIdentifier(this)}}class K extends E.ParserRuleContext{qualifiedName(){return this.tryGetRuleContext(0,W)}string(){return this.tryGetRuleContext(0,pt)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_functionExpressionArgument}enterRule(t){t.enterFunctionExpressionArgument&&t.enterFunctionExpressionArgument(this)}exitRule(t){t.exitFunctionExpressionArgument&&t.exitFunctionExpressionArgument(this)}}class W extends E.ParserRuleContext{identifier(t){return void 0===t?this.getRuleContexts(X):this.getRuleContext(t,X)}DOT(t){return void 0===t?this.getTokens(v.DOT):this.getToken(v.DOT,t)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_qualifiedName}enterRule(t){t.enterQualifiedName&&t.enterQualifiedName(this)}exitRule(t){t.exitQualifiedName&&t.exitQualifiedName(this)}}class $ extends E.ParserRuleContext{qualifiedName(t){return void 0===t?this.getRuleContexts(W):this.getRuleContext(t,W)}COMMA(t){return void 0===t?this.getTokens(v.COMMA):this.getToken(v.COMMA,t)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_qualifiedNames}enterRule(t){t.enterQualifiedNames&&t.enterQualifiedNames(this)}exitRule(t){t.exitQualifiedNames&&t.exitQualifiedNames(this)}}class X extends E.ParserRuleContext{UNQUOTED_IDENTIFIER(){return this.tryGetToken(v.UNQUOTED_IDENTIFIER,0)}QUOTED_IDENTIFIER(){return this.tryGetToken(v.QUOTED_IDENTIFIER,0)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_identifier}enterRule(t){t.enterIdentifier&&t.enterIdentifier(this)}exitRule(t){t.exitIdentifier&&t.exitIdentifier(this)}}class Q extends E.ParserRuleContext{UNARY_FUNCTION(){return this.getToken(v.UNARY_FUNCTION,0)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_functionIdentifier}enterRule(t){t.enterFunctionIdentifier&&t.enterFunctionIdentifier(this)}exitRule(t){t.exitFunctionIdentifier&&t.exitFunctionIdentifier(this)}}class J extends E.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_constant}copyFrom(t){super.copyFrom(t)}}class Z extends J{NULL(){return this.getToken(v.NULL,0)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}enterRule(t){t.enterNullLiteral&&t.enterNullLiteral(this)}exitRule(t){t.exitNullLiteral&&t.exitNullLiteral(this)}}class tt extends J{number(){return this.getRuleContext(0,ut)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}enterRule(t){t.enterNumericLiteral&&t.enterNumericLiteral(this)}exitRule(t){t.exitNumericLiteral&&t.exitNumericLiteral(this)}}class et extends J{booleanValue(){return this.getRuleContext(0,at)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}enterRule(t){t.enterBooleanLiteral&&t.enterBooleanLiteral(this)}exitRule(t){t.exitBooleanLiteral&&t.exitBooleanLiteral(this)}}class rt extends J{string(){return this.getRuleContext(0,pt)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}enterRule(t){t.enterStringLiteral&&t.enterStringLiteral(this)}exitRule(t){t.exitStringLiteral&&t.exitStringLiteral(this)}}class nt extends E.ParserRuleContext{LIMIT(){return this.getToken(v.LIMIT,0)}INTEGER_LITERAL(){return this.getToken(v.INTEGER_LITERAL,0)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_limitCommand}enterRule(t){t.enterLimitCommand&&t.enterLimitCommand(this)}exitRule(t){t.exitLimitCommand&&t.exitLimitCommand(this)}}class it extends E.ParserRuleContext{SORT(){return this.getToken(v.SORT,0)}orderExpression(t){return void 0===t?this.getRuleContexts(ot):this.getRuleContext(t,ot)}COMMA(t){return void 0===t?this.getTokens(v.COMMA):this.getToken(v.COMMA,t)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_sortCommand}enterRule(t){t.enterSortCommand&&t.enterSortCommand(this)}exitRule(t){t.exitSortCommand&&t.exitSortCommand(this)}}class ot extends E.ParserRuleContext{booleanExpression(){return this.getRuleContext(0,w)}ORDERING(){return this.tryGetToken(v.ORDERING,0)}NULLS_ORDERING(){return this.tryGetToken(v.NULLS_ORDERING,0)}NULLS_ORDERING_DIRECTION(){return this.tryGetToken(v.NULLS_ORDERING_DIRECTION,0)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_orderExpression}enterRule(t){t.enterOrderExpression&&t.enterOrderExpression(this)}exitRule(t){t.exitOrderExpression&&t.exitOrderExpression(this)}}class st extends E.ParserRuleContext{PROJECT(){return this.getToken(v.PROJECT,0)}projectClause(t){return void 0===t?this.getRuleContexts(lt):this.getRuleContext(t,lt)}COMMA(t){return void 0===t?this.getTokens(v.COMMA):this.getToken(v.COMMA,t)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_projectCommand}enterRule(t){t.enterProjectCommand&&t.enterProjectCommand(this)}exitRule(t){t.exitProjectCommand&&t.exitProjectCommand(this)}}class lt extends E.ParserRuleContext{sourceIdentifier(t){return void 0===t?this.getRuleContexts(Y):this.getRuleContext(t,Y)}ASSIGN(){return this.tryGetToken(v.ASSIGN,0)}constructor(t,e){super(t,e),o()(this,"_newName",void 0),o()(this,"_oldName",void 0)}get ruleIndex(){return v.RULE_projectClause}enterRule(t){t.enterProjectClause&&t.enterProjectClause(this)}exitRule(t){t.exitProjectClause&&t.exitProjectClause(this)}}class at extends E.ParserRuleContext{BOOLEAN_VALUE(){return this.getToken(v.BOOLEAN_VALUE,0)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_booleanValue}enterRule(t){t.enterBooleanValue&&t.enterBooleanValue(this)}exitRule(t){t.exitBooleanValue&&t.exitBooleanValue(this)}}class ut extends E.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_number}copyFrom(t){super.copyFrom(t)}}class ct extends ut{DECIMAL_LITERAL(){return this.getToken(v.DECIMAL_LITERAL,0)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}enterRule(t){t.enterDecimalLiteral&&t.enterDecimalLiteral(this)}exitRule(t){t.exitDecimalLiteral&&t.exitDecimalLiteral(this)}}class ht extends ut{INTEGER_LITERAL(){return this.getToken(v.INTEGER_LITERAL,0)}constructor(t){super(t.parent,t.invokingState),this.copyFrom(t)}enterRule(t){t.enterIntegerLiteral&&t.enterIntegerLiteral(this)}exitRule(t){t.exitIntegerLiteral&&t.exitIntegerLiteral(this)}}class pt extends E.ParserRuleContext{STRING(){return this.getToken(v.STRING,0)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_string}enterRule(t){t.enterString&&t.enterString(this)}exitRule(t){t.exitString&&t.exitString(this)}}class dt extends E.ParserRuleContext{COMPARISON_OPERATOR(){return this.getToken(v.COMPARISON_OPERATOR,0)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_comparisonOperator}enterRule(t){t.enterComparisonOperator&&t.enterComparisonOperator(this)}exitRule(t){t.exitComparisonOperator&&t.exitComparisonOperator(this)}}class ft extends E.ParserRuleContext{EXPLAIN(){return this.getToken(v.EXPLAIN,0)}subqueryExpression(){return this.getRuleContext(0,_t)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_explainCommand}enterRule(t){t.enterExplainCommand&&t.enterExplainCommand(this)}exitRule(t){t.exitExplainCommand&&t.exitExplainCommand(this)}}class _t extends E.ParserRuleContext{OPENING_BRACKET(){return this.getToken(v.OPENING_BRACKET,0)}query(){return this.getRuleContext(0,A)}CLOSING_BRACKET(){return this.getToken(v.CLOSING_BRACKET,0)}constructor(t,e){super(t,e)}get ruleIndex(){return v.RULE_subqueryExpression}enterRule(t){t.enterSubqueryExpression&&t.enterSubqueryExpression(this)}exitRule(t){t.exitSubqueryExpression&&t.exitSubqueryExpression(this)}}class gt{getInitialState(){return new u}tokenize(t,e){const r=[],i=new s,o=((t,e)=>{const r=new g(t);return r.removeErrorListeners(),r.addErrorListener(e),r})(n.CharStreams.fromString(t),i);let u=!1;const h=[];do{let t;try{t=o.nextToken()}catch(e){t=null}if(null==t)u=!0;else if(-1===t.type)u=!0;else{const e=o.vocabulary.getSymbolicName(t.type);if(e){const r=new a(e,t.startIndex,t.stopIndex);h.push(r)}}}while(!u);for(const t of r)h.push(new a("error"+l.c,t));return h.sort(((t,e)=>t.startIndex-e.startIndex)),new c(h)}}}])]);