prettier-plugin-solidity 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/standalone.cjs +1 -2
- package/dist/standalone.cjs.map +1 -1
- package/package.json +6 -6
- package/src/binary-operator-printers/logical.js +9 -3
- package/src/comments/handlers/handleContractDefinitionComments.js +2 -5
- package/src/common/backward-compatibility.js +0 -12
- package/src/common/printer-helpers.js +9 -50
- package/src/common/util.js +1 -3
- package/src/loc.js +1 -1
- package/src/nodes/Conditional.js +83 -13
- package/src/nodes/ContractDefinition.js +1 -1
- package/src/nodes/CustomErrorDefinition.js +1 -1
- package/src/nodes/ElementaryTypeName.js +1 -3
- package/src/nodes/EventDefinition.js +1 -1
- package/src/nodes/ExpressionStatement.js +2 -2
- package/src/nodes/FunctionCall.js +2 -2
- package/src/nodes/FunctionDefinition.js +2 -2
- package/src/nodes/InheritanceSpecifier.js +1 -1
- package/src/nodes/InlineAssemblyStatement.js +1 -1
- package/src/nodes/ModifierDefinition.js +1 -1
- package/src/nodes/ModifierInvocation.js +1 -2
- package/src/nodes/ReturnStatement.js +5 -4
- package/src/nodes/TupleExpression.js +3 -5
- package/src/nodes/UsingForDeclaration.js +1 -1
- package/src/nodes/VariableDeclarationStatement.js +1 -1
- package/src/options.js +10 -0
- package/src/parser.js +38 -23
- package/dist/standalone.cjs.LICENSE.txt +0 -15
package/dist/standalone.cjs
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/*! For license information please see standalone.cjs.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("prettier/standalone")):"function"==typeof define&&define.amd?define(["prettier/standalone"],e):"object"==typeof exports?exports.prettierPluginSolidity=e(require("prettier/standalone")):(t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.solidity=e(t.prettier))}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{},(t=>(()=>{var e={298:t=>{var e=(()=>{var t,e,r,i,n=Object.create,s=Object.defineProperty,o=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertyDescriptor,u=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),h=t=>{return((t,e,r)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let i of l(e))a.call(t,i)||"default"===i||s(t,i,{get:()=>e[i],enumerable:!(r=c(e,i))||r.enumerable});return t})((e=s(null!=t?n(o(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0}),s(e,"__esModule",{value:!0})),t);var e},p=(r=()=>{t={cwd:()=>"",env:()=>{}},e={}},()=>(r&&(i=r(r=0)),i)),d=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),f=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),_=u(((t,e)=>{p(),e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}})),y=u(((t,e)=>{p();var r="undefined"!=typeof Symbol&&Symbol,i=_();e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}})),g=u(((t,e)=>{p();var r={foo:{}},i=Object;e.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof i)}})),m=u(((t,e)=>{p();var r=Object.prototype.toString,i=Math.max,n=function(t,e){for(var r=[],i=0;i<t.length;i+=1)r[i]=t[i];for(var n=0;n<e.length;n+=1)r[n+t.length]=e[n];return r};e.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==r.apply(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);for(var s,o=function(t,e){for(var r=[],i=1,n=0;i<t.length;i+=1,n+=1)r[n]=t[i];return r}(arguments),a=i(0,e.length-o.length),l=[],c=0;c<a;c++)l[c]="$"+c;if(s=Function("binder","return function ("+function(t,e){for(var r="",i=0;i<t.length;i+=1)r+=t[i],i+1<t.length&&(r+=",");return r}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof s){var r=e.apply(this,n(o,arguments));return Object(r)===r?r:this}return e.apply(t,n(o,arguments))})),e.prototype){var u=function(){};u.prototype=e.prototype,s.prototype=new u,u.prototype=null}return s}})),x=u(((t,e)=>{p();var r=m();e.exports=Function.prototype.bind||r})),T=u(((t,e)=>{p();var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,n=x();e.exports=n.call(r,i)})),v=u(((t,e)=>{var r;p();var i=SyntaxError,n=Function,s=TypeError,o=function(t){try{return n('"use strict"; return ('+t+").constructor;")()}catch(t){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(t){a=null}var l,c=function(){throw new s},u=a?function(){try{return c}catch(t){try{return a(arguments,"callee").get}catch(t){return c}}}():c,h=y()(),d=g()(),f=Object.getPrototypeOf||(d?function(t){return t.__proto__}:null),_={},m="undefined"!=typeof Uint8Array&&f?f(Uint8Array):r,v={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":h&&f?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":_,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h&&f?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h&&f?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&h&&f?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&f?f(""[Symbol.iterator]()):r,"%Symbol%":h?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":m,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(f)try{null.error}catch(t){l=f(f(t)),v["%Error.prototype%"]=l}var S=function t(e){var r;if("%AsyncFunction%"===e)r=o("async function () {}");else if("%GeneratorFunction%"===e)r=o("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=o("async function* () {}");else if("%AsyncGenerator%"===e){var i=t("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&f&&(r=f(n.prototype))}return v[e]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},E=x(),N=T(),A=E.call(Function.call,Array.prototype.concat),R=E.call(Function.apply,Array.prototype.splice),C=E.call(Function.call,String.prototype.replace),O=E.call(Function.call,String.prototype.slice),L=E.call(Function.call,RegExp.prototype.exec),w=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,I=/\\(\\)?/g,P=function(t,e){var r,n=t;if(N(b,n)&&(n="%"+(r=b[n])[0]+"%"),N(v,n)){var o=v[n];if(o===_&&(o=S(n)),void 0===o&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new i("intrinsic "+t+" does not exist!")};e.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new s('"allowMissing" argument must be a boolean');if(null===L(/^%?[^%]*%?$/,t))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=O(t,0,1),r=O(t,-1);if("%"===e&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return C(t,w,(function(t,e,r,i){n[n.length]=r?C(i,I,"$1"):e||t})),n}(t),n=r.length>0?r[0]:"",o=P("%"+n+"%",e),l=o.name,c=o.value,u=!1,h=o.alias;h&&(n=h[0],R(r,A([0,1],h)));for(var p=1,d=!0;p<r.length;p+=1){var f=r[p],_=O(f,0,1),y=O(f,-1);if(('"'===_||"'"===_||"`"===_||'"'===y||"'"===y||"`"===y)&&_!==y)throw new i("property names with quotes must have matching quotes");if("constructor"!==f&&d||(u=!0),N(v,l="%"+(n+="."+f)+"%"))c=v[l];else if(null!=c){if(!(f in c)){if(!e)throw new s("base intrinsic for "+t+" exists, but the property is not available.");return}if(a&&p+1>=r.length){var g=a(c,f);c=(d=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[f]}else d=N(c,f),c=c[f];d&&!u&&(v[l]=c)}}return c}})),S=u(((t,e)=>{p();var r=v()("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(t){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},e.exports=i})),b=u(((t,e)=>{p();var r=v()("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(t){r=null}e.exports=r})),E=u(((t,e)=>{p();var r=S()(),i=v(),n=r&&i("%Object.defineProperty%",!0);if(n)try{n({},"a",{value:1})}catch(t){n=!1}var s=i("%SyntaxError%"),o=i("%TypeError%"),a=b();e.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new o("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var i=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],h=!!a&&a(t,e);if(n)n(t,e,{configurable:null===c&&h?h.configurable:!c,enumerable:null===i&&h?h.enumerable:!i,value:r,writable:null===l&&h?h.writable:!l});else{if(!u&&(i||l||c))throw new s("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}})),N=u(((t,e)=>{p();var r=v(),i=E(),n=S()(),s=b(),o=r("%TypeError%"),a=r("%Math.floor%");e.exports=function(t,e){if("function"!=typeof t)throw new o("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||a(e)!==e)throw new o("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],l=!0,c=!0;if("length"in t&&s){var u=s(t,"length");u&&!u.configurable&&(l=!1),u&&!u.writable&&(c=!1)}return(l||c||!r)&&(n?i(t,"length",e,!0,!0):i(t,"length",e)),t}})),A=u(((t,e)=>{p();var r=x(),i=v(),n=N(),s=i("%TypeError%"),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(a,o),c=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}e.exports=function(t){if("function"!=typeof t)throw new s("a function is required");var e=l(r,a,arguments);return n(e,1+u(0,t.length-(arguments.length-1)),!0)};var h=function(){return l(r,o,arguments)};c?c(e.exports,"apply",{value:h}):e.exports.apply=h})),R=u(((t,e)=>{p();var r=v(),i=A(),n=i(r("String.prototype.indexOf"));e.exports=function(t,e){var s=r(t,!!e);return"function"==typeof s&&n(t,".prototype.")>-1?i(s):s}})),C=u(((t,e)=>{p();var r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=R()("Object.prototype.toString"),n=function(t){return!(r&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i(t)},s=function(t){return!!n(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==i(t)&&"[object Function]"===i(t.callee)},o=function(){return n(arguments)}();n.isLegacyArguments=s,e.exports=o?n:s})),O=u(((t,e)=>{p();var r=Object.prototype.toString,i=Function.prototype.toString,n=/^\s*(?:function)?\*/,s="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,o=Object.getPrototypeOf,a=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}}(),l=!(!o||!a)&&o(a);e.exports=function(t){return"function"==typeof t&&(!!n.test(i.call(t))||(s?o&&o(t)===l:"[object GeneratorFunction]"===r.call(t)))}})),L=u(((t,e)=>{p();var r,i,n=Function.prototype.toString,s="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof s&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw i}}),i={},s((function(){throw 42}),null,r)}catch(t){t!==i&&(s=null)}else s=null;var o,a=/^\s*class\b/,l=function(t){try{var e=n.call(t);return a.test(e)}catch(t){return!1}},c=function(t){try{return!l(t)&&(n.call(t),!0)}catch(t){return!1}},u=Object.prototype.toString,h="function"==typeof Symbol&&!!Symbol.toStringTag,d=!(0 in[,]),f=function(){return!1};"object"==typeof document&&(o=document.all,u.call(o)===u.call(document.all)&&(f=function(t){if((d||!t)&&(void 0===t||"object"==typeof t))try{var e=u.call(t);return("[object HTMLAllCollection]"===e||"[object HTML document.all class]"===e||"[object HTMLCollection]"===e||"[object Object]"===e)&&null==t("")}catch(t){}return!1})),e.exports=s?function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;try{s(t,null,r)}catch(t){if(t!==i)return!1}return!l(t)&&c(t)}:function(t){if(f(t))return!0;if(!t)return!1;if("function"!=typeof t&&"object"!=typeof t)return!1;if(h)return c(t);if(l(t))return!1;var e=u.call(t);return!("[object Function]"!==e&&"[object GeneratorFunction]"!==e&&!/^\[object HTML/.test(e))&&c(t)}})),w=u(((t,e)=>{p();var r=L(),i=Object.prototype.toString,n=Object.prototype.hasOwnProperty;e.exports=function(t,e,s){if(!r(e))throw new TypeError("iterator must be a function");var o;arguments.length>=3&&(o=s),"[object Array]"===i.call(t)?function(t,e,r){for(var i=0,s=t.length;i<s;i++)n.call(t,i)&&(null==r?e(t[i],i,t):e.call(r,t[i],i,t))}(t,e,o):"string"==typeof t?function(t,e,r){for(var i=0,n=t.length;i<n;i++)null==r?e(t.charAt(i),i,t):e.call(r,t.charAt(i),i,t)}(t,e,o):function(t,e,r){for(var i in t)n.call(t,i)&&(null==r?e(t[i],i,t):e.call(r,t[i],i,t))}(t,e,o)}})),I=u(((t,r)=>{p();var i=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],n="undefined"==typeof globalThis?e:globalThis;r.exports=function(){for(var t=[],e=0;e<i.length;e++)"function"==typeof n[i[e]]&&(t[t.length]=i[e]);return t}})),P=u(((t,e)=>{p();var r=_();e.exports=function(){return r()&&!!Symbol.toStringTag}})),k=u(((t,r)=>{p();var i=w(),n=I(),s=A(),o=R(),a=b(),l=o("Object.prototype.toString"),c=P()(),u="undefined"==typeof globalThis?e:globalThis,h=n(),d=o("String.prototype.slice"),f=Object.getPrototypeOf,_=o("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},y={__proto__:null};i(h,c&&a&&f?function(t){var e=new u[t];if(Symbol.toStringTag in e){var r=f(e),i=a(r,Symbol.toStringTag);if(!i){var n=f(r);i=a(n,Symbol.toStringTag)}y["$"+t]=s(i.get)}}:function(t){var e=new u[t],r=e.slice||e.set;r&&(y["$"+t]=s(r))}),r.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!c){var e=d(l(t),8,-1);return _(h,e)>-1?e:"Object"===e&&function(t){var e=!1;return i(y,(function(r,i){if(!e)try{r(t),e=d(i,1)}catch(t){}})),e}(t)}return a?function(t){var e=!1;return i(y,(function(r,i){if(!e)try{"$"+r(t)===i&&(e=d(i,1))}catch(t){}})),e}(t):null}})),D=u(((t,e)=>{p();var r=k();e.exports=function(t){return!!r(t)}})),F=u((t=>{p();var e=C(),r=O(),i=k(),n=D();function s(t){return t.call.bind(t)}var o,a,l="undefined"!=typeof BigInt,c="undefined"!=typeof Symbol,u=s(Object.prototype.toString),h=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),f=s(Boolean.prototype.valueOf);function _(t,e){if("object"!=typeof t)return!1;try{return e(t),!0}catch(t){return!1}}function y(t){return"[object Map]"===u(t)}function g(t){return"[object Set]"===u(t)}function m(t){return"[object WeakMap]"===u(t)}function x(t){return"[object WeakSet]"===u(t)}function T(t){return"[object ArrayBuffer]"===u(t)}function v(t){return"undefined"!=typeof ArrayBuffer&&(T.working?T(t):t instanceof ArrayBuffer)}function S(t){return"[object DataView]"===u(t)}function b(t){return"undefined"!=typeof DataView&&(S.working?S(t):t instanceof DataView)}l&&(o=s(BigInt.prototype.valueOf)),c&&(a=s(Symbol.prototype.valueOf)),t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=n,t.isPromise=function(t){return"undefined"!=typeof Promise&&t instanceof Promise||null!==t&&"object"==typeof t&&"function"==typeof t.then&&"function"==typeof t.catch},t.isArrayBufferView=function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):n(t)||b(t)},t.isUint8Array=function(t){return"Uint8Array"===i(t)},t.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===i(t)},t.isUint16Array=function(t){return"Uint16Array"===i(t)},t.isUint32Array=function(t){return"Uint32Array"===i(t)},t.isInt8Array=function(t){return"Int8Array"===i(t)},t.isInt16Array=function(t){return"Int16Array"===i(t)},t.isInt32Array=function(t){return"Int32Array"===i(t)},t.isFloat32Array=function(t){return"Float32Array"===i(t)},t.isFloat64Array=function(t){return"Float64Array"===i(t)},t.isBigInt64Array=function(t){return"BigInt64Array"===i(t)},t.isBigUint64Array=function(t){return"BigUint64Array"===i(t)},y.working="undefined"!=typeof Map&&y(new Map),t.isMap=function(t){return"undefined"!=typeof Map&&(y.working?y(t):t instanceof Map)},g.working="undefined"!=typeof Set&&g(new Set),t.isSet=function(t){return"undefined"!=typeof Set&&(g.working?g(t):t instanceof Set)},m.working="undefined"!=typeof WeakMap&&m(new WeakMap),t.isWeakMap=function(t){return"undefined"!=typeof WeakMap&&(m.working?m(t):t instanceof WeakMap)},x.working="undefined"!=typeof WeakSet&&x(new WeakSet),t.isWeakSet=function(t){return x(t)},T.working="undefined"!=typeof ArrayBuffer&&T(new ArrayBuffer),t.isArrayBuffer=v,S.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&S(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=b;var E="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function N(t){return"[object SharedArrayBuffer]"===u(t)}function A(t){return void 0!==E&&(void 0===N.working&&(N.working=N(new E)),N.working?N(t):t instanceof E)}function R(t){return _(t,h)}function L(t){return _(t,d)}function w(t){return _(t,f)}function I(t){return l&&_(t,o)}function P(t){return c&&_(t,a)}t.isSharedArrayBuffer=A,t.isAsyncFunction=function(t){return"[object AsyncFunction]"===u(t)},t.isMapIterator=function(t){return"[object Map Iterator]"===u(t)},t.isSetIterator=function(t){return"[object Set Iterator]"===u(t)},t.isGeneratorObject=function(t){return"[object Generator]"===u(t)},t.isWebAssemblyCompiledModule=function(t){return"[object WebAssembly.Module]"===u(t)},t.isNumberObject=R,t.isStringObject=L,t.isBooleanObject=w,t.isBigIntObject=I,t.isSymbolObject=P,t.isBoxedPrimitive=function(t){return R(t)||L(t)||w(t)||I(t)||P(t)},t.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(v(t)||A(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))})),M=u(((t,e)=>{p(),e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}})),j=u(((t,e)=>{p(),"function"==typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}})),U=u((e=>{p();var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++)r[e[i]]=Object.getOwnPropertyDescriptor(t,e[i]);return r},i=/%[sdj%]/g;e.format=function(t){if(!m(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(a(arguments[r]));return e.join(" ")}r=1;for(var n=arguments,s=n.length,o=String(t).replace(i,(function(t){if("%%"===t)return"%";if(r>=s)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}})),l=n[r];r<s;l=n[++r])y(l)||!v(l)?o+=" "+l:o+=" "+a(l);return o},e.deprecate=function(r,i){if(void 0!==t&&!0===t.noDeprecation)return r;if(void 0===t)return function(){return e.deprecate(r,i).apply(this,arguments)};var n=!1;return function(){if(!n){if(t.throwDeprecation)throw new Error(i);t.traceDeprecation?console.trace(i):console.error(i),n=!0}return r.apply(this,arguments)}};var n,s={},o=/^$/;function a(t,r){var i={seen:[],stylize:c};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),_(r)?i.showHidden=r:r&&e._extend(i,r),x(i.showHidden)&&(i.showHidden=!1),x(i.depth)&&(i.depth=2),x(i.colors)&&(i.colors=!1),x(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=l),u(i,t,i.depth)}function l(t,e){var r=a.styles[e];return r?"["+a.colors[r][0]+"m"+t+"["+a.colors[r][1]+"m":t}function c(t,e){return t}function u(t,r,i){if(t.customInspect&&r&&E(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var n=r.inspect(i,t);return m(n)||(n=u(t,n,i)),n}var s=function(t,e){if(x(e))return t.stylize("undefined","undefined");if(m(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return g(e)?t.stylize(""+e,"number"):_(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,r);if(s)return s;var o=Object.keys(r),a=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(r)),b(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return h(r);if(0===o.length){if(E(r)){var l=r.name?": "+r.name:"";return t.stylize("[Function"+l+"]","special")}if(T(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return t.stylize(Date.prototype.toString.call(r),"date");if(b(r))return h(r)}var c,p="",v=!1,N=["{","}"];return f(r)&&(v=!0,N=["[","]"]),E(r)&&(p=" [Function"+(r.name?": "+r.name:"")+"]"),T(r)&&(p=" "+RegExp.prototype.toString.call(r)),S(r)&&(p=" "+Date.prototype.toUTCString.call(r)),b(r)&&(p=" "+h(r)),0!==o.length||v&&0!=r.length?i<0?T(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),c=v?function(t,e,r,i,n){for(var s=[],o=0,a=e.length;o<a;++o)C(e,String(o))?s.push(d(t,e,r,i,String(o),!0)):s.push("");return n.forEach((function(n){n.match(/^\d+$/)||s.push(d(t,e,r,i,n,!0))})),s}(t,r,i,a,o):o.map((function(e){return d(t,r,i,a,e,v)})),t.seen.pop(),function(t,e,r){return t.reduce((function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(c,p,N)):N[0]+p+N[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,r,i,n,s){var o,a,l;if((l=Object.getOwnPropertyDescriptor(e,n)||{value:e[n]}).get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),C(i,n)||(o="["+n+"]"),a||(t.seen.indexOf(l.value)<0?(a=y(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),x(o)){if(s&&n.match(/^\d+$/))return a;(o=JSON.stringify(""+n)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function f(t){return Array.isArray(t)}function _(t){return"boolean"==typeof t}function y(t){return null===t}function g(t){return"number"==typeof t}function m(t){return"string"==typeof t}function x(t){return void 0===t}function T(t){return v(t)&&"[object RegExp]"===N(t)}function v(t){return"object"==typeof t&&null!==t}function S(t){return v(t)&&"[object Date]"===N(t)}function b(t){return v(t)&&("[object Error]"===N(t)||t instanceof Error)}function E(t){return"function"==typeof t}function N(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}t.env.NODE_DEBUG&&(n=(n=t.env.NODE_DEBUG).replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+n+"$","i")),e.debuglog=function(r){if(r=r.toUpperCase(),!s[r])if(o.test(r)){var i=t.pid;s[r]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",r,i,t)}}else s[r]=function(){};return s[r]},e.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=F(),e.isArray=f,e.isBoolean=_,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=m,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=x,e.isRegExp=T,e.types.isRegExp=T,e.isObject=v,e.isDate=S,e.types.isDate=S,e.isError=b,e.types.isNativeError=b,e.isFunction=E,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=M();var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(r=[A((t=new Date).getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":"),[t.getDate(),R[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=j(),e._extend=function(t,e){if(!e||!v(e))return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function L(t,e){if(!t){var r=new Error("Promise was rejected with a falsy value");r.reason=t,t=r}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(O&&t[O]){var e;if("function"!=typeof(e=t[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,i=new Promise((function(t,i){e=t,r=i})),n=[],s=0;s<arguments.length;s++)n.push(arguments[s]);n.push((function(t,i){t?r(t):e(i)}));try{t.apply(this,n)}catch(t){r(t)}return i}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),O&&Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,r(t))},e.promisify.custom=O,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function i(){for(var r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);var n=r.pop();if("function"!=typeof n)throw new TypeError("The last argument must be of type Function");var s=this,o=function(){return n.apply(s,arguments)};e.apply(this,r).then((function(e){t.nextTick(o.bind(null,null,e))}),(function(e){t.nextTick(L.bind(null,e,o))}))}return Object.setPrototypeOf(i,Object.getPrototypeOf(e)),Object.defineProperties(i,r(e)),i}})),H=u(((t,e)=>{function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}p();var s,o,a={};function l(t,e,s){s||(s=Error);var o=function(s){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(u,s);var o,a,l,c=(a=u,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=n(a);if(l){var i=n(this).constructor;t=Reflect.construct(e,arguments,i)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function u(r,i,n){var s;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s=c.call(this,function(t,r,i){return"string"==typeof e?e:e(t,r,i)}(r,i,n)),s.code=t,s}return o=u,Object.defineProperty(o,"prototype",{writable:!1}),o}(s);a[t]=o}function c(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(t,e,i){var n,o,a,l,u;if(void 0===s&&(s=it()),s("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(o="not ",e.substr(0,4)===o)?(n="must not be",e=e.replace(/^not /,"")):n="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))a="The ".concat(t," ").concat(n," ").concat(c(e,"type"));else{var h=("number"!=typeof u&&(u=0),u+1>(l=t).length||-1===l.indexOf(".",u)?"argument":"property");a='The "'.concat(t,'" ').concat(h," ").concat(n," ").concat(c(e,"type"))}return a+". Received type ".concat(r(i))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===o&&(o=U());var i=o.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(t,e,i){var n;return n=i&&i.constructor&&i.constructor.name?"instance of ".concat(i.constructor.name):"type ".concat(r(i)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(n,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];void 0===s&&(s=it()),s(e.length>0,"At least one arg needs to be specified");var i="The ",n=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),n){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,n-1).join(", "),i+=", and ".concat(e[n-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=a})),K=u(((e,r)=>{function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,i)}return r}function n(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){var i,n,s;i=t,n=e,s=r[e],(n=o(n))in i?Object.defineProperty(i,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[n]=s})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t,e){if("object"!==_(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,"string");if("object"!==_(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===_(e)?e:String(e)}function a(t,e){if(e&&("object"===_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){var e="function"==typeof Map?new Map:void 0;return c=function(t){if(null===t||!function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return u(t,arguments,f(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),d(r,t)},c(t)}function u(t,e,r){return(u=h()?Reflect.construct.bind():function(t,e,r){var i=[null];i.push.apply(i,e);var n=new(Function.bind.apply(t,i));return r&&d(n,r.prototype),n}).apply(null,arguments)}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function d(t,e){return(d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}p();var y=U().inspect,g=H().codes.ERR_INVALID_ARG_TYPE;function m(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var x="",T="",v="",S="",b={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function E(t){var e=Object.keys(t),r=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){r[e]=t[e]})),Object.defineProperty(r,"message",{value:t.message}),r}function N(t){return y(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var A=function(e,r){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(A,e);var i,o,c,u,p=(i=A,o=h(),function(){var t,e=f(i);if(o){var r=f(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return a(this,t)});function A(e){var r;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,A),"object"!==_(e)||null===e)throw new g("options","Object",e);var i=e.message,n=e.operator,s=e.stackStartFn,o=e.actual,c=e.expected,u=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)r=p.call(this,String(i));else if(t.stderr&&t.stderr.isTTY&&(t.stderr&&t.stderr.getColorDepth&&1!==t.stderr.getColorDepth()?(x="[34m",T="[32m",S="[39m",v="[31m"):(x="",T="",S="",v="")),"object"===_(o)&&null!==o&&"object"===_(c)&&null!==c&&"stack"in o&&o instanceof Error&&"stack"in c&&c instanceof Error&&(o=E(o),c=E(c)),"deepStrictEqual"===n||"strictEqual"===n)r=p.call(this,function(e,r,i){var n="",s="",o=0,a="",l=!1,c=N(e),u=c.split("\n"),h=N(r).split("\n"),p=0,d="";if("strictEqual"===i&&"object"===_(e)&&"object"===_(r)&&null!==e&&null!==r&&(i="strictEqualObject"),1===u.length&&1===h.length&&u[0]!==h[0]){var f=u[0].length+h[0].length;if(f<=10){if(!("object"===_(e)&&null!==e||"object"===_(r)&&null!==r||0===e&&0===r))return"".concat(b[i],"\n\n")+"".concat(u[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==i&&f<(t.stderr&&t.stderr.isTTY?t.stderr.columns:80)){for(;u[0][p]===h[0][p];)p++;p>2&&(d="\n ".concat(function(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var r=t.length*e;for(e=Math.floor(Math.log(e)/Math.log(2));e;)t+=t,e--;return t+t.substring(0,r-t.length)}(" ",p),"^"),p=0)}}for(var y=u[u.length-1],g=h[h.length-1];y===g&&(p++<2?a="\n ".concat(y).concat(a):n=y,u.pop(),h.pop(),0!==u.length&&0!==h.length);)y=u[u.length-1],g=h[h.length-1];var E=Math.max(u.length,h.length);if(0===E){var A=c.split("\n");if(A.length>30)for(A[26]="".concat(x,"...").concat(S);A.length>27;)A.pop();return"".concat(b.notIdentical,"\n\n").concat(A.join("\n"),"\n")}p>3&&(a="\n".concat(x,"...").concat(S).concat(a),l=!0),""!==n&&(a="\n ".concat(n).concat(a),n="");var R=0,C=b[i]+"\n".concat(T,"+ actual").concat(S," ").concat(v,"- expected").concat(S),O=" ".concat(x,"...").concat(S," Lines skipped");for(p=0;p<E;p++){var L=p-o;if(u.length<p+1)L>1&&p>2&&(L>4?(s+="\n".concat(x,"...").concat(S),l=!0):L>3&&(s+="\n ".concat(h[p-2]),R++),s+="\n ".concat(h[p-1]),R++),o=p,n+="\n".concat(v,"-").concat(S," ").concat(h[p]),R++;else if(h.length<p+1)L>1&&p>2&&(L>4?(s+="\n".concat(x,"...").concat(S),l=!0):L>3&&(s+="\n ".concat(u[p-2]),R++),s+="\n ".concat(u[p-1]),R++),o=p,s+="\n".concat(T,"+").concat(S," ").concat(u[p]),R++;else{var w=h[p],I=u[p],P=I!==w&&(!m(I,",")||I.slice(0,-1)!==w);P&&m(w,",")&&w.slice(0,-1)===I&&(P=!1,I+=","),P?(L>1&&p>2&&(L>4?(s+="\n".concat(x,"...").concat(S),l=!0):L>3&&(s+="\n ".concat(u[p-2]),R++),s+="\n ".concat(u[p-1]),R++),o=p,s+="\n".concat(T,"+").concat(S," ").concat(I),n+="\n".concat(v,"-").concat(S," ").concat(w),R+=2):(s+=n,n="",1!==L&&0!==p||(s+="\n ".concat(I),R++))}if(R>20&&p<E-2)return"".concat(C).concat(O,"\n").concat(s,"\n").concat(x,"...").concat(S).concat(n,"\n")+"".concat(x,"...").concat(S)}return"".concat(C).concat(l?O:"","\n").concat(s).concat(n).concat(a).concat(d)}(o,c,n));else if("notDeepStrictEqual"===n||"notStrictEqual"===n){var h=b[n],d=N(o).split("\n");if("notStrictEqual"===n&&"object"===_(o)&&null!==o&&(h=b.notStrictEqualObject),d.length>30)for(d[26]="".concat(x,"...").concat(S);d.length>27;)d.pop();r=1===d.length?p.call(this,"".concat(h," ").concat(d[0])):p.call(this,"".concat(h,"\n\n").concat(d.join("\n"),"\n"))}else{var f=N(o),y="",R=b[n];"notDeepEqual"===n||"notEqual"===n?(f="".concat(b[n],"\n\n").concat(f)).length>1024&&(f="".concat(f.slice(0,1021),"...")):(y="".concat(N(c)),f.length>512&&(f="".concat(f.slice(0,509),"...")),y.length>512&&(y="".concat(y.slice(0,509),"...")),"deepEqual"===n||"equal"===n?f="".concat(R,"\n\n").concat(f,"\n\nshould equal\n\n"):y=" ".concat(n," ").concat(y)),r=p.call(this,"".concat(f).concat(y))}return Error.stackTraceLimit=u,r.generatedMessage=!i,Object.defineProperty(l(r),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),r.code="ERR_ASSERTION",r.actual=o,r.expected=c,r.operator=n,Error.captureStackTrace&&Error.captureStackTrace(l(r),s),r.stack,r.name="AssertionError",a(r)}return c=A,(u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:r,value:function(t,e){return y(this,n(n({},e),{},{customInspect:!1,depth:0}))}}])&&s(c.prototype,u),Object.defineProperty(c,"prototype",{writable:!1}),A}(c(Error),y.custom);r.exports=A})),B=u(((t,e)=>{p();var r=Object.prototype.toString;e.exports=function(t){var e=r.call(t),i="[object Arguments]"===e;return i||(i="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),i}})),z=u(((t,e)=>{var r,i,n,s,o,a,l,c,u,h,d,f;p(),Object.keys||(i=Object.prototype.hasOwnProperty,n=Object.prototype.toString,s=B(),o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),l=o.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(t){var e=t.constructor;return e&&e.prototype===t},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{u(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),f=function(t){if("undefined"==typeof window||!d)return u(t);try{return u(t)}catch(t){return!1}},r=function(t){var e=null!==t&&"object"==typeof t,r="[object Function]"===n.call(t),o=s(t),u=e&&"[object String]"===n.call(t),h=[];if(!e&&!r&&!o)throw new TypeError("Object.keys called on a non-object");var p=l&&r;if(u&&t.length>0&&!i.call(t,0))for(var d=0;d<t.length;++d)h.push(String(d));if(o&&t.length>0)for(var _=0;_<t.length;++_)h.push(String(_));else for(var y in t)p&&"prototype"===y||!i.call(t,y)||h.push(String(y));if(a)for(var g=f(t),m=0;m<c.length;++m)g&&"constructor"===c[m]||!i.call(t,c[m])||h.push(c[m]);return h}),e.exports=r})),V=u(((t,e)=>{p();var r=Array.prototype.slice,i=B(),n=Object.keys,s=n?function(t){return n(t)}:z(),o=Object.keys;s.shim=function(){if(Object.keys){var t=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);t||(Object.keys=function(t){return i(t)?o(r.call(t)):o(t)})}else Object.keys=s;return Object.keys||s},e.exports=s})),q=u(((t,e)=>{p();var r=V(),i=_()(),n=R(),s=Object,o=n("Array.prototype.push"),a=n("Object.prototype.propertyIsEnumerable"),l=i?Object.getOwnPropertySymbols:null;e.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var n=s(t);if(1===arguments.length)return n;for(var c=1;c<arguments.length;++c){var u=s(arguments[c]),h=r(u),p=i&&(Object.getOwnPropertySymbols||l);if(p)for(var d=p(u),f=0;f<d.length;++f){var _=d[f];a(u,_)&&o(h,_)}for(var y=0;y<h.length;++y){var g=h[y];if(a(u,g)){var m=u[g];n[g]=m}}}return n}})),G=u(((t,e)=>{p();var r=q();e.exports=function(){return Object.assign?function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),r={},i=0;i<e.length;++i)r[e[i]]=e[i];var n=Object.assign({},r),s="";for(var o in n)s+=o;return t!==s}()||function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch(e){return"y"===t[1]}return!1}()?r:Object.assign:r}})),$=u(((t,e)=>{p();var r=function(t){return t!=t};e.exports=function(t,e){return 0===t&&0===e?1/t==1/e:t===e||!(!r(t)||!r(e))}})),Y=u(((t,e)=>{p();var r=$();e.exports=function(){return"function"==typeof Object.is?Object.is:r}})),W=u(((t,e)=>{p();var r=V(),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),n=Object.prototype.toString,s=Array.prototype.concat,o=Object.defineProperty,a=S()(),l=o&&a,c=function(t,e,r,i){if(e in t)if(!0===i){if(t[e]===r)return}else if(!function(t){return"function"==typeof t&&"[object Function]"===n.call(t)}(i)||!i())return;l?o(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r},u=function(t,e){var n=arguments.length>2?arguments[2]:{},o=r(e);i&&(o=s.call(o,Object.getOwnPropertySymbols(e)));for(var a=0;a<o.length;a+=1)c(t,o[a],e[o[a]],n[o[a]])};u.supportsDescriptors=!!l,e.exports=u})),X=u(((t,e)=>{p();var r=Y(),i=W();e.exports=function(){var t=r();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}})),J=u(((t,e)=>{p();var r=W(),i=A(),n=$(),s=Y(),o=X(),a=i(s(),Object);r(a,{getPolyfill:s,implementation:n,shim:o}),e.exports=a})),Q=u(((t,e)=>{p(),e.exports=function(t){return t!=t}})),Z=u(((t,e)=>{p();var r=Q();e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}})),tt=u(((t,e)=>{p();var r=W(),i=Z();e.exports=function(){var t=i();return r(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}})),et=u(((t,e)=>{p();var r=A(),i=W(),n=Q(),s=Z(),o=tt(),a=r(s(),Number);i(a,{getPolyfill:s,implementation:n,shim:o}),e.exports=a})),rt=u(((t,e)=>{function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var i,n,s,o,a=[],l=!0,c=!1;try{if(s=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(t){c=!0,n=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw n}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}p();var s=void 0!==/a/g.flags,o=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},a=function(t){var e=[];return t.forEach((function(t,r){return e.push([r,t])})),e},l=Object.is?Object.is:J(),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:et();function h(t){return t.call.bind(t)}var d=h(Object.prototype.hasOwnProperty),f=h(Object.prototype.propertyIsEnumerable),_=h(Object.prototype.toString),y=U().types,g=y.isAnyArrayBuffer,m=y.isArrayBufferView,x=y.isDate,T=y.isMap,v=y.isRegExp,S=y.isSet,b=y.isNativeError,E=y.isBoxedPrimitive,N=y.isNumberObject,A=y.isStringObject,R=y.isBooleanObject,C=y.isBigIntObject,O=y.isSymbolObject,L=y.isFloat32Array,w=y.isFloat64Array;function I(t){if(0===t.length||t.length>10)return!0;for(var e=0;e<t.length;e++){var r=t.charCodeAt(e);if(r<48||r>57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function P(t){return Object.keys(t).filter(I).concat(c(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function k(t,e){if(t===e)return 0;for(var r=t.length,i=e.length,n=0,s=Math.min(r,i);n<s;++n)if(t[n]!==e[n]){r=t[n],i=e[n];break}return r<i?-1:i<r?1:0}var D=0,F=1,M=2,j=3;function H(t,e,r,i){if(t===e)return 0!==t||!r||l(t,e);if(r){if("object"!==n(t))return"number"==typeof t&&u(t)&&u(e);if("object"!==n(e)||null===t||null===e)return!1;if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1}else{if(null===t||"object"!==n(t))return(null===e||"object"!==n(e))&&t==e;if(null===e||"object"!==n(e))return!1}var o,a,c,h,p=_(t);if(p!==_(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var d=P(t),f=P(e);return d.length===f.length&&B(t,e,r,i,F,d)}if("[object Object]"===p&&(!T(t)&&T(e)||!S(t)&&S(e)))return!1;if(x(t)){if(!x(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(v(t)){if(!v(e)||(c=t,h=e,!(s?c.source===h.source&&c.flags===h.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(h))))return!1}else if(b(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(m(t)){if(r||!L(t)&&!w(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===k(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}(t,e))return!1}else if(!function(t,e){if(t.byteLength!==e.byteLength)return!1;for(var r=0;r<t.byteLength;r++)if(t[r]!==e[r])return!1;return!0}(t,e))return!1;var y=P(t),I=P(e);return y.length===I.length&&B(t,e,r,i,D,y)}if(S(t))return!(!S(e)||t.size!==e.size)&&B(t,e,r,i,M);if(T(t))return!(!T(e)||t.size!==e.size)&&B(t,e,r,i,j);if(g(t)){if(a=e,(o=t).byteLength!==a.byteLength||0!==k(new Uint8Array(o),new Uint8Array(a)))return!1}else if(E(t)&&!function(t,e){return N(t)?N(e)&&l(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):A(t)?A(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):R(t)?R(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):C(t)?C(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):O(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return B(t,e,r,i,D)}function K(t,e){return e.filter((function(e){return f(t,e)}))}function B(t,e,i,s,l,u){if(5===arguments.length){u=Object.keys(t);var h=Object.keys(e);if(u.length!==h.length)return!1}for(var p=0;p<u.length;p++)if(!d(e,u[p]))return!1;if(i&&5===arguments.length){var _=c(t);if(0!==_.length){var y=0;for(p=0;p<_.length;p++){var g=_[p];if(f(t,g)){if(!f(e,g))return!1;u.push(g),y++}else if(f(e,g))return!1}var m=c(e);if(_.length!==m.length&&K(e,m).length!==y)return!1}else{var x=c(e);if(0!==x.length&&0!==K(e,x).length)return!1}}if(0===u.length&&(l===D||l===F&&0===t.length||0===t.size))return!0;if(void 0===s)s={val1:new Map,val2:new Map,position:0};else{var T=s.val1.get(t);if(void 0!==T){var v=s.val2.get(e);if(void 0!==v)return T===v}s.position++}s.val1.set(t,s.position),s.val2.set(e,s.position);var S=function(t,e,i,s,l,c){var u=0;if(c===M){if(!function(t,e,r,i){for(var s=null,a=o(t),l=0;l<a.length;l++){var c=a[l];if("object"===n(c)&&null!==c)null===s&&(s=new Set),s.add(c);else if(!e.has(c)){if(r)return!1;if(!q(t,e,c))return!1;null===s&&(s=new Set),s.add(c)}}if(null!==s){for(var u=o(e),h=0;h<u.length;h++){var p=u[h];if("object"===n(p)&&null!==p){if(!z(s,p,r,i))return!1}else if(!r&&!t.has(p)&&!z(s,p,r,i))return!1}return 0===s.size}return!0}(t,e,i,l))return!1}else if(c===j){if(!function(t,e,i,s){for(var o=null,l=a(t),c=0;c<l.length;c++){var u=r(l[c],2),h=u[0],p=u[1];if("object"===n(h)&&null!==h)null===o&&(o=new Set),o.add(h);else{var d=e.get(h);if(void 0===d&&!e.has(h)||!H(p,d,i,s)){if(i)return!1;if(!G(t,e,h,p,s))return!1;null===o&&(o=new Set),o.add(h)}}}if(null!==o){for(var f=a(e),_=0;_<f.length;_++){var y=r(f[_],2),g=y[0],m=y[1];if("object"===n(g)&&null!==g){if(!$(o,t,g,m,i,s))return!1}else if(!(i||t.has(g)&&H(t.get(g),m,!1,s)||$(o,t,g,m,!1,s)))return!1}return 0===o.size}return!0}(t,e,i,l))return!1}else if(c===F)for(;u<t.length;u++){if(!d(t,u)){if(d(e,u))return!1;for(var h=Object.keys(t);u<h.length;u++){var p=h[u];if(!d(e,p)||!H(t[p],e[p],i,l))return!1}return h.length===Object.keys(e).length}if(!d(e,u)||!H(t[u],e[u],i,l))return!1}for(u=0;u<s.length;u++){var f=s[u];if(!H(t[f],e[f],i,l))return!1}return!0}(t,e,i,u,s,l);return s.val1.delete(t),s.val2.delete(e),S}function z(t,e,r,i){for(var n=o(t),s=0;s<n.length;s++){var a=n[s];if(H(e,a,r,i))return t.delete(a),!0}return!1}function V(t){switch(n(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(u(t))return!1}return!0}function q(t,e,r){var i=V(r);return null!=i?i:e.has(i)&&!t.has(i)}function G(t,e,r,i,n){var s=V(r);if(null!=s)return s;var o=e.get(s);return!(void 0===o&&!e.has(s)||!H(i,o,!1,n))&&!t.has(s)&&H(i,o,!1,n)}function $(t,e,r,i,n,s){for(var a=o(t),l=0;l<a.length;l++){var c=a[l];if(H(r,c,n,s)&&H(i,e.get(c),n,s))return t.delete(c),!0}return!1}e.exports={isDeepEqual:function(t,e){return H(t,e,!1)},isDeepStrictEqual:function(t,e){return H(t,e,!0)}}})),it=u(((e,r)=>{function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(void 0,s=function(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===i(s)?s:String(s)),n)}var s}function s(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}p();var o,a,l=H().codes,c=l.ERR_AMBIGUOUS_ARGUMENT,u=l.ERR_INVALID_ARG_TYPE,h=l.ERR_INVALID_ARG_VALUE,d=l.ERR_INVALID_RETURN_VALUE,f=l.ERR_MISSING_ARGS,_=K(),y=U().inspect,g=U().types,m=g.isPromise,x=g.isRegExp,T=G()(),v=Y()(),S=R()("RegExp.prototype.test");function b(){var t=rt();o=t.isDeepEqual,a=t.isDeepStrictEqual}new Map;var E=!1,N=r.exports=L,A={};function C(t){if(t.message instanceof Error)throw t.message;throw new _(t)}function O(t,e,r,i){if(!r){var n=!1;if(0===e)n=!0,i="No value argument passed to `assert.ok()`";else if(i instanceof Error)throw i;var s=new _({actual:r,expected:!0,message:i,operator:"==",stackStartFn:t});throw s.generatedMessage=n,s}}function L(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];O.apply(void 0,[L,e.length].concat(e))}N.fail=function e(r,i,n,s,o){var a,l=arguments.length;if(0===l?a="Failed":1===l?(n=r,r=void 0):(!1===E&&(E=!0,(t.emitWarning?t.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")),2===l&&(s="!=")),n instanceof Error)throw n;var c={actual:r,expected:i,operator:void 0===s?"fail":s,stackStartFn:o||e};void 0!==n&&(c.message=n);var u=new _(c);throw a&&(u.message=a,u.generatedMessage=!0),u},N.AssertionError=_,N.ok=L,N.equal=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");e!=r&&C({actual:e,expected:r,message:i,operator:"==",stackStartFn:t})},N.notEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");e==r&&C({actual:e,expected:r,message:i,operator:"!=",stackStartFn:t})},N.deepEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");void 0===o&&b(),o(e,r)||C({actual:e,expected:r,message:i,operator:"deepEqual",stackStartFn:t})},N.notDeepEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");void 0===o&&b(),o(e,r)&&C({actual:e,expected:r,message:i,operator:"notDeepEqual",stackStartFn:t})},N.deepStrictEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");void 0===o&&b(),a(e,r)||C({actual:e,expected:r,message:i,operator:"deepStrictEqual",stackStartFn:t})},N.notDeepStrictEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");void 0===o&&b(),a(e,r)&&C({actual:e,expected:r,message:i,operator:"notDeepStrictEqual",stackStartFn:t})},N.strictEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");v(e,r)||C({actual:e,expected:r,message:i,operator:"strictEqual",stackStartFn:t})},N.notStrictEqual=function t(e,r,i){if(arguments.length<2)throw new f("actual","expected");v(e,r)&&C({actual:e,expected:r,message:i,operator:"notStrictEqual",stackStartFn:t})};var w=s((function t(e,r,i){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r.forEach((function(t){t in e&&(void 0!==i&&"string"==typeof i[t]&&x(e[t])&&S(e[t],i[t])?n[t]=i[t]:n[t]=e[t])}))}));function I(t,e,r,n){if("function"!=typeof e){if(x(e))return S(e,t);if(2===arguments.length)throw new u("expected",["Function","RegExp"],e);if("object"!==i(t)||null===t){var s=new _({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:n});throw s.operator=n.name,s}var l=Object.keys(e);if(e instanceof Error)l.push("name","message");else if(0===l.length)throw new h("error",e,"may not be an empty object");return void 0===o&&b(),l.forEach((function(i){"string"==typeof t[i]&&x(e[i])&&S(e[i],t[i])||function(t,e,r,i,n,s){if(!(r in t)||!a(t[r],e[r])){if(!i){var o=new w(t,n),l=new w(e,n,t),c=new _({actual:o,expected:l,operator:"deepStrictEqual",stackStartFn:s});throw c.actual=t,c.expected=e,c.operator=s.name,c}C({actual:t,expected:e,message:i,operator:s.name,stackStartFn:s})}}(t,e,i,r,l,n)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function P(t){if("function"!=typeof t)throw new u("fn","Function",t);try{t()}catch(t){return t}return A}function k(t){return m(t)||null!==t&&"object"===i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function D(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!k(e=t()))throw new d("instance of Promise","promiseFn",e)}else{if(!k(t))throw new u("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return A})).catch((function(t){return t}))}))}function F(t,e,r,n){if("string"==typeof r){if(4===arguments.length)throw new u("error",["Object","Error","Function","RegExp"],r);if("object"===i(e)&&null!==e){if(e.message===r)throw new c("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new c("error/message",'The error "'.concat(e,'" is identical to the message.'));n=r,r=void 0}else if(null!=r&&"object"!==i(r)&&"function"!=typeof r)throw new u("error",["Object","Error","Function","RegExp"],r);if(e===A){var s="";r&&r.name&&(s+=" (".concat(r.name,")")),s+=n?": ".concat(n):".";var o="rejects"===t.name?"rejection":"exception";C({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(o).concat(s),stackStartFn:t})}if(r&&!I(e,r,n,t))throw e}function M(t,e,r,i){if(e!==A){if("string"==typeof r&&(i=r,r=void 0),!r||I(e,r)){var n=i?": ".concat(i):".",s="doesNotReject"===t.name?"rejection":"exception";C({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(s).concat(n,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function j(t,e,r,n,s){if(!x(e))throw new u("regexp","RegExp",e);var o="match"===s;if("string"!=typeof t||S(e,t)!==o){if(r instanceof Error)throw r;var a=!r;r=r||("string"!=typeof t?'The "string" argument must be of type string. Received type '+"".concat(i(t)," (").concat(y(t),")"):(o?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(y(e),". Input:\n\n").concat(y(t),"\n"));var l=new _({actual:t,expected:e,message:r,operator:s,stackStartFn:n});throw l.generatedMessage=a,l}}function B(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];O.apply(void 0,[B,e.length].concat(e))}N.throws=function t(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];F.apply(void 0,[t,P(e)].concat(i))},N.rejects=function t(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return D(e).then((function(e){return F.apply(void 0,[t,e].concat(i))}))},N.doesNotThrow=function t(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];M.apply(void 0,[t,P(e)].concat(i))},N.doesNotReject=function t(e){for(var r=arguments.length,i=new Array(r>1?r-1:0),n=1;n<r;n++)i[n-1]=arguments[n];return D(e).then((function(e){return M.apply(void 0,[t,e].concat(i))}))},N.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===i(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=y(e);var n=new _({actual:e,expected:null,operator:"ifError",message:r,stackStartFn:t}),s=e.stack;if("string"==typeof s){var o=s.split("\n");o.shift();for(var a=n.stack.split("\n"),l=0;l<o.length;l++){var c=a.indexOf(o[l]);if(-1!==c){a=a.slice(0,c);break}}n.stack="".concat(a.join("\n"),"\n").concat(o.join("\n"))}throw n}},N.match=function t(e,r,i){j(e,r,i,t,"match")},N.doesNotMatch=function t(e,r,i){j(e,r,i,t,"doesNotMatch")},N.strict=T(B,N,{equal:N.strictEqual,deepEqual:N.deepStrictEqual,notEqual:N.notStrictEqual,notDeepEqual:N.notDeepStrictEqual}),N.strict.strict=N.strict})),nt=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.SuppressWarnings=t.Override=t.Nullable=t.NotNull=void 0,t.NotNull=function(t,e,r){},t.Nullable=function(t,e,r){},t.Override=function(t,e,r){},t.SuppressWarnings=function(t){return(t,e,r)=>{}}})),st=u((t=>{var e;p(),Object.defineProperty(t,"__esModule",{value:!0}),t.IntStream=void 0,(e=t.IntStream||(t.IntStream={})).EOF=-1,e.UNKNOWN_SOURCE_NAME="<unknown>"})),ot=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.ANTLRInputStream=void 0;var r=it(),i=nt(),n=st(),s=class{constructor(t){this.p=0,this.data=t,this.n=t.length}reset(){this.p=0}consume(){if(this.p>=this.n)throw r(this.LA(1)===n.IntStream.EOF),new Error("cannot consume EOF");this.p<this.n&&this.p++}LA(t){return 0===t?0:t<0&&(t++,this.p+t-1<0)||this.p+t-1>=this.n?n.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<t;)this.consume()}getText(t){let e=t.a,r=t.b;r>=this.n&&(r=this.n-1);let i=r-e+1;return e>=this.n?"":this.data.substr(e,i)}get sourceName(){return this.name?this.name:n.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}};e([i.Override],s.prototype,"consume",null),e([i.Override],s.prototype,"LA",null),e([i.Override],s.prototype,"index",null),e([i.Override],s.prototype,"size",null),e([i.Override],s.prototype,"mark",null),e([i.Override],s.prototype,"release",null),e([i.Override],s.prototype,"seek",null),e([i.Override],s.prototype,"getText",null),e([i.Override],s.prototype,"sourceName",null),e([i.Override],s.prototype,"toString",null),t.ANTLRInputStream=s})),at=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.ATNState=void 0;var r=nt(),i=class{constructor(){this.stateNumber=i.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 i&&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)}};e([r.Override],i.prototype,"hashCode",null),e([r.Override],i.prototype,"equals",null),e([r.Override],i.prototype,"toString",null),t.ATNState=i,(i=t.ATNState||(t.ATNState={})).INVALID_STATE_NUMBER=-1})),lt=u((t=>{var e;p(),Object.defineProperty(t,"__esModule",{value:!0}),t.ATNStateType=void 0,(e=t.ATNStateType||(t.ATNStateType={}))[e.INVALID_TYPE=0]="INVALID_TYPE",e[e.BASIC=1]="BASIC",e[e.RULE_START=2]="RULE_START",e[e.BLOCK_START=3]="BLOCK_START",e[e.PLUS_BLOCK_START=4]="PLUS_BLOCK_START",e[e.STAR_BLOCK_START=5]="STAR_BLOCK_START",e[e.TOKEN_START=6]="TOKEN_START",e[e.RULE_STOP=7]="RULE_STOP",e[e.BLOCK_END=8]="BLOCK_END",e[e.STAR_LOOP_BACK=9]="STAR_LOOP_BACK",e[e.STAR_LOOP_ENTRY=10]="STAR_LOOP_ENTRY",e[e.PLUS_LOOP_BACK=11]="PLUS_LOOP_BACK",e[e.LOOP_END=12]="LOOP_END"})),ct=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.RecognitionException=void 0;var e=class extends Error{constructor(t,e,r,i){super(i),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}};t.RecognitionException=e})),ut=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transition=void 0;var i=nt(),n=class{constructor(t){if(null==t)throw new Error("target cannot be null.");this.target=t}get isEpsilon(){return!1}get label(){}};n.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],e([i.NotNull],n.prototype,"target",void 0),n=e([r(0,i.NotNull)],n),t.Transition=n})),ht=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractPredicateTransition=void 0;var e=ut(),r=class extends e.Transition{constructor(t){super(t)}};t.AbstractPredicateTransition=r})),pt=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash=void 0,function(t){const e=0;function r(t=e){return t}function i(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 i=0;i<e;i++)r=(r<<5>>>0)-r+t.charCodeAt(i),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 n(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=i,t.finish=n,t.hashCode=function(t,s=e){let o=r(s),a=0;for(let e of t)o=i(o,e),a++;return o=n(o,a),o}}(t.MurmurHash||(t.MurmurHash={}))})),dt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectEqualityComparator=void 0;var r=nt(),i=class{hashCode(t){return null==t?0:t.hashCode()}equals(t,e){return null==t?null==e:t.equals(e)}};i.INSTANCE=new i,e([r.Override],i.prototype,"hashCode",null),e([r.Override],i.prototype,"equals",null),t.ObjectEqualityComparator=i})),ft=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultEqualityComparator=void 0;var r=nt(),i=pt(),n=dt(),s=class{hashCode(t){return null==t?0:"string"==typeof t||"number"==typeof t?i.MurmurHash.hashCode([t]):n.ObjectEqualityComparator.INSTANCE.hashCode(t)}equals(t,e){return null==t?null==e:"string"==typeof t||"number"==typeof t?t===e:n.ObjectEqualityComparator.INSTANCE.equals(t,e)}};s.INSTANCE=new s,e([r.Override],s.prototype,"hashCode",null),e([r.Override],s.prototype,"equals",null),t.DefaultEqualityComparator=s})),_t=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Array2DHashSet=void 0;var i=it(),n=ft(),s=nt(),o=pt(),a=class{constructor(t,e=16){if(this.n=0,this.threshold=Math.floor(12),t instanceof a){this.comparator=t.comparator,this.buckets=t.buckets.slice(0);for(let t=0;t<this.buckets.length;t++){let e=this.buckets[t];e&&(this.buckets[t]=e.slice(0))}this.n=t.n,this.threshold=t.threshold}else this.comparator=t||n.DefaultEqualityComparator.INSTANCE,this.buckets=this.createBuckets(e)}getOrAdd(t){return this.n>this.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=o.MurmurHash.initialize();for(let e of this.buckets)if(null!=e)for(let r of e){if(null==r)break;t=o.MurmurHash.update(t,this.comparator.hashCode(r))}return t=o.MurmurHash.finish(t,this.size),t}equals(t){return t===this||t instanceof a&&(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)}i(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 i of r){if(null==i)break;t[e++]=i}return t}containsAll(t){if(t instanceof a){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 i of r){if(null==i)break;e?e=!1:t+=", ",t+=i.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 i of e)r?r=!1:t+=" ",t+=null==i?"_":i.toString();t+="]\n"}return t}asElementType(t){return t}createBuckets(t){return new Array(t)}};e([s.NotNull],a.prototype,"comparator",void 0),e([s.Override],a.prototype,"hashCode",null),e([s.Override],a.prototype,"equals",null),e([s.Override],a.prototype,"add",null),e([s.Override],a.prototype,"size",null),e([s.Override],a.prototype,"isEmpty",null),e([s.Override],a.prototype,"contains",null),e([r(0,s.Nullable)],a.prototype,"containsFast",null),e([s.Override],a.prototype,Symbol.iterator,null),e([s.Override],a.prototype,"toArray",null),e([s.Override],a.prototype,"containsAll",null),e([s.Override],a.prototype,"addAll",null),e([s.Override],a.prototype,"clear",null),e([s.Override],a.prototype,"toString",null),e([s.SuppressWarnings("unchecked")],a.prototype,"asElementType",null),e([s.SuppressWarnings("unchecked")],a.prototype,"createBuckets",null),t.Array2DHashSet=a})),yt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayEqualityComparator=void 0;var r=nt(),i=pt(),n=dt(),s=class{hashCode(t){return null==t?0:i.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<t.length;r++)if(!n.ObjectEqualityComparator.INSTANCE.equals(t[r],e[r]))return!1;return!0}};s.INSTANCE=new s,e([r.Override],s.prototype,"hashCode",null),e([r.Override],s.prototype,"equals",null),t.ArrayEqualityComparator=s})),gt=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.toCharArray=t.toMap=t.equals=t.join=t.escapeWhitespace=void 0,t.escapeWhitespace=function(t,e){return e?t.replace(/ /,"·"):t.replace(/\t/,"\\t").replace(/\n/,"\\n").replace(/\r/,"\\r")},t.join=function(t,e){let r="",i=!0;for(let n of t)i?i=!1:r+=e,r+=n;return r},t.equals=function(t,e){return t===e||void 0!==t&&void 0!==e&&t.equals(e)},t.toMap=function(t){let e=new Map;for(let r=0;r<t.length;r++)e.set(t[r],r);return e},t.toCharArray=function(t){if("string"==typeof t){let e=new Uint16Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}return t.toCharArray()}})),mt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticContext=void 0;var i=_t(),n=yt(),s=pt(),o=nt(),a=dt(),l=gt(),c=class{static get NONE(){return void 0===c._NONE&&(c._NONE=new c.Predicate),c._NONE}evalPrecedence(t,e){return this}static and(t,e){if(!t||t===c.NONE)return e;if(e===c.NONE)return t;let r=new c.AND(t,e);return 1===r.opnds.length?r.opnds[0]:r}static or(t,e){if(!t)return e;if(t===c.NONE||e===c.NONE)return c.NONE;let r=new c.OR(t,e);return 1===r.opnds.length?r.opnds[0]:r}};t.SemanticContext=c,function(t){function c(e){let r=[];for(let i=0;i<e.length;i++){let n=e[i];n instanceof t.PrecedencePredicate&&(r.push(n),e.splice(i,1),i--)}return r}class u extends t{constructor(t=-1,e=-1,r=!1){super(),this.ruleIndex=t,this.predIndex=e,this.isCtxDependent=r}eval(t,e){let r=this.isCtxDependent?e:void 0;return t.sempred(r,this.ruleIndex,this.predIndex)}hashCode(){let t=s.MurmurHash.initialize();return t=s.MurmurHash.update(t,this.ruleIndex),t=s.MurmurHash.update(t,this.predIndex),t=s.MurmurHash.update(t,this.isCtxDependent?1:0),t=s.MurmurHash.finish(t,3),t}equals(t){return t instanceof u&&(this===t||this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent)}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}e([o.Override],u.prototype,"eval",null),e([o.Override],u.prototype,"hashCode",null),e([o.Override],u.prototype,"equals",null),e([o.Override],u.prototype,"toString",null),t.Predicate=u;class h extends t{constructor(t){super(),this.precedence=t}eval(t,e){return t.precpred(e,this.precedence)}evalPrecedence(e,r){return e.precpred(r,this.precedence)?t.NONE:void 0}compareTo(t){return this.precedence-t.precedence}hashCode(){let t=1;return t=31*t+this.precedence,t}equals(t){return t instanceof h&&(this===t||this.precedence===t.precedence)}toString(){return"{"+this.precedence+">=prec}?"}}e([o.Override],h.prototype,"eval",null),e([o.Override],h.prototype,"evalPrecedence",null),e([o.Override],h.prototype,"compareTo",null),e([o.Override],h.prototype,"hashCode",null),e([o.Override],h.prototype,"equals",null),e([o.Override],h.prototype,"toString",null),t.PrecedencePredicate=h;class p extends t{}t.Operator=p;let d=class e extends p{constructor(t,r){super();let n=new i.Array2DHashSet(a.ObjectEqualityComparator.INSTANCE);t instanceof e?n.addAll(t.opnds):n.add(t),r instanceof e?n.addAll(r.opnds):n.add(r),this.opnds=n.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}(c(this.opnds));s&&this.opnds.push(s)}get operands(){return this.opnds}equals(t){return this===t||t instanceof e&&n.ArrayEqualityComparator.INSTANCE.equals(this.opnds,t.opnds)}hashCode(){return s.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 i=!1,n=[];for(let s of this.opnds){let o=s.evalPrecedence(e,r);if(i=i||o!==s,null==o)return;o!==t.NONE&&n.push(o)}if(!i)return this;if(0===n.length)return t.NONE;let s=n[0];for(let e=1;e<n.length;e++)s=t.and(s,n[e]);return s}toString(){return l.join(this.opnds,"&&")}};e([o.Override],d.prototype,"operands",null),e([o.Override],d.prototype,"equals",null),e([o.Override],d.prototype,"hashCode",null),e([o.Override],d.prototype,"eval",null),e([o.Override],d.prototype,"evalPrecedence",null),e([o.Override],d.prototype,"toString",null),d=e([r(0,o.NotNull),r(1,o.NotNull)],d),t.AND=d;let f=class e extends p{constructor(t,r){super();let n=new i.Array2DHashSet(a.ObjectEqualityComparator.INSTANCE);t instanceof e?n.addAll(t.opnds):n.add(t),r instanceof e?n.addAll(r.opnds):n.add(r),this.opnds=n.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}(c(this.opnds));s&&this.opnds.push(s)}get operands(){return this.opnds}equals(t){return this===t||t instanceof e&&n.ArrayEqualityComparator.INSTANCE.equals(this.opnds,t.opnds)}hashCode(){return s.MurmurHash.hashCode(this.opnds,486279973)}eval(t,e){for(let r of this.opnds)if(r.eval(t,e))return!0;return!1}evalPrecedence(e,r){let i=!1,n=[];for(let s of this.opnds){let o=s.evalPrecedence(e,r);if(i=i||o!==s,o===t.NONE)return t.NONE;o&&n.push(o)}if(!i)return this;if(0===n.length)return;let s=n[0];for(let e=1;e<n.length;e++)s=t.or(s,n[e]);return s}toString(){return l.join(this.opnds,"||")}};e([o.Override],f.prototype,"operands",null),e([o.Override],f.prototype,"equals",null),e([o.Override],f.prototype,"hashCode",null),e([o.Override],f.prototype,"eval",null),e([o.Override],f.prototype,"evalPrecedence",null),e([o.Override],f.prototype,"toString",null),f=e([r(0,o.NotNull),r(1,o.NotNull)],f),t.OR=f}(c=t.SemanticContext||(t.SemanticContext={}))})),xt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.PredicateTransition=void 0;var i=ht(),n=nt(),s=mt(),o=class extends i.AbstractPredicateTransition{constructor(t,e,r,i){super(t),this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=i}get serializationType(){return 4}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new s.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};e([n.Override],o.prototype,"serializationType",null),e([n.Override],o.prototype,"isEpsilon",null),e([n.Override],o.prototype,"matches",null),e([n.Override,n.NotNull],o.prototype,"toString",null),o=e([r(0,n.NotNull)],o),t.PredicateTransition=o})),Tt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.FailedPredicateException=void 0;var i=ct(),n=nt(),s=xt(),o=class t extends i.RecognitionException{constructor(e,r,i){super(e,e.inputStream,e.context,t.formatMessage(r,i));let n=e.interpreter.atn.states[e.state].transition(0);n instanceof s.PredicateTransition?(this._ruleIndex=n.ruleIndex,this._predicateIndex=n.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}}?`}};e([n.NotNull],o,"formatMessage",null),o=e([r(0,n.NotNull)],o),t.FailedPredicateException=o})),vt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputMismatchException=void 0;var i=ct(),n=nt(),s=class extends i.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)}};s=e([r(0,n.NotNull)],s),t.InputMismatchException=s})),St=u((t=>{var e;p(),Object.defineProperty(t,"__esModule",{value:!0}),t.Arrays=void 0,(e=t.Arrays||(t.Arrays={})).binarySearch=function(t,e,r,i){return function(t,e,r,i){let n=e,s=r-1;for(;n<=s;){let e=n+s>>>1,r=t[e];if(r<i)n=e+1;else{if(!(r>i))return e;s=e-1}}return-(n+1)}(t,void 0!==r?r:0,void 0!==i?i:t.length,e)},e.toString=function(t){let e="[",r=!0;for(let i of t)r?r=!1:e+=", ",e+=null===i?"null":void 0===i?"undefined":i;return e+="]",e}})),bt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.IntegerList=void 0;var r=St(),i=nt(),n=new Int32Array(0),s=2147483639,o=class{constructor(t){if(t)if(t instanceof o)this._data=t._data.slice(0),this._size=t._size;else if("number"==typeof t)0===t?(this._data=n,this._size=0):(this._data=new Int32Array(t),this._size=0);else{this._data=n,this._size=0;for(let e of t)this.add(e)}else this._data=n,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 o)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;e++)if(this._data[e]===t)return!0;return!1}set(t,e){if(t<0||t>=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 o))return!1;if(this._size!==t._size)return!1;for(let e=0;e<this._size;e++)if(this._data[e]!==t._data[e])return!1;return!0}hashCode(){let t=1;for(let e=0;e<this._size;e++)t=31*t+this._data[e];return t}toString(){return this._data.toString()}binarySearch(t,e,i){if(void 0===e&&(e=0),void 0===i&&(i=this._size),e<0||i<0||e>this._size||i>this._size)throw new RangeError;if(e>i)throw new RangeError;return r.Arrays.binarySearch(this._data,t,e,i)}ensureCapacity(t){if(t<0||t>s)throw new RangeError;let e;for(e=0===this._data.length?4:this._data.length;e<t;)e*=2,(e<0||e>s)&&(e=s);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 i=0;i<this._size;i++){let n=this._data[i];if(n>=0&&n<65536){t[e]=n,e++;continue}if(!r){let e=new Uint16Array(this.charArraySize());e.set(t,0),t=e,r=!0}let s=String.fromCodePoint(n);t[e]=s.charCodeAt(0),t[e+1]=s.charCodeAt(1),e+=2}return t}charArraySize(){let t=0;for(let e=0;e<this._size;e++)t+=this._data[e]>=65536?2:1;return t}};e([i.NotNull],o.prototype,"_data",void 0),e([i.Override],o.prototype,"equals",null),e([i.Override],o.prototype,"hashCode",null),e([i.Override],o.prototype,"toString",null),t.IntegerList=o})),Et=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.Interval=void 0;var r=nt(),i=class{constructor(t,e){this.a=t,this.b=e}static get INVALID(){return i._INVALID}static of(t,e){return t!==e||t<0||t>1e3?new i(t,e):(null==i.cache[t]&&(i.cache[t]=new i(t,t)),i.cache[t])}get length(){return this.b<this.a?0:this.b-this.a+1}equals(t){return t===this||t instanceof i&&this.a===t.a&&this.b===t.b}hashCode(){let t=23;return t=31*t+this.a,t=31*t+this.b,t}startsBeforeDisjoint(t){return this.a<t.a&&this.b<t.a}startsBeforeNonDisjoint(t){return this.a<=t.a&&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 i.of(Math.min(this.a,t.a),Math.max(this.b,t.b))}intersection(t){return i.of(Math.max(this.a,t.a),Math.min(this.b,t.b))}differenceNotProperlyContained(t){let e;return t.startsBeforeNonDisjoint(this)?e=i.of(Math.max(this.a,t.b+1),this.b):t.startsAfterNonDisjoint(this)&&(e=i.of(this.a,t.a-1)),e}toString(){return this.a+".."+this.b}};i._INVALID=new i(-1,-2),i.cache=new Array(1001),e([r.Override],i.prototype,"equals",null),e([r.Override],i.prototype,"hashCode",null),e([r.Override],i.prototype,"toString",null),t.Interval=i})),Nt=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.Token=void 0;var e,r=st();(e=t.Token||(t.Token={})).INVALID_TYPE=0,e.EPSILON=-2,e.MIN_USER_TOKEN_TYPE=1,e.EOF=r.IntStream.EOF,e.DEFAULT_CHANNEL=0,e.HIDDEN_CHANNEL=1,e.MIN_USER_CHANNEL_VALUE=2})),At=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommonToken=void 0;var i=Et(),n=nt(),s=Nt(),o=class t{constructor(e,r,i=t.EMPTY_SOURCE,n=s.Token.DEFAULT_CHANNEL,o=0,a=0){this._line=0,this._charPositionInLine=-1,this._channel=s.Token.DEFAULT_CHANNEL,this.index=-1,this._text=r,this._type=e,this.source=i,this._channel=n,this.start=o,this.stop=a,null!=i.source&&(this._line=i.source.line,this._charPositionInLine=i.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<e&&this.stop<e?t.getText(i.Interval.of(this.start,this.stop)):"<EOF>"}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="<no text>";let i=String(this._type);return t&&(i=t.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+r+"',<"+i+">"+e+","+this._line+":"+this.charPositionInLine+"]"}};o.EMPTY_SOURCE={source:void 0,stream:void 0},e([n.NotNull],o.prototype,"source",void 0),e([n.Override],o.prototype,"type",null),e([n.Override],o.prototype,"line",null),e([n.Override],o.prototype,"text",null),e([n.Override],o.prototype,"charPositionInLine",null),e([n.Override],o.prototype,"channel",null),e([n.Override],o.prototype,"startIndex",null),e([n.Override],o.prototype,"stopIndex",null),e([n.Override],o.prototype,"tokenIndex",null),e([n.Override],o.prototype,"tokenSource",null),e([n.Override],o.prototype,"inputStream",null),e([n.Override],o.prototype,"toString",null),e([r(0,n.NotNull)],o,"fromToken",null),o=e([r(2,n.NotNull)],o),t.CommonToken=o})),Rt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.CommonTokenFactory=void 0;var r,i=At(),n=Et(),s=nt(),o=class{constructor(t=!1){this.copyText=t}create(t,e,r,s,o,a,l,c){let u=new i.CommonToken(e,r,t,s,o,a);return u.line=l,u.charPositionInLine=c,null==r&&this.copyText&&null!=t.stream&&(u.text=t.stream.getText(n.Interval.of(o,a))),u}createSimple(t,e){return new i.CommonToken(t,e)}};e([s.Override],o.prototype,"create",null),e([s.Override],o.prototype,"createSimple",null),t.CommonTokenFactory=o,(r=o=t.CommonTokenFactory||(t.CommonTokenFactory={})).DEFAULT=new r})),Ct=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.IntegerStack=void 0;var e=bt(),r=class extends e.IntegerList{constructor(t){super(t)}push(t){this.add(t)}pop(){return this.removeAt(this.size-1)}peek(){return this.get(this.size-1)}};t.IntegerStack=r})),Ot=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.AcceptStateInfo=void 0,t.AcceptStateInfo=class{constructor(t,e){this._prediction=t,this._lexerActionExecutor=e}get prediction(){return this._prediction}get lexerActionExecutor(){return this._lexerActionExecutor}}})),Lt=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.Array2DHashMap=void 0;var e=_t(),r=class{constructor(t){this.backingStore=t instanceof r?new e.Array2DHashSet(t.backingStore):new e.Array2DHashSet(new class{constructor(t){this.keyComparator=t}hashCode(t){return this.keyComparator.hashCode(t.key)}equals(t,e){return this.keyComparator.equals(t.key,e.key)}}(t))}clear(){this.backingStore.clear()}containsKey(t){return this.backingStore.contains({key:t})}get(t){let e=this.backingStore.get({key:t});if(e)return e.value}get isEmpty(){return this.backingStore.isEmpty}put(t,e){let r,i=this.backingStore.get({key:t,value:e});return i?(r=i.value,i.value=e):this.backingStore.add({key:t,value:e}),r}putIfAbsent(t,e){let r,i=this.backingStore.get({key:t,value:e});return i?r=i.value:this.backingStore.add({key:t,value:e}),r}get size(){return this.backingStore.size}hashCode(){return this.backingStore.hashCode()}equals(t){return t instanceof r&&this.backingStore.equals(t.backingStore)}};t.Array2DHashMap=r})),wt=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.DecisionState=void 0;var e=at(),r=class extends e.ATNState{constructor(){super(...arguments),this.decision=-1,this.nonGreedy=!1,this.sll=!1}};t.DecisionState=r})),It=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.PredictionContextCache=void 0;var r=Lt(),i=nt(),n=dt(),s=Pt(),o=it(),a=class{constructor(t=!0){this.contexts=new r.Array2DHashMap(n.ObjectEqualityComparator.INSTANCE),this.childContexts=new r.Array2DHashMap(n.ObjectEqualityComparator.INSTANCE),this.joinContexts=new r.Array2DHashMap(n.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 a.PredictionContextAndInt(t,e),i=this.childContexts.get(r);return i||(i=t.getChild(e),i=this.getAsCached(i),this.childContexts.put(r,i)),i}join(t,e){if(!this.enableCache)return s.PredictionContext.join(t,e,this);let r=new a.IdentityCommutativePredictionContextOperands(t,e),i=this.joinContexts.get(r);return i||(i=s.PredictionContext.join(t,e,this),i=this.getAsCached(i),this.joinContexts.put(r,i),i)}};t.PredictionContextCache=a,a.UNCACHED=new a(!1),function(t){class r{constructor(t,e){this.obj=t,this.value=e}equals(t){if(!(t instanceof r))return!1;if(t===this)return!0;let e=t;return this.value===e.value&&(this.obj===e.obj||null!=this.obj&&this.obj.equals(e.obj))}hashCode(){let t=5;return t=7*t+(null!=this.obj?this.obj.hashCode():0),t=7*t+this.value,t}}e([i.Override],r.prototype,"equals",null),e([i.Override],r.prototype,"hashCode",null),t.PredictionContextAndInt=r;class n{constructor(t,e){o(null!=t),o(null!=e),this._x=t,this._y=e}get x(){return this._x}get y(){return this._y}equals(t){if(!(t instanceof n))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()}}e([i.Override],n.prototype,"equals",null),e([i.Override],n.prototype,"hashCode",null),t.IdentityCommutativePredictionContextOperands=n}(a=t.PredictionContextCache||(t.PredictionContextCache={}))})),Pt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SingletonPredictionContext=t.PredictionContext=void 0;var i=Lt(),n=_t(),s=St(),o=pt(),a=nt(),l=It(),c=it(),u=class{constructor(t){this.cachedHashCode=t}static calculateEmptyHashCode(){let t=o.MurmurHash.initialize(1);return t=o.MurmurHash.finish(t,0),t}static calculateSingleHashCode(t,e){let r=o.MurmurHash.initialize(1);return r=o.MurmurHash.update(r,t),r=o.MurmurHash.update(r,e),r=o.MurmurHash.finish(r,2),r}static calculateHashCode(t,e){let r=o.MurmurHash.initialize(1);for(let e of t)r=o.MurmurHash.update(r,e);for(let t of e)r=o.MurmurHash.update(r,t);return r=o.MurmurHash.finish(r,2*t.length),r}static fromRuleContext(t,e,r=!0){if(e.isEmpty)return r?u.EMPTY_FULL:u.EMPTY_LOCAL;let i;i=e._parent?u.fromRuleContext(t,e._parent,r):r?u.EMPTY_FULL:u.EMPTY_LOCAL;let n=t.states[e.invokingState].transition(0);return i.getChild(n.followState.stateNumber)}static addEmptyContext(t){return t.addEmptyContext()}static removeEmptyContext(t){return t.removeEmptyContext()}static join(t,e,r=l.PredictionContextCache.UNCACHED){if(t===e)return t;if(t.isEmpty)return u.isEmptyLocal(t)?t:u.addEmptyContext(e);if(e.isEmpty)return u.isEmptyLocal(e)?e:u.addEmptyContext(t);let i=t.size,n=e.size;if(1===i&&1===n&&t.getReturnState(0)===e.getReturnState(0)){let i=r.join(t.getParent(0),e.getParent(0));return i===t.getParent(0)?t:i===e.getParent(0)?e:i.getChild(t.getReturnState(0))}let s=0,o=new Array(i+n),a=new Array(o.length),h=0,p=0,_=!0,y=!0;for(;h<i&&p<n;)t.getReturnState(h)===e.getReturnState(p)?(o[s]=r.join(t.getParent(h),e.getParent(p)),a[s]=t.getReturnState(h),_=_&&o[s]===t.getParent(h),y=y&&o[s]===e.getParent(p),h++,p++):t.getReturnState(h)<e.getReturnState(p)?(o[s]=t.getParent(h),a[s]=t.getReturnState(h),y=!1,h++):(c(e.getReturnState(p)<t.getReturnState(h)),o[s]=e.getParent(p),a[s]=e.getReturnState(p),_=!1,p++),s++;for(;h<i;)o[s]=t.getParent(h),a[s]=t.getReturnState(h),h++,y=!1,s++;for(;p<n;)o[s]=e.getParent(p),a[s]=e.getReturnState(p),p++,_=!1,s++;return _?t:y?e:(s<o.length&&(o=o.slice(0,s),a=a.slice(0,s)),0===o.length?u.EMPTY_FULL:1===o.length?new f(o[0],a[0]):new d(o,a))}static isEmptyLocal(t){return t===u.EMPTY_LOCAL}static getCachedContext(t,e,r){if(t.isEmpty)return t;let i=r.get(t);if(i)return i;if(i=e.get(t),i)return r.put(t,i),i;let n,s=!1,o=new Array(t.size);for(let i=0;i<o.length;i++){let n=u.getCachedContext(t.getParent(i),e,r);if(s||n!==t.getParent(i)){if(!s){o=new Array(t.size);for(let e=0;e<t.size;e++)o[e]=t.getParent(e);s=!0}o[i]=n}}if(!s)return i=e.putIfAbsent(t,t),r.put(t,null!=i?i:t),t;if(1===o.length)n=new f(o[0],t.getReturnState(0));else{let e=new Array(t.size);for(let r=0;r<t.size;r++)e[r]=t.getReturnState(r);n=new d(o,e,t.hashCode())}return i=e.putIfAbsent(n,n),r.put(n,i||n),r.put(t,i||n),n}appendSingleContext(t,e){return this.appendContext(u.EMPTY_FULL.getChild(t),e)}getChild(t){return new f(this,t)}hashCode(){return this.cachedHashCode}toStrings(t,e,r=u.EMPTY_FULL){let i=[];t:for(let n=0;;n++){let s=0,o=!0,a=this,l=e,c="";for(c+="[";!a.isEmpty&&a!==r;){let e=0;if(a.size>0){let t=1;for(;1<<t>>>0<a.size;)t++;if(e=n>>s&(1<<t>>>0)-1,o=o&&e>=a.size-1,e>=a.size)continue t;s+=t}if(t){c.length>1&&(c+=" ");let e=t.atn.states[l];c+=t.ruleNames[e.ruleIndex]}else a.getReturnState(e)!==u.EMPTY_FULL_STATE_KEY&&(a.isEmpty||(c.length>1&&(c+=" "),c+=a.getReturnState(e)));l=a.getReturnState(e),a=a.getParent(e)}if(c+="]",i.push(c),o)break}return i}};e([a.Override],u.prototype,"hashCode",null),e([r(0,a.NotNull),r(1,a.NotNull),r(2,a.NotNull)],u,"join",null),e([r(0,a.NotNull),r(1,a.NotNull),r(2,a.NotNull)],u,"getCachedContext",null),t.PredictionContext=u;var h=class extends u{constructor(t){super(u.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["[]"]}};e([a.Override],h.prototype,"addEmptyContext",null),e([a.Override],h.prototype,"removeEmptyContext",null),e([a.Override],h.prototype,"getParent",null),e([a.Override],h.prototype,"getReturnState",null),e([a.Override],h.prototype,"findReturnState",null),e([a.Override],h.prototype,"size",null),e([a.Override],h.prototype,"appendSingleContext",null),e([a.Override],h.prototype,"appendContext",null),e([a.Override],h.prototype,"isEmpty",null),e([a.Override],h.prototype,"hasEmpty",null),e([a.Override],h.prototype,"equals",null),e([a.Override],h.prototype,"toStrings",null);var d=class t extends u{constructor(t,e,r){super(r||u.calculateHashCode(t,e)),c(t.length===e.length),c(e.length>1||e[0]!==u.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 s.Arrays.binarySearch(this.returnStates,t)}get size(){return this.returnStates.length}get isEmpty(){return!1}get hasEmpty(){return this.returnStates[this.returnStates.length-1]===u.EMPTY_FULL_STATE_KEY}addEmptyContext(){if(this.hasEmpty)return this;let e=this.parents.slice(0),r=this.returnStates.slice(0);return e.push(u.EMPTY_FULL),r.push(u.EMPTY_FULL_STATE_KEY),new t(e,r)}removeEmptyContext(){if(!this.hasEmpty)return this;if(2===this.returnStates.length)return new f(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 u.IdentityHashMap)}static appendContextImpl(e,r,i){if(r.isEmpty){if(u.isEmptyLocal(r)){if(e.hasEmpty)return u.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 n=i.get(e);if(!n){if(e.isEmpty)n=r;else{let s=e.size;e.hasEmpty&&s--;let o=new Array(s),a=new Array(s);for(let t=0;t<s;t++)a[t]=e.getReturnState(t);for(let n=0;n<s;n++)o[n]=t.appendContextImpl(e.getParent(n),r,i);1===o.length?n=new f(o[0],a[0]):(c(o.length>1),n=new t(o,a)),e.hasEmpty&&(n=u.join(n,r))}i.put(e,n)}return n}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 n.Array2DHashSet)}equalsImpl(t,e){let r=[],i=[];for(r.push(this),i.push(t);;){let t=r.pop(),n=i.pop();if(!t||!n)break;let s=new l.PredictionContextCache.IdentityCommutativePredictionContextOperands(t,n);if(!e.add(s))continue;let o=s.x.size;if(0!==o){if(o!==s.y.size)return!1;for(let t=0;t<o;t++){if(s.x.getReturnState(t)!==s.y.getReturnState(t))return!1;let e=s.x.getParent(t),n=s.y.getParent(t);if(e.hashCode()!==n.hashCode())return!1;e!==n&&(r.push(e),i.push(n))}}else if(!s.x.equals(s.y))return!1}return!0}};e([a.NotNull],d.prototype,"parents",void 0),e([a.NotNull],d.prototype,"returnStates",void 0),e([a.Override],d.prototype,"getParent",null),e([a.Override],d.prototype,"getReturnState",null),e([a.Override],d.prototype,"findReturnState",null),e([a.Override],d.prototype,"size",null),e([a.Override],d.prototype,"isEmpty",null),e([a.Override],d.prototype,"hasEmpty",null),e([a.Override],d.prototype,"addEmptyContext",null),e([a.Override],d.prototype,"removeEmptyContext",null),e([a.Override],d.prototype,"appendContext",null),e([a.Override],d.prototype,"equals",null),d=e([r(0,a.NotNull)],d);var f=class t extends u{constructor(t,e){super(u.calculateSingleHashCode(t,e)),this.parent=t,this.returnState=e}getParent(t){return this.parent}getReturnState(t){return this.returnState}findReturnState(t){return this.returnState===t?0:-1}get size(){return 1}get isEmpty(){return!1}get hasEmpty(){return!1}appendContext(t,e){return e.getChild(this.parent.appendContext(t,e),this.returnState)}addEmptyContext(){let t=[this.parent,u.EMPTY_FULL],e=[this.returnState,u.EMPTY_FULL_STATE_KEY];return new d(t,e)}removeEmptyContext(){return this}equals(e){if(e===this)return!0;if(!(e instanceof t))return!1;let r=e;return this.hashCode()===r.hashCode()&&this.returnState===r.returnState&&this.parent.equals(r.parent)}};e([a.NotNull],f.prototype,"parent",void 0),e([a.Override],f.prototype,"getParent",null),e([a.Override],f.prototype,"getReturnState",null),e([a.Override],f.prototype,"findReturnState",null),e([a.Override],f.prototype,"size",null),e([a.Override],f.prototype,"isEmpty",null),e([a.Override],f.prototype,"hasEmpty",null),e([a.Override],f.prototype,"appendContext",null),e([a.Override],f.prototype,"addEmptyContext",null),e([a.Override],f.prototype,"removeEmptyContext",null),e([a.Override],f.prototype,"equals",null),f=e([r(0,a.NotNull)],f),t.SingletonPredictionContext=f,function(t){t.EMPTY_LOCAL=new h(!1),t.EMPTY_FULL=new h(!0),t.EMPTY_LOCAL_STATE_KEY=-2147483648,t.EMPTY_FULL_STATE_KEY=2147483647;class r extends i.Array2DHashMap{constructor(){super(n.INSTANCE)}}t.IdentityHashMap=r;class n{IdentityEqualityComparator(){}hashCode(t){return t.hashCode()}equals(t,e){return t===e}}n.INSTANCE=new n,e([a.Override],n.prototype,"hashCode",null),e([a.Override],n.prototype,"equals",null),t.IdentityEqualityComparator=n}(u=t.PredictionContext||(t.PredictionContext={}))})),kt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ATNConfig=void 0;var i=Lt(),n=wt(),s=pt(),o=nt(),a=dt(),l=Pt(),c=mt(),u=it(),h=2147483648,d=class t{constructor(t,e,r){"number"==typeof e?(u((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,i,n=c.SemanticContext.NONE,s){return n!==c.SemanticContext.NONE?null!=s?new y(s,n,e,r,i,!1):new f(n,e,r,i):null!=s?new _(s,e,r,i,!1):new t(e,r,i)}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){u(t>=0),t=Math.min(t,127),this.altAndOuterContextDepth=t<<24|(-2130706433&this.altAndOuterContextDepth)>>>0}get lexerActionExecutor(){}get semanticContext(){return c.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 l.PredictionContext?this.transformImpl(t,r,this.semanticContext,e,this.lexerActionExecutor):r instanceof c.SemanticContext?this.transformImpl(t,this._context,r,e,this.lexerActionExecutor):this.transformImpl(t,this._context,this.semanticContext,e,r)}transformImpl(e,r,i,n,s){let o=n&&t.checkNonGreedyDecision(this,e);return i!==c.SemanticContext.NONE?null!=s||o?new y(s,i,e,this,r,o):new f(i,e,this,r):null!=s||o?new _(s,e,this,r,o):new t(e,this,r)}static checkNonGreedyDecision(t,e){return t.hasPassedThroughNonGreedyDecision||e instanceof n.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(),i=r.pop();if(!t||!i)break;if(t===i)return!0;if(t.size<i.size)return!1;if(i.isEmpty)return t.hasEmpty;for(let n=0;n<i.size;n++){let s=t.findReturnState(i.getReturnState(n));if(s<0)return!1;e.push(t.getParent(s)),r.push(i.getParent(n))}}return!1}get isPrecedenceFilterSuppressed(){return 0!=(this.altAndOuterContextDepth&h)}set isPrecedenceFilterSuppressed(t){t?this.altAndOuterContextDepth|=h:this.altAndOuterContextDepth&=2147483647}equals(e){return this===e||e instanceof t&&this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&this.reachesIntoOuterContext===e.reachesIntoOuterContext&&this.context.equals(e.context)&&this.semanticContext.equals(e.semanticContext)&&this.isPrecedenceFilterSuppressed===e.isPrecedenceFilterSuppressed&&this.hasPassedThroughNonGreedyDecision===e.hasPassedThroughNonGreedyDecision&&a.ObjectEqualityComparator.INSTANCE.equals(this.lexerActionExecutor,e.lexerActionExecutor)}hashCode(){let t=s.MurmurHash.initialize(7);return t=s.MurmurHash.update(t,this.state.stateNumber),t=s.MurmurHash.update(t,this.alt),t=s.MurmurHash.update(t,this.reachesIntoOuterContext?1:0),t=s.MurmurHash.update(t,this.context),t=s.MurmurHash.update(t,this.semanticContext),t=s.MurmurHash.update(t,this.hasPassedThroughNonGreedyDecision?1:0),t=s.MurmurHash.update(t,this.lexerActionExecutor),t=s.MurmurHash.finish(t,7),t}toDotString(){let t="";t+="digraph G {\n",t+="rankdir=LR;\n";let e=new i.Array2DHashMap(l.PredictionContext.IdentityEqualityComparator.INSTANCE),r=[];function n(t){let i=e.size,n=e.putIfAbsent(t,i);return null!=n?n:(r.push(t),i)}for(r.push(this.context),e.put(this.context,0);;){let e=r.pop();if(!e)break;for(let r=0;r<e.size;r++)t+=" s"+n(e),t+="->",t+="s"+n(e.getParent(r)),t+='[label="'+e.getReturnState(r)+'"];\n'}return t+="}\n",t.toString()}toString(t,e,r){null==r&&(r=null!=e),null==e&&(e=!0);let i,n="";i=r?this.context.toStrings(t,this.state.stateNumber):["?"];let s=!0;for(let t of i)s?s=!1:n+=", ",n+="(",n+=this.state,e&&(n+=",",n+=this.alt),this.context&&(n+=",",n+=t),this.semanticContext!==c.SemanticContext.NONE&&(n+=",",n+=this.semanticContext),this.reachesIntoOuterContext&&(n+=",up="+this.outerContextDepth),n+=")";return n.toString()}};e([o.NotNull],d.prototype,"_state",void 0),e([o.NotNull],d.prototype,"_context",void 0),e([o.NotNull],d.prototype,"state",null),e([o.NotNull,r(0,o.NotNull)],d.prototype,"context",null),e([o.NotNull],d.prototype,"semanticContext",null),e([o.Override],d.prototype,"clone",null),e([r(0,o.NotNull),r(2,o.NotNull)],d.prototype,"transformImpl",null),e([o.Override],d.prototype,"equals",null),e([o.Override],d.prototype,"hashCode",null),e([r(0,o.NotNull),r(3,o.NotNull)],d,"create",null),d=e([r(0,o.NotNull),r(2,o.NotNull)],d),t.ATNConfig=d;var f=class extends d{constructor(t,e,r,i){super(e,r,i),this._semanticContext=t}get semanticContext(){return this._semanticContext}};e([o.NotNull],f.prototype,"_semanticContext",void 0),e([o.Override],f.prototype,"semanticContext",null),f=e([r(1,o.NotNull),r(2,o.NotNull)],f);var _=class extends d{constructor(t,e,r,i,n){if("number"==typeof r)super(e,r,i);else if(super(e,r,i),r.semanticContext!==c.SemanticContext.NONE)throw new Error("Not supported");this._lexerActionExecutor=t,this.passedThroughNonGreedyDecision=n}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};e([o.Override],_.prototype,"lexerActionExecutor",null),e([o.Override],_.prototype,"hasPassedThroughNonGreedyDecision",null),_=e([r(1,o.NotNull),r(2,o.NotNull)],_);var y=class extends f{constructor(t,e,r,i,n,s){super(e,r,i,n),this._lexerActionExecutor=t,this.passedThroughNonGreedyDecision=s}get lexerActionExecutor(){return this._lexerActionExecutor}get hasPassedThroughNonGreedyDecision(){return this.passedThroughNonGreedyDecision}};e([o.Override],y.prototype,"lexerActionExecutor",null),e([o.Override],y.prototype,"hasPassedThroughNonGreedyDecision",null),y=e([r(1,o.NotNull),r(2,o.NotNull)],y)})),Dt=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.BitSet=void 0;var e=U(),r=pt(),i=new Uint16Array(0);function n(t){return t>>>4}function s(t){return 16*t}function o(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 a(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 l(t,e){return(t&=15)==(e&=15)?1<<t>>>0:65535>>>15-e^65535>>>16-t}var c=new Uint8Array(65536);for(let t=0;t<16;t++){const e=1<<t>>>0;let r=0;for(;r<c.length;){r+=e;for(let t=0;t<e;t++)c[r]++,r++}}var u=class{constructor(t){if(t)if("number"==typeof t){if(t<0)throw new RangeError("nbits cannot be negative");this.data=new Uint16Array(n(t-1)+1)}else if(t instanceof u)this.data=t.data.slice(0);else{let e=-1;for(let r of t)e<r&&(e=r);this.data=new Uint16Array(n(e-1)+1);for(let e of t)this.set(e)}else this.data=i}and(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length);let s=-1;for(let t=0;t<n;t++)0!=(e[t]&=r[t])&&(s=t);-1===s&&(this.data=i),s<e.length-1&&(this.data=e.slice(0,s+1))}andNot(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length);let s=-1;for(let t=0;t<n;t++)0!=(e[t]&=65535^r[t])&&(s=t);-1===s&&(this.data=i),s<e.length-1&&(this.data=e.slice(0,s+1))}cardinality(){if(this.isEmpty)return 0;const t=this.data,e=t.length;let r=0;for(let i=0;i<e;i++)r+=c[t[i]];return r}clear(t,e){null==t?this.data.fill(0):null==e?this.set(t,!1):this.set(t,e,!1)}flip(t,e){if(null==e&&(e=t),t<0||e<t)throw new RangeError;let r=n(t);const i=n(e);if(r===i)this.data[r]^=l(t,e);else{for(this.data[r++]^=l(t,15);r<i;)this.data[r++]^=65535;this.data[r++]^=l(0,e)}}get(t,e){if(void 0===e)return!!(this.data[n(t)]&l(t,t));{let r=new u(e+1);for(let i=t;i<=e;i++)r.set(i,this.get(i));return r}}intersects(t){let e=Math.min(this.length(),t.length());if(0===e)return!1;let r=n(e-1);for(let e=0;e<=r;e++)if(0!=(this.data[e]&t.data[e]))return!0;return!1}get isEmpty(){return 0===this.length()}length(){return this.data.length?this.previousSetBit(s(this.data.length)-1)+1:0}nextClearBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let i=n(t);if(i>r)return-1;let a=65535^l(t,15);if(65535==(e[i]|a)){for(i++,a=0;i<r&&65535===e[i];i++);if(i===r)return-1}return s(i)+o(65535^(e[i]|a))}nextSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let i=n(t);if(i>r)return-1;let a=l(t,15);if(0==(e[i]&a)){for(i++,a=65535;i<r&&0===e[i];i++);if(i>=r)return-1}return s(i)+o(e[i]&a)}or(t){const e=this.data,r=t.data,n=Math.min(e.length,r.length),s=Math.max(e.length,r.length),o=e.length===s?e:new Uint16Array(s);let a=-1;for(let t=0;t<n;t++)0!=(o[t]=e[t]|r[t])&&(a=t);const l=e.length>r.length?e:r;for(let t=n;t<s;t++)0!==(o[t]=l[t])&&(a=t);-1===a?this.data=i:o.length===a+1?this.data=o:this.data=o.slice(0,a)}previousClearBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let i=n(t);i>=r&&(i=r-1);let o=65535^l(0,t);if(65535==(e[i]|o)){for(o=0,i--;i>=0&&65535===e[i];i--);if(i<0)return-1}return s(i)+a(65535^(e[i]|o))}previousSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let i=n(t);i>=r&&(i=r-1);let o=l(0,t);if(0==(e[i]&o)){for(i--,o=65535;i>=0&&0===e[i];i--);if(i<0)return-1}return s(i)+a(e[i]&o)}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 i=n(t),s=n(e);if(r&&s>=this.data.length){let t=new Uint16Array(s+1);this.data.forEach(((e,r)=>t[r]=e)),this.data=t}else if(!r){if(i>=this.data.length)return;s>=this.data.length&&(s=this.data.length-1,e=16*this.data.length-1)}if(i===s)this._setBits(i,r,l(t,e));else{for(this._setBits(i++,r,l(t,15));i<s;)this.data[i++]=r?65535:0;this._setBits(i,r,l(0,e))}}_setBits(t,e,r){e?this.data[t]|=r:this.data[t]&=65535^r}get size(){return 8*this.data.byteLength}hashCode(){return r.MurmurHash.hashCode(this.data,22)}equals(t){if(t===this)return!0;if(!(t instanceof u))return!1;const e=this.length();if(e!==t.length())return!1;if(0===e)return!0;let r=n(e-1);for(let e=0;e<=r;e++)if(this.data[e]!==t.data[e])return!1;return!0}toString(){let t="{",e=!0;for(let r=this.nextSetBit(0);r>=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),s=Math.max(e.length,r.length),o=e.length===s?e:new Uint16Array(s);let a=-1;for(let t=0;t<n;t++)0!=(o[t]=e[t]^r[t])&&(a=t);const l=e.length>r.length?e:r;for(let t=n;t<s;t++)0!==(o[t]=l[t])&&(a=t);-1===a?this.data=i:o.length===a+1?this.data=o:this.data=o.slice(0,a+1)}clone(){return new u(this)}[Symbol.iterator](){return new h(this.data)}[e.inspect.custom](){return"BitSet "+this.toString()}};t.BitSet=u;var h=class{constructor(t){this.data=t,this.index=0,this.mask=65535}next(){for(;this.index<this.data.length;){const t=this.data[this.index]&this.mask;if(0!==t){const e=s(this.index)+o(t);return this.mask=l(e+1,15),{done:!1,value:e}}this.index++,this.mask=65535}return{done:!0,value:-1}}[Symbol.iterator](){return this}}})),Ft=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.ATNConfigSet=void 0;var r=Lt(),i=_t(),n=yt(),s=ee(),o=kt(),a=Dt(),l=nt(),c=dt(),u=Pt(),h=It(),d=mt(),f=it(),_=gt(),y=class{hashCode(t){return t.state^t.alt}equals(t,e){return t.state===e.state&&t.alt===e.alt}};function g(t){return t?new r.Array2DHashMap(t):new r.Array2DHashMap(y.INSTANCE)}y.INSTANCE=new y;var m=class{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=g(),this.unmerged=[]):(this.mergedConfigs=g(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=g(),this.unmerged=[],this.configs=[],this._uniqueAlt=s.ATN.INVALID_ALT_NUMBER)}getRepresentedAlternatives(){if(null!=this._conflictInfo)return this._conflictInfo.conflictedAlts.clone();let t=new a.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");f(!t||!this._dipsIntoOuterContext),this.outermostConfigSet=t}getStates(){let t=new i.Array2DHashSet(c.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 m(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 o.ATNConfig))return!1;if(this.mergedConfigs&&this.unmerged){let e=t,r=this.getKey(e),i=this.mergedConfigs.get(r);if(null!=i&&this.canMerge(e,r,i))return i.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;f(!this.outermostConfigSet||!t.reachesIntoOuterContext),null==e&&(e=h.PredictionContextCache.UNCACHED);let i=this.getKey(t),n=this.mergedConfigs.get(i);if(r=null==n,null!=n&&this.canMerge(t,i,n)){n.outerContextDepth=Math.max(n.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(n.isPrecedenceFilterSuppressed=!0);let r=u.PredictionContext.join(n.context,t.context,e);return this.updatePropertiesForMergedConfig(t),n.context!==r&&(n.context=r,!0)}for(let n=0;n<this.unmerged.length;n++){let s=this.unmerged[n];if(this.canMerge(t,i,s)){s.outerContextDepth=Math.max(s.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(s.isPrecedenceFilterSuppressed=!0);let o=u.PredictionContext.join(s.context,t.context,e);return this.updatePropertiesForMergedConfig(t),s.context!==o&&(s.context=o,r&&(this.mergedConfigs.put(i,s),this.unmerged.splice(n,1)),!0)}}return this.configs.push(t),r?this.mergedConfigs.put(i,t):this.unmerged.push(t),this.updatePropertiesForAddedConfig(t),!0}updatePropertiesForMergedConfig(t){this._dipsIntoOuterContext=this._dipsIntoOuterContext||t.reachesIntoOuterContext,f(!this.outermostConfigSet||!this._dipsIntoOuterContext)}updatePropertiesForAddedConfig(t){1===this.configs.length?this._uniqueAlt=t.alt:this._uniqueAlt!==t.alt&&(this._uniqueAlt=s.ATN.INVALID_ALT_NUMBER),this._hasSemanticContext=this._hasSemanticContext||!d.SemanticContext.NONE.equals(t.semanticContext),this._dipsIntoOuterContext=this._dipsIntoOuterContext||t.reachesIntoOuterContext,f(!this.outermostConfigSet||!this._dipsIntoOuterContext)}canMerge(t,e,r){return t.state.stateNumber===r.state.stateNumber&&e.alt===r.alt&&t.semanticContext.equals(r.semanticContext)}getKey(t){return{state:t.state.stateNumber,alt:t.alt}}containsAll(t){for(let e of t){if(!(e instanceof o.ATNConfig))return!1;if(!this.contains(e))return!1}return!0}addAll(t,e){this.ensureWritable();let r=!1;for(let i of t)this.add(i,e)&&(r=!0);return r}clear(){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");this.mergedConfigs.clear(),this.unmerged.length=0,this.configs.length=0,this._dipsIntoOuterContext=!1,this._hasSemanticContext=!1,this._uniqueAlt=s.ATN.INVALID_ALT_NUMBER,this._conflictInfo=void 0}equals(t){return this===t||t instanceof m&&this.outermostConfigSet===t.outermostConfigSet&&_.equals(this._conflictInfo,t._conflictInfo)&&n.ArrayEqualityComparator.INSTANCE.equals(this.configs,t.configs)}hashCode(){if(this.isReadOnly&&-1!==this.cachedHashCode)return this.cachedHashCode;let t=1;return t=5*t^(this.outermostConfigSet?1:0),t=5*t^n.ArrayEqualityComparator.INSTANCE.hashCode(this.configs),this.isReadOnly&&(this.cachedHashCode=t),t}toString(t){null==t&&(t=!1);let e="",r=this.configs.slice(0);r.sort(((t,e)=>t.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 i=0;i<r.length;i++)i>0&&(e+=", "),e+=r[i].toString(void 0,!0,t);return e+="]",this._hasSemanticContext&&(e+=",hasSemanticContext="+this._hasSemanticContext),this._uniqueAlt!==s.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.")}};e([l.NotNull],m.prototype,"getRepresentedAlternatives",null),e([l.Override],m.prototype,"size",null),e([l.Override],m.prototype,"isEmpty",null),e([l.Override],m.prototype,"contains",null),e([l.Override],m.prototype,Symbol.iterator,null),e([l.Override],m.prototype,"toArray",null),e([l.Override],m.prototype,"containsAll",null),e([l.Override],m.prototype,"clear",null),e([l.Override],m.prototype,"equals",null),e([l.Override],m.prototype,"hashCode",null),t.ATNConfigSet=m})),Mt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DFAState=void 0;var i=ee(),n=Dt(),s=pt(),o=nt(),a=Pt(),l=it(),c=class{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){l(this.isContextSensitive),this.contextSymbols.set(t)}setContextSensitive(t){l(!this.configs.isOutermostConfigSet),this.isContextSensitive||this.contextSymbols||(this.contextSymbols=new n.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:i.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===a.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===a.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(a.PredictionContext.EMPTY_FULL_STATE_KEY,e),t}t.delete(-1),t.set(a.PredictionContext.EMPTY_FULL_STATE_KEY,e)}return t}hashCode(){let t=s.MurmurHash.initialize(7);return t=s.MurmurHash.update(t,this.configs.hashCode()),t=s.MurmurHash.finish(t,1),t}equals(t){if(this===t)return!0;if(!(t instanceof c))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()}};e([o.NotNull],c.prototype,"configs",void 0),e([o.NotNull],c.prototype,"edges",void 0),e([o.NotNull],c.prototype,"contextEdges",void 0),e([o.Override],c.prototype,"hashCode",null),e([o.Override],c.prototype,"equals",null),e([o.Override],c.prototype,"toString",null),t.DFAState=c,function(t){let i=class{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}};e([o.NotNull],i.prototype,"pred",void 0),e([o.Override],i.prototype,"toString",null),i=e([r(0,o.NotNull)],i),t.PredPrediction=i}(c=t.DFAState||(t.DFAState={}))})),jt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ATNSimulator=void 0;var i=Ft(),n=Mt(),s=nt(),o=Pt(),a=class t{constructor(t){this.atn=t}static get ERROR(){return t._ERROR||(t._ERROR=new n.DFAState(new i.ATNConfigSet),t._ERROR.stateNumber=o.PredictionContext.EMPTY_FULL_STATE_KEY),t._ERROR}clearDFA(){this.atn.clearDFA()}};e([s.NotNull],a.prototype,"atn",void 0),e([s.NotNull],a,"ERROR",null),a=e([r(0,s.NotNull)],a),t.ATNSimulator=a,a=t.ATNSimulator||(t.ATNSimulator={}),t.ATNSimulator=a})),Ut=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleErrorListener=void 0;var e=class{syntaxError(t,e,r,i,n,s){console.error(`line ${r}:${i} ${n}`)}};t.ConsoleErrorListener=e,e.INSTANCE=new e})),Ht=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyErrorListener=void 0;var i=nt(),n=class{constructor(t){if(this.delegates=t,!t)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(t,e,r,i,n,s){this.delegates.forEach((o=>{o.syntaxError&&o.syntaxError(t,e,r,i,n,s)}))}};e([i.Override,r(0,i.NotNull),r(4,i.NotNull)],n.prototype,"syntaxError",null),t.ProxyErrorListener=n})),Kt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Recognizer=void 0;var i=Ut(),n=Ht(),s=nt(),o=Nt(),a=gt(),l=class{constructor(){this._listeners=[i.ConsoleErrorListener.INSTANCE],this._stateNumber=-1}getTokenTypeMap(){let t=this.vocabulary,e=l.tokenTypeMapCache.get(t);if(null==e){let r=new Map;for(let e=0;e<=this.atn.maxTokenType;e++){let i=t.getLiteralName(e);null!=i&&r.set(i,e);let n=t.getSymbolicName(e);null!=n&&r.set(n,e)}r.set("EOF",o.Token.EOF),e=r,l.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=l.ruleIndexMapCache.get(t);return null==e&&(e=a.toMap(t),l.ruleIndexMapCache.set(t,e)),e}getTokenType(t){let e=this.getTokenTypeMap().get(t);return null!=e?e:o.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 n.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}};l.EOF=-1,l.tokenTypeMapCache=new WeakMap,l.ruleIndexMapCache=new WeakMap,e([s.SuppressWarnings("serial"),s.NotNull],l.prototype,"_listeners",void 0),e([s.NotNull],l.prototype,"getTokenTypeMap",null),e([s.NotNull],l.prototype,"getRuleIndexMap",null),e([s.NotNull],l.prototype,"serializedATN",null),e([s.NotNull],l.prototype,"atn",null),e([s.NotNull,r(0,s.NotNull)],l.prototype,"interpreter",null),e([s.NotNull,r(0,s.NotNull)],l.prototype,"getErrorHeader",null),e([r(0,s.NotNull)],l.prototype,"addErrorListener",null),e([r(0,s.NotNull)],l.prototype,"removeErrorListener",null),e([s.NotNull],l.prototype,"getErrorListeners",null),t.Recognizer=l})),Bt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.VocabularyImpl=void 0;var r=nt(),i=Nt(),n=class{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<this.literalNames.length)return this.literalNames[t]}getSymbolicName(t){return t>=0&&t<this.symbolicNames.length?this.symbolicNames[t]:t===i.Token.EOF?"EOF":void 0}getDisplayName(t){if(t>=0&&t<this.displayNames.length){let e=this.displayNames[t];if(e)return e}let e=this.getLiteralName(t);return e||(this.getSymbolicName(t)||String(t))}};n.EMPTY_VOCABULARY=new n([],[],[]),e([r.NotNull],n.prototype,"literalNames",void 0),e([r.NotNull],n.prototype,"symbolicNames",void 0),e([r.NotNull],n.prototype,"displayNames",void 0),e([r.Override],n.prototype,"maxTokenType",null),e([r.Override],n.prototype,"getLiteralName",null),e([r.Override],n.prototype,"getSymbolicName",null),e([r.Override,r.NotNull],n.prototype,"getDisplayName",null),e([r.NotNull],n,"EMPTY_VOCABULARY",void 0),t.VocabularyImpl=n})),zt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.DFASerializer=void 0;var r=jt(),i=nt(),n=Pt(),s=Kt(),o=Bt(),a=class{constructor(t,e,r,i){e instanceof s.Recognizer?(r=e.ruleNames,i=e.atn,e=e.vocabulary):e||(e=o.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=t,this.vocabulary=e,this.ruleNames=r,this.atn=i}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 i of e){let e=i.getEdgeMap(),n=[...e.keys()].sort(((t,e)=>t-e)),s=i.getContextEdgeMap(),o=[...s.keys()].sort(((t,e)=>t-e));for(let s of n){let n=e.get(s);if((null==n||n===r.ATNSimulator.ERROR)&&!i.isContextSymbol(s))continue;let o=!1;t+=this.getStateString(i)+"-"+this.getEdgeLabel(s)+"->",i.isContextSymbol(s)&&(t+="!",o=!0);let a=n;a&&a.stateNumber!==r.ATNSimulator.ERROR.stateNumber?t+=this.getStateString(a)+"\n":o&&(t+="ctx\n")}if(i.isContextSensitive)for(let e of o)t+=this.getStateString(i)+"-"+this.getContextLabel(e)+"->"+this.getStateString(s.get(e))+"\n"}}let e=t;return 0===e.length?"":e}getContextLabel(t){if(t===n.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(t===n.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<this.ruleNames.length)return"ctx:"+String(t)+"("+this.ruleNames[e]+")"}return"ctx:"+String(t)}getEdgeLabel(t){return this.vocabulary.getDisplayName(t)}getStateString(t){if(t===r.ATNSimulator.ERROR)return"ERROR";let e=t.stateNumber,i="s"+e;if(t.isAcceptState&&(i=t.predicates?":s"+e+"=>"+t.predicates:":s"+e+"=>"+t.prediction),t.isContextSensitive){i+="*";for(let e of t.configs)if(e.reachesIntoOuterContext){i+="*";break}}return i}};e([i.NotNull],a.prototype,"dfa",void 0),e([i.NotNull],a.prototype,"vocabulary",void 0),e([i.Override],a.prototype,"toString",null),t.DFASerializer=a})),Vt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerDFASerializer=void 0;var i=zt(),n=nt(),s=Bt(),o=class extends i.DFASerializer{constructor(t){super(t,s.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(t){return"'"+String.fromCodePoint(t)+"'"}};e([n.Override,n.NotNull],o.prototype,"getEdgeLabel",null),o=e([r(0,n.NotNull)],o),t.LexerDFASerializer=o})),qt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.StarLoopEntryState=void 0;var r=lt(),i=Dt(),n=wt(),s=nt(),o=class extends n.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new i.BitSet}get stateType(){return r.ATNStateType.STAR_LOOP_ENTRY}};e([s.Override],o.prototype,"stateType",null),t.StarLoopEntryState=o})),Gt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DFA=void 0;var i=_t(),n=Ft(),s=zt(),o=Mt(),a=Vt(),l=nt(),c=dt(),u=qt(),h=Bt(),d=class{constructor(t,e=0){if(this.states=new i.Array2DHashSet(c.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 u.StarLoopEntryState&&t.precedenceRuleDecision&&(r=!0,this.s0=new o.DFAState(new n.ATNConfigSet),this.s0full=new o.DFAState(new n.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=h.VocabularyImpl.EMPTY_VOCABULARY),!this.s0)return"";let r;return r=e?new s.DFASerializer(this,t,e,this.atnStartState.atn):new s.DFASerializer(this,t),r.toString()}toLexerString(){return this.s0?new a.LexerDFASerializer(this).toString():""}};e([l.NotNull],d.prototype,"states",void 0),e([l.NotNull],d.prototype,"atnStartState",void 0),e([l.NotNull],d.prototype,"atn",void 0),d=e([r(0,l.NotNull)],d),t.DFA=d})),$t=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.BasicState=void 0;var r=at(),i=lt(),n=nt(),s=class extends r.ATNState{get stateType(){return i.ATNStateType.BASIC}};e([n.Override],s.prototype,"stateType",null),t.BasicState=s})),Yt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.InvalidState=void 0;var r=lt(),i=$t(),n=nt(),s=class extends i.BasicState{get stateType(){return r.ATNStateType.INVALID_TYPE}};e([n.Override],s.prototype,"stateType",null),t.InvalidState=s})),Wt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetTransition=void 0;var i=le(),n=nt(),s=Nt(),o=ut(),a=class extends o.Transition{constructor(t,e){super(t),null==e&&(e=i.IntervalSet.of(s.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()}};e([n.NotNull],a.prototype,"set",void 0),e([n.Override],a.prototype,"serializationType",null),e([n.Override,n.NotNull],a.prototype,"label",null),e([n.Override],a.prototype,"matches",null),e([n.Override,n.NotNull],a.prototype,"toString",null),a=e([r(0,n.NotNull),r(1,n.Nullable)],a),t.SetTransition=a})),Xt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotSetTransition=void 0;var i=nt(),n=Wt(),s=class extends n.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()}};e([i.Override],s.prototype,"serializationType",null),e([i.Override],s.prototype,"matches",null),e([i.Override],s.prototype,"toString",null),s=e([r(0,i.NotNull),r(1,i.Nullable)],s),t.NotSetTransition=s})),Jt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.RuleStopState=void 0;var r=at(),i=lt(),n=nt(),s=class extends r.ATNState{get nonStopStateNumber(){return-1}get stateType(){return i.ATNStateType.RULE_STOP}};e([n.Override],s.prototype,"nonStopStateNumber",null),e([n.Override],s.prototype,"stateType",null),t.RuleStopState=s})),Qt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RuleTransition=void 0;var i=nt(),n=ut(),s=class extends n.Transition{constructor(t,e,r,i){super(t),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=e,this.precedence=r,this.followState=i}get serializationType(){return 3}get isEpsilon(){return!0}matches(t,e,r){return!1}};e([i.NotNull],s.prototype,"followState",void 0),e([i.Override],s.prototype,"serializationType",null),e([i.Override],s.prototype,"isEpsilon",null),e([i.Override],s.prototype,"matches",null),s=e([r(0,i.NotNull),r(3,i.NotNull)],s),t.RuleTransition=s})),Zt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.WildcardTransition=void 0;var i=nt(),n=ut(),s=class extends n.Transition{constructor(t){super(t)}get serializationType(){return 9}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}};e([i.Override],s.prototype,"serializationType",null),e([i.Override],s.prototype,"matches",null),e([i.Override,i.NotNull],s.prototype,"toString",null),s=e([r(0,i.NotNull)],s),t.WildcardTransition=s})),te=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LL1Analyzer=void 0;var i=ht(),n=_t(),s=kt(),o=Dt(),a=le(),l=nt(),c=Xt(),u=dt(),h=Pt(),d=Jt(),f=Qt(),_=Nt(),y=Zt(),g=class t{constructor(t){this.atn=t}getDecisionLookahead(e){if(null==e)return;let r=new Array(e.numberOfTransitions);for(let i=0;i<e.numberOfTransitions;i++){let s=new a.IntervalSet;r[i]=s;let l=new n.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE),c=!1;this._LOOK(e.transition(i).target,void 0,h.PredictionContext.EMPTY_LOCAL,s,l,new o.BitSet,c,!1),(0===s.size||s.contains(t.HIT_PRED))&&(s=void 0,r[i]=s)}return r}LOOK(t,e,r){if(void 0===r){if(null==t.atn)throw new Error("Illegal state");r=t.atn.ruleToStopState[t.ruleIndex]}else null===r&&(r=void 0);let i=new a.IntervalSet;return this._LOOK(t,r,e,i,new n.Array2DHashSet,new o.BitSet,!0,!0),i}_LOOK(e,r,n,o,l,u,p,g){let m=s.ATNConfig.create(e,0,n);if(!l.add(m))return;if(e===r){if(h.PredictionContext.isEmptyLocal(n))return void o.add(_.Token.EPSILON);if(n.isEmpty)return void(g&&o.add(_.Token.EOF))}if(e instanceof d.RuleStopState){if(n.isEmpty&&!h.PredictionContext.isEmptyLocal(n))return void(g&&o.add(_.Token.EOF));let t=u.get(e.ruleIndex);try{u.clear(e.ruleIndex);for(let t=0;t<n.size;t++){if(n.getReturnState(t)===h.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let e=this.atn.states[n.getReturnState(t)];this._LOOK(e,r,n.getParent(t),o,l,u,p,g)}}finally{t&&u.set(e.ruleIndex)}}let x=e.numberOfTransitions;for(let s=0;s<x;s++){let h=e.transition(s);if(h instanceof f.RuleTransition){if(u.get(h.ruleIndex))continue;let t=n.getChild(h.followState.stateNumber);try{u.set(h.ruleIndex),this._LOOK(h.target,r,t,o,l,u,p,g)}finally{u.clear(h.ruleIndex)}}else if(h instanceof i.AbstractPredicateTransition)p?this._LOOK(h.target,r,n,o,l,u,p,g):o.add(t.HIT_PRED);else if(h.isEpsilon)this._LOOK(h.target,r,n,o,l,u,p,g);else if(h instanceof y.WildcardTransition)o.addAll(a.IntervalSet.of(_.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType));else{let t=h.label;null!=t&&(h instanceof c.NotSetTransition&&(t=t.complement(a.IntervalSet.of(_.Token.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType))),o.addAll(t))}}}};g.HIT_PRED=_.Token.INVALID_TYPE,e([l.NotNull],g.prototype,"atn",void 0),e([l.NotNull,r(0,l.NotNull),r(1,l.NotNull)],g.prototype,"LOOK",null),e([r(0,l.NotNull),r(2,l.NotNull),r(3,l.NotNull),r(4,l.NotNull),r(5,l.NotNull)],g.prototype,"_LOOK",null),g=e([r(0,l.NotNull)],g),t.LL1Analyzer=g})),ee=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ATN=void 0;var i=Lt(),n=Gt(),s=le(),o=Yt(),a=te(),l=nt(),c=dt(),u=Pt(),h=Nt(),d=it(),f=class{constructor(t,e){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new i.Array2DHashMap(c.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;t<this.decisionToDFA.length;t++)this.decisionToDFA[t]=new n.DFA(this.decisionToState[t],t);this.modeToDFA=new Array(this.modeToStartState.length);for(let t=0;t<this.modeToDFA.length;t++)this.modeToDFA[t]=new n.DFA(this.modeToStartState[t]);this.contextCache.clear(),this.LL1Table.clear()}get contextCacheSize(){return this.contextCache.size}getCachedContext(t){return u.PredictionContext.getCachedContext(t,this.contextCache,new u.PredictionContext.IdentityHashMap)}getDecisionToDFA(){return d(null!=this.decisionToDFA&&this.decisionToDFA.length===this.decisionToState.length),this.decisionToDFA}nextTokens(t,e){return e?new a.LL1Analyzer(this).LOOK(t,e):(t.nextTokenWithinRule||(t.nextTokenWithinRule=this.nextTokens(t,u.PredictionContext.EMPTY_LOCAL),t.nextTokenWithinRule.setReadonly(!0)),t.nextTokenWithinRule)}addState(t){t.atn=this,t.stateNumber=this.states.length,this.states.push(t)}removeState(t){let e=new o.InvalidState;e.atn=this,e.stateNumber=t.stateNumber,this.states[t.stateNumber]=e}defineMode(t,e){this.modeNameToStartState.set(t,e),this.modeToStartState.push(e),this.modeToDFA.push(new n.DFA(e)),this.defineDecisionState(e)}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,this.decisionToDFA.push(new n.DFA(t,t.decision)),t.decision}getDecisionState(t){if(this.decisionToState.length>0)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,i=this.states[t],n=this.nextTokens(i);if(!n.contains(h.Token.EPSILON))return n;let o=new s.IntervalSet;for(o.addAll(n),o.remove(h.Token.EPSILON);null!=r&&r.invokingState>=0&&n.contains(h.Token.EPSILON);){let t=this.states[r.invokingState].transition(0);n=this.nextTokens(t.followState),o.addAll(n),o.remove(h.Token.EPSILON),r=r._parent}return n.contains(h.Token.EPSILON)&&o.add(h.Token.EOF),o}};e([l.NotNull],f.prototype,"states",void 0),e([l.NotNull],f.prototype,"decisionToState",void 0),e([l.NotNull],f.prototype,"modeNameToStartState",void 0),e([l.NotNull],f.prototype,"modeToStartState",void 0),e([l.NotNull],f.prototype,"decisionToDFA",void 0),e([l.NotNull],f.prototype,"modeToDFA",void 0),e([l.NotNull],f.prototype,"nextTokens",null),e([r(0,l.NotNull)],f.prototype,"removeState",null),e([r(0,l.NotNull),r(1,l.NotNull)],f.prototype,"defineMode",null),e([r(0,l.NotNull)],f.prototype,"defineDecisionState",null),e([l.NotNull],f.prototype,"getExpectedTokens",null),f=e([r(0,l.NotNull)],f),t.ATN=f,(f=t.ATN||(t.ATN={})).INVALID_ALT_NUMBER=0,t.ATN=f})),re=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerIndexedCustomAction=void 0;var i=pt(),n=nt(),s=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=i.MurmurHash.initialize();return t=i.MurmurHash.update(t,this._offset),t=i.MurmurHash.update(t,this._action),i.MurmurHash.finish(t,2)}equals(e){return e===this||e instanceof t&&this._offset===e._offset&&this._action.equals(e._action)}};e([n.NotNull],s.prototype,"action",null),e([n.Override],s.prototype,"actionType",null),e([n.Override],s.prototype,"isPositionDependent",null),e([n.Override],s.prototype,"execute",null),e([n.Override],s.prototype,"hashCode",null),e([n.Override],s.prototype,"equals",null),s=e([r(1,n.NotNull)],s),t.LexerIndexedCustomAction=s})),ie=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerActionExecutor=void 0;var i=yt(),n=re(),s=pt(),o=nt(),a=class t{constructor(t){this._lexerActions=t;let e=s.MurmurHash.initialize();for(let r of t)e=s.MurmurHash.update(e,r);this.cachedHashCode=s.MurmurHash.finish(e,t.length)}static append(e,r){if(!e)return new t([r]);let i=e._lexerActions.slice(0);return i.push(r),new t(i)}fixOffsetBeforeMatch(e){let r;for(let t=0;t<this._lexerActions.length;t++)!this._lexerActions[t].isPositionDependent||this._lexerActions[t]instanceof n.LexerIndexedCustomAction||(r||(r=this._lexerActions.slice(0)),r[t]=new n.LexerIndexedCustomAction(e,this._lexerActions[t]));return r?new t(r):this}get lexerActions(){return this._lexerActions}execute(t,e,r){let i=!1,s=e.index;try{for(let o of this._lexerActions){if(o instanceof n.LexerIndexedCustomAction){let t=o.offset;e.seek(r+t),o=o.action,i=r+t!==s}else o.isPositionDependent&&(e.seek(s),i=!1);o.execute(t)}}finally{i&&e.seek(s)}}hashCode(){return this.cachedHashCode}equals(e){return e===this||e instanceof t&&this.cachedHashCode===e.cachedHashCode&&i.ArrayEqualityComparator.INSTANCE.equals(this._lexerActions,e._lexerActions)}};e([o.NotNull],a.prototype,"_lexerActions",void 0),e([o.NotNull],a.prototype,"lexerActions",null),e([r(0,o.NotNull)],a.prototype,"execute",null),e([o.Override],a.prototype,"hashCode",null),e([o.Override],a.prototype,"equals",null),e([o.NotNull,r(1,o.NotNull)],a,"append",null),a=e([r(0,o.NotNull)],a),t.LexerActionExecutor=a})),ne=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerNoViableAltException=void 0;var i=ct(),n=nt(),s=Et(),o=gt(),a=class extends i.RecognitionException{constructor(t,e,r,i){super(t,e),this._startIndex=r,this._deadEndConfigs=i}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let t="";return this._startIndex>=0&&this._startIndex<this.inputStream.size&&(t=this.inputStream.getText(s.Interval.of(this._startIndex,this._startIndex)),t=o.escapeWhitespace(t,!1)),`LexerNoViableAltException('${t}')`}};e([n.Override],a.prototype,"inputStream",null),e([n.Override],a.prototype,"toString",null),a=e([r(1,n.NotNull)],a),t.LexerNoViableAltException=a})),se=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.OrderedATNConfigSet=void 0;var r=Ft(),i=nt(),n=class extends r.ATNConfigSet{constructor(t,e){null!=t&&null!=e?super(t,e):super()}clone(t){let e=new n(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)}};e([i.Override],n.prototype,"clone",null),e([i.Override],n.prototype,"getKey",null),e([i.Override],n.prototype,"canMerge",null),t.OrderedATNConfigSet=n})),oe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerATNSimulator=void 0;var i,n=Ot(),s=ee(),o=kt(),a=Ft(),l=jt(),c=Mt(),u=Et(),h=st(),d=ae(),f=ie(),_=ne(),y=nt(),g=se(),m=Pt(),x=Jt(),T=Nt(),v=it(),S=class t extends l.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(t,e){this.mode=e;let r=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();let r=this.atn.modeToDFA[e].s0;return null==r?this.matchATN(t):this.execATN(t,r)}finally{t.release(r)}}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 i=this.mode,n=this.computeStartState(e,r),s=n.hasSemanticContext;s&&(n.hasSemanticContext=!1);let o=this.addDFAState(n);if(!s){let t=this.atn.modeToDFA[this.mode];t.s0?o=t.s0:t.s0=o}let a=this.execATN(e,o);return t.debug&&console.log(`DFA after matchATN: ${this.atn.modeToDFA[i].toLexerString()}`),a}execATN(e,r){t.debug&&console.log(`start state closure=${r.configs}`),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let i=e.LA(1),n=r;for(;;){t.debug&&console.log(`execATN loop starting closure: ${n.configs}`);let r=this.getExistingTargetState(n,i);if(null==r&&(r=this.computeTargetState(e,n,i)),r===l.ATNSimulator.ERROR)break;if(i!==h.IntStream.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),i===h.IntStream.EOF))break;i=e.LA(1),n=r}return this.failOrAccept(this.prevAccept,e,n.configs,i)}getExistingTargetState(e,r){let i=e.getTarget(r);return t.debug&&null!=i&&console.log("reuse state "+e.stateNumber+" edge to "+i.stateNumber),i}computeTargetState(t,e,r){let i=new g.OrderedATNConfigSet;return this.getReachableConfigSet(t,e.configs,i,r),i.isEmpty?(i.hasSemanticContext||this.addDFAEdge(e,r,l.ATNSimulator.ERROR),l.ATNSimulator.ERROR):this.addDFAEdge(e,r,i)}failOrAccept(t,e,r,i){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(i===h.IntStream.EOF&&e.index===this.startIndex)return T.Token.EOF;throw new _.LexerNoViableAltException(this.recog,e,this.startIndex,r)}getReachableConfigSet(e,r,i,n){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(n)} at ${s.toString(this.recog,!0)}`);let a=s.state.numberOfOptimizedTransitions;for(let t=0;t<a;t++){let a=s.state.getOptimizedTransition(t),l=this.getReachableTarget(a,n);if(null!=l){let t,a=s.lexerActionExecutor;null!=a?(a=a.fixOffsetBeforeMatch(e.index-this.startIndex),t=s.transform(l,!0,a)):(v(null==s.lexerActionExecutor),t=s.transform(l,!0));let c=n===h.IntStream.EOF;if(this.closure(e,t,i,r,!0,c)){o=s.alt;break}}}}}accept(e,r,i,n,s,o){t.debug&&console.log(`ACTION ${r}`),e.seek(n),this._line=s,this._charPositionInLine=o,null!=r&&null!=this.recog&&r.execute(this.recog,e,i)}getReachableTarget(t,e){if(t.matches(e,d.Lexer.MIN_CHAR_VALUE,d.Lexer.MAX_CHAR_VALUE))return t.target}computeStartState(t,e){let r=m.PredictionContext.EMPTY_FULL,i=new g.OrderedATNConfigSet;for(let n=0;n<e.numberOfTransitions;n++){let s=e.transition(n).target,a=o.ATNConfig.create(s,n+1,r);this.closure(t,a,i,!1,!1,!1)}return i}closure(e,r,i,n,s,o){if(t.debug&&console.log("closure("+r.toString(this.recog,!0)+")"),r.state instanceof x.RuleStopState){t.debug&&(null!=this.recog?console.log(`closure at ${this.recog.ruleNames[r.state.ruleIndex]} rule stop ${r}`):console.log(`closure at rule stop ${r}`));let a=r.context;if(a.isEmpty)return i.add(r),!0;a.hasEmpty&&(i.add(r.transform(r.state,!0,m.PredictionContext.EMPTY_FULL)),n=!0);for(let t=0;t<a.size;t++){let l=a.getReturnState(t);if(l===m.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let c=a.getParent(t),u=this.atn.states[l],h=r.transform(u,!1,c);n=this.closure(e,h,i,n,s,o)}return n}r.state.onlyHasEpsilonTransitions||n&&r.hasPassedThroughNonGreedyDecision||i.add(r);let a=r.state;for(let t=0;t<a.numberOfOptimizedTransitions;t++){let l=a.getOptimizedTransition(t),c=this.getEpsilonTarget(e,r,l,i,s,o);null!=c&&(n=this.closure(e,c,i,n,s,o))}return n}getEpsilonTarget(e,r,i,n,s,o){let a;switch(i.serializationType){case 3:let l=i;if(this.optimize_tail_calls&&l.optimizedTailCall&&!r.context.hasEmpty)a=r.transform(i.target,!0);else{let t=r.context.getChild(l.followState.stateNumber);a=r.transform(i.target,!0,t)}break;case 10:throw new Error("Precedence predicates are not supported in lexers.");case 4:let c=i;t.debug&&console.log("EVAL rule "+c.ruleIndex+":"+c.predIndex),n.hasSemanticContext=!0,a=this.evaluatePredicate(e,c.ruleIndex,c.predIndex,s)?r.transform(i.target,!0):void 0;break;case 6:if(r.context.hasEmpty){let t=f.LexerActionExecutor.append(r.lexerActionExecutor,this.atn.lexerActions[i.actionIndex]);a=r.transform(i.target,!0,t);break}a=r.transform(i.target,!0);break;case 1:a=r.transform(i.target,!0);break;case 5:case 2:case 7:if(o&&i.matches(h.IntStream.EOF,d.Lexer.MIN_CHAR_VALUE,d.Lexer.MAX_CHAR_VALUE)){a=r.transform(i.target,!1);break}a=void 0;break;default:a=void 0}return a}evaluatePredicate(t,e,r,i){if(null==this.recog)return!0;if(!i)return this.recog.sempred(void 0,e,r);let n=this._charPositionInLine,s=this._line,o=t.index,a=t.mark();try{return this.consume(t),this.recog.sempred(void 0,e,r)}finally{this._charPositionInLine=n,this._line=s,t.seek(o),t.release(a)}}captureSimState(t,e,r){t.index=e.index,t.line=this._line,t.charPos=this._charPositionInLine,t.dfaState=r}addDFAEdge(e,r,i){if(i instanceof a.ATNConfigSet){let t=i.hasSemanticContext;t&&(i.hasSemanticContext=!1);let n=this.addDFAState(i);return t||this.addDFAEdge(e,r,n),n}t.debug&&console.log("EDGE "+e+" -> "+i+" upon "+String.fromCharCode(r)),null!=e&&e.setTarget(r,i)}addDFAState(t){v(!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 i,s=new c.DFAState(t.clone(!0));for(let e of t)if(e.state instanceof x.RuleStopState){i=e;break}if(null!=i){let t=this.atn.ruleToTokenType[i.state.ruleIndex],e=i.lexerActionExecutor;s.acceptStateInfo=new n.AcceptStateInfo(t,e)}return this.atn.modeToDFA[this.mode].addState(s)}getDFA(t){return this.atn.modeToDFA[t]}getText(t){return t.getText(u.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)+"'"}};e([y.NotNull],S.prototype,"prevAccept",void 0),e([r(0,y.NotNull)],S.prototype,"copyState",null),e([r(0,y.NotNull)],S.prototype,"match",null),e([y.Override],S.prototype,"reset",null),e([r(0,y.NotNull)],S.prototype,"matchATN",null),e([r(0,y.NotNull),r(1,y.NotNull)],S.prototype,"execATN",null),e([r(0,y.NotNull)],S.prototype,"getExistingTargetState",null),e([y.NotNull,r(0,y.NotNull),r(1,y.NotNull)],S.prototype,"computeTargetState",null),e([r(0,y.NotNull),r(1,y.NotNull),r(2,y.NotNull)],S.prototype,"getReachableConfigSet",null),e([r(0,y.NotNull)],S.prototype,"accept",null),e([y.NotNull,r(0,y.NotNull),r(1,y.NotNull)],S.prototype,"computeStartState",null),e([r(0,y.NotNull),r(1,y.NotNull),r(2,y.NotNull)],S.prototype,"closure",null),e([r(0,y.NotNull),r(1,y.NotNull),r(2,y.NotNull),r(3,y.NotNull)],S.prototype,"getEpsilonTarget",null),e([r(0,y.NotNull)],S.prototype,"evaluatePredicate",null),e([r(0,y.NotNull),r(1,y.NotNull),r(2,y.NotNull)],S.prototype,"captureSimState",null),e([y.NotNull,r(0,y.NotNull)],S.prototype,"addDFAState",null),e([y.NotNull],S.prototype,"getDFA",null),e([y.NotNull,r(0,y.NotNull)],S.prototype,"getText",null),e([r(0,y.NotNull)],S.prototype,"consume",null),e([y.NotNull],S.prototype,"getTokenName",null),S=e([r(0,y.NotNull)],S),t.LexerATNSimulator=S,(i=S=t.LexerATNSimulator||(t.LexerATNSimulator={})).debug=!1,i.dfa_debug=!1,i.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.LexerATNSimulator=S})),ae=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.Lexer=void 0;var r=Rt(),i=Ct(),n=Et(),s=st(),o=oe(),a=ne(),l=nt(),c=Kt(),u=Nt(),h=class extends c.Recognizer{constructor(t){super(),this._factory=r.CommonTokenFactory.DEFAULT,this._tokenStartCharIndex=-1,this._tokenStartLine=0,this._tokenStartCharPositionInLine=0,this._hitEOF=!1,this._channel=0,this._type=0,this._modeStack=new i.IntegerStack,this._mode=h.DEFAULT_MODE,this._input=t,this._tokenFactorySourcePair={source:this,stream:t}}static get DEFAULT_TOKEN_CHANNEL(){return u.Token.DEFAULT_CHANNEL}static get HIDDEN(){return u.Token.HIDDEN_CHANNEL}reset(t){(void 0===t||t)&&this._input.seek(0),this._token=void 0,this._type=u.Token.INVALID_TYPE,this._channel=u.Token.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartCharPositionInLine=-1,this._tokenStartLine=-1,this._text=void 0,this._hitEOF=!1,this._mode=h.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=u.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=u.Token.INVALID_TYPE;try{t=this.interpreter.match(this._input,this._mode)}catch(e){if(!(e instanceof a.LexerNoViableAltException))throw e;this.notifyListeners(e),this.recover(e),t=h.SKIP}if(this._input.LA(1)===s.IntStream.EOF&&(this._hitEOF=!0),this._type===u.Token.INVALID_TYPE&&(this._type=t),this._type===h.SKIP)continue t}while(this._type===h.MORE);return null==this._token?this.emit():this._token}}finally{this._input.release(t)}}skip(){this._type=h.SKIP}more(){this._type=h.MORE}mode(t){this._mode=t}pushMode(t){o.LexerATNSimulator.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(this._modeStack.isEmpty)throw new Error("EmptyStackException");return o.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,u.Token.EOF,void 0,u.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!==u.Token.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){let e=this._input.getText(n.Interval.of(this._tokenStartCharIndex,this._input.index)),r="token recognition error at: '"+this.getErrorDisplay(e)+"'",i=this.getErrorListenerDispatch();i.syntaxError&&i.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,r,t)}getErrorDisplay(t){if("number"==typeof t){switch(t){case u.Token.EOF:return"<EOF>";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 a.LexerNoViableAltException?this._input.LA(1)!==s.IntStream.EOF&&this.interpreter.consume(this._input):this._input.consume()}};h.DEFAULT_MODE=0,h.MORE=-2,h.SKIP=-3,h.MIN_CHAR_VALUE=0,h.MAX_CHAR_VALUE=1114111,e([l.Override],h.prototype,"nextToken",null),e([l.Override],h.prototype,"tokenFactory",null),e([l.Override],h.prototype,"inputStream",null),e([l.Override],h.prototype,"sourceName",null),e([l.Override],h.prototype,"line",null),e([l.Override],h.prototype,"charPositionInLine",null),t.Lexer=h})),le=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.IntervalSet=void 0;var i=yt(),n=bt(),s=Et(),o=ae(),a=pt(),l=nt(),c=Nt(),u=class{constructor(t){this.readonly=!1,this._intervals=null!=t?t.slice(0):[]}static get COMPLETE_CHAR_SET(){return void 0===u._COMPLETE_CHAR_SET&&(u._COMPLETE_CHAR_SET=u.of(o.Lexer.MIN_CHAR_VALUE,o.Lexer.MAX_CHAR_VALUE),u._COMPLETE_CHAR_SET.setReadonly(!0)),u._COMPLETE_CHAR_SET}static get EMPTY_SET(){return null==u._EMPTY_SET&&(u._EMPTY_SET=new u,u._EMPTY_SET.setReadonly(!0)),u._EMPTY_SET}static of(t,e=t){let r=new u;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(s.Interval.of(t,e))}addRange(t){if(this.readonly)throw new Error("can't alter readonly IntervalSet");if(!(t.b<t.a)){for(let e=0;e<this._intervals.length;e++){let r=this._intervals[e];if(t.equals(r))return;if(t.adjacent(r)||!t.disjoint(r)){let i=t.union(r);for(this._intervals[e]=i;e<this._intervals.length-1;){e++;let t=this._intervals[e];if(!i.adjacent(t)&&i.disjoint(t))break;this._intervals.splice(e,1),e--,this._intervals[e]=i.union(t)}return}if(t.startsBeforeDisjoint(r))return void this._intervals.splice(e,0,t)}this._intervals.push(t)}}static or(t){let e=new u;for(let r of t)e.addAll(r);return e}addAll(t){if(null==t)return this;if(t instanceof u){let e=t,r=e._intervals.length;for(let t=0;t<r;t++){let r=e._intervals[t];this.add(r.a,r.b)}}else for(let e of t.toArray())this.add(e);return this}complementRange(t,e){return this.complement(u.of(t,e))}complement(t){if(t.isNil)return u.EMPTY_SET;let e;return t instanceof u?e=t:(e=new u,e.addAll(t)),e.subtract(this)}subtract(t){if(null==t||t.isNil)return new u(this._intervals);if(t instanceof u)return u.subtract(this,t);let e=new u;return e.addAll(t),u.subtract(this,e)}static subtract(t,e){if(t.isNil)return new u;let r=new u(t._intervals);if(e.isNil)return r;let i=0,n=0;for(;i<r._intervals.length&&n<e._intervals.length;){let t,o,a=r._intervals[i],l=e._intervals[n];if(l.b<a.a)n++;else if(l.a>a.b)i++;else if(l.a>a.a&&(t=new s.Interval(a.a,l.a-1)),l.b<a.b&&(o=new s.Interval(l.b+1,a.b)),t){if(o){r._intervals[i]=t,r._intervals.splice(i+1,0,o),i++,n++;continue}r._intervals[i]=t,i++}else o?(r._intervals[i]=o,n++):r._intervals.splice(i,1)}return r}or(t){let e=new u;return e.addAll(this),e.addAll(t),e}and(t){if(t.isNil)return new u;let e,r=this._intervals,i=t._intervals,n=r.length,s=i.length,o=0,a=0;for(;o<n&&a<s;){let t=r[o],n=i[a];t.startsBeforeDisjoint(n)?o++:n.startsBeforeDisjoint(t)?a++:t.properlyContains(n)?(e||(e=new u),e.addRange(t.intersection(n)),a++):n.properlyContains(t)?(e||(e=new u),e.addRange(t.intersection(n)),o++):t.disjoint(n)||(e||(e=new u),e.addRange(t.intersection(n)),t.startsAfterNonDisjoint(n)?a++:n.startsAfterNonDisjoint(t)&&o++)}return e||new u}contains(t){let e=0,r=this._intervals.length-1;for(;e<=r;){let i=e+r>>1,n=this._intervals[i],s=n.a;if(n.b<t)e=i+1;else{if(!(s>t))return!0;r=i-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=a.MurmurHash.initialize();for(let e of this._intervals)t=a.MurmurHash.update(t,e.a),t=a.MurmurHash.update(t,e.b);return t=a.MurmurHash.finish(t,2*this._intervals.length),t}equals(t){return null!=t&&t instanceof u&&i.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 i of this._intervals){r?r=!1:e+=", ";let n=i.a,s=i.b;n===s?n===c.Token.EOF?e+="<EOF>":e+=t?"'"+String.fromCodePoint(n)+"'":n:e+=t?"'"+String.fromCodePoint(n)+"'..'"+String.fromCodePoint(s)+"'":n+".."+s}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 i of this._intervals){r?r=!1:e+=", ";let n=i.a,s=i.b;if(n===s)e+=this.elementName(t,n);else for(let r=n;r<=s;r++)r>n&&(e+=", "),e+=this.elementName(t,r)}return this.size>1&&(e+="}"),e}elementName(t,e){return e===c.Token.EOF?"<EOF>":e===c.Token.EPSILON?"<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;r<e;r++){let e=this._intervals[r];t+=e.b-e.a+1}return t}toIntegerList(){let t=new n.IntegerList(this.size),e=this._intervals.length;for(let r=0;r<e;r++){let e=this._intervals[r],i=e.a,n=e.b;for(let e=i;e<=n;e++)t.add(e)}return t}toSet(){let t=new Set;for(let e of this._intervals){let r=e.a,i=e.b;for(let e=r;e<=i;e++)t.add(e)}return t}toArray(){let t=new Array,e=this._intervals.length;for(let r=0;r<e;r++){let e=this._intervals[r],i=e.a,n=e.b;for(let e=i;e<=n;e++)t.push(e)}return t}remove(t){if(this.readonly)throw new Error("can't alter readonly IntervalSet");let e=this._intervals.length;for(let r=0;r<e;r++){let e=this._intervals[r],i=e.a,n=e.b;if(t<i)break;if(t===i&&t===n){this._intervals.splice(r,1);break}if(t===i){this._intervals[r]=s.Interval.of(e.a+1,e.b);break}if(t===n){this._intervals[r]=s.Interval.of(e.a,e.b-1);break}if(t>i&&t<n){let i=e.b;this._intervals[r]=s.Interval.of(e.a,t-1),this.add(t+1,i)}}}get isReadonly(){return this.readonly}setReadonly(t){if(this.readonly&&!t)throw new Error("can't alter readonly IntervalSet");this.readonly=t}};e([l.Override],u.prototype,"addAll",null),e([l.Override],u.prototype,"complement",null),e([l.Override],u.prototype,"subtract",null),e([l.Override],u.prototype,"or",null),e([l.Override],u.prototype,"and",null),e([l.Override],u.prototype,"contains",null),e([l.Override],u.prototype,"isNil",null),e([l.Override],u.prototype,"hashCode",null),e([l.Override],u.prototype,"equals",null),e([r(0,l.NotNull)],u.prototype,"toStringVocabulary",null),e([l.NotNull,r(0,l.NotNull)],u.prototype,"elementName",null),e([l.Override],u.prototype,"size",null),e([l.Override],u.prototype,"remove",null),e([l.NotNull],u,"of",null),e([l.NotNull],u,"subtract",null),t.IntervalSet=u})),ce=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.ATNDeserializationOptions=void 0;var r=nt(),i=class{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==i._defaultOptions&&(i._defaultOptions=new i,i._defaultOptions.makeReadOnly()),i._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.")}};e([r.NotNull],i,"defaultOptions",null),t.ATNDeserializationOptions=i})),ue=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionTransition=void 0;var i=nt(),n=ut(),s=class extends n.Transition{constructor(t,e,r=-1,i=!1){super(t),this.ruleIndex=e,this.actionIndex=r,this.isCtxDependent=i}get serializationType(){return 6}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};e([i.Override],s.prototype,"serializationType",null),e([i.Override],s.prototype,"isEpsilon",null),e([i.Override],s.prototype,"matches",null),e([i.Override],s.prototype,"toString",null),s=e([r(0,i.NotNull)],s),t.ActionTransition=s})),he=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AtomTransition=void 0;var i=le(),n=nt(),s=ut(),o=class extends s.Transition{constructor(t,e){super(t),this._label=e}get serializationType(){return 5}get label(){return i.IntervalSet.of(this._label)}matches(t,e,r){return this._label===t}toString(){return String(this.label)}};e([n.Override],o.prototype,"serializationType",null),e([n.Override,n.NotNull],o.prototype,"label",null),e([n.Override],o.prototype,"matches",null),e([n.Override,n.NotNull],o.prototype,"toString",null),o=e([r(0,n.NotNull)],o),t.AtomTransition=o})),pe=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStartState=void 0;var e=wt(),r=class extends e.DecisionState{};t.BlockStartState=r})),de=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.BasicBlockStartState=void 0;var r=lt(),i=pe(),n=nt(),s=class extends i.BlockStartState{get stateType(){return r.ATNStateType.BLOCK_START}};e([n.Override],s.prototype,"stateType",null),t.BasicBlockStartState=s})),fe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockEndState=void 0;var r=at(),i=lt(),n=nt(),s=class extends r.ATNState{get stateType(){return i.ATNStateType.BLOCK_END}};e([n.Override],s.prototype,"stateType",null),t.BlockEndState=s})),_e=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpsilonTransition=void 0;var i=nt(),n=ut(),s=class extends n.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"}};e([i.Override],s.prototype,"serializationType",null),e([i.Override],s.prototype,"isEpsilon",null),e([i.Override],s.prototype,"matches",null),e([i.Override,i.NotNull],s.prototype,"toString",null),s=e([r(0,i.NotNull)],s),t.EpsilonTransition=s})),ye=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerChannelAction=void 0;var i=pt(),n=nt(),s=class{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=i.MurmurHash.initialize();return t=i.MurmurHash.update(t,this.actionType),t=i.MurmurHash.update(t,this._channel),i.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof s&&this._channel===t._channel}toString(){return`channel(${this._channel})`}};e([n.Override],s.prototype,"actionType",null),e([n.Override],s.prototype,"isPositionDependent",null),e([n.Override,r(0,n.NotNull)],s.prototype,"execute",null),e([n.Override],s.prototype,"hashCode",null),e([n.Override],s.prototype,"equals",null),e([n.Override],s.prototype,"toString",null),t.LexerChannelAction=s})),ge=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerCustomAction=void 0;var i=pt(),n=nt(),s=class{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=i.MurmurHash.initialize();return t=i.MurmurHash.update(t,this.actionType),t=i.MurmurHash.update(t,this._ruleIndex),t=i.MurmurHash.update(t,this._actionIndex),i.MurmurHash.finish(t,3)}equals(t){return t===this||t instanceof s&&this._ruleIndex===t._ruleIndex&&this._actionIndex===t._actionIndex}};e([n.Override],s.prototype,"actionType",null),e([n.Override],s.prototype,"isPositionDependent",null),e([n.Override,r(0,n.NotNull)],s.prototype,"execute",null),e([n.Override],s.prototype,"hashCode",null),e([n.Override],s.prototype,"equals",null),t.LexerCustomAction=s})),me=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerModeAction=void 0;var i=pt(),n=nt(),s=class{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=i.MurmurHash.initialize();return t=i.MurmurHash.update(t,this.actionType),t=i.MurmurHash.update(t,this._mode),i.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof s&&this._mode===t._mode}toString(){return`mode(${this._mode})`}};e([n.Override],s.prototype,"actionType",null),e([n.Override],s.prototype,"isPositionDependent",null),e([n.Override,r(0,n.NotNull)],s.prototype,"execute",null),e([n.Override],s.prototype,"hashCode",null),e([n.Override],s.prototype,"equals",null),e([n.Override],s.prototype,"toString",null),t.LexerModeAction=s})),xe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerMoreAction=void 0;var i,n=pt(),s=nt(),o=class{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(t){t.more()}hashCode(){let t=n.MurmurHash.initialize();return t=n.MurmurHash.update(t,this.actionType),n.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"more"}};e([s.Override],o.prototype,"actionType",null),e([s.Override],o.prototype,"isPositionDependent",null),e([s.Override,r(0,s.NotNull)],o.prototype,"execute",null),e([s.Override],o.prototype,"hashCode",null),e([s.Override],o.prototype,"equals",null),e([s.Override],o.prototype,"toString",null),t.LexerMoreAction=o,(i=o=t.LexerMoreAction||(t.LexerMoreAction={})).INSTANCE=new i})),Te=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerPopModeAction=void 0;var i,n=pt(),s=nt(),o=class{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(t){t.popMode()}hashCode(){let t=n.MurmurHash.initialize();return t=n.MurmurHash.update(t,this.actionType),n.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"popMode"}};e([s.Override],o.prototype,"actionType",null),e([s.Override],o.prototype,"isPositionDependent",null),e([s.Override,r(0,s.NotNull)],o.prototype,"execute",null),e([s.Override],o.prototype,"hashCode",null),e([s.Override],o.prototype,"equals",null),e([s.Override],o.prototype,"toString",null),t.LexerPopModeAction=o,(i=o=t.LexerPopModeAction||(t.LexerPopModeAction={})).INSTANCE=new i})),ve=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerPushModeAction=void 0;var i=pt(),n=nt(),s=class{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=i.MurmurHash.initialize();return t=i.MurmurHash.update(t,this.actionType),t=i.MurmurHash.update(t,this._mode),i.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof s&&this._mode===t._mode}toString(){return`pushMode(${this._mode})`}};e([n.Override],s.prototype,"actionType",null),e([n.Override],s.prototype,"isPositionDependent",null),e([n.Override,r(0,n.NotNull)],s.prototype,"execute",null),e([n.Override],s.prototype,"hashCode",null),e([n.Override],s.prototype,"equals",null),e([n.Override],s.prototype,"toString",null),t.LexerPushModeAction=s})),Se=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerSkipAction=void 0;var i,n=pt(),s=nt(),o=class{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(t){t.skip()}hashCode(){let t=n.MurmurHash.initialize();return t=n.MurmurHash.update(t,this.actionType),n.MurmurHash.finish(t,1)}equals(t){return t===this}toString(){return"skip"}};e([s.Override],o.prototype,"actionType",null),e([s.Override],o.prototype,"isPositionDependent",null),e([s.Override,r(0,s.NotNull)],o.prototype,"execute",null),e([s.Override],o.prototype,"hashCode",null),e([s.Override],o.prototype,"equals",null),e([s.Override],o.prototype,"toString",null),t.LexerSkipAction=o,(i=o=t.LexerSkipAction||(t.LexerSkipAction={})).INSTANCE=new i})),be=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerTypeAction=void 0;var i=pt(),n=nt(),s=class{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=i.MurmurHash.initialize();return t=i.MurmurHash.update(t,this.actionType),t=i.MurmurHash.update(t,this._type),i.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof s&&this._type===t._type}toString(){return`type(${this._type})`}};e([n.Override],s.prototype,"actionType",null),e([n.Override],s.prototype,"isPositionDependent",null),e([n.Override,r(0,n.NotNull)],s.prototype,"execute",null),e([n.Override],s.prototype,"hashCode",null),e([n.Override],s.prototype,"equals",null),e([n.Override],s.prototype,"toString",null),t.LexerTypeAction=s})),Ee=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.LoopEndState=void 0;var r=at(),i=lt(),n=nt(),s=class extends r.ATNState{get stateType(){return i.ATNStateType.LOOP_END}};e([n.Override],s.prototype,"stateType",null),t.LoopEndState=s})),Ne=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.ConflictInfo=void 0;var r=nt(),i=gt(),n=class{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 n&&this.isExact===t.isExact&&i.equals(this.conflictedAlts,t.conflictedAlts)}hashCode(){return this.conflictedAlts.hashCode()}};e([r.Override],n.prototype,"equals",null),e([r.Override],n.prototype,"hashCode",null),t.ConflictInfo=n})),Ae=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.TerminalNode=void 0;var r=Et(),i=nt(),n=Nt(),s=class{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 r.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===n.Token.EOF?"<EOF>":this._symbol.text||""}};e([i.Override],s.prototype,"getChild",null),e([i.Override],s.prototype,"parent",null),e([i.Override],s.prototype,"setParent",null),e([i.Override],s.prototype,"payload",null),e([i.Override],s.prototype,"sourceInterval",null),e([i.Override],s.prototype,"childCount",null),e([i.Override],s.prototype,"accept",null),e([i.Override],s.prototype,"text",null),e([i.Override],s.prototype,"toStringTree",null),e([i.Override],s.prototype,"toString",null),t.TerminalNode=s})),Re=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorNode=void 0;var r=nt(),i=Ae(),n=class extends i.TerminalNode{constructor(t){super(t)}accept(t){return t.visitErrorNode(this)}};e([r.Override],n.prototype,"accept",null),t.ErrorNode=n})),Ce=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.RuleNode=void 0,t.RuleNode=class{}})),Oe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Trees=void 0;var i=ee(),n=At(),s=Re(),o=nt(),a=Lr(),l=we(),c=Ce(),u=Ae(),h=Nt(),d=gt(),f=class{static toStringTree(t,e){let r;r=e instanceof a.Parser?e.ruleNames:e;let i=d.escapeWhitespace(this.getNodeText(t,r),!1);if(0===t.childCount)return i;let n="";n+="(",i=d.escapeWhitespace(this.getNodeText(t,r),!1),n+=i,n+=" ";for(let e=0;e<t.childCount;e++)e>0&&(n+=" "),n+=this.toStringTree(t.getChild(e),r);return n+=")",n}static getNodeText(t,e){let r;if(e instanceof a.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 c.RuleNode){let e=t.ruleContext,n=r[e.ruleIndex],s=e.altNumber;return s!==i.ATN.INVALID_ALT_NUMBER?n+":"+s:n}if(t instanceof s.ErrorNode)return t.toString();if(t instanceof u.TerminalNode)return t.symbol.text||"";throw new TypeError("Unexpected node type")}static getChildren(t){let e=[];for(let r=0;r<t.childCount;r++)e.push(t.getChild(r));return e}static getAncestors(t){let e=[],r=t.parent;for(;r;)e.unshift(r),r=r.parent;return e}static isAncestorOf(t,e){if(!t||!e||!t.parent)return!1;let r=e.parent;for(;r;){if(t===r)return!0;r=r.parent}return!1}static findAllTokenNodes(t,e){return f.findAllNodes(t,e,!0)}static findAllRuleNodes(t,e){return f.findAllNodes(t,e,!1)}static findAllNodes(t,e,r){let i=[];return f._findAllNodes(t,e,r,i),i}static _findAllNodes(t,e,r,i){r&&t instanceof u.TerminalNode?t.symbol.type===e&&i.push(t):!r&&t instanceof l.ParserRuleContext&&t.ruleIndex===e&&i.push(t);for(let n=0;n<t.childCount;n++)f._findAllNodes(t.getChild(n),e,r,i)}static getDescendants(t){let e=[];return function t(r){e.push(r);const i=r.childCount;for(let e=0;e<i;e++)t(r.getChild(e))}(t),e}static getRootOfSubtreeEnclosingRegion(t,e,r){let i=t.childCount;for(let n=0;n<i;n++){let i=t.getChild(n),s=f.getRootOfSubtreeEnclosingRegion(i,e,r);if(s)return s}if(t instanceof l.ParserRuleContext){let i=t.stop;if(e>=t.start.tokenIndex&&(null==i||r<=i.tokenIndex))return t}}static stripChildrenOutOfRange(t,e,r,i){if(!t)return;let s=t.childCount;for(let o=0;o<s;o++){let s=t.getChild(o),a=s.sourceInterval;if(s instanceof l.ParserRuleContext&&(a.b<r||a.a>i)&&f.isAncestorOf(s,e)){let e=new n.CommonToken(h.Token.INVALID_TYPE,"...");t.children[o]=new u.TerminalNode(e)}}}static findNodeSuchThat(t,e){if(e(t))return t;let r=t.childCount;for(let i=0;i<r;i++){let r=f.findNodeSuchThat(t.getChild(i),e);if(void 0!==r)return r}}};e([r(0,o.NotNull)],f,"toStringTree",null),e([o.NotNull,r(0,o.NotNull)],f,"getAncestors",null),e([r(0,o.NotNull)],f,"getRootOfSubtreeEnclosingRegion",null),t.Trees=f})),Le=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.RuleContext=void 0;var r=ee(),i=Kt(),n=Ce(),s=Et(),o=nt(),a=Oe(),l=we(),c=class extends n.RuleNode{constructor(t,e){super(),this._parent=t,this.invokingState=null!=e?e:-1}static getChildContext(t,e){return new c(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 s.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<this.childCount;e++)t+=this.getChild(e).text;return t.toString()}get ruleIndex(){return-1}get altNumber(){return r.ATN.INVALID_ALT_NUMBER}set altNumber(t){}getChild(t){throw new RangeError("i must be greater than or equal to 0 and less than childCount")}get childCount(){return 0}accept(t){return t.visitChildren(this)}toStringTree(t){return a.Trees.toStringTree(this,t)}toString(t,e){const r=t instanceof i.Recognizer?t.ruleNames:t;e=e||l.ParserRuleContext.emptyContext();let n="",s=this;for(n+="[";s&&s!==e;){if(r){let t=s.ruleIndex;n+=t>=0&&t<r.length?r[t]:t.toString()}else s.isEmpty||(n+=s.invokingState);!s._parent||!r&&s._parent.isEmpty||(n+=" "),s=s._parent}return n+="]",n.toString()}};e([o.Override],c.prototype,"sourceInterval",null),e([o.Override],c.prototype,"ruleContext",null),e([o.Override],c.prototype,"parent",null),e([o.Override],c.prototype,"setParent",null),e([o.Override],c.prototype,"payload",null),e([o.Override],c.prototype,"text",null),e([o.Override],c.prototype,"getChild",null),e([o.Override],c.prototype,"childCount",null),e([o.Override],c.prototype,"accept",null),e([o.Override],c.prototype,"toStringTree",null),t.RuleContext=c})),we=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.ParserRuleContext=void 0;var r=Re(),i=Et(),n=nt(),s=Le(),o=Ae(),a=class extends s.RuleContext{constructor(t,e){null==e?super():super(t,e)}static emptyContext(){return a.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 r.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 o.TerminalNode?(t.setParent(this),void this.addAnyChild(t)):t instanceof s.RuleContext?void this.addAnyChild(t):(t=new o.TerminalNode(t),this.addAnyChild(t),t.setParent(this),t)}addErrorNode(t){if(t instanceof r.ErrorNode){const e=t;return e.setParent(this),this.addAnyChild(e)}{const e=t;let i=new r.ErrorNode(e);return this.addAnyChild(i),i.setParent(this),i}}removeLastChild(){this.children&&this.children.pop()}get parent(){let t=super.parent;if(void 0===t||t instanceof a)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 i of this.children)if(i instanceof e&&(r++,r===t))return i}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 i of this.children)if(i instanceof o.TerminalNode&&i.symbol.type===t&&(r++,r===e))return i}getTokens(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof o.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<this._start.tokenIndex?i.Interval.of(this._start.tokenIndex,this._start.tokenIndex-1):i.Interval.of(this._start.tokenIndex,this._stop.tokenIndex):i.Interval.INVALID}get start(){return this._start}get stop(){return this._stop}toInfoString(t){return"ParserRuleContext"+t.getRuleInvocationStack(this).reverse()+"{start="+this._start+", stop="+this._stop+"}"}};a.EMPTY=new a,e([n.Override],a.prototype,"parent",null),e([n.Override],a.prototype,"childCount",null),e([n.Override],a.prototype,"sourceInterval",null),t.ParserRuleContext=a})),Ie=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.PredictionMode=void 0;var r,i=Lt(),n=pt(),s=nt(),o=Jt();(r=t.PredictionMode||(t.PredictionMode={}))[r.SLL=0]="SLL",r[r.LL=1]="LL",r[r.LL_EXACT_AMBIG_DETECTION=2]="LL_EXACT_AMBIG_DETECTION",function(t){class r extends i.Array2DHashMap{constructor(){super(a.INSTANCE)}}class a{AltAndContextConfigEqualityComparator(){}hashCode(t){let e=n.MurmurHash.initialize(7);return e=n.MurmurHash.update(e,t.state.stateNumber),e=n.MurmurHash.update(e,t.context),e=n.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)}}a.INSTANCE=new a,e([s.Override],a.prototype,"hashCode",null),e([s.Override],a.prototype,"equals",null),t.hasConfigInRuleStopState=function(t){for(let e of t)if(e.state instanceof o.RuleStopState)return!0;return!1},t.allConfigsInRuleStopStates=function(t){for(let e of t)if(!(e.state instanceof o.RuleStopState))return!1;return!0}}(t.PredictionMode||(t.PredictionMode={}))})),Pe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SimulatorState=void 0;var i=nt(),n=we(),s=class{constructor(t,e,r,i){this.outerContext=null!=t?t:n.ParserRuleContext.emptyContext(),this.s0=e,this.useContext=r,this.remainingOuterContext=i}};s=e([r(1,i.NotNull)],s),t.SimulatorState=s})),ke=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParserATNSimulator=void 0;var i=Ot(),n=ue(),s=_t(),o=St(),a=ee(),l=kt(),c=Ft(),u=jt(),h=lt(),d=he(),f=Dt(),_=Ne(),y=wt(),g=Mt(),m=bt(),x=Et(),T=st(),v=nt(),S=Xt(),b=wr(),E=dt(),N=we(),A=Pt(),R=It(),C=Ie(),O=Jt(),L=Qt(),w=mt(),I=Wt(),P=Pe(),k=Nt(),D=Bt(),F=it(),M=-2147483648,j=class t extends u.ATNSimulator{constructor(t,e){super(t),this.predictionMode=C.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,i,n){void 0===n&&(n=!1);let s,o=this.atn.decisionToDFA[r];if(F(null!=o),this.optimize_ll1&&!o.isPrecedenceDfa&&!o.isEmpty){let t=e.LA(1);if(t>=0&&t<=65535){let e=(r<<16>>>0)+t,i=this.atn.LL1Table.get(e);if(null!=i)return i}}this.dfa=o,this.force_global_context?n=!0:this.always_try_local_context||(n=n||o.isContextSensitive),this.userWantsCtxSensitive=n||this.predictionMode!==C.PredictionMode.SLL&&null!=i&&!this.atn.decisionToState[r].sll,null==i&&(i=N.ParserRuleContext.emptyContext()),o.isEmpty||(s=this.getStartState(o,e,i,n)),null==s&&(null==i&&(i=N.ParserRuleContext.emptyContext()),t.debug&&console.log("ATN decision "+o.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+i.toString(this._parser)),s=this.computeStartState(o,i,n));let a=e.mark(),l=e.index;try{let r=this.execDFA(o,e,l,s);return t.debug&&console.log("DFA after predictATN: "+o.toString(this._parser.vocabulary,this._parser.ruleNames)),r}finally{this.dfa=void 0,e.seek(l),e.release(a)}}getStartState(t,e,r,i){if(!i){if(t.isPrecedenceDfa){let e=t.getPrecedenceStartState(this._parser.precedence,!1);if(null==e)return;return new P.SimulatorState(r,e,!1,r)}if(null==t.s0)return;return new P.SimulatorState(r,t.s0,!1,r)}if(!this.enable_global_context_dfa)return;let n,s=r;for(F(null!=r),n=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,!0):t.s0full;null!=s&&null!=n&&n.isContextSensitive;)s=this.skipTailCalls(s),n=n.getContextTarget(this.getReturnState(s)),s.isEmpty?F(null==n||!n.isContextSensitive):s=s.parent;return null!=n?new P.SimulatorState(r,n,i,s):void 0}execDFA(e,r,i,n){let s=n.outerContext;t.dfa_debug&&console.log("DFA decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r)+", outerContext="+s.toString(this._parser)),t.dfa_debug&&console.log(e.toString(this._parser.vocabulary,this._parser.ruleNames));let o=n.s0,a=r.LA(1),l=n.remainingOuterContext;for(;;){if(t.dfa_debug&&console.log("DFA state "+o.stateNumber+" LA(1)=="+this.getLookaheadName(r)),n.useContext)for(;o.isContextSymbol(a);){let t;if(null!=l&&(l=this.skipTailCalls(l),t=o.getContextTarget(this.getReturnState(l))),null==t){let t=new P.SimulatorState(n.outerContext,o,n.useContext,l);return this.execATN(e,r,i,t)}F(null!=l),l=l.parent,o=t}if(this.isAcceptState(o,n.useContext)){null!=o.predicates?t.dfa_debug&&console.log("accept "+o):t.dfa_debug&&console.log("accept; predict "+o.prediction+" in state "+o.stateNumber);break}F(!this.isAcceptState(o,n.useContext));let c=this.getExistingTargetState(o,a);if(null==c){let c;if(t.dfa_debug&&a>=0&&console.log("no edge for "+this._parser.vocabulary.getDisplayName(a)),t.dfa_debug){let t=x.Interval.of(i,this._parser.inputStream.index);console.log("ATN exec upon "+this._parser.inputStream.getText(t)+" at DFA state "+o.stateNumber)}let u=new P.SimulatorState(s,o,n.useContext,l);return c=this.execATN(e,r,i,u),t.dfa_debug&&console.log("back from DFA update, alt="+c+", dfa=\n"+e.toString(this._parser.vocabulary,this._parser.ruleNames)),t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+c),c}if(c===u.ATNSimulator.ERROR){let t=new P.SimulatorState(s,o,n.useContext,l);return this.handleNoViableAlt(r,i,t)}o=c,this.isAcceptState(o,n.useContext)||a===T.IntStream.EOF||(r.consume(),a=r.LA(1))}if(!n.useContext&&null!=o.configs.conflictInfo&&e.atnStartState instanceof y.DecisionState&&!(!this.userWantsCtxSensitive||!o.configs.dipsIntoOuterContext&&o.configs.isExactConflict||this.treat_sllk1_conflict_as_ambiguity&&r.index===i)){let t;F(!n.useContext);let a=o.predicates;if(null!=a){let e=r.index;if(e!==i&&r.seek(i),t=this.evalSemanticContext(a,s,!0),1===t.cardinality())return t.nextSetBit(0);e!==i&&r.seek(e)}if(this.reportAmbiguities){let a=new P.SimulatorState(s,o,n.useContext,l);this.reportAttemptingFullContext(e,t,a,i,r.index)}return r.seek(i),this.adaptivePredict(r,e.decision,s,!0)}let c=o.predicates;if(null!=c){let t=r.index;i!==t&&r.seek(i);let n=this.evalSemanticContext(c,s,this.reportAmbiguities&&this.predictionMode===C.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(n.cardinality()){case 0:throw this.noViableAlt(r,s,o.configs,i);case 1:return n.nextSetBit(0);default:return i!==t&&r.seek(t),this.reportAmbiguity(e,o,i,t,o.configs.isExactConflict,n,o.configs),n.nextSetBit(0)}}return t.dfa_debug&&console.log("DFA decision "+e.decision+" predicts "+o.prediction),o.prediction}isAcceptState(t,e){return!!t.isAcceptState&&(null==t.configs.conflictingAlts||!e||this.predictionMode!==C.PredictionMode.LL_EXACT_AMBIG_DETECTION||t.configs.isExactConflict)}execATN(e,r,i,n){t.debug&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r));let s=n.outerContext,o=n.useContext,l=r.LA(1),c=n,h=new R.PredictionContextCache;for(;;){let n=this.computeReachSet(e,c,l,h);if(null==n)return this.setDFAEdge(c.s0,r.LA(1),u.ATNSimulator.ERROR),this.handleNoViableAlt(r,i,c);let p=n.s0;if(F(p.isAcceptState||p.prediction===a.ATN.INVALID_ALT_NUMBER),F(p.isAcceptState||null==p.configs.conflictInfo),this.isAcceptState(p,o)){let c=p.configs.conflictingAlts,u=null==c?p.prediction:a.ATN.INVALID_ALT_NUMBER;if(u!==a.ATN.INVALID_ALT_NUMBER){if(this.optimize_ll1&&r.index===i&&!e.isPrecedenceDfa&&n.outerContext===n.remainingOuterContext&&e.decision>=0&&!p.configs.hasSemanticContext&&l>=0&&l<=65535){let t=(e.decision<<16>>>0)+l;this.atn.LL1Table.set(t,u)}o&&this.always_try_local_context&&this.reportContextSensitivity(e,u,n,i,r.index)}u=p.prediction;let h=null!=c&&this.userWantsCtxSensitive;if(h&&(h=!o&&(p.configs.dipsIntoOuterContext||!p.configs.isExactConflict)&&(!this.treat_sllk1_conflict_as_ambiguity||r.index!==i)),p.configs.hasSemanticContext){let t=p.predicates;if(null!=t){let e=r.index;switch(e!==i&&r.seek(i),c=this.evalSemanticContext(t,s,h||this.reportAmbiguities),c.cardinality()){case 0:throw this.noViableAlt(r,s,p.configs,i);case 1:return c.nextSetBit(0)}e!==i&&r.seek(e)}}if(h){F(!o),F(this.isAcceptState(p,!1)),t.debug&&console.log("RETRY with outerContext="+s);let a=this.computeStartState(e,s,!0);return this.reportAmbiguities&&this.reportAttemptingFullContext(e,c,n,i,r.index),r.seek(i),this.execATN(e,r,i,a)}return null!=c&&(this.reportAmbiguities&&c.cardinality()>1&&this.reportAmbiguity(e,p,i,r.index,p.configs.isExactConflict,c,p.configs),u=c.nextSetBit(0)),u}c=n,l!==T.IntStream.EOF&&(r.consume(),l=r.LA(1))}}handleNoViableAlt(t,e,r){if(null!=r.s0){let i=new f.BitSet,n=0;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof O.RuleStopState)&&(i.set(t.alt),n=Math.max(n,t.alt));switch(i.cardinality()){case 0:break;case 1:return i.nextSetBit(0);default:if(!r.s0.configs.hasSemanticContext)return i.nextSetBit(0);let s=new c.ATNConfigSet;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof O.RuleStopState)&&s.add(t);let o=this.getPredsForAmbigAlts(i,s,n);if(null!=o){let n=this.getPredicatePredictions(i,o);if(null!=n){let i=t.index;try{t.seek(e);let i=this.evalSemanticContext(n,r.outerContext,!1);if(!i.isEmpty)return i.nextSetBit(0)}finally{t.seek(i)}}}return i.nextSetBit(0)}}throw this.noViableAlt(t,r.outerContext,r.s0.configs,e)}computeReachSet(t,e,r,i){let n=e.useContext,s=e.remainingOuterContext,o=e.s0;if(n)for(;o.isContextSymbol(r);){let t;if(null!=s&&(s=this.skipTailCalls(s),t=o.getContextTarget(this.getReturnState(s))),null==t)break;F(null!=s),s=s.parent,o=t}if(F(!this.isAcceptState(o,n)),this.isAcceptState(o,n))return new P.SimulatorState(e.outerContext,o,n,s);let a=o,l=this.getExistingTargetState(a,r);if(null==l){let e=this.computeTargetState(t,a,s,r,n,i);l=e[0],s=e[1]}return l!==u.ATNSimulator.ERROR?(F(!n||!l.configs.dipsIntoOuterContext),new P.SimulatorState(e.outerContext,l,n,s)):void 0}getExistingTargetState(t,e){return t.getTarget(e)}computeTargetState(e,r,i,n,s,o){let l,h,p=r.configs.toArray(),d=new c.ATNConfigSet;do{let e=!s||null!=i;e||(d.isOutermostConfigSet=!0);let r,u=new c.ATNConfigSet;for(let e of p){if(t.debug&&console.log("testing "+this.getTokenName(n)+" at "+e.toString()),e.state instanceof O.RuleStopState){F(e.context.isEmpty),(s&&!e.reachesIntoOuterContext||n===T.IntStream.EOF)&&(null==r&&(r=[]),r.push(e));continue}let i=e.state.numberOfOptimizedTransitions;for(let t=0;t<i;t++){let r=e.state.getOptimizedTransition(t),i=this.getReachableTarget(e,r,n);null!=i&&u.add(e.transform(i,!1),o)}}if(this.optimize_unique_closure&&null==r&&n!==k.Token.EOF&&u.uniqueAlt!==a.ATN.INVALID_ALT_NUMBER){u.isOutermostConfigSet=d.isOutermostConfigSet,d=u;break}let f=!1,_=n===k.Token.EOF;if(this.closure(u,d,f,e,o,_),h=d.dipsIntoOuterContext,n===T.IntStream.EOF&&(d=this.removeAllConfigsNotInRuleStopState(d,o)),!(null==r||s&&C.PredictionMode.hasConfigInRuleStopState(d))){F(r.length>0);for(let t of r)d.add(t,o)}if(s&&h){d.clear(),i=this.skipTailCalls(i);let t=this.getReturnState(i);if(null==l&&(l=new m.IntegerList),i=i.isEmpty?void 0:i.parent,l.add(t),t!==A.PredictionContext.EMPTY_FULL_STATE_KEY)for(let e=0;e<p.length;e++)p[e]=p[e].appendContext(t,o)}}while(s&&h);return d.isEmpty?(this.setDFAEdge(r,n,u.ATNSimulator.ERROR),[u.ATNSimulator.ERROR,i]):[this.addDFAEdge(e,r,n,l,d,o),i]}removeAllConfigsNotInRuleStopState(t,e){if(C.PredictionMode.allConfigsInRuleStopStates(t))return t;let r=new c.ATNConfigSet;for(let i of t)i.state instanceof O.RuleStopState&&r.add(i,e);return r}computeStartState(t,e,r){let i=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,r):r?t.s0full:t.s0;if(null!=i){if(!r)return new P.SimulatorState(e,i,r,e);i.setContextSensitive(this.atn)}t.decision;let n=t.atnStartState,s=0,o=e,a=r?A.PredictionContext.EMPTY_FULL:A.PredictionContext.EMPTY_LOCAL,u=new R.PredictionContextCache;if(r){if(!this.enable_global_context_dfa)for(;null!=o;)o.isEmpty?(s=A.PredictionContext.EMPTY_FULL_STATE_KEY,o=void 0):(s=this.getReturnState(o),a=a.appendSingleContext(s,u),o=o.parent);for(;null!=i&&i.isContextSensitive&&null!=o;){let t;if(o=this.skipTailCalls(o),o.isEmpty?(t=i.getContextTarget(A.PredictionContext.EMPTY_FULL_STATE_KEY),s=A.PredictionContext.EMPTY_FULL_STATE_KEY,o=void 0):(s=this.getReturnState(o),t=i.getContextTarget(s),a=a.appendSingleContext(s,u),o=o.parent),null==t)break;i=t}}if(null!=i&&!i.isContextSensitive)return new P.SimulatorState(e,i,r,o);let h=new c.ATNConfigSet;for(;;){let p=new c.ATNConfigSet,d=n.numberOfTransitions;for(let t=0;t<d;t++){let e=n.transition(t).target;p.add(l.ATNConfig.create(e,t+1,a))}let f=null!=o;f||(h.isOutermostConfigSet=!0);let _=!0;this.closure(p,h,_,f,u,!1);let y,g=h.dipsIntoOuterContext;if(r&&!this.enable_global_context_dfa){i=this.addDFAState(t,h,u);break}if(null==i?t.isPrecedenceDfa?(h=this.applyPrecedenceFilter(h,e,u),y=this.addDFAState(t,h,u),t.setPrecedenceStartState(this._parser.precedence,r,y)):(y=this.addDFAState(t,h,u),r?t.s0full?y=t.s0full:t.s0full=y:t.s0?y=t.s0:t.s0=y):(t.isPrecedenceDfa&&(h=this.applyPrecedenceFilter(h,e,u)),y=this.addDFAState(t,h,u),i.setContextTarget(s,y)),i=y,!r||!g)break;y.setContextSensitive(this.atn),h.clear(),o=this.skipTailCalls(o);let m=this.getReturnState(o);o=o.isEmpty?void 0:o.parent,m!==A.PredictionContext.EMPTY_FULL_STATE_KEY&&(a=a.appendSingleContext(m,u)),s=m}return new P.SimulatorState(e,i,r,o)}applyPrecedenceFilter(t,e,r){let i=new Map,n=new c.ATNConfigSet;for(let s of t){if(1!==s.alt)continue;let t=s.semanticContext.evalPrecedence(this._parser,e);null!=t&&(i.set(s.state.stateNumber,s.context),t!==s.semanticContext?n.add(s.transform(s.state,!1,t),r):n.add(s,r))}for(let e of t)if(1!==e.alt){if(!e.isPrecedenceFilterSuppressed){let t=i.get(e.state.stateNumber);if(null!=t&&t.equals(e.context))continue}n.add(e,r)}return n}getReachableTarget(t,e,r){if(e.matches(r,0,this.atn.maxTokenType))return e.target}predicateDFAState(e,r,i){let n=this.getConflictingAltsFromConfigSet(r);if(!n)throw new Error("This unhandled scenario is intended to be unreachable, but I'm currently not sure of why we know that's the case.");t.debug&&console.log("predicateDFAState "+e);let s,o=this.getPredsForAmbigAlts(n,r,i);return null!=o&&(s=this.getPredicatePredictions(n,o),e.predicates=s),s}getPredsForAmbigAlts(e,r,i){let n=new Array(i+1),s=n.length;for(let t of r)e.get(t.alt)&&(n[t.alt]=w.SemanticContext.or(n[t.alt],t.semanticContext));let a=0;for(let t=0;t<s;t++)null==n[t]?n[t]=w.SemanticContext.NONE:n[t]!==w.SemanticContext.NONE&&a++;let l=n;return 0===a&&(l=void 0),t.debug&&console.log("getPredsForAmbigAlts result "+(l?o.Arrays.toString(l):"undefined")),l}getPredicatePredictions(t,e){let r=[],i=!1;for(let n=1;n<e.length;n++){let s=e[n];F(null!=s),null!=t&&t.get(n)&&s===w.SemanticContext.NONE?r.push(new g.DFAState.PredPrediction(s,n)):s!==w.SemanticContext.NONE&&(i=!0,r.push(new g.DFAState.PredPrediction(s,n)))}if(i)return r}evalSemanticContext(e,r,i){let n=new f.BitSet;for(let s of e){if(s.pred===w.SemanticContext.NONE){if(n.set(s.alt),!i)break;continue}let e=this.evalSemanticContextImpl(s.pred,r,s.alt);if((t.debug||t.dfa_debug)&&console.log("eval pred "+s+"="+e),e&&((t.debug||t.dfa_debug)&&console.log("PREDICT "+s.alt),n.set(s.alt),!i))break}return n}evalSemanticContextImpl(t,e,r){return t.eval(this._parser,e)}closure(t,e,r,i,n,o){null==n&&(n=R.PredictionContextCache.UNCACHED);let a=t,l=new s.Array2DHashSet(E.ObjectEqualityComparator.INSTANCE);for(;a.size>0;){let t=new c.ATNConfigSet;for(let s of a)this.closureImpl(s,e,t,l,r,i,n,0,o);a=t}}closureImpl(e,r,i,s,o,a,c,u,p){if(t.debug&&console.log("closure("+e.toString(this._parser,!0)+")"),e.state instanceof O.RuleStopState)if(e.context.isEmpty){if(!a)return void r.add(e,c);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,c)}else{let t=e.context.hasEmpty,n=e.context.size-(t?1:0);for(let t=0;t<n;t++){let n=e.context.getParent(t),h=this.atn.states[e.context.getReturnState(t)],d=l.ATNConfig.create(h,e.alt,n,e.semanticContext);d.outerContextDepth=e.outerContextDepth,d.isPrecedenceFilterSuppressed=e.isPrecedenceFilterSuppressed,F(u>M),this.closureImpl(d,r,i,s,o,a,c,u-1,p)}if(!t||!a)return;e=e.transform(e.state,!1,A.PredictionContext.EMPTY_LOCAL)}let d=e.state;d.onlyHasEpsilonTransitions||(r.add(e,c),t.debug&&console.log("added config "+r));for(let l=0;l<d.numberOfOptimizedTransitions;l++){if(0===l&&d.stateType===h.ATNStateType.STAR_LOOP_ENTRY&&d.precedenceRuleDecision&&!e.context.hasEmpty){let t=d,r=!0;for(let i=0;i<e.context.size;i++)if(!t.precedenceLoopbackStates.get(e.context.getReturnState(i))){r=!1;break}if(r)continue}let f=d.getOptimizedTransition(l),_=!(f instanceof n.ActionTransition)&&o,y=this.getEpsilonTarget(e,f,_,0===u,c,p);if(null!=y){if(f instanceof L.RuleTransition&&null!=i&&!o){i.add(y,c);continue}let n=u;if(e.state instanceof O.RuleStopState){if(null!=this.dfa&&this.dfa.isPrecedenceDfa&&f.outermostPrecedenceReturn===this.dfa.atnStartState.ruleIndex&&(y.isPrecedenceFilterSuppressed=!0),y.outerContextDepth=y.outerContextDepth+1,!s.add(y))continue;F(n>M),n--,t.debug&&console.log("dips into outer ctx: "+y)}else if(f instanceof L.RuleTransition)!this.optimize_tail_calls||!f.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?n>=0&&n++:(F(y.context===e.context),0===n&&(n--,!this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)&&(y.outerContextDepth=y.outerContextDepth+1)));else if(!f.isEpsilon&&!s.add(y))continue;this.closureImpl(y,r,i,s,_,a,c,n,p)}}}getRuleName(t){return null!=this._parser&&t>=0?this._parser.ruleNames[t]:"<rule "+t+">"}getEpsilonTarget(t,e,r,i,n,s){switch(e.serializationType){case 3:return this.ruleTransition(t,e,n);case 10:return this.precedenceTransition(t,e,r,i);case 4:return this.predTransition(t,e,r,i);case 6:return this.actionTransition(t,e);case 1:return t.transform(e.target,!1);case 5:case 2:case 7:return s&&e.matches(k.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,i,n){let s;if(t.debug&&(console.log("PRED (collectPredicates="+i+") "+r.precedence+">=_p, ctx dependent=true"),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),i&&n){let t=w.SemanticContext.and(e.semanticContext,r.predicate);s=e.transform(r.target,!1,t)}else s=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+s),s}predTransition(e,r,i,n){let s;if(t.debug&&(console.log("PRED (collectPredicates="+i+") "+r.ruleIndex+":"+r.predIndex+", ctx dependent="+r.isCtxDependent),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),i&&(!r.isCtxDependent||r.isCtxDependent&&n)){let t=w.SemanticContext.and(e.semanticContext,r.predicate);s=e.transform(r.target,!1,t)}else s=e.transform(r.target,!1);return t.debug&&console.log("config from pred transition="+s),s}ruleTransition(e,r,i){t.debug&&console.log("CALL rule "+this.getRuleName(r.target.ruleIndex)+", ctx="+e.context);let n,s=r.followState;return n=!this.optimize_tail_calls||!r.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?null!=i?i.getChild(e.context,s.stateNumber):e.context.getChild(s.stateNumber):e.context,e.transform(r.target,!1,n)}isConflicted(e,r){if(e.uniqueAlt!==a.ATN.INVALID_ALT_NUMBER||e.size<=1)return;let i=e.toArray();i.sort(t.STATE_ALT_SORT_COMPARATOR);let n=!e.dipsIntoOuterContext,s=new f.BitSet,o=i[0].alt;s.set(o);let l,c=i[0].state.nonStopStateNumber;for(let t of i){let e=t.state.nonStopStateNumber;if(e!==c){if(t.alt!==o)return;c=e}}if(n){c=i[0].state.nonStopStateNumber,l=new f.BitSet;let t=o;for(let e of i){if(e.state.nonStopStateNumber!==c)break;let r=e.alt;l.set(r),t=r}c=i[0].state.nonStopStateNumber;let e=o;for(let r of i){let i=r.state.nonStopStateNumber,s=r.alt;if(i!==c){if(e!==t){n=!1;break}c=i,e=o}else if(s!==e){if(s!==l.nextSetBit(e+1)){n=!1;break}e=s}}}c=i[0].state.nonStopStateNumber;let u=0,h=0,p=i[0].context;for(let t=1;t<i.length;t++){let e=i[t];if(e.alt!==o)break;if(e.state.nonStopStateNumber!==c)break;h=t,p=r.join(p,i[t].context)}for(let t=h+1;t<i.length;t++){let e=i[t],a=e.state;if(s.set(e.alt),a.nonStopStateNumber!==c){c=a.nonStopStateNumber,u=t,h=t,p=e.context;for(let t=u+1;t<i.length;t++){let e=i[t];if(e.alt!==o)break;if(e.state.nonStopStateNumber!==c)break;h=t,p=r.join(p,e.context)}t=h;continue}let l=e.context,d=e.alt,f=t;for(let t=f+1;t<i.length;t++){let e=i[t];if(e.alt!==d)break;if(e.state.nonStopStateNumber!==c)break;f=t,l=r.join(l,e.context)}t=f;let _=r.join(p,l);if(!p.equals(_))return;n=n&&p.equals(l)}return new _.ConflictInfo(s,n)}getConflictingAltsFromConfigSet(t){let e=t.conflictingAlts;return null==e&&t.uniqueAlt!==a.ATN.INVALID_ALT_NUMBER&&(e=new f.BitSet,e.set(t.uniqueAlt)),e}getTokenName(t){if(t===k.Token.EOF)return"EOF";let e=(null!=this._parser?this._parser.vocabulary:D.VocabularyImpl.EMPTY_VOCABULARY).getDisplayName(t);return e===String(t)?e:e+"<"+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 d.AtomTransition?e="Atom "+this.getTokenName(r._label):r instanceof I.SetTransition&&(e=(r instanceof S.NotSetTransition?"~":"")+"Set "+r.set.toString())}console.log(t.toString(this._parser,!0)+":"+e)}}noViableAlt(t,e,r,i){return new b.NoViableAltException(this._parser,t,t.get(i),t.LT(1),r,e)}getUniqueAlt(t){let e=a.ATN.INVALID_ALT_NUMBER;for(let r of t)if(e===a.ATN.INVALID_ALT_NUMBER)e=r.alt;else if(r.alt!==e)return a.ATN.INVALID_ALT_NUMBER;return e}configWithAltAtStopState(t,e){for(let r of t)if(r.alt===e&&r.state instanceof O.RuleStopState)return!0;return!1}addDFAEdge(e,r,i,n,s,o){F(null==n||n.isEmpty||e.isContextSensitive);let a=r,l=this.addDFAState(e,s,o);if(null!=n)for(let t of n.toArray()){if(t===A.PredictionContext.EMPTY_FULL_STATE_KEY&&a.configs.isOutermostConfigSet)continue;a.setContextSensitive(this.atn),a.setContextSymbol(i);let r=a.getContextTarget(t);null==r?(r=this.addDFAContextState(e,a.configs,t,o),F(t!==A.PredictionContext.EMPTY_FULL_STATE_KEY||r.configs.isOutermostConfigSet),a.setContextTarget(t,r),a=r):a=r}return t.debug&&console.log("EDGE "+a+" -> "+l+" upon "+this.getTokenName(i)),this.setDFAEdge(a,i,l),t.debug&&console.log("DFA=\n"+e.toString(null!=this._parser?this._parser.vocabulary:D.VocabularyImpl.EMPTY_VOCABULARY,null!=this._parser?this._parser.ruleNames:void 0)),l}setDFAEdge(t,e,r){null!=t&&t.setTarget(e,r)}addDFAContextState(t,e,r,i){if(r!==A.PredictionContext.EMPTY_FULL_STATE_KEY){let n=new c.ATNConfigSet;for(let t of e)n.add(t.appendContext(r,i));return this.addDFAState(t,n,i)}return F(!e.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),(e=e.clone(!0)).isOutermostConfigSet=!0,this.addDFAState(t,e,i)}addDFAState(e,r,n){let s=this.enable_global_context_dfa||!r.isOutermostConfigSet;if(s){r.isReadOnly||r.optimizeConfigs(this);let t=this.createDFAState(e,r),i=e.states.get(t);if(null!=i)return i}r.isReadOnly||null==r.conflictInfo&&(r.conflictInfo=this.isConflicted(r,n));let o=this.createDFAState(e,r.clone(!0)),l=this.atn.getDecisionState(e.decision),c=this.getUniqueAlt(r);if(c!==a.ATN.INVALID_ALT_NUMBER)o.acceptStateInfo=new i.AcceptStateInfo(c);else if(null!=r.conflictingAlts){let t=r.conflictingAlts;t&&(o.acceptStateInfo=new i.AcceptStateInfo(t.nextSetBit(0)))}if(o.isAcceptState&&r.hasSemanticContext&&this.predicateDFAState(o,r,l.numberOfTransitions),!s)return o;let u=e.addState(o);return t.debug&&u===o&&console.log("adding new DFA state: "+o),u}createDFAState(t,e){return new g.DFAState(e)}reportAttemptingFullContext(e,r,i,n,s){if(t.debug||t.retry_debug){let t=x.Interval.of(n,s);console.log("reportAttemptingFullContext decision="+e.decision+":"+i.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAttemptingFullContext&&t.reportAttemptingFullContext(this._parser,e,n,s,r,i)}}reportContextSensitivity(e,r,i,n,s){if(t.debug||t.retry_debug){let t=x.Interval.of(n,s);console.log("reportContextSensitivity decision="+e.decision+":"+i.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportContextSensitivity&&t.reportContextSensitivity(this._parser,e,n,s,r,i)}}reportAmbiguity(e,r,i,n,s,o,a){if(t.debug||t.retry_debug){let t=x.Interval.of(i,n);console.log("reportAmbiguity "+o+":"+a+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAmbiguity&&t.reportAmbiguity(this._parser,e,i,n,s,o,a)}}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(F(1===e.numberOfTransitions&&3===e.transition(0).serializationType),!e.transition(0).tailCall)break;t=t.parent}return t}get parser(){return this._parser}};j.debug=!1,j.dfa_debug=!1,j.retry_debug=!1,j.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)},e([v.NotNull],j.prototype,"predictionMode",void 0),e([v.NotNull],j.prototype,"getPredictionMode",null),e([r(0,v.NotNull)],j.prototype,"setPredictionMode",null),e([v.Override],j.prototype,"reset",null),e([r(0,v.NotNull)],j.prototype,"adaptivePredict",null),e([r(0,v.NotNull),r(1,v.NotNull),r(2,v.NotNull)],j.prototype,"getStartState",null),e([r(0,v.NotNull),r(1,v.NotNull),r(3,v.NotNull)],j.prototype,"execDFA",null),e([r(0,v.NotNull),r(1,v.NotNull),r(3,v.NotNull)],j.prototype,"execATN",null),e([r(0,v.NotNull),r(2,v.NotNull)],j.prototype,"handleNoViableAlt",null),e([r(0,v.NotNull)],j.prototype,"getExistingTargetState",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull)],j.prototype,"computeTargetState",null),e([v.NotNull,r(0,v.NotNull)],j.prototype,"removeAllConfigsNotInRuleStopState",null),e([v.NotNull],j.prototype,"computeStartState",null),e([v.NotNull,r(0,v.NotNull)],j.prototype,"applyPrecedenceFilter",null),e([r(0,v.NotNull),r(1,v.NotNull)],j.prototype,"getReachableTarget",null),e([r(0,v.NotNull),r(1,v.NotNull)],j.prototype,"getPredsForAmbigAlts",null),e([r(0,v.NotNull)],j.prototype,"evalSemanticContext",null),e([r(0,v.NotNull)],j.prototype,"evalSemanticContextImpl",null),e([r(1,v.NotNull),r(4,v.Nullable)],j.prototype,"closure",null),e([r(0,v.NotNull),r(1,v.NotNull),r(2,v.Nullable),r(3,v.NotNull),r(6,v.NotNull)],j.prototype,"closureImpl",null),e([v.NotNull],j.prototype,"getRuleName",null),e([r(0,v.NotNull),r(1,v.NotNull)],j.prototype,"getEpsilonTarget",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull)],j.prototype,"actionTransition",null),e([v.Nullable,r(0,v.NotNull),r(1,v.NotNull)],j.prototype,"precedenceTransition",null),e([v.Nullable,r(0,v.NotNull),r(1,v.NotNull)],j.prototype,"predTransition",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull),r(2,v.Nullable)],j.prototype,"ruleTransition",null),e([r(0,v.NotNull)],j.prototype,"isConflicted",null),e([v.NotNull],j.prototype,"getTokenName",null),e([r(0,v.NotNull)],j.prototype,"dumpDeadEndConfigs",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull),r(2,v.NotNull)],j.prototype,"noViableAlt",null),e([r(0,v.NotNull)],j.prototype,"getUniqueAlt",null),e([r(0,v.NotNull)],j.prototype,"configWithAltAtStopState",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull),r(4,v.NotNull)],j.prototype,"addDFAEdge",null),e([r(0,v.Nullable),r(2,v.Nullable)],j.prototype,"setDFAEdge",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull)],j.prototype,"addDFAContextState",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull)],j.prototype,"addDFAState",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull)],j.prototype,"createDFAState",null),e([r(0,v.NotNull),r(2,v.NotNull)],j.prototype,"reportAttemptingFullContext",null),e([r(0,v.NotNull),r(2,v.NotNull)],j.prototype,"reportContextSensitivity",null),e([r(0,v.NotNull),r(5,v.NotNull),r(6,v.NotNull)],j.prototype,"reportAmbiguity",null),j=e([r(0,v.NotNull)],j),t.ParserATNSimulator=j})),De=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.PlusBlockStartState=void 0;var r=lt(),i=pe(),n=nt(),s=class extends i.BlockStartState{get stateType(){return r.ATNStateType.PLUS_BLOCK_START}};e([n.Override],s.prototype,"stateType",null),t.PlusBlockStartState=s})),Fe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.PlusLoopbackState=void 0;var r=lt(),i=wt(),n=nt(),s=class extends i.DecisionState{get stateType(){return r.ATNStateType.PLUS_LOOP_BACK}};e([n.Override],s.prototype,"stateType",null),t.PlusLoopbackState=s})),Me=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrecedencePredicateTransition=void 0;var i=ht(),n=nt(),s=mt(),o=class extends i.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 s.SemanticContext.PrecedencePredicate(this.precedence)}toString(){return this.precedence+" >= _p"}};e([n.Override],o.prototype,"serializationType",null),e([n.Override],o.prototype,"isEpsilon",null),e([n.Override],o.prototype,"matches",null),e([n.Override],o.prototype,"toString",null),o=e([r(0,n.NotNull)],o),t.PrecedencePredicateTransition=o})),je=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RangeTransition=void 0;var i=le(),n=nt(),s=ut(),o=class extends s.Transition{constructor(t,e,r){super(t),this.from=e,this.to=r}get serializationType(){return 2}get label(){return i.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)+"'"}};e([n.Override],o.prototype,"serializationType",null),e([n.Override,n.NotNull],o.prototype,"label",null),e([n.Override],o.prototype,"matches",null),e([n.Override,n.NotNull],o.prototype,"toString",null),o=e([r(0,n.NotNull)],o),t.RangeTransition=o})),Ue=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.RuleStartState=void 0;var r=at(),i=lt(),n=nt(),s=class extends r.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return i.ATNStateType.RULE_START}};e([n.Override],s.prototype,"stateType",null),t.RuleStartState=s})),He=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.StarBlockStartState=void 0;var r=lt(),i=pe(),n=nt(),s=class extends i.BlockStartState{get stateType(){return r.ATNStateType.STAR_BLOCK_START}};e([n.Override],s.prototype,"stateType",null),t.StarBlockStartState=s})),Ke=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.StarLoopbackState=void 0;var r=at(),i=lt(),n=nt(),s=class extends r.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return i.ATNStateType.STAR_LOOP_BACK}};e([n.Override],s.prototype,"stateType",null),t.StarLoopbackState=s})),Be=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.TokensStartState=void 0;var r=lt(),i=wt(),n=nt(),s=class extends i.DecisionState{get stateType(){return r.ATNStateType.TOKEN_START}};e([n.Override],s.prototype,"stateType",null),t.TokensStartState=s})),ze=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.UUID=void 0;var e=pt(),r=class{constructor(t,e,r,i){this.data=new Uint32Array(4),this.data[0]=t,this.data[1]=e,this.data[2]=r,this.data[3]=i}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("-"),i=parseInt(e[0],16),n=(parseInt(e[1],16)<<16>>>0)+parseInt(e[2],16),s=(parseInt(e[3],16)<<16>>>0)+parseInt(e[4].substr(0,4),16),o=parseInt(e[4].substr(-8),16);return new r(i,n,s,o)}hashCode(){return e.MurmurHash.hashCode([this.data[0],this.data[1],this.data[2],this.data[3]])}equals(t){return t===this||t instanceof r&&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)}};t.UUID=r})),Ve=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ATNDeserializer=void 0;var i,n,s=ue(),o=_t(),a=ee(),l=ce(),c=lt(),u=he(),h=de(),d=$t(),f=Dt(),_=fe(),y=pe(),g=wt(),m=Gt(),x=_e(),T=le(),v=Yt(),S=ye(),b=ge(),E=me(),N=xe(),A=Te(),R=ve(),C=Se(),O=be(),L=Ee(),w=nt(),I=Xt(),P=ke(),k=De(),D=Fe(),F=Me(),M=xt(),j=je(),U=Ue(),H=Jt(),K=Qt(),B=Wt(),z=He(),V=Ke(),q=qt(),G=Nt(),$=Be(),Y=ze(),W=Zt();(n=i||(i={}))[n.UNICODE_BMP=0]="UNICODE_BMP",n[n.UNICODE_SMP=1]="UNICODE_SMP";var X=class{constructor(t){void 0===t&&(t=l.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;e<t.length;e++)t[e]=t[e]-2&65535;let e=0,r=X.toInt(t[e++]);if(r!==X.SERIALIZED_VERSION){let t=`Could not deserialize ATN with version ${r} (expected ${X.SERIALIZED_VERSION}).`;throw new Error(t)}let i=X.toUUID(t,e);if(e+=8,X.SUPPORTED_UUIDS.findIndex((t=>t.equals(i)))<0){let t=`Could not deserialize ATN with UUID ${i} (expected ${X.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(t)}let n=X.isFeatureSupported(X.ADDED_LEXER_ACTIONS,i),l=X.toInt(t[e++]),p=X.toInt(t[e++]),f=new a.ATN(l,p),g=[],T=[],S=X.toInt(t[e++]);for(let r=0;r<S;r++){let r=X.toInt(t[e++]);if(r===c.ATNStateType.INVALID_TYPE){f.addState(new v.InvalidState);continue}let i=X.toInt(t[e++]);65535===i&&(i=-1);let n=this.stateFactory(r,i);if(r===c.ATNStateType.LOOP_END){let r=X.toInt(t[e++]);g.push([n,r])}else if(n instanceof y.BlockStartState){let r=X.toInt(t[e++]);T.push([n,r])}f.addState(n)}for(let t of g)t[0].loopBackState=f.states[t[1]];for(let t of T)t[0].endState=f.states[t[1]];let E=X.toInt(t[e++]);for(let r=0;r<E;r++){let r=X.toInt(t[e++]);f.states[r].nonGreedy=!0}let N=X.toInt(t[e++]);for(let r=0;r<N;r++){let r=X.toInt(t[e++]);f.states[r].sll=!0}let A=X.toInt(t[e++]);for(let r=0;r<A;r++){let r=X.toInt(t[e++]);f.states[r].isPrecedenceRule=!0}let R=X.toInt(t[e++]);0===f.grammarType&&(f.ruleToTokenType=new Int32Array(R)),f.ruleToStartState=new Array(R);for(let r=0;r<R;r++){let n=X.toInt(t[e++]),s=f.states[n];if(s.leftFactored=0!==X.toInt(t[e++]),f.ruleToStartState[r]=s,0===f.grammarType){let n=X.toInt(t[e++]);if(65535===n&&(n=G.Token.EOF),f.ruleToTokenType[r]=n,!X.isFeatureSupported(X.ADDED_LEXER_ACTIONS,i)){let r=X.toInt(t[e++]);65535===r&&(r=-1)}}}f.ruleToStopState=new Array(R);for(let t of f.states)t instanceof H.RuleStopState&&(f.ruleToStopState[t.ruleIndex]=t,f.ruleToStartState[t.ruleIndex].stopState=t);let C=X.toInt(t[e++]);for(let r=0;r<C;r++){let r=X.toInt(t[e++]);f.modeToStartState.push(f.states[r])}f.modeToDFA=new Array(C);for(let t=0;t<C;t++)f.modeToDFA[t]=new m.DFA(f.modeToStartState[t]);let O=[];e=this.deserializeSets(t,e,O,X.getUnicodeDeserializer(0)),X.isFeatureSupported(X.ADDED_UNICODE_SMP,i)&&(e=this.deserializeSets(t,e,O,X.getUnicodeDeserializer(1)));let w=X.toInt(t[e++]);for(let r=0;r<w;r++){let r=X.toInt(t[e]),i=X.toInt(t[e+1]),n=X.toInt(t[e+2]),s=X.toInt(t[e+3]),o=X.toInt(t[e+4]),a=X.toInt(t[e+5]),l=this.edgeFactory(f,n,r,i,s,o,a,O);f.states[r].addTransition(l),e+=6}let I=new o.Array2DHashSet({hashCode:t=>t.stopState^t.returnState^t.outermostPrecedenceReturn,equals:(t,e)=>t.stopState===e.stopState&&t.returnState===e.returnState&&t.outermostPrecedenceReturn===e.outermostPrecedenceReturn}),P=[];for(let t of f.states){let e=t.ruleIndex>=0&&f.ruleToStartState[t.ruleIndex].leftFactored;for(let r=0;r<t.numberOfTransitions;r++){let i=t.transition(r);if(!(i instanceof K.RuleTransition))continue;let n=i;if(!f.ruleToStartState[n.target.ruleIndex].leftFactored&&e)continue;let s=-1;f.ruleToStartState[n.target.ruleIndex].isPrecedenceRule&&0===n.precedence&&(s=n.target.ruleIndex);let o={stopState:n.target.ruleIndex,returnState:n.followState.stateNumber,outermostPrecedenceReturn:s};I.add(o)&&P.push(o)}}for(let t of P){let e=new x.EpsilonTransition(f.states[t.returnState],t.outermostPrecedenceReturn);f.ruleToStopState[t.stopState].addTransition(e)}for(let t of f.states){if(t instanceof y.BlockStartState){if(void 0===t.endState)throw new Error("IllegalStateException");if(void 0!==t.endState.startState)throw new Error("IllegalStateException");t.endState.startState=t}if(t instanceof D.PlusLoopbackState){let e=t;for(let t=0;t<e.numberOfTransitions;t++){let r=e.transition(t).target;r instanceof k.PlusBlockStartState&&(r.loopBackState=e)}}else if(t instanceof V.StarLoopbackState){let e=t;for(let t=0;t<e.numberOfTransitions;t++){let r=e.transition(t).target;r instanceof q.StarLoopEntryState&&(r.loopBackState=e)}}}let F=X.toInt(t[e++]);for(let r=1;r<=F;r++){let i=X.toInt(t[e++]),n=f.states[i];f.decisionToState.push(n),n.decision=r-1}if(0===f.grammarType)if(n){f.lexerActions=new Array(X.toInt(t[e++]));for(let r=0;r<f.lexerActions.length;r++){let i=X.toInt(t[e++]),n=X.toInt(t[e++]);65535===n&&(n=-1);let s=X.toInt(t[e++]);65535===s&&(s=-1);let o=this.lexerActionFactory(i,n,s);f.lexerActions[r]=o}}else{let t=[];for(let e of f.states)for(let r=0;r<e.numberOfTransitions;r++){let i=e.transition(r);if(!(i instanceof s.ActionTransition))continue;let n=i.ruleIndex,o=i.actionIndex,a=new b.LexerCustomAction(n,o);e.setTransition(r,new s.ActionTransition(i.target,n,t.length,!1)),t.push(a)}f.lexerActions=t}this.markPrecedenceDecisions(f),f.decisionToDFA=new Array(F);for(let t=0;t<F;t++)f.decisionToDFA[t]=new m.DFA(f.decisionToState[t],t);if(this.deserializationOptions.isVerifyATN&&this.verifyATN(f),this.deserializationOptions.isGenerateRuleBypassTransitions&&1===f.grammarType){f.ruleToTokenType=new Int32Array(f.ruleToStartState.length);for(let t=0;t<f.ruleToStartState.length;t++)f.ruleToTokenType[t]=f.maxTokenType+t+1;for(let t=0;t<f.ruleToStartState.length;t++){let e=new h.BasicBlockStartState;e.ruleIndex=t,f.addState(e);let r,i,n=new _.BlockEndState;if(n.ruleIndex=t,f.addState(n),e.endState=n,f.defineDecisionState(e),n.startState=e,f.ruleToStartState[t].isPrecedenceRule){r=void 0;for(let e of f.states){if(e.ruleIndex!==t)continue;if(!(e instanceof q.StarLoopEntryState))continue;let i=e.transition(e.numberOfTransitions-1).target;if(i instanceof L.LoopEndState&&i.epsilonOnlyTransitions&&i.transition(0).target instanceof H.RuleStopState){r=e;break}}if(!r)throw new Error("Couldn't identify final state of the precedence rule prefix section.");i=r.loopBackState.transition(0)}else r=f.ruleToStopState[t];for(let t of f.states)for(let e=0;e<t.numberOfTransitions;e++){let s=t.transition(e);s!==i&&s.target===r&&(s.target=n)}for(;f.ruleToStartState[t].numberOfTransitions>0;){let r=f.ruleToStartState[t].removeTransition(f.ruleToStartState[t].numberOfTransitions-1);e.addTransition(r)}f.ruleToStartState[t].addTransition(new x.EpsilonTransition(e)),n.addTransition(new x.EpsilonTransition(r));let s=new d.BasicState;f.addState(s),s.addTransition(new u.AtomTransition(n,f.ruleToTokenType[t])),e.addTransition(new x.EpsilonTransition(s))}this.deserializationOptions.isVerifyATN&&this.verifyATN(f)}if(this.deserializationOptions.isOptimize){for(;;){let t=0;t+=X.inlineSetRules(f),t+=X.combineChainedEpsilons(f);let e=0===f.grammarType;if(t+=X.optimizeSets(f,e),0===t)break}this.deserializationOptions.isVerifyATN&&this.verifyATN(f)}return X.identifyTailCalls(f),f}deserializeSets(t,e,r,i){let n=X.toInt(t[e++]);for(let s=0;s<n;s++){let n=X.toInt(t[e]);e++;let s=new T.IntervalSet;r.push(s),0!==X.toInt(t[e++])&&s.add(-1);for(let r=0;r<n;r++){let r=i.readUnicode(t,e);e+=i.size;let n=i.readUnicode(t,e);e+=i.size,s.add(r,n)}}return e}markPrecedenceDecisions(t){let e=new Map;for(let r of t.states)if(r instanceof q.StarLoopEntryState&&t.ruleToStartState[r.ruleIndex].isPrecedenceRule){let i=r.transition(r.numberOfTransitions-1).target;i instanceof L.LoopEndState&&i.epsilonOnlyTransitions&&i.transition(0).target instanceof H.RuleStopState&&(e.set(r.ruleIndex,r),r.precedenceRuleDecision=!0,r.precedenceLoopbackStates=new f.BitSet(t.states.length))}for(let r of e)for(let e of t.ruleToStopState[r[0]].getTransitions())1===e.serializationType&&-1===e.outermostPrecedenceReturn&&r[1].precedenceLoopbackStates.set(e.target.stateNumber)}verifyATN(t){for(let e of t.states)if(this.checkCondition(void 0!==e,"ATN states should not be undefined."),e.stateType!==c.ATNStateType.INVALID_TYPE){if(this.checkCondition(e.onlyHasEpsilonTransitions||e.numberOfTransitions<=1),e instanceof k.PlusBlockStartState&&this.checkCondition(void 0!==e.loopBackState),e instanceof q.StarLoopEntryState){let t=e;if(this.checkCondition(void 0!==t.loopBackState),this.checkCondition(2===t.numberOfTransitions),t.transition(0).target instanceof z.StarBlockStartState)this.checkCondition(t.transition(1).target instanceof L.LoopEndState),this.checkCondition(!t.nonGreedy);else{if(!(t.transition(0).target instanceof L.LoopEndState))throw new Error("IllegalStateException");this.checkCondition(t.transition(1).target instanceof z.StarBlockStartState),this.checkCondition(t.nonGreedy)}}if(e instanceof V.StarLoopbackState&&(this.checkCondition(1===e.numberOfTransitions),this.checkCondition(e.transition(0).target instanceof q.StarLoopEntryState)),e instanceof L.LoopEndState&&this.checkCondition(void 0!==e.loopBackState),e instanceof U.RuleStartState&&this.checkCondition(void 0!==e.stopState),e instanceof y.BlockStartState&&this.checkCondition(void 0!==e.endState),e instanceof _.BlockEndState&&this.checkCondition(void 0!==e.startState),e instanceof g.DecisionState){let t=e;this.checkCondition(t.numberOfTransitions<=1||t.decision>=0)}else this.checkCondition(e.numberOfTransitions<=1||e instanceof H.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;e<t.ruleToStartState.length;e++){let i=t.ruleToStartState[e];for(;i.onlyHasEpsilonTransitions&&1===i.numberOfOptimizedTransitions&&1===i.getOptimizedTransition(0).serializationType;)i=i.getOptimizedTransition(0).target;if(1!==i.numberOfOptimizedTransitions)continue;let n=i.getOptimizedTransition(0),s=n.target;if(!n.isEpsilon&&s.onlyHasEpsilonTransitions&&1===s.numberOfOptimizedTransitions&&s.getOptimizedTransition(0).target instanceof H.RuleStopState)switch(n.serializationType){case 5:case 2:case 7:r[e]=n;break;default:continue}}for(let i of t.states){if(i.ruleIndex<0)continue;let n;for(let s=0;s<i.numberOfOptimizedTransitions;s++){let o=i.getOptimizedTransition(s);if(!(o instanceof K.RuleTransition)){void 0!==n&&n.push(o);continue}let a=o,l=r[a.target.ruleIndex];if(void 0===l){void 0!==n&&n.push(o);continue}if(void 0===n){n=[];for(let t=0;t<s;t++)n.push(i.getOptimizedTransition(s))}e++;let c=a.followState,h=new d.BasicState;switch(h.setRuleIndex(c.ruleIndex),t.addState(h),n.push(new x.EpsilonTransition(h)),l.serializationType){case 5:h.addTransition(new u.AtomTransition(c,l._label));break;case 2:h.addTransition(new j.RangeTransition(c,l.from,l.to));break;case 7:h.addTransition(new B.SetTransition(c,l.label));break;default:throw new Error("UnsupportedOperationException")}}if(void 0!==n){if(i.isOptimized)for(;i.numberOfOptimizedTransitions>0;)i.removeOptimizedTransition(i.numberOfOptimizedTransitions-1);for(let t of n)i.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 H.RuleStopState)continue;let t;t:for(let i=0;i<r.numberOfOptimizedTransitions;i++){let n=r.getOptimizedTransition(i),s=n.target;if(1===n.serializationType&&-1===n.outermostPrecedenceReturn&&s.stateType===c.ATNStateType.BASIC&&s.onlyHasEpsilonTransitions){for(let e=0;e<s.numberOfOptimizedTransitions;e++)if(1!==s.getOptimizedTransition(e).serializationType||-1!==s.getOptimizedTransition(e).outermostPrecedenceReturn){void 0!==t&&t.push(n);continue t}if(e++,void 0===t){t=[];for(let e=0;e<i;e++)t.push(r.getOptimizedTransition(e))}for(let e=0;e<s.numberOfOptimizedTransitions;e++){let r=s.getOptimizedTransition(e).target;t.push(new x.EpsilonTransition(r))}}else void 0!==t&&t.push(n)}if(void 0!==t){if(r.isOptimized)for(;r.numberOfOptimizedTransitions>0;)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,i=t.decisionToState;for(let e of i){let i=new T.IntervalSet;for(let t=0;t<e.numberOfOptimizedTransitions;t++){let r=e.getOptimizedTransition(t);if(!(r instanceof x.EpsilonTransition))continue;if(1!==r.target.numberOfOptimizedTransitions)continue;let n=r.target.getOptimizedTransition(0);n.target instanceof _.BlockEndState&&(n instanceof I.NotSetTransition||(n instanceof u.AtomTransition||n instanceof j.RangeTransition||n instanceof B.SetTransition)&&i.add(t))}if(i.size<=1)continue;let n=[];for(let t=0;t<e.numberOfOptimizedTransitions;t++)i.contains(t)||n.push(e.getOptimizedTransition(t));let s,o=e.getOptimizedTransition(i.minElement).target.getOptimizedTransition(0).target,a=new T.IntervalSet;for(let t of i.intervals)for(let r=t.a;r<=t.b;r++){let t=e.getOptimizedTransition(r).target.getOptimizedTransition(0);if(t instanceof I.NotSetTransition)throw new Error("Not yet implemented.");a.addAll(t.label)}if(1===a.intervals.length)if(1===a.size)s=new u.AtomTransition(o,a.minElement);else{let t=a.intervals[0];s=new j.RangeTransition(o,t.a,t.b)}else s=new B.SetTransition(o,a);let l=new d.BasicState;if(l.setRuleIndex(e.ruleIndex),t.addState(l),l.addTransition(s),n.push(new x.EpsilonTransition(l)),r+=e.numberOfOptimizedTransitions-n.length,e.isOptimized)for(;e.numberOfOptimizedTransitions>0;)e.removeOptimizedTransition(e.numberOfOptimizedTransitions-1);for(let t of n)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<e.numberOfTransitions;r++){let i=e.transition(r);i instanceof K.RuleTransition&&(i.tailCall=this.testTailCall(t,i,!1),i.optimizedTailCall=this.testTailCall(t,i,!0))}if(e.isOptimized)for(let r=0;r<e.numberOfOptimizedTransitions;r++){let i=e.getOptimizedTransition(r);i instanceof K.RuleTransition&&(i.tailCall=this.testTailCall(t,i,!1),i.optimizedTailCall=this.testTailCall(t,i,!0))}}}static testTailCall(t,e,r){if(!r&&e.tailCall)return!0;if(r&&e.optimizedTailCall)return!0;let i=new f.BitSet(t.states.length),n=[];for(n.push(e.followState);;){let t=n.pop();if(!t)break;if(i.get(t.stateNumber))continue;if(t instanceof H.RuleStopState)continue;if(!t.onlyHasEpsilonTransitions)return!1;let e=r?t.numberOfOptimizedTransitions:t.numberOfTransitions;for(let i=0;i<e;i++){let e=r?t.getOptimizedTransition(i):t.transition(i);if(1!==e.serializationType)return!1;n.push(e.target)}}return!0}static toInt(t){return t}static toInt32(t,e){return(t[e]|t[e+1]<<16)>>>0}static toUUID(t,e){let r=X.toInt32(t,e),i=X.toInt32(t,e+2),n=X.toInt32(t,e+4),s=X.toInt32(t,e+6);return new Y.UUID(s,n,i,r)}edgeFactory(t,e,r,i,n,o,a,l){let c=t.states[i];switch(e){case 1:return new x.EpsilonTransition(c);case 2:return 0!==a?new j.RangeTransition(c,G.Token.EOF,o):new j.RangeTransition(c,n,o);case 3:return new K.RuleTransition(t.states[n],o,a,c);case 4:return new M.PredicateTransition(c,n,o,0!==a);case 10:return new F.PrecedencePredicateTransition(c,n);case 5:return 0!==a?new u.AtomTransition(c,G.Token.EOF):new u.AtomTransition(c,n);case 6:return new s.ActionTransition(c,n,o,0!==a);case 7:return new B.SetTransition(c,l[n]);case 8:return new I.NotSetTransition(c,l[n]);case 9:return new W.WildcardTransition(c)}throw new Error("The specified transition type is not valid.")}stateFactory(t,e){let r;switch(t){case c.ATNStateType.INVALID_TYPE:return new v.InvalidState;case c.ATNStateType.BASIC:r=new d.BasicState;break;case c.ATNStateType.RULE_START:r=new U.RuleStartState;break;case c.ATNStateType.BLOCK_START:r=new h.BasicBlockStartState;break;case c.ATNStateType.PLUS_BLOCK_START:r=new k.PlusBlockStartState;break;case c.ATNStateType.STAR_BLOCK_START:r=new z.StarBlockStartState;break;case c.ATNStateType.TOKEN_START:r=new $.TokensStartState;break;case c.ATNStateType.RULE_STOP:r=new H.RuleStopState;break;case c.ATNStateType.BLOCK_END:r=new _.BlockEndState;break;case c.ATNStateType.STAR_LOOP_BACK:r=new V.StarLoopbackState;break;case c.ATNStateType.STAR_LOOP_ENTRY:r=new q.StarLoopEntryState;break;case c.ATNStateType.PLUS_LOOP_BACK:r=new D.PlusLoopbackState;break;case c.ATNStateType.LOOP_END:r=new L.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 S.LexerChannelAction(e);case 1:return new b.LexerCustomAction(e,r);case 2:return new E.LexerModeAction(e);case 3:return N.LexerMoreAction.INSTANCE;case 4:return A.LexerPopModeAction.INSTANCE;case 5:return new R.LexerPushModeAction(e);case 6:return C.LexerSkipAction.INSTANCE;case 7:return new O.LexerTypeAction(e);default:throw new Error(`The specified lexer action type ${t} is not valid.`)}}};X.BASE_SERIALIZED_UUID=Y.UUID.fromString("E4178468-DF95-44D0-AD87-F22A5D5FB6D3"),X.ADDED_LEXER_ACTIONS=Y.UUID.fromString("AB35191A-1603-487E-B75A-479B831EAF6D"),X.ADDED_UNICODE_SMP=Y.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,e([w.NotNull],X.prototype,"deserializationOptions",void 0),e([r(0,w.NotNull)],X.prototype,"deserialize",null),e([r(0,w.NotNull)],X.prototype,"markPrecedenceDecisions",null),e([w.NotNull,r(0,w.NotNull)],X.prototype,"edgeFactory",null),t.ATNDeserializer=X})),qe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParseInfo=void 0;var i=nt(),n=class{constructor(t){this.atnSimulator=t}getDecisionInfo(){return this.atnSimulator.getDecisionInfo()}getLLDecisions(){let t=this.atnSimulator.getDecisionInfo(),e=[];for(let r=0;r<t.length;r++)t[r].LL_Fallback>0&&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<e.length;r++)t+=this.getDFASize(r);return t}}};e([i.NotNull],n.prototype,"getDecisionInfo",null),e([i.NotNull],n.prototype,"getLLDecisions",null),n=e([r(0,i.NotNull)],n),t.ParseInfo=n})),Ge=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyParserErrorListener=void 0;var r=Ht(),i=nt(),n=class extends r.ProxyErrorListener{constructor(t){super(t)}reportAmbiguity(t,e,r,i,n,s,o){this.getDelegates().forEach((a=>{a.reportAmbiguity&&a.reportAmbiguity(t,e,r,i,n,s,o)}))}reportAttemptingFullContext(t,e,r,i,n,s){this.getDelegates().forEach((o=>{o.reportAttemptingFullContext&&o.reportAttemptingFullContext(t,e,r,i,n,s)}))}reportContextSensitivity(t,e,r,i,n,s){this.getDelegates().forEach((o=>{o.reportContextSensitivity&&o.reportContextSensitivity(t,e,r,i,n,s)}))}};e([i.Override],n.prototype,"reportAmbiguity",null),e([i.Override],n.prototype,"reportAttemptingFullContext",null),e([i.Override],n.prototype,"reportContextSensitivity",null),t.ProxyParserErrorListener=n})),$e=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.isSupplementaryCodePoint=t.isLowSurrogate=t.isHighSurrogate=void 0,t.isHighSurrogate=function(t){return t>=55296&&t<=56319},t.isLowSurrogate=function(t){return t>=56320&&t<=57343},t.isSupplementaryCodePoint=function(t){return t>=65536}})),Ye=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.CodePointBuffer=void 0;var e=it(),r=$e(),i=class{constructor(t,e){this.buffer=t,this._position=0,this._size=e}static withArray(t){return new i(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 i.Builder(t)}};t.CodePointBuffer=i,function(t){let i;var n;(n=i||(i={}))[n.BYTE=0]="BYTE",n[n.CHAR=1]="CHAR",n[n.INT=2]="INT";class s{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<t){let e=s.roundUpToNextPowerOfTwo(this.buffer.length+t),r=new Uint8Array(e);r.set(this.buffer.subarray(0,this.position),0),this.buffer=r}break;case 1:if(this.buffer.length-this.position<t){let e=s.roundUpToNextPowerOfTwo(this.buffer.length+t),r=new Uint16Array(e);r.set(this.buffer.subarray(0,this.position),0),this.buffer=r}break;case 2:if(this.buffer.length-this.position<t){let e=s.roundUpToNextPowerOfTwo(this.buffer.length+t),r=new Int32Array(e);r.set(this.buffer.subarray(0,this.position),0),this.buffer=r}}}append(t){this.ensureRemaining(t.length),this.appendArray(t)}appendArray(t){switch(this.type){case 0:this.appendArrayByte(t);break;case 1:this.appendArrayChar(t);break;case 2:this.appendArrayInt(t)}}appendArrayByte(t){e(-1===this.prevHighSurrogate);let i=t,n=0,s=t.length,o=this.buffer,a=this.position;for(;n<s;){let e=i[n];if(!(e<=255))return t=t.subarray(n,s),this.position=a,r.isHighSurrogate(e)?(this.byteToIntBuffer(t.length),void this.appendArrayInt(t)):(this.byteToCharBuffer(t.length),void this.appendArrayChar(t));o[a]=e,n++,a++}this.position=a}appendArrayChar(t){e(-1===this.prevHighSurrogate);let i=t,n=0,s=t.length,o=this.buffer,a=this.position;for(;n<s;){let e=i[n];if(r.isHighSurrogate(e))return t=t.subarray(n,s),this.position=a,this.charToIntBuffer(t.length),void this.appendArrayInt(t);o[a]=e,n++,a++}this.position=a}appendArrayInt(t){let e=t,i=0,n=t.length,s=this.buffer,o=this.position;for(;i<n;){let t=e[i];i++,-1!==this.prevHighSurrogate?r.isLowSurrogate(t)?(s[o]=String.fromCharCode(this.prevHighSurrogate,t).codePointAt(0),o++,this.prevHighSurrogate=-1):(s[o]=this.prevHighSurrogate,o++,r.isHighSurrogate(t)?this.prevHighSurrogate=t:(s[o]=t,o++,this.prevHighSurrogate=-1)):r.isHighSurrogate(t)?this.prevHighSurrogate=t:(s[o]=t,o++)}-1!==this.prevHighSurrogate&&(s[o]=this.prevHighSurrogate,o++),this.position=o}byteToCharBuffer(t){let e=new Uint16Array(Math.max(this.position+t,this.buffer.length>>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=s}(i=t.CodePointBuffer||(t.CodePointBuffer={}))})),We=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.CodePointCharStream=void 0;var r=it(),i=st(),n=Et(),s=nt(),o=class{constructor(t,e,i,n){r(0===e),this._array=t,this._size=i,this._name=n,this._position=0}get internalStorage(){return this._array}static fromBuffer(t,e){return void 0!==e&&0!==e.length||(e=i.IntStream.UNKNOWN_SOURCE_NAME),new o(t.array(),t.position,t.remaining,e)}consume(){if(this._size-this._position==0)throw r(this.LA(1)===i.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(n.Interval.of(0,this.size-1))}LA(t){let e;switch(Math.sign(t)){case-1:return e=this.index+t,e<0?i.IntStream.EOF:this._array[e];case 0:return 0;case 1:return e=this.index+t-1,e>=this.size?i.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)))}};e([s.Override],o.prototype,"consume",null),e([s.Override],o.prototype,"index",null),e([s.Override],o.prototype,"size",null),e([s.Override],o.prototype,"mark",null),e([s.Override],o.prototype,"release",null),e([s.Override],o.prototype,"seek",null),e([s.Override],o.prototype,"sourceName",null),e([s.Override],o.prototype,"toString",null),e([s.Override],o.prototype,"LA",null),e([s.Override],o.prototype,"getText",null),t.CodePointCharStream=o})),Xe=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.CharStreams=void 0;var e=Ye(),r=We(),i=st();(t.CharStreams||(t.CharStreams={})).fromString=function(t,n){void 0!==n&&0!==n.length||(n=i.IntStream.UNKNOWN_SOURCE_NAME);let s=e.CodePointBuffer.builder(t.length),o=new Uint16Array(t.length);for(let e=0;e<t.length;e++)o[e]=t.charCodeAt(e);return s.append(o),r.CodePointCharStream.fromBuffer(s.build(),n)}})),Je=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferedTokenStream=void 0;var i=it(),n=At(),s=Et(),o=ae(),a=nt(),l=Nt(),c=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<this.tokens.length-1:this.p<this.tokens.length),!t&&this.LA(1)===l.Token.EOF)throw new Error("cannot consume EOF");this.sync(this.p+1)&&(this.p=this.adjustSeekIndex(this.p+1))}sync(t){i(t>=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<t;e++){let t=this.tokenSource.nextToken();if(this.isWritableToken(t)&&(t.tokenIndex=this.tokens.length),this.tokens.push(t),t.type===l.Token.EOF)return this.fetchedEOF=!0,e+1}return t}get(t){if(t<0||t>=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 i=t;i<=e;i++){let t=this.tokens[i];if(t.type===l.Token.EOF)break;r.push(t)}return r}LA(t){let e=this.LT(t);return e?e.type:l.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 i(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,s=this.tokens.slice(t,e+1);return s=s.filter((t=>n.has(t.type))),s}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===l.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===l.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,i=this.nextTokenOnChannel(t+1,o.Lexer.DEFAULT_TOKEN_CHANNEL),n=t+1;return r=-1===i?this.size-1:i,this.filterForChannel(n,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,o.Lexer.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return[];let i=r+1,n=t-1;return this.filterForChannel(i,n,e)}filterForChannel(t,e,r){let i=new Array;for(let n=t;n<=e;n++){let t=this.tokens[n];-1===r?t.channel!==o.Lexer.DEFAULT_TOKEN_CHANNEL&&i.push(t):t.channel===r&&i.push(t)}return i}get sourceName(){return this.tokenSource.sourceName}getText(t){void 0===t?t=s.Interval.of(0,this.size-1):t instanceof s.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 i="";for(let t=e;t<=r;t++){let e=this.tokens[t];if(e.type===l.Token.EOF)break;i+=e.text}return i.toString()}getTextFromRange(t,e){return this.isToken(t)&&this.isToken(e)?this.getText(s.Interval.of(t.tokenIndex,e.tokenIndex)):""}fill(){for(this.lazyInit();;)if(this.fetch(1e3)<1e3)return}isWritableToken(t){return t instanceof n.CommonToken}isToken(t){return t instanceof n.CommonToken}};e([a.NotNull],c.prototype,"_tokenSource",void 0),e([a.Override],c.prototype,"tokenSource",null),e([a.Override],c.prototype,"index",null),e([a.Override],c.prototype,"mark",null),e([a.Override],c.prototype,"release",null),e([a.Override],c.prototype,"seek",null),e([a.Override],c.prototype,"size",null),e([a.Override],c.prototype,"consume",null),e([a.Override],c.prototype,"get",null),e([a.Override],c.prototype,"LA",null),e([a.NotNull,a.Override],c.prototype,"LT",null),e([a.Override],c.prototype,"sourceName",null),e([a.NotNull,a.Override],c.prototype,"getText",null),e([a.NotNull,a.Override],c.prototype,"getTextFromRange",null),c=e([r(0,a.NotNull)],c),t.BufferedTokenStream=c})),Qe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommonTokenStream=void 0;var i=Je(),n=nt(),s=Nt(),o=class extends i.BufferedTokenStream{constructor(t,e=s.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<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),r++;return this.tokens[e]}getNumberOfOnChannelTokens(){let t=0;this.fill();for(let e of this.tokens)if(e.channel===this.channel&&t++,e.type===s.Token.EOF)break;return t}};e([n.Override],o.prototype,"adjustSeekIndex",null),e([n.Override],o.prototype,"tryLB",null),e([n.Override],o.prototype,"tryLT",null),o=e([r(0,n.NotNull)],o),t.CommonTokenStream=o})),Ze=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ListTokenSource=void 0;var i=Rt(),n=nt(),s=Nt(),o=class{constructor(t,e){if(this.i=0,this._factory=i.CommonTokenFactory.DEFAULT,null==t)throw new Error("tokens cannot be null");this.tokens=t,this._sourceName=e}get charPositionInLine(){if(this.i<this.tokens.length)return this.tokens[this.i].charPositionInLine;if(null!=this.eofToken)return this.eofToken.charPositionInLine;if(this.tokens.length>0){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},s.Token.EOF,"EOF",s.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===s.Token.EOF&&(this.eofToken=t),this.i++,t}get line(){if(this.i<this.tokens.length)return this.tokens[this.i].line;if(null!=this.eofToken)return this.eofToken.line;if(this.tokens.length>0){let t=this.tokens[this.tokens.length-1],e=t.line,r=t.text;if(null!=r)for(let t=0;t<r.length;t++)"\n"===r.charAt(t)&&e++;return e}return 1}get inputStream(){return this.i<this.tokens.length?this.tokens[this.i].inputStream:null!=this.eofToken?this.eofToken.inputStream:this.tokens.length>0?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}};e([n.Override],o.prototype,"charPositionInLine",null),e([n.Override],o.prototype,"nextToken",null),e([n.Override],o.prototype,"line",null),e([n.Override],o.prototype,"inputStream",null),e([n.Override],o.prototype,"sourceName",null),e([n.Override,n.NotNull,r(0,n.NotNull)],o.prototype,"tokenFactory",null),o=e([r(0,n.NotNull)],o),t.ListTokenSource=o})),tr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.MultiMap=void 0;var e=class 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}};t.MultiMap=e})),er=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.ParseCancellationException=void 0;var e=class extends Error{constructor(t){super(t.message),this.cause=t,this.stack=t.stack}getCause(){return this.cause}};t.ParseCancellationException=e})),rr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.InterpreterRuleContext=void 0;var r=nt(),i=we(),n=class extends i.ParserRuleContext{constructor(t,e,r){void 0!==r?super(e,r):super(),this._ruleIndex=t}get ruleIndex(){return this._ruleIndex}};e([r.Override],n.prototype,"ruleIndex",null),t.InterpreterRuleContext=n})),ir=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParserInterpreter=void 0;var i=at(),n=lt(),s=Dt(),o=Tt(),a=vt(),l=rr(),c=Ee(),u=nt(),h=nt(),d=Lr(),f=ke(),_=ct(),y=qt(),g=Nt(),m=class t extends d.Parser{constructor(e,r,i,n,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 f.ParserATNSimulator(this._atn,this)}else{this._grammarFileName=e,this._atn=n,this._ruleNames=i.slice(0),this._vocabulary=r,this.pushRecursionContextStates=new s.BitSet(n.states.length);for(let t of n.states)t instanceof y.StarLoopEntryState&&t.precedenceRuleDecision&&this.pushRecursionContextStates.set(t.stateNumber);this.interpreter=new f.ParserATNSimulator(n,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,i.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===n.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 _.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,i){this._parentContextStack.push([this._ctx,t.invokingState]),super.enterRecursionRule(t,e,r,i)}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 c.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),g.Token.MIN_USER_TOKEN_TYPE,65535)||this.recoverInline(),this.matchWildcard();break;case 9:this.matchWildcard();break;case 3:let e=r.target,i=e.ruleIndex,n=this.createInterpreterRuleContext(this._ctx,t.stateNumber,i);e.isPrecedenceRule?this.enterRecursionRule(n,e.stateNumber,i,r.precedence):this.enterRule(n,r.target.stateNumber,i);break;case 4:let s=r;if(!this.sempred(this._ctx,s.ruleIndex,s.predIndex))throw new o.FailedPredicateException(this);break;case 6:let a=r;this.action(this._ctx,a.ruleIndex,a.actionIndex);break;case 10:if(!this.precpred(this._ctx,r.precedence)){let t=r.precedence;throw new o.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 l.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,i={source:r,stream:void 0!==r?r.inputStream:void 0};if(t instanceof a.InputMismatchException){let r=t.expectedTokens;if(void 0===r)throw new Error("Expected the exception to provide expected tokens");let n=g.Token.INVALID_TYPE;r.isNil||(n=r.minElement);let s=this.tokenFactory.create(i,n,e.text,g.Token.DEFAULT_CHANNEL,-1,-1,e.line,e.charPositionInLine);this._ctx.addErrorNode(this.createErrorNode(this._ctx,s))}else{e.tokenSource;let t=this.tokenFactory.create(i,g.Token.INVALID_TYPE,e.text,g.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}};e([u.NotNull],m.prototype,"_vocabulary",void 0),e([h.Override],m.prototype,"reset",null),e([h.Override],m.prototype,"atn",null),e([h.Override],m.prototype,"vocabulary",null),e([h.Override],m.prototype,"ruleNames",null),e([h.Override],m.prototype,"grammarFileName",null),e([h.Override],m.prototype,"enterRecursionRule",null),m=e([r(1,u.NotNull)],m),t.ParserInterpreter=m})),nr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParseTreeMatch=void 0;var i=nt(),n=class{constructor(t,e,r,i){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=i}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`}};e([i.NotNull,r(0,i.NotNull)],n.prototype,"getAll",null),e([i.NotNull],n.prototype,"labels",null),e([i.NotNull],n.prototype,"pattern",null),e([i.NotNull],n.prototype,"tree",null),e([i.Override],n.prototype,"toString",null),n=e([r(0,i.NotNull),r(1,i.NotNull),r(2,i.NotNull)],n),t.ParseTreeMatch=n})),sr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.XPathLexer=void 0;var e=Ve(),r=ae(),i=oe(),n=Bt(),s=gt(),o=class extends r.Lexer{constructor(t){super(t),this._interp=new i.LexerATNSimulator(o._ATN,this)}get vocabulary(){return o.VOCABULARY}get grammarFileName(){return"XPathLexer.g4"}get ruleNames(){return o.ruleNames}get serializedATN(){return o._serializedATN}get channelNames(){return o.channelNames}get modeNames(){return o.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=o.TOKEN_REF:this.type=o.RULE_REF}}static get _ATN(){return o.__ATN||(o.__ATN=(new e.ATNDeserializer).deserialize(s.toCharArray(o._serializedATN))),o.__ATN}};t.XPathLexer=o,o.TOKEN_REF=1,o.RULE_REF=2,o.ANYWHERE=3,o.ROOT=4,o.WILDCARD=5,o.BANG=6,o.ID=7,o.STRING=8,o.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],o.modeNames=["DEFAULT_MODE"],o.ruleNames=["ANYWHERE","ROOT","WILDCARD","BANG","ID","NameChar","NameStartChar","STRING"],o._LITERAL_NAMES=[void 0,void 0,void 0,"'//'","'/'","'*'","'!'"],o._SYMBOLIC_NAMES=[void 0,"TOKEN_REF","RULE_REF","ANYWHERE","ROOT","WILDCARD","BANG","ID","STRING"],o.VOCABULARY=new n.VocabularyImpl(o._LITERAL_NAMES,o._SYMBOLIC_NAMES,[]),o._serializedATNSegments=2,o._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_üłŶʂʞʢ˒̡̲̂͌͒ͷΟυϊϑϓϗЂҟҲӕӚӽԂԩԲեܸ݂ݗݢݩࠂࠇࠊࠊࠌ࠷࠹࠺࠾࠾ࡁࡗࡢࡸࢂࢠࣶࣴࣷंगढऻংহীুਂਂਕਗਙਛਵંઞૂૉો૦ଂଷୂୗୢ୴ஂஓంొಂೂစ္ႅႱგცᄅᄨᅒᅴᅸᅸᆅᆴᇃᇆᇜᇜᇞᇞሂሓሕርኂኈኊኊኌኑኟኡኪኲዠጇጎጒጕጪጬጲጴጵጷጻጿጿፒፒ፟፣ᐂᐶᑉᑌᒂᒱᓆᓇᓉᓉᖂᖰᗚᗝᘂᘱᙆᙆᚂᚬᜂᢢᣡᤁᤁ᫂ᰂᰊᰌᰰ᱂᱂ᱴᲑ ⎛␂⑰⒂╅。㐰䐂䙈栂樺橂橠櫒櫯欂欱歂歅步歹歿殑漂潆潒潒澕澡濢濢瀂蟮蠂諴뀂뀃밂뱬뱲뱾벂벊벒벛퐂푖푘풞풠풡풤풤풧풨풫풮풰풻풽풽풿퓅퓇픇픉플픏픖픘픞픠픻픽핀핂핆핈핈',o._serializedATNSegment1="핌핒핔횧횪훂후훜훞훼훾휖휘휶휸흐흒흰흲힊힌ퟄퟆퟍꛘ꜂뜶띂렟렢캣﨟1\t\v\t\v\r%')111,\b#\n \b\r\" !!#\" #$\b$\f%&\t&'(\t()-)*,\v+*,/-.-+.0/-01)1 -",o._serializedATN=s.join([o._serializedATNSegment0,o._serializedATNSegment1],"")})),or=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.XPathLexerErrorListener=void 0;var r=nt(),i=class{syntaxError(t,e,r,i,n,s){}};e([r.Override],i.prototype,"syntaxError",null),t.XPathLexerErrorListener=i})),ar=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.XPathElement=void 0;var r=nt(),i=class{constructor(t){this.nodeName=t,this.invert=!1}toString(){let t=this.invert?"!":"";return Object.constructor.name+"["+t+this.nodeName+"]"}};e([r.Override],i.prototype,"toString",null),t.XPathElement=i})),lr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.XPathRuleAnywhereElement=void 0;var r=nt(),i=Oe(),n=ar(),s=class extends n.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){return i.Trees.findAllRuleNodes(t,this.ruleIndex)}};e([r.Override],s.prototype,"evaluate",null),t.XPathRuleAnywhereElement=s})),cr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.XPathRuleElement=void 0;var r=we(),i=nt(),n=Oe(),s=ar(),o=class extends s.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){let e=[];for(let i of n.Trees.getChildren(t))i instanceof r.ParserRuleContext&&(i.ruleIndex===this.ruleIndex&&!this.invert||i.ruleIndex!==this.ruleIndex&&this.invert)&&e.push(i);return e}};e([i.Override],o.prototype,"evaluate",null),t.XPathRuleElement=o})),ur=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.XPathTokenAnywhereElement=void 0;var r=nt(),i=Oe(),n=ar(),s=class extends n.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){return i.Trees.findAllTokenNodes(t,this.tokenType)}};e([r.Override],s.prototype,"evaluate",null),t.XPathTokenAnywhereElement=s})),hr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.XPathTokenElement=void 0;var r=nt(),i=Ae(),n=Oe(),s=ar(),o=class extends s.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){let e=[];for(let r of n.Trees.getChildren(t))r instanceof i.TerminalNode&&(r.symbol.type===this.tokenType&&!this.invert||r.symbol.type!==this.tokenType&&this.invert)&&e.push(r);return e}};e([r.Override],o.prototype,"evaluate",null),t.XPathTokenElement=o})),pr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.XPathWildcardAnywhereElement=void 0;var r=nt(),i=Oe(),n=fr(),s=ar(),o=class extends s.XPathElement{constructor(){super(n.XPath.WILDCARD)}evaluate(t){return this.invert?[]:i.Trees.getDescendants(t)}};e([r.Override],o.prototype,"evaluate",null),t.XPathWildcardAnywhereElement=o})),dr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.XPathWildcardElement=void 0;var r=nt(),i=Oe(),n=fr(),s=ar(),o=class extends s.XPathElement{constructor(){super(n.XPath.WILDCARD)}evaluate(t){let e=[];if(this.invert)return e;for(let r of i.Trees.getChildren(t))e.push(r);return e}};e([r.Override],o.prototype,"evaluate",null),t.XPathWildcardElement=o})),fr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.XPath=void 0;var e=Xe(),r=Qe(),i=ne(),n=we(),s=Nt(),o=sr(),a=or(),l=lr(),c=cr(),u=ur(),h=hr(),d=pr(),f=dr(),_=class{constructor(t,e){this.parser=t,this.path=e,this.elements=this.split(e)}split(t){let n=new o.XPathLexer(e.CharStreams.fromString(t));n.recover=t=>{throw t},n.removeErrorListeners(),n.addErrorListener(new a.XPathLexerErrorListener);let l=new r.CommonTokenStream(n);try{l.fill()}catch(e){if(e instanceof i.LexerNoViableAltException){let r="Invalid tokens or characters at index "+n.charPositionInLine+" in path '"+t+"' -- "+e.message;throw new RangeError(r)}throw e}let c=l.getTokens(),u=[],h=c.length,p=0;t:for(;p<h;){let t,e=c[p];switch(e.type){case o.XPathLexer.ROOT:case o.XPathLexer.ANYWHERE:let r=e.type===o.XPathLexer.ANYWHERE;p++,t=c[p];let i=t.type===o.XPathLexer.BANG;i&&(p++,t=c[p]);let n=this.getXPathElement(t,r);n.invert=i,u.push(n),p++;break;case o.XPathLexer.TOKEN_REF:case o.XPathLexer.RULE_REF:case o.XPathLexer.WILDCARD:u.push(this.getXPathElement(e,!1)),p++;break;case s.Token.EOF:break t;default:throw new Error("Unknowth path element "+e)}}return u}getXPathElement(t,e){if(t.type===s.Token.EOF)throw new Error("Missing path element at end of path");let r=t.text;if(null==r)throw new Error("Expected wordToken to have text content.");let i=this.parser.getTokenType(r),n=this.parser.getRuleIndex(r);switch(t.type){case o.XPathLexer.WILDCARD:return e?new d.XPathWildcardAnywhereElement:new f.XPathWildcardElement;case o.XPathLexer.TOKEN_REF:case o.XPathLexer.STRING:if(i===s.Token.INVALID_TYPE)throw new Error(r+" at index "+t.startIndex+" isn't a valid token name");return e?new u.XPathTokenAnywhereElement(r,i):new h.XPathTokenElement(r,i);default:if(-1===n)throw new Error(r+" at index "+t.startIndex+" isn't a valid rule name");return e?new l.XPathRuleAnywhereElement(r,n):new c.XPathRuleElement(r,n)}}static findAll(t,e,r){return new _(r,e).evaluate(t)}evaluate(t){let e=new n.ParserRuleContext;e.addChild(t);let r=new Set([e]),i=0;for(;i<this.elements.length;){let t=new Set;for(let e of r)e.childCount>0&&this.elements[i].evaluate(e).forEach(t.add,t);i++,r=t}return r}};t.XPath=_,_.WILDCARD="*",_.NOT="!"})),_r=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParseTreePattern=void 0;var i=nt(),n=fr(),s=class{constructor(t,e,r,i){this._matcher=t,this._patternRuleIndex=r,this._pattern=e,this._patternTree=i}match(t){return this._matcher.match(t,this)}matches(t){return this._matcher.match(t,this).succeeded}findAll(t,e){let r=n.XPath.findAll(t,e,this._matcher.parser),i=[];for(let t of r){let e=this.match(t);e.succeeded&&i.push(e)}return i}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};e([i.NotNull],s.prototype,"_pattern",void 0),e([i.NotNull],s.prototype,"_patternTree",void 0),e([i.NotNull],s.prototype,"_matcher",void 0),e([i.NotNull,r(0,i.NotNull)],s.prototype,"match",null),e([r(0,i.NotNull)],s.prototype,"matches",null),e([i.NotNull,r(0,i.NotNull),r(1,i.NotNull)],s.prototype,"findAll",null),e([i.NotNull],s.prototype,"matcher",null),e([i.NotNull],s.prototype,"pattern",null),e([i.NotNull],s.prototype,"patternTree",null),s=e([r(0,i.NotNull),r(1,i.NotNull),r(3,i.NotNull)],s),t.ParseTreePattern=s})),yr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RuleTagToken=void 0;var i=nt(),n=Nt(),s=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 n.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}};e([i.NotNull],s.prototype,"ruleName",null),e([i.Override],s.prototype,"channel",null),e([i.Override],s.prototype,"text",null),e([i.Override],s.prototype,"type",null),e([i.Override],s.prototype,"line",null),e([i.Override],s.prototype,"charPositionInLine",null),e([i.Override],s.prototype,"tokenIndex",null),e([i.Override],s.prototype,"startIndex",null),e([i.Override],s.prototype,"stopIndex",null),e([i.Override],s.prototype,"tokenSource",null),e([i.Override],s.prototype,"inputStream",null),e([i.Override],s.prototype,"toString",null),s=e([r(0,i.NotNull)],s),t.RuleTagToken=s})),gr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.Chunk=void 0,t.Chunk=class{}})),mr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.TagChunk=void 0;var r=gr(),i=nt(),n=class extends r.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}};e([i.NotNull],n.prototype,"tag",null),e([i.Override],n.prototype,"toString",null),t.TagChunk=n})),xr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextChunk=void 0;var i=gr(),n=nt(),s=class extends i.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+"'"}};e([n.NotNull],s.prototype,"_text",void 0),e([n.NotNull],s.prototype,"text",null),e([n.Override],s.prototype,"toString",null),s=e([r(0,n.NotNull)],s),t.TextChunk=s})),Tr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenTagToken=void 0;var i=At(),n=nt(),s=class extends i.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}};e([n.NotNull],s.prototype,"_tokenName",void 0),e([n.NotNull],s.prototype,"tokenName",null),e([n.Override],s.prototype,"text",null),e([n.Override],s.prototype,"toString",null),s=e([r(0,n.NotNull)],s),t.TokenTagToken=s})),vr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParseTreePatternMatcher=void 0;var i=Pr(),n=Xe(),s=Qe(),o=Ze(),a=tr(),l=nt(),c=er(),u=ir(),h=we(),d=nr(),f=_r(),_=ct(),y=Ce(),g=yr(),m=mr(),x=Ae(),T=xr(),v=Nt(),S=Tr(),b=class{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 i=this.compile(e,r);return this.matches(t,i)}{let r=new a.MultiMap;return!this.matchImpl(t,e.patternTree,r)}}match(t,e,r=0){if("string"==typeof e){let i=this.compile(e,r);return this.match(t,i)}{let r=new a.MultiMap,i=this.matchImpl(t,e.patternTree,r);return new d.ParseTreeMatch(t,e,r,i)}}compile(t,e){let r=this.tokenize(t),n=new o.ListTokenSource(r),a=new s.CommonTokenStream(n);const l=this._parser;let h,p=new u.ParserInterpreter(l.grammarFileName,l.vocabulary,l.ruleNames,l.getATNWithBypassAlts(),a);try{p.errorHandler=new i.BailErrorStrategy,h=p.parse(e)}catch(t){throw t instanceof c.ParseCancellationException?t.getCause():t instanceof _.RecognitionException?t:t instanceof Error?new b.CannotInvokeStartRule(t):t}if(a.LA(1)!==v.Token.EOF)throw new b.StartRuleDoesNotConsumeFullPattern;return new f.ParseTreePattern(this,t,e,h)}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 x.TerminalNode&&e instanceof x.TerminalNode){let i;if(t.symbol.type===e.symbol.type)if(e.symbol instanceof S.TokenTagToken){let i=e.symbol;r.map(i.tokenName,t);const n=i.label;n&&r.map(n,t)}else t.text===e.text||i||(i=t);else i||(i=t);return i}if(t instanceof h.ParserRuleContext&&e instanceof h.ParserRuleContext){let i,n=this.getRuleTagToken(e);if(n){if(t.ruleContext.ruleIndex===e.ruleContext.ruleIndex){r.map(n.ruleName,t);const e=n.label;e&&r.map(e,t)}else i||(i=t);return i}if(t.childCount!==e.childCount)return i||(i=t),i;let s=t.childCount;for(let i=0;i<s;i++){let n=this.matchImpl(t.getChild(i),e.getChild(i),r);if(n)return n}return i}return t}getRuleTagToken(t){if(t instanceof y.RuleNode&&1===t.childCount&&t.getChild(0)instanceof x.TerminalNode){let e=t.getChild(0);if(e.symbol instanceof g.RuleTagToken)return e.symbol}}tokenize(t){let e=this.split(t),r=[];for(let i of e)if(i instanceof m.TagChunk){let e=i;const n=e.tag.substr(0,1);if(n===n.toUpperCase()){let i=this._parser.getTokenType(e.tag);if(i===v.Token.INVALID_TYPE)throw new Error("Unknown token "+e.tag+" in pattern: "+t);let n=new S.TokenTagToken(e.tag,i,e.label);r.push(n)}else{if(n!==n.toLowerCase())throw new Error("invalid tag: "+e.tag+" in pattern: "+t);{let i=this._parser.getRuleIndex(e.tag);if(-1===i)throw new Error("Unknown rule "+e.tag+" in pattern: "+t);let n=this._parser.getATNWithBypassAlts().ruleToTokenType[i];r.push(new g.RuleTagToken(e.tag,n,e.label))}}}else{let t=i;this._lexer.inputStream=n.CharStreams.fromString(t.text);let e=this._lexer.nextToken();for(;e.type!==v.Token.EOF;)r.push(e),e=this._lexer.nextToken()}return r}split(t){let e=0,r=t.length,i=[],n=[],s=[];for(;e<r;)e===t.indexOf(this.escape+this.start,e)?e+=this.escape.length+this.start.length:e===t.indexOf(this.escape+this.stop,e)?e+=this.escape.length+this.stop.length:e===t.indexOf(this.start,e)?(n.push(e),e+=this.start.length):e===t.indexOf(this.stop,e)?(s.push(e),e+=this.stop.length):e++;if(n.length>s.length)throw new Error("unterminated tag in pattern: "+t);if(n.length<s.length)throw new Error("missing start tag in pattern: "+t);let o=n.length;for(let e=0;e<o;e++)if(n[e]>=s[e])throw new Error("tag delimiters out of order in pattern: "+t);if(0===o){let e=t.substring(0,r);i.push(new T.TextChunk(e))}if(o>0&&n[0]>0){let e=t.substring(0,n[0]);i.push(new T.TextChunk(e))}for(let e=0;e<o;e++){let r,a=t.substring(n[e]+this.start.length,s[e]),l=a,c=a.indexOf(":");if(c>=0&&(r=a.substring(0,c),l=a.substring(c+1,a.length)),i.push(new m.TagChunk(l,r)),e+1<o){let r=t.substring(s[e]+this.stop.length,n[e+1]);i.push(new T.TextChunk(r))}}if(o>0){let e=s[o-1]+this.stop.length;if(e<r){let n=t.substring(e,r);i.push(new T.TextChunk(n))}}for(let t=0;t<i.length;t++){let e=i[t];if(e instanceof T.TextChunk){let r=e.text.replace(this.escapeRE,"");r.length<e.text.length&&(i[t]=new T.TextChunk(r))}}return i}};e([l.NotNull,r(1,l.NotNull)],b.prototype,"match",null),e([l.NotNull],b.prototype,"lexer",null),e([l.NotNull],b.prototype,"parser",null),e([r(0,l.NotNull),r(1,l.NotNull),r(2,l.NotNull)],b.prototype,"matchImpl",null),t.ParseTreePatternMatcher=b,function(t){class e extends Error{constructor(t){super(`CannotInvokeStartRule: ${t}`),this.error=t}}t.CannotInvokeStartRule=e;class r extends Error{constructor(){super("StartRuleDoesNotConsumeFullPattern")}}t.StartRuleDoesNotConsumeFullPattern=r}(b=t.ParseTreePatternMatcher||(t.ParseTreePatternMatcher={}))})),Sr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DecisionEventInfo=void 0;var i=nt(),n=class{constructor(t,e,r,i,n,s){this.decision=t,this.fullCtx=s,this.stopIndex=n,this.input=r,this.startIndex=i,this.state=e}};e([i.NotNull],n.prototype,"input",void 0),n=e([r(2,i.NotNull)],n),t.DecisionEventInfo=n})),br=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmbiguityInfo=void 0;var i=Sr(),n=nt(),s=class extends i.DecisionEventInfo{constructor(t,e,r,i,n,s){super(t,e,i,n,s,e.useContext),this.ambigAlts=r}get ambiguousAlternatives(){return this.ambigAlts}};e([n.NotNull],s.prototype,"ambigAlts",void 0),e([n.NotNull],s.prototype,"ambiguousAlternatives",null),s=e([r(1,n.NotNull),r(2,n.NotNull),r(3,n.NotNull)],s),t.AmbiguityInfo=s})),Er=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextSensitivityInfo=void 0;var i=Sr(),n=nt(),s=class extends i.DecisionEventInfo{constructor(t,e,r,i,n){super(t,e,r,i,n,!0)}};s=e([r(1,n.NotNull),r(2,n.NotNull)],s),t.ContextSensitivityInfo=s})),Nr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.DecisionInfo=void 0;var r=nt(),i=class{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+"}"}};e([r.Override],i.prototype,"toString",null),t.DecisionInfo=i})),Ar=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorInfo=void 0;var i=Sr(),n=nt(),s=class extends i.DecisionEventInfo{constructor(t,e,r,i,n){super(t,e,r,i,n,e.useContext)}};s=e([r(1,n.NotNull),r(2,n.NotNull)],s),t.ErrorInfo=s})),Rr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LookaheadEventInfo=void 0;var i=Sr(),n=nt(),s=class extends i.DecisionEventInfo{constructor(t,e,r,i,n,s,o){super(t,e,i,n,s,o),this.predictedAlt=r}};s=e([r(3,n.NotNull)],s),t.LookaheadEventInfo=s})),Cr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.PredicateEvalInfo=void 0;var i=Sr(),n=nt(),s=class extends i.DecisionEventInfo{constructor(t,e,r,i,n,s,o,a){super(e,t,r,i,n,t.useContext),this.semctx=s,this.evalResult=o,this.predictedAlt=a}};s=e([r(0,n.NotNull),r(2,n.NotNull),r(5,n.NotNull)],s),t.PredicateEvalInfo=s})),Or=u((e=>{p();var r=e&&e.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=e&&e.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProfilingATNSimulator=void 0;var n=br(),s=ee(),o=jt(),a=Er(),l=Nr(),c=Ar(),u=nt(),h=Rr(),d=ke(),f=Cr(),_=mt(),y=Pe(),g=class 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;t<this.numDecisions;t++)this.decisions.push(new l.DecisionInfo(t))}adaptivePredict(e,r,i,n){if(void 0!==n)return super.adaptivePredict(e,r,i,n);try{this._input=e,this._startIndex=e.index,this._sllStopIndex=this._startIndex-1,this._llStopIndex=-1,this.currentDecision=r,this.currentState=void 0,this.conflictingAltResolvedBySLL=s.ATN.INVALID_ALT_NUMBER;let n=t.hrtime(),o=super.adaptivePredict(e,r,i),a=t.hrtime(),l=1e9*(a[0]-n[0]);0===l?l=a[1]-n[1]:l+=1e9-n[1]+a[1],this.decisions[r].timeInPrediction+=l,this.decisions[r].invocations++;let c=this._sllStopIndex-this._startIndex+1;if(this.decisions[r].SLL_TotalLook+=c,this.decisions[r].SLL_MinLook=0===this.decisions[r].SLL_MinLook?c:Math.min(this.decisions[r].SLL_MinLook,c),c>this.decisions[r].SLL_MaxLook&&(this.decisions[r].SLL_MaxLook=c,this.decisions[r].SLL_MaxLookEvent=new h.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 h.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,i){let n=super.getStartState(t,e,r,i);return this.currentState=n,n}computeStartState(t,e,r){let i=super.computeStartState(t,e,r);return this.currentState=i,i}computeReachSet(t,e,r,i){if(void 0===this._input)throw new Error("Invalid state");let n=super.computeReachSet(t,e,r,i);return null==n&&this.decisions[this.currentDecision].errors.push(new c.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index)),this.currentState=n,n}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 y.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===o.ATNSimulator.ERROR)){let e=new y.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,i,n,s){let o=super.computeTargetState(t,e,r,i,n,s);return n?this.decisions[this.currentDecision].LL_ATNTransitions++:this.decisions[this.currentDecision].SLL_ATNTransitions++,o}evalSemanticContextImpl(t,e,r){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let i=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,i,r))}return i}reportContextSensitivity(t,e,r,i,n){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,i,n)),super.reportContextSensitivity(t,e,r,i,n)}reportAttemptingFullContext(t,e,r,i,n){this.conflictingAltResolvedBySLL=null!=e?e.nextSetBit(0):r.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(t,e,r,i,n)}reportAmbiguity(t,e,r,i,o,l,c){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");let u;u=null!=l?l.nextSetBit(0):c.getRepresentedAlternatives().nextSetBit(0),this.conflictingAltResolvedBySLL!==s.ATN.INVALID_ALT_NUMBER&&u!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new a.ContextSensitivityInfo(this.currentDecision,this.currentState,this._input,r,i)),this.decisions[this.currentDecision].ambiguities.push(new n.AmbiguityInfo(this.currentDecision,this.currentState,l,this._input,r,i)),super.reportAmbiguity(t,e,r,i,o,l,c)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}};r([u.Override,i(0,u.NotNull)],g.prototype,"adaptivePredict",null),r([u.Override],g.prototype,"getStartState",null),r([u.Override],g.prototype,"computeStartState",null),r([u.Override],g.prototype,"computeReachSet",null),r([u.Override],g.prototype,"getExistingTargetState",null),r([u.Override],g.prototype,"computeTargetState",null),r([u.Override],g.prototype,"evalSemanticContextImpl",null),r([u.Override],g.prototype,"reportContextSensitivity",null),r([u.Override],g.prototype,"reportAttemptingFullContext",null),r([u.Override,i(0,u.NotNull),i(5,u.NotNull),i(6,u.NotNull)],g.prototype,"reportAmbiguity",null),e.ProfilingATNSimulator=g})),Lr=u((e=>{p();var r=e&&e.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},i=e&&e.__param||function(t,e){return function(r,i){e(r,i,t)}},n=e&&e.__awaiter||function(t,e,r,i){return new(r||(r=Promise))((function(n,s){function o(t){try{l(i.next(t))}catch(t){s(t)}}function a(t){try{l(i.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}l((i=i.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;var s=gt(),o=ce(),a=Ve(),l=Ir(),c=Re(),u=Ct(),h=ae(),d=nt(),f=qe(),_=ke(),y=Ge(),g=Kt(),m=Ae(),x=Nt(),T=class{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])}};r([d.Override],T.prototype,"enterEveryRule",null),r([d.Override],T.prototype,"exitEveryRule",null),r([d.Override],T.prototype,"visitErrorNode",null),r([d.Override],T.prototype,"visitTerminal",null);var v=class extends g.Recognizer{constructor(t){super(),this._errHandler=new l.DefaultErrorStrategy,this._precedenceStack=new u.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=v.bypassAltsAtnCache.get(t);if(null==e){let r=new o.ATNDeserializationOptions;r.isGenerateRuleBypassTransitions=!0,e=new a.ATNDeserializer(r).deserialize(s.toCharArray(t)),v.bypassAltsAtnCache.set(t,e)}return e}compileParseTreePattern(t,e,r){return n(this,void 0,void 0,(function*(){if(!r){if(this.inputStream){let t=this.inputStream.tokenSource;t instanceof h.Lexer&&(r=t)}if(!r)throw new Error("Parser can't discover a lexer to use")}let i=r;return new((yield Promise.resolve().then((()=>vr()))).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 i=-1,n=-1;null!=e&&(i=e.line,n=e.charPositionInLine);let s=this.getErrorListenerDispatch();s.syntaxError&&s.syntaxError(this,e,i,n,t,r)}consume(){let t=this.currentToken;t.type!==v.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,i){this.state=e,this._precedenceStack.push(i),this._ctx=t,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){let i=this._ctx;i._parent=t,i.invokingState=e,i._stop=this._input.tryLT(-1),this._ctx=t,this._ctx._start=i._start,this._buildParseTrees&&this._ctx.addChild(i),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 y.ProxyParserErrorListener(this.getErrorListeners())}inContext(t){return!1}isExpectedToken(t){let e=this.interpreter.atn,r=this._ctx,i=e.states[this.state],n=e.nextTokens(i);if(n.contains(t))return!0;if(!n.contains(x.Token.EPSILON))return!1;for(;null!=r&&r.invokingState>=0&&n.contains(x.Token.EPSILON);){let i=e.states[r.invokingState].transition(0);if(n=e.nextTokens(i.followState),n.contains(t))return!0;r=r._parent}return!(!n.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,i=[];for(;null!=e;){let t=e.ruleIndex;t<0?i.push("n/a"):i.push(r[t]),e=e._parent}return i}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((()=>Or())).then((t=>{let e=this.interpreter;if(e instanceof t.ProfilingATNSimulator)return new f.ParseInfo(e)}))}setProfile(t){return n(this,void 0,void 0,(function*(){let e=yield Promise.resolve().then((()=>Or())),r=this.interpreter;t?r instanceof e.ProfilingATNSimulator||(this.interpreter=new e.ProfilingATNSimulator(this)):r instanceof e.ProfilingATNSimulator&&(this.interpreter=new _.ParserATNSimulator(this.atn,this)),this.interpreter.setPredictionMode(r.getPredictionMode())}))}set isTrace(t){t?(this._tracer?this.removeParseListener(this._tracer):this._tracer=new T(this.ruleNames,this._input),this.addParseListener(this._tracer)):this._tracer&&(this.removeParseListener(this._tracer),this._tracer=void 0)}get isTrace(){return null!=this._tracer}};v.bypassAltsAtnCache=new Map,r([d.NotNull],v.prototype,"_errHandler",void 0),r([d.NotNull],v.prototype,"match",null),r([d.NotNull],v.prototype,"matchWildcard",null),r([d.NotNull],v.prototype,"getParseListeners",null),r([i(0,d.NotNull)],v.prototype,"addParseListener",null),r([d.NotNull],v.prototype,"getATNWithBypassAlts",null),r([d.NotNull,i(0,d.NotNull)],v.prototype,"errorHandler",null),r([d.Override],v.prototype,"inputStream",null),r([d.NotNull],v.prototype,"currentToken",null),r([i(0,d.NotNull)],v.prototype,"enterRule",null),r([d.Override,i(0,d.Nullable)],v.prototype,"precpred",null),r([d.Override],v.prototype,"getErrorListenerDispatch",null),r([d.NotNull],v.prototype,"getExpectedTokens",null),r([d.NotNull],v.prototype,"getExpectedTokensWithinCurrentRule",null),r([d.Override],v.prototype,"parseInfo",null),e.Parser=v})),wr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.NoViableAltException=void 0;var r=Lr(),i=ct(),n=nt(),s=class extends i.RecognitionException{constructor(t,e,i,n,s,o){t instanceof r.Parser&&(void 0===e&&(e=t.inputStream),void 0===i&&(i=t.currentToken),void 0===n&&(n=t.currentToken),void 0===o&&(o=t.context)),super(t,e,o),this._deadEndConfigs=s,this._startToken=i,this.setOffendingToken(t,n)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}};e([n.NotNull],s.prototype,"_startToken",void 0),t.NoViableAltException=s})),Ir=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultErrorStrategy=void 0;var i=at(),n=lt(),s=Tt(),o=vt(),a=le(),l=wr(),c=Pt(),u=Nt(),h=nt(),d=class{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=i.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 l.NoViableAltException?this.reportNoViableAlternative(t,e):e instanceof o.InputMismatchException?this.reportInputMismatch(t,e):e instanceof s.FailedPredicateException?this.reportFailedPredicate(t,e):(console.error(`unknown recognition error type: ${e}`),this.notifyErrorListeners(t,e.toString(),e)))}notifyErrorListeners(t,e,r){let i=r.getOffendingToken(t);void 0===i&&(i=null),t.notifyErrorListeners(e,i,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 a.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),s=t.atn.nextTokens(e);if(s.contains(r))return this.nextTokensContext=void 0,void(this.nextTokensState=i.ATNState.INVALID_STATE_NUMBER);if(s.contains(u.Token.EPSILON))void 0===this.nextTokensContext&&(this.nextTokensContext=t.context,this.nextTokensState=t.state);else switch(e.stateType){case n.ATNStateType.BLOCK_START:case n.ATNStateType.STAR_BLOCK_START:case n.ATNStateType.PLUS_BLOCK_START:case n.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(t))return;throw new o.InputMismatchException(t);case n.ATNStateType.PLUS_LOOP_BACK:case n.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(t);let e=t.getExpectedTokens().or(this.getErrorRecoverySet(t));this.consumeUntil(t,e)}}reportNoViableAlternative(t,e){let r,i=t.inputStream;r=i?e.startToken.type===u.Token.EOF?"<EOF>":i.getTextFromRange(e.startToken,e.getOffendingToken()):"<unknown input>";let n="no viable alternative at input "+this.escapeWSAndQuote(r);this.notifyErrorListeners(t,n,e)}reportInputMismatch(t,e){let r=e.expectedTokens,i=r?r.toStringVocabulary(t.vocabulary):"",n="mismatched input "+this.getTokenErrorDisplay(e.getOffendingToken(t))+" expecting "+i;this.notifyErrorListeners(t,n,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 o.InputMismatchException(t):new o.InputMismatchException(t,this.nextTokensState,this.nextTokensContext)}singleTokenInsertion(t){let e=t.inputStream.LA(1),r=t.interpreter.atn.states[t.state].transition(0).target,i=t.interpreter.atn;return!!i.nextTokens(r,c.PredictionContext.fromRuleContext(i,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,i=this.getExpectedTokens(t),n=u.Token.INVALID_TYPE;i.isNil||(n=i.minElement),e=n===u.Token.EOF?"<missing EOF>":"<missing "+t.vocabulary.getDisplayName(n)+">";let s=r,o=t.inputStream.tryLT(-1);return s.type===u.Token.EOF&&null!=o&&(s=o),this.constructToken(t.inputStream.tokenSource,n,e,s)}constructToken(t,e,r,i){let n=t.tokenFactory,s=i.tokenSource,o=s?s.inputStream:void 0;return n.create({source:t,stream:o},e,r,u.Token.DEFAULT_CHANNEL,-1,-1,i.line,i.charPositionInLine)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(!t)return"<no token>";let e=this.getSymbolText(t);return e||(e=this.getSymbolType(t)===u.Token.EOF?"<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,i=new a.IntervalSet;for(;r&&r.invokingState>=0;){let t=e.states[r.invokingState].transition(0),n=e.nextTokens(t.followState);i.addAll(n),r=r._parent}return i.remove(u.Token.EPSILON),i}consumeUntil(t,e){let r=t.inputStream.LA(1);for(;r!==u.Token.EOF&&!e.contains(r);)t.consume(),r=t.inputStream.LA(1)}};e([h.Override],d.prototype,"reset",null),e([r(0,h.NotNull)],d.prototype,"beginErrorCondition",null),e([h.Override],d.prototype,"inErrorRecoveryMode",null),e([r(0,h.NotNull)],d.prototype,"endErrorCondition",null),e([h.Override],d.prototype,"reportMatch",null),e([h.Override],d.prototype,"reportError",null),e([r(0,h.NotNull)],d.prototype,"notifyErrorListeners",null),e([h.Override],d.prototype,"recover",null),e([h.Override],d.prototype,"sync",null),e([r(0,h.NotNull),r(1,h.NotNull)],d.prototype,"reportNoViableAlternative",null),e([r(0,h.NotNull),r(1,h.NotNull)],d.prototype,"reportInputMismatch",null),e([r(0,h.NotNull),r(1,h.NotNull)],d.prototype,"reportFailedPredicate",null),e([r(0,h.NotNull)],d.prototype,"reportUnwantedToken",null),e([r(0,h.NotNull)],d.prototype,"reportMissingToken",null),e([h.Override],d.prototype,"recoverInline",null),e([r(0,h.NotNull)],d.prototype,"singleTokenInsertion",null),e([r(0,h.NotNull)],d.prototype,"singleTokenDeletion",null),e([h.NotNull,r(0,h.NotNull)],d.prototype,"getMissingSymbol",null),e([h.NotNull,r(0,h.NotNull)],d.prototype,"getExpectedTokens",null),e([r(0,h.NotNull)],d.prototype,"getSymbolText",null),e([r(0,h.NotNull)],d.prototype,"getSymbolType",null),e([h.NotNull,r(0,h.NotNull)],d.prototype,"escapeWSAndQuote",null),e([h.NotNull,r(0,h.NotNull)],d.prototype,"getErrorRecoverySet",null),e([r(0,h.NotNull),r(1,h.NotNull)],d.prototype,"consumeUntil",null),t.DefaultErrorStrategy=d})),Pr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.BailErrorStrategy=void 0;var r=Ir(),i=vt(),n=nt(),s=er(),o=class extends r.DefaultErrorStrategy{recover(t,e){for(let r=t.context;r;r=r.parent)r.exception=e;throw new s.ParseCancellationException(e)}recoverInline(t){let e=new i.InputMismatchException(t);for(let r=t.context;r;r=r.parent)r.exception=e;throw new s.ParseCancellationException(e)}sync(t){}};e([n.Override],o.prototype,"recover",null),e([n.Override],o.prototype,"recoverInline",null),e([n.Override],o.prototype,"sync",null),t.BailErrorStrategy=o})),kr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),Dr=u((t=>{var e;p(),Object.defineProperty(t,"__esModule",{value:!0}),t.Dependents=void 0,(e=t.Dependents||(t.Dependents={}))[e.SELF=0]="SELF",e[e.PARENTS=1]="PARENTS",e[e.CHILDREN=2]="CHILDREN",e[e.ANCESTORS=3]="ANCESTORS",e[e.DESCENDANTS=4]="DESCENDANTS",e[e.SIBLINGS=5]="SIBLINGS",e[e.PRECEEDING_SIBLINGS=6]="PRECEEDING_SIBLINGS",e[e.FOLLOWING_SIBLINGS=7]="FOLLOWING_SIBLINGS",e[e.PRECEEDING=8]="PRECEEDING",e[e.FOLLOWING=9]="FOLLOWING"})),Fr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticErrorListener=void 0;var i=Dt(),n=nt(),s=Et(),o=class{constructor(t=!0){this.exactOnly=t,this.exactOnly=t}syntaxError(t,e,r,i,n,s){}reportAmbiguity(t,e,r,i,n,o,a){if(this.exactOnly&&!n)return;let l=`reportAmbiguity d=${this.getDecisionDescription(t,e)}: ambigAlts=${this.getConflictingAlts(o,a)}, input='${t.inputStream.getText(s.Interval.of(r,i))}'`;t.notifyErrorListeners(l)}reportAttemptingFullContext(t,e,r,i,n,o){let a=`reportAttemptingFullContext d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(s.Interval.of(r,i))}'`;t.notifyErrorListeners(a)}reportContextSensitivity(t,e,r,i,n,o){let a=`reportContextSensitivity d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(s.Interval.of(r,i))}'`;t.notifyErrorListeners(a)}getDecisionDescription(t,e){let r=e.decision,i=e.atnStartState.ruleIndex,n=t.ruleNames;if(i<0||i>=n.length)return r.toString();let s=n[i];return s?`${r} (${s})`:r.toString()}getConflictingAlts(t,e){if(null!=t)return t;let r=new i.BitSet;for(let t of e)r.set(t.alt);return r}};e([n.Override],o.prototype,"syntaxError",null),e([n.Override,r(0,n.NotNull),r(1,n.NotNull),r(6,n.NotNull)],o.prototype,"reportAmbiguity",null),e([n.Override,r(0,n.NotNull),r(1,n.NotNull),r(5,n.NotNull)],o.prototype,"reportAttemptingFullContext",null),e([n.Override,r(0,n.NotNull),r(1,n.NotNull),r(5,n.NotNull)],o.prototype,"reportContextSensitivity",null),e([r(0,n.NotNull),r(1,n.NotNull)],o.prototype,"getDecisionDescription",null),e([n.NotNull,r(1,n.NotNull)],o.prototype,"getConflictingAlts",null),t.DiagnosticErrorListener=o})),Mr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerInterpreter=void 0;var i=ae(),n=oe(),s=nt(),o=nt(),a=class extends i.Lexer{constructor(t,e,r,i,s,o,a){if(super(a),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=i.slice(0),this._modeNames=s.slice(0),this._vocabulary=e,this._interp=new n.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}};e([s.NotNull],a.prototype,"_vocabulary",void 0),e([o.Override],a.prototype,"atn",null),e([o.Override],a.prototype,"grammarFileName",null),e([o.Override],a.prototype,"ruleNames",null),e([o.Override],a.prototype,"channelNames",null),e([o.Override],a.prototype,"modeNames",null),e([o.Override],a.prototype,"vocabulary",null),a=e([r(1,s.NotNull)],a),t.LexerInterpreter=a})),jr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),Ur=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.RuleContextWithAltNum=void 0;var r=ee(),i=nt(),n=we(),s=class extends n.ParserRuleContext{constructor(t,e){void 0!==e?super(t,e):super(),this._altNumber=r.ATN.INVALID_ALT_NUMBER}get altNumber(){return this._altNumber}set altNumber(t){this._altNumber=t}};e([i.Override],s.prototype,"altNumber",null),t.RuleContextWithAltNum=s})),Hr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.RuleDependency=void 0,t.RuleDependency=function(t){return(t,e,r)=>{}}})),Kr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.RuleVersion=void 0,t.RuleVersion=function(t){return(t,e,r)=>{}}})),Br=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),zr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),Vr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),qr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(t,"__esModule",{value:!0}),t.RewriteOperation=t.TokenStreamRewriter=void 0;var r=Et(),i=nt(),n=Nt(),s=class{constructor(t){this.tokens=t,this.programs=new Map,this.programs.set(s.DEFAULT_PROGRAM_NAME,[]),this.lastRewriteTokenIndexes=new Map}getTokenStream(){return this.tokens}rollback(t,e=s.DEFAULT_PROGRAM_NAME){let r=this.programs.get(e);null!=r&&this.programs.set(e,r.slice(s.MIN_TOKEN_INDEX,t))}deleteProgram(t=s.DEFAULT_PROGRAM_NAME){this.rollback(s.MIN_TOKEN_INDEX,t)}insertAfter(t,e,r=s.DEFAULT_PROGRAM_NAME){let i;i="number"==typeof t?t:t.tokenIndex;let n=this.getProgram(r),o=new l(this.tokens,i,n.length,e);n.push(o)}insertBefore(t,e,r=s.DEFAULT_PROGRAM_NAME){let i;i="number"==typeof t?t:t.tokenIndex;let n=this.getProgram(r),o=new a(this.tokens,i,n.length,e);n.push(o)}replaceSingle(t,e){this.replace(t,t,e)}replace(t,e,r,i=s.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 n=this.getProgram(i),o=new c(this.tokens,t,e,n.length,r);n.push(o)}delete(t,e,r=s.DEFAULT_PROGRAM_NAME){void 0===e&&(e=t),this.replace(t,e,"",r)}getLastRewriteTokenIndex(t=s.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=s.DEFAULT_PROGRAM_NAME){let i;i=t instanceof r.Interval?t:r.Interval.of(0,this.tokens.size-1),"string"==typeof t&&(e=t);let o=this.programs.get(e),a=i.a,l=i.b;if(l>this.tokens.size-1&&(l=this.tokens.size-1),a<0&&(a=0),null==o||0===o.length)return this.tokens.getText(i);let c=[],u=this.reduceToSingleOperationPerIndex(o),h=a;for(;h<=l&&h<this.tokens.size;){let t=u.get(h);u.delete(h);let e=this.tokens.get(h);null==t?(e.type!==n.Token.EOF&&c.push(String(e.text)),h++):h=t.execute(c)}if(l===this.tokens.size-1)for(let t of u.values())t.index>=this.tokens.size-1&&c.push(t.text.toString());return c.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof c))continue;let i=r,n=this.getKindOfOps(t,a,e);for(let e of n)e.index===i.index?(t[e.instructionIndex]=void 0,i.text=e.text.toString()+(null!=i.text?i.text.toString():"")):e.index>i.index&&e.index<=i.lastIndex&&(t[e.instructionIndex]=void 0);let s=this.getKindOfOps(t,c,e);for(let e of s){if(e.index>=i.index&&e.lastIndex<=i.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndex<i.index||e.index>i.lastIndex;if(null!=e.text||null!=i.text||r){if(!r)throw new Error(`replace op boundaries of ${i} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,i.index=Math.min(e.index,i.index),i.lastIndex=Math.max(e.lastIndex,i.lastIndex)}}for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof a))continue;let i=r,n=this.getKindOfOps(t,a,e);for(let e of n)e.index===i.index&&(e instanceof l?(i.text=this.catOpText(e.text,i.text),t[e.instructionIndex]=void 0):e instanceof a&&(i.text=this.catOpText(i.text,e.text),t[e.instructionIndex]=void 0));let s=this.getKindOfOps(t,c,e);for(let r of s)if(i.index!==r.index){if(i.index>=r.index&&i.index<=r.lastIndex)throw new Error(`insert op ${i} within boundaries of previous ${r}`)}else r.text=this.catOpText(i.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="",i="";return null!=t&&(r=t.toString()),null!=e&&(i=e.toString()),r+i}getKindOfOps(t,e,r){let i=[];for(let n=0;n<r&&n<t.length;n++){let r=t[n];null!=r&&r instanceof e&&i.push(r)}return i}};t.TokenStreamRewriter=s,s.DEFAULT_PROGRAM_NAME="default",s.PROGRAM_INIT_SIZE=100,s.MIN_TOKEN_INDEX=0;var o=class{constructor(t,e,r,i){this.tokens=t,this.instructionIndex=r,this.index=e,this.text=void 0===i?"":i}execute(t){return this.index}toString(){let t=this.constructor.name,e=t.indexOf("$");return t=t.substring(e+1,t.length),"<"+t+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}};e([i.Override],o.prototype,"toString",null),t.RewriteOperation=o;var a=class extends o{constructor(t,e,r,i){super(t,e,r,i)}execute(t){return t.push(this.text.toString()),this.tokens.get(this.index).type!==n.Token.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}};e([i.Override],a.prototype,"execute",null);var l=class extends a{constructor(t,e,r,i){super(t,e+1,r,i)}},c=class extends o{constructor(t,e,r,i,n){super(t,e,i,n),this.lastIndex=r}execute(t){return null!=this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}};e([i.Override],c.prototype,"execute",null),e([i.Override],c.prototype,"toString",null)})),Gr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),$r=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),Yr=u((t=>{p();var e=t&&t.__createBinding||(Object.create?function(t,e,r,i){void 0===i&&(i=r),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,i){void 0===i&&(i=r),t[i]=e[r]}),r=t&&t.__exportStar||function(t,r){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(r,i)||e(r,t,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(d(),t),r(f(),t),r(ot(),t),r(Pr(),t),r(Je(),t),r(kr(),t),r(Xe(),t),r(Ye(),t),r(We(),t),r(At(),t),r(Rt(),t),r(Qe(),t),r(Ut(),t),r(Ir(),t),r(Dr(),t),r(Fr(),t),r(Tt(),t),r(vt(),t),r(rr(),t),r(st(),t),r(ae(),t),r(Mr(),t),r(ne(),t),r(Ze(),t),r(wr(),t),r(Lr(),t),r(jr(),t),r(ir(),t),r(we(),t),r(Ht(),t),r(Ge(),t),r(ct(),t),r(Kt(),t),r(Le(),t),r(Ur(),t),r(Hr(),t),r(Kr(),t),r(Nt(),t),r(Br(),t),r(zr(),t),r(Vr(),t),r(qr(),t),r(Gr(),t),r(Bt(),t),r($r(),t)})),Wr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,i){var n,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractParseTreeVisitor=void 0;var i=nt(),n=class{visit(t){return t.accept(this)}visitChildren(t){let e=this.defaultResult(),r=t.childCount;for(let i=0;i<r&&this.shouldVisitNextChild(t,e);i++){let r=t.getChild(i).accept(this);e=this.aggregateResult(e,r)}return e}visitTerminal(t){return this.defaultResult()}visitErrorNode(t){return this.defaultResult()}aggregateResult(t,e){return e}shouldVisitNextChild(t,e){return!0}};e([i.Override,r(0,i.NotNull)],n.prototype,"visit",null),e([i.Override,r(0,i.NotNull)],n.prototype,"visitChildren",null),e([i.Override,r(0,i.NotNull)],n.prototype,"visitTerminal",null),e([i.Override,r(0,i.NotNull)],n.prototype,"visitErrorNode",null),e([r(0,i.NotNull)],n.prototype,"shouldVisitNextChild",null),t.AbstractParseTreeVisitor=n})),Xr=u(((t,e)=>{function r(t){return Array.isArray(t)?"["+t.join(", ")+"]":"null"}function i(t,e){return t?t.equals(e):t==e}function n(t){return t?t.hashCode():-1}p(),String.prototype.seed=String.prototype.seed||Math.round(Math.random()*Math.pow(2,32)),String.prototype.hashCode=function(){const t=this.toString();let e,r;const i=3&t.length,n=t.length-i;let s=String.prototype.seed;const o=3432918353,a=461845907;let l=0;for(;l<n;)r=255&t.charCodeAt(l)|(255&t.charCodeAt(++l))<<8|(255&t.charCodeAt(++l))<<16|(255&t.charCodeAt(++l))<<24,++l,r=(65535&r)*o+(((r>>>16)*o&65535)<<16)&4294967295,r=r<<15|r>>>17,r=(65535&r)*a+(((r>>>16)*a&65535)<<16)&4294967295,s^=r,s=s<<13|s>>>19,e=5*(65535&s)+((5*(s>>>16)&65535)<<16)&4294967295,s=27492+(65535&e)+((58964+(e>>>16)&65535)<<16);switch(r=0,i){case 3:r^=(255&t.charCodeAt(l+2))<<16;case 2:r^=(255&t.charCodeAt(l+1))<<8;case 1:r^=255&t.charCodeAt(l),r=(65535&r)*o+(((r>>>16)*o&65535)<<16)&4294967295,r=r<<15|r>>>17,r=(65535&r)*a+(((r>>>16)*a&65535)<<16)&4294967295,s^=r}return s^=t.length,s^=s>>>16,s=2246822507*(65535&s)+((2246822507*(s>>>16)&65535)<<16)&4294967295,s^=s>>>13,s=3266489909*(65535&s)+((3266489909*(s>>>16)&65535)<<16)&4294967295,s^=s>>>16,s>>>0};var s=class{constructor(){this.data=[]}add(t){this.data[t]=!0}or(t){const e=this;Object.keys(t.data).map((function(t){e.add(t)}))}remove(t){delete this.data[t]}contains(t){return!0===this.data[t]}values(){return Object.keys(this.data)}minValue(){return Math.min.apply(null,this.values())}hashCode(){const t=new a;return t.update(this.values()),t.finish()}equals(t){return t instanceof s&&this.hashCode()===t.hashCode()}toString(){return"{"+this.values().join(", ")+"}"}get length(){return this.values().length}},o=class{constructor(t,e){this.data={},this.hashFunction=t||n,this.equalsFunction=e||i}put(t,e){const r="hash_"+this.hashFunction(t);if(r in this.data){const i=this.data[r];for(let r=0;r<i.length;r++){const n=i[r];if(this.equalsFunction(t,n.key)){const t=n.value;return n.value=e,t}}return i.push({key:t,value:e}),e}return this.data[r]=[{key:t,value:e}],e}containsKey(t){const e="hash_"+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++){const i=r[e];if(this.equalsFunction(t,i.key))return!0}}return!1}get(t){const e="hash_"+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++){const i=r[e];if(this.equalsFunction(t,i.key))return i.value}}return null}entries(){let t=[];for(const e in this.data)0===e.indexOf("hash_")&&(t=t.concat(this.data[e]));return t}getKeys(){return this.entries().map((function(t){return t.key}))}getValues(){return this.entries().map((function(t){return t.value}))}toString(){return"["+this.entries().map((function(t){return"{"+t.key+":"+t.value+"}"})).join(", ")+"]"}get length(){let t=0;for(const e in this.data)0===e.indexOf("hash_")&&(t+=this.data[e].length);return t}},a=class{constructor(){this.count=0,this.hash=0}update(){for(let t=0;t<arguments.length;t++){const e=arguments[t];if(null!=e)if(Array.isArray(e))this.update.apply(this,e);else{let t=0;switch(typeof e){case"undefined":case"function":continue;case"number":case"boolean":t=e;break;case"string":t=e.hashCode();break;default:e.updateHashCode?e.updateHashCode(this):console.log("No updateHashCode for "+e.toString());continue}t*=3432918353,t=t<<15|t>>>17,t*=461845907,this.count=this.count+1;let r=this.hash^t;r=r<<13|r>>>19,r=5*r+3864292196,this.hash=r}}}finish(){let t=this.hash^4*this.count;return t^=t>>>16,t*=2246822507,t^=t>>>13,t*=3266489909,t^=t>>>16,t}};e.exports={Hash:a,Set:class{constructor(t,e){this.data={},this.hashFunction=t||n,this.equalsFunction=e||i}add(t){const e="hash_"+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++)if(this.equalsFunction(t,r[e]))return r[e];return r.push(t),t}return this.data[e]=[t],t}contains(t){return null!=this.get(t)}get(t){const e="hash_"+this.hashFunction(t);if(e in this.data){const r=this.data[e];for(let e=0;e<r.length;e++)if(this.equalsFunction(t,r[e]))return r[e]}return null}values(){let t=[];for(const e in this.data)0===e.indexOf("hash_")&&(t=t.concat(this.data[e]));return t}toString(){return r(this.values())}get length(){let t=0;for(const e in this.data)0===e.indexOf("hash_")&&(t+=this.data[e].length);return t}},Map:o,BitSet:s,AltDict:class{constructor(){this.data={}}get(t){return(t="k-"+t)in this.data?this.data[t]:null}put(t,e){t="k-"+t,this.data[t]=e}values(){const t=this.data;return Object.keys(this.data).map((function(e){return t[e]}))}},DoubleDict:class{constructor(t){this.defaultMapCtor=t||o,this.cacheMap=new this.defaultMapCtor}get(t,e){const r=this.cacheMap.get(t)||null;return null===r?null:r.get(e)||null}set(t,e,r){let i=this.cacheMap.get(t)||null;null===i&&(i=new this.defaultMapCtor,this.cacheMap.put(t,i)),i.put(e,r)}},hashStuff:function(){const t=new a;return t.update.apply(t,arguments),t.finish()},escapeWhitespace:function(t,e){return t=t.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r"),e&&(t=t.replace(/ /g,"·")),t},arrayToString:r,titleCase:function(t){return t.replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1)}))},equalArrays:function(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t===e)return!0;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!(t[r]===e[r]||t[r].equals&&t[r].equals(e[r])))return!1;return!0}}})),Jr=u(((t,e)=>{p();var r=class{constructor(){this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null}getTokenSource(){return this.source[0]}getInputStream(){return this.source[1]}get text(){return this._text}set text(t){this._text=t}};r.INVALID_TYPE=0,r.EPSILON=-2,r.MIN_USER_TOKEN_TYPE=1,r.EOF=-1,r.DEFAULT_CHANNEL=0,r.HIDDEN_CHANNEL=1;var i=class extends r{constructor(t,e,n,s,o){super(),this.source=void 0!==t?t:i.EMPTY_SOURCE,this.type=void 0!==e?e:null,this.channel=void 0!==n?n:r.DEFAULT_CHANNEL,this.start=void 0!==s?s:-1,this.stop=void 0!==o?o:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=t[0].line,this.column=t[0].column):this.column=-1}clone(){const t=new i(this.source,this.type,this.channel,this.start,this.stop);return t.tokenIndex=this.tokenIndex,t.line=this.line,t.column=this.column,t.text=this.text,t}toString(){let t=this.text;return t=null!==t?t.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+t+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}get text(){if(null!==this._text)return this._text;const t=this.getInputStream();if(null===t)return null;const e=t.size;return this.start<e&&this.stop<e?t.getText(this.start,this.stop):"<EOF>"}set text(t){this._text=t}};i.EMPTY_SOURCE=[null,null],e.exports={Token:r,CommonToken:i}})),Qr=u(((t,e)=>{p();var r=class{constructor(){this.atn=null,this.stateNumber=r.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}toString(){return this.stateNumber}equals(t){return t instanceof r&&this.stateNumber===t.stateNumber}isNonGreedyExitState(){return!1}addTransition(t,e){void 0===e&&(e=-1),0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===e?this.transitions.push(t):this.transitions.splice(e,1,t)}};r.INVALID_TYPE=0,r.BASIC=1,r.RULE_START=2,r.BLOCK_START=3,r.PLUS_BLOCK_START=4,r.STAR_BLOCK_START=5,r.TOKEN_START=6,r.RULE_STOP=7,r.BLOCK_END=8,r.STAR_LOOP_BACK=9,r.STAR_LOOP_ENTRY=10,r.PLUS_LOOP_BACK=11,r.LOOP_END=12,r.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],r.INVALID_STATE_NUMBER=-1;var i=class extends r{constructor(){return super(),this.decision=-1,this.nonGreedy=!1,this}},n=class extends i{constructor(){return super(),this.endState=null,this}};e.exports={ATNState:r,BasicState:class extends r{constructor(){super(),this.stateType=r.BASIC}},DecisionState:i,BlockStartState:n,BlockEndState:class extends r{constructor(){return super(),this.stateType=r.BLOCK_END,this.startState=null,this}},LoopEndState:class extends r{constructor(){return super(),this.stateType=r.LOOP_END,this.loopBackState=null,this}},RuleStartState:class extends r{constructor(){return super(),this.stateType=r.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}},RuleStopState:class extends r{constructor(){return super(),this.stateType=r.RULE_STOP,this}},TokensStartState:class extends i{constructor(){return super(),this.stateType=r.TOKEN_START,this}},PlusLoopbackState:class extends i{constructor(){return super(),this.stateType=r.PLUS_LOOP_BACK,this}},StarLoopbackState:class extends r{constructor(){return super(),this.stateType=r.STAR_LOOP_BACK,this}},StarLoopEntryState:class extends i{constructor(){return super(),this.stateType=r.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}},PlusBlockStartState:class extends n{constructor(){return super(),this.stateType=r.PLUS_BLOCK_START,this.loopBackState=null,this}},StarBlockStartState:class extends n{constructor(){return super(),this.stateType=r.STAR_BLOCK_START,this}},BasicBlockStartState:class extends n{constructor(){return super(),this.stateType=r.BLOCK_START,this}}}})),Zr=u(((t,e)=>{p();var{Set:r,Hash:i,equalArrays:n}=Xr(),s=class{hashCode(){const t=new i;return this.updateHashCode(t),t.finish()}evaluate(t,e){}evalPrecedence(t,e){return this}static andContext(t,e){if(null===t||t===s.NONE)return e;if(null===e||e===s.NONE)return t;const r=new l(t,e);return 1===r.opnds.length?r.opnds[0]:r}static orContext(t,e){if(null===t)return e;if(null===e)return t;if(t===s.NONE||e===s.NONE)return s.NONE;const r=new c(t,e);return 1===r.opnds.length?r.opnds[0]:r}},o=class extends s{constructor(t,e,r){super(),this.ruleIndex=void 0===t?-1:t,this.predIndex=void 0===e?-1:e,this.isCtxDependent=void 0!==r&&r}evaluate(t,e){const r=this.isCtxDependent?e:null;return t.sempred(r,this.ruleIndex,this.predIndex)}updateHashCode(t){t.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}equals(t){return this===t||t instanceof o&&this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}};s.NONE=new o;var a=class extends s{constructor(t){super(),this.precedence=void 0===t?0:t}evaluate(t,e){return t.precpred(e,this.precedence)}evalPrecedence(t,e){return t.precpred(e,this.precedence)?s.NONE:null}compareTo(t){return this.precedence-t.precedence}updateHashCode(t){t.update(this.precedence)}equals(t){return this===t||t instanceof a&&this.precedence===t.precedence}toString(){return"{"+this.precedence+">=prec}?"}static filterPrecedencePredicates(t){const e=[];return t.values().map((function(t){t instanceof a&&e.push(t)})),e}},l=class extends s{constructor(t,e){super();const i=new r;t instanceof l?t.opnds.map((function(t){i.add(t)})):i.add(t),e instanceof l?e.opnds.map((function(t){i.add(t)})):i.add(e);const n=a.filterPrecedencePredicates(i);if(n.length>0){let t=null;n.map((function(e){(null===t||e.precedence<t.precedence)&&(t=e)})),i.add(t)}this.opnds=Array.from(i.values())}equals(t){return this===t||t instanceof l&&n(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"AND")}evaluate(t,e){for(let r=0;r<this.opnds.length;r++)if(!this.opnds[r].evaluate(t,e))return!1;return!0}evalPrecedence(t,e){let r=!1;const i=[];for(let n=0;n<this.opnds.length;n++){const o=this.opnds[n],a=o.evalPrecedence(t,e);if(r|=a!==o,null===a)return null;a!==s.NONE&&i.push(a)}if(!r)return this;if(0===i.length)return s.NONE;let n=null;return i.map((function(t){n=null===n?t:s.andContext(n,t)})),n}toString(){const t=this.opnds.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("&&")}},c=class extends s{constructor(t,e){super();const i=new r;t instanceof c?t.opnds.map((function(t){i.add(t)})):i.add(t),e instanceof c?e.opnds.map((function(t){i.add(t)})):i.add(e);const n=a.filterPrecedencePredicates(i);if(n.length>0){const t=n.sort((function(t,e){return t.compareTo(e)})),e=t[t.length-1];i.add(e)}this.opnds=Array.from(i.values())}equals(t){return this===t||t instanceof c&&n(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"OR")}evaluate(t,e){for(let r=0;r<this.opnds.length;r++)if(this.opnds[r].evaluate(t,e))return!0;return!1}evalPrecedence(t,e){let r=!1;const i=[];for(let n=0;n<this.opnds.length;n++){const o=this.opnds[n],a=o.evalPrecedence(t,e);if(r|=a!==o,a===s.NONE)return s.NONE;null!==a&&i.push(a)}if(!r)return this;if(0===i.length)return null;return i.map((function(t){return t})),null}toString(){const t=this.opnds.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("||")}};e.exports={SemanticContext:s,PrecedencePredicate:a,Predicate:o}})),ti=u(((t,e)=>{p();var{DecisionState:r}=Qr(),{SemanticContext:i}=Zr(),{Hash:n}=Xr();function s(t,e){if(null===t){const t={state:null,alt:null,context:null,semanticContext:null};return e&&(t.reachesIntoOuterContext=0),t}{const r={};return r.state=t.state||null,r.alt=void 0===t.alt?null:t.alt,r.context=t.context||null,r.semanticContext=t.semanticContext||null,e&&(r.reachesIntoOuterContext=t.reachesIntoOuterContext||0,r.precedenceFilterSuppressed=t.precedenceFilterSuppressed||!1),r}}var o=class{constructor(t,e){this.checkContext(t,e),t=s(t),e=s(e,!0),this.state=null!==t.state?t.state:e.state,this.alt=null!==t.alt?t.alt:e.alt,this.context=null!==t.context?t.context:e.context,this.semanticContext=null!==t.semanticContext?t.semanticContext:null!==e.semanticContext?e.semanticContext:i.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,this.precedenceFilterSuppressed=e.precedenceFilterSuppressed}checkContext(t,e){null!==t.context&&void 0!==t.context||null!==e&&null!==e.context&&void 0!==e.context||(this.context=null)}hashCode(){const t=new n;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}equals(t){return this===t||t instanceof o&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&(null===this.context?null===t.context:this.context.equals(t.context))&&this.semanticContext.equals(t.semanticContext)&&this.precedenceFilterSuppressed===t.precedenceFilterSuppressed}hashCodeForConfigSet(){const t=new n;return t.update(this.state.stateNumber,this.alt,this.semanticContext),t.finish()}equalsForConfigSet(t){return this===t||t instanceof o&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&this.semanticContext.equals(t.semanticContext)}toString(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==i.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}},a=class extends o{constructor(t,e){super(t,e);const r=t.lexerActionExecutor||null;return this.lexerActionExecutor=r||(null!==e?e.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==e&&this.checkNonGreedyDecision(e,this.state),this.hashCodeForConfigSet=a.prototype.hashCode,this.equalsForConfigSet=a.prototype.equals,this}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}equals(t){return this===t||t instanceof a&&this.passedThroughNonGreedyDecision===t.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(t.lexerActionExecutor):!t.lexerActionExecutor)&&super.equals(t)}checkNonGreedyDecision(t,e){return t.passedThroughNonGreedyDecision||e instanceof r&&e.nonGreedy}};e.exports.ATNConfig=o,e.exports.LexerATNConfig=a})),ei=u(((t,e)=>{p();var{Token:r}=Jr(),i=class{constructor(t,e){this.start=t,this.stop=e}contains(t){return t>=this.start&&t<this.stop}toString(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()}get length(){return this.stop-this.start}},n=class{constructor(){this.intervals=null,this.readOnly=!1}first(t){return null===this.intervals||0===this.intervals.length?r.INVALID_TYPE:this.intervals[0].start}addOne(t){this.addInterval(new i(t,t+1))}addRange(t,e){this.addInterval(new i(t,e+1))}addInterval(t){if(null===this.intervals)this.intervals=[],this.intervals.push(t);else{for(let e=0;e<this.intervals.length;e++){const r=this.intervals[e];if(t.stop<r.start)return void this.intervals.splice(e,0,t);if(t.stop===r.start)return void(this.intervals[e].start=t.start);if(t.start<=r.stop)return this.intervals[e]=new i(Math.min(r.start,t.start),Math.max(r.stop,t.stop)),void this.reduce(e)}this.intervals.push(t)}}addSet(t){return null!==t.intervals&&t.intervals.forEach((t=>this.addInterval(t)),this),this}reduce(t){if(t<this.intervals.length-1){const e=this.intervals[t],r=this.intervals[t+1];e.stop>=r.stop?(this.intervals.splice(t+1,1),this.reduce(t)):e.stop>=r.start&&(this.intervals[t]=new i(e.start,r.stop),this.intervals.splice(t+1,1))}}complement(t,e){const r=new n;return r.addInterval(new i(t,e+1)),null!==this.intervals&&this.intervals.forEach((t=>r.removeRange(t))),r}contains(t){if(null===this.intervals)return!1;for(let e=0;e<this.intervals.length;e++)if(this.intervals[e].contains(t))return!0;return!1}removeRange(t){if(t.start===t.stop-1)this.removeOne(t.start);else if(null!==this.intervals){let e=0;for(let r=0;r<this.intervals.length;r++){const r=this.intervals[e];if(t.stop<=r.start)return;if(t.start>r.start&&t.stop<r.stop){this.intervals[e]=new i(r.start,t.start);const n=new i(t.stop,r.stop);return void this.intervals.splice(e,0,n)}t.start<=r.start&&t.stop>=r.stop?(this.intervals.splice(e,1),e-=1):t.start<r.stop?this.intervals[e]=new i(r.start,t.start):t.stop<r.stop&&(this.intervals[e]=new i(t.stop,r.stop)),e+=1}}}removeOne(t){if(null!==this.intervals)for(let e=0;e<this.intervals.length;e++){const r=this.intervals[e];if(t<r.start)return;if(t===r.start&&t===r.stop-1)return void this.intervals.splice(e,1);if(t===r.start)return void(this.intervals[e]=new i(r.start+1,r.stop));if(t===r.stop-1)return void(this.intervals[e]=new i(r.start,r.stop-1));if(t<r.stop-1){const n=new i(r.start,t);return r.start=t+1,void this.intervals.splice(e,0,n)}}}toString(t,e,r){return t=t||null,e=e||null,r=r||!1,null===this.intervals?"{}":null!==t||null!==e?this.toTokenString(t,e):r?this.toCharString():this.toIndexString()}toCharString(){const t=[];for(let e=0;e<this.intervals.length;e++){const i=this.intervals[e];i.stop===i.start+1?i.start===r.EOF?t.push("<EOF>"):t.push("'"+String.fromCharCode(i.start)+"'"):t.push("'"+String.fromCharCode(i.start)+"'..'"+String.fromCharCode(i.stop-1)+"'")}return t.length>1?"{"+t.join(", ")+"}":t[0]}toIndexString(){const t=[];for(let e=0;e<this.intervals.length;e++){const i=this.intervals[e];i.stop===i.start+1?i.start===r.EOF?t.push("<EOF>"):t.push(i.start.toString()):t.push(i.start.toString()+".."+(i.stop-1).toString())}return t.length>1?"{"+t.join(", ")+"}":t[0]}toTokenString(t,e){const r=[];for(let i=0;i<this.intervals.length;i++){const n=this.intervals[i];for(let i=n.start;i<n.stop;i++)r.push(this.elementName(t,e,i))}return r.length>1?"{"+r.join(", ")+"}":r[0]}elementName(t,e,i){return i===r.EOF?"<EOF>":i===r.EPSILON?"<EPSILON>":t[i]||e[i]}get length(){return this.intervals.map((t=>t.length)).reduce(((t,e)=>t+e))}};e.exports={Interval:i,IntervalSet:n}})),ri=u(((t,e)=>{p();var{Token:r}=Jr(),{IntervalSet:i}=ei(),{Predicate:n,PrecedencePredicate:s}=Zr(),o=class{constructor(t){if(null==t)throw"target cannot be null.";this.target=t,this.isEpsilon=!1,this.label=null}};o.EPSILON=1,o.RANGE=2,o.RULE=3,o.PREDICATE=4,o.ATOM=5,o.ACTION=6,o.SET=7,o.NOT_SET=8,o.WILDCARD=9,o.PRECEDENCE=10,o.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],o.serializationTypes={EpsilonTransition:o.EPSILON,RangeTransition:o.RANGE,RuleTransition:o.RULE,PredicateTransition:o.PREDICATE,AtomTransition:o.ATOM,ActionTransition:o.ACTION,SetTransition:o.SET,NotSetTransition:o.NOT_SET,WildcardTransition:o.WILDCARD,PrecedencePredicateTransition:o.PRECEDENCE};var a=class extends o{constructor(t){super(t)}},l=class extends o{constructor(t,e){super(t),this.serializationType=o.SET,null!=e?this.label=e:(this.label=new i,this.label.addOne(r.INVALID_TYPE))}matches(t,e,r){return this.label.contains(t)}toString(){return this.label.toString()}};e.exports={Transition:o,AtomTransition:class extends o{constructor(t,e){super(t),this.label_=e,this.label=this.makeLabel(),this.serializationType=o.ATOM}makeLabel(){const t=new i;return t.addOne(this.label_),t}matches(t,e,r){return this.label_===t}toString(){return this.label_}},SetTransition:l,NotSetTransition:class extends l{constructor(t,e){super(t,e),this.serializationType=o.NOT_SET}matches(t,e,r){return t>=e&&t<=r&&!super.matches(t,e,r)}toString(){return"~"+super.toString()}},RuleTransition:class extends o{constructor(t,e,r,i){super(t),this.ruleIndex=e,this.precedence=r,this.followState=i,this.serializationType=o.RULE,this.isEpsilon=!0}matches(t,e,r){return!1}},ActionTransition:class extends o{constructor(t,e,r,i){super(t),this.serializationType=o.ACTION,this.ruleIndex=e,this.actionIndex=void 0===r?-1:r,this.isCtxDependent=void 0!==i&&i,this.isEpsilon=!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}},EpsilonTransition:class extends o{constructor(t,e){super(t),this.serializationType=o.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=e}matches(t,e,r){return!1}toString(){return"epsilon"}},RangeTransition:class extends o{constructor(t,e,r){super(t),this.serializationType=o.RANGE,this.start=e,this.stop=r,this.label=this.makeLabel()}makeLabel(){const t=new i;return t.addRange(this.start,this.stop),t}matches(t,e,r){return t>=this.start&&t<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}},WildcardTransition:class extends o{constructor(t){super(t),this.serializationType=o.WILDCARD}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}},PredicateTransition:class extends a{constructor(t,e,r,i){super(t),this.serializationType=o.PREDICATE,this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=i,this.isEpsilon=!0}matches(t,e,r){return!1}getPredicate(){return new n(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}},PrecedencePredicateTransition:class extends a{constructor(t,e){super(t),this.serializationType=o.PRECEDENCE,this.precedence=e,this.isEpsilon=!0}matches(t,e,r){return!1}getPredicate(){return new s(this.precedence)}toString(){return this.precedence+" >= _p"}},AbstractPredicateTransition:a}})),ii=u(((t,e)=>{p();var{Token:r}=Jr(),{Interval:i}=ei(),n=new i(-1,-2),s=class{},o=class extends s{constructor(){super()}},a=class extends o{constructor(){super()}},l=class extends a{constructor(){super()}},c=class extends l{constructor(){super()}},u=class extends l{constructor(t){super(),this.parentCtx=null,this.symbol=t}getChild(t){return null}getSymbol(){return this.symbol}getParent(){return this.parentCtx}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return n;const t=this.symbol.tokenIndex;return new i(t,t)}getChildCount(){return 0}accept(t){return t.visitTerminal(this)}getText(){return this.symbol.text}toString(){return this.symbol.type===r.EOF?"<EOF>":this.symbol.text}},h=class{walk(t,e){if(e instanceof c||void 0!==e.isErrorNode&&e.isErrorNode())t.visitErrorNode(e);else if(e instanceof l)t.visitTerminal(e);else{this.enterRule(t,e);for(let r=0;r<e.getChildCount();r++){const i=e.getChild(r);this.walk(t,i)}this.exitRule(t,e)}}enterRule(t,e){const r=e.getRuleContext();t.enterEveryRule(r),r.enterRule(t)}exitRule(t,e){const r=e.getRuleContext();r.exitRule(t),t.exitEveryRule(r)}};h.DEFAULT=new h,e.exports={RuleNode:class extends a{constructor(){super()}getRuleContext(){throw new Error("missing interface implementation")}},ErrorNode:c,TerminalNode:l,ErrorNodeImpl:class extends u{constructor(t){super(t)}isErrorNode(){return!0}accept(t){return t.visitErrorNode(this)}},TerminalNodeImpl:u,ParseTreeListener:class{visitTerminal(t){}visitErrorNode(t){}enterEveryRule(t){}exitEveryRule(t){}},ParseTreeVisitor:class{visit(t){return Array.isArray(t)?t.map((function(t){return t.accept(this)}),this):t.accept(this)}visitChildren(t){return t.children?this.visit(t.children):null}visitTerminal(t){}visitErrorNode(t){}},ParseTreeWalker:h,INVALID_INTERVAL:n}})),ni=u(((t,e)=>{p();var r=Xr(),{Token:i}=Jr(),{ErrorNode:n,TerminalNode:s,RuleNode:o}=ii(),a={toStringTree:function(t,e,i){e=e||null,null!==(i=i||null)&&(e=i.ruleNames);let n=a.getNodeText(t,e);n=r.escapeWhitespace(n,!1);const s=t.getChildCount();if(0===s)return n;let o="("+n+" ";s>0&&(n=a.toStringTree(t.getChild(0),e),o=o.concat(n));for(let r=1;r<s;r++)n=a.toStringTree(t.getChild(r),e),o=o.concat(" "+n);return o=o.concat(")"),o},getNodeText:function(t,e,r){if(e=e||null,null!==(r=r||null)&&(e=r.ruleNames),null!==e){if(t instanceof o){const r=t.getRuleContext().getAltNumber();return 0!=r?e[t.ruleIndex]+":"+r:e[t.ruleIndex]}if(t instanceof n)return t.toString();if(t instanceof s&&null!==t.symbol)return t.symbol.text}const a=t.getPayload();return a instanceof i?a.text:t.getPayload().toString()},getChildren:function(t){const e=[];for(let r=0;r<t.getChildCount();r++)e.push(t.getChild(r));return e},getAncestors:function(t){let e=[];for(t=t.getParent();null!==t;)e=[t].concat(e),t=t.getParent();return e},findAllTokenNodes:function(t,e){return a.findAllNodes(t,e,!0)},findAllRuleNodes:function(t,e){return a.findAllNodes(t,e,!1)},findAllNodes:function(t,e,r){const i=[];return a._findAllNodes(t,e,r,i),i},_findAllNodes:function(t,e,r,i){r&&t instanceof s?t.symbol.type===e&&i.push(t):!r&&t instanceof o&&t.ruleIndex===e&&i.push(t);for(let n=0;n<t.getChildCount();n++)a._findAllNodes(t.getChild(n),e,r,i)},descendants:function(t){let e=[t];for(let r=0;r<t.getChildCount();r++)e=e.concat(a.descendants(t.getChild(r)));return e}};e.exports=a})),si=u(((t,e)=>{p();var{RuleNode:r}=ii(),{INVALID_INTERVAL:i}=ii(),n=ni();e.exports=class extends r{constructor(t,e){super(),this.parentCtx=t||null,this.invokingState=e||-1}depth(){let t=0,e=this;for(;null!==e;)e=e.parentCtx,t+=1;return t}isEmpty(){return-1===this.invokingState}getSourceInterval(){return i}getRuleContext(){return this}getPayload(){return this}getText(){return 0===this.getChildCount()?"":this.children.map((function(t){return t.getText()})).join("")}getAltNumber(){return 0}setAltNumber(t){}getChild(t){return null}getChildCount(){return 0}accept(t){return t.visitChildren(this)}toStringTree(t,e){return n.toStringTree(this,t,e)}toString(t,e){t=t||null,e=e||null;let r=this,i="[";for(;null!==r&&r!==e;){if(null===t)r.isEmpty()||(i+=r.invokingState);else{const e=r.ruleIndex;i+=e>=0&&e<t.length?t[e]:""+e}null===r.parentCtx||null===t&&r.parentCtx.isEmpty()||(i+=" "),r=r.parentCtx}return i+="]",i}}})),oi=u(((t,e)=>{p();var r=si(),{Hash:i,Map:n,equalArrays:s}=Xr(),o=class{constructor(t){this.cachedHashCode=t}isEmpty(){return this===o.EMPTY}hasEmptyPath(){return this.getReturnState(this.length-1)===o.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}};o.EMPTY=null,o.EMPTY_RETURN_STATE=2147483647,o.globalNodeCount=1,o.id=o.globalNodeCount;var a=class extends o{constructor(t,e){let r=0;const n=new i;null!==t?n.update(t,e):n.update(1),r=n.finish(),super(r),this.parentCtx=t,this.returnState=e}getParent(t){return this.parentCtx}getReturnState(t){return this.returnState}equals(t){return this===t||t instanceof a&&this.hashCode()===t.hashCode()&&this.returnState===t.returnState&&(null==this.parentCtx?null==t.parentCtx:this.parentCtx.equals(t.parentCtx))}toString(){const t=null===this.parentCtx?"":this.parentCtx.toString();return 0===t.length?this.returnState===o.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+t}get length(){return 1}static create(t,e){return e===o.EMPTY_RETURN_STATE&&null===t?o.EMPTY:new a(t,e)}},l=class extends a{constructor(){super(null,o.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(t){return null}getReturnState(t){return this.returnState}equals(t){return this===t}toString(){return"$"}};o.EMPTY=new l;var c=class extends o{constructor(t,e){const r=new i;return r.update(t,e),super(r.finish()),this.parents=t,this.returnStates=e,this}isEmpty(){return this.returnStates[0]===o.EMPTY_RETURN_STATE}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}equals(t){return this===t||t instanceof c&&this.hashCode()===t.hashCode()&&s(this.returnStates,t.returnStates)&&s(this.parents,t.parents)}toString(){if(this.isEmpty())return"[]";{let t="[";for(let e=0;e<this.returnStates.length;e++)e>0&&(t+=", "),this.returnStates[e]!==o.EMPTY_RETURN_STATE?(t+=this.returnStates[e],null!==this.parents[e]?t=t+" "+this.parents[e]:t+="null"):t+="$";return t+"]"}}get length(){return this.returnStates.length}};e.exports={merge:function t(e,r,i,s){if(e===r)return e;if(e instanceof a&&r instanceof a)return function(e,r,i,n){if(null!==n){let t=n.get(e,r);if(null!==t)return t;if(t=n.get(r,e),null!==t)return t}const s=function(t,e,r){if(r){if(t===o.EMPTY)return o.EMPTY;if(e===o.EMPTY)return o.EMPTY}else{if(t===o.EMPTY&&e===o.EMPTY)return o.EMPTY;if(t===o.EMPTY){const t=[e.returnState,o.EMPTY_RETURN_STATE],r=[e.parentCtx,null];return new c(r,t)}if(e===o.EMPTY){const e=[t.returnState,o.EMPTY_RETURN_STATE],r=[t.parentCtx,null];return new c(r,e)}}return null}(e,r,i);if(null!==s)return null!==n&&n.set(e,r,s),s;if(e.returnState===r.returnState){const s=t(e.parentCtx,r.parentCtx,i,n);if(s===e.parentCtx)return e;if(s===r.parentCtx)return r;const o=a.create(s,e.returnState);return null!==n&&n.set(e,r,o),o}{let t=null;if((e===r||null!==e.parentCtx&&e.parentCtx===r.parentCtx)&&(t=e.parentCtx),null!==t){const i=[e.returnState,r.returnState];e.returnState>r.returnState&&(i[0]=r.returnState,i[1]=e.returnState);const s=new c([t,t],i);return null!==n&&n.set(e,r,s),s}const i=[e.returnState,r.returnState];let s=[e.parentCtx,r.parentCtx];e.returnState>r.returnState&&(i[0]=r.returnState,i[1]=e.returnState,s=[r.parentCtx,e.parentCtx]);const o=new c(s,i);return null!==n&&n.set(e,r,o),o}}(e,r,i,s);if(i){if(e instanceof l)return e;if(r instanceof l)return r}return e instanceof a&&(e=new c([e.getParent()],[e.returnState])),r instanceof a&&(r=new c([r.getParent()],[r.returnState])),function(e,r,i,s){if(null!==s){let t=s.get(e,r);if(null!==t)return t;if(t=s.get(r,e),null!==t)return t}let l=0,u=0,h=0,p=[],d=[];for(;l<e.returnStates.length&&u<r.returnStates.length;){const n=e.parents[l],a=r.parents[u];if(e.returnStates[l]===r.returnStates[u]){const r=e.returnStates[l];r===o.EMPTY_RETURN_STATE&&null===n&&null===a||null!==n&&null!==a&&n===a?(d[h]=n,p[h]=r):(d[h]=t(n,a,i,s),p[h]=r),l+=1,u+=1}else e.returnStates[l]<r.returnStates[u]?(d[h]=n,p[h]=e.returnStates[l],l+=1):(d[h]=a,p[h]=r.returnStates[u],u+=1);h+=1}if(l<e.returnStates.length)for(let t=l;t<e.returnStates.length;t++)d[h]=e.parents[t],p[h]=e.returnStates[t],h+=1;else for(let t=u;t<r.returnStates.length;t++)d[h]=r.parents[t],p[h]=r.returnStates[t],h+=1;if(h<d.length){if(1===h){const t=a.create(d[0],p[0]);return null!==s&&s.set(e,r,t),t}d=d.slice(0,h),p=p.slice(0,h)}const f=new c(d,p);return f===e?(null!==s&&s.set(e,r,e),e):f===r?(null!==s&&s.set(e,r,r),r):(function(t){const e=new n;for(let r=0;r<t.length;r++){const i=t[r];e.containsKey(i)||e.put(i,i)}for(let r=0;r<t.length;r++)t[r]=e.get(t[r])}(d),null!==s&&s.set(e,r,f),f)}(e,r,i,s)},PredictionContext:o,PredictionContextCache:class{constructor(){this.cache=new n}add(t){if(t===o.EMPTY)return o.EMPTY;const e=this.cache.get(t)||null;return null!==e?e:(this.cache.put(t,t),t)}get(t){return this.cache.get(t)||null}get length(){return this.cache.length}},SingletonPredictionContext:a,predictionContextFromRuleContext:function t(e,i){if(null==i&&(i=r.EMPTY),null===i.parentCtx||i===r.EMPTY)return o.EMPTY;const n=t(e,i.parentCtx),s=e.states[i.invokingState].transitions[0];return a.create(n,s.followState.stateNumber)},getCachedPredictionContext:function t(e,r,i){if(e.isEmpty())return e;let n=i.get(e)||null;if(null!==n)return n;if(n=r.get(e),null!==n)return i.put(e,n),n;let s=!1,l=[];for(let n=0;n<l.length;n++){const o=t(e.getParent(n),r,i);if(s||o!==e.getParent(n)){if(!s){l=[];for(let t=0;t<e.length;t++)l[t]=e.getParent(t);s=!0}l[n]=o}}if(!s)return r.add(e),i.put(e,e),e;let u=null;return u=0===l.length?o.EMPTY:1===l.length?a.create(l[0],e.getReturnState(0)):new c(l,e.returnStates),r.add(u),i.put(u,u),i.put(e,u),u}}})),ai=u(((t,e)=>{p();var{Set:r,BitSet:i}=Xr(),{Token:n}=Jr(),{ATNConfig:s}=ti(),{IntervalSet:o}=ei(),{RuleStopState:a}=Qr(),{RuleTransition:l,NotSetTransition:c,WildcardTransition:u,AbstractPredicateTransition:h}=ri(),{predictionContextFromRuleContext:d,PredictionContext:f,SingletonPredictionContext:_}=oi(),y=class{constructor(t){this.atn=t}getDecisionLookahead(t){if(null===t)return null;const e=t.transitions.length,n=[];for(let s=0;s<e;s++){n[s]=new o;const e=new r,a=!1;this._LOOK(t.transition(s).target,null,f.EMPTY,n[s],e,new i,a,!1),(0===n[s].length||n[s].contains(y.HIT_PRED))&&(n[s]=null)}return n}LOOK(t,e,n){const s=new o,a=null!==(n=n||null)?d(t.atn,n):null;return this._LOOK(t,e,a,s,new r,new i,!0,!0),s}_LOOK(t,e,r,i,o,p,d,g){const m=new s({state:t,alt:0,context:r},null);if(!o.contains(m)){if(o.add(m),t===e){if(null===r)return void i.addOne(n.EPSILON);if(r.isEmpty()&&g)return void i.addOne(n.EOF)}if(t instanceof a){if(null===r)return void i.addOne(n.EPSILON);if(r.isEmpty()&&g)return void i.addOne(n.EOF);if(r!==f.EMPTY){const n=p.contains(t.ruleIndex);try{p.remove(t.ruleIndex);for(let t=0;t<r.length;t++){const n=this.atn.states[r.getReturnState(t)];this._LOOK(n,e,r.getParent(t),i,o,p,d,g)}}finally{n&&p.add(t.ruleIndex)}return}}for(let s=0;s<t.transitions.length;s++){const a=t.transitions[s];if(a.constructor===l){if(p.contains(a.target.ruleIndex))continue;const t=_.create(r,a.followState.stateNumber);try{p.add(a.target.ruleIndex),this._LOOK(a.target,e,t,i,o,p,d,g)}finally{p.remove(a.target.ruleIndex)}}else if(a instanceof h)d?this._LOOK(a.target,e,r,i,o,p,d,g):i.addOne(y.HIT_PRED);else if(a.isEpsilon)this._LOOK(a.target,e,r,i,o,p,d,g);else if(a.constructor===u)i.addRange(n.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{let t=a.label;null!==t&&(a instanceof c&&(t=t.complement(n.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),i.addSet(t))}}}}};y.HIT_PRED=n.INVALID_TYPE,e.exports=y})),li=u(((t,e)=>{p();var r=ai(),{IntervalSet:i}=ei(),{Token:n}=Jr(),s=class{constructor(t,e){this.grammarType=t,this.maxTokenType=e,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}nextTokensInContext(t,e){return new r(this).LOOK(t,null,e)}nextTokensNoContext(t){return null!==t.nextTokenWithinRule||(t.nextTokenWithinRule=this.nextTokensInContext(t,null),t.nextTokenWithinRule.readOnly=!0),t.nextTokenWithinRule}nextTokens(t,e){return void 0===e?this.nextTokensNoContext(t):this.nextTokensInContext(t,e)}addState(t){null!==t&&(t.atn=this,t.stateNumber=this.states.length),this.states.push(t)}removeState(t){this.states[t.stateNumber]=null}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,t.decision}getDecisionState(t){return 0===this.decisionToState.length?null:this.decisionToState[t]}getExpectedTokens(t,e){if(t<0||t>=this.states.length)throw"Invalid state number.";const r=this.states[t];let s=this.nextTokens(r);if(!s.contains(n.EPSILON))return s;const o=new i;for(o.addSet(s),o.removeOne(n.EPSILON);null!==e&&e.invokingState>=0&&s.contains(n.EPSILON);){const t=this.states[e.invokingState].transitions[0];s=this.nextTokens(t.followState),o.addSet(s),o.removeOne(n.EPSILON),e=e.parentCtx}return s.contains(n.EPSILON)&&o.addOne(n.EOF),o}};s.INVALID_ALT_NUMBER=0,e.exports=s})),ci=u(((t,e)=>{p(),e.exports={LEXER:0,PARSER:1}})),ui=u(((t,e)=>{p();var r=class{constructor(t){void 0===t&&(t=null),this.readOnly=!1,this.verifyATN=null===t||t.verifyATN,this.generateRuleBypassTransitions=null!==t&&t.generateRuleBypassTransitions}};r.defaultOptions=new r,r.defaultOptions.readOnly=!0,e.exports=r})),hi=u(((t,e)=>{p();var r={CHANNEL:0,CUSTOM:1,MODE:2,MORE:3,POP_MODE:4,PUSH_MODE:5,SKIP:6,TYPE:7},i=class{constructor(t){this.actionType=t,this.isPositionDependent=!1}hashCode(){const t=new Hash;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.actionType)}equals(t){return this===t}},n=class extends i{constructor(){super(r.SKIP)}execute(t){t.skip()}toString(){return"skip"}};n.INSTANCE=new n;var s=class extends i{constructor(t){super(r.TYPE),this.type=t}execute(t){t.type=this.type}updateHashCode(t){t.update(this.actionType,this.type)}equals(t){return this===t||t instanceof s&&this.type===t.type}toString(){return"type("+this.type+")"}},o=class extends i{constructor(t){super(r.PUSH_MODE),this.mode=t}execute(t){t.pushMode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof o&&this.mode===t.mode}toString(){return"pushMode("+this.mode+")"}},a=class extends i{constructor(){super(r.POP_MODE)}execute(t){t.popMode()}toString(){return"popMode"}};a.INSTANCE=new a;var l=class extends i{constructor(){super(r.MORE)}execute(t){t.more()}toString(){return"more"}};l.INSTANCE=new l;var c=class extends i{constructor(t){super(r.MODE),this.mode=t}execute(t){t.mode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof c&&this.mode===t.mode}toString(){return"mode("+this.mode+")"}},u=class extends i{constructor(t,e){super(r.CUSTOM),this.ruleIndex=t,this.actionIndex=e,this.isPositionDependent=!0}execute(t){t.action(null,this.ruleIndex,this.actionIndex)}updateHashCode(t){t.update(this.actionType,this.ruleIndex,this.actionIndex)}equals(t){return this===t||t instanceof u&&this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex}},h=class extends i{constructor(t){super(r.CHANNEL),this.channel=t}execute(t){t._channel=this.channel}updateHashCode(t){t.update(this.actionType,this.channel)}equals(t){return this===t||t instanceof h&&this.channel===t.channel}toString(){return"channel("+this.channel+")"}},d=class extends i{constructor(t,e){super(e.actionType),this.offset=t,this.action=e,this.isPositionDependent=!0}execute(t){this.action.execute(t)}updateHashCode(t){t.update(this.actionType,this.offset,this.action)}equals(t){return this===t||t instanceof d&&this.offset===t.offset&&this.action===t.action}};e.exports={LexerActionType:r,LexerSkipAction:n,LexerChannelAction:h,LexerCustomAction:u,LexerIndexedCustomAction:d,LexerMoreAction:l,LexerTypeAction:s,LexerPushModeAction:o,LexerPopModeAction:a,LexerModeAction:c}})),pi=u(((t,e)=>{p();var{Token:r}=Jr(),i=li(),n=ci(),{ATNState:s,BasicState:o,DecisionState:a,BlockStartState:l,BlockEndState:c,LoopEndState:u,RuleStartState:h,RuleStopState:d,TokensStartState:f,PlusLoopbackState:_,StarLoopbackState:y,StarLoopEntryState:g,PlusBlockStartState:m,StarBlockStartState:x,BasicBlockStartState:T}=Qr(),{Transition:v,AtomTransition:S,SetTransition:b,NotSetTransition:E,RuleTransition:N,RangeTransition:A,ActionTransition:R,EpsilonTransition:C,WildcardTransition:O,PredicateTransition:L,PrecedencePredicateTransition:w}=ri(),{IntervalSet:I}=ei(),P=ui(),{LexerActionType:k,LexerSkipAction:D,LexerChannelAction:F,LexerCustomAction:M,LexerMoreAction:j,LexerTypeAction:U,LexerPushModeAction:H,LexerPopModeAction:K,LexerModeAction:B}=hi(),z="59627784-3BE5-417A-B9EB-8131A7286089",V=["AADB8D7E-AEEF-4415-AD2B-8204D6CF042E",z],q=z;function G(t,e){const r=[];return r[t-1]=e,r.map((function(t){return e}))}var $=function(){const t=[];for(let e=0;e<256;e++)t[e]=(e+256).toString(16).substr(1).toUpperCase();return t}();e.exports=class{constructor(t){null==t&&(t=P.defaultOptions),this.deserializationOptions=t,this.stateFactories=null,this.actionFactories=null}isFeatureSupported(t,e){const r=V.indexOf(t);return!(r<0)&&V.indexOf(e)>=r}deserialize(t){this.reset(t),this.checkVersion(),this.checkUUID();const e=this.readATN();this.readStates(e),this.readRules(e),this.readModes(e);const r=[];return this.readSets(e,r,this.readInt.bind(this)),this.isFeatureSupported(z,this.uuid)&&this.readSets(e,r,this.readInt32.bind(this)),this.readEdges(e,r),this.readDecisions(e),this.readLexerActions(e),this.markPrecedenceDecisions(e),this.verifyATN(e),this.deserializationOptions.generateRuleBypassTransitions&&e.grammarType===n.PARSER&&(this.generateRuleBypassTransitions(e),this.verifyATN(e)),e}reset(t){const e=t.split("").map((function(t){const e=t.charCodeAt(0);return e>1?e-2:e+65534}));e[0]=t.charCodeAt(0),this.data=e,this.pos=0}checkVersion(){const t=this.readInt();if(3!==t)throw"Could not deserialize ATN with version "+t+" (expected 3)."}checkUUID(){const t=this.readUUID();if(V.indexOf(t)<0)throw q;this.uuid=t}readATN(){const t=this.readInt(),e=this.readInt();return new i(t,e)}readStates(t){let e,r,i;const n=[],o=[],a=this.readInt();for(let e=0;e<a;e++){const e=this.readInt();if(e===s.INVALID_TYPE){t.addState(null);continue}let r=this.readInt();65535===r&&(r=-1);const i=this.stateFactory(e,r);if(e===s.LOOP_END){const t=this.readInt();n.push([i,t])}else if(i instanceof l){const t=this.readInt();o.push([i,t])}t.addState(i)}for(e=0;e<n.length;e++)r=n[e],r[0].loopBackState=t.states[r[1]];for(e=0;e<o.length;e++)r=o[e],r[0].endState=t.states[r[1]];let c=this.readInt();for(e=0;e<c;e++)i=this.readInt(),t.states[i].nonGreedy=!0;let u=this.readInt();for(e=0;e<u;e++)i=this.readInt(),t.states[i].isPrecedenceRule=!0}readRules(t){let e;const i=this.readInt();for(t.grammarType===n.LEXER&&(t.ruleToTokenType=G(i,0)),t.ruleToStartState=G(i,0),e=0;e<i;e++){const i=this.readInt();if(t.ruleToStartState[e]=t.states[i],t.grammarType===n.LEXER){let i=this.readInt();65535===i&&(i=r.EOF),t.ruleToTokenType[e]=i}}for(t.ruleToStopState=G(i,0),e=0;e<t.states.length;e++){const r=t.states[e];r instanceof d&&(t.ruleToStopState[r.ruleIndex]=r,t.ruleToStartState[r.ruleIndex].stopState=r)}}readModes(t){const e=this.readInt();for(let r=0;r<e;r++){let e=this.readInt();t.modeToStartState.push(t.states[e])}}readSets(t,e,r){const i=this.readInt();for(let t=0;t<i;t++){const t=new I;e.push(t);const i=this.readInt();0!==this.readInt()&&t.addOne(-1);for(let e=0;e<i;e++){const e=r(),i=r();t.addRange(e,i)}}}readEdges(t,e){let r,i,n,s,o;const a=this.readInt();for(r=0;r<a;r++){const r=this.readInt(),i=this.readInt(),n=this.readInt(),o=this.readInt(),a=this.readInt(),l=this.readInt();s=this.edgeFactory(t,n,r,i,o,a,l,e),t.states[r].addTransition(s)}for(r=0;r<t.states.length;r++)for(n=t.states[r],i=0;i<n.transitions.length;i++){const e=n.transitions[i];if(!(e instanceof N))continue;let r=-1;t.ruleToStartState[e.target.ruleIndex].isPrecedenceRule&&0===e.precedence&&(r=e.target.ruleIndex),s=new C(e.followState,r),t.ruleToStopState[e.target.ruleIndex].addTransition(s)}for(r=0;r<t.states.length;r++){if(n=t.states[r],n instanceof l){if(null===n.endState)throw"IllegalState";if(null!==n.endState.startState)throw"IllegalState";n.endState.startState=n}if(n instanceof _)for(i=0;i<n.transitions.length;i++)o=n.transitions[i].target,o instanceof m&&(o.loopBackState=n);else if(n instanceof y)for(i=0;i<n.transitions.length;i++)o=n.transitions[i].target,o instanceof g&&(o.loopBackState=n)}}readDecisions(t){const e=this.readInt();for(let r=0;r<e;r++){const e=this.readInt(),i=t.states[e];t.decisionToState.push(i),i.decision=r}}readLexerActions(t){if(t.grammarType===n.LEXER){const e=this.readInt();t.lexerActions=G(e,null);for(let r=0;r<e;r++){const e=this.readInt();let i=this.readInt();65535===i&&(i=-1);let n=this.readInt();65535===n&&(n=-1),t.lexerActions[r]=this.lexerActionFactory(e,i,n)}}}generateRuleBypassTransitions(t){let e;const r=t.ruleToStartState.length;for(e=0;e<r;e++)t.ruleToTokenType[e]=t.maxTokenType+e+1;for(e=0;e<r;e++)this.generateRuleBypassTransition(t,e)}generateRuleBypassTransition(t,e){let r,i;const n=new T;n.ruleIndex=e,t.addState(n);const s=new c;s.ruleIndex=e,t.addState(s),n.endState=s,t.defineDecisionState(n),s.startState=n;let a=null,l=null;if(t.ruleToStartState[e].isPrecedenceRule){for(l=null,r=0;r<t.states.length;r++)if(i=t.states[r],this.stateIsEndStateFor(i,e)){l=i,a=i.loopBackState.transitions[0];break}if(null===a)throw"Couldn't identify final state of the precedence rule prefix section."}else l=t.ruleToStopState[e];for(r=0;r<t.states.length;r++){i=t.states[r];for(let t=0;t<i.transitions.length;t++){const e=i.transitions[t];e!==a&&e.target===l&&(e.target=s)}}const u=t.ruleToStartState[e],h=u.transitions.length;for(;h>0;)n.addTransition(u.transitions[h-1]),u.transitions=u.transitions.slice(-1);t.ruleToStartState[e].addTransition(new C(n)),s.addTransition(new C(l));const p=new o;t.addState(p),p.addTransition(new S(s,t.ruleToTokenType[e])),n.addTransition(new C(p))}stateIsEndStateFor(t,e){if(t.ruleIndex!==e)return null;if(!(t instanceof g))return null;const r=t.transitions[t.transitions.length-1].target;return r instanceof u&&r.epsilonOnlyTransitions&&r.transitions[0].target instanceof d?t:null}markPrecedenceDecisions(t){for(let e=0;e<t.states.length;e++){const r=t.states[e];if(r instanceof g&&t.ruleToStartState[r.ruleIndex].isPrecedenceRule){const t=r.transitions[r.transitions.length-1].target;t instanceof u&&t.epsilonOnlyTransitions&&t.transitions[0].target instanceof d&&(r.isPrecedenceDecision=!0)}}}verifyATN(t){if(this.deserializationOptions.verifyATN)for(let e=0;e<t.states.length;e++){const r=t.states[e];if(null!==r)if(this.checkCondition(r.epsilonOnlyTransitions||r.transitions.length<=1),r instanceof m)this.checkCondition(null!==r.loopBackState);else if(r instanceof g)if(this.checkCondition(null!==r.loopBackState),this.checkCondition(2===r.transitions.length),r.transitions[0].target instanceof x)this.checkCondition(r.transitions[1].target instanceof u),this.checkCondition(!r.nonGreedy);else{if(!(r.transitions[0].target instanceof u))throw"IllegalState";this.checkCondition(r.transitions[1].target instanceof x),this.checkCondition(r.nonGreedy)}else r instanceof y?(this.checkCondition(1===r.transitions.length),this.checkCondition(r.transitions[0].target instanceof g)):r instanceof u?this.checkCondition(null!==r.loopBackState):r instanceof h?this.checkCondition(null!==r.stopState):r instanceof l?this.checkCondition(null!==r.endState):r instanceof c?this.checkCondition(null!==r.startState):r instanceof a?this.checkCondition(r.transitions.length<=1||r.decision>=0):this.checkCondition(r.transitions.length<=1||r instanceof d)}}checkCondition(t,e){if(!t)throw null==e&&(e="IllegalState"),e}readInt(){return this.data[this.pos++]}readInt32(){return this.readInt()|this.readInt()<<16}readLong(){return 4294967295&this.readInt32()|this.readInt32()<<32}readUUID(){const t=[];for(let e=7;e>=0;e--){const r=this.readInt();t[2*e+1]=255&r,t[2*e]=r>>8&255}return $[t[0]]+$[t[1]]+$[t[2]]+$[t[3]]+"-"+$[t[4]]+$[t[5]]+"-"+$[t[6]]+$[t[7]]+"-"+$[t[8]]+$[t[9]]+"-"+$[t[10]]+$[t[11]]+$[t[12]]+$[t[13]]+$[t[14]]+$[t[15]]}edgeFactory(t,e,i,n,s,o,a,l){const c=t.states[n];switch(e){case v.EPSILON:return new C(c);case v.RANGE:return new A(c,0!==a?r.EOF:s,o);case v.RULE:return new N(t.states[s],o,a,c);case v.PREDICATE:return new L(c,s,o,0!==a);case v.PRECEDENCE:return new w(c,s);case v.ATOM:return new S(c,0!==a?r.EOF:s);case v.ACTION:return new R(c,s,o,0!==a);case v.SET:return new b(c,l[s]);case v.NOT_SET:return new E(c,l[s]);case v.WILDCARD:return new O(c);default:throw"The specified transition type: "+e+" is not valid."}}stateFactory(t,e){if(null===this.stateFactories){const t=[];t[s.INVALID_TYPE]=null,t[s.BASIC]=()=>new o,t[s.RULE_START]=()=>new h,t[s.BLOCK_START]=()=>new T,t[s.PLUS_BLOCK_START]=()=>new m,t[s.STAR_BLOCK_START]=()=>new x,t[s.TOKEN_START]=()=>new f,t[s.RULE_STOP]=()=>new d,t[s.BLOCK_END]=()=>new c,t[s.STAR_LOOP_BACK]=()=>new y,t[s.STAR_LOOP_ENTRY]=()=>new g,t[s.PLUS_LOOP_BACK]=()=>new _,t[s.LOOP_END]=()=>new u,this.stateFactories=t}if(t>this.stateFactories.length||null===this.stateFactories[t])throw"The specified state type "+t+" is not valid.";{const r=this.stateFactories[t]();if(null!==r)return r.ruleIndex=e,r}}lexerActionFactory(t,e,r){if(null===this.actionFactories){const t=[];t[k.CHANNEL]=(t,e)=>new F(t),t[k.CUSTOM]=(t,e)=>new M(t,e),t[k.MODE]=(t,e)=>new B(t),t[k.MORE]=(t,e)=>j.INSTANCE,t[k.POP_MODE]=(t,e)=>K.INSTANCE,t[k.PUSH_MODE]=(t,e)=>new H(t),t[k.SKIP]=(t,e)=>D.INSTANCE,t[k.TYPE]=(t,e)=>new U(t),this.actionFactories=t}if(t>this.actionFactories.length||null===this.actionFactories[t])throw"The specified lexer action type "+t+" is not valid.";return this.actionFactories[t](e,r)}}})),di=u(((t,e)=>{p();var r=class{syntaxError(t,e,r,i,n,s){}reportAmbiguity(t,e,r,i,n,s,o){}reportAttemptingFullContext(t,e,r,i,n,s){}reportContextSensitivity(t,e,r,i,n,s){}},i=class extends r{constructor(){super()}syntaxError(t,e,r,i,n,s){console.error("line "+r+":"+i+" "+n)}};i.INSTANCE=new i,e.exports={ErrorListener:r,ConsoleErrorListener:i,ProxyErrorListener:class extends r{constructor(t){if(super(),null===t)throw"delegates";return this.delegates=t,this}syntaxError(t,e,r,i,n,s){this.delegates.map((o=>o.syntaxError(t,e,r,i,n,s)))}reportAmbiguity(t,e,r,i,n,s,o){this.delegates.map((a=>a.reportAmbiguity(t,e,r,i,n,s,o)))}reportAttemptingFullContext(t,e,r,i,n,s){this.delegates.map((o=>o.reportAttemptingFullContext(t,e,r,i,n,s)))}reportContextSensitivity(t,e,r,i,n,s){this.delegates.map((o=>o.reportContextSensitivity(t,e,r,i,n,s)))}}}})),fi=u(((t,e)=>{p();var{Token:r}=Jr(),{ConsoleErrorListener:i}=di(),{ProxyErrorListener:n}=di(),s=class{constructor(){this._listeners=[i.INSTANCE],this._interp=null,this._stateNumber=-1}checkVersion(t){"4.9.2"!==t&&console.log("ANTLR runtime and generated code versions disagree: 4.9.2!="+t)}addErrorListener(t){this._listeners.push(t)}removeErrorListeners(){this._listeners=[]}getTokenTypeMap(){const t=this.getTokenNames();if(null===t)throw"The current recognizer does not provide a list of token names.";let e=this.tokenTypeMapCache[t];return void 0===e&&(e=t.reduce((function(t,e,r){t[e]=r})),e.EOF=r.EOF,this.tokenTypeMapCache[t]=e),e}getRuleIndexMap(){const t=this.ruleNames;if(null===t)throw"The current recognizer does not provide a list of rule names.";let e=this.ruleIndexMapCache[t];return void 0===e&&(e=t.reduce((function(t,e,r){t[e]=r})),this.ruleIndexMapCache[t]=e),e}getTokenType(t){const e=this.getTokenTypeMap()[t];return void 0!==e?e:r.INVALID_TYPE}getErrorHeader(t){return"line "+t.getOffendingToken().line+":"+t.getOffendingToken().column}getTokenErrorDisplay(t){if(null===t)return"<no token>";let e=t.text;return null===e&&(e=t.type===r.EOF?"<EOF>":"<"+t.type+">"),e=e.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"),"'"+e+"'"}getErrorListenerDispatch(){return new n(this._listeners)}sempred(t,e,r){return!0}precpred(t,e){return!0}get state(){return this._stateNumber}set state(t){this._stateNumber=t}};s.tokenTypeMapCache={},s.ruleIndexMapCache={},e.exports=s})),_i=u(((t,e)=>{p();var r=Jr().CommonToken,i=class{},n=class extends i{constructor(t){super(),this.copyText=void 0!==t&&t}create(t,e,i,n,s,o,a,l){const c=new r(t,e,n,s,o);return c.line=a,c.column=l,null!==i?c.text=i:this.copyText&&null!==t[1]&&(c.text=t[1].getText(s,o)),c}createThin(t,e){const i=new r(null,t);return i.text=e,i}};n.DEFAULT=new n,e.exports=n})),yi=u(((t,e)=>{p();var{PredicateTransition:r}=ri(),{Interval:i}=ei().Interval,n=class extends Error{constructor(t){super(t.message),Error.captureStackTrace?Error.captureStackTrace(this,n):(new Error).stack,this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}};function s(t,e){return null!==e?e:"failed predicate: {"+t+"}?"}var o=class extends Error{constructor(){super(),Error.captureStackTrace(this,o)}};e.exports={RecognitionException:n,NoViableAltException:class extends n{constructor(t,e,r,i,n,s){s=s||t._ctx,i=i||t.getCurrentToken(),r=r||t.getCurrentToken(),e=e||t.getInputStream(),super({message:"",recognizer:t,input:e,ctx:s}),this.deadEndConfigs=n,this.startToken=r,this.offendingToken=i}},LexerNoViableAltException:class extends n{constructor(t,e,r,i){super({message:"",recognizer:t,input:e,ctx:null}),this.startIndex=r,this.deadEndConfigs=i}toString(){let t="";return this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getText(new i(this.startIndex,this.startIndex))),"LexerNoViableAltException"+t}},InputMismatchException:class extends n{constructor(t){super({message:"",recognizer:t,input:t.getInputStream(),ctx:t._ctx}),this.offendingToken=t.getCurrentToken()}},FailedPredicateException:class extends n{constructor(t,e,i){super({message:s(e,i||null),recognizer:t,input:t.getInputStream(),ctx:t._ctx});const n=t._interp.atn.states[t.state].transitions[0];n instanceof r?(this.ruleIndex=n.ruleIndex,this.predicateIndex=n.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken()}},ParseCancellationException:o}})),gi=u(((t,e)=>{p();var{Token:r}=Jr(),i=fi(),n=_i(),{RecognitionException:s}=yi(),{LexerNoViableAltException:o}=yi(),a=class extends i{constructor(t){super(),this._input=t,this._factory=n.DEFAULT,this._tokenFactorySourcePair=[this,t],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=r.DEFAULT_CHANNEL,this._type=r.INVALID_TYPE,this._modeStack=[],this._mode=a.DEFAULT_MODE,this._text=null}reset(){null!==this._input&&this._input.seek(0),this._token=null,this._type=r.INVALID_TYPE,this._channel=r.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=a.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}nextToken(){if(null===this._input)throw"nextToken requires a non-null input stream.";const t=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=r.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;let t=!1;for(;;){this._type=r.INVALID_TYPE;let e=a.SKIP;try{e=this._interp.match(this._input,this._mode)}catch(t){if(!(t instanceof s))throw console.log(t.stack),t;this.notifyListeners(t),this.recover(t)}if(this._input.LA(1)===r.EOF&&(this._hitEOF=!0),this._type===r.INVALID_TYPE&&(this._type=e),this._type===a.SKIP){t=!0;break}if(this._type!==a.MORE)break}if(!t)return null===this._token&&this.emit(),this._token}}finally{this._input.release(t)}}skip(){this._type=a.SKIP}more(){this._type=a.MORE}mode(t){this._mode=t}pushMode(t){this._interp.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(0===this._modeStack.length)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode}emitToken(t){this._token=t}emit(){const t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(t),t}emitEOF(){const t=this.column,e=this.line,i=this._factory.create(this._tokenFactorySourcePair,r.EOF,null,r.DEFAULT_CHANNEL,this._input.index,this._input.index-1,e,t);return this.emitToken(i),i}getCharIndex(){return this._input.index}getAllTokens(){const t=[];let e=this.nextToken();for(;e.type!==r.EOF;)t.push(e),e=this.nextToken();return t}notifyListeners(t){const e=this._tokenStartCharIndex,r=this._input.index,i=this._input.getText(e,r),n="token recognition error at: '"+this.getErrorDisplay(i)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,n,t)}getErrorDisplay(t){const e=[];for(let r=0;r<t.length;r++)e.push(t[r]);return e.join("")}getErrorDisplayForChar(t){return t.charCodeAt(0)===r.EOF?"<EOF>":"\n"===t?"\\n":"\t"===t?"\\t":"\r"===t?"\\r":t}getCharErrorDisplay(t){return"'"+this.getErrorDisplayForChar(t)+"'"}recover(t){this._input.LA(1)!==r.EOF&&(t instanceof o?this._interp.consume(this._input):this._input.consume())}get inputStream(){return this._input}set inputStream(t){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=t,this._tokenFactorySourcePair=[this,this._input]}get sourceName(){return this._input.sourceName}get type(){return this.type}set type(t){this._type=t}get line(){return this._interp.line}set line(t){this._interp.line=t}get column(){return this._interp.column}set column(t){this._interp.column=t}get text(){return null!==this._text?this._text:this._interp.getText(this._input)}set text(t){this._text=t}};a.DEFAULT_MODE=0,a.MORE=-2,a.SKIP=-3,a.DEFAULT_TOKEN_CHANNEL=r.DEFAULT_CHANNEL,a.HIDDEN=r.HIDDEN_CHANNEL,a.MIN_CHAR_VALUE=0,a.MAX_CHAR_VALUE=1114111,e.exports=a})),mi=u(((t,e)=>{p();var r=li(),i=Xr(),{SemanticContext:n}=Zr(),{merge:s}=oi();function o(t){return t.hashCodeForConfigSet()}function a(t,e){return t===e||null!==t&&null!==e&&t.equalsForConfigSet(e)}var l=class{constructor(t){this.configLookup=new i.Set(o,a),this.fullCtx=void 0===t||t,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}add(t,e){if(void 0===e&&(e=null),this.readOnly)throw"This set is readonly";t.semanticContext!==n.NONE&&(this.hasSemanticContext=!0),t.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);const r=this.configLookup.add(t);if(r===t)return this.cachedHashCode=-1,this.configs.push(t),!0;const i=!this.fullCtx,o=s(r.context,t.context,i,e);return r.reachesIntoOuterContext=Math.max(r.reachesIntoOuterContext,t.reachesIntoOuterContext),t.precedenceFilterSuppressed&&(r.precedenceFilterSuppressed=!0),r.context=o,!0}getStates(){const t=new i.Set;for(let e=0;e<this.configs.length;e++)t.add(this.configs[e].state);return t}getPredicates(){const t=[];for(let e=0;e<this.configs.length;e++){const r=this.configs[e].semanticContext;r!==n.NONE&&t.push(r.semanticContext)}return t}optimizeConfigs(t){if(this.readOnly)throw"This set is readonly";if(0!==this.configLookup.length)for(let e=0;e<this.configs.length;e++){const r=this.configs[e];r.context=t.getCachedContext(r.context)}}addAll(t){for(let e=0;e<t.length;e++)this.add(t[e]);return!1}equals(t){return this===t||t instanceof l&&i.equalArrays(this.configs,t.configs)&&this.fullCtx===t.fullCtx&&this.uniqueAlt===t.uniqueAlt&&this.conflictingAlts===t.conflictingAlts&&this.hasSemanticContext===t.hasSemanticContext&&this.dipsIntoOuterContext===t.dipsIntoOuterContext}hashCode(){const t=new i.Hash;return t.update(this.configs),t.finish()}updateHashCode(t){this.readOnly?(-1===this.cachedHashCode&&(this.cachedHashCode=this.hashCode()),t.update(this.cachedHashCode)):t.update(this.hashCode())}isEmpty(){return 0===this.configs.length}contains(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(t)}containsFast(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(t)}clear(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new i.Set}setReadonly(t){this.readOnly=t,t&&(this.configLookup=null)}toString(){return i.arrayToString(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==r.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}get items(){return this.configs}get length(){return this.configs.length}};e.exports={ATNConfigSet:l,OrderedATNConfigSet:class extends l{constructor(){super(),this.configLookup=new i.Set}}}})),xi=u(((t,e)=>{p();var{ATNConfigSet:r}=mi(),{Hash:i,Set:n}=Xr(),s=class{constructor(t,e){return null===t&&(t=-1),null===e&&(e=new r),this.stateNumber=t,this.configs=e,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}getAltSet(){const t=new n;if(null!==this.configs)for(let e=0;e<this.configs.length;e++){const r=this.configs[e];t.add(r.alt)}return 0===t.length?null:t}equals(t){return this===t||t instanceof s&&this.configs.equals(t.configs)}toString(){let t=this.stateNumber+":"+this.configs;return this.isAcceptState&&(t+="=>",null!==this.predicates?t+=this.predicates:t+=this.prediction),t}hashCode(){const t=new i;return t.update(this.configs),t.finish()}};e.exports={DFAState:s,PredPrediction:class{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}}}})),Ti=u(((t,e)=>{p();var{DFAState:r}=xi(),{ATNConfigSet:i}=mi(),{getCachedPredictionContext:n}=oi(),{Map:s}=Xr(),o=class{constructor(t,e){return this.atn=t,this.sharedContextCache=e,this}getCachedContext(t){if(null===this.sharedContextCache)return t;const e=new s;return n(t,this.sharedContextCache,e)}};o.ERROR=new r(2147483647,new i),e.exports=o})),vi=u(((t,e)=>{p();var{hashStuff:r}=Xr(),{LexerIndexedCustomAction:i}=hi(),n=class{constructor(t){return this.lexerActions=null===t?[]:t,this.cachedHashCode=r(t),this}fixOffsetBeforeMatch(t){let e=null;for(let r=0;r<this.lexerActions.length;r++)!this.lexerActions[r].isPositionDependent||this.lexerActions[r]instanceof i||(null===e&&(e=this.lexerActions.concat([])),e[r]=new i(t,this.lexerActions[r]));return null===e?this:new n(e)}execute(t,e,r){let n=!1;const s=e.index;try{for(let o=0;o<this.lexerActions.length;o++){let a=this.lexerActions[o];if(a instanceof i){const t=a.offset;e.seek(r+t),a=a.action,n=r+t!==s}else a.isPositionDependent&&(e.seek(s),n=!1);a.execute(t)}}finally{n&&e.seek(s)}}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}equals(t){if(this===t)return!0;if(t instanceof n){if(this.cachedHashCode!=t.cachedHashCode)return!1;if(this.lexerActions.length!=t.lexerActions.length)return!1;{const e=this.lexerActions.length;for(let r=0;r<e;++r)if(!this.lexerActions[r].equals(t.lexerActions[r]))return!1;return!0}}return!1}static append(t,e){if(null===t)return new n([e]);const r=t.lexerActions.concat([e]);return new n(r)}};e.exports=n})),Si=u(((t,e)=>{p();var{Token:r}=Jr(),i=gi(),n=li(),s=Ti(),{DFAState:o}=xi(),{OrderedATNConfigSet:a}=mi(),{PredictionContext:l}=oi(),{SingletonPredictionContext:c}=oi(),{RuleStopState:u}=Qr(),{LexerATNConfig:h}=ti(),{Transition:d}=ri(),f=vi(),{LexerNoViableAltException:_}=yi();function y(t){t.index=-1,t.line=0,t.column=-1,t.dfaState=null}var g=class extends s{constructor(t,e,r,n){super(e,n),this.decisionToDFA=r,this.recog=t,this.startIndex=-1,this.line=1,this.column=0,this.mode=i.DEFAULT_MODE,this.prevAccept=new class{constructor(){y(this)}reset(){y(this)}}}copyState(t){this.column=t.column,this.line=t.line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.match_calls+=1,this.mode=e;const r=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();const r=this.decisionToDFA[e];return null===r.s0?this.matchATN(t):this.execATN(t,r.s0)}finally{t.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=i.DEFAULT_MODE}matchATN(t){const e=this.atn.modeToStartState[this.mode];g.debug&&console.log("matchATN mode "+this.mode+" start: "+e);const r=this.mode,i=this.computeStartState(t,e),n=i.hasSemanticContext;i.hasSemanticContext=!1;const s=this.addDFAState(i);n||(this.decisionToDFA[this.mode].s0=s);const o=this.execATN(t,s);return g.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[r].toLexerString()),o}execATN(t,e){g.debug&&console.log("start state closure="+e.configs),e.isAcceptState&&this.captureSimState(this.prevAccept,t,e);let i=t.LA(1),n=e;for(;;){g.debug&&console.log("execATN loop starting closure: "+n.configs);let e=this.getExistingTargetState(n,i);if(null===e&&(e=this.computeTargetState(t,n,i)),e===s.ERROR)break;if(i!==r.EOF&&this.consume(t),e.isAcceptState&&(this.captureSimState(this.prevAccept,t,e),i===r.EOF))break;i=t.LA(1),n=e}return this.failOrAccept(this.prevAccept,t,n.configs,i)}getExistingTargetState(t,e){if(null===t.edges||e<g.MIN_DFA_EDGE||e>g.MAX_DFA_EDGE)return null;let r=t.edges[e-g.MIN_DFA_EDGE];return void 0===r&&(r=null),g.debug&&null!==r&&console.log("reuse state "+t.stateNumber+" edge to "+r.stateNumber),r}computeTargetState(t,e,r){const i=new a;return this.getReachableConfigSet(t,e.configs,i,r),0===i.items.length?(i.hasSemanticContext||this.addDFAEdge(e,r,s.ERROR),s.ERROR):this.addDFAEdge(e,r,null,i)}failOrAccept(t,e,i,n){if(null!==this.prevAccept.dfaState){const r=t.dfaState.lexerActionExecutor;return this.accept(e,r,this.startIndex,t.index,t.line,t.column),t.dfaState.prediction}if(n===r.EOF&&e.index===this.startIndex)return r.EOF;throw new _(this.recog,e,this.startIndex,i)}getReachableConfigSet(t,e,i,s){let o=n.INVALID_ALT_NUMBER;for(let n=0;n<e.items.length;n++){const a=e.items[n],l=a.alt===o;if(!l||!a.passedThroughNonGreedyDecision){g.debug&&console.log("testing %s at %s\n",this.getTokenName(s),a.toString(this.recog,!0));for(let e=0;e<a.state.transitions.length;e++){const n=a.state.transitions[e],c=this.getReachableTarget(n,s);if(null!==c){let e=a.lexerActionExecutor;null!==e&&(e=e.fixOffsetBeforeMatch(t.index-this.startIndex));const n=s===r.EOF,u=new h({state:c,lexerActionExecutor:e},a);this.closure(t,u,i,l,!0,n)&&(o=a.alt)}}}}}accept(t,e,r,i,n,s){g.debug&&console.log("ACTION %s\n",e),t.seek(i),this.line=n,this.column=s,null!==e&&null!==this.recog&&e.execute(this.recog,t,r)}getReachableTarget(t,e){return t.matches(e,0,i.MAX_CHAR_VALUE)?t.target:null}computeStartState(t,e){const r=l.EMPTY,i=new a;for(let n=0;n<e.transitions.length;n++){const s=e.transitions[n].target,o=new h({state:s,alt:n+1,context:r},null);this.closure(t,o,i,!1,!1,!1)}return i}closure(t,e,r,i,n,s){let o=null;if(g.debug&&console.log("closure("+e.toString(this.recog,!0)+")"),e.state instanceof u){if(g.debug&&(null!==this.recog?console.log("closure at %s rule stop %s\n",this.recog.ruleNames[e.state.ruleIndex],e):console.log("closure at rule stop %s\n",e)),null===e.context||e.context.hasEmptyPath()){if(null===e.context||e.context.isEmpty())return r.add(e),!0;r.add(new h({state:e.state,context:l.EMPTY},e)),i=!0}if(null!==e.context&&!e.context.isEmpty())for(let a=0;a<e.context.length;a++)if(e.context.getReturnState(a)!==l.EMPTY_RETURN_STATE){const l=e.context.getParent(a),c=this.atn.states[e.context.getReturnState(a)];o=new h({state:c,context:l},e),i=this.closure(t,o,r,i,n,s)}return i}e.state.epsilonOnlyTransitions||i&&e.passedThroughNonGreedyDecision||r.add(e);for(let a=0;a<e.state.transitions.length;a++){const l=e.state.transitions[a];o=this.getEpsilonTarget(t,e,l,r,n,s),null!==o&&(i=this.closure(t,o,r,i,n,s))}return i}getEpsilonTarget(t,e,n,s,o,a){let l=null;if(n.serializationType===d.RULE){const t=c.create(e.context,n.followState.stateNumber);l=new h({state:n.target,context:t},e)}else{if(n.serializationType===d.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(n.serializationType===d.PREDICATE)g.debug&&console.log("EVAL rule "+n.ruleIndex+":"+n.predIndex),s.hasSemanticContext=!0,this.evaluatePredicate(t,n.ruleIndex,n.predIndex,o)&&(l=new h({state:n.target},e));else if(n.serializationType===d.ACTION)if(null===e.context||e.context.hasEmptyPath()){const t=f.append(e.lexerActionExecutor,this.atn.lexerActions[n.actionIndex]);l=new h({state:n.target,lexerActionExecutor:t},e)}else l=new h({state:n.target},e);else n.serializationType===d.EPSILON?l=new h({state:n.target},e):n.serializationType!==d.ATOM&&n.serializationType!==d.RANGE&&n.serializationType!==d.SET||a&&n.matches(r.EOF,0,i.MAX_CHAR_VALUE)&&(l=new h({state:n.target},e))}return l}evaluatePredicate(t,e,r,i){if(null===this.recog)return!0;if(!i)return this.recog.sempred(null,e,r);const n=this.column,s=this.line,o=t.index,a=t.mark();try{return this.consume(t),this.recog.sempred(null,e,r)}finally{this.column=n,this.line=s,t.seek(o),t.release(a)}}captureSimState(t,e,r){t.index=e.index,t.line=this.line,t.column=this.column,t.dfaState=r}addDFAEdge(t,e,r,i){if(void 0===r&&(r=null),void 0===i&&(i=null),null===r&&null!==i){const t=i.hasSemanticContext;if(i.hasSemanticContext=!1,r=this.addDFAState(i),t)return r}return e<g.MIN_DFA_EDGE||e>g.MAX_DFA_EDGE||(g.debug&&console.log("EDGE "+t+" -> "+r+" upon "+e),null===t.edges&&(t.edges=[]),t.edges[e-g.MIN_DFA_EDGE]=r),r}addDFAState(t){const e=new o(null,t);let r=null;for(let e=0;e<t.items.length;e++){const i=t.items[e];if(i.state instanceof u){r=i;break}}null!==r&&(e.isAcceptState=!0,e.lexerActionExecutor=r.lexerActionExecutor,e.prediction=this.atn.ruleToTokenType[r.state.ruleIndex]);const i=this.decisionToDFA[this.mode],n=i.states.get(e);if(null!==n)return n;const s=e;return s.stateNumber=i.states.length,t.setReadonly(!0),s.configs=t,i.states.add(s),s}getDFA(t){return this.decisionToDFA[t]}getText(t){return t.getText(this.startIndex,t.index-1)}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}};g.debug=!1,g.dfa_debug=!1,g.MIN_DFA_EDGE=0,g.MAX_DFA_EDGE=127,g.match_calls=0,e.exports=g})),bi=u(((t,e)=>{p();var{Map:r,BitSet:i,AltDict:n,hashStuff:s}=Xr(),o=li(),{RuleStopState:a}=Qr(),{ATNConfigSet:l}=mi(),{ATNConfig:c}=ti(),{SemanticContext:u}=Zr(),h={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(t,e){if(h.allConfigsInRuleStopStates(e))return!0;if(t===h.SLL&&e.hasSemanticContext){const t=new l;for(let r=0;r<e.items.length;r++){let i=e.items[r];i=new c({semanticContext:u.NONE},i),t.add(i)}e=t}const r=h.getConflictingAltSubsets(e);return h.hasConflictingAltSet(r)&&!h.hasStateAssociatedWithOneAlt(e)},hasConfigInRuleStopState:function(t){for(let e=0;e<t.items.length;e++)if(t.items[e].state instanceof a)return!0;return!1},allConfigsInRuleStopStates:function(t){for(let e=0;e<t.items.length;e++)if(!(t.items[e].state instanceof a))return!1;return!0},resolvesToJustOneViableAlt:function(t){return h.getSingleViableAlt(t)},allSubsetsConflict:function(t){return!h.hasNonConflictingAltSet(t)},hasNonConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(1===t[e].length)return!0;return!1},hasConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(t[e].length>1)return!0;return!1},allSubsetsEqual:function(t){let e=null;for(let r=0;r<t.length;r++){const i=t[r];if(null===e)e=i;else if(i!==e)return!1}return!0},getUniqueAlt:function(t){const e=h.getAlts(t);return 1===e.length?e.minValue():o.INVALID_ALT_NUMBER},getAlts:function(t){const e=new i;return t.map((function(t){e.or(t)})),e},getConflictingAltSubsets:function(t){const e=new r;return e.hashFunction=function(t){s(t.state.stateNumber,t.context)},e.equalsFunction=function(t,e){return t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)},t.items.map((function(t){let r=e.get(t);null===r&&(r=new i,e.put(t,r)),r.add(t.alt)})),e.getValues()},getStateToAltMap:function(t){const e=new n;return t.items.map((function(t){let r=e.get(t.state);null===r&&(r=new i,e.put(t.state,r)),r.add(t.alt)})),e},hasStateAssociatedWithOneAlt:function(t){const e=h.getStateToAltMap(t).values();for(let t=0;t<e.length;t++)if(1===e[t].length)return!0;return!1},getSingleViableAlt:function(t){let e=null;for(let r=0;r<t.length;r++){const i=t[r].minValue();if(null===e)e=i;else if(e!==i)return o.INVALID_ALT_NUMBER}return e}};e.exports=h})),Ei=u(((t,e)=>{p();var r=si(),i=ii(),n=i.INVALID_INTERVAL,s=i.TerminalNode,o=i.TerminalNodeImpl,a=i.ErrorNodeImpl,l=ei().Interval,c=class extends r{constructor(t,e){super(t=t||null,e=e||null),this.ruleIndex=-1,this.children=null,this.start=null,this.stop=null,this.exception=null}copyFrom(t){this.parentCtx=t.parentCtx,this.invokingState=t.invokingState,this.children=null,this.start=t.start,this.stop=t.stop,t.children&&(this.children=[],t.children.map((function(t){t instanceof a&&(this.children.push(t),t.parentCtx=this)}),this))}enterRule(t){}exitRule(t){}addChild(t){return null===this.children&&(this.children=[]),this.children.push(t),t}removeLastChild(){null!==this.children&&this.children.pop()}addTokenNode(t){const e=new o(t);return this.addChild(e),e.parentCtx=this,e}addErrorNode(t){const e=new a(t);return this.addChild(e),e.parentCtx=this,e}getChild(t,e){if(e=e||null,null===this.children||t<0||t>=this.children.length)return null;if(null===e)return this.children[t];for(let r=0;r<this.children.length;r++){const i=this.children[r];if(i instanceof e){if(0===t)return i;t-=1}}return null}getToken(t,e){if(null===this.children||e<0||e>=this.children.length)return null;for(let r=0;r<this.children.length;r++){const i=this.children[r];if(i instanceof s&&i.symbol.type===t){if(0===e)return i;e-=1}}return null}getTokens(t){if(null===this.children)return[];{const e=[];for(let r=0;r<this.children.length;r++){const i=this.children[r];i instanceof s&&i.symbol.type===t&&e.push(i)}return e}}getTypedRuleContext(t,e){return this.getChild(e,t)}getTypedRuleContexts(t){if(null===this.children)return[];{const e=[];for(let r=0;r<this.children.length;r++){const i=this.children[r];i instanceof t&&e.push(i)}return e}}getChildCount(){return null===this.children?0:this.children.length}getSourceInterval(){return null===this.start||null===this.stop?n:new l(this.start.tokenIndex,this.stop.tokenIndex)}};r.EMPTY=new c,e.exports=c})),Ni=u(((t,e)=>{p();var r=Xr(),{Set:i,BitSet:n,DoubleDict:s}=r,o=li(),{ATNState:a,RuleStopState:l}=Qr(),{ATNConfig:c}=ti(),{ATNConfigSet:u}=mi(),{Token:h}=Jr(),{DFAState:d,PredPrediction:f}=xi(),_=Ti(),y=bi(),g=si(),{SemanticContext:m}=(Ei(),Zr()),{PredictionContext:x}=oi(),{Interval:T}=ei(),{Transition:v,SetTransition:S,NotSetTransition:b,RuleTransition:E,ActionTransition:N}=ri(),{NoViableAltException:A}=yi(),{SingletonPredictionContext:R,predictionContextFromRuleContext:C}=oi();e.exports=class extends _{constructor(t,e,r,i){super(e,i),this.parser=t,this.decisionToDFA=r,this.predictionMode=y.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this.debug=!1,this.debug_closure=!1,this.debug_add=!1,this.debug_list_atn_decisions=!1,this.dfa_debug=!1,this.retry_debug=!1}reset(){}adaptivePredict(t,e,r){(this.debug||this.debug_list_atn_decisions)&&console.log("adaptivePredict decision "+e+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column),this._input=t,this._startIndex=t.index,this._outerContext=r;const i=this.decisionToDFA[e];this._dfa=i;const n=t.mark(),s=t.index;try{let e;if(e=i.precedenceDfa?i.getPrecedenceStartState(this.parser.getPrecedence()):i.s0,null===e){null===r&&(r=g.EMPTY),(this.debug||this.debug_list_atn_decisions)&&console.log("predictATN decision "+i.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+r.toString(this.parser.ruleNames));const n=!1;let s=this.computeStartState(i.atnStartState,g.EMPTY,n);i.precedenceDfa?(i.s0.configs=s,s=this.applyPrecedenceFilter(s),e=this.addDFAState(i,new d(null,s)),i.setPrecedenceStartState(this.parser.getPrecedence(),e)):(e=this.addDFAState(i,new d(null,s)),i.s0=e)}const n=this.execATN(i,e,t,s,r);return this.debug&&console.log("DFA after predictATN: "+i.toString(this.parser.literalNames)),n}finally{this._dfa=null,this.mergeCache=null,t.seek(s),t.release(n)}}execATN(t,e,r,i,n){let s;(this.debug||this.debug_list_atn_decisions)&&console.log("execATN decision "+t.decision+" exec LA(1)=="+this.getLookaheadName(r)+" line "+r.LT(1).line+":"+r.LT(1).column);let a=e;this.debug&&console.log("s0 = "+e);let l=r.LA(1);for(;;){let e=this.getExistingTargetState(a,l);if(null===e&&(e=this.computeTargetState(t,a,l)),e===_.ERROR){const t=this.noViableAlt(r,n,a.configs,i);if(r.seek(i),s=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(a.configs,n),s!==o.INVALID_ALT_NUMBER)return s;throw t}if(e.requiresFullContext&&this.predictionMode!==y.SLL){let o=null;if(null!==e.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");const t=r.index;if(t!==i&&r.seek(i),o=this.evalSemanticContext(e.predicates,n,!0),1===o.length)return this.debug&&console.log("Full LL avoided"),o.minValue();t!==i&&r.seek(t)}this.dfa_debug&&console.log("ctx sensitive state "+n+" in "+e);const a=!0,l=this.computeStartState(t.atnStartState,n,a);return this.reportAttemptingFullContext(t,o,e.configs,i,r.index),s=this.execATNWithFullContext(t,e,l,r,i,n),s}if(e.isAcceptState){if(null===e.predicates)return e.prediction;const s=r.index;r.seek(i);const o=this.evalSemanticContext(e.predicates,n,!0);if(0===o.length)throw this.noViableAlt(r,n,e.configs,i);return 1===o.length||this.reportAmbiguity(t,e,i,s,!1,o,e.configs),o.minValue()}a=e,l!==h.EOF&&(r.consume(),l=r.LA(1))}}getExistingTargetState(t,e){const r=t.edges;return null===r?null:r[e+1]||null}computeTargetState(t,e,i){const n=this.computeReachSet(e.configs,i,!1);if(null===n)return this.addDFAEdge(t,e,i,_.ERROR),_.ERROR;let s=new d(null,n);const a=this.getUniqueAlt(n);if(this.debug){const t=y.getConflictingAltSubsets(n);console.log("SLL altSubSets="+r.arrayToString(t)+", previous="+e.configs+", configs="+n+", predict="+a+", allSubsetsConflict="+y.allSubsetsConflict(t)+", conflictingAlts="+this.getConflictingAlts(n))}return a!==o.INVALID_ALT_NUMBER?(s.isAcceptState=!0,s.configs.uniqueAlt=a,s.prediction=a):y.hasSLLConflictTerminatingPrediction(this.predictionMode,n)&&(s.configs.conflictingAlts=this.getConflictingAlts(n),s.requiresFullContext=!0,s.isAcceptState=!0,s.prediction=s.configs.conflictingAlts.minValue()),s.isAcceptState&&s.configs.hasSemanticContext&&(this.predicateDFAState(s,this.atn.getDecisionState(t.decision)),null!==s.predicates&&(s.prediction=o.INVALID_ALT_NUMBER)),s=this.addDFAEdge(t,e,i,s),s}predicateDFAState(t,e){const r=e.transitions.length,i=this.getConflictingAltsOrUniqueAlt(t.configs),n=this.getPredsForAmbigAlts(i,t.configs,r);null!==n?(t.predicates=this.getPredicatePredictions(i,n),t.prediction=o.INVALID_ALT_NUMBER):t.prediction=i.minValue()}execATNWithFullContext(t,e,r,i,n,s){(this.debug||this.debug_list_atn_decisions)&&console.log("execATNWithFullContext "+r);let a,l=!1,c=r;i.seek(n);let u=i.LA(1),p=-1;for(;;){if(a=this.computeReachSet(c,u,!0),null===a){const t=this.noViableAlt(i,s,c,n);i.seek(n);const e=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(c,s);if(e!==o.INVALID_ALT_NUMBER)return e;throw t}const t=y.getConflictingAltSubsets(a);if(this.debug&&console.log("LL altSubSets="+t+", predict="+y.getUniqueAlt(t)+", resolvesToJustOneViableAlt="+y.resolvesToJustOneViableAlt(t)),a.uniqueAlt=this.getUniqueAlt(a),a.uniqueAlt!==o.INVALID_ALT_NUMBER){p=a.uniqueAlt;break}if(this.predictionMode!==y.LL_EXACT_AMBIG_DETECTION){if(p=y.resolvesToJustOneViableAlt(t),p!==o.INVALID_ALT_NUMBER)break}else if(y.allSubsetsConflict(t)&&y.allSubsetsEqual(t)){l=!0,p=y.getSingleViableAlt(t);break}c=a,u!==h.EOF&&(i.consume(),u=i.LA(1))}return a.uniqueAlt!==o.INVALID_ALT_NUMBER?(this.reportContextSensitivity(t,p,a,n,i.index),p):(this.reportAmbiguity(t,e,n,i.index,l,null,a),p)}computeReachSet(t,e,r){this.debug&&console.log("in computeReachSet, starting closure: "+t),null===this.mergeCache&&(this.mergeCache=new s);const n=new u(r);let a=null;for(let i=0;i<t.items.length;i++){const s=t.items[i];if(this.debug&&console.log("testing "+this.getTokenName(e)+" at "+s),s.state instanceof l)(r||e===h.EOF)&&(null===a&&(a=[]),a.push(s),this.debug_add&&console.log("added "+s+" to skippedStopStates"));else for(let t=0;t<s.state.transitions.length;t++){const r=s.state.transitions[t],i=this.getReachableTarget(r,e);if(null!==i){const t=new c({state:i},s);n.add(t,this.mergeCache),this.debug_add&&console.log("added "+t+" to intermediate")}}}let p=null;if(null===a&&e!==h.EOF&&(1===n.items.length||this.getUniqueAlt(n)!==o.INVALID_ALT_NUMBER)&&(p=n),null===p){p=new u(r);const t=new i,s=e===h.EOF;for(let e=0;e<n.items.length;e++)this.closure(n.items[e],p,t,!1,r,s)}if(e===h.EOF&&(p=this.removeAllConfigsNotInRuleStopState(p,p===n)),!(null===a||r&&y.hasConfigInRuleStopState(p)))for(let t=0;t<a.length;t++)p.add(a[t],this.mergeCache);return 0===p.items.length?null:p}removeAllConfigsNotInRuleStopState(t,e){if(y.allConfigsInRuleStopStates(t))return t;const r=new u(t.fullCtx);for(let i=0;i<t.items.length;i++){const n=t.items[i];if(n.state instanceof l)r.add(n,this.mergeCache);else if(e&&n.state.epsilonOnlyTransitions&&this.atn.nextTokens(n.state).contains(h.EPSILON)){const t=this.atn.ruleToStopState[n.state.ruleIndex];r.add(new c({state:t},n),this.mergeCache)}}return r}computeStartState(t,e,r){const n=C(this.atn,e),s=new u(r);for(let e=0;e<t.transitions.length;e++){const o=t.transitions[e].target,a=new c({state:o,alt:e+1,context:n},null),l=new i;this.closure(a,s,l,!0,r,!1)}return s}applyPrecedenceFilter(t){let e;const r=[],i=new u(t.fullCtx);for(let n=0;n<t.items.length;n++){if(e=t.items[n],1!==e.alt)continue;const s=e.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==s&&(r[e.state.stateNumber]=e.context,s!==e.semanticContext?i.add(new c({semanticContext:s},e),this.mergeCache):i.add(e,this.mergeCache))}for(let n=0;n<t.items.length;n++)if(e=t.items[n],1!==e.alt){if(!e.precedenceFilterSuppressed){const t=r[e.state.stateNumber]||null;if(null!==t&&t.equals(e.context))continue}i.add(e,this.mergeCache)}return i}getReachableTarget(t,e){return t.matches(e,0,this.atn.maxTokenType)?t.target:null}getPredsForAmbigAlts(t,e,i){let n=[];for(let r=0;r<e.items.length;r++){const i=e.items[r];t.contains(i.alt)&&(n[i.alt]=m.orContext(n[i.alt]||null,i.semanticContext))}let s=0;for(let t=1;t<i+1;t++){const e=n[t]||null;null===e?n[t]=m.NONE:e!==m.NONE&&(s+=1)}return 0===s&&(n=null),this.debug&&console.log("getPredsForAmbigAlts result "+r.arrayToString(n)),n}getPredicatePredictions(t,e){const r=[];let i=!1;for(let n=1;n<e.length;n++){const s=e[n];null!==t&&t.contains(n)&&r.push(new f(s,n)),s!==m.NONE&&(i=!0)}return i?r:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(t,e){const r=this.splitAccordingToSemanticValidity(t,e),i=r[0],n=r[1];let s=this.getAltThatFinishedDecisionEntryRule(i);return s!==o.INVALID_ALT_NUMBER||n.items.length>0&&(s=this.getAltThatFinishedDecisionEntryRule(n),s!==o.INVALID_ALT_NUMBER)?s:o.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(t){const e=[];for(let r=0;r<t.items.length;r++){const i=t.items[r];(i.reachesIntoOuterContext>0||i.state instanceof l&&i.context.hasEmptyPath())&&e.indexOf(i.alt)<0&&e.push(i.alt)}return 0===e.length?o.INVALID_ALT_NUMBER:Math.min.apply(null,e)}splitAccordingToSemanticValidity(t,e){const r=new u(t.fullCtx),i=new u(t.fullCtx);for(let n=0;n<t.items.length;n++){const s=t.items[n];s.semanticContext!==m.NONE?s.semanticContext.evaluate(this.parser,e)?r.add(s):i.add(s):r.add(s)}return[r,i]}evalSemanticContext(t,e,r){const i=new n;for(let n=0;n<t.length;n++){const s=t[n];if(s.pred===m.NONE){if(i.add(s.alt),!r)break;continue}const o=s.pred.evaluate(this.parser,e);if((this.debug||this.dfa_debug)&&console.log("eval pred "+s+"="+o),o&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+s.alt),i.add(s.alt),!r))break}return i}closure(t,e,r,i,n,s){this.closureCheckingStopState(t,e,r,i,n,0,s)}closureCheckingStopState(t,e,r,i,n,s,o){if((this.debug||this.debug_closure)&&(console.log("closure("+t.toString(this.parser,!0)+")"),t.reachesIntoOuterContext>50))throw"problem";if(t.state instanceof l){if(!t.context.isEmpty()){for(let a=0;a<t.context.length;a++){if(t.context.getReturnState(a)===x.EMPTY_RETURN_STATE){if(n){e.add(new c({state:t.state,context:x.EMPTY},t),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,e,r,i,n,s,o);continue}const l=this.atn.states[t.context.getReturnState(a)],u=t.context.getParent(a),h={state:l,alt:t.alt,context:u,semanticContext:t.semanticContext},p=new c(h,null);p.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(p,e,r,i,n,s-1,o)}return}if(n)return void e.add(t,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,e,r,i,n,s,o)}closure_(t,e,r,i,n,s,o){const a=t.state;a.epsilonOnlyTransitions||e.add(t,this.mergeCache);for(let c=0;c<a.transitions.length;c++){if(0===c&&this.canDropLoopEntryEdgeInLeftRecursiveRule(t))continue;const u=a.transitions[c],h=i&&!(u instanceof N),p=this.getEpsilonTarget(t,u,h,0===s,n,o);if(null!==p){let i=s;if(t.state instanceof l){if(null!==this._dfa&&this._dfa.precedenceDfa&&u.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(p.precedenceFilterSuppressed=!0),p.reachesIntoOuterContext+=1,r.add(p)!==p)continue;e.dipsIntoOuterContext=!0,i-=1,this.debug&&console.log("dips into outer ctx: "+p)}else{if(!u.isEpsilon&&r.add(p)!==p)continue;u instanceof E&&i>=0&&(i+=1)}this.closureCheckingStopState(p,e,r,h,n,i,o)}}}canDropLoopEntryEdgeInLeftRecursiveRule(t){const e=t.state;if(e.stateType!==a.STAR_LOOP_ENTRY)return!1;if(e.stateType!==a.STAR_LOOP_ENTRY||!e.isPrecedenceDecision||t.context.isEmpty()||t.context.hasEmptyPath())return!1;const r=t.context.length;for(let i=0;i<r;i++)if(this.atn.states[t.context.getReturnState(i)].ruleIndex!==e.ruleIndex)return!1;const i=e.transitions[0].target.endState.stateNumber,n=this.atn.states[i];for(let i=0;i<r;i++){const r=t.context.getReturnState(i),s=this.atn.states[r];if(1!==s.transitions.length||!s.transitions[0].isEpsilon)return!1;const o=s.transitions[0].target;if(!(s.stateType===a.BLOCK_END&&o===e||s===n||o===n||o.stateType===a.BLOCK_END&&1===o.transitions.length&&o.transitions[0].isEpsilon&&o.transitions[0].target===e))return!1}return!0}getRuleName(t){return null!==this.parser&&t>=0?this.parser.ruleNames[t]:"<rule "+t+">"}getEpsilonTarget(t,e,r,i,n,s){switch(e.serializationType){case v.RULE:return this.ruleTransition(t,e);case v.PRECEDENCE:return this.precedenceTransition(t,e,r,i,n);case v.PREDICATE:return this.predTransition(t,e,r,i,n);case v.ACTION:return this.actionTransition(t,e);case v.EPSILON:return new c({state:e.target},t);case v.ATOM:case v.RANGE:case v.SET:return s&&e.matches(h.EOF,0,1)?new c({state:e.target},t):null;default:return null}}actionTransition(t,e){if(this.debug){const t=-1===e.actionIndex?65535:e.actionIndex;console.log("ACTION edge "+e.ruleIndex+":"+t)}return new c({state:e.target},t)}precedenceTransition(t,e,i,n,s){this.debug&&(console.log("PRED (collectPredicates="+i+") "+e.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+r.arrayToString(this.parser.getRuleInvocationStack())));let o=null;if(i&&n)if(s){const r=this._input.index;this._input.seek(this._startIndex);const i=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),i&&(o=new c({state:e.target},t))}else{const r=m.andContext(t.semanticContext,e.getPredicate());o=new c({state:e.target,semanticContext:r},t)}else o=new c({state:e.target},t);return this.debug&&console.log("config from pred transition="+o),o}predTransition(t,e,i,n,s){this.debug&&(console.log("PRED (collectPredicates="+i+") "+e.ruleIndex+":"+e.predIndex+", ctx dependent="+e.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+r.arrayToString(this.parser.getRuleInvocationStack())));let o=null;if(i&&(e.isCtxDependent&&n||!e.isCtxDependent))if(s){const r=this._input.index;this._input.seek(this._startIndex);const i=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),i&&(o=new c({state:e.target},t))}else{const r=m.andContext(t.semanticContext,e.getPredicate());o=new c({state:e.target,semanticContext:r},t)}else o=new c({state:e.target},t);return this.debug&&console.log("config from pred transition="+o),o}ruleTransition(t,e){this.debug&&console.log("CALL rule "+this.getRuleName(e.target.ruleIndex)+", ctx="+t.context);const r=e.followState,i=R.create(t.context,r.stateNumber);return new c({state:e.target,context:i},t)}getConflictingAlts(t){const e=y.getConflictingAltSubsets(t);return y.getAlts(e)}getConflictingAltsOrUniqueAlt(t){let e=null;return t.uniqueAlt!==o.INVALID_ALT_NUMBER?(e=new n,e.add(t.uniqueAlt)):e=t.conflictingAlts,e}getTokenName(t){if(t===h.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(t>=this.parser.literalNames.length&&t>=this.parser.symbolicNames.length))return(this.parser.literalNames[t]||this.parser.symbolicNames[t])+"<"+t+">";console.log(t+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+t}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");const e=t.getDeadEndConfigs();for(let t=0;t<e.length;t++){const r=e[t];let i="no edges";if(r.state.transitions.length>0){const t=r.state.transitions[0];t instanceof AtomTransition?i="Atom "+this.getTokenName(t.label):t instanceof S&&(i=(t instanceof b?"~":"")+"Set "+t.set)}console.error(r.toString(this.parser,!0)+":"+i)}}noViableAlt(t,e,r,i){return new A(this.parser,t,t.get(i),t.LT(1),r,e)}getUniqueAlt(t){let e=o.INVALID_ALT_NUMBER;for(let r=0;r<t.items.length;r++){const i=t.items[r];if(e===o.INVALID_ALT_NUMBER)e=i.alt;else if(i.alt!==e)return o.INVALID_ALT_NUMBER}return e}addDFAEdge(t,e,r,i){if(this.debug&&console.log("EDGE "+e+" -> "+i+" upon "+this.getTokenName(r)),null===i)return null;if(i=this.addDFAState(t,i),null===e||r<-1||r>this.atn.maxTokenType)return i;if(null===e.edges&&(e.edges=[]),e.edges[r+1]=i,this.debug){const e=null===this.parser?null:this.parser.literalNames,r=null===this.parser?null:this.parser.symbolicNames;console.log("DFA=\n"+t.toString(e,r))}return i}addDFAState(t,e){if(e===_.ERROR)return e;const r=t.states.get(e);return null!==r?r:(e.stateNumber=t.states.length,e.configs.readOnly||(e.configs.optimizeConfigs(this),e.configs.setReadonly(!0)),t.states.add(e),this.debug&&console.log("adding new DFA state: "+e),e)}reportAttemptingFullContext(t,e,r,i,n){if(this.debug||this.retry_debug){const e=new T(i,n+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+r+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,t,i,n,e,r)}reportContextSensitivity(t,e,r,i,n){if(this.debug||this.retry_debug){const e=new T(i,n+1);console.log("reportContextSensitivity decision="+t.decision+":"+r+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,t,i,n,e,r)}reportAmbiguity(t,e,r,i,n,s,o){if(this.debug||this.retry_debug){const t=new T(r,i+1);console.log("reportAmbiguity "+s+":"+o+", input="+this.parser.getTokenStream().getText(t))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,t,r,i,n,s,o)}}})),Ai=u((t=>{p(),t.ATN=li(),t.ATNDeserializer=pi(),t.LexerATNSimulator=Si(),t.ParserATNSimulator=Ni(),t.PredictionMode=bi()})),Ri=u((()=>{p(),String.prototype.codePointAt||function(){"use strict";var t=function(){let t;try{const e={},r=Object.defineProperty;t=r(e,e,e)&&r}catch(t){}return t}();const e=function(t){if(null==this)throw TypeError();const e=String(this),r=e.length;let i=t?Number(t):0;if(i!=i&&(i=0),i<0||i>=r)return;const n=e.charCodeAt(i);let s;return n>=55296&&n<=56319&&r>i+1&&(s=e.charCodeAt(i+1),s>=56320&&s<=57343)?1024*(n-55296)+s-56320+65536:n};t?t(String.prototype,"codePointAt",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e}()})),Ci=u(((t,e)=>{p();var r=class{constructor(t,e,r){this.dfa=t,this.literalNames=e||[],this.symbolicNames=r||[]}toString(){if(null===this.dfa.s0)return null;let t="";const e=this.dfa.sortedStates();for(let r=0;r<e.length;r++){const i=e[r];if(null!==i.edges){const e=i.edges.length;for(let r=0;r<e;r++){const e=i.edges[r]||null;null!==e&&2147483647!==e.stateNumber&&(t=t.concat(this.getStateString(i)),t=t.concat("-"),t=t.concat(this.getEdgeLabel(r)),t=t.concat("->"),t=t.concat(this.getStateString(e)),t=t.concat("\n"))}}}return 0===t.length?null:t}getEdgeLabel(t){return 0===t?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[t-1]||this.symbolicNames[t-1]:String.fromCharCode(t-1)}getStateString(t){const e=(t.isAcceptState?":":"")+"s"+t.stateNumber+(t.requiresFullContext?"^":"");return t.isAcceptState?null!==t.predicates?e+"=>"+t.predicates.toString():e+"=>"+t.prediction.toString():e}};e.exports={DFASerializer:r,LexerDFASerializer:class extends r{constructor(t){super(t,null)}getEdgeLabel(t){return"'"+String.fromCharCode(t)+"'"}}}})),Oi=u(((t,e)=>{p();var{Set:r}=Xr(),{DFAState:i}=xi(),{StarLoopEntryState:n}=Qr(),{ATNConfigSet:s}=mi(),{DFASerializer:o}=Ci(),{LexerDFASerializer:a}=Ci();e.exports=class{constructor(t,e){if(void 0===e&&(e=0),this.atnStartState=t,this.decision=e,this._states=new r,this.s0=null,this.precedenceDfa=!1,t instanceof n&&t.isPrecedenceDecision){this.precedenceDfa=!0;const t=new i(null,new s);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}}getPrecedenceStartState(t){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return t<0||t>=this.s0.edges.length?null:this.s0.edges[t]||null}setPrecedenceStartState(t,e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";t<0||(this.s0.edges[t]=e)}setPrecedenceDfa(t){if(this.precedenceDfa!==t){if(this._states=new r,t){const t=new i(null,new s);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}else this.s0=null;this.precedenceDfa=t}}sortedStates(){return this._states.values().sort((function(t,e){return t.stateNumber-e.stateNumber}))}toString(t,e){return t=t||null,e=e||null,null===this.s0?"":new o(this,t,e).toString()}toLexerString(){return null===this.s0?"":new a(this).toString()}get states(){return this._states}}})),Li=u((t=>{p(),t.DFA=Oi(),t.DFASerializer=Ci().DFASerializer,t.LexerDFASerializer=Ci().LexerDFASerializer,t.PredPrediction=xi().PredPrediction})),wi=u((()=>{p(),String.fromCodePoint||function(){const t=function(){let t;try{const e={},r=Object.defineProperty;t=r(e,e,e)&&r}catch(t){}return t}(),e=String.fromCharCode,r=Math.floor,i=function(t){const i=[];let n,s,o=-1;const a=arguments.length;if(!a)return"";let l="";for(;++o<a;){let t=Number(arguments[o]);if(!isFinite(t)||t<0||t>1114111||r(t)!==t)throw RangeError("Invalid code point: "+t);t<=65535?i.push(t):(t-=65536,n=55296+(t>>10),s=t%1024+56320,i.push(n,s)),(o+1===a||i.length>16384)&&(l+=e.apply(null,i),i.length=0)}return l};t?t(String,"fromCodePoint",{value:i,configurable:!0,writable:!0}):String.fromCodePoint=i}()})),Ii=u(((t,e)=>{p();var r=ii(),i=ni();e.exports={...r,Trees:i}})),Pi=u(((t,e)=>{p();var{BitSet:r}=Xr(),{ErrorListener:i}=di(),{Interval:n}=ei();e.exports=class extends i{constructor(t){super(),t=t||!0,this.exactOnly=t}reportAmbiguity(t,e,r,i,s,o,a){if(this.exactOnly&&!s)return;const l="reportAmbiguity d="+this.getDecisionDescription(t,e)+": ambigAlts="+this.getConflictingAlts(o,a)+", input='"+t.getTokenStream().getText(new n(r,i))+"'";t.notifyErrorListeners(l)}reportAttemptingFullContext(t,e,r,i,s,o){const a="reportAttemptingFullContext d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new n(r,i))+"'";t.notifyErrorListeners(a)}reportContextSensitivity(t,e,r,i,s,o){const a="reportContextSensitivity d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new n(r,i))+"'";t.notifyErrorListeners(a)}getDecisionDescription(t,e){const r=e.decision,i=e.atnStartState.ruleIndex,n=t.ruleNames;if(i<0||i>=n.length)return""+r;const s=n[i]||null;return null===s||0===s.length?""+r:`${r} (${s})`}getConflictingAlts(t,e){if(null!==t)return t;const i=new r;for(let t=0;t<e.items.length;t++)i.add(e.items[t].alt);return`{${i.values().join(", ")}}`}}})),ki=u(((t,e)=>{p();var{Token:r}=Jr(),{NoViableAltException:i,InputMismatchException:n,FailedPredicateException:s,ParseCancellationException:o}=yi(),{ATNState:a}=Qr(),{Interval:l,IntervalSet:c}=ei(),u=class{reset(t){}recoverInline(t){}recover(t,e){}sync(t){}inErrorRecoveryMode(t){}reportError(t){}},h=class extends u{constructor(){super(),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this.nextTokensContext=null,this.nextTokenState=0}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof i?this.reportNoViableAlternative(t,e):e instanceof n?this.reportInputMismatch(t,e):e instanceof s?this.reportFailedPredicate(t,e):(console.log("unknown recognition error type: "+e.constructor.name),console.log(e.stack),t.notifyErrorListeners(e.getOffendingToken(),e.getMessage(),e)))}recover(t,e){this.lastErrorIndex===t.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(t.state)>=0&&t.consume(),this.lastErrorIndex=t._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(t.state);const r=this.getErrorRecoverySet(t);this.consumeUntil(t,r)}sync(t){if(this.inErrorRecoveryMode(t))return;const e=t._interp.atn.states[t.state],i=t.getTokenStream().LA(1),s=t.atn.nextTokens(e);if(s.contains(i))return this.nextTokensContext=null,void(this.nextTokenState=a.INVALID_STATE_NUMBER);if(s.contains(r.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=t._ctx,this.nextTokensState=t._stateNumber);else switch(e.stateType){case a.BLOCK_START:case a.STAR_BLOCK_START:case a.PLUS_BLOCK_START:case a.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(t))return;throw new n(t);case a.PLUS_LOOP_BACK:case a.STAR_LOOP_BACK:this.reportUnwantedToken(t);const e=new c;e.addSet(t.getExpectedTokens());const r=e.addSet(this.getErrorRecoverySet(t));this.consumeUntil(t,r)}}reportNoViableAlternative(t,e){const i=t.getTokenStream();let n;n=null!==i?e.startToken.type===r.EOF?"<EOF>":i.getText(new l(e.startToken.tokenIndex,e.offendingToken.tokenIndex)):"<unknown input>";const s="no viable alternative at input "+this.escapeWSAndQuote(n);t.notifyErrorListeners(s,e.offendingToken,e)}reportInputMismatch(t,e){const r="mismatched input "+this.getTokenErrorDisplay(e.offendingToken)+" expecting "+e.getExpectedTokens().toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(r,e.offendingToken,e)}reportFailedPredicate(t,e){const r="rule "+t.ruleNames[t._ctx.ruleIndex]+" "+e.message;t.notifyErrorListeners(r,e.offendingToken,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(r,e,null)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),r="missing "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,null)}recoverInline(t){const e=this.singleTokenDeletion(t);if(null!==e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw new n(t)}singleTokenInsertion(t){const e=t.getTokenStream().LA(1),r=t._interp.atn,i=r.states[t.state].transitions[0].target;return!!r.nextTokens(i,t._ctx).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){const e=t.getTokenStream().LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();const e=t.getCurrentToken();return this.reportMatch(t),e}return null}getMissingSymbol(t){const e=t.getCurrentToken(),i=this.getExpectedTokens(t).first();let n;n=i===r.EOF?"<missing EOF>":"<missing "+t.literalNames[i]+">";let s=e;const o=t.getTokenStream().LT(-1);return s.type===r.EOF&&null!==o&&(s=o),t.getTokenFactory().create(s.source,i,n,r.DEFAULT_CHANNEL,-1,-1,s.line,s.column)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(t){if(null===t)return"<no token>";let e=t.text;return null===e&&(e=t.type===r.EOF?"<EOF>":"<"+t.type+">"),this.escapeWSAndQuote(e)}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(t){const e=t._interp.atn;let i=t._ctx;const n=new c;for(;null!==i&&i.invokingState>=0;){const t=e.states[i.invokingState].transitions[0],r=e.nextTokens(t.followState);n.addSet(r),i=i.parentCtx}return n.removeOne(r.EPSILON),n}consumeUntil(t,e){let i=t.getTokenStream().LA(1);for(;i!==r.EOF&&!e.contains(i);)t.consume(),i=t.getTokenStream().LA(1)}};e.exports={BailErrorStrategy:class extends h{constructor(){super()}recover(t,e){let r=t._ctx;for(;null!==r;)r.exception=e,r=r.parentCtx;throw new o(e)}recoverInline(t){this.recover(t,new n(t))}sync(t){}},DefaultErrorStrategy:h}})),Di=u(((t,e)=>{p(),e.exports.RecognitionException=yi().RecognitionException,e.exports.NoViableAltException=yi().NoViableAltException,e.exports.LexerNoViableAltException=yi().LexerNoViableAltException,e.exports.InputMismatchException=yi().InputMismatchException,e.exports.FailedPredicateException=yi().FailedPredicateException,e.exports.DiagnosticErrorListener=Pi(),e.exports.BailErrorStrategy=ki().BailErrorStrategy,e.exports.DefaultErrorStrategy=ki().DefaultErrorStrategy,e.exports.ErrorListener=di().ErrorListener})),Fi=u(((t,e)=>{p();var{Token:r}=Jr();Ri(),wi(),e.exports=class{constructor(t,e){if(this.name="<empty>",this.strdata=t,this.decodeToUnicodeCodePoints=e||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(let t=0;t<this.strdata.length;){const e=this.strdata.codePointAt(t);this.data.push(e),t+=e<=65535?1:2}else for(let t=0;t<this.strdata.length;t++){const e=this.strdata.charCodeAt(t);this.data.push(e)}this._size=this.data.length}reset(){this._index=0}consume(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}LA(t){if(0===t)return 0;t<0&&(t+=1);const e=this._index+t-1;return e<0||e>=this._size?r.EOF:this.data[e]}LT(t){return this.LA(t)}mark(){return-1}release(t){}seek(t){t<=this._index?this._index=t:this._index=Math.min(t,this._size)}getText(t,e){if(e>=this._size&&(e=this._size-1),t>=this._size)return"";if(this.decodeToUnicodeCodePoints){let r="";for(let i=t;i<=e;i++)r+=String.fromCodePoint(this.data[i]);return r}return this.strdata.slice(t,e+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}})),Mi=u((()=>{p()})),ji=u(((t,e)=>{p();var r=Fi(),i=Mi(),n={fromString:function(t){return new r(t,!0)},fromBlob:function(t,e,i,n){const s=new window.FileReader;s.onload=function(t){const e=new r(t.target.result,!0);i(e)},s.onerror=n,s.readAsText(t,e)},fromBuffer:function(t,e){return new r(t.toString(e),!0)},fromPath:function(t,e,n){i.readFile(t,e,(function(t,e){let i=null;null!==e&&(i=new r(e,!0)),n(t,i)}))},fromPathSync:function(t,e){const n=i.readFileSync(t,e);return new r(n,!0)}};e.exports=n})),Ui=u(((t,e)=>{p();var r=Fi(),i=Mi();e.exports=class extends r{constructor(t,e){super(i.readFileSync(t,"utf8"),e),this.fileName=t}}})),Hi=u(((t,e)=>{p();var{Token:r}=Jr(),i=gi(),{Interval:n}=ei(),s=class{};e.exports=class extends s{constructor(t){super(),this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}mark(){return 0}release(t){}reset(){this.seek(0)}seek(t){this.lazyInit(),this.index=this.adjustSeekIndex(t)}get(t){return this.lazyInit(),this.tokens[t]}consume(){let t=!1;if(t=this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length),!t&&this.LA(1)===r.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}sync(t){const 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<t;e++){const t=this.tokenSource.nextToken();if(t.tokenIndex=this.tokens.length,this.tokens.push(t),t.type===r.EOF)return this.fetchedEOF=!0,e+1}return t}getTokens(t,e,i){if(void 0===i&&(i=null),t<0||e<0)return null;this.lazyInit();const n=[];e>=this.tokens.length&&(e=this.tokens.length-1);for(let s=t;s<e;s++){const t=this.tokens[s];if(t.type===r.EOF)break;(null===i||i.contains(t.type))&&n.push(t)}return n}LA(t){return this.LT(t).type}LB(t){return this.index-t<0?null:this.tokens[this.index-t]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);const e=this.index+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.index&&this.setup()}setup(){this.sync(0),this.index=this.adjustSeekIndex(0)}setTokenSource(t){this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}nextTokenOnChannel(t,e){if(this.sync(t),t>=this.tokens.length)return-1;let i=this.tokens[t];for(;i.channel!==this.channel;){if(i.type===r.EOF)return-1;t+=1,this.sync(t),i=this.tokens[t]}return t}previousTokenOnChannel(t,e){for(;t>=0&&this.tokens[t].channel!==e;)t-=1;return t}getHiddenTokensToRight(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const r=this.nextTokenOnChannel(t+1,i.DEFAULT_TOKEN_CHANNEL),n=t+1,s=-1===r?this.tokens.length-1:r;return this.filterForChannel(n,s,e)}getHiddenTokensToLeft(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const r=this.previousTokenOnChannel(t-1,i.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return null;const n=r+1,s=t-1;return this.filterForChannel(n,s,e)}filterForChannel(t,e,r){const n=[];for(let s=t;s<e+1;s++){const t=this.tokens[s];-1===r?t.channel!==i.DEFAULT_TOKEN_CHANNEL&&n.push(t):t.channel===r&&n.push(t)}return 0===n.length?null:n}getSourceName(){return this.tokenSource.getSourceName()}getText(t){this.lazyInit(),this.fill(),null==t&&(t=new n(0,this.tokens.length-1));let e=t.start;e instanceof r&&(e=e.tokenIndex);let i=t.stop;if(i instanceof r&&(i=i.tokenIndex),null===e||null===i||e<0||i<0)return"";i>=this.tokens.length&&(i=this.tokens.length-1);let s="";for(let t=e;t<i+1;t++){const e=this.tokens[t];if(e.type===r.EOF)break;s+=e.text}return s}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}}})),Ki=u(((t,e)=>{p();var r=Jr().Token,i=Hi();e.exports=class extends i{constructor(t,e){super(t),this.channel=void 0===e?r.DEFAULT_CHANNEL:e}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}LB(t){if(0===t||this.index-t<0)return null;let e=this.index,r=1;for(;r<=t;)e=this.previousTokenOnChannel(e-1,this.channel),r+=1;return e<0?null:this.tokens[e]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);let e=this.index,r=1;for(;r<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),r+=1;return this.tokens[e]}getNumberOfOnChannelTokens(){let t=0;this.fill();for(let e=0;e<this.tokens.length;e++){const i=this.tokens[e];if(i.channel===this.channel&&(t+=1),i.type===r.EOF)break}return t}}})),Bi=u(((t,e)=>{p();var{Token:r}=Jr(),{ParseTreeListener:i,TerminalNode:n,ErrorNode:s}=ii(),o=fi(),{DefaultErrorStrategy:a}=ki(),l=pi(),c=ui(),u=gi(),h=class extends i{constructor(t){super(),this.parser=t}enterEveryRule(t){console.log("enter "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}visitTerminal(t){console.log("consume "+t.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}exitEveryRule(t){console.log("exit "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}},d=class extends o{constructor(t){super(),this._input=null,this._errHandler=new a,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(t)}reset(){null!==this._input&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),null!==this._interp&&this._interp.reset()}match(t){let e=this.getCurrentToken();return e.type===t?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(e)),e}matchWildcard(){let t=this.getCurrentToken();return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this._buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(t)),t}getParseListeners(){return this._parseListeners||[]}addParseListener(t){if(null===t)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(t)}removeParseListener(t){if(null!==this._parseListeners){const e=this._parseListeners.indexOf(t);e>=0&&this._parseListeners.splice(e,1),0===this._parseListeners.length&&(this._parseListeners=null)}}removeParseListeners(){this._parseListeners=null}triggerEnterRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.map((function(e){e.enterEveryRule(t),t.enterRule(e)}))}}triggerExitRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.slice(0).reverse().map((function(e){t.exitRule(e),e.exitEveryRule(t)}))}}getTokenFactory(){return this._input.tokenSource._factory}setTokenFactory(t){this._input.tokenSource._factory=t}getATNWithBypassAlts(){const t=this.getSerializedATN();if(null===t)throw"The current parser does not support an ATN with bypass alternatives.";let e=this.bypassAltsAtnCache[t];if(null===e){const r=new c;r.generateRuleBypassTransitions=!0,e=new l(r).deserialize(t),this.bypassAltsAtnCache[t]=e}return e}compileParseTreePattern(t,e,r){if(null===(r=r||null)&&null!==this.getTokenStream()){const t=this.getTokenStream().tokenSource;t instanceof u&&(r=t)}if(null===r)throw"Parser can't discover a lexer to use";return new ParseTreePatternMatcher(r,this).compile(t,e)}getInputStream(){return this.getTokenStream()}setInputStream(t){this.setTokenStream(t)}getTokenStream(){return this._input}setTokenStream(t){this._input=null,this.reset(),this._input=t}getCurrentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){r=r||null,null===(e=e||null)&&(e=this.getCurrentToken()),this._syntaxErrors+=1;const i=e.line,n=e.column;this.getErrorListenerDispatch().syntaxError(this,e,i,n,t,r)}consume(){const t=this.getCurrentToken();t.type!==r.EOF&&this.getInputStream().consume();const e=null!==this._parseListeners&&this._parseListeners.length>0;if(this.buildParseTrees||e){let r;r=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(t):this._ctx.addTokenNode(t),r.invokingState=this.state,e&&this._parseListeners.map((function(t){r instanceof s||void 0!==r.isErrorNode&&r.isErrorNode()?t.visitErrorNode(r):r instanceof n&&t.visitTerminal(r)}))}return t}addContextToParseTree(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)}enterRule(t,e,r){this.state=e,this._ctx=t,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),null!==this._parseListeners&&this.triggerEnterRuleEvent()}exitRule(){this._ctx.stop=this._input.LT(-1),null!==this._parseListeners&&this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}enterOuterAlt(t,e){t.setAltNumber(e),this.buildParseTrees&&this._ctx!==t&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(t)),this._ctx=t}getPrecedence(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]}enterRecursionRule(t,e,r,i){this.state=e,this._precedenceStack.push(i),this._ctx=t,this._ctx.start=this._input.LT(1),null!==this._parseListeners&&this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){const i=this._ctx;i.parentCtx=t,i.invokingState=e,i.stop=this._input.LT(-1),this._ctx=t,this._ctx.start=i.start,this.buildParseTrees&&this._ctx.addChild(i),null!==this._parseListeners&&this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);const e=this._ctx;if(null!==this._parseListeners)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=t;e.parentCtx=t,this.buildParseTrees&&null!==t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;null!==e;){if(e.ruleIndex===t)return e;e=e.parentCtx}return null}precpred(t,e){return e>=this._precedenceStack[this._precedenceStack.length-1]}inContext(t){return!1}isExpectedToken(t){const e=this._interp.atn;let i=this._ctx;const n=e.states[this.state];let s=e.nextTokens(n);if(s.contains(t))return!0;if(!s.contains(r.EPSILON))return!1;for(;null!==i&&i.invokingState>=0&&s.contains(r.EPSILON);){const r=e.states[i.invokingState].transitions[0];if(s=e.nextTokens(r.followState),s.contains(t))return!0;i=i.parentCtx}return!(!s.contains(r.EPSILON)||t!==r.EOF)}getExpectedTokens(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}getExpectedTokensWithinCurrentRule(){const t=this._interp.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){const e=this.getRuleIndexMap()[t];return null!==e?e:-1}getRuleInvocationStack(t){null===(t=t||null)&&(t=this._ctx);const e=[];for(;null!==t;){const r=t.ruleIndex;r<0?e.push("n/a"):e.push(this.ruleNames[r]),t=t.parentCtx}return e}getDFAStrings(){return this._interp.decisionToDFA.toString()}dumpDFA(){let t=!1;for(let e=0;e<this._interp.decisionToDFA.length;e++){const r=this._interp.decisionToDFA[e];r.states.length>0&&(t&&console.log(),this.printer.println("Decision "+r.decision+":"),this.printer.print(r.toString(this.literalNames,this.symbolicNames)),t=!0)}}getSourceName(){return this._input.sourceName}setTrace(t){t?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new h(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}};d.bypassAltsAtnCache={},e.exports=d})),zi=u((t=>{p(),t.atn=Ai(),t.codepointat=Ri(),t.dfa=Li(),t.fromcodepoint=wi(),t.tree=Ii(),t.error=Di(),t.Token=Jr().Token,t.CharStreams=ji(),t.CommonToken=Jr().CommonToken,t.InputStream=Fi(),t.FileStream=Ui(),t.CommonTokenStream=Ki(),t.Lexer=gi(),t.Parser=Bi();var e=oi();t.PredictionContextCache=e.PredictionContextCache,t.ParserRuleContext=Ei(),t.Interval=ei().Interval,t.IntervalSet=ei().IntervalSet,t.Utils=Xr(),t.LL1Analyzer=ai().LL1Analyzer})),Vi=u(((t,e)=>{e.exports="./Solidity-LWZUP6Z4.tokens"})),qi=u(((t,e)=>{p(),e.exports=Vi()})),Gi={};((t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})})(Gi,{ParserError:()=>To,parse:()=>So,tokenize:()=>vo,visit:()=>bo}),p(),p();var $i=h(Yr());p();var Yi=h(Ve()),Wi=h(ae()),Xi=h(oe()),Ji=h(Bt()),Qi=h(gt()),Zi=class extends Wi.Lexer{get vocabulary(){return Zi.VOCABULARY}constructor(t){super(t),this._interp=new Xi.LexerATNSimulator(Zi._ATN,this)}get grammarFileName(){return"Solidity.g4"}get ruleNames(){return Zi.ruleNames}get serializedATN(){return Zi._serializedATN}get channelNames(){return Zi.channelNames}get modeNames(){return Zi.modeNames}static get _ATN(){return Zi.__ATN||(Zi.__ATN=(new Yi.ATNDeserializer).deserialize(Qi.toCharArray(Zi._serializedATN))),Zi.__ATN}},tn=Zi;tn.T__0=1,tn.T__1=2,tn.T__2=3,tn.T__3=4,tn.T__4=5,tn.T__5=6,tn.T__6=7,tn.T__7=8,tn.T__8=9,tn.T__9=10,tn.T__10=11,tn.T__11=12,tn.T__12=13,tn.T__13=14,tn.T__14=15,tn.T__15=16,tn.T__16=17,tn.T__17=18,tn.T__18=19,tn.T__19=20,tn.T__20=21,tn.T__21=22,tn.T__22=23,tn.T__23=24,tn.T__24=25,tn.T__25=26,tn.T__26=27,tn.T__27=28,tn.T__28=29,tn.T__29=30,tn.T__30=31,tn.T__31=32,tn.T__32=33,tn.T__33=34,tn.T__34=35,tn.T__35=36,tn.T__36=37,tn.T__37=38,tn.T__38=39,tn.T__39=40,tn.T__40=41,tn.T__41=42,tn.T__42=43,tn.T__43=44,tn.T__44=45,tn.T__45=46,tn.T__46=47,tn.T__47=48,tn.T__48=49,tn.T__49=50,tn.T__50=51,tn.T__51=52,tn.T__52=53,tn.T__53=54,tn.T__54=55,tn.T__55=56,tn.T__56=57,tn.T__57=58,tn.T__58=59,tn.T__59=60,tn.T__60=61,tn.T__61=62,tn.T__62=63,tn.T__63=64,tn.T__64=65,tn.T__65=66,tn.T__66=67,tn.T__67=68,tn.T__68=69,tn.T__69=70,tn.T__70=71,tn.T__71=72,tn.T__72=73,tn.T__73=74,tn.T__74=75,tn.T__75=76,tn.T__76=77,tn.T__77=78,tn.T__78=79,tn.T__79=80,tn.T__80=81,tn.T__81=82,tn.T__82=83,tn.T__83=84,tn.T__84=85,tn.T__85=86,tn.T__86=87,tn.T__87=88,tn.T__88=89,tn.T__89=90,tn.T__90=91,tn.T__91=92,tn.T__92=93,tn.T__93=94,tn.T__94=95,tn.T__95=96,tn.Int=97,tn.Uint=98,tn.Byte=99,tn.Fixed=100,tn.Ufixed=101,tn.BooleanLiteral=102,tn.DecimalNumber=103,tn.HexNumber=104,tn.NumberUnit=105,tn.HexLiteralFragment=106,tn.ReservedKeyword=107,tn.AnonymousKeyword=108,tn.BreakKeyword=109,tn.ConstantKeyword=110,tn.ImmutableKeyword=111,tn.ContinueKeyword=112,tn.LeaveKeyword=113,tn.ExternalKeyword=114,tn.IndexedKeyword=115,tn.InternalKeyword=116,tn.PayableKeyword=117,tn.PrivateKeyword=118,tn.PublicKeyword=119,tn.VirtualKeyword=120,tn.PureKeyword=121,tn.TypeKeyword=122,tn.ViewKeyword=123,tn.GlobalKeyword=124,tn.ConstructorKeyword=125,tn.FallbackKeyword=126,tn.ReceiveKeyword=127,tn.Identifier=128,tn.StringLiteralFragment=129,tn.VersionLiteral=130,tn.WS=131,tn.COMMENT=132,tn.LINE_COMMENT=133,tn.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],tn.modeNames=["DEFAULT_MODE"],tn.ruleNames=["T__0","T__1","T__2","T__3","T__4","T__5","T__6","T__7","T__8","T__9","T__10","T__11","T__12","T__13","T__14","T__15","T__16","T__17","T__18","T__19","T__20","T__21","T__22","T__23","T__24","T__25","T__26","T__27","T__28","T__29","T__30","T__31","T__32","T__33","T__34","T__35","T__36","T__37","T__38","T__39","T__40","T__41","T__42","T__43","T__44","T__45","T__46","T__47","T__48","T__49","T__50","T__51","T__52","T__53","T__54","T__55","T__56","T__57","T__58","T__59","T__60","T__61","T__62","T__63","T__64","T__65","T__66","T__67","T__68","T__69","T__70","T__71","T__72","T__73","T__74","T__75","T__76","T__77","T__78","T__79","T__80","T__81","T__82","T__83","T__84","T__85","T__86","T__87","T__88","T__89","T__90","T__91","T__92","T__93","T__94","T__95","Int","Uint","Byte","Fixed","Ufixed","NumberOfBits","NumberOfBytes","BooleanLiteral","DecimalNumber","DecimalDigits","HexNumber","HexDigits","NumberUnit","HexLiteralFragment","HexCharacter","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","IdentifierStart","IdentifierPart","StringLiteralFragment","DoubleQuotedStringCharacter","SingleQuotedStringCharacter","VersionLiteral","WS","COMMENT","LINE_COMMENT"],tn._LITERAL_NAMES=[void 0,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"'anonymous'","'break'","'constant'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],tn._SYMBOLIC_NAMES=[void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],tn.VOCABULARY=new Ji.VocabularyImpl(Zi._LITERAL_NAMES,Zi._SYMBOLIC_NAMES,[]),tn._serializedATNSegments=3,tn._serializedATNSegment0="줝쪺֍꾺体؇쉁Ժ\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<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tVW\tWX\tXY\tYZ\tZ[\t[\\\t\\]\t]^\t^_\t_`\t`a\tab\tbc\tcd\tde\tef\tfg\tgh\thi\tij\tjk\tkl\tlm\tmn\tno\top\tpq\tqr\trs\tst\ttu\tuv\tvw\twx\txy\tyz\tz{\t{|\t|}\t}~\t~\t\t\t\t\t\t
\t
\t\t\t\t\t\t\t\t\t\t\b\b\b\t\t\n\n\v\v\v\f\f\r\r\r !!\"\"###$$$%%%%%%%&&&&&&&&&'''''''''(((((((())))))*****++,,--------..////////0001111111222222223333333334445555566667777778888889999999999:::::::::;;;<<<<<<<======>>>>>???????@@@@AAAAABBBBBBBCCCCCDDDEEEFFFFGGHHHHHHHIIJJJKKKLLLMMMNNOOOPPPQQQRRRRSSSSTTTUUUVVVWWWXXXYYYYZZZ[[[\\\\\\\\\\\\\\]]]]]^^^^^^^^___`````````aaaaaaaaabbbbbb˔\nbccccccc˜\ncdddddddd˥\ndeeeeeeeeee˰\ne\ree˱e˴\nefffffffffff̀\nf\rff́f̄\nfgggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg͙\nghhhhhh͠\nhiiiiiiiiiiͫ\nijjjͯ\njjjjͳ\njjjjͷ\njjjͺ\njkkk;\nkkk\nk\fkk΄\vkllllmmmΌ\nmmmΏ\nm\fmmΒ\vmnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnό\nnoooooooϔ\noooooϙ\noooϜ\noppqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqи\nqrrrrrrrrrrsssssstttttttttuuuuuuuuuuvvvvvvvvvwwwwwwxxxxxxxxxyyyyyyyyzzzzzzzzz{{{{{{{{||||||||}}}}}}}~~~~~~~~
Ӛ\n\fӝ\vӪ\nӮ\n\fӱ\vӶ\n\fӹ\vӼ\nԁ\nԆ\nԉ\n\rԊԏ\n\rԐԕ\n\rԖԙ\nԜ\n\rԝԦ\n\fԩ\vԴ\n\fԷ\vԧ\t\v\r\b\t\n\v\f\r!#%')+-/13579;= ?!A\"C#E$G%I&K'M(O)Q*S+U,W-Y.[/]0_1a2c3e4g5i6k7m8o9q:s;u<w=y>{?}@ABC
DEFGHIJKLMNOPQ¡R£S¥T§U©V«WX¯Y±Z³[µ\\·]¹^»_½`¿aÁbÃcÅdÇeÉfËgÍÏÑhÓiÕ×jÙÛkÝlßámãnåoçpéqërísïtñuóvõw÷xùyûzý{ÿ|ā}ă~ąćĉċčďđēĕėę
ěĝ2;3;3424GGggZZzz2;CHch&&C\\aac|&&2;C\\aac|\f\f$$^^\f\f))^^\v\f\"\"\f\f\t\v\r!#%')+-/13579;=?ACEGIKMOQSUWY[]_acegikmoqsuwy{}
¡£¥§©«¯±³µ·¹»½¿ÁÃÅÇÉËÑÓ×ÛÝáãåçéëíïñóõ÷ùûýÿāăąćĉċđėęěĝğĦĨ\tĪ\vĭ\rįıĴĶĸĻĽŀŇŌ!Ŏ#Ő%Œ'ś)Ť+Ů-Ŷ/Ź1Ż3Ž5ƃ7Ɖ9ƍ;Ə=Ƒ?ƓAƕCƗEƙGƜIƟKƦMƯOƸQǀSdžUNjWǍYǏ[Ǘ]Ǚ_ǡaǤcǫedzgǼiǿkȄmȈoȎqȔsȞuȧwȪyȱ{ȷ}ȼɃɇɌ
ɓɘɛɞɢɤɫɭɰɳɶɹɻɾ¡ʁ£ʄ¥ʈ§ʌ©ʏ«ʒʕ¯ʘ±ʛ³ʟµʢ·ʥ¹ʬ»ʱ½ʹ¿ʼÁ˅ÃˎÅ˕Ç˝É˦Ë˵Í͘Ï͟ÑͪÓͲÕͻ×΅ÙΉÛϋÝύßϝáзãйåуçщéђëќíѥïѫñѴóѼõ҅÷ҍùҕûҜýҤÿҩāҮăҳąҺćӆĉӏċӗčӞďӠđөēԀĕԅėԈęԛěԡĝԯğĠrĠġtġĢcĢģiģĤoĤĥcĥĦħ=ħĨĩ,ĩ\bĪī~īĬ~Ĭ\nĭĮ`",tn._serializedATNSegment1="Į\fįİİıIJ@IJij?ijĴĵ@ĵĶķ>ķĸĹ>Ĺĺ?ĺĻļ?ļĽľcľĿuĿŀŁkŁłołŃrŃńqńŅtŅņvņŇňhňʼntʼnŊqŊŋoŋŌō}ō Ŏŏ.ŏ\"Őőő$ŒœcœŔdŔŕuŕŖvŖŗtŗŘcŘřeřŚvŚ&śŜeŜŝqŝŞpŞşvşŠtŠšcšŢeŢţvţ(ŤťkťŦpŦŧvŧŨgŨũtũŪhŪūcūŬeŬŭgŭ*ŮůnůŰkŰűdűŲtŲųcųŴtŴŵ{ŵ,ŶŷkŷŸuŸ.Źź*ź0Żż+ż2ŽžgžſtſƀtƀƁqƁƂtƂ4ƃƄwƄƅuƅƆkƆƇpƇƈiƈ6ƉƊhƊƋqƋƌtƌ8ƍƎ~Ǝ:ƏƐ(Ɛ<Ƒƒ-ƒ>ƓƔ/Ɣ@ƕƖ1ƖBƗƘ'ƘDƙƚ?ƚƛ?ƛFƜƝ#Ɲƞ?ƞHƟƠuƠơvơƢtƢƣwƣƤeƤƥvƥJƦƧoƧƨqƨƩfƩƪkƪƫhƫƬkƬƭgƭƮtƮLƯưhưƱwƱƲpƲƳeƳƴvƴƵkƵƶqƶƷpƷNƸƹtƹƺgƺƻvƻƼwƼƽtƽƾpƾƿuƿPǀǁgǁǂxǂǃgǃDŽpDŽDžvDžRdžLJgLJLjpLjljwljNJoNJTNjnj]njVǍǎ_ǎXǏǐcǐǑfǑǒfǒǓtǓǔgǔǕuǕǖuǖZǗǘ0ǘ\\ǙǚoǚǛcǛǜrǜǝrǝǞkǞǟpǟǠiǠ^ǡǢ?Ǣǣ@ǣ`ǤǥoǥǦgǦǧoǧǨqǨǩtǩǪ{ǪbǫǬuǬǭvǭǮqǮǯtǯǰcǰDZiDZDzgDzddzǴeǴǵcǵǶnǶǷnǷǸfǸǹcǹǺvǺǻcǻfǼǽkǽǾhǾhǿȀgȀȁnȁȂuȂȃgȃjȄȅvȅȆtȆȇ{ȇlȈȉeȉȊcȊȋvȋȌeȌȍjȍnȎȏyȏȐjȐȑkȑȒnȒȓgȓpȔȕwȕȖpȖȗeȗȘjȘșgșȚeȚțmțȜgȜȝfȝrȞȟcȟȠuȠȡuȡȢgȢȣoȣȤdȤȥnȥȦ{ȦtȧȨfȨȩqȩvȪȫtȫȬgȬȭvȭȮwȮȯtȯȰpȰxȱȲvȲȳjȳȴtȴȵqȵȶyȶzȷȸgȸȹoȹȺkȺȻvȻ|ȼȽtȽȾgȾȿxȿɀgɀɁtɁɂvɂ~ɃɄxɄɅcɅɆtɆɇɈdɈɉqɉɊqɊɋnɋɌɍuɍɎvɎɏtɏɐkɐɑpɑɒiɒɓɔdɔɕ{ɕɖvɖɗgɗɘə-əɚ-ɚɛɜ/ɜɝ/ɝɞɟpɟɠgɠɡyɡɢɣ<ɣɤɥfɥɦgɦɧnɧɨgɨɩvɩɪgɪɫɬ#ɬɭɮ,ɮɯ,ɯɰɱ>ɱɲ>ɲɳɴ@ɴɵ@ɵɶɷ(ɷɸ(ɸɹɺAɺɻɼ~ɼɽ?ɽɾɿ`ɿʀ?ʀ ʁʂ(ʂʃ?ʃ¢ʄʅ>ʅʆ>ʆʇ?ʇ¤ʈʉ@ʉʊ@ʊʋ?ʋ¦ʌʍ-ʍʎ?ʎ¨ʏʐ/ʐʑ?ʑªʒʓ,ʓʔ?ʔ¬ʕʖ1ʖʗ?ʗ®ʘʙ'ʙʚ?ʚ°ʛʜnʜʝgʝʞvʞ²ʟʠ<ʠʡ?ʡ´ʢʣ?ʣʤ<ʤ¶ʥʦuʦʧyʧʨkʨʩvʩʪeʪʫjʫ¸ʬʭeʭʮcʮʯuʯʰgʰºʱʲfʲʳgʳʴhʴʵcʵʶwʶʷnʷʸvʸ¼ʹʺ/ʺʻ@ʻ¾ʼʽeʽʾcʾʿnʿˀnˀˁdˁ˂c˂˃e˃˄m˄À˅ˆqˆˇxˇˈgˈˉtˉˊtˊˋkˋˌfˌˍgˍÂˎˏkˏːpːˑvˑ˓˒˔Íg˓˒˓˔˔Ä˕˖w˖˗k˗˘p˘˙v˙˛˚˜Íg˛˚˛˜˜Æ˝˞d˞˟{˟ˠvˠˡgˡˢuˢˤˣ˥Ïhˤˣˤ˥˥È˦˧h˧˨k˨˩z˩˪g˪˫f˫˳ˬ˭Íg˭˯zˮ˰\t˯ˮ˰˱˱˯˱˲˲˴˳ˬ˳˴˴Ê˵˶w˶˷h˷˸k˸˹z˹˺g˺˻f˻̃˼˽Íg˽˿z˾̀\t˿˾̀́́˿́̂̂̄̃˼̃̄̄Ì͙̅:̆̇3͙̇8̈̉4͙̉6̊̋5͙̋4̌̍6͙̍2̎̏6͙̏:̐̑7͙̑8̒̓8͙̓6̔̕9͙̕4̖̗:̗͙2̘̙:̙͙:̛̚;̛͙8̜̝3̝̞2̞͙6̟̠3̡̠3̡͙4̢̣3̣̤4̤͙2̥̦3̧̦4̧͙:̨̩3̩̪5̪͙8̫̬3̬̭6̭͙6̮̯3̯̰7̰͙4̱̲3̲̳8̳͙2̴̵3̵̶8̶͙:̷̸3̸̹9̹͙8̺̻3̻̼:̼͙6̽̾3̾̿;͙̿4̀́4́͂2͙͂2̓̈́4̈́ͅ2͙ͅ:͇͆4͇͈3͈͙8͉͊4͊͋4͙͋6͍͌4͍͎5͎͙4͏͐4͐͑6͙͑2͓͒4͓͔6͔͙:͕͖4͖͗7͙͗8̴̷̢̨̖̘̜̟̥̫̮̱̺͉̅̆̈̊̌̎̐̒̔̽̀̓͆͌͘͘͘͘͘͘͘͘͘͘͘͘̚͘͘͘͘͘͘͘͘͘͘͘͘͘͘͘͘͘͘͏͕͙͒͘͘Î͚͠\t͛͜\t͜͠\t͝͞5͞͠\t͚͛͟͟͟͝͠Ð͢͡vͣ͢tͣͤwͤͫgͥͦhͦͧcͧͨnͨͩuͩͫgͪͪͥͫ͡ÒͬͳÕkͭͯÕkͮͭͮͯͯͰͰͱ0ͱͳÕkͲͬͲͮͳʹͶ\t͵ͷ/Ͷ͵ͶͷͷͺÕkʹͺͺÔͻ\tͼ;aͽͼͽ;;ͿͿ\tͽ΄Ö΄΅Ά2Ά·\t·ΈÙmΈØΉΐßpΊΌaΊΌΌΏßpΎΏΒΐΎΐΑΑÚΒΐΓΔyΔΕgΕόkΖΗiΗΘyΘΙgΙόkΚΛuΛΜ|ΜΝcΝΞdΞόqΟΠhΠΡkΡpΣpΣΤgΤό{ΥΦgΦΧvΧΨjΨΩgΩόtΪΫuΫάgάέeέήqήίpίΰfΰόuαβoβγkγδpδεwεζvζηgηόuθιjικqκλwλμtμόuνξfξοcοπ{πόuρςyςσgστgτυmυόuφχ{χψgψωcωϊtϊόuϋΓϋΖϋΚϋΟϋΥϋΪϋαϋθϋνϋρϋφόÜύώjώϏgϏϐzϐϛϑϓ$ϒϔÙmϓϒϓϔϔϕϕϜ$ϖϘ)ϗϙÙmϘϗϘϙϙϚϚϜ)ϛϑϛϖϜÞϝϞ\t\bϞàϟϠcϠϡdϡϢuϢϣvϣϤtϤϥcϥϦeϦиvϧϨcϨϩhϩϪvϪϫgϫиtϬϭeϭϮcϮϯuϯиgϰϱeϱϲcϲϳvϳϴeϴиjϵ϶f϶ϷgϷϸhϸϹcϹϺwϺϻnϻиvϼϽhϽϾkϾϿpϿЀcЀиnЁЂkЂиpЃЄkЄЅpЅІnІЇkЇЈpЈиgЉЊnЊЋgЋиvЌЍoЍЎcЎЏvЏАeАиjБВpВГwГДnДиnЕЖqЖиhЗИtИЙgЙКnКЛqЛМeМНcНОvОПcПРdРСnСиgТУuУФvФХcХЦvЦЧkЧиeШЩuЩЪyЪЫkЫЬvЬЭeЭиjЮЯvЯаtаи{",tn._serializedATNSegment2="бвvвг{гдrдеgежqжиhзϟзϧзϬзϰзϵзϼзЁзЃзЉзЌзБзЕзЗзТзШзЮзбиâйкcклpлмqмнpно{опoпрqрсwстuтäуфdфхtхцgцчcчшmшæщъeъыqыьpьэuэюvюяcяѐpѐёvёèђѓkѓєoєѕoѕіwіїvїјcјљdљњnњћgћêќѝeѝўqўџpџѠvѠѡkѡѢpѢѣwѣѤgѤìѥѦnѦѧgѧѨcѨѩxѩѪgѪîѫѬgѬѭzѭѮvѮѯgѯѰtѰѱpѱѲcѲѳnѳðѴѵkѵѶpѶѷfѷѸgѸѹzѹѺgѺѻfѻòѼѽkѽѾpѾѿvѿҀgҀҁtҁ҂p҂҃c҃҄n҄ô҅҆r҆҇c҇҈{҈҉c҉ҊdҊҋnҋҌgҌöҍҎrҎҏtҏҐkҐґxґҒcҒғvғҔgҔøҕҖrҖҗwҗҘdҘҙnҙҚkҚқeқúҜҝxҝҞkҞҟtҟҠvҠҡwҡҢcҢңnңüҤҥrҥҦwҦҧtҧҨgҨþҩҪvҪҫ{ҫҬrҬҭgҭĀҮүxүҰkҰұgұҲyҲĂҳҴiҴҵnҵҶqҶҷdҷҸcҸҹnҹĄҺһeһҼqҼҽpҽҾuҾҿvҿӀtӀӁwӁӂeӂӃvӃӄqӄӅtӅĆӆӇhӇӈcӈӉnӉӊnӊӋdӋӌcӌӍeӍӎmӎĈӏӐtӐӑgӑӒeӒӓgӓӔkӔӕxӕӖgӖĊӗӛčӘӚďәӘӚӝӛәӛӜӜČӝӛӞӟ\t\tӟĎӠӡ\t\nӡĐӢӣwӣӤpӤӥkӥӦeӦӧqӧӨfӨӪgөӢөӪӪӻӫӯ$ӬӮēӭӬӮӱӯӭӯӰӰӲӱӯӲӼ$ӳӷ)ӴӶĕӵӴӶӹӷӵӷӸӸӺӹӷӺӼ)ӻӫӻӳӼĒӽԁ\n\vӾӿ^ӿԁ\vԀӽԀӾԁĔԂԆ\n\fԃԄ^ԄԆ\vԅԂԅԃԆĖԇԉ\tԈԇԉԊԊԈԊԋԋԌԌԎ0ԍԏ\tԎԍԏԐԐԎԐԑԑԘԒԔ0ԓԕ\tԔԓԕԖԖԔԖԗԗԙԘԒԘԙԙĘԚԜ\t\rԛԚԜԝԝԛԝԞԞԟԟԠ\bԠĚԡԢ1Ԣԣ,ԣԧԤԦ\vԥԤԦԩԧԨԧԥԨԪԩԧԪԫ,ԫԬ1ԬԭԭԮ\bԮĜԯ1Ա1ԱԵԲԴ\nԳԲԴԷԵԳԵԶԶԸԷԵԸԹ\bԹĞ(˓˛ˤ˱˳́̃ͪͮ͘͟ͲͶͽΐϋϓϘϛзӛөӯӷӻԀԅԊԐԖԘԝԧԵ\b",tn._serializedATN=Qi.join([Zi._serializedATNSegment0,Zi._serializedATNSegment1,Zi._serializedATNSegment2],""),p();var en=h(ee()),rn=h(Ve()),nn=h(Tt()),sn=h(wr()),on=h(Lr()),an=h(we()),ln=h(ke()),cn=h(ct()),un=h(Nt()),hn=h(Bt()),pn=h(gt()),dn=class extends on.Parser{get vocabulary(){return dn.VOCABULARY}get grammarFileName(){return"Solidity.g4"}get ruleNames(){return dn.ruleNames}get serializedATN(){return dn._serializedATN}createFailedPredicateException(t,e){return new nn.FailedPredicateException(this,t,e)}constructor(t){super(t),this._interp=new ln.ParserATNSimulator(dn._ATN,this)}sourceUnit(){let t,e=new _n(this._ctx,this.state);this.enterRule(e,0,dn.RULE_sourceUnit);try{for(this.enterOuterAlt(e,1),this.state=215,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<dn.T__0|1<<dn.T__12|1<<dn.T__13|1<<dn.T__17|1<<dn.T__18|1<<dn.T__19|1<<dn.T__20|1<<dn.T__24|1<<dn.T__25))||0==(t-36&-32)&&0!=(1<<t-36&(1<<dn.T__35-36|1<<dn.T__37-36|1<<dn.T__39-36|1<<dn.T__40-36|1<<dn.T__43-36|1<<dn.T__45-36|1<<dn.T__49-36|1<<dn.T__61-36|1<<dn.T__62-36|1<<dn.T__63-36|1<<dn.T__64-36|1<<dn.T__65-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.Int-95|1<<dn.Uint-95|1<<dn.Byte-95|1<<dn.Fixed-95|1<<dn.Ufixed-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.TypeKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95|1<<dn.FallbackKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier;){switch(this.state=213,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,0,this._ctx)){case 1:this.state=202,this.pragmaDirective();break;case 2:this.state=203,this.importDirective();break;case 3:this.state=204,this.contractDefinition();break;case 4:this.state=205,this.enumDefinition();break;case 5:this.state=206,this.eventDefinition();break;case 6:this.state=207,this.structDefinition();break;case 7:this.state=208,this.functionDefinition();break;case 8:this.state=209,this.fileLevelConstant();break;case 9:this.state=210,this.customErrorDefinition();break;case 10:this.state=211,this.typeDefinition();break;case 11:this.state=212,this.usingForDeclaration()}this.state=217,this._errHandler.sync(this),t=this._input.LA(1)}this.state=218,this.match(dn.EOF)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}pragmaDirective(){let t=new yn(this._ctx,this.state);this.enterRule(t,2,dn.RULE_pragmaDirective);try{this.enterOuterAlt(t,1),this.state=220,this.match(dn.T__0),this.state=221,this.pragmaName(),this.state=222,this.pragmaValue(),this.state=223,this.match(dn.T__1)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}pragmaName(){let t=new gn(this._ctx,this.state);this.enterRule(t,4,dn.RULE_pragmaName);try{this.enterOuterAlt(t,1),this.state=225,this.identifier()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}pragmaValue(){let t=new mn(this._ctx,this.state);this.enterRule(t,6,dn.RULE_pragmaValue);try{switch(this.state=230,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,2,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=227,this.match(dn.T__2);break;case 2:this.enterOuterAlt(t,2),this.state=228,this.version();break;case 3:this.enterOuterAlt(t,3),this.state=229,this.expression(0)}}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}version(){let t,e=new xn(this._ctx,this.state);this.enterRule(e,8,dn.RULE_version);try{for(this.enterOuterAlt(e,1),this.state=232,this.versionConstraint(),this.state=239,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<dn.T__3|1<<dn.T__4|1<<dn.T__5|1<<dn.T__6|1<<dn.T__7|1<<dn.T__8|1<<dn.T__9|1<<dn.T__10))||t===dn.DecimalNumber||t===dn.VersionLiteral;)this.state=234,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__3&&(this.state=233,this.match(dn.T__3)),this.state=236,this.versionConstraint(),this.state=241,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}versionOperator(){let t,e=new Tn(this._ctx,this.state);this.enterRule(e,10,dn.RULE_versionOperator);try{this.enterOuterAlt(e,1),this.state=242,t=this._input.LA(1),0!=(-32&t)||0==(1<<t&(1<<dn.T__4|1<<dn.T__5|1<<dn.T__6|1<<dn.T__7|1<<dn.T__8|1<<dn.T__9|1<<dn.T__10))?this._errHandler.recoverInline(this):(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}versionConstraint(){let t,e=new vn(this._ctx,this.state);this.enterRule(e,12,dn.RULE_versionConstraint);try{switch(this.state=252,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=245,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&(1<<dn.T__4|1<<dn.T__5|1<<dn.T__6|1<<dn.T__7|1<<dn.T__8|1<<dn.T__9|1<<dn.T__10))&&(this.state=244,this.versionOperator()),this.state=247,this.match(dn.VersionLiteral);break;case 2:this.enterOuterAlt(e,2),this.state=249,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&(1<<dn.T__4|1<<dn.T__5|1<<dn.T__6|1<<dn.T__7|1<<dn.T__8|1<<dn.T__9|1<<dn.T__10))&&(this.state=248,this.versionOperator()),this.state=251,this.match(dn.DecimalNumber)}}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importDeclaration(){let t,e=new Sn(this._ctx,this.state);this.enterRule(e,14,dn.RULE_importDeclaration);try{this.enterOuterAlt(e,1),this.state=254,this.identifier(),this.state=257,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__11&&(this.state=255,this.match(dn.T__11),this.state=256,this.identifier())}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importDirective(){let t,e=new bn(this._ctx,this.state);this.enterRule(e,16,dn.RULE_importDirective);try{switch(this.state=295,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,13,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=259,this.match(dn.T__12),this.state=260,this.importPath(),this.state=263,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__11&&(this.state=261,this.match(dn.T__11),this.state=262,this.identifier()),this.state=265,this.match(dn.T__1);break;case 2:switch(this.enterOuterAlt(e,2),this.state=267,this.match(dn.T__12),this.state=270,this._errHandler.sync(this),this._input.LA(1)){case dn.T__2:this.state=268,this.match(dn.T__2);break;case dn.T__13:case dn.T__24:case dn.T__43:case dn.T__49:case dn.T__61:case dn.T__94:case dn.LeaveKeyword:case dn.PayableKeyword:case dn.GlobalKeyword:case dn.ConstructorKeyword:case dn.ReceiveKeyword:case dn.Identifier:this.state=269,this.identifier();break;default:throw new sn.NoViableAltException(this)}this.state=274,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__11&&(this.state=272,this.match(dn.T__11),this.state=273,this.identifier()),this.state=276,this.match(dn.T__13),this.state=277,this.importPath(),this.state=278,this.match(dn.T__1);break;case 3:for(this.enterOuterAlt(e,3),this.state=280,this.match(dn.T__12),this.state=281,this.match(dn.T__14),this.state=282,this.importDeclaration(),this.state=287,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=283,this.match(dn.T__15),this.state=284,this.importDeclaration(),this.state=289,this._errHandler.sync(this),t=this._input.LA(1);this.state=290,this.match(dn.T__16),this.state=291,this.match(dn.T__13),this.state=292,this.importPath(),this.state=293,this.match(dn.T__1)}}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importPath(){let t=new En(this._ctx,this.state);this.enterRule(t,18,dn.RULE_importPath);try{this.enterOuterAlt(t,1),this.state=297,this.match(dn.StringLiteralFragment)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}contractDefinition(){let t,e=new Nn(this._ctx,this.state);this.enterRule(e,20,dn.RULE_contractDefinition);try{if(this.enterOuterAlt(e,1),this.state=300,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__17&&(this.state=299,this.match(dn.T__17)),this.state=302,t=this._input.LA(1),0!=(-32&t)||0==(1<<t&(1<<dn.T__18|1<<dn.T__19|1<<dn.T__20))?this._errHandler.recoverInline(this):(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=303,this.identifier(),this.state=313,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__21)for(this.state=304,this.match(dn.T__21),this.state=305,this.inheritanceSpecifier(),this.state=310,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=306,this.match(dn.T__15),this.state=307,this.inheritanceSpecifier(),this.state=312,this._errHandler.sync(this),t=this._input.LA(1);for(this.state=315,this.match(dn.T__14),this.state=319,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<dn.T__13|1<<dn.T__24|1<<dn.T__25))||0==(t-36&-32)&&0!=(1<<t-36&(1<<dn.T__35-36|1<<dn.T__36-36|1<<dn.T__37-36|1<<dn.T__39-36|1<<dn.T__40-36|1<<dn.T__43-36|1<<dn.T__45-36|1<<dn.T__49-36|1<<dn.T__61-36|1<<dn.T__62-36|1<<dn.T__63-36|1<<dn.T__64-36|1<<dn.T__65-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.Int-95|1<<dn.Uint-95|1<<dn.Byte-95|1<<dn.Fixed-95|1<<dn.Ufixed-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.TypeKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95|1<<dn.FallbackKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier;)this.state=316,this.contractPart(),this.state=321,this._errHandler.sync(this),t=this._input.LA(1);this.state=322,this.match(dn.T__16)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}inheritanceSpecifier(){let t,e=new An(this._ctx,this.state);this.enterRule(e,22,dn.RULE_inheritanceSpecifier);try{this.enterOuterAlt(e,1),this.state=324,this.userDefinedTypeName(),this.state=330,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__22&&(this.state=325,this.match(dn.T__22),this.state=327,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<dn.T__5|1<<dn.T__13|1<<dn.T__22|1<<dn.T__24|1<<dn.T__29|1<<dn.T__30))||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__41-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38|1<<dn.T__66-38|1<<dn.T__67-38|1<<dn.T__68-38))||0==(t-71&-32)&&0!=(1<<t-71&(1<<dn.T__70-71|1<<dn.T__71-71|1<<dn.T__94-71|1<<dn.Int-71|1<<dn.Uint-71|1<<dn.Byte-71|1<<dn.Fixed-71|1<<dn.Ufixed-71|1<<dn.BooleanLiteral-71))||0==(t-103&-32)&&0!=(1<<t-103&(1<<dn.DecimalNumber-103|1<<dn.HexNumber-103|1<<dn.HexLiteralFragment-103|1<<dn.LeaveKeyword-103|1<<dn.PayableKeyword-103|1<<dn.TypeKeyword-103|1<<dn.GlobalKeyword-103|1<<dn.ConstructorKeyword-103|1<<dn.ReceiveKeyword-103|1<<dn.Identifier-103|1<<dn.StringLiteralFragment-103)))&&(this.state=326,this.expressionList()),this.state=329,this.match(dn.T__23))}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}contractPart(){let t=new Rn(this._ctx,this.state);this.enterRule(t,24,dn.RULE_contractPart);try{switch(this.state=341,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,20,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=332,this.stateVariableDeclaration();break;case 2:this.enterOuterAlt(t,2),this.state=333,this.usingForDeclaration();break;case 3:this.enterOuterAlt(t,3),this.state=334,this.structDefinition();break;case 4:this.enterOuterAlt(t,4),this.state=335,this.modifierDefinition();break;case 5:this.enterOuterAlt(t,5),this.state=336,this.functionDefinition();break;case 6:this.enterOuterAlt(t,6),this.state=337,this.eventDefinition();break;case 7:this.enterOuterAlt(t,7),this.state=338,this.enumDefinition();break;case 8:this.enterOuterAlt(t,8),this.state=339,this.customErrorDefinition();break;case 9:this.enterOuterAlt(t,9),this.state=340,this.typeDefinition()}}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}stateVariableDeclaration(){let t,e=new Cn(this._ctx,this.state);this.enterRule(e,26,dn.RULE_stateVariableDeclaration);try{for(this.enterOuterAlt(e,1),this.state=343,this.typeName(0),this.state=352,this._errHandler.sync(this),t=this._input.LA(1);0==(t-96&-32)&&0!=(1<<t-96&(1<<dn.T__95-96|1<<dn.ConstantKeyword-96|1<<dn.ImmutableKeyword-96|1<<dn.InternalKeyword-96|1<<dn.PrivateKeyword-96|1<<dn.PublicKeyword-96));){switch(this.state=350,this._errHandler.sync(this),this._input.LA(1)){case dn.PublicKeyword:this.state=344,this.match(dn.PublicKeyword);break;case dn.InternalKeyword:this.state=345,this.match(dn.InternalKeyword);break;case dn.PrivateKeyword:this.state=346,this.match(dn.PrivateKeyword);break;case dn.ConstantKeyword:this.state=347,this.match(dn.ConstantKeyword);break;case dn.ImmutableKeyword:this.state=348,this.match(dn.ImmutableKeyword);break;case dn.T__95:this.state=349,this.overrideSpecifier();break;default:throw new sn.NoViableAltException(this)}this.state=354,this._errHandler.sync(this),t=this._input.LA(1)}this.state=355,this.identifier(),this.state=358,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__10&&(this.state=356,this.match(dn.T__10),this.state=357,this.expression(0)),this.state=360,this.match(dn.T__1)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}fileLevelConstant(){let t=new On(this._ctx,this.state);this.enterRule(t,28,dn.RULE_fileLevelConstant);try{this.enterOuterAlt(t,1),this.state=362,this.typeName(0),this.state=363,this.match(dn.ConstantKeyword),this.state=364,this.identifier(),this.state=365,this.match(dn.T__10),this.state=366,this.expression(0),this.state=367,this.match(dn.T__1)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}customErrorDefinition(){let t=new Ln(this._ctx,this.state);this.enterRule(t,30,dn.RULE_customErrorDefinition);try{this.enterOuterAlt(t,1),this.state=369,this.match(dn.T__24),this.state=370,this.identifier(),this.state=371,this.parameterList(),this.state=372,this.match(dn.T__1)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}typeDefinition(){let t=new wn(this._ctx,this.state);this.enterRule(t,32,dn.RULE_typeDefinition);try{this.enterOuterAlt(t,1),this.state=374,this.match(dn.TypeKeyword),this.state=375,this.identifier(),this.state=376,this.match(dn.T__21),this.state=377,this.elementaryTypeName(),this.state=378,this.match(dn.T__1)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}usingForDeclaration(){let t,e=new In(this._ctx,this.state);this.enterRule(e,34,dn.RULE_usingForDeclaration);try{switch(this.enterOuterAlt(e,1),this.state=380,this.match(dn.T__25),this.state=381,this.usingForObject(),this.state=382,this.match(dn.T__26),this.state=385,this._errHandler.sync(this),this._input.LA(1)){case dn.T__2:this.state=383,this.match(dn.T__2);break;case dn.T__13:case dn.T__24:case dn.T__37:case dn.T__43:case dn.T__45:case dn.T__49:case dn.T__61:case dn.T__62:case dn.T__63:case dn.T__64:case dn.T__65:case dn.T__94:case dn.Int:case dn.Uint:case dn.Byte:case dn.Fixed:case dn.Ufixed:case dn.LeaveKeyword:case dn.PayableKeyword:case dn.GlobalKeyword:case dn.ConstructorKeyword:case dn.ReceiveKeyword:case dn.Identifier:this.state=384,this.typeName(0);break;default:throw new sn.NoViableAltException(this)}this.state=388,this._errHandler.sync(this),t=this._input.LA(1),t===dn.GlobalKeyword&&(this.state=387,this.match(dn.GlobalKeyword)),this.state=390,this.match(dn.T__1)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}usingForObject(){let t,e=new Pn(this._ctx,this.state);this.enterRule(e,36,dn.RULE_usingForObject);try{switch(this.state=404,this._errHandler.sync(this),this._input.LA(1)){case dn.T__13:case dn.T__24:case dn.T__43:case dn.T__49:case dn.T__61:case dn.T__94:case dn.LeaveKeyword:case dn.PayableKeyword:case dn.GlobalKeyword:case dn.ConstructorKeyword:case dn.ReceiveKeyword:case dn.Identifier:this.enterOuterAlt(e,1),this.state=392,this.userDefinedTypeName();break;case dn.T__14:for(this.enterOuterAlt(e,2),this.state=393,this.match(dn.T__14),this.state=394,this.usingForObjectDirective(),this.state=399,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=395,this.match(dn.T__15),this.state=396,this.usingForObjectDirective(),this.state=401,this._errHandler.sync(this),t=this._input.LA(1);this.state=402,this.match(dn.T__16);break;default:throw new sn.NoViableAltException(this)}}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}usingForObjectDirective(){let t,e=new kn(this._ctx,this.state);this.enterRule(e,38,dn.RULE_usingForObjectDirective);try{this.enterOuterAlt(e,1),this.state=406,this.userDefinedTypeName(),this.state=409,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__11&&(this.state=407,this.match(dn.T__11),this.state=408,this.userDefinableOperators())}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}userDefinableOperators(){let t,e=new Dn(this._ctx,this.state);this.enterRule(e,40,dn.RULE_userDefinableOperators);try{this.enterOuterAlt(e,1),this.state=411,t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&(1<<dn.T__2|1<<dn.T__4|1<<dn.T__5|1<<dn.T__6|1<<dn.T__7|1<<dn.T__8|1<<dn.T__9|1<<dn.T__27|1<<dn.T__28|1<<dn.T__29|1<<dn.T__30))||0==(t-32&-32)&&0!=(1<<t-32&(1<<dn.T__31-32|1<<dn.T__32-32|1<<dn.T__33-32|1<<dn.T__34-32))?(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}structDefinition(){let t,e=new Fn(this._ctx,this.state);this.enterRule(e,42,dn.RULE_structDefinition);try{if(this.enterOuterAlt(e,1),this.state=413,this.match(dn.T__35),this.state=414,this.identifier(),this.state=415,this.match(dn.T__14),this.state=426,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__13||t===dn.T__24||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.Int-95|1<<dn.Uint-95|1<<dn.Byte-95|1<<dn.Fixed-95|1<<dn.Ufixed-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)for(this.state=416,this.variableDeclaration(),this.state=417,this.match(dn.T__1),this.state=423,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__13||t===dn.T__24||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.Int-95|1<<dn.Uint-95|1<<dn.Byte-95|1<<dn.Fixed-95|1<<dn.Ufixed-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier;)this.state=418,this.variableDeclaration(),this.state=419,this.match(dn.T__1),this.state=425,this._errHandler.sync(this),t=this._input.LA(1);this.state=428,this.match(dn.T__16)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}modifierDefinition(){let t,e=new Mn(this._ctx,this.state);this.enterRule(e,44,dn.RULE_modifierDefinition);try{for(this.enterOuterAlt(e,1),this.state=430,this.match(dn.T__36),this.state=431,this.identifier(),this.state=433,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__22&&(this.state=432,this.parameterList()),this.state=439,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__95||t===dn.VirtualKeyword;){switch(this.state=437,this._errHandler.sync(this),this._input.LA(1)){case dn.VirtualKeyword:this.state=435,this.match(dn.VirtualKeyword);break;case dn.T__95:this.state=436,this.overrideSpecifier();break;default:throw new sn.NoViableAltException(this)}this.state=441,this._errHandler.sync(this),t=this._input.LA(1)}switch(this.state=444,this._errHandler.sync(this),this._input.LA(1)){case dn.T__1:this.state=442,this.match(dn.T__1);break;case dn.T__14:this.state=443,this.block();break;default:throw new sn.NoViableAltException(this)}}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}modifierInvocation(){let t,e=new jn(this._ctx,this.state);this.enterRule(e,46,dn.RULE_modifierInvocation);try{this.enterOuterAlt(e,1),this.state=446,this.identifier(),this.state=452,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__22&&(this.state=447,this.match(dn.T__22),this.state=449,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<dn.T__5|1<<dn.T__13|1<<dn.T__22|1<<dn.T__24|1<<dn.T__29|1<<dn.T__30))||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__41-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38|1<<dn.T__66-38|1<<dn.T__67-38|1<<dn.T__68-38))||0==(t-71&-32)&&0!=(1<<t-71&(1<<dn.T__70-71|1<<dn.T__71-71|1<<dn.T__94-71|1<<dn.Int-71|1<<dn.Uint-71|1<<dn.Byte-71|1<<dn.Fixed-71|1<<dn.Ufixed-71|1<<dn.BooleanLiteral-71))||0==(t-103&-32)&&0!=(1<<t-103&(1<<dn.DecimalNumber-103|1<<dn.HexNumber-103|1<<dn.HexLiteralFragment-103|1<<dn.LeaveKeyword-103|1<<dn.PayableKeyword-103|1<<dn.TypeKeyword-103|1<<dn.GlobalKeyword-103|1<<dn.ConstructorKeyword-103|1<<dn.ReceiveKeyword-103|1<<dn.Identifier-103|1<<dn.StringLiteralFragment-103)))&&(this.state=448,this.expressionList()),this.state=451,this.match(dn.T__23))}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionDefinition(){let t,e=new Un(this._ctx,this.state);this.enterRule(e,48,dn.RULE_functionDefinition);try{switch(this.enterOuterAlt(e,1),this.state=454,this.functionDescriptor(),this.state=455,this.parameterList(),this.state=456,this.modifierList(),this.state=458,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__38&&(this.state=457,this.returnParameters()),this.state=462,this._errHandler.sync(this),this._input.LA(1)){case dn.T__1:this.state=460,this.match(dn.T__1);break;case dn.T__14:this.state=461,this.block();break;default:throw new sn.NoViableAltException(this)}}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionDescriptor(){let t,e=new Hn(this._ctx,this.state);this.enterRule(e,50,dn.RULE_functionDescriptor);try{switch(this.state=471,this._errHandler.sync(this),this._input.LA(1)){case dn.T__37:this.enterOuterAlt(e,1),this.state=464,this.match(dn.T__37),this.state=466,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=465,this.identifier());break;case dn.ConstructorKeyword:this.enterOuterAlt(e,2),this.state=468,this.match(dn.ConstructorKeyword);break;case dn.FallbackKeyword:this.enterOuterAlt(e,3),this.state=469,this.match(dn.FallbackKeyword);break;case dn.ReceiveKeyword:this.enterOuterAlt(e,4),this.state=470,this.match(dn.ReceiveKeyword);break;default:throw new sn.NoViableAltException(this)}}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}returnParameters(){let t=new Kn(this._ctx,this.state);this.enterRule(t,52,dn.RULE_returnParameters);try{this.enterOuterAlt(t,1),this.state=473,this.match(dn.T__38),this.state=474,this.parameterList()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}modifierList(){let t,e=new Bn(this._ctx,this.state);this.enterRule(e,54,dn.RULE_modifierList);try{for(this.enterOuterAlt(e,1),this.state=486,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.T__95-95|1<<dn.ConstantKeyword-95|1<<dn.LeaveKeyword-95|1<<dn.ExternalKeyword-95|1<<dn.InternalKeyword-95|1<<dn.PayableKeyword-95|1<<dn.PrivateKeyword-95|1<<dn.PublicKeyword-95|1<<dn.VirtualKeyword-95|1<<dn.PureKeyword-95|1<<dn.ViewKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier;){switch(this.state=484,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,41,this._ctx)){case 1:this.state=476,this.match(dn.ExternalKeyword);break;case 2:this.state=477,this.match(dn.PublicKeyword);break;case 3:this.state=478,this.match(dn.InternalKeyword);break;case 4:this.state=479,this.match(dn.PrivateKeyword);break;case 5:this.state=480,this.match(dn.VirtualKeyword);break;case 6:this.state=481,this.stateMutability();break;case 7:this.state=482,this.modifierInvocation();break;case 8:this.state=483,this.overrideSpecifier()}this.state=488,this._errHandler.sync(this),t=this._input.LA(1)}}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}eventDefinition(){let t,e=new zn(this._ctx,this.state);this.enterRule(e,56,dn.RULE_eventDefinition);try{this.enterOuterAlt(e,1),this.state=489,this.match(dn.T__39),this.state=490,this.identifier(),this.state=491,this.eventParameterList(),this.state=493,this._errHandler.sync(this),t=this._input.LA(1),t===dn.AnonymousKeyword&&(this.state=492,this.match(dn.AnonymousKeyword)),this.state=495,this.match(dn.T__1)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}enumValue(){let t=new Vn(this._ctx,this.state);this.enterRule(t,58,dn.RULE_enumValue);try{this.enterOuterAlt(t,1),this.state=497,this.identifier()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}enumDefinition(){let t,e=new qn(this._ctx,this.state);this.enterRule(e,60,dn.RULE_enumDefinition);try{for(this.enterOuterAlt(e,1),this.state=499,this.match(dn.T__40),this.state=500,this.identifier(),this.state=501,this.match(dn.T__14),this.state=503,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=502,this.enumValue()),this.state=509,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=505,this.match(dn.T__15),this.state=506,this.enumValue(),this.state=511,this._errHandler.sync(this),t=this._input.LA(1);this.state=512,this.match(dn.T__16)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}parameterList(){let t,e=new Gn(this._ctx,this.state);this.enterRule(e,62,dn.RULE_parameterList);try{if(this.enterOuterAlt(e,1),this.state=514,this.match(dn.T__22),this.state=523,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__13||t===dn.T__24||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.Int-95|1<<dn.Uint-95|1<<dn.Byte-95|1<<dn.Fixed-95|1<<dn.Ufixed-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)for(this.state=515,this.parameter(),this.state=520,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=516,this.match(dn.T__15),this.state=517,this.parameter(),this.state=522,this._errHandler.sync(this),t=this._input.LA(1);this.state=525,this.match(dn.T__23)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}parameter(){let t,e=new $n(this._ctx,this.state);this.enterRule(e,64,dn.RULE_parameter);try{this.enterOuterAlt(e,1),this.state=527,this.typeName(0),this.state=529,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,48,this._ctx)&&(this.state=528,this.storageLocation()),this.state=532,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=531,this.identifier())}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}eventParameterList(){let t,e=new Yn(this._ctx,this.state);this.enterRule(e,66,dn.RULE_eventParameterList);try{if(this.enterOuterAlt(e,1),this.state=534,this.match(dn.T__22),this.state=543,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__13||t===dn.T__24||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.Int-95|1<<dn.Uint-95|1<<dn.Byte-95|1<<dn.Fixed-95|1<<dn.Ufixed-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)for(this.state=535,this.eventParameter(),this.state=540,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=536,this.match(dn.T__15),this.state=537,this.eventParameter(),this.state=542,this._errHandler.sync(this),t=this._input.LA(1);this.state=545,this.match(dn.T__23)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}eventParameter(){let t,e=new Wn(this._ctx,this.state);this.enterRule(e,68,dn.RULE_eventParameter);try{this.enterOuterAlt(e,1),this.state=547,this.typeName(0),this.state=549,this._errHandler.sync(this),t=this._input.LA(1),t===dn.IndexedKeyword&&(this.state=548,this.match(dn.IndexedKeyword)),this.state=552,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=551,this.identifier())}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionTypeParameterList(){let t,e=new Xn(this._ctx,this.state);this.enterRule(e,70,dn.RULE_functionTypeParameterList);try{if(this.enterOuterAlt(e,1),this.state=554,this.match(dn.T__22),this.state=563,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__13||t===dn.T__24||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.Int-95|1<<dn.Uint-95|1<<dn.Byte-95|1<<dn.Fixed-95|1<<dn.Ufixed-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)for(this.state=555,this.functionTypeParameter(),this.state=560,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=556,this.match(dn.T__15),this.state=557,this.functionTypeParameter(),this.state=562,this._errHandler.sync(this),t=this._input.LA(1);this.state=565,this.match(dn.T__23)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionTypeParameter(){let t,e=new Jn(this._ctx,this.state);this.enterRule(e,72,dn.RULE_functionTypeParameter);try{this.enterOuterAlt(e,1),this.state=567,this.typeName(0),this.state=569,this._errHandler.sync(this),t=this._input.LA(1),0==(t-48&-32)&&0!=(1<<t-48&(1<<dn.T__47-48|1<<dn.T__48-48|1<<dn.T__49-48))&&(this.state=568,this.storageLocation())}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}variableDeclaration(){let t=new Qn(this._ctx,this.state);this.enterRule(t,74,dn.RULE_variableDeclaration);try{this.enterOuterAlt(t,1),this.state=571,this.typeName(0),this.state=573,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,57,this._ctx)&&(this.state=572,this.storageLocation()),this.state=575,this.identifier()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}typeName(t){void 0===t&&(t=0);let e,r=this._ctx,i=this.state,n=new Zn(this._ctx,i),s=n;this.enterRecursionRule(n,76,dn.RULE_typeName,t);try{let t;switch(this.enterOuterAlt(n,1),this.state=584,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,58,this._ctx)){case 1:this.state=578,this.elementaryTypeName();break;case 2:this.state=579,this.userDefinedTypeName();break;case 3:this.state=580,this.mapping();break;case 4:this.state=581,this.functionTypeName();break;case 5:this.state=582,this.match(dn.T__43),this.state=583,this.match(dn.PayableKeyword)}for(this._ctx._stop=this._input.tryLT(-1),this.state=594,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,60,this._ctx);2!==t&&t!==en.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),s=n,n=new Zn(r,i),this.pushNewRecursionContext(n,76,dn.RULE_typeName),this.state=586,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=587,this.match(dn.T__41),this.state=589,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&(1<<dn.T__5|1<<dn.T__13|1<<dn.T__22|1<<dn.T__24|1<<dn.T__29|1<<dn.T__30))||0==(e-38&-32)&&0!=(1<<e-38&(1<<dn.T__37-38|1<<dn.T__41-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38|1<<dn.T__66-38|1<<dn.T__67-38|1<<dn.T__68-38))||0==(e-71&-32)&&0!=(1<<e-71&(1<<dn.T__70-71|1<<dn.T__71-71|1<<dn.T__94-71|1<<dn.Int-71|1<<dn.Uint-71|1<<dn.Byte-71|1<<dn.Fixed-71|1<<dn.Ufixed-71|1<<dn.BooleanLiteral-71))||0==(e-103&-32)&&0!=(1<<e-103&(1<<dn.DecimalNumber-103|1<<dn.HexNumber-103|1<<dn.HexLiteralFragment-103|1<<dn.LeaveKeyword-103|1<<dn.PayableKeyword-103|1<<dn.TypeKeyword-103|1<<dn.GlobalKeyword-103|1<<dn.ConstructorKeyword-103|1<<dn.ReceiveKeyword-103|1<<dn.Identifier-103|1<<dn.StringLiteralFragment-103)))&&(this.state=588,this.expression(0)),this.state=591,this.match(dn.T__42)}this.state=596,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,60,this._ctx)}}catch(t){if(!(t instanceof cn.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return n}userDefinedTypeName(){let t=new ts(this._ctx,this.state);this.enterRule(t,78,dn.RULE_userDefinedTypeName);try{let e;for(this.enterOuterAlt(t,1),this.state=597,this.identifier(),this.state=602,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,61,this._ctx);2!==e&&e!==en.ATN.INVALID_ALT_NUMBER;)1===e&&(this.state=598,this.match(dn.T__44),this.state=599,this.identifier()),this.state=604,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,61,this._ctx)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mappingKey(){let t=new es(this._ctx,this.state);this.enterRule(t,80,dn.RULE_mappingKey);try{switch(this.state=607,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,62,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=605,this.elementaryTypeName();break;case 2:this.enterOuterAlt(t,2),this.state=606,this.userDefinedTypeName()}}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mapping(){let t,e=new rs(this._ctx,this.state);this.enterRule(e,82,dn.RULE_mapping);try{this.enterOuterAlt(e,1),this.state=609,this.match(dn.T__45),this.state=610,this.match(dn.T__22),this.state=611,this.mappingKey(),this.state=613,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=612,this.mappingKeyName()),this.state=615,this.match(dn.T__46),this.state=616,this.typeName(0),this.state=618,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=617,this.mappingValueName()),this.state=620,this.match(dn.T__23)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mappingKeyName(){let t=new is(this._ctx,this.state);this.enterRule(t,84,dn.RULE_mappingKeyName);try{this.enterOuterAlt(t,1),this.state=622,this.identifier()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mappingValueName(){let t=new ns(this._ctx,this.state);this.enterRule(t,86,dn.RULE_mappingValueName);try{this.enterOuterAlt(t,1),this.state=624,this.identifier()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}functionTypeName(){let t=new ss(this._ctx,this.state);this.enterRule(t,88,dn.RULE_functionTypeName);try{let e;for(this.enterOuterAlt(t,1),this.state=626,this.match(dn.T__37),this.state=627,this.functionTypeParameterList(),this.state=633,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,66,this._ctx);2!==e&&e!==en.ATN.INVALID_ALT_NUMBER;){if(1===e)switch(this.state=631,this._errHandler.sync(this),this._input.LA(1)){case dn.InternalKeyword:this.state=628,this.match(dn.InternalKeyword);break;case dn.ExternalKeyword:this.state=629,this.match(dn.ExternalKeyword);break;case dn.ConstantKeyword:case dn.PayableKeyword:case dn.PureKeyword:case dn.ViewKeyword:this.state=630,this.stateMutability();break;default:throw new sn.NoViableAltException(this)}this.state=635,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,66,this._ctx)}this.state=638,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,67,this._ctx)&&(this.state=636,this.match(dn.T__38),this.state=637,this.functionTypeParameterList())}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}storageLocation(){let t,e=new os(this._ctx,this.state);this.enterRule(e,90,dn.RULE_storageLocation);try{this.enterOuterAlt(e,1),this.state=640,t=this._input.LA(1),0!=(t-48&-32)||0==(1<<t-48&(1<<dn.T__47-48|1<<dn.T__48-48|1<<dn.T__49-48))?this._errHandler.recoverInline(this):(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}stateMutability(){let t,e=new as(this._ctx,this.state);this.enterRule(e,92,dn.RULE_stateMutability);try{this.enterOuterAlt(e,1),this.state=642,t=this._input.LA(1),0!=(t-110&-32)||0==(1<<t-110&(1<<dn.ConstantKeyword-110|1<<dn.PayableKeyword-110|1<<dn.PureKeyword-110|1<<dn.ViewKeyword-110))?this._errHandler.recoverInline(this):(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}block(){let t,e=new ls(this._ctx,this.state);this.enterRule(e,94,dn.RULE_block);try{for(this.enterOuterAlt(e,1),this.state=644,this.match(dn.T__14),this.state=648,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<dn.T__5|1<<dn.T__13|1<<dn.T__14|1<<dn.T__22|1<<dn.T__24|1<<dn.T__26|1<<dn.T__29|1<<dn.T__30))||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__41-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__50-38|1<<dn.T__52-38|1<<dn.T__54-38|1<<dn.T__55-38|1<<dn.T__56-38|1<<dn.T__57-38|1<<dn.T__58-38|1<<dn.T__59-38|1<<dn.T__60-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38|1<<dn.T__66-38|1<<dn.T__67-38|1<<dn.T__68-38))||0==(t-71&-32)&&0!=(1<<t-71&(1<<dn.T__70-71|1<<dn.T__71-71|1<<dn.T__94-71|1<<dn.Int-71|1<<dn.Uint-71|1<<dn.Byte-71|1<<dn.Fixed-71|1<<dn.Ufixed-71|1<<dn.BooleanLiteral-71))||0==(t-103&-32)&&0!=(1<<t-103&(1<<dn.DecimalNumber-103|1<<dn.HexNumber-103|1<<dn.HexLiteralFragment-103|1<<dn.BreakKeyword-103|1<<dn.ContinueKeyword-103|1<<dn.LeaveKeyword-103|1<<dn.PayableKeyword-103|1<<dn.TypeKeyword-103|1<<dn.GlobalKeyword-103|1<<dn.ConstructorKeyword-103|1<<dn.ReceiveKeyword-103|1<<dn.Identifier-103|1<<dn.StringLiteralFragment-103));)this.state=645,this.statement(),this.state=650,this._errHandler.sync(this),t=this._input.LA(1);this.state=651,this.match(dn.T__16)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}statement(){let t=new cs(this._ctx,this.state);this.enterRule(t,96,dn.RULE_statement);try{switch(this.state=668,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,69,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=653,this.ifStatement();break;case 2:this.enterOuterAlt(t,2),this.state=654,this.tryStatement();break;case 3:this.enterOuterAlt(t,3),this.state=655,this.whileStatement();break;case 4:this.enterOuterAlt(t,4),this.state=656,this.forStatement();break;case 5:this.enterOuterAlt(t,5),this.state=657,this.block();break;case 6:this.enterOuterAlt(t,6),this.state=658,this.inlineAssemblyStatement();break;case 7:this.enterOuterAlt(t,7),this.state=659,this.doWhileStatement();break;case 8:this.enterOuterAlt(t,8),this.state=660,this.continueStatement();break;case 9:this.enterOuterAlt(t,9),this.state=661,this.breakStatement();break;case 10:this.enterOuterAlt(t,10),this.state=662,this.returnStatement();break;case 11:this.enterOuterAlt(t,11),this.state=663,this.throwStatement();break;case 12:this.enterOuterAlt(t,12),this.state=664,this.emitStatement();break;case 13:this.enterOuterAlt(t,13),this.state=665,this.simpleStatement();break;case 14:this.enterOuterAlt(t,14),this.state=666,this.uncheckedStatement();break;case 15:this.enterOuterAlt(t,15),this.state=667,this.revertStatement()}}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expressionStatement(){let t=new us(this._ctx,this.state);this.enterRule(t,98,dn.RULE_expressionStatement);try{this.enterOuterAlt(t,1),this.state=670,this.expression(0),this.state=671,this.match(dn.T__1)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}ifStatement(){let t=new hs(this._ctx,this.state);this.enterRule(t,100,dn.RULE_ifStatement);try{this.enterOuterAlt(t,1),this.state=673,this.match(dn.T__50),this.state=674,this.match(dn.T__22),this.state=675,this.expression(0),this.state=676,this.match(dn.T__23),this.state=677,this.statement(),this.state=680,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,70,this._ctx)&&(this.state=678,this.match(dn.T__51),this.state=679,this.statement())}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}tryStatement(){let t,e=new ps(this._ctx,this.state);this.enterRule(e,102,dn.RULE_tryStatement);try{this.enterOuterAlt(e,1),this.state=682,this.match(dn.T__52),this.state=683,this.expression(0),this.state=685,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__38&&(this.state=684,this.returnParameters()),this.state=687,this.block(),this.state=689,this._errHandler.sync(this),t=this._input.LA(1);do{this.state=688,this.catchClause(),this.state=691,this._errHandler.sync(this),t=this._input.LA(1)}while(t===dn.T__53)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}catchClause(){let t,e=new ds(this._ctx,this.state);this.enterRule(e,104,dn.RULE_catchClause);try{this.enterOuterAlt(e,1),this.state=693,this.match(dn.T__53),this.state=698,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<dn.T__13|1<<dn.T__22|1<<dn.T__24))||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=695,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=694,this.identifier()),this.state=697,this.parameterList()),this.state=700,this.block()}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}whileStatement(){let t=new fs(this._ctx,this.state);this.enterRule(t,106,dn.RULE_whileStatement);try{this.enterOuterAlt(t,1),this.state=702,this.match(dn.T__54),this.state=703,this.match(dn.T__22),this.state=704,this.expression(0),this.state=705,this.match(dn.T__23),this.state=706,this.statement()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}simpleStatement(){let t=new _s(this._ctx,this.state);this.enterRule(t,108,dn.RULE_simpleStatement);try{switch(this.enterOuterAlt(t,1),this.state=710,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,75,this._ctx)){case 1:this.state=708,this.variableDeclarationStatement();break;case 2:this.state=709,this.expressionStatement()}}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}uncheckedStatement(){let t=new ys(this._ctx,this.state);this.enterRule(t,110,dn.RULE_uncheckedStatement);try{this.enterOuterAlt(t,1),this.state=712,this.match(dn.T__55),this.state=713,this.block()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}forStatement(){let t,e=new gs(this._ctx,this.state);this.enterRule(e,112,dn.RULE_forStatement);try{switch(this.enterOuterAlt(e,1),this.state=715,this.match(dn.T__26),this.state=716,this.match(dn.T__22),this.state=719,this._errHandler.sync(this),this._input.LA(1)){case dn.T__5:case dn.T__13:case dn.T__22:case dn.T__24:case dn.T__29:case dn.T__30:case dn.T__37:case dn.T__41:case dn.T__43:case dn.T__45:case dn.T__49:case dn.T__61:case dn.T__62:case dn.T__63:case dn.T__64:case dn.T__65:case dn.T__66:case dn.T__67:case dn.T__68:case dn.T__70:case dn.T__71:case dn.T__94:case dn.Int:case dn.Uint:case dn.Byte:case dn.Fixed:case dn.Ufixed:case dn.BooleanLiteral:case dn.DecimalNumber:case dn.HexNumber:case dn.HexLiteralFragment:case dn.LeaveKeyword:case dn.PayableKeyword:case dn.TypeKeyword:case dn.GlobalKeyword:case dn.ConstructorKeyword:case dn.ReceiveKeyword:case dn.Identifier:case dn.StringLiteralFragment:this.state=717,this.simpleStatement();break;case dn.T__1:this.state=718,this.match(dn.T__1);break;default:throw new sn.NoViableAltException(this)}switch(this.state=723,this._errHandler.sync(this),this._input.LA(1)){case dn.T__5:case dn.T__13:case dn.T__22:case dn.T__24:case dn.T__29:case dn.T__30:case dn.T__37:case dn.T__41:case dn.T__43:case dn.T__45:case dn.T__49:case dn.T__61:case dn.T__62:case dn.T__63:case dn.T__64:case dn.T__65:case dn.T__66:case dn.T__67:case dn.T__68:case dn.T__70:case dn.T__71:case dn.T__94:case dn.Int:case dn.Uint:case dn.Byte:case dn.Fixed:case dn.Ufixed:case dn.BooleanLiteral:case dn.DecimalNumber:case dn.HexNumber:case dn.HexLiteralFragment:case dn.LeaveKeyword:case dn.PayableKeyword:case dn.TypeKeyword:case dn.GlobalKeyword:case dn.ConstructorKeyword:case dn.ReceiveKeyword:case dn.Identifier:case dn.StringLiteralFragment:this.state=721,this.expressionStatement();break;case dn.T__1:this.state=722,this.match(dn.T__1);break;default:throw new sn.NoViableAltException(this)}this.state=726,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<dn.T__5|1<<dn.T__13|1<<dn.T__22|1<<dn.T__24|1<<dn.T__29|1<<dn.T__30))||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__41-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38|1<<dn.T__66-38|1<<dn.T__67-38|1<<dn.T__68-38))||0==(t-71&-32)&&0!=(1<<t-71&(1<<dn.T__70-71|1<<dn.T__71-71|1<<dn.T__94-71|1<<dn.Int-71|1<<dn.Uint-71|1<<dn.Byte-71|1<<dn.Fixed-71|1<<dn.Ufixed-71|1<<dn.BooleanLiteral-71))||0==(t-103&-32)&&0!=(1<<t-103&(1<<dn.DecimalNumber-103|1<<dn.HexNumber-103|1<<dn.HexLiteralFragment-103|1<<dn.LeaveKeyword-103|1<<dn.PayableKeyword-103|1<<dn.TypeKeyword-103|1<<dn.GlobalKeyword-103|1<<dn.ConstructorKeyword-103|1<<dn.ReceiveKeyword-103|1<<dn.Identifier-103|1<<dn.StringLiteralFragment-103)))&&(this.state=725,this.expression(0)),this.state=728,this.match(dn.T__23),this.state=729,this.statement()}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}inlineAssemblyStatement(){let t,e=new ms(this._ctx,this.state);this.enterRule(e,114,dn.RULE_inlineAssemblyStatement);try{this.enterOuterAlt(e,1),this.state=731,this.match(dn.T__56),this.state=733,this._errHandler.sync(this),t=this._input.LA(1),t===dn.StringLiteralFragment&&(this.state=732,this.match(dn.StringLiteralFragment)),this.state=739,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__22&&(this.state=735,this.match(dn.T__22),this.state=736,this.inlineAssemblyStatementFlag(),this.state=737,this.match(dn.T__23)),this.state=741,this.assemblyBlock()}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}inlineAssemblyStatementFlag(){let t=new xs(this._ctx,this.state);this.enterRule(t,116,dn.RULE_inlineAssemblyStatementFlag);try{this.enterOuterAlt(t,1),this.state=743,this.stringLiteral()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}doWhileStatement(){let t=new Ts(this._ctx,this.state);this.enterRule(t,118,dn.RULE_doWhileStatement);try{this.enterOuterAlt(t,1),this.state=745,this.match(dn.T__57),this.state=746,this.statement(),this.state=747,this.match(dn.T__54),this.state=748,this.match(dn.T__22),this.state=749,this.expression(0),this.state=750,this.match(dn.T__23),this.state=751,this.match(dn.T__1)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}continueStatement(){let t=new vs(this._ctx,this.state);this.enterRule(t,120,dn.RULE_continueStatement);try{this.enterOuterAlt(t,1),this.state=753,this.match(dn.ContinueKeyword),this.state=754,this.match(dn.T__1)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}breakStatement(){let t=new Ss(this._ctx,this.state);this.enterRule(t,122,dn.RULE_breakStatement);try{this.enterOuterAlt(t,1),this.state=756,this.match(dn.BreakKeyword),this.state=757,this.match(dn.T__1)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}returnStatement(){let t,e=new bs(this._ctx,this.state);this.enterRule(e,124,dn.RULE_returnStatement);try{this.enterOuterAlt(e,1),this.state=759,this.match(dn.T__58),this.state=761,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<dn.T__5|1<<dn.T__13|1<<dn.T__22|1<<dn.T__24|1<<dn.T__29|1<<dn.T__30))||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__41-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38|1<<dn.T__66-38|1<<dn.T__67-38|1<<dn.T__68-38))||0==(t-71&-32)&&0!=(1<<t-71&(1<<dn.T__70-71|1<<dn.T__71-71|1<<dn.T__94-71|1<<dn.Int-71|1<<dn.Uint-71|1<<dn.Byte-71|1<<dn.Fixed-71|1<<dn.Ufixed-71|1<<dn.BooleanLiteral-71))||0==(t-103&-32)&&0!=(1<<t-103&(1<<dn.DecimalNumber-103|1<<dn.HexNumber-103|1<<dn.HexLiteralFragment-103|1<<dn.LeaveKeyword-103|1<<dn.PayableKeyword-103|1<<dn.TypeKeyword-103|1<<dn.GlobalKeyword-103|1<<dn.ConstructorKeyword-103|1<<dn.ReceiveKeyword-103|1<<dn.Identifier-103|1<<dn.StringLiteralFragment-103)))&&(this.state=760,this.expression(0)),this.state=763,this.match(dn.T__1)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}throwStatement(){let t=new Es(this._ctx,this.state);this.enterRule(t,126,dn.RULE_throwStatement);try{this.enterOuterAlt(t,1),this.state=765,this.match(dn.T__59),this.state=766,this.match(dn.T__1)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}emitStatement(){let t=new Ns(this._ctx,this.state);this.enterRule(t,128,dn.RULE_emitStatement);try{this.enterOuterAlt(t,1),this.state=768,this.match(dn.T__60),this.state=769,this.functionCall(),this.state=770,this.match(dn.T__1)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}revertStatement(){let t=new As(this._ctx,this.state);this.enterRule(t,130,dn.RULE_revertStatement);try{this.enterOuterAlt(t,1),this.state=772,this.match(dn.T__61),this.state=773,this.functionCall(),this.state=774,this.match(dn.T__1)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}variableDeclarationStatement(){let t,e=new Rs(this._ctx,this.state);this.enterRule(e,132,dn.RULE_variableDeclarationStatement);try{switch(this.enterOuterAlt(e,1),this.state=783,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,82,this._ctx)){case 1:this.state=776,this.match(dn.T__62),this.state=777,this.identifierList();break;case 2:this.state=778,this.variableDeclaration();break;case 3:this.state=779,this.match(dn.T__22),this.state=780,this.variableDeclarationList(),this.state=781,this.match(dn.T__23)}this.state=787,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__10&&(this.state=785,this.match(dn.T__10),this.state=786,this.expression(0)),this.state=789,this.match(dn.T__1)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}variableDeclarationList(){let t,e=new Cs(this._ctx,this.state);this.enterRule(e,134,dn.RULE_variableDeclarationList);try{for(this.enterOuterAlt(e,1),this.state=792,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.Int-95|1<<dn.Uint-95|1<<dn.Byte-95|1<<dn.Fixed-95|1<<dn.Ufixed-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=791,this.variableDeclaration()),this.state=800,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=794,this.match(dn.T__15),this.state=796,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.Int-95|1<<dn.Uint-95|1<<dn.Byte-95|1<<dn.Fixed-95|1<<dn.Ufixed-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=795,this.variableDeclaration()),this.state=802,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}identifierList(){let t,e=new Os(this._ctx,this.state);this.enterRule(e,136,dn.RULE_identifierList);try{let r;for(this.enterOuterAlt(e,1),this.state=803,this.match(dn.T__22),this.state=810,this._errHandler.sync(this),r=this.interpreter.adaptivePredict(this._input,88,this._ctx);2!==r&&r!==en.ATN.INVALID_ALT_NUMBER;)1===r&&(this.state=805,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=804,this.identifier()),this.state=807,this.match(dn.T__15)),this.state=812,this._errHandler.sync(this),r=this.interpreter.adaptivePredict(this._input,88,this._ctx);this.state=814,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=813,this.identifier()),this.state=816,this.match(dn.T__23)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}elementaryTypeName(){let t,e=new Ls(this._ctx,this.state);this.enterRule(e,138,dn.RULE_elementaryTypeName);try{this.enterOuterAlt(e,1),this.state=818,t=this._input.LA(1),0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__62-44|1<<dn.T__63-44|1<<dn.T__64-44|1<<dn.T__65-44))||0==(t-97&-32)&&0!=(1<<t-97&(1<<dn.Int-97|1<<dn.Uint-97|1<<dn.Byte-97|1<<dn.Fixed-97|1<<dn.Ufixed-97))?(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expression(t){void 0===t&&(t=0);let e,r=this._ctx,i=this.state,n=new ws(this._ctx,i),s=n,o=140;this.enterRecursionRule(n,140,dn.RULE_expression,t);try{let t;switch(this.enterOuterAlt(n,1),this.state=838,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,90,this._ctx)){case 1:this.state=821,this.match(dn.T__68),this.state=822,this.typeName(0);break;case 2:this.state=823,this.match(dn.T__22),this.state=824,this.expression(0),this.state=825,this.match(dn.T__23);break;case 3:this.state=827,e=this._input.LA(1),e!==dn.T__66&&e!==dn.T__67?this._errHandler.recoverInline(this):(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=828,this.expression(19);break;case 4:this.state=829,e=this._input.LA(1),e!==dn.T__29&&e!==dn.T__30?this._errHandler.recoverInline(this):(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=830,this.expression(18);break;case 5:this.state=831,this.match(dn.T__70),this.state=832,this.expression(17);break;case 6:this.state=833,this.match(dn.T__71),this.state=834,this.expression(16);break;case 7:this.state=835,this.match(dn.T__5),this.state=836,this.expression(15);break;case 8:this.state=837,this.primaryExpression()}for(this._ctx._stop=this._input.tryLT(-1),this.state=914,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,94,this._ctx);2!==t&&t!==en.ATN.INVALID_ALT_NUMBER;){if(1===t)switch(null!=this._parseListeners&&this.triggerExitRuleEvent(),s=n,this.state=912,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,93,this._ctx)){case 1:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=840,!this.precpred(this._ctx,14))throw this.createFailedPredicateException("this.precpred(this._ctx, 14)");this.state=841,this.match(dn.T__72),this.state=842,this.expression(15);break;case 2:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=843,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=844,e=this._input.LA(1),0!=(e-3&-32)||0==(1<<e-3&(1<<dn.T__2-3|1<<dn.T__31-3|1<<dn.T__32-3))?this._errHandler.recoverInline(this):(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=845,this.expression(14);break;case 3:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=846,!this.precpred(this._ctx,12))throw this.createFailedPredicateException("this.precpred(this._ctx, 12)");this.state=847,e=this._input.LA(1),e!==dn.T__29&&e!==dn.T__30?this._errHandler.recoverInline(this):(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=848,this.expression(13);break;case 4:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=849,!this.precpred(this._ctx,11))throw this.createFailedPredicateException("this.precpred(this._ctx, 11)");this.state=850,e=this._input.LA(1),e!==dn.T__73&&e!==dn.T__74?this._errHandler.recoverInline(this):(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=851,this.expression(12);break;case 5:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=852,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=853,this.match(dn.T__28),this.state=854,this.expression(11);break;case 6:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=855,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=856,this.match(dn.T__4),this.state=857,this.expression(10);break;case 7:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=858,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=859,this.match(dn.T__27),this.state=860,this.expression(9);break;case 8:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=861,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=862,e=this._input.LA(1),0!=(-32&e)||0==(1<<e&(1<<dn.T__6|1<<dn.T__7|1<<dn.T__8|1<<dn.T__9))?this._errHandler.recoverInline(this):(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=863,this.expression(8);break;case 9:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=864,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=865,e=this._input.LA(1),e!==dn.T__33&&e!==dn.T__34?this._errHandler.recoverInline(this):(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=866,this.expression(7);break;case 10:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=867,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=868,this.match(dn.T__75),this.state=869,this.expression(6);break;case 11:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=870,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=871,this.match(dn.T__3),this.state=872,this.expression(5);break;case 12:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=873,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=874,this.match(dn.T__76),this.state=875,this.expression(0),this.state=876,this.match(dn.T__69),this.state=877,this.expression(4);break;case 13:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=879,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=880,e=this._input.LA(1),e===dn.T__10||0==(e-78&-32)&&0!=(1<<e-78&(1<<dn.T__77-78|1<<dn.T__78-78|1<<dn.T__79-78|1<<dn.T__80-78|1<<dn.T__81-78|1<<dn.T__82-78|1<<dn.T__83-78|1<<dn.T__84-78|1<<dn.T__85-78|1<<dn.T__86-78))?(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=881,this.expression(3);break;case 14:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=882,!this.precpred(this._ctx,27))throw this.createFailedPredicateException("this.precpred(this._ctx, 27)");this.state=883,e=this._input.LA(1),e!==dn.T__66&&e!==dn.T__67?this._errHandler.recoverInline(this):(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume());break;case 15:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=884,!this.precpred(this._ctx,25))throw this.createFailedPredicateException("this.precpred(this._ctx, 25)");this.state=885,this.match(dn.T__41),this.state=886,this.expression(0),this.state=887,this.match(dn.T__42);break;case 16:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=889,!this.precpred(this._ctx,24))throw this.createFailedPredicateException("this.precpred(this._ctx, 24)");this.state=890,this.match(dn.T__41),this.state=892,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&(1<<dn.T__5|1<<dn.T__13|1<<dn.T__22|1<<dn.T__24|1<<dn.T__29|1<<dn.T__30))||0==(e-38&-32)&&0!=(1<<e-38&(1<<dn.T__37-38|1<<dn.T__41-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38|1<<dn.T__66-38|1<<dn.T__67-38|1<<dn.T__68-38))||0==(e-71&-32)&&0!=(1<<e-71&(1<<dn.T__70-71|1<<dn.T__71-71|1<<dn.T__94-71|1<<dn.Int-71|1<<dn.Uint-71|1<<dn.Byte-71|1<<dn.Fixed-71|1<<dn.Ufixed-71|1<<dn.BooleanLiteral-71))||0==(e-103&-32)&&0!=(1<<e-103&(1<<dn.DecimalNumber-103|1<<dn.HexNumber-103|1<<dn.HexLiteralFragment-103|1<<dn.LeaveKeyword-103|1<<dn.PayableKeyword-103|1<<dn.TypeKeyword-103|1<<dn.GlobalKeyword-103|1<<dn.ConstructorKeyword-103|1<<dn.ReceiveKeyword-103|1<<dn.Identifier-103|1<<dn.StringLiteralFragment-103)))&&(this.state=891,this.expression(0)),this.state=894,this.match(dn.T__69),this.state=896,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&(1<<dn.T__5|1<<dn.T__13|1<<dn.T__22|1<<dn.T__24|1<<dn.T__29|1<<dn.T__30))||0==(e-38&-32)&&0!=(1<<e-38&(1<<dn.T__37-38|1<<dn.T__41-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38|1<<dn.T__66-38|1<<dn.T__67-38|1<<dn.T__68-38))||0==(e-71&-32)&&0!=(1<<e-71&(1<<dn.T__70-71|1<<dn.T__71-71|1<<dn.T__94-71|1<<dn.Int-71|1<<dn.Uint-71|1<<dn.Byte-71|1<<dn.Fixed-71|1<<dn.Ufixed-71|1<<dn.BooleanLiteral-71))||0==(e-103&-32)&&0!=(1<<e-103&(1<<dn.DecimalNumber-103|1<<dn.HexNumber-103|1<<dn.HexLiteralFragment-103|1<<dn.LeaveKeyword-103|1<<dn.PayableKeyword-103|1<<dn.TypeKeyword-103|1<<dn.GlobalKeyword-103|1<<dn.ConstructorKeyword-103|1<<dn.ReceiveKeyword-103|1<<dn.Identifier-103|1<<dn.StringLiteralFragment-103)))&&(this.state=895,this.expression(0)),this.state=898,this.match(dn.T__42);break;case 17:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=899,!this.precpred(this._ctx,23))throw this.createFailedPredicateException("this.precpred(this._ctx, 23)");this.state=900,this.match(dn.T__44),this.state=901,this.identifier();break;case 18:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=902,!this.precpred(this._ctx,22))throw this.createFailedPredicateException("this.precpred(this._ctx, 22)");this.state=903,this.match(dn.T__14),this.state=904,this.nameValueList(),this.state=905,this.match(dn.T__16);break;case 19:if(n=new ws(r,i),this.pushNewRecursionContext(n,o,dn.RULE_expression),this.state=907,!this.precpred(this._ctx,21))throw this.createFailedPredicateException("this.precpred(this._ctx, 21)");this.state=908,this.match(dn.T__22),this.state=909,this.functionCallArguments(),this.state=910,this.match(dn.T__23)}this.state=916,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,94,this._ctx)}}catch(t){if(!(t instanceof cn.RecognitionException))throw t;n.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return n}primaryExpression(){let t=new Is(this._ctx,this.state);this.enterRule(t,142,dn.RULE_primaryExpression);try{switch(this.state=926,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,95,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=917,this.match(dn.BooleanLiteral);break;case 2:this.enterOuterAlt(t,2),this.state=918,this.numberLiteral();break;case 3:this.enterOuterAlt(t,3),this.state=919,this.hexLiteral();break;case 4:this.enterOuterAlt(t,4),this.state=920,this.stringLiteral();break;case 5:this.enterOuterAlt(t,5),this.state=921,this.identifier();break;case 6:this.enterOuterAlt(t,6),this.state=922,this.match(dn.TypeKeyword);break;case 7:this.enterOuterAlt(t,7),this.state=923,this.match(dn.PayableKeyword);break;case 8:this.enterOuterAlt(t,8),this.state=924,this.tupleExpression();break;case 9:this.enterOuterAlt(t,9),this.state=925,this.typeName(0)}}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expressionList(){let t,e=new Ps(this._ctx,this.state);this.enterRule(e,144,dn.RULE_expressionList);try{for(this.enterOuterAlt(e,1),this.state=928,this.expression(0),this.state=933,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=929,this.match(dn.T__15),this.state=930,this.expression(0),this.state=935,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}nameValueList(){let t,e=new ks(this._ctx,this.state);this.enterRule(e,146,dn.RULE_nameValueList);try{let r;for(this.enterOuterAlt(e,1),this.state=936,this.nameValue(),this.state=941,this._errHandler.sync(this),r=this.interpreter.adaptivePredict(this._input,97,this._ctx);2!==r&&r!==en.ATN.INVALID_ALT_NUMBER;)1===r&&(this.state=937,this.match(dn.T__15),this.state=938,this.nameValue()),this.state=943,this._errHandler.sync(this),r=this.interpreter.adaptivePredict(this._input,97,this._ctx);this.state=945,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__15&&(this.state=944,this.match(dn.T__15))}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}nameValue(){let t=new Ds(this._ctx,this.state);this.enterRule(t,148,dn.RULE_nameValue);try{this.enterOuterAlt(t,1),this.state=947,this.identifier(),this.state=948,this.match(dn.T__69),this.state=949,this.expression(0)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}functionCallArguments(){let t,e=new Fs(this._ctx,this.state);this.enterRule(e,150,dn.RULE_functionCallArguments);try{switch(this.state=959,this._errHandler.sync(this),this._input.LA(1)){case dn.T__14:this.enterOuterAlt(e,1),this.state=951,this.match(dn.T__14),this.state=953,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=952,this.nameValueList()),this.state=955,this.match(dn.T__16);break;case dn.T__5:case dn.T__13:case dn.T__22:case dn.T__23:case dn.T__24:case dn.T__29:case dn.T__30:case dn.T__37:case dn.T__41:case dn.T__43:case dn.T__45:case dn.T__49:case dn.T__61:case dn.T__62:case dn.T__63:case dn.T__64:case dn.T__65:case dn.T__66:case dn.T__67:case dn.T__68:case dn.T__70:case dn.T__71:case dn.T__94:case dn.Int:case dn.Uint:case dn.Byte:case dn.Fixed:case dn.Ufixed:case dn.BooleanLiteral:case dn.DecimalNumber:case dn.HexNumber:case dn.HexLiteralFragment:case dn.LeaveKeyword:case dn.PayableKeyword:case dn.TypeKeyword:case dn.GlobalKeyword:case dn.ConstructorKeyword:case dn.ReceiveKeyword:case dn.Identifier:case dn.StringLiteralFragment:this.enterOuterAlt(e,2),this.state=957,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<dn.T__5|1<<dn.T__13|1<<dn.T__22|1<<dn.T__24|1<<dn.T__29|1<<dn.T__30))||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__41-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38|1<<dn.T__66-38|1<<dn.T__67-38|1<<dn.T__68-38))||0==(t-71&-32)&&0!=(1<<t-71&(1<<dn.T__70-71|1<<dn.T__71-71|1<<dn.T__94-71|1<<dn.Int-71|1<<dn.Uint-71|1<<dn.Byte-71|1<<dn.Fixed-71|1<<dn.Ufixed-71|1<<dn.BooleanLiteral-71))||0==(t-103&-32)&&0!=(1<<t-103&(1<<dn.DecimalNumber-103|1<<dn.HexNumber-103|1<<dn.HexLiteralFragment-103|1<<dn.LeaveKeyword-103|1<<dn.PayableKeyword-103|1<<dn.TypeKeyword-103|1<<dn.GlobalKeyword-103|1<<dn.ConstructorKeyword-103|1<<dn.ReceiveKeyword-103|1<<dn.Identifier-103|1<<dn.StringLiteralFragment-103)))&&(this.state=956,this.expressionList());break;default:throw new sn.NoViableAltException(this)}}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionCall(){let t=new Ms(this._ctx,this.state);this.enterRule(t,152,dn.RULE_functionCall);try{this.enterOuterAlt(t,1),this.state=961,this.expression(0),this.state=962,this.match(dn.T__22),this.state=963,this.functionCallArguments(),this.state=964,this.match(dn.T__23)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyBlock(){let t,e=new js(this._ctx,this.state);this.enterRule(e,154,dn.RULE_assemblyBlock);try{for(this.enterOuterAlt(e,1),this.state=966,this.match(dn.T__14),this.state=970,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<dn.T__13|1<<dn.T__14|1<<dn.T__22|1<<dn.T__24|1<<dn.T__26))||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__43-38|1<<dn.T__49-38|1<<dn.T__50-38|1<<dn.T__58-38|1<<dn.T__61-38|1<<dn.T__65-38))||0==(t-88&-32)&&0!=(1<<t-88&(1<<dn.T__87-88|1<<dn.T__90-88|1<<dn.T__94-88|1<<dn.BooleanLiteral-88|1<<dn.DecimalNumber-88|1<<dn.HexNumber-88|1<<dn.HexLiteralFragment-88|1<<dn.BreakKeyword-88|1<<dn.ContinueKeyword-88|1<<dn.LeaveKeyword-88|1<<dn.PayableKeyword-88))||0==(t-124&-32)&&0!=(1<<t-124&(1<<dn.GlobalKeyword-124|1<<dn.ConstructorKeyword-124|1<<dn.ReceiveKeyword-124|1<<dn.Identifier-124|1<<dn.StringLiteralFragment-124));)this.state=967,this.assemblyItem(),this.state=972,this._errHandler.sync(this),t=this._input.LA(1);this.state=973,this.match(dn.T__16)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyItem(){let t=new Us(this._ctx,this.state);this.enterRule(t,156,dn.RULE_assemblyItem);try{switch(this.state=992,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,103,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=975,this.identifier();break;case 2:this.enterOuterAlt(t,2),this.state=976,this.assemblyBlock();break;case 3:this.enterOuterAlt(t,3),this.state=977,this.assemblyExpression();break;case 4:this.enterOuterAlt(t,4),this.state=978,this.assemblyLocalDefinition();break;case 5:this.enterOuterAlt(t,5),this.state=979,this.assemblyAssignment();break;case 6:this.enterOuterAlt(t,6),this.state=980,this.assemblyStackAssignment();break;case 7:this.enterOuterAlt(t,7),this.state=981,this.labelDefinition();break;case 8:this.enterOuterAlt(t,8),this.state=982,this.assemblySwitch();break;case 9:this.enterOuterAlt(t,9),this.state=983,this.assemblyFunctionDefinition();break;case 10:this.enterOuterAlt(t,10),this.state=984,this.assemblyFor();break;case 11:this.enterOuterAlt(t,11),this.state=985,this.assemblyIf();break;case 12:this.enterOuterAlt(t,12),this.state=986,this.match(dn.BreakKeyword);break;case 13:this.enterOuterAlt(t,13),this.state=987,this.match(dn.ContinueKeyword);break;case 14:this.enterOuterAlt(t,14),this.state=988,this.match(dn.LeaveKeyword);break;case 15:this.enterOuterAlt(t,15),this.state=989,this.numberLiteral();break;case 16:this.enterOuterAlt(t,16),this.state=990,this.stringLiteral();break;case 17:this.enterOuterAlt(t,17),this.state=991,this.hexLiteral()}}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyExpression(){let t=new Hs(this._ctx,this.state);this.enterRule(t,158,dn.RULE_assemblyExpression);try{switch(this.state=997,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,104,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=994,this.assemblyCall();break;case 2:this.enterOuterAlt(t,2),this.state=995,this.assemblyLiteral();break;case 3:this.enterOuterAlt(t,3),this.state=996,this.assemblyMember()}}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyMember(){let t=new Ks(this._ctx,this.state);this.enterRule(t,160,dn.RULE_assemblyMember);try{this.enterOuterAlt(t,1),this.state=999,this.identifier(),this.state=1e3,this.match(dn.T__44),this.state=1001,this.identifier()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyCall(){let t,e=new Bs(this._ctx,this.state);this.enterRule(e,162,dn.RULE_assemblyCall);try{switch(this.enterOuterAlt(e,1),this.state=1007,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,105,this._ctx)){case 1:this.state=1003,this.match(dn.T__58);break;case 2:this.state=1004,this.match(dn.T__43);break;case 3:this.state=1005,this.match(dn.T__65);break;case 4:this.state=1006,this.identifier()}if(this.state=1021,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,108,this._ctx)){for(this.state=1009,this.match(dn.T__22),this.state=1011,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__58-44|1<<dn.T__61-44|1<<dn.T__65-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.BooleanLiteral-95|1<<dn.DecimalNumber-95|1<<dn.HexNumber-95|1<<dn.HexLiteralFragment-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||0==(t-127&-32)&&0!=(1<<t-127&(1<<dn.ReceiveKeyword-127|1<<dn.Identifier-127|1<<dn.StringLiteralFragment-127)))&&(this.state=1010,this.assemblyExpression()),this.state=1017,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=1013,this.match(dn.T__15),this.state=1014,this.assemblyExpression(),this.state=1019,this._errHandler.sync(this),t=this._input.LA(1);this.state=1020,this.match(dn.T__23)}}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyLocalDefinition(){let t,e=new zs(this._ctx,this.state);this.enterRule(e,164,dn.RULE_assemblyLocalDefinition);try{this.enterOuterAlt(e,1),this.state=1023,this.match(dn.T__87),this.state=1024,this.assemblyIdentifierOrList(),this.state=1027,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__88&&(this.state=1025,this.match(dn.T__88),this.state=1026,this.assemblyExpression())}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyAssignment(){let t=new Vs(this._ctx,this.state);this.enterRule(t,166,dn.RULE_assemblyAssignment);try{this.enterOuterAlt(t,1),this.state=1029,this.assemblyIdentifierOrList(),this.state=1030,this.match(dn.T__88),this.state=1031,this.assemblyExpression()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIdentifierOrList(){let t=new qs(this._ctx,this.state);this.enterRule(t,168,dn.RULE_assemblyIdentifierOrList);try{switch(this.state=1040,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,110,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=1033,this.identifier();break;case 2:this.enterOuterAlt(t,2),this.state=1034,this.assemblyMember();break;case 3:this.enterOuterAlt(t,3),this.state=1035,this.assemblyIdentifierList();break;case 4:this.enterOuterAlt(t,4),this.state=1036,this.match(dn.T__22),this.state=1037,this.assemblyIdentifierList(),this.state=1038,this.match(dn.T__23)}}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIdentifierList(){let t,e=new Gs(this._ctx,this.state);this.enterRule(e,170,dn.RULE_assemblyIdentifierList);try{for(this.enterOuterAlt(e,1),this.state=1042,this.identifier(),this.state=1047,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=1043,this.match(dn.T__15),this.state=1044,this.identifier(),this.state=1049,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyStackAssignment(){let t=new $s(this._ctx,this.state);this.enterRule(t,172,dn.RULE_assemblyStackAssignment);try{this.enterOuterAlt(t,1),this.state=1050,this.assemblyExpression(),this.state=1051,this.match(dn.T__89),this.state=1052,this.identifier()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}labelDefinition(){let t=new Ys(this._ctx,this.state);this.enterRule(t,174,dn.RULE_labelDefinition);try{this.enterOuterAlt(t,1),this.state=1054,this.identifier(),this.state=1055,this.match(dn.T__69)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblySwitch(){let t,e=new Ws(this._ctx,this.state);this.enterRule(e,176,dn.RULE_assemblySwitch);try{for(this.enterOuterAlt(e,1),this.state=1057,this.match(dn.T__90),this.state=1058,this.assemblyExpression(),this.state=1062,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__91||t===dn.T__92;)this.state=1059,this.assemblyCase(),this.state=1064,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyCase(){let t=new Xs(this._ctx,this.state);this.enterRule(t,178,dn.RULE_assemblyCase);try{switch(this.state=1071,this._errHandler.sync(this),this._input.LA(1)){case dn.T__91:this.enterOuterAlt(t,1),this.state=1065,this.match(dn.T__91),this.state=1066,this.assemblyLiteral(),this.state=1067,this.assemblyBlock();break;case dn.T__92:this.enterOuterAlt(t,2),this.state=1069,this.match(dn.T__92),this.state=1070,this.assemblyBlock();break;default:throw new sn.NoViableAltException(this)}}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyFunctionDefinition(){let t,e=new Js(this._ctx,this.state);this.enterRule(e,180,dn.RULE_assemblyFunctionDefinition);try{this.enterOuterAlt(e,1),this.state=1073,this.match(dn.T__37),this.state=1074,this.identifier(),this.state=1075,this.match(dn.T__22),this.state=1077,this._errHandler.sync(this),t=this._input.LA(1),(t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier)&&(this.state=1076,this.assemblyIdentifierList()),this.state=1079,this.match(dn.T__23),this.state=1081,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__93&&(this.state=1080,this.assemblyFunctionReturns()),this.state=1083,this.assemblyBlock()}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyFunctionReturns(){let t=new Qs(this._ctx,this.state);this.enterRule(t,182,dn.RULE_assemblyFunctionReturns);try{this.enterOuterAlt(t,1),this.state=1085,this.match(dn.T__93),this.state=1086,this.assemblyIdentifierList()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyFor(){let t=new Zs(this._ctx,this.state);this.enterRule(t,184,dn.RULE_assemblyFor);try{switch(this.enterOuterAlt(t,1),this.state=1088,this.match(dn.T__26),this.state=1091,this._errHandler.sync(this),this._input.LA(1)){case dn.T__14:this.state=1089,this.assemblyBlock();break;case dn.T__13:case dn.T__24:case dn.T__43:case dn.T__49:case dn.T__58:case dn.T__61:case dn.T__65:case dn.T__94:case dn.BooleanLiteral:case dn.DecimalNumber:case dn.HexNumber:case dn.HexLiteralFragment:case dn.LeaveKeyword:case dn.PayableKeyword:case dn.GlobalKeyword:case dn.ConstructorKeyword:case dn.ReceiveKeyword:case dn.Identifier:case dn.StringLiteralFragment:this.state=1090,this.assemblyExpression();break;default:throw new sn.NoViableAltException(this)}switch(this.state=1093,this.assemblyExpression(),this.state=1096,this._errHandler.sync(this),this._input.LA(1)){case dn.T__14:this.state=1094,this.assemblyBlock();break;case dn.T__13:case dn.T__24:case dn.T__43:case dn.T__49:case dn.T__58:case dn.T__61:case dn.T__65:case dn.T__94:case dn.BooleanLiteral:case dn.DecimalNumber:case dn.HexNumber:case dn.HexLiteralFragment:case dn.LeaveKeyword:case dn.PayableKeyword:case dn.GlobalKeyword:case dn.ConstructorKeyword:case dn.ReceiveKeyword:case dn.Identifier:case dn.StringLiteralFragment:this.state=1095,this.assemblyExpression();break;default:throw new sn.NoViableAltException(this)}this.state=1098,this.assemblyBlock()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIf(){let t=new to(this._ctx,this.state);this.enterRule(t,186,dn.RULE_assemblyIf);try{this.enterOuterAlt(t,1),this.state=1100,this.match(dn.T__50),this.state=1101,this.assemblyExpression(),this.state=1102,this.assemblyBlock()}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyLiteral(){let t=new eo(this._ctx,this.state);this.enterRule(t,188,dn.RULE_assemblyLiteral);try{switch(this.state=1109,this._errHandler.sync(this),this._input.LA(1)){case dn.StringLiteralFragment:this.enterOuterAlt(t,1),this.state=1104,this.stringLiteral();break;case dn.DecimalNumber:this.enterOuterAlt(t,2),this.state=1105,this.match(dn.DecimalNumber);break;case dn.HexNumber:this.enterOuterAlt(t,3),this.state=1106,this.match(dn.HexNumber);break;case dn.HexLiteralFragment:this.enterOuterAlt(t,4),this.state=1107,this.hexLiteral();break;case dn.BooleanLiteral:this.enterOuterAlt(t,5),this.state=1108,this.match(dn.BooleanLiteral);break;default:throw new sn.NoViableAltException(this)}}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}tupleExpression(){let t,e=new ro(this._ctx,this.state);this.enterRule(e,190,dn.RULE_tupleExpression);try{switch(this.state=1137,this._errHandler.sync(this),this._input.LA(1)){case dn.T__22:for(this.enterOuterAlt(e,1),this.state=1111,this.match(dn.T__22),this.state=1113,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<dn.T__5|1<<dn.T__13|1<<dn.T__22|1<<dn.T__24|1<<dn.T__29|1<<dn.T__30))||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__41-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38|1<<dn.T__66-38|1<<dn.T__67-38|1<<dn.T__68-38))||0==(t-71&-32)&&0!=(1<<t-71&(1<<dn.T__70-71|1<<dn.T__71-71|1<<dn.T__94-71|1<<dn.Int-71|1<<dn.Uint-71|1<<dn.Byte-71|1<<dn.Fixed-71|1<<dn.Ufixed-71|1<<dn.BooleanLiteral-71))||0==(t-103&-32)&&0!=(1<<t-103&(1<<dn.DecimalNumber-103|1<<dn.HexNumber-103|1<<dn.HexLiteralFragment-103|1<<dn.LeaveKeyword-103|1<<dn.PayableKeyword-103|1<<dn.TypeKeyword-103|1<<dn.GlobalKeyword-103|1<<dn.ConstructorKeyword-103|1<<dn.ReceiveKeyword-103|1<<dn.Identifier-103|1<<dn.StringLiteralFragment-103)))&&(this.state=1112,this.expression(0)),this.state=1121,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=1115,this.match(dn.T__15),this.state=1117,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<dn.T__5|1<<dn.T__13|1<<dn.T__22|1<<dn.T__24|1<<dn.T__29|1<<dn.T__30))||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__41-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38|1<<dn.T__66-38|1<<dn.T__67-38|1<<dn.T__68-38))||0==(t-71&-32)&&0!=(1<<t-71&(1<<dn.T__70-71|1<<dn.T__71-71|1<<dn.T__94-71|1<<dn.Int-71|1<<dn.Uint-71|1<<dn.Byte-71|1<<dn.Fixed-71|1<<dn.Ufixed-71|1<<dn.BooleanLiteral-71))||0==(t-103&-32)&&0!=(1<<t-103&(1<<dn.DecimalNumber-103|1<<dn.HexNumber-103|1<<dn.HexLiteralFragment-103|1<<dn.LeaveKeyword-103|1<<dn.PayableKeyword-103|1<<dn.TypeKeyword-103|1<<dn.GlobalKeyword-103|1<<dn.ConstructorKeyword-103|1<<dn.ReceiveKeyword-103|1<<dn.Identifier-103|1<<dn.StringLiteralFragment-103)))&&(this.state=1116,this.expression(0)),this.state=1123,this._errHandler.sync(this),t=this._input.LA(1);this.state=1124,this.match(dn.T__23);break;case dn.T__41:if(this.enterOuterAlt(e,2),this.state=1125,this.match(dn.T__41),this.state=1134,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&(1<<dn.T__5|1<<dn.T__13|1<<dn.T__22|1<<dn.T__24|1<<dn.T__29|1<<dn.T__30))||0==(t-38&-32)&&0!=(1<<t-38&(1<<dn.T__37-38|1<<dn.T__41-38|1<<dn.T__43-38|1<<dn.T__45-38|1<<dn.T__49-38|1<<dn.T__61-38|1<<dn.T__62-38|1<<dn.T__63-38|1<<dn.T__64-38|1<<dn.T__65-38|1<<dn.T__66-38|1<<dn.T__67-38|1<<dn.T__68-38))||0==(t-71&-32)&&0!=(1<<t-71&(1<<dn.T__70-71|1<<dn.T__71-71|1<<dn.T__94-71|1<<dn.Int-71|1<<dn.Uint-71|1<<dn.Byte-71|1<<dn.Fixed-71|1<<dn.Ufixed-71|1<<dn.BooleanLiteral-71))||0==(t-103&-32)&&0!=(1<<t-103&(1<<dn.DecimalNumber-103|1<<dn.HexNumber-103|1<<dn.HexLiteralFragment-103|1<<dn.LeaveKeyword-103|1<<dn.PayableKeyword-103|1<<dn.TypeKeyword-103|1<<dn.GlobalKeyword-103|1<<dn.ConstructorKeyword-103|1<<dn.ReceiveKeyword-103|1<<dn.Identifier-103|1<<dn.StringLiteralFragment-103)))for(this.state=1126,this.expression(0),this.state=1131,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=1127,this.match(dn.T__15),this.state=1128,this.expression(0),this.state=1133,this._errHandler.sync(this),t=this._input.LA(1);this.state=1136,this.match(dn.T__42);break;default:throw new sn.NoViableAltException(this)}}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}numberLiteral(){let t,e=new io(this._ctx,this.state);this.enterRule(e,192,dn.RULE_numberLiteral);try{this.enterOuterAlt(e,1),this.state=1139,t=this._input.LA(1),t!==dn.DecimalNumber&&t!==dn.HexNumber?this._errHandler.recoverInline(this):(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=1141,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,125,this._ctx)&&(this.state=1140,this.match(dn.NumberUnit))}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}identifier(){let t,e=new no(this._ctx,this.state);this.enterRule(e,194,dn.RULE_identifier);try{this.enterOuterAlt(e,1),this.state=1143,t=this._input.LA(1),t===dn.T__13||t===dn.T__24||0==(t-44&-32)&&0!=(1<<t-44&(1<<dn.T__43-44|1<<dn.T__49-44|1<<dn.T__61-44))||0==(t-95&-32)&&0!=(1<<t-95&(1<<dn.T__94-95|1<<dn.LeaveKeyword-95|1<<dn.PayableKeyword-95|1<<dn.GlobalKeyword-95|1<<dn.ConstructorKeyword-95))||t===dn.ReceiveKeyword||t===dn.Identifier?(this._input.LA(1)===un.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}hexLiteral(){let t=new so(this._ctx,this.state);this.enterRule(t,196,dn.RULE_hexLiteral);try{let e;this.enterOuterAlt(t,1),this.state=1146,this._errHandler.sync(this),e=1;do{if(1!==e)throw new sn.NoViableAltException(this);this.state=1145,this.match(dn.HexLiteralFragment),this.state=1148,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,126,this._ctx)}while(2!==e&&e!==en.ATN.INVALID_ALT_NUMBER)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}overrideSpecifier(){let t,e=new oo(this._ctx,this.state);this.enterRule(e,198,dn.RULE_overrideSpecifier);try{if(this.enterOuterAlt(e,1),this.state=1150,this.match(dn.T__95),this.state=1162,this._errHandler.sync(this),t=this._input.LA(1),t===dn.T__22){for(this.state=1151,this.match(dn.T__22),this.state=1152,this.userDefinedTypeName(),this.state=1157,this._errHandler.sync(this),t=this._input.LA(1);t===dn.T__15;)this.state=1153,this.match(dn.T__15),this.state=1154,this.userDefinedTypeName(),this.state=1159,this._errHandler.sync(this),t=this._input.LA(1);this.state=1160,this.match(dn.T__23)}}catch(t){if(!(t instanceof cn.RecognitionException))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}stringLiteral(){let t=new ao(this._ctx,this.state);this.enterRule(t,200,dn.RULE_stringLiteral);try{let e;this.enterOuterAlt(t,1),this.state=1165,this._errHandler.sync(this),e=1;do{if(1!==e)throw new sn.NoViableAltException(this);this.state=1164,this.match(dn.StringLiteralFragment),this.state=1167,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,129,this._ctx)}while(2!==e&&e!==en.ATN.INVALID_ALT_NUMBER)}catch(e){if(!(e instanceof cn.RecognitionException))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}sempred(t,e,r){switch(e){case 38:return this.typeName_sempred(t,r);case 70:return this.expression_sempred(t,r)}return!0}typeName_sempred(t,e){return 0!==e||this.precpred(this._ctx,3)}expression_sempred(t,e){switch(e){case 1:return this.precpred(this._ctx,14);case 2:return this.precpred(this._ctx,13);case 3:return this.precpred(this._ctx,12);case 4:return this.precpred(this._ctx,11);case 5:return this.precpred(this._ctx,10);case 6:return this.precpred(this._ctx,9);case 7:return this.precpred(this._ctx,8);case 8:return this.precpred(this._ctx,7);case 9:return this.precpred(this._ctx,6);case 10:return this.precpred(this._ctx,5);case 11:return this.precpred(this._ctx,4);case 12:return this.precpred(this._ctx,3);case 13:return this.precpred(this._ctx,2);case 14:return this.precpred(this._ctx,27);case 15:return this.precpred(this._ctx,25);case 16:return this.precpred(this._ctx,24);case 17:return this.precpred(this._ctx,23);case 18:return this.precpred(this._ctx,22);case 19:return this.precpred(this._ctx,21)}return!0}static get _ATN(){return dn.__ATN||(dn.__ATN=(new rn.ATNDeserializer).deserialize(pn.toCharArray(dn._serializedATN))),dn.__ATN}},fn=dn;fn.T__0=1,fn.T__1=2,fn.T__2=3,fn.T__3=4,fn.T__4=5,fn.T__5=6,fn.T__6=7,fn.T__7=8,fn.T__8=9,fn.T__9=10,fn.T__10=11,fn.T__11=12,fn.T__12=13,fn.T__13=14,fn.T__14=15,fn.T__15=16,fn.T__16=17,fn.T__17=18,fn.T__18=19,fn.T__19=20,fn.T__20=21,fn.T__21=22,fn.T__22=23,fn.T__23=24,fn.T__24=25,fn.T__25=26,fn.T__26=27,fn.T__27=28,fn.T__28=29,fn.T__29=30,fn.T__30=31,fn.T__31=32,fn.T__32=33,fn.T__33=34,fn.T__34=35,fn.T__35=36,fn.T__36=37,fn.T__37=38,fn.T__38=39,fn.T__39=40,fn.T__40=41,fn.T__41=42,fn.T__42=43,fn.T__43=44,fn.T__44=45,fn.T__45=46,fn.T__46=47,fn.T__47=48,fn.T__48=49,fn.T__49=50,fn.T__50=51,fn.T__51=52,fn.T__52=53,fn.T__53=54,fn.T__54=55,fn.T__55=56,fn.T__56=57,fn.T__57=58,fn.T__58=59,fn.T__59=60,fn.T__60=61,fn.T__61=62,fn.T__62=63,fn.T__63=64,fn.T__64=65,fn.T__65=66,fn.T__66=67,fn.T__67=68,fn.T__68=69,fn.T__69=70,fn.T__70=71,fn.T__71=72,fn.T__72=73,fn.T__73=74,fn.T__74=75,fn.T__75=76,fn.T__76=77,fn.T__77=78,fn.T__78=79,fn.T__79=80,fn.T__80=81,fn.T__81=82,fn.T__82=83,fn.T__83=84,fn.T__84=85,fn.T__85=86,fn.T__86=87,fn.T__87=88,fn.T__88=89,fn.T__89=90,fn.T__90=91,fn.T__91=92,fn.T__92=93,fn.T__93=94,fn.T__94=95,fn.T__95=96,fn.Int=97,fn.Uint=98,fn.Byte=99,fn.Fixed=100,fn.Ufixed=101,fn.BooleanLiteral=102,fn.DecimalNumber=103,fn.HexNumber=104,fn.NumberUnit=105,fn.HexLiteralFragment=106,fn.ReservedKeyword=107,fn.AnonymousKeyword=108,fn.BreakKeyword=109,fn.ConstantKeyword=110,fn.ImmutableKeyword=111,fn.ContinueKeyword=112,fn.LeaveKeyword=113,fn.ExternalKeyword=114,fn.IndexedKeyword=115,fn.InternalKeyword=116,fn.PayableKeyword=117,fn.PrivateKeyword=118,fn.PublicKeyword=119,fn.VirtualKeyword=120,fn.PureKeyword=121,fn.TypeKeyword=122,fn.ViewKeyword=123,fn.GlobalKeyword=124,fn.ConstructorKeyword=125,fn.FallbackKeyword=126,fn.ReceiveKeyword=127,fn.Identifier=128,fn.StringLiteralFragment=129,fn.VersionLiteral=130,fn.WS=131,fn.COMMENT=132,fn.LINE_COMMENT=133,fn.RULE_sourceUnit=0,fn.RULE_pragmaDirective=1,fn.RULE_pragmaName=2,fn.RULE_pragmaValue=3,fn.RULE_version=4,fn.RULE_versionOperator=5,fn.RULE_versionConstraint=6,fn.RULE_importDeclaration=7,fn.RULE_importDirective=8,fn.RULE_importPath=9,fn.RULE_contractDefinition=10,fn.RULE_inheritanceSpecifier=11,fn.RULE_contractPart=12,fn.RULE_stateVariableDeclaration=13,fn.RULE_fileLevelConstant=14,fn.RULE_customErrorDefinition=15,fn.RULE_typeDefinition=16,fn.RULE_usingForDeclaration=17,fn.RULE_usingForObject=18,fn.RULE_usingForObjectDirective=19,fn.RULE_userDefinableOperators=20,fn.RULE_structDefinition=21,fn.RULE_modifierDefinition=22,fn.RULE_modifierInvocation=23,fn.RULE_functionDefinition=24,fn.RULE_functionDescriptor=25,fn.RULE_returnParameters=26,fn.RULE_modifierList=27,fn.RULE_eventDefinition=28,fn.RULE_enumValue=29,fn.RULE_enumDefinition=30,fn.RULE_parameterList=31,fn.RULE_parameter=32,fn.RULE_eventParameterList=33,fn.RULE_eventParameter=34,fn.RULE_functionTypeParameterList=35,fn.RULE_functionTypeParameter=36,fn.RULE_variableDeclaration=37,fn.RULE_typeName=38,fn.RULE_userDefinedTypeName=39,fn.RULE_mappingKey=40,fn.RULE_mapping=41,fn.RULE_mappingKeyName=42,fn.RULE_mappingValueName=43,fn.RULE_functionTypeName=44,fn.RULE_storageLocation=45,fn.RULE_stateMutability=46,fn.RULE_block=47,fn.RULE_statement=48,fn.RULE_expressionStatement=49,fn.RULE_ifStatement=50,fn.RULE_tryStatement=51,fn.RULE_catchClause=52,fn.RULE_whileStatement=53,fn.RULE_simpleStatement=54,fn.RULE_uncheckedStatement=55,fn.RULE_forStatement=56,fn.RULE_inlineAssemblyStatement=57,fn.RULE_inlineAssemblyStatementFlag=58,fn.RULE_doWhileStatement=59,fn.RULE_continueStatement=60,fn.RULE_breakStatement=61,fn.RULE_returnStatement=62,fn.RULE_throwStatement=63,fn.RULE_emitStatement=64,fn.RULE_revertStatement=65,fn.RULE_variableDeclarationStatement=66,fn.RULE_variableDeclarationList=67,fn.RULE_identifierList=68,fn.RULE_elementaryTypeName=69,fn.RULE_expression=70,fn.RULE_primaryExpression=71,fn.RULE_expressionList=72,fn.RULE_nameValueList=73,fn.RULE_nameValue=74,fn.RULE_functionCallArguments=75,fn.RULE_functionCall=76,fn.RULE_assemblyBlock=77,fn.RULE_assemblyItem=78,fn.RULE_assemblyExpression=79,fn.RULE_assemblyMember=80,fn.RULE_assemblyCall=81,fn.RULE_assemblyLocalDefinition=82,fn.RULE_assemblyAssignment=83,fn.RULE_assemblyIdentifierOrList=84,fn.RULE_assemblyIdentifierList=85,fn.RULE_assemblyStackAssignment=86,fn.RULE_labelDefinition=87,fn.RULE_assemblySwitch=88,fn.RULE_assemblyCase=89,fn.RULE_assemblyFunctionDefinition=90,fn.RULE_assemblyFunctionReturns=91,fn.RULE_assemblyFor=92,fn.RULE_assemblyIf=93,fn.RULE_assemblyLiteral=94,fn.RULE_tupleExpression=95,fn.RULE_numberLiteral=96,fn.RULE_identifier=97,fn.RULE_hexLiteral=98,fn.RULE_overrideSpecifier=99,fn.RULE_stringLiteral=100,fn.ruleNames=["sourceUnit","pragmaDirective","pragmaName","pragmaValue","version","versionOperator","versionConstraint","importDeclaration","importDirective","importPath","contractDefinition","inheritanceSpecifier","contractPart","stateVariableDeclaration","fileLevelConstant","customErrorDefinition","typeDefinition","usingForDeclaration","usingForObject","usingForObjectDirective","userDefinableOperators","structDefinition","modifierDefinition","modifierInvocation","functionDefinition","functionDescriptor","returnParameters","modifierList","eventDefinition","enumValue","enumDefinition","parameterList","parameter","eventParameterList","eventParameter","functionTypeParameterList","functionTypeParameter","variableDeclaration","typeName","userDefinedTypeName","mappingKey","mapping","mappingKeyName","mappingValueName","functionTypeName","storageLocation","stateMutability","block","statement","expressionStatement","ifStatement","tryStatement","catchClause","whileStatement","simpleStatement","uncheckedStatement","forStatement","inlineAssemblyStatement","inlineAssemblyStatementFlag","doWhileStatement","continueStatement","breakStatement","returnStatement","throwStatement","emitStatement","revertStatement","variableDeclarationStatement","variableDeclarationList","identifierList","elementaryTypeName","expression","primaryExpression","expressionList","nameValueList","nameValue","functionCallArguments","functionCall","assemblyBlock","assemblyItem","assemblyExpression","assemblyMember","assemblyCall","assemblyLocalDefinition","assemblyAssignment","assemblyIdentifierOrList","assemblyIdentifierList","assemblyStackAssignment","labelDefinition","assemblySwitch","assemblyCase","assemblyFunctionDefinition","assemblyFunctionReturns","assemblyFor","assemblyIf","assemblyLiteral","tupleExpression","numberLiteral","identifier","hexLiteral","overrideSpecifier","stringLiteral"],fn._LITERAL_NAMES=[void 0,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"'anonymous'","'break'","'constant'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],fn._SYMBOLIC_NAMES=[void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],fn.VOCABULARY=new hn.VocabularyImpl(dn._LITERAL_NAMES,dn._SYMBOLIC_NAMES,[]),fn._serializedATNSegments=3,fn._serializedATNSegment0='줝쪺֍꾺体؇쉁Ҕ\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<=\t=>\t>?\t?@\t@A\tAB\tBC\tCD\tDE\tEF\tFG\tGH\tHI\tIJ\tJK\tKL\tLM\tMN\tNO\tOP\tPQ\tQR\tRS\tST\tTU\tUV\tVW\tWX\tXY\tYZ\tZ[\t[\\\t\\]\t]^\t^_\t_`\t`a\tab\tbc\tcd\tde\tef\tfØ\n\fÛ\vé\ní\nð\n\fó\v\b\bø\n\b\b\b\bü\n\b\b\bÿ\n\b\t\t\t\tĄ\n\t\n\n\n\n\nĊ\n\n\n\n\n\n\n\nđ\n\n\n\n\nĕ\n\n\n\n\n\n\n\n\n\n\n\nĠ\n\n\f\n\nģ\v\n\n\n\n\n\n\nĪ\n\n\v\v\f\fį\n\f\f\f\f\f\f\f\fķ\n\f\f\f\fĺ\v\f\fļ\n\f\f\f\fŀ\n\f\f\f\fŃ\v\f\f\f\r\r\r\rŊ\n\r\r\rō\n\rŘ\nš\n\fŤ\vũ\nƄ\nƇ\nƐ\n\fƓ\vƗ\nƜ\nƨ\n\fƫ\vƭ\nƴ\nƸ\n\fƻ\vƿ\nDŽ\nLJ\nǍ\nǑ\nǕ\nǚ\nǧ\n\fǪ\vǰ\n Ǻ\n Ǿ\n \f ȁ\v !!!!!ȉ\n!\f!!Ȍ\v!!Ȏ\n!!!"""Ȕ\n"""ȗ\n"#####ȝ\n#\f##Ƞ\v##Ȣ\n###$$$Ȩ\n$$$ȫ\n$%%%%%ȱ\n%\f%%ȴ\v%%ȶ\n%%%&&&ȼ\n&\'\'\'ɀ\n\'\'\'((((((((ɋ\n(((((ɐ\n(((ɓ\n(\f((ɖ\v())))ɛ\n)\f))ɞ\v)***ɢ\n*+++++ɨ\n+++++ɭ\n+++,,--......ɺ\n.\f..ɽ\v....ʁ\n.//00111ʉ\n1\f11ʌ\v1112222222222222222ʟ\n233344444444ʫ\n45555ʰ\n5555ʴ\n5\r55ʵ666ʺ\n666ʽ\n666777777888ˉ\n8999:::::˒\n::::˖\n:::˙\n::::;;;ˠ\n;;;;;;˦\n;;;<<========>>>???@@@˼\n@@@AAABBBBCCCCDDDDDDDD̒\nDDDD̖\nDDDEE̛\nEEEE̟\nEE̡\nE\fEE̤\vEFFF̨\nFFF̫\nF\fFF̮\vFFF̱\nFFFGGHHHHHHHHHHHHHHHHHHH͉\nHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHͿ\nHHHH\nHHHHHHHHHHHHHHHHΓ\nH\fHHΖ\vHIIIIIIIIIIΡ\nIJJJJΦ\nJ\fJJΩ\vJKKKKή\nK\fKKα\vKKKδ\nKLLLLMMMμ\nMMMMπ\nMMς\nMNNNNNOOOϋ\nO\fOOώ\vOOOPPPPPPPPPPPPPPPPPPϣ\nPQQQQϨ\nQRRRRSSSSSϲ\nSSSS϶\nSSSSϺ\nS\fSSϽ\vSSSЀ\nSTTTTTІ\nTUUUUVVVVVVVVГ\nVWWWWИ\nW\fWWЛ\vWXXXXYYYZZZZЧ\nZ\fZZЪ\vZ[[[[[[[в\n[\\\\\\\\\\и\n\\\\\\\\м\n\\\\\\]]]^^^^ц\n^^^^^ы\n^^^____``````ј\n`aaaќ\naaaaѠ\naaѢ\na\faaѥ\vaaaaaaaѬ\na\faaѯ\vaaѱ\naaaѴ\nabbbѸ\nbccddѽ\nd\rddѾeeeeee҆\ne\fee҉\veeeeҍ\neffҐ\nf\rffґfNg\b\n\f "$&(*,.02468:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~ ¢¤¦¨ª¬®°²´¶¸º¼¾ÀÂÄÆÈÊ\r\f%24ppww{{}}..ADcgEF !"#LM\t\f$%\r\rPYij\f..44@@aassww~ԕÙÞã\bè\nê\fôþĀĩīĮņŗřŬ ų"Ÿ$ž&Ɩ(Ƙ*Ɲ,Ɵ.ư0ǀ2Lj4Ǚ6Ǜ8Ǩ:ǫ<dz>ǵ@ȄBȑDȘFȥHȬJȹLȽNɊPɗRɡTɣVɰXɲZɴ\\ʂ^ʄ`ʆbʞdʠfʣhʬjʷlˀnˈpˊrˍt˝v˩x˫z˳|˶~˹˿̴̥͈̂̆̑̚ΠΪερσψϢ ϧ¢ϩ¤ϱ¦Ё¨ЇªВ¬Д®М°Р²У´б¶г¸пºт¼ю¾їÀѳÂѵÄѹÆѼÈҀÊҏÌØÍØ\nÎØ\fÏØ> ÐØ:ÑØ,ÒØ2ÓØÔØ ÕØ"ÖØ$×Ì×Í×Î×Ï×Ð×Ñ×Ò×Ó×Ô×Õ×ÖØÛÙ×ÙÚÚÜÛÙÜÝÝÞßßààá\báââãäÄcäåéæé\nçéHèåèæèçé\têñ\bëíìëìííîîð\bïìðóñïñòò\vóñôõ\tõ\röø\f÷ö÷øøùùÿúü\fûúûüüýýÿiþ÷þûÿĀăÄcāĂĂĄÄcăā㥥ąĆĆĉ\vćĈĈĊÄcĉćĉĊĊċċČČĪčĐĎđďđÄcĐĎĐďđĔĒēēĕÄcĔĒĔĕĕĖĖėėĘ\vĘęęĪĚěěĜĜġ\tĝĞĞĠ\tğĝĠģġğġĢĢĤģġĤĥĥĦĦħ\vħĨĨĪĩąĩčĩĚĪīĬĬĭįĮĭĮįįİİı\tıĻÄcIJijijĸ\rĴĵĵķ\rĶĴķĺĸĶĸĹĹļĺĸĻIJĻļļĽĽŁľŀĿľŀŃŁĿŁłłńŃŁńŅŅņŌP)ŇʼnňŊJʼnňʼnŊŊŋŋōŌŇŌōōŎŘŏŘ$ŐŘ,őŘ.ŒŘ2œŘ:ŔŘ> ŕŘ ŖŘ"ŗŎŗŏŗŐŗőŗŒŗœŗŔŗŕŗŖŘřŢN(ŚšyśšvŜšxŝšpŞšqşšÈeŠŚŠśŠŜŠŝŠŞŠşšŤŢŠŢţţťŤŢťŨÄcŦŧ\rŧũHŨŦŨũũŪŪūūŬŭN(ŭŮpŮůÄcůŰ\rŰűHűŲŲųŴŴŵÄcŵŶ@!Ŷŷŷ!ŸŹ|ŹźÄcźŻŻżGżŽŽ#žſſƀ&ƀƃƁƄƂƄN(ƃƁƃƂƄƆƅƇ~ƆƅƆƇƇƈƈƉƉ%ƊƗP)ƋƌƌƑ(ƍƎƎƐ(ƏƍƐƓƑƏƑƒƒƔƓƑƔƕƕƗƖƊƖƋƗ\'ƘƛP)ƙƚƚƜ*ƛƙƛƜƜ)Ɲƞ\tƞ+ƟƠ&',fn._serializedATNSegment1="ƠơÄcơƬƢƣL'ƣƩƤƥL'ƥƦƦƨƧƤƨƫƩƧƩƪƪƭƫƩƬƢƬƭƭƮƮƯƯ-ưƱ'ƱƳÄcƲƴ@!ƳƲƳƴƴƹƵƸzƶƸÈeƷƵƷƶƸƻƹƷƹƺƺƾƻƹƼƿƽƿ`1ƾƼƾƽƿ/ǀdžÄcǁǃǂDŽJǃǂǃDŽDŽDžDžLJdžǁdžLJLJ1Ljlj4ljNJ@!NJnj8NjǍ6njNjnjǍǍǐǎǑǏǑ`1ǐǎǐǏǑ3ǒǔ(ǓǕÄcǔǓǔǕǕǚǖǚǗǚǘǚǙǒǙǖǙǗǙǘǚ5Ǜǜ)ǜǝ@!ǝ7ǞǧtǟǧyǠǧvǡǧxǢǧzǣǧ^0Ǥǧ0ǥǧÈeǦǞǦǟǦǠǦǡǦǢǦǣǦǤǦǥǧǪǨǦǨǩǩ9ǪǨǫǬ*ǬǭÄcǭǯD#ǮǰnǯǮǯǰǰDZDZDzDz;dzǴÄcǴ=ǵǶ+ǶǷÄcǷǹǸǺ<ǹǸǹǺǺǿǻǼǼǾ<ǽǻǾȁǿǽǿȀȀȂȁǿȂȃȃ?ȄȍȅȊB\"ȆȇȇȉB\"ȈȆȉȌȊȈȊȋȋȎȌȊȍȅȍȎȎȏȏȐȐAȑȓN(ȒȔ\\/ȓȒȓȔȔȖȕȗÄcȖȕȖȗȗCȘȡșȞF$ȚțțȝF$ȜȚȝȠȞȜȞȟȟȢȠȞȡșȡȢȢȣȣȤȤEȥȧN(ȦȨuȧȦȧȨȨȪȩȫÄcȪȩȪȫȫGȬȵȭȲJ&ȮȯȯȱJ&ȰȮȱȴȲȰȲȳȳȶȴȲȵȭȵȶȶȷȷȸȸIȹȻN(Ⱥȼ\\/ȻȺȻȼȼKȽȿN(Ⱦɀ\\/ȿȾȿɀɀɁɁɂÄcɂMɃɄ\b(ɄɋGɅɋP)ɆɋT+ɇɋZ.Ɉɉ.ɉɋwɊɃɊɅɊɆɊɇɊɈɋɔɌɍ\fɍɏ,ɎɐHɏɎɏɐɐɑɑɓ-ɒɌɓɖɔɒɔɕɕOɖɔɗɜÄcɘə/əɛÄcɚɘɛɞɜɚɜɝɝQɞɜɟɢGɠɢP)ɡɟɡɠɢSɣɤ0ɤɥɥɧR*ɦɨV,ɧɦɧɨɨɩɩɪ1ɪɬN(ɫɭX-ɬɫɬɭɭɮɮɯɯUɰɱÄcɱWɲɳÄcɳYɴɵ(ɵɻH%ɶɺvɷɺtɸɺ^0ɹɶɹɷɹɸɺɽɻɹɻɼɼʀɽɻɾɿ)ɿʁH%ʀɾʀʁʁ[ʂʃ\tʃ]ʄʅ\tʅ_ʆʊʇʉb2ʈʇʉʌʊʈʊʋʋʍʌʊʍʎʎaʏʟf4ʐʟh5ʑʟl7ʒʟr:ʓʟ`1ʔʟt;ʕʟx=ʖʟz>ʗʟ|?ʘʟ~@ʙʟAʚʟBʛʟn8ʜʟp9ʝʟCʞʏʞʐʞʑʞʒʞʓʞʔʞʕʞʖʞʗʞʘʞʙʞʚʞʛʞʜʞʝʟcʠʡHʡʢʢeʣʤ5ʤʥʥʦHʦʧʧʪb2ʨʩ6ʩʫb2ʪʨʪʫʫgʬʭ7ʭʯHʮʰ6ʯʮʯʰʰʱʱʳ`1ʲʴj6ʳʲʴʵʵʳʵʶʶiʷʼ8ʸʺÄcʹʸʹʺʺʻʻʽ@!ʼʹʼʽʽʾʾʿ`1ʿkˀˁ9ˁ˂˂˃H˃˄˄˅b2˅mˆˉDˇˉd3ˈˆˈˇˉoˊˋ:ˋˌ`1ˌqˍˎˎˑˏ˒n8ː˒ˑˏˑː˒˕˓˖d3˔˖˕˓˕˔˖˘˗˙H˘˗˘˙˙˚˚˛˛˜b2˜s˝˟;˞ˠ˟˞˟ˠˠ˥ˡˢˢˣv<ˣˤˤ˦˥ˡ˥˦˦˧˧˨O˨u˩˪Êf˪w˫ˬ<ˬ˭b2˭ˮ9ˮ˯˯˰H˰˱˱˲˲y˳˴r˴˵˵{˶˷o˷˸˸}˹˻=˺˼H˻˺˻˼˼˽˽˾˾˿̀>̀́́̂̃?̃̄N̄̅̅̆̇@̇̈N̈̉̉
̊̋A̋̒F̌̒L'̍̎̎̏Ȅ̐̐̒̑̊̑̌̑̍̒̓̔̕\r̖̔H̛̖̖̗̗̘̘̙̓̕̕L'̢̛̛̙̜̞̝̟̚̚L'̡̡̢̢̢̨̞̝̞̟̟̠̜̤̠̣̣̤̥̬̦Äç̧̨̨̧̦̩̩̫̪̫̮̬̪̬̭̭̰̮̬̯̱Äc̴̵̰̯̰̱̱̲̲̳̳\t̵̶̷\bH̷̸G̸͉N(̹̺̺̻H̻̼̼͉̽̾\t\b͉̾H̿̀\t\t͉̀H́͂I͉͂H̓̈́J͉̈́H͆ͅ\b͉͆H͇͉I̶͈͈̹͈͈͈͈͈͈͇͉̽̿́̓ͅΔ͊͋\f͋͌K͌ΓH͍͎\f͎͏\t\n͏ΓH͐͑\f͑͒\t\t͒ΓH͓͔\f\r͔͕\t\v͕ΓH͖͗\f\f͗͘͘ΓH\r͙͚\f\v͚͛͛ΓH\f͜͝\f\n͝͞͞ΓH\v͟͠\f\t͠͡\t\f͡ΓH\nͣ͢\f\bͣͤ\t\rͤΓH\tͥͦ\fͦͧNͧΓH\bͨͩ\fͩͪͪΓHͫͬ\fͬͭOͭͮHͮͯHͯͰHͰΓͱͲ\fͲͳ\tͳΓHʹ͵\f͵Γ\t\bͶͷ\fͷ,Hͺ-ͺΓͻͼ\fͼ;,ͽͿH;ͽ;ͿͿHH΄΄Γ-΅Ά\fΆ·/·ΓÄcΈΉ\fΉΊΊKΌΌΓΎ\fΎΏΏΐMΐΑΑΓΒ͊Β͍Β͐Β͓Β͖Β͙Β͜Β͟Β͢ΒͥΒͨΒͫΒͱΒʹΒͶΒͻ¡¸ΒΓΖΔΒΔΕΕΖΔΗΡhΘΡÂbΙΡÆdΚΡÊfΛΡÄcΜΡ|ΝΡwΞΡÀaΟΡN(ΠΗΠΘΠΙΠΚΠΛΠΜΠΝΠΞΠΟΡΧHΣΤΤΦHΥΣΦΩΧΥΧΨΨΩΧΪίLΫάάήLέΫήαίέίΰΰγαίβδγβγδδεζÄcζηHηθHθιλκμKλκλμμννςξπJοξοππςριροςστHτυυφMφχχψόωϋPϊωϋώόϊόύύϏώόϏϐϐϑϣÄcϒϣOϓϣ Qϔϣ¦Tϕϣ¨Uϖϣ®Xϗϣ°YϘϣ²Zϙϣ¶\\Ϛϣº^ϛϣ¼_ϜϣoϝϣrϞϣsϟϣÂbϠϣÊfϡϣÆdϢϑϢϒϢϓϢϔϢϕϢϖϢϗϢϘϢϙϢϚϢϛϢϜϢϝϢϞϢϟϢϠϢϡϣϤϨ¤SϥϨ¾`ϦϨ¢RϧϤϧϥϧϦϨ¡ϩϪÄcϪϫ/ϫϬÄcϬ£ϭϲ=Ϯϲ.ϯϲDϰϲÄcϱϭϱϮϱϯϱϰϲϿϳϵϴ϶ Qϵϴϵ϶϶ϻϷϸϸϺ QϹϷϺϽϻϹϻϼϼϾϽϻϾЀϿϳϿЀЀ¥ЁЂZЂЅªVЃЄ[ЄІ QЅЃЅІІ§ЇЈªVЈЉ[ЉЊ QЊ©ЋГÄcЌГ¢RЍГ¬WЎЏЏА¬WАББГВЋВЌВЍВЎГ«ДЙÄcЕЖЖИÄcЗЕИЛЙЗЙККЛЙМН QНО\\ОПÄcП¯РСÄcСТHТ±УФ]ФШ QХЧ´[ЦХЧЪШЦШЩЩ³ЪШЫЬ^ЬЭ¾`ЭЮOЮвЯа_авOбЫбЯвµгд(деÄcезжи¬Wзжзииййлкм¸]лклммнноOо",fn._serializedATNSegment2="·пр`рс¬Wс¹тхуцOфц Qхухфцччъ QшыOщы QъшъщыььэOэ»юя5яѐ QѐёOё½ђјÊfѓјiєјjѕјÆdіјhїђїѓїєїѕїіј¿љћњќHћњћќќѣѝџўѠHџўџѠѠѢѡѝѢѥѣѡѣѤѤѦѥѣѦѴѧѰ,ѨѭHѩѪѪѬHѫѩѬѯѭѫѭѮѮѱѯѭѰѨѰѱѱѲѲѴ-ѳљѳѧѴÁѵѷ\tѶѸkѷѶѷѸѸÃѹѺ\tѺÅѻѽlѼѻѽѾѾѼѾѿѿÇҀҌbҁ҂҂҇P)҃҄҄҆P)҅҃҆҉҇҅҇҈҈Ҋ҉҇ҊҋҋҍҌҁҌҍҍÉҎҐҏҎҐґґҏґҒҒË×Ùèìñ÷ûþăĉĐĔġĩĮĸĻŁʼnŌŗŠŢŨƃƆƑƖƛƩƬƳƷƹƾǃdžnjǐǔǙǦǨǯǹǿȊȍȓȖȞȡȧȪȲȵȻȿɊɏɔɜɡɧɬɹɻʀʊʞʪʯʵʹʼˈˑ˕˘˟˥˻̢̧̞̬̰͈̑̕̚;ΒΔΠΧίγλορόϢϧϱϵϻϿЅВЙШбзлхъїћџѣѭѰѳѷѾ҇Ҍґ",fn._serializedATN=pn.join([dn._serializedATNSegment0,dn._serializedATNSegment1,dn._serializedATNSegment2],"");var _n=class extends an.ParserRuleContext{EOF(){return this.getToken(fn.EOF,0)}pragmaDirective(t){return void 0===t?this.getRuleContexts(yn):this.getRuleContext(t,yn)}importDirective(t){return void 0===t?this.getRuleContexts(bn):this.getRuleContext(t,bn)}contractDefinition(t){return void 0===t?this.getRuleContexts(Nn):this.getRuleContext(t,Nn)}enumDefinition(t){return void 0===t?this.getRuleContexts(qn):this.getRuleContext(t,qn)}eventDefinition(t){return void 0===t?this.getRuleContexts(zn):this.getRuleContext(t,zn)}structDefinition(t){return void 0===t?this.getRuleContexts(Fn):this.getRuleContext(t,Fn)}functionDefinition(t){return void 0===t?this.getRuleContexts(Un):this.getRuleContext(t,Un)}fileLevelConstant(t){return void 0===t?this.getRuleContexts(On):this.getRuleContext(t,On)}customErrorDefinition(t){return void 0===t?this.getRuleContexts(Ln):this.getRuleContext(t,Ln)}typeDefinition(t){return void 0===t?this.getRuleContexts(wn):this.getRuleContext(t,wn)}usingForDeclaration(t){return void 0===t?this.getRuleContexts(In):this.getRuleContext(t,In)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_sourceUnit}enterRule(t){t.enterSourceUnit&&t.enterSourceUnit(this)}exitRule(t){t.exitSourceUnit&&t.exitSourceUnit(this)}accept(t){return t.visitSourceUnit?t.visitSourceUnit(this):t.visitChildren(this)}},yn=class extends an.ParserRuleContext{pragmaName(){return this.getRuleContext(0,gn)}pragmaValue(){return this.getRuleContext(0,mn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_pragmaDirective}enterRule(t){t.enterPragmaDirective&&t.enterPragmaDirective(this)}exitRule(t){t.exitPragmaDirective&&t.exitPragmaDirective(this)}accept(t){return t.visitPragmaDirective?t.visitPragmaDirective(this):t.visitChildren(this)}},gn=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_pragmaName}enterRule(t){t.enterPragmaName&&t.enterPragmaName(this)}exitRule(t){t.exitPragmaName&&t.exitPragmaName(this)}accept(t){return t.visitPragmaName?t.visitPragmaName(this):t.visitChildren(this)}},mn=class extends an.ParserRuleContext{version(){return this.tryGetRuleContext(0,xn)}expression(){return this.tryGetRuleContext(0,ws)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_pragmaValue}enterRule(t){t.enterPragmaValue&&t.enterPragmaValue(this)}exitRule(t){t.exitPragmaValue&&t.exitPragmaValue(this)}accept(t){return t.visitPragmaValue?t.visitPragmaValue(this):t.visitChildren(this)}},xn=class extends an.ParserRuleContext{versionConstraint(t){return void 0===t?this.getRuleContexts(vn):this.getRuleContext(t,vn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_version}enterRule(t){t.enterVersion&&t.enterVersion(this)}exitRule(t){t.exitVersion&&t.exitVersion(this)}accept(t){return t.visitVersion?t.visitVersion(this):t.visitChildren(this)}},Tn=class extends an.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_versionOperator}enterRule(t){t.enterVersionOperator&&t.enterVersionOperator(this)}exitRule(t){t.exitVersionOperator&&t.exitVersionOperator(this)}accept(t){return t.visitVersionOperator?t.visitVersionOperator(this):t.visitChildren(this)}},vn=class extends an.ParserRuleContext{VersionLiteral(){return this.tryGetToken(fn.VersionLiteral,0)}versionOperator(){return this.tryGetRuleContext(0,Tn)}DecimalNumber(){return this.tryGetToken(fn.DecimalNumber,0)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_versionConstraint}enterRule(t){t.enterVersionConstraint&&t.enterVersionConstraint(this)}exitRule(t){t.exitVersionConstraint&&t.exitVersionConstraint(this)}accept(t){return t.visitVersionConstraint?t.visitVersionConstraint(this):t.visitChildren(this)}},Sn=class extends an.ParserRuleContext{identifier(t){return void 0===t?this.getRuleContexts(no):this.getRuleContext(t,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_importDeclaration}enterRule(t){t.enterImportDeclaration&&t.enterImportDeclaration(this)}exitRule(t){t.exitImportDeclaration&&t.exitImportDeclaration(this)}accept(t){return t.visitImportDeclaration?t.visitImportDeclaration(this):t.visitChildren(this)}},bn=class extends an.ParserRuleContext{importPath(){return this.getRuleContext(0,En)}identifier(t){return void 0===t?this.getRuleContexts(no):this.getRuleContext(t,no)}importDeclaration(t){return void 0===t?this.getRuleContexts(Sn):this.getRuleContext(t,Sn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_importDirective}enterRule(t){t.enterImportDirective&&t.enterImportDirective(this)}exitRule(t){t.exitImportDirective&&t.exitImportDirective(this)}accept(t){return t.visitImportDirective?t.visitImportDirective(this):t.visitChildren(this)}},En=class extends an.ParserRuleContext{StringLiteralFragment(){return this.getToken(fn.StringLiteralFragment,0)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_importPath}enterRule(t){t.enterImportPath&&t.enterImportPath(this)}exitRule(t){t.exitImportPath&&t.exitImportPath(this)}accept(t){return t.visitImportPath?t.visitImportPath(this):t.visitChildren(this)}},Nn=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}inheritanceSpecifier(t){return void 0===t?this.getRuleContexts(An):this.getRuleContext(t,An)}contractPart(t){return void 0===t?this.getRuleContexts(Rn):this.getRuleContext(t,Rn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_contractDefinition}enterRule(t){t.enterContractDefinition&&t.enterContractDefinition(this)}exitRule(t){t.exitContractDefinition&&t.exitContractDefinition(this)}accept(t){return t.visitContractDefinition?t.visitContractDefinition(this):t.visitChildren(this)}},An=class extends an.ParserRuleContext{userDefinedTypeName(){return this.getRuleContext(0,ts)}expressionList(){return this.tryGetRuleContext(0,Ps)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_inheritanceSpecifier}enterRule(t){t.enterInheritanceSpecifier&&t.enterInheritanceSpecifier(this)}exitRule(t){t.exitInheritanceSpecifier&&t.exitInheritanceSpecifier(this)}accept(t){return t.visitInheritanceSpecifier?t.visitInheritanceSpecifier(this):t.visitChildren(this)}},Rn=class extends an.ParserRuleContext{stateVariableDeclaration(){return this.tryGetRuleContext(0,Cn)}usingForDeclaration(){return this.tryGetRuleContext(0,In)}structDefinition(){return this.tryGetRuleContext(0,Fn)}modifierDefinition(){return this.tryGetRuleContext(0,Mn)}functionDefinition(){return this.tryGetRuleContext(0,Un)}eventDefinition(){return this.tryGetRuleContext(0,zn)}enumDefinition(){return this.tryGetRuleContext(0,qn)}customErrorDefinition(){return this.tryGetRuleContext(0,Ln)}typeDefinition(){return this.tryGetRuleContext(0,wn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_contractPart}enterRule(t){t.enterContractPart&&t.enterContractPart(this)}exitRule(t){t.exitContractPart&&t.exitContractPart(this)}accept(t){return t.visitContractPart?t.visitContractPart(this):t.visitChildren(this)}},Cn=class extends an.ParserRuleContext{typeName(){return this.getRuleContext(0,Zn)}identifier(){return this.getRuleContext(0,no)}PublicKeyword(t){return void 0===t?this.getTokens(fn.PublicKeyword):this.getToken(fn.PublicKeyword,t)}InternalKeyword(t){return void 0===t?this.getTokens(fn.InternalKeyword):this.getToken(fn.InternalKeyword,t)}PrivateKeyword(t){return void 0===t?this.getTokens(fn.PrivateKeyword):this.getToken(fn.PrivateKeyword,t)}ConstantKeyword(t){return void 0===t?this.getTokens(fn.ConstantKeyword):this.getToken(fn.ConstantKeyword,t)}ImmutableKeyword(t){return void 0===t?this.getTokens(fn.ImmutableKeyword):this.getToken(fn.ImmutableKeyword,t)}overrideSpecifier(t){return void 0===t?this.getRuleContexts(oo):this.getRuleContext(t,oo)}expression(){return this.tryGetRuleContext(0,ws)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_stateVariableDeclaration}enterRule(t){t.enterStateVariableDeclaration&&t.enterStateVariableDeclaration(this)}exitRule(t){t.exitStateVariableDeclaration&&t.exitStateVariableDeclaration(this)}accept(t){return t.visitStateVariableDeclaration?t.visitStateVariableDeclaration(this):t.visitChildren(this)}},On=class extends an.ParserRuleContext{typeName(){return this.getRuleContext(0,Zn)}ConstantKeyword(){return this.getToken(fn.ConstantKeyword,0)}identifier(){return this.getRuleContext(0,no)}expression(){return this.getRuleContext(0,ws)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_fileLevelConstant}enterRule(t){t.enterFileLevelConstant&&t.enterFileLevelConstant(this)}exitRule(t){t.exitFileLevelConstant&&t.exitFileLevelConstant(this)}accept(t){return t.visitFileLevelConstant?t.visitFileLevelConstant(this):t.visitChildren(this)}},Ln=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}parameterList(){return this.getRuleContext(0,Gn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_customErrorDefinition}enterRule(t){t.enterCustomErrorDefinition&&t.enterCustomErrorDefinition(this)}exitRule(t){t.exitCustomErrorDefinition&&t.exitCustomErrorDefinition(this)}accept(t){return t.visitCustomErrorDefinition?t.visitCustomErrorDefinition(this):t.visitChildren(this)}},wn=class extends an.ParserRuleContext{TypeKeyword(){return this.getToken(fn.TypeKeyword,0)}identifier(){return this.getRuleContext(0,no)}elementaryTypeName(){return this.getRuleContext(0,Ls)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_typeDefinition}enterRule(t){t.enterTypeDefinition&&t.enterTypeDefinition(this)}exitRule(t){t.exitTypeDefinition&&t.exitTypeDefinition(this)}accept(t){return t.visitTypeDefinition?t.visitTypeDefinition(this):t.visitChildren(this)}},In=class extends an.ParserRuleContext{usingForObject(){return this.getRuleContext(0,Pn)}typeName(){return this.tryGetRuleContext(0,Zn)}GlobalKeyword(){return this.tryGetToken(fn.GlobalKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_usingForDeclaration}enterRule(t){t.enterUsingForDeclaration&&t.enterUsingForDeclaration(this)}exitRule(t){t.exitUsingForDeclaration&&t.exitUsingForDeclaration(this)}accept(t){return t.visitUsingForDeclaration?t.visitUsingForDeclaration(this):t.visitChildren(this)}},Pn=class extends an.ParserRuleContext{userDefinedTypeName(){return this.tryGetRuleContext(0,ts)}usingForObjectDirective(t){return void 0===t?this.getRuleContexts(kn):this.getRuleContext(t,kn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_usingForObject}enterRule(t){t.enterUsingForObject&&t.enterUsingForObject(this)}exitRule(t){t.exitUsingForObject&&t.exitUsingForObject(this)}accept(t){return t.visitUsingForObject?t.visitUsingForObject(this):t.visitChildren(this)}},kn=class extends an.ParserRuleContext{userDefinedTypeName(){return this.getRuleContext(0,ts)}userDefinableOperators(){return this.tryGetRuleContext(0,Dn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_usingForObjectDirective}enterRule(t){t.enterUsingForObjectDirective&&t.enterUsingForObjectDirective(this)}exitRule(t){t.exitUsingForObjectDirective&&t.exitUsingForObjectDirective(this)}accept(t){return t.visitUsingForObjectDirective?t.visitUsingForObjectDirective(this):t.visitChildren(this)}},Dn=class extends an.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_userDefinableOperators}enterRule(t){t.enterUserDefinableOperators&&t.enterUserDefinableOperators(this)}exitRule(t){t.exitUserDefinableOperators&&t.exitUserDefinableOperators(this)}accept(t){return t.visitUserDefinableOperators?t.visitUserDefinableOperators(this):t.visitChildren(this)}},Fn=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}variableDeclaration(t){return void 0===t?this.getRuleContexts(Qn):this.getRuleContext(t,Qn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_structDefinition}enterRule(t){t.enterStructDefinition&&t.enterStructDefinition(this)}exitRule(t){t.exitStructDefinition&&t.exitStructDefinition(this)}accept(t){return t.visitStructDefinition?t.visitStructDefinition(this):t.visitChildren(this)}},Mn=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}block(){return this.tryGetRuleContext(0,ls)}parameterList(){return this.tryGetRuleContext(0,Gn)}VirtualKeyword(t){return void 0===t?this.getTokens(fn.VirtualKeyword):this.getToken(fn.VirtualKeyword,t)}overrideSpecifier(t){return void 0===t?this.getRuleContexts(oo):this.getRuleContext(t,oo)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_modifierDefinition}enterRule(t){t.enterModifierDefinition&&t.enterModifierDefinition(this)}exitRule(t){t.exitModifierDefinition&&t.exitModifierDefinition(this)}accept(t){return t.visitModifierDefinition?t.visitModifierDefinition(this):t.visitChildren(this)}},jn=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}expressionList(){return this.tryGetRuleContext(0,Ps)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_modifierInvocation}enterRule(t){t.enterModifierInvocation&&t.enterModifierInvocation(this)}exitRule(t){t.exitModifierInvocation&&t.exitModifierInvocation(this)}accept(t){return t.visitModifierInvocation?t.visitModifierInvocation(this):t.visitChildren(this)}},Un=class extends an.ParserRuleContext{functionDescriptor(){return this.getRuleContext(0,Hn)}parameterList(){return this.getRuleContext(0,Gn)}modifierList(){return this.getRuleContext(0,Bn)}block(){return this.tryGetRuleContext(0,ls)}returnParameters(){return this.tryGetRuleContext(0,Kn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_functionDefinition}enterRule(t){t.enterFunctionDefinition&&t.enterFunctionDefinition(this)}exitRule(t){t.exitFunctionDefinition&&t.exitFunctionDefinition(this)}accept(t){return t.visitFunctionDefinition?t.visitFunctionDefinition(this):t.visitChildren(this)}},Hn=class extends an.ParserRuleContext{identifier(){return this.tryGetRuleContext(0,no)}ConstructorKeyword(){return this.tryGetToken(fn.ConstructorKeyword,0)}FallbackKeyword(){return this.tryGetToken(fn.FallbackKeyword,0)}ReceiveKeyword(){return this.tryGetToken(fn.ReceiveKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_functionDescriptor}enterRule(t){t.enterFunctionDescriptor&&t.enterFunctionDescriptor(this)}exitRule(t){t.exitFunctionDescriptor&&t.exitFunctionDescriptor(this)}accept(t){return t.visitFunctionDescriptor?t.visitFunctionDescriptor(this):t.visitChildren(this)}},Kn=class extends an.ParserRuleContext{parameterList(){return this.getRuleContext(0,Gn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_returnParameters}enterRule(t){t.enterReturnParameters&&t.enterReturnParameters(this)}exitRule(t){t.exitReturnParameters&&t.exitReturnParameters(this)}accept(t){return t.visitReturnParameters?t.visitReturnParameters(this):t.visitChildren(this)}},Bn=class extends an.ParserRuleContext{ExternalKeyword(t){return void 0===t?this.getTokens(fn.ExternalKeyword):this.getToken(fn.ExternalKeyword,t)}PublicKeyword(t){return void 0===t?this.getTokens(fn.PublicKeyword):this.getToken(fn.PublicKeyword,t)}InternalKeyword(t){return void 0===t?this.getTokens(fn.InternalKeyword):this.getToken(fn.InternalKeyword,t)}PrivateKeyword(t){return void 0===t?this.getTokens(fn.PrivateKeyword):this.getToken(fn.PrivateKeyword,t)}VirtualKeyword(t){return void 0===t?this.getTokens(fn.VirtualKeyword):this.getToken(fn.VirtualKeyword,t)}stateMutability(t){return void 0===t?this.getRuleContexts(as):this.getRuleContext(t,as)}modifierInvocation(t){return void 0===t?this.getRuleContexts(jn):this.getRuleContext(t,jn)}overrideSpecifier(t){return void 0===t?this.getRuleContexts(oo):this.getRuleContext(t,oo)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_modifierList}enterRule(t){t.enterModifierList&&t.enterModifierList(this)}exitRule(t){t.exitModifierList&&t.exitModifierList(this)}accept(t){return t.visitModifierList?t.visitModifierList(this):t.visitChildren(this)}},zn=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}eventParameterList(){return this.getRuleContext(0,Yn)}AnonymousKeyword(){return this.tryGetToken(fn.AnonymousKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_eventDefinition}enterRule(t){t.enterEventDefinition&&t.enterEventDefinition(this)}exitRule(t){t.exitEventDefinition&&t.exitEventDefinition(this)}accept(t){return t.visitEventDefinition?t.visitEventDefinition(this):t.visitChildren(this)}},Vn=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_enumValue}enterRule(t){t.enterEnumValue&&t.enterEnumValue(this)}exitRule(t){t.exitEnumValue&&t.exitEnumValue(this)}accept(t){return t.visitEnumValue?t.visitEnumValue(this):t.visitChildren(this)}},qn=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}enumValue(t){return void 0===t?this.getRuleContexts(Vn):this.getRuleContext(t,Vn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_enumDefinition}enterRule(t){t.enterEnumDefinition&&t.enterEnumDefinition(this)}exitRule(t){t.exitEnumDefinition&&t.exitEnumDefinition(this)}accept(t){return t.visitEnumDefinition?t.visitEnumDefinition(this):t.visitChildren(this)}},Gn=class extends an.ParserRuleContext{parameter(t){return void 0===t?this.getRuleContexts($n):this.getRuleContext(t,$n)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_parameterList}enterRule(t){t.enterParameterList&&t.enterParameterList(this)}exitRule(t){t.exitParameterList&&t.exitParameterList(this)}accept(t){return t.visitParameterList?t.visitParameterList(this):t.visitChildren(this)}},$n=class extends an.ParserRuleContext{typeName(){return this.getRuleContext(0,Zn)}storageLocation(){return this.tryGetRuleContext(0,os)}identifier(){return this.tryGetRuleContext(0,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_parameter}enterRule(t){t.enterParameter&&t.enterParameter(this)}exitRule(t){t.exitParameter&&t.exitParameter(this)}accept(t){return t.visitParameter?t.visitParameter(this):t.visitChildren(this)}},Yn=class extends an.ParserRuleContext{eventParameter(t){return void 0===t?this.getRuleContexts(Wn):this.getRuleContext(t,Wn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_eventParameterList}enterRule(t){t.enterEventParameterList&&t.enterEventParameterList(this)}exitRule(t){t.exitEventParameterList&&t.exitEventParameterList(this)}accept(t){return t.visitEventParameterList?t.visitEventParameterList(this):t.visitChildren(this)}},Wn=class extends an.ParserRuleContext{typeName(){return this.getRuleContext(0,Zn)}IndexedKeyword(){return this.tryGetToken(fn.IndexedKeyword,0)}identifier(){return this.tryGetRuleContext(0,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_eventParameter}enterRule(t){t.enterEventParameter&&t.enterEventParameter(this)}exitRule(t){t.exitEventParameter&&t.exitEventParameter(this)}accept(t){return t.visitEventParameter?t.visitEventParameter(this):t.visitChildren(this)}},Xn=class extends an.ParserRuleContext{functionTypeParameter(t){return void 0===t?this.getRuleContexts(Jn):this.getRuleContext(t,Jn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_functionTypeParameterList}enterRule(t){t.enterFunctionTypeParameterList&&t.enterFunctionTypeParameterList(this)}exitRule(t){t.exitFunctionTypeParameterList&&t.exitFunctionTypeParameterList(this)}accept(t){return t.visitFunctionTypeParameterList?t.visitFunctionTypeParameterList(this):t.visitChildren(this)}},Jn=class extends an.ParserRuleContext{typeName(){return this.getRuleContext(0,Zn)}storageLocation(){return this.tryGetRuleContext(0,os)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_functionTypeParameter}enterRule(t){t.enterFunctionTypeParameter&&t.enterFunctionTypeParameter(this)}exitRule(t){t.exitFunctionTypeParameter&&t.exitFunctionTypeParameter(this)}accept(t){return t.visitFunctionTypeParameter?t.visitFunctionTypeParameter(this):t.visitChildren(this)}},Qn=class extends an.ParserRuleContext{typeName(){return this.getRuleContext(0,Zn)}identifier(){return this.getRuleContext(0,no)}storageLocation(){return this.tryGetRuleContext(0,os)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_variableDeclaration}enterRule(t){t.enterVariableDeclaration&&t.enterVariableDeclaration(this)}exitRule(t){t.exitVariableDeclaration&&t.exitVariableDeclaration(this)}accept(t){return t.visitVariableDeclaration?t.visitVariableDeclaration(this):t.visitChildren(this)}},Zn=class extends an.ParserRuleContext{elementaryTypeName(){return this.tryGetRuleContext(0,Ls)}userDefinedTypeName(){return this.tryGetRuleContext(0,ts)}mapping(){return this.tryGetRuleContext(0,rs)}typeName(){return this.tryGetRuleContext(0,Zn)}expression(){return this.tryGetRuleContext(0,ws)}functionTypeName(){return this.tryGetRuleContext(0,ss)}PayableKeyword(){return this.tryGetToken(fn.PayableKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_typeName}enterRule(t){t.enterTypeName&&t.enterTypeName(this)}exitRule(t){t.exitTypeName&&t.exitTypeName(this)}accept(t){return t.visitTypeName?t.visitTypeName(this):t.visitChildren(this)}},ts=class extends an.ParserRuleContext{identifier(t){return void 0===t?this.getRuleContexts(no):this.getRuleContext(t,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_userDefinedTypeName}enterRule(t){t.enterUserDefinedTypeName&&t.enterUserDefinedTypeName(this)}exitRule(t){t.exitUserDefinedTypeName&&t.exitUserDefinedTypeName(this)}accept(t){return t.visitUserDefinedTypeName?t.visitUserDefinedTypeName(this):t.visitChildren(this)}},es=class extends an.ParserRuleContext{elementaryTypeName(){return this.tryGetRuleContext(0,Ls)}userDefinedTypeName(){return this.tryGetRuleContext(0,ts)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_mappingKey}enterRule(t){t.enterMappingKey&&t.enterMappingKey(this)}exitRule(t){t.exitMappingKey&&t.exitMappingKey(this)}accept(t){return t.visitMappingKey?t.visitMappingKey(this):t.visitChildren(this)}},rs=class extends an.ParserRuleContext{mappingKey(){return this.getRuleContext(0,es)}typeName(){return this.getRuleContext(0,Zn)}mappingKeyName(){return this.tryGetRuleContext(0,is)}mappingValueName(){return this.tryGetRuleContext(0,ns)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_mapping}enterRule(t){t.enterMapping&&t.enterMapping(this)}exitRule(t){t.exitMapping&&t.exitMapping(this)}accept(t){return t.visitMapping?t.visitMapping(this):t.visitChildren(this)}},is=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_mappingKeyName}enterRule(t){t.enterMappingKeyName&&t.enterMappingKeyName(this)}exitRule(t){t.exitMappingKeyName&&t.exitMappingKeyName(this)}accept(t){return t.visitMappingKeyName?t.visitMappingKeyName(this):t.visitChildren(this)}},ns=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_mappingValueName}enterRule(t){t.enterMappingValueName&&t.enterMappingValueName(this)}exitRule(t){t.exitMappingValueName&&t.exitMappingValueName(this)}accept(t){return t.visitMappingValueName?t.visitMappingValueName(this):t.visitChildren(this)}},ss=class extends an.ParserRuleContext{functionTypeParameterList(t){return void 0===t?this.getRuleContexts(Xn):this.getRuleContext(t,Xn)}InternalKeyword(t){return void 0===t?this.getTokens(fn.InternalKeyword):this.getToken(fn.InternalKeyword,t)}ExternalKeyword(t){return void 0===t?this.getTokens(fn.ExternalKeyword):this.getToken(fn.ExternalKeyword,t)}stateMutability(t){return void 0===t?this.getRuleContexts(as):this.getRuleContext(t,as)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_functionTypeName}enterRule(t){t.enterFunctionTypeName&&t.enterFunctionTypeName(this)}exitRule(t){t.exitFunctionTypeName&&t.exitFunctionTypeName(this)}accept(t){return t.visitFunctionTypeName?t.visitFunctionTypeName(this):t.visitChildren(this)}},os=class extends an.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_storageLocation}enterRule(t){t.enterStorageLocation&&t.enterStorageLocation(this)}exitRule(t){t.exitStorageLocation&&t.exitStorageLocation(this)}accept(t){return t.visitStorageLocation?t.visitStorageLocation(this):t.visitChildren(this)}},as=class extends an.ParserRuleContext{PureKeyword(){return this.tryGetToken(fn.PureKeyword,0)}ConstantKeyword(){return this.tryGetToken(fn.ConstantKeyword,0)}ViewKeyword(){return this.tryGetToken(fn.ViewKeyword,0)}PayableKeyword(){return this.tryGetToken(fn.PayableKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_stateMutability}enterRule(t){t.enterStateMutability&&t.enterStateMutability(this)}exitRule(t){t.exitStateMutability&&t.exitStateMutability(this)}accept(t){return t.visitStateMutability?t.visitStateMutability(this):t.visitChildren(this)}},ls=class extends an.ParserRuleContext{statement(t){return void 0===t?this.getRuleContexts(cs):this.getRuleContext(t,cs)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_block}enterRule(t){t.enterBlock&&t.enterBlock(this)}exitRule(t){t.exitBlock&&t.exitBlock(this)}accept(t){return t.visitBlock?t.visitBlock(this):t.visitChildren(this)}},cs=class extends an.ParserRuleContext{ifStatement(){return this.tryGetRuleContext(0,hs)}tryStatement(){return this.tryGetRuleContext(0,ps)}whileStatement(){return this.tryGetRuleContext(0,fs)}forStatement(){return this.tryGetRuleContext(0,gs)}block(){return this.tryGetRuleContext(0,ls)}inlineAssemblyStatement(){return this.tryGetRuleContext(0,ms)}doWhileStatement(){return this.tryGetRuleContext(0,Ts)}continueStatement(){return this.tryGetRuleContext(0,vs)}breakStatement(){return this.tryGetRuleContext(0,Ss)}returnStatement(){return this.tryGetRuleContext(0,bs)}throwStatement(){return this.tryGetRuleContext(0,Es)}emitStatement(){return this.tryGetRuleContext(0,Ns)}simpleStatement(){return this.tryGetRuleContext(0,_s)}uncheckedStatement(){return this.tryGetRuleContext(0,ys)}revertStatement(){return this.tryGetRuleContext(0,As)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_statement}enterRule(t){t.enterStatement&&t.enterStatement(this)}exitRule(t){t.exitStatement&&t.exitStatement(this)}accept(t){return t.visitStatement?t.visitStatement(this):t.visitChildren(this)}},us=class extends an.ParserRuleContext{expression(){return this.getRuleContext(0,ws)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_expressionStatement}enterRule(t){t.enterExpressionStatement&&t.enterExpressionStatement(this)}exitRule(t){t.exitExpressionStatement&&t.exitExpressionStatement(this)}accept(t){return t.visitExpressionStatement?t.visitExpressionStatement(this):t.visitChildren(this)}},hs=class extends an.ParserRuleContext{expression(){return this.getRuleContext(0,ws)}statement(t){return void 0===t?this.getRuleContexts(cs):this.getRuleContext(t,cs)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_ifStatement}enterRule(t){t.enterIfStatement&&t.enterIfStatement(this)}exitRule(t){t.exitIfStatement&&t.exitIfStatement(this)}accept(t){return t.visitIfStatement?t.visitIfStatement(this):t.visitChildren(this)}},ps=class extends an.ParserRuleContext{expression(){return this.getRuleContext(0,ws)}block(){return this.getRuleContext(0,ls)}returnParameters(){return this.tryGetRuleContext(0,Kn)}catchClause(t){return void 0===t?this.getRuleContexts(ds):this.getRuleContext(t,ds)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_tryStatement}enterRule(t){t.enterTryStatement&&t.enterTryStatement(this)}exitRule(t){t.exitTryStatement&&t.exitTryStatement(this)}accept(t){return t.visitTryStatement?t.visitTryStatement(this):t.visitChildren(this)}},ds=class extends an.ParserRuleContext{block(){return this.getRuleContext(0,ls)}parameterList(){return this.tryGetRuleContext(0,Gn)}identifier(){return this.tryGetRuleContext(0,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_catchClause}enterRule(t){t.enterCatchClause&&t.enterCatchClause(this)}exitRule(t){t.exitCatchClause&&t.exitCatchClause(this)}accept(t){return t.visitCatchClause?t.visitCatchClause(this):t.visitChildren(this)}},fs=class extends an.ParserRuleContext{expression(){return this.getRuleContext(0,ws)}statement(){return this.getRuleContext(0,cs)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_whileStatement}enterRule(t){t.enterWhileStatement&&t.enterWhileStatement(this)}exitRule(t){t.exitWhileStatement&&t.exitWhileStatement(this)}accept(t){return t.visitWhileStatement?t.visitWhileStatement(this):t.visitChildren(this)}},_s=class extends an.ParserRuleContext{variableDeclarationStatement(){return this.tryGetRuleContext(0,Rs)}expressionStatement(){return this.tryGetRuleContext(0,us)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_simpleStatement}enterRule(t){t.enterSimpleStatement&&t.enterSimpleStatement(this)}exitRule(t){t.exitSimpleStatement&&t.exitSimpleStatement(this)}accept(t){return t.visitSimpleStatement?t.visitSimpleStatement(this):t.visitChildren(this)}},ys=class extends an.ParserRuleContext{block(){return this.getRuleContext(0,ls)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_uncheckedStatement}enterRule(t){t.enterUncheckedStatement&&t.enterUncheckedStatement(this)}exitRule(t){t.exitUncheckedStatement&&t.exitUncheckedStatement(this)}accept(t){return t.visitUncheckedStatement?t.visitUncheckedStatement(this):t.visitChildren(this)}},gs=class extends an.ParserRuleContext{statement(){return this.getRuleContext(0,cs)}simpleStatement(){return this.tryGetRuleContext(0,_s)}expressionStatement(){return this.tryGetRuleContext(0,us)}expression(){return this.tryGetRuleContext(0,ws)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_forStatement}enterRule(t){t.enterForStatement&&t.enterForStatement(this)}exitRule(t){t.exitForStatement&&t.exitForStatement(this)}accept(t){return t.visitForStatement?t.visitForStatement(this):t.visitChildren(this)}},ms=class extends an.ParserRuleContext{assemblyBlock(){return this.getRuleContext(0,js)}StringLiteralFragment(){return this.tryGetToken(fn.StringLiteralFragment,0)}inlineAssemblyStatementFlag(){return this.tryGetRuleContext(0,xs)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_inlineAssemblyStatement}enterRule(t){t.enterInlineAssemblyStatement&&t.enterInlineAssemblyStatement(this)}exitRule(t){t.exitInlineAssemblyStatement&&t.exitInlineAssemblyStatement(this)}accept(t){return t.visitInlineAssemblyStatement?t.visitInlineAssemblyStatement(this):t.visitChildren(this)}},xs=class extends an.ParserRuleContext{stringLiteral(){return this.getRuleContext(0,ao)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_inlineAssemblyStatementFlag}enterRule(t){t.enterInlineAssemblyStatementFlag&&t.enterInlineAssemblyStatementFlag(this)}exitRule(t){t.exitInlineAssemblyStatementFlag&&t.exitInlineAssemblyStatementFlag(this)}accept(t){return t.visitInlineAssemblyStatementFlag?t.visitInlineAssemblyStatementFlag(this):t.visitChildren(this)}},Ts=class extends an.ParserRuleContext{statement(){return this.getRuleContext(0,cs)}expression(){return this.getRuleContext(0,ws)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_doWhileStatement}enterRule(t){t.enterDoWhileStatement&&t.enterDoWhileStatement(this)}exitRule(t){t.exitDoWhileStatement&&t.exitDoWhileStatement(this)}accept(t){return t.visitDoWhileStatement?t.visitDoWhileStatement(this):t.visitChildren(this)}},vs=class extends an.ParserRuleContext{ContinueKeyword(){return this.getToken(fn.ContinueKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_continueStatement}enterRule(t){t.enterContinueStatement&&t.enterContinueStatement(this)}exitRule(t){t.exitContinueStatement&&t.exitContinueStatement(this)}accept(t){return t.visitContinueStatement?t.visitContinueStatement(this):t.visitChildren(this)}},Ss=class extends an.ParserRuleContext{BreakKeyword(){return this.getToken(fn.BreakKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_breakStatement}enterRule(t){t.enterBreakStatement&&t.enterBreakStatement(this)}exitRule(t){t.exitBreakStatement&&t.exitBreakStatement(this)}accept(t){return t.visitBreakStatement?t.visitBreakStatement(this):t.visitChildren(this)}},bs=class extends an.ParserRuleContext{expression(){return this.tryGetRuleContext(0,ws)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_returnStatement}enterRule(t){t.enterReturnStatement&&t.enterReturnStatement(this)}exitRule(t){t.exitReturnStatement&&t.exitReturnStatement(this)}accept(t){return t.visitReturnStatement?t.visitReturnStatement(this):t.visitChildren(this)}},Es=class extends an.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_throwStatement}enterRule(t){t.enterThrowStatement&&t.enterThrowStatement(this)}exitRule(t){t.exitThrowStatement&&t.exitThrowStatement(this)}accept(t){return t.visitThrowStatement?t.visitThrowStatement(this):t.visitChildren(this)}},Ns=class extends an.ParserRuleContext{functionCall(){return this.getRuleContext(0,Ms)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_emitStatement}enterRule(t){t.enterEmitStatement&&t.enterEmitStatement(this)}exitRule(t){t.exitEmitStatement&&t.exitEmitStatement(this)}accept(t){return t.visitEmitStatement?t.visitEmitStatement(this):t.visitChildren(this)}},As=class extends an.ParserRuleContext{functionCall(){return this.getRuleContext(0,Ms)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_revertStatement}enterRule(t){t.enterRevertStatement&&t.enterRevertStatement(this)}exitRule(t){t.exitRevertStatement&&t.exitRevertStatement(this)}accept(t){return t.visitRevertStatement?t.visitRevertStatement(this):t.visitChildren(this)}},Rs=class extends an.ParserRuleContext{identifierList(){return this.tryGetRuleContext(0,Os)}variableDeclaration(){return this.tryGetRuleContext(0,Qn)}variableDeclarationList(){return this.tryGetRuleContext(0,Cs)}expression(){return this.tryGetRuleContext(0,ws)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_variableDeclarationStatement}enterRule(t){t.enterVariableDeclarationStatement&&t.enterVariableDeclarationStatement(this)}exitRule(t){t.exitVariableDeclarationStatement&&t.exitVariableDeclarationStatement(this)}accept(t){return t.visitVariableDeclarationStatement?t.visitVariableDeclarationStatement(this):t.visitChildren(this)}},Cs=class extends an.ParserRuleContext{variableDeclaration(t){return void 0===t?this.getRuleContexts(Qn):this.getRuleContext(t,Qn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_variableDeclarationList}enterRule(t){t.enterVariableDeclarationList&&t.enterVariableDeclarationList(this)}exitRule(t){t.exitVariableDeclarationList&&t.exitVariableDeclarationList(this)}accept(t){return t.visitVariableDeclarationList?t.visitVariableDeclarationList(this):t.visitChildren(this)}},Os=class extends an.ParserRuleContext{identifier(t){return void 0===t?this.getRuleContexts(no):this.getRuleContext(t,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_identifierList}enterRule(t){t.enterIdentifierList&&t.enterIdentifierList(this)}exitRule(t){t.exitIdentifierList&&t.exitIdentifierList(this)}accept(t){return t.visitIdentifierList?t.visitIdentifierList(this):t.visitChildren(this)}},Ls=class extends an.ParserRuleContext{Int(){return this.tryGetToken(fn.Int,0)}Uint(){return this.tryGetToken(fn.Uint,0)}Byte(){return this.tryGetToken(fn.Byte,0)}Fixed(){return this.tryGetToken(fn.Fixed,0)}Ufixed(){return this.tryGetToken(fn.Ufixed,0)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_elementaryTypeName}enterRule(t){t.enterElementaryTypeName&&t.enterElementaryTypeName(this)}exitRule(t){t.exitElementaryTypeName&&t.exitElementaryTypeName(this)}accept(t){return t.visitElementaryTypeName?t.visitElementaryTypeName(this):t.visitChildren(this)}},ws=class extends an.ParserRuleContext{expression(t){return void 0===t?this.getRuleContexts(ws):this.getRuleContext(t,ws)}typeName(){return this.tryGetRuleContext(0,Zn)}identifier(){return this.tryGetRuleContext(0,no)}nameValueList(){return this.tryGetRuleContext(0,ks)}functionCallArguments(){return this.tryGetRuleContext(0,Fs)}primaryExpression(){return this.tryGetRuleContext(0,Is)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_expression}enterRule(t){t.enterExpression&&t.enterExpression(this)}exitRule(t){t.exitExpression&&t.exitExpression(this)}accept(t){return t.visitExpression?t.visitExpression(this):t.visitChildren(this)}},Is=class extends an.ParserRuleContext{BooleanLiteral(){return this.tryGetToken(fn.BooleanLiteral,0)}numberLiteral(){return this.tryGetRuleContext(0,io)}hexLiteral(){return this.tryGetRuleContext(0,so)}stringLiteral(){return this.tryGetRuleContext(0,ao)}identifier(){return this.tryGetRuleContext(0,no)}TypeKeyword(){return this.tryGetToken(fn.TypeKeyword,0)}PayableKeyword(){return this.tryGetToken(fn.PayableKeyword,0)}tupleExpression(){return this.tryGetRuleContext(0,ro)}typeName(){return this.tryGetRuleContext(0,Zn)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_primaryExpression}enterRule(t){t.enterPrimaryExpression&&t.enterPrimaryExpression(this)}exitRule(t){t.exitPrimaryExpression&&t.exitPrimaryExpression(this)}accept(t){return t.visitPrimaryExpression?t.visitPrimaryExpression(this):t.visitChildren(this)}},Ps=class extends an.ParserRuleContext{expression(t){return void 0===t?this.getRuleContexts(ws):this.getRuleContext(t,ws)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_expressionList}enterRule(t){t.enterExpressionList&&t.enterExpressionList(this)}exitRule(t){t.exitExpressionList&&t.exitExpressionList(this)}accept(t){return t.visitExpressionList?t.visitExpressionList(this):t.visitChildren(this)}},ks=class extends an.ParserRuleContext{nameValue(t){return void 0===t?this.getRuleContexts(Ds):this.getRuleContext(t,Ds)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_nameValueList}enterRule(t){t.enterNameValueList&&t.enterNameValueList(this)}exitRule(t){t.exitNameValueList&&t.exitNameValueList(this)}accept(t){return t.visitNameValueList?t.visitNameValueList(this):t.visitChildren(this)}},Ds=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}expression(){return this.getRuleContext(0,ws)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_nameValue}enterRule(t){t.enterNameValue&&t.enterNameValue(this)}exitRule(t){t.exitNameValue&&t.exitNameValue(this)}accept(t){return t.visitNameValue?t.visitNameValue(this):t.visitChildren(this)}},Fs=class extends an.ParserRuleContext{nameValueList(){return this.tryGetRuleContext(0,ks)}expressionList(){return this.tryGetRuleContext(0,Ps)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_functionCallArguments}enterRule(t){t.enterFunctionCallArguments&&t.enterFunctionCallArguments(this)}exitRule(t){t.exitFunctionCallArguments&&t.exitFunctionCallArguments(this)}accept(t){return t.visitFunctionCallArguments?t.visitFunctionCallArguments(this):t.visitChildren(this)}},Ms=class extends an.ParserRuleContext{expression(){return this.getRuleContext(0,ws)}functionCallArguments(){return this.getRuleContext(0,Fs)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_functionCall}enterRule(t){t.enterFunctionCall&&t.enterFunctionCall(this)}exitRule(t){t.exitFunctionCall&&t.exitFunctionCall(this)}accept(t){return t.visitFunctionCall?t.visitFunctionCall(this):t.visitChildren(this)}},js=class extends an.ParserRuleContext{assemblyItem(t){return void 0===t?this.getRuleContexts(Us):this.getRuleContext(t,Us)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyBlock}enterRule(t){t.enterAssemblyBlock&&t.enterAssemblyBlock(this)}exitRule(t){t.exitAssemblyBlock&&t.exitAssemblyBlock(this)}accept(t){return t.visitAssemblyBlock?t.visitAssemblyBlock(this):t.visitChildren(this)}},Us=class extends an.ParserRuleContext{identifier(){return this.tryGetRuleContext(0,no)}assemblyBlock(){return this.tryGetRuleContext(0,js)}assemblyExpression(){return this.tryGetRuleContext(0,Hs)}assemblyLocalDefinition(){return this.tryGetRuleContext(0,zs)}assemblyAssignment(){return this.tryGetRuleContext(0,Vs)}assemblyStackAssignment(){return this.tryGetRuleContext(0,$s)}labelDefinition(){return this.tryGetRuleContext(0,Ys)}assemblySwitch(){return this.tryGetRuleContext(0,Ws)}assemblyFunctionDefinition(){return this.tryGetRuleContext(0,Js)}assemblyFor(){return this.tryGetRuleContext(0,Zs)}assemblyIf(){return this.tryGetRuleContext(0,to)}BreakKeyword(){return this.tryGetToken(fn.BreakKeyword,0)}ContinueKeyword(){return this.tryGetToken(fn.ContinueKeyword,0)}LeaveKeyword(){return this.tryGetToken(fn.LeaveKeyword,0)}numberLiteral(){return this.tryGetRuleContext(0,io)}stringLiteral(){return this.tryGetRuleContext(0,ao)}hexLiteral(){return this.tryGetRuleContext(0,so)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyItem}enterRule(t){t.enterAssemblyItem&&t.enterAssemblyItem(this)}exitRule(t){t.exitAssemblyItem&&t.exitAssemblyItem(this)}accept(t){return t.visitAssemblyItem?t.visitAssemblyItem(this):t.visitChildren(this)}},Hs=class extends an.ParserRuleContext{assemblyCall(){return this.tryGetRuleContext(0,Bs)}assemblyLiteral(){return this.tryGetRuleContext(0,eo)}assemblyMember(){return this.tryGetRuleContext(0,Ks)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyExpression}enterRule(t){t.enterAssemblyExpression&&t.enterAssemblyExpression(this)}exitRule(t){t.exitAssemblyExpression&&t.exitAssemblyExpression(this)}accept(t){return t.visitAssemblyExpression?t.visitAssemblyExpression(this):t.visitChildren(this)}},Ks=class extends an.ParserRuleContext{identifier(t){return void 0===t?this.getRuleContexts(no):this.getRuleContext(t,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyMember}enterRule(t){t.enterAssemblyMember&&t.enterAssemblyMember(this)}exitRule(t){t.exitAssemblyMember&&t.exitAssemblyMember(this)}accept(t){return t.visitAssemblyMember?t.visitAssemblyMember(this):t.visitChildren(this)}},Bs=class extends an.ParserRuleContext{identifier(){return this.tryGetRuleContext(0,no)}assemblyExpression(t){return void 0===t?this.getRuleContexts(Hs):this.getRuleContext(t,Hs)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyCall}enterRule(t){t.enterAssemblyCall&&t.enterAssemblyCall(this)}exitRule(t){t.exitAssemblyCall&&t.exitAssemblyCall(this)}accept(t){return t.visitAssemblyCall?t.visitAssemblyCall(this):t.visitChildren(this)}},zs=class extends an.ParserRuleContext{assemblyIdentifierOrList(){return this.getRuleContext(0,qs)}assemblyExpression(){return this.tryGetRuleContext(0,Hs)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyLocalDefinition}enterRule(t){t.enterAssemblyLocalDefinition&&t.enterAssemblyLocalDefinition(this)}exitRule(t){t.exitAssemblyLocalDefinition&&t.exitAssemblyLocalDefinition(this)}accept(t){return t.visitAssemblyLocalDefinition?t.visitAssemblyLocalDefinition(this):t.visitChildren(this)}},Vs=class extends an.ParserRuleContext{assemblyIdentifierOrList(){return this.getRuleContext(0,qs)}assemblyExpression(){return this.getRuleContext(0,Hs)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyAssignment}enterRule(t){t.enterAssemblyAssignment&&t.enterAssemblyAssignment(this)}exitRule(t){t.exitAssemblyAssignment&&t.exitAssemblyAssignment(this)}accept(t){return t.visitAssemblyAssignment?t.visitAssemblyAssignment(this):t.visitChildren(this)}},qs=class extends an.ParserRuleContext{identifier(){return this.tryGetRuleContext(0,no)}assemblyMember(){return this.tryGetRuleContext(0,Ks)}assemblyIdentifierList(){return this.tryGetRuleContext(0,Gs)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyIdentifierOrList}enterRule(t){t.enterAssemblyIdentifierOrList&&t.enterAssemblyIdentifierOrList(this)}exitRule(t){t.exitAssemblyIdentifierOrList&&t.exitAssemblyIdentifierOrList(this)}accept(t){return t.visitAssemblyIdentifierOrList?t.visitAssemblyIdentifierOrList(this):t.visitChildren(this)}},Gs=class extends an.ParserRuleContext{identifier(t){return void 0===t?this.getRuleContexts(no):this.getRuleContext(t,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyIdentifierList}enterRule(t){t.enterAssemblyIdentifierList&&t.enterAssemblyIdentifierList(this)}exitRule(t){t.exitAssemblyIdentifierList&&t.exitAssemblyIdentifierList(this)}accept(t){return t.visitAssemblyIdentifierList?t.visitAssemblyIdentifierList(this):t.visitChildren(this)}},$s=class extends an.ParserRuleContext{assemblyExpression(){return this.getRuleContext(0,Hs)}identifier(){return this.getRuleContext(0,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyStackAssignment}enterRule(t){t.enterAssemblyStackAssignment&&t.enterAssemblyStackAssignment(this)}exitRule(t){t.exitAssemblyStackAssignment&&t.exitAssemblyStackAssignment(this)}accept(t){return t.visitAssemblyStackAssignment?t.visitAssemblyStackAssignment(this):t.visitChildren(this)}},Ys=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_labelDefinition}enterRule(t){t.enterLabelDefinition&&t.enterLabelDefinition(this)}exitRule(t){t.exitLabelDefinition&&t.exitLabelDefinition(this)}accept(t){return t.visitLabelDefinition?t.visitLabelDefinition(this):t.visitChildren(this)}},Ws=class extends an.ParserRuleContext{assemblyExpression(){return this.getRuleContext(0,Hs)}assemblyCase(t){return void 0===t?this.getRuleContexts(Xs):this.getRuleContext(t,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblySwitch}enterRule(t){t.enterAssemblySwitch&&t.enterAssemblySwitch(this)}exitRule(t){t.exitAssemblySwitch&&t.exitAssemblySwitch(this)}accept(t){return t.visitAssemblySwitch?t.visitAssemblySwitch(this):t.visitChildren(this)}},Xs=class extends an.ParserRuleContext{assemblyLiteral(){return this.tryGetRuleContext(0,eo)}assemblyBlock(){return this.getRuleContext(0,js)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyCase}enterRule(t){t.enterAssemblyCase&&t.enterAssemblyCase(this)}exitRule(t){t.exitAssemblyCase&&t.exitAssemblyCase(this)}accept(t){return t.visitAssemblyCase?t.visitAssemblyCase(this):t.visitChildren(this)}},Js=class extends an.ParserRuleContext{identifier(){return this.getRuleContext(0,no)}assemblyBlock(){return this.getRuleContext(0,js)}assemblyIdentifierList(){return this.tryGetRuleContext(0,Gs)}assemblyFunctionReturns(){return this.tryGetRuleContext(0,Qs)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyFunctionDefinition}enterRule(t){t.enterAssemblyFunctionDefinition&&t.enterAssemblyFunctionDefinition(this)}exitRule(t){t.exitAssemblyFunctionDefinition&&t.exitAssemblyFunctionDefinition(this)}accept(t){return t.visitAssemblyFunctionDefinition?t.visitAssemblyFunctionDefinition(this):t.visitChildren(this)}},Qs=class extends an.ParserRuleContext{assemblyIdentifierList(){return this.tryGetRuleContext(0,Gs)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyFunctionReturns}enterRule(t){t.enterAssemblyFunctionReturns&&t.enterAssemblyFunctionReturns(this)}exitRule(t){t.exitAssemblyFunctionReturns&&t.exitAssemblyFunctionReturns(this)}accept(t){return t.visitAssemblyFunctionReturns?t.visitAssemblyFunctionReturns(this):t.visitChildren(this)}},Zs=class extends an.ParserRuleContext{assemblyExpression(t){return void 0===t?this.getRuleContexts(Hs):this.getRuleContext(t,Hs)}assemblyBlock(t){return void 0===t?this.getRuleContexts(js):this.getRuleContext(t,js)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyFor}enterRule(t){t.enterAssemblyFor&&t.enterAssemblyFor(this)}exitRule(t){t.exitAssemblyFor&&t.exitAssemblyFor(this)}accept(t){return t.visitAssemblyFor?t.visitAssemblyFor(this):t.visitChildren(this)}},to=class extends an.ParserRuleContext{assemblyExpression(){return this.getRuleContext(0,Hs)}assemblyBlock(){return this.getRuleContext(0,js)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyIf}enterRule(t){t.enterAssemblyIf&&t.enterAssemblyIf(this)}exitRule(t){t.exitAssemblyIf&&t.exitAssemblyIf(this)}accept(t){return t.visitAssemblyIf?t.visitAssemblyIf(this):t.visitChildren(this)}},eo=class extends an.ParserRuleContext{stringLiteral(){return this.tryGetRuleContext(0,ao)}DecimalNumber(){return this.tryGetToken(fn.DecimalNumber,0)}HexNumber(){return this.tryGetToken(fn.HexNumber,0)}hexLiteral(){return this.tryGetRuleContext(0,so)}BooleanLiteral(){return this.tryGetToken(fn.BooleanLiteral,0)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_assemblyLiteral}enterRule(t){t.enterAssemblyLiteral&&t.enterAssemblyLiteral(this)}exitRule(t){t.exitAssemblyLiteral&&t.exitAssemblyLiteral(this)}accept(t){return t.visitAssemblyLiteral?t.visitAssemblyLiteral(this):t.visitChildren(this)}},ro=class extends an.ParserRuleContext{expression(t){return void 0===t?this.getRuleContexts(ws):this.getRuleContext(t,ws)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_tupleExpression}enterRule(t){t.enterTupleExpression&&t.enterTupleExpression(this)}exitRule(t){t.exitTupleExpression&&t.exitTupleExpression(this)}accept(t){return t.visitTupleExpression?t.visitTupleExpression(this):t.visitChildren(this)}},io=class extends an.ParserRuleContext{DecimalNumber(){return this.tryGetToken(fn.DecimalNumber,0)}HexNumber(){return this.tryGetToken(fn.HexNumber,0)}NumberUnit(){return this.tryGetToken(fn.NumberUnit,0)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_numberLiteral}enterRule(t){t.enterNumberLiteral&&t.enterNumberLiteral(this)}exitRule(t){t.exitNumberLiteral&&t.exitNumberLiteral(this)}accept(t){return t.visitNumberLiteral?t.visitNumberLiteral(this):t.visitChildren(this)}},no=class extends an.ParserRuleContext{ReceiveKeyword(){return this.tryGetToken(fn.ReceiveKeyword,0)}GlobalKeyword(){return this.tryGetToken(fn.GlobalKeyword,0)}ConstructorKeyword(){return this.tryGetToken(fn.ConstructorKeyword,0)}PayableKeyword(){return this.tryGetToken(fn.PayableKeyword,0)}LeaveKeyword(){return this.tryGetToken(fn.LeaveKeyword,0)}Identifier(){return this.tryGetToken(fn.Identifier,0)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_identifier}enterRule(t){t.enterIdentifier&&t.enterIdentifier(this)}exitRule(t){t.exitIdentifier&&t.exitIdentifier(this)}accept(t){return t.visitIdentifier?t.visitIdentifier(this):t.visitChildren(this)}},so=class extends an.ParserRuleContext{HexLiteralFragment(t){return void 0===t?this.getTokens(fn.HexLiteralFragment):this.getToken(fn.HexLiteralFragment,t)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_hexLiteral}enterRule(t){t.enterHexLiteral&&t.enterHexLiteral(this)}exitRule(t){t.exitHexLiteral&&t.exitHexLiteral(this)}accept(t){return t.visitHexLiteral?t.visitHexLiteral(this):t.visitChildren(this)}},oo=class extends an.ParserRuleContext{userDefinedTypeName(t){return void 0===t?this.getRuleContexts(ts):this.getRuleContext(t,ts)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_overrideSpecifier}enterRule(t){t.enterOverrideSpecifier&&t.enterOverrideSpecifier(this)}exitRule(t){t.exitOverrideSpecifier&&t.exitOverrideSpecifier(this)}accept(t){return t.visitOverrideSpecifier?t.visitOverrideSpecifier(this):t.visitChildren(this)}},ao=class extends an.ParserRuleContext{StringLiteralFragment(t){return void 0===t?this.getTokens(fn.StringLiteralFragment):this.getToken(fn.StringLiteralFragment,t)}constructor(t,e){super(t,e)}get ruleIndex(){return fn.RULE_stringLiteral}enterRule(t){t.enterStringLiteral&&t.enterStringLiteral(this)}exitRule(t){t.exitStringLiteral&&t.exitStringLiteral(this)}accept(t){return t.visitStringLiteral?t.visitStringLiteral(this):t.visitChildren(this)}};p();var lo=["SourceUnit","PragmaDirective","ImportDirective","ContractDefinition","InheritanceSpecifier","StateVariableDeclaration","UsingForDeclaration","StructDefinition","ModifierDefinition","ModifierInvocation","FunctionDefinition","EventDefinition","CustomErrorDefinition","RevertStatement","EnumValue","EnumDefinition","VariableDeclaration","UserDefinedTypeName","Mapping","ArrayTypeName","FunctionTypeName","Block","ExpressionStatement","IfStatement","WhileStatement","ForStatement","InlineAssemblyStatement","DoWhileStatement","ContinueStatement","Break","Continue","BreakStatement","ReturnStatement","EmitStatement","ThrowStatement","VariableDeclarationStatement","ElementaryTypeName","FunctionCall","AssemblyBlock","AssemblyCall","AssemblyLocalDefinition","AssemblyAssignment","AssemblyStackAssignment","LabelDefinition","AssemblySwitch","AssemblyCase","AssemblyFunctionDefinition","AssemblyFor","AssemblyIf","TupleExpression","NameValueExpression","BooleanLiteral","NumberLiteral","Identifier","BinaryOperation","UnaryOperation","NewExpression","Conditional","StringLiteral","HexLiteral","HexNumber","DecimalNumber","MemberAccess","IndexAccess","IndexRangeAccess","NameValueList","UncheckedStatement","TryStatement","CatchClause","FileLevelConstant","AssemblyMemberAccess","TypeDefinition"],co=["+","-","*","/","**","%","<<",">>","&&","||",",,","&",",","^","<",">","<=",">=","==","!=","=",",=","^=","&=","<<=",">>=","+=","-=","*=","/=","%=","|","|="],uo=["-","+","++","--","~","after","delete","!"];p();var ho=h(Wr()),po=h(Re()),fo=class extends ho.AbstractParseTreeVisitor{constructor(t){super(),this.options=t,this.result=null}defaultResult(){throw new Error("Unknown node")}aggregateResult(){return{type:""}}visitSourceUnit(t){const e={type:"SourceUnit",children:(t.children??[]).filter((t=>!(t instanceof po.ErrorNode))).slice(0,-1).map((t=>this.visit(t)))},r=this._addMeta(e,t);return this.result=r,r}visitContractPart(t){return this.visit(t.getChild(0))}visitContractDefinition(t){const e=this._toText(t.identifier()),r=this._toText(t.getChild(0));this._currentContract=e;const i={type:"ContractDefinition",name:e,baseContracts:t.inheritanceSpecifier().map((t=>this.visitInheritanceSpecifier(t))),subNodes:t.contractPart().map((t=>this.visit(t))),kind:r};return this._addMeta(i,t)}visitStateVariableDeclaration(t){const e=this.visitTypeName(t.typeName()),r=t.identifier(),i=this._toText(r);let n=null;const s=t.expression();s&&(n=this.visitExpression(s));let o="default";t.InternalKeyword().length>0?o="internal":t.PublicKeyword().length>0?o="public":t.PrivateKeyword().length>0&&(o="private");let a,l=!1;t.ConstantKeyword().length>0&&(l=!0);const c=t.overrideSpecifier();a=0===c.length?null:c[0].userDefinedTypeName().map((t=>this.visitUserDefinedTypeName(t)));let u=!1;t.ImmutableKeyword().length>0&&(u=!0);const h={type:"VariableDeclaration",typeName:e,name:i,identifier:this.visitIdentifier(r),expression:n,visibility:o,isStateVar:!0,isDeclaredConst:l,isIndexed:!1,isImmutable:u,override:a,storageLocation:null},p={type:"StateVariableDeclaration",variables:[this._addMeta(h,t)],initialValue:n};return this._addMeta(p,t)}visitVariableDeclaration(t){let e=null;const r=t.storageLocation();r&&(e=this._toText(r));const i=t.identifier(),n={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:this._toText(i),identifier:this.visitIdentifier(i),storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(n,t)}visitVariableDeclarationStatement(t){let e=[];const r=t.variableDeclaration(),i=t.identifierList(),n=t.variableDeclarationList();void 0!==r?e=[this.visitVariableDeclaration(r)]:void 0!==i?e=this.buildIdentifierList(i):n&&(e=this.buildVariableDeclarationList(n));let s=null;const o=t.expression();o&&(s=this.visitExpression(o));const a={type:"VariableDeclarationStatement",variables:e,initialValue:s};return this._addMeta(a,t)}visitStatement(t){return this.visit(t.getChild(0))}visitSimpleStatement(t){return this.visit(t.getChild(0))}visitEventDefinition(t){const e=t.eventParameterList().eventParameter().map((t=>{const e=this.visitTypeName(t.typeName());let r=null;const i=t.identifier();i&&(r=this._toText(i));const n={type:"VariableDeclaration",typeName:e,name:r,identifier:void 0!==i?this.visitIdentifier(i):null,isStateVar:!1,isIndexed:void 0!==t.IndexedKeyword(),storageLocation:null,expression:null};return this._addMeta(n,t)})),r={type:"EventDefinition",name:this._toText(t.identifier()),parameters:e,isAnonymous:void 0!==t.AnonymousKeyword()};return this._addMeta(r,t)}visitBlock(t){const e={type:"Block",statements:t.statement().map((t=>this.visitStatement(t)))};return this._addMeta(e,t)}visitParameter(t){let e=null;const r=t.storageLocation();void 0!==r&&(e=this._toText(r));let i=null;const n=t.identifier();void 0!==n&&(i=this._toText(n));const s={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:i,identifier:void 0!==n?this.visitIdentifier(n):null,storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(s,t)}visitFunctionDefinition(t){let e=!1,r=!1,i=!1,n=!1,s=null,o=[],a=null,l="default",c=null;const u=t.block();void 0!==u&&(c=this.visitBlock(u));const h=t.modifierList().modifierInvocation().map((t=>this.visitModifierInvocation(t)));let p=null;t.modifierList().stateMutability().length>0&&(p=this._stateMutabilityToText(t.modifierList().stateMutability(0)));const d=t.returnParameters();switch(this._toText(t.functionDescriptor().getChild(0))){case"constructor":o=t.parameterList().parameter().map((t=>this.visit(t))),l=t.modifierList().InternalKeyword().length>0?"internal":t.modifierList().PublicKeyword().length>0?"public":"default",e=!0;break;case"fallback":o=t.parameterList().parameter().map((t=>this.visit(t))),a=void 0!==d?this.visitReturnParameters(d):null,l="external",r=!0;break;case"receive":l="external",i=!0;break;case"function":{const i=t.functionDescriptor().identifier();s=void 0!==i?this._toText(i):"",o=t.parameterList().parameter().map((t=>this.visit(t))),a=void 0!==d?this.visitReturnParameters(d):null,t.modifierList().ExternalKeyword().length>0?l="external":t.modifierList().InternalKeyword().length>0?l="internal":t.modifierList().PublicKeyword().length>0?l="public":t.modifierList().PrivateKeyword().length>0&&(l="private"),e=s===this._currentContract,r=""===s;break}}let f;t.modifierList().VirtualKeyword().length>0&&(n=!0);const _=t.modifierList().overrideSpecifier();f=0===_.length?null:_[0].userDefinedTypeName().map((t=>this.visitUserDefinedTypeName(t)));const y={type:"FunctionDefinition",name:s,parameters:o,returnParameters:a,body:c,visibility:l,modifiers:h,override:f,isConstructor:e,isReceiveEther:i,isFallback:r,isVirtual:n,stateMutability:p};return this._addMeta(y,t)}visitEnumDefinition(t){const e={type:"EnumDefinition",name:this._toText(t.identifier()),members:t.enumValue().map((t=>this.visitEnumValue(t)))};return this._addMeta(e,t)}visitEnumValue(t){const e={type:"EnumValue",name:this._toText(t.identifier())};return this._addMeta(e,t)}visitElementaryTypeName(t){const e={type:"ElementaryTypeName",name:this._toText(t),stateMutability:null};return this._addMeta(e,t)}visitIdentifier(t){const e={type:"Identifier",name:this._toText(t)};return this._addMeta(e,t)}visitTypeName(t){if(void 0!==t.children&&t.children.length>2){let e=null;if(4===t.children.length){const r=t.expression();if(void 0===r)throw new Error("Assertion error: a typeName with 4 children should have an expression");e=this.visitExpression(r)}const r=t.typeName(),i={type:"ArrayTypeName",baseTypeName:this.visitTypeName(r),length:e};return this._addMeta(i,t)}if(2===t.children?.length){const e={type:"ElementaryTypeName",name:this._toText(t.getChild(0)),stateMutability:this._toText(t.getChild(1))};return this._addMeta(e,t)}if(void 0!==t.elementaryTypeName())return this.visitElementaryTypeName(t.elementaryTypeName());if(void 0!==t.userDefinedTypeName())return this.visitUserDefinedTypeName(t.userDefinedTypeName());if(void 0!==t.mapping())return this.visitMapping(t.mapping());if(void 0!==t.functionTypeName())return this.visitFunctionTypeName(t.functionTypeName());throw new Error("Assertion error: unhandled type name case")}visitUserDefinedTypeName(t){const e={type:"UserDefinedTypeName",namePath:this._toText(t)};return this._addMeta(e,t)}visitUsingForDeclaration(t){let e=null;const r=t.typeName();void 0!==r&&(e=this.visitTypeName(r));const i=void 0!==t.GlobalKeyword(),n=t.usingForObject(),s=n.userDefinedTypeName();let o;if(void 0!==s)o={type:"UsingForDeclaration",isGlobal:i,typeName:e,libraryName:this._toText(s),functions:[],operators:[]};else{const t=n.usingForObjectDirective(),r=[],s=[];for(const e of t){r.push(this._toText(e.userDefinedTypeName()));const t=e.userDefinableOperators();void 0!==t?s.push(this._toText(t)):s.push(null)}o={type:"UsingForDeclaration",isGlobal:i,typeName:e,libraryName:null,functions:r,operators:s}}return this._addMeta(o,t)}visitPragmaDirective(t){const e=t.pragmaValue().version();let r=this._toText(t.pragmaValue());void 0!==e?.children&&(r=e.children.map((t=>this._toText(t))).join(" "));const i={type:"PragmaDirective",name:this._toText(t.pragmaName()),value:r};return this._addMeta(i,t)}visitInheritanceSpecifier(t){const e=t.expressionList(),r=void 0!==e?e.expression().map((t=>this.visitExpression(t))):[],i={type:"InheritanceSpecifier",baseName:this.visitUserDefinedTypeName(t.userDefinedTypeName()),arguments:r};return this._addMeta(i,t)}visitModifierInvocation(t){const e=t.expressionList();let r;r=null!=e?e.expression().map((t=>this.visit(t))):void 0!==t.children&&t.children.length>1?[]:null;const i={type:"ModifierInvocation",name:this._toText(t.identifier()),arguments:r};return this._addMeta(i,t)}visitFunctionTypeName(t){const e=t.functionTypeParameterList(0).functionTypeParameter().map((t=>this.visitFunctionTypeParameter(t)));let r=[];t.functionTypeParameterList().length>1&&(r=t.functionTypeParameterList(1).functionTypeParameter().map((t=>this.visitFunctionTypeParameter(t))));let i="default";t.InternalKeyword().length>0?i="internal":t.ExternalKeyword().length>0&&(i="external");let n=null;t.stateMutability().length>0&&(n=this._toText(t.stateMutability(0)));const s={type:"FunctionTypeName",parameterTypes:e,returnTypes:r,visibility:i,stateMutability:n};return this._addMeta(s,t)}visitFunctionTypeParameter(t){let e=null;t.storageLocation()&&(e=this._toText(t.storageLocation()));const r={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:null,identifier:null,storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(r,t)}visitThrowStatement(t){return this._addMeta({type:"ThrowStatement"},t)}visitReturnStatement(t){let e=null;const r=t.expression();r&&(e=this.visitExpression(r));const i={type:"ReturnStatement",expression:e};return this._addMeta(i,t)}visitEmitStatement(t){const e={type:"EmitStatement",eventCall:this.visitFunctionCall(t.functionCall())};return this._addMeta(e,t)}visitCustomErrorDefinition(t){const e={type:"CustomErrorDefinition",name:this._toText(t.identifier()),parameters:this.visitParameterList(t.parameterList())};return this._addMeta(e,t)}visitTypeDefinition(t){const e={type:"TypeDefinition",name:this._toText(t.identifier()),definition:this.visitElementaryTypeName(t.elementaryTypeName())};return this._addMeta(e,t)}visitRevertStatement(t){const e={type:"RevertStatement",revertCall:this.visitFunctionCall(t.functionCall())};return this._addMeta(e,t)}visitFunctionCall(t){let e=[];const r=[],i=[],n=t.functionCallArguments(),s=n.expressionList(),o=n.nameValueList();if(s)e=s.expression().map((t=>this.visitExpression(t)));else if(o)for(const t of o.nameValue())e.push(this.visitExpression(t.expression())),r.push(this._toText(t.identifier())),i.push(this.visitIdentifier(t.identifier()));const a={type:"FunctionCall",expression:this.visitExpression(t.expression()),arguments:e,names:r,identifiers:i};return this._addMeta(a,t)}visitStructDefinition(t){const e={type:"StructDefinition",name:this._toText(t.identifier()),members:t.variableDeclaration().map((t=>this.visitVariableDeclaration(t)))};return this._addMeta(e,t)}visitWhileStatement(t){const e={type:"WhileStatement",condition:this.visitExpression(t.expression()),body:this.visitStatement(t.statement())};return this._addMeta(e,t)}visitDoWhileStatement(t){const e={type:"DoWhileStatement",condition:this.visitExpression(t.expression()),body:this.visitStatement(t.statement())};return this._addMeta(e,t)}visitIfStatement(t){const e=this.visitStatement(t.statement(0));let r=null;t.statement().length>1&&(r=this.visitStatement(t.statement(1)));const i={type:"IfStatement",condition:this.visitExpression(t.expression()),trueBody:e,falseBody:r};return this._addMeta(i,t)}visitTryStatement(t){let e=null;const r=t.returnParameters();void 0!==r&&(e=this.visitReturnParameters(r));const i=t.catchClause().map((t=>this.visitCatchClause(t))),n={type:"TryStatement",expression:this.visitExpression(t.expression()),returnParameters:e,body:this.visitBlock(t.block()),catchClauses:i};return this._addMeta(n,t)}visitCatchClause(t){let e=null;if(t.parameterList()&&(e=this.visitParameterList(t.parameterList())),t.identifier()&&"Error"!==this._toText(t.identifier())&&"Panic"!==this._toText(t.identifier()))throw new Error('Expected "Error" or "Panic" identifier in catch clause');let r=null;const i=t.identifier();void 0!==i&&(r=this._toText(i));const n={type:"CatchClause",isReasonStringType:"Error"===r,kind:r,parameters:e,body:this.visitBlock(t.block())};return this._addMeta(n,t)}visitExpressionStatement(t){if(!t)return null;const e={type:"ExpressionStatement",expression:this.visitExpression(t.expression())};return this._addMeta(e,t)}visitNumberLiteral(t){const e=this._toText(t.getChild(0));let r=null;2===t.children?.length&&(r=this._toText(t.getChild(1)));const i={type:"NumberLiteral",number:e,subdenomination:r};return this._addMeta(i,t)}visitMappingKey(t){if(t.elementaryTypeName())return this.visitElementaryTypeName(t.elementaryTypeName());if(t.userDefinedTypeName())return this.visitUserDefinedTypeName(t.userDefinedTypeName());throw new Error("Expected MappingKey to have either elementaryTypeName or userDefinedTypeName")}visitMapping(t){const e=t.mappingKeyName(),r=t.mappingValueName(),i={type:"Mapping",keyType:this.visitMappingKey(t.mappingKey()),keyName:void 0===e?null:this.visitIdentifier(e.identifier()),valueType:this.visitTypeName(t.typeName()),valueName:void 0===r?null:this.visitIdentifier(r.identifier())};return this._addMeta(i,t)}visitModifierDefinition(t){let e=null;t.parameterList()&&(e=this.visitParameterList(t.parameterList()));let r,i=!1;t.VirtualKeyword().length>0&&(i=!0);const n=t.overrideSpecifier();r=0===n.length?null:n[0].userDefinedTypeName().map((t=>this.visitUserDefinedTypeName(t)));let s=null;const o=t.block();void 0!==o&&(s=this.visitBlock(o));const a={type:"ModifierDefinition",name:this._toText(t.identifier()),parameters:e,body:s,isVirtual:i,override:r};return this._addMeta(a,t)}visitUncheckedStatement(t){const e={type:"UncheckedStatement",block:this.visitBlock(t.block())};return this._addMeta(e,t)}visitExpression(t){let e;switch(t.children.length){case 1:{const e=t.tryGetRuleContext(0,Is);if(void 0===e)throw new Error("Assertion error: primary expression should exist when children length is 1");return this.visitPrimaryExpression(e)}case 2:if(e=this._toText(t.getChild(0)),"new"===e){const e={type:"NewExpression",typeName:this.visitTypeName(t.typeName())};return this._addMeta(e,t)}if(uo.includes(e)){const r={type:"UnaryOperation",operator:e,subExpression:this.visitExpression(t.getRuleContext(0,ws)),isPrefix:!0};return this._addMeta(r,t)}if(e=this._toText(t.getChild(1)),["++","--"].includes(e)){const r={type:"UnaryOperation",operator:e,subExpression:this.visitExpression(t.getRuleContext(0,ws)),isPrefix:!1};return this._addMeta(r,t)}break;case 3:if("("===this._toText(t.getChild(0))&&")"===this._toText(t.getChild(2))){const e={type:"TupleExpression",components:[this.visitExpression(t.getRuleContext(0,ws))],isArray:!1};return this._addMeta(e,t)}if(e=this._toText(t.getChild(1)),"."===e){const e={type:"MemberAccess",expression:this.visitExpression(t.expression(0)),memberName:this._toText(t.identifier())};return this._addMeta(e,t)}if(function(t){return co.includes(t)}(e)){const r={type:"BinaryOperation",operator:e,left:this.visitExpression(t.expression(0)),right:this.visitExpression(t.expression(1))};return this._addMeta(r,t)}break;case 4:if("("===this._toText(t.getChild(1))&&")"===this._toText(t.getChild(3))){let e=[];const r=[],i=[],n=t.functionCallArguments();if(n.expressionList())e=n.expressionList().expression().map((t=>this.visitExpression(t)));else if(n.nameValueList())for(const t of n.nameValueList().nameValue())e.push(this.visitExpression(t.expression())),r.push(this._toText(t.identifier())),i.push(this.visitIdentifier(t.identifier()));const s={type:"FunctionCall",expression:this.visitExpression(t.expression(0)),arguments:e,names:r,identifiers:i};return this._addMeta(s,t)}if("["===this._toText(t.getChild(1))&&"]"===this._toText(t.getChild(3))){if(":"===t.getChild(2).text){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0))};return this._addMeta(e,t)}const e={type:"IndexAccess",base:this.visitExpression(t.expression(0)),index:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}if("{"===this._toText(t.getChild(1))&&"}"===this._toText(t.getChild(3))){const e={type:"NameValueExpression",expression:this.visitExpression(t.expression(0)),arguments:this.visitNameValueList(t.nameValueList())};return this._addMeta(e,t)}break;case 5:if("?"===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))){const e={type:"Conditional",condition:this.visitExpression(t.expression(0)),trueExpression:this.visitExpression(t.expression(1)),falseExpression:this.visitExpression(t.expression(2))};return this._addMeta(e,t)}if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(2))&&"]"===this._toText(t.getChild(4))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexEnd:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))&&"]"===this._toText(t.getChild(4))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexStart:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}break;case 6:if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))&&"]"===this._toText(t.getChild(5))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexStart:this.visitExpression(t.expression(1)),indexEnd:this.visitExpression(t.expression(2))};return this._addMeta(e,t)}}throw new Error("Unrecognized expression")}visitNameValueList(t){const e=[],r=[],i=[];for(const n of t.nameValue())e.push(this._toText(n.identifier())),r.push(this.visitIdentifier(n.identifier())),i.push(this.visitExpression(n.expression()));const n={type:"NameValueList",names:e,identifiers:r,arguments:i};return this._addMeta(n,t)}visitFileLevelConstant(t){const e=this.visitTypeName(t.typeName()),r=t.identifier(),i={type:"FileLevelConstant",typeName:e,name:this._toText(r),initialValue:this.visitExpression(t.expression()),isDeclaredConst:!0,isImmutable:!1};return this._addMeta(i,t)}visitForStatement(t){let e=this.visitExpressionStatement(t.expressionStatement());e&&(e=e.expression);const r={type:"ForStatement",initExpression:t.simpleStatement()?this.visitSimpleStatement(t.simpleStatement()):null,conditionExpression:e,loopExpression:{type:"ExpressionStatement",expression:void 0!==t.expression()?this.visitExpression(t.expression()):null},body:this.visitStatement(t.statement())};return this._addMeta(r,t)}visitHexLiteral(t){const e=t.HexLiteralFragment().map((t=>this._toText(t))).map((t=>t.substring(4,t.length-1))),r={type:"HexLiteral",value:e.join(""),parts:e};return this._addMeta(r,t)}visitPrimaryExpression(t){if(t.BooleanLiteral()){const e={type:"BooleanLiteral",value:"true"===this._toText(t.BooleanLiteral())};return this._addMeta(e,t)}if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());if(t.stringLiteral()){const e=t.stringLiteral().StringLiteralFragment().map((t=>{let e=this._toText(t);const r="unicode"===e.slice(0,7);r&&(e=e.slice(7));const i="'"===e[0],n=e.substring(1,e.length-1);return{value:i?n.replace(new RegExp("\\\\'","g"),"'"):n.replace(new RegExp('\\\\"',"g"),'"'),isUnicode:r}})),r=e.map((t=>t.value)),i={type:"StringLiteral",value:r.join(""),parts:r,isUnicode:e.map((t=>t.isUnicode))};return this._addMeta(i,t)}if(t.numberLiteral())return this.visitNumberLiteral(t.numberLiteral());if(t.TypeKeyword()){const e={type:"Identifier",name:"type"};return this._addMeta(e,t)}return t.typeName()?this.visitTypeName(t.typeName()):this.visit(t.getChild(0))}visitTupleExpression(t){const e=t.children.slice(1,-1),r={type:"TupleExpression",components:this._mapCommasToNulls(e).map((t=>null===t?null:this.visit(t))),isArray:"["===this._toText(t.getChild(0))};return this._addMeta(r,t)}buildIdentifierList(t){const e=t.children.slice(1,-1),r=t.identifier();let i=0;return this._mapCommasToNulls(e).map((t=>{if(!t)return null;const e=r[i];i++;const n={type:"VariableDeclaration",name:this._toText(e),identifier:this.visitIdentifier(e),isStateVar:!1,isIndexed:!1,typeName:null,storageLocation:null,expression:null};return this._addMeta(n,e)}))}buildVariableDeclarationList(t){const e=t.variableDeclaration();let r=0;return this._mapCommasToNulls(t.children??[]).map((t=>{if(!t)return null;const i=e[r];r++;let n=null;i.storageLocation()&&(n=this._toText(i.storageLocation()));const s=i.identifier(),o={type:"VariableDeclaration",name:this._toText(s),identifier:this.visitIdentifier(s),typeName:this.visitTypeName(i.typeName()),storageLocation:n,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(o,i)}))}visitImportDirective(t){const e=this._toText(t.importPath());let r=null,i=null,n=null,s=null;if(t.importDeclaration().length>0)n=t.importDeclaration().map((t=>{const e=this._toText(t.identifier(0));let r=null;return t.identifier().length>1&&(r=this._toText(t.identifier(1))),[e,r]})),s=t.importDeclaration().map((t=>{const e=this.visitIdentifier(t.identifier(0));let r=null;return t.identifier().length>1&&(r=this.visitIdentifier(t.identifier(1))),[e,r]}));else{const e=t.identifier();if(0===e.length);else if(1===e.length){const e=t.identifier(0);r=this._toText(e),i=this.visitIdentifier(e)}else{if(2!==e.length)throw new Error("Assertion error: an import should have one or two identifiers");{const e=t.identifier(1);r=this._toText(e),i=this.visitIdentifier(e)}}}const o=e.substring(1,e.length-1),a={type:"StringLiteral",value:o,parts:[o],isUnicode:[!1]},l={type:"ImportDirective",path:o,pathLiteral:this._addMeta(a,t.importPath()),unitAlias:r,unitAliasIdentifier:i,symbolAliases:n,symbolAliasesIdentifiers:s};return this._addMeta(l,t)}buildEventParameterList(t){return t.eventParameter().map((t=>{const e=this.visit(t.typeName()),r=t.identifier();return{type:"VariableDeclaration",typeName:e,name:r?this._toText(r):null,isStateVar:!1,isIndexed:!!t.IndexedKeyword()}}))}visitReturnParameters(t){return this.visitParameterList(t.parameterList())}visitParameterList(t){return t.parameter().map((t=>this.visitParameter(t)))}visitInlineAssemblyStatement(t){let e=null;t.StringLiteralFragment()&&(e=this._toText(t.StringLiteralFragment()),e=e.substring(1,e.length-1));const r=[],i=t.inlineAssemblyStatementFlag();if(void 0!==i){const t=this._toText(i.stringLiteral());r.push(t.slice(1,t.length-1))}const n={type:"InlineAssemblyStatement",language:e,flags:r,body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(n,t)}visitAssemblyBlock(t){const e={type:"AssemblyBlock",operations:t.assemblyItem().map((t=>this.visitAssemblyItem(t)))};return this._addMeta(e,t)}visitAssemblyItem(t){let e;if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());if(t.stringLiteral()){e=this._toText(t.stringLiteral());const r=e.substring(1,e.length-1),i={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(i,t)}if(t.BreakKeyword()){const e={type:"Break"};return this._addMeta(e,t)}if(t.ContinueKeyword()){const e={type:"Continue"};return this._addMeta(e,t)}return this.visit(t.getChild(0))}visitAssemblyExpression(t){return this.visit(t.getChild(0))}visitAssemblyCall(t){const e={type:"AssemblyCall",functionName:this._toText(t.getChild(0)),arguments:t.assemblyExpression().map((t=>this.visitAssemblyExpression(t)))};return this._addMeta(e,t)}visitAssemblyLiteral(t){let e;if(t.stringLiteral()){e=this._toText(t);const r=e.substring(1,e.length-1),i={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(i,t)}if(t.BooleanLiteral()){const e={type:"BooleanLiteral",value:"true"===this._toText(t.BooleanLiteral())};return this._addMeta(e,t)}if(t.DecimalNumber()){const e={type:"DecimalNumber",value:this._toText(t)};return this._addMeta(e,t)}if(t.HexNumber()){const e={type:"HexNumber",value:this._toText(t)};return this._addMeta(e,t)}if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());throw new Error("Should never reach here")}visitAssemblySwitch(t){const e={type:"AssemblySwitch",expression:this.visitAssemblyExpression(t.assemblyExpression()),cases:t.assemblyCase().map((t=>this.visitAssemblyCase(t)))};return this._addMeta(e,t)}visitAssemblyCase(t){let e=null;"case"===this._toText(t.getChild(0))&&(e=this.visitAssemblyLiteral(t.assemblyLiteral()));const r={type:"AssemblyCase",block:this.visitAssemblyBlock(t.assemblyBlock()),value:e,default:null===e};return this._addMeta(r,t)}visitAssemblyLocalDefinition(t){const e=t.assemblyIdentifierOrList();let r;r=e.identifier()?[this.visitIdentifier(e.identifier())]:e.assemblyMember()?[this.visitAssemblyMember(e.assemblyMember())]:e.assemblyIdentifierList().identifier().map((t=>this.visitIdentifier(t)));let i=null;void 0!==t.assemblyExpression()&&(i=this.visitAssemblyExpression(t.assemblyExpression()));const n={type:"AssemblyLocalDefinition",names:r,expression:i};return this._addMeta(n,t)}visitAssemblyFunctionDefinition(t){const e=t.assemblyIdentifierList(),r=void 0!==e?e.identifier().map((t=>this.visitIdentifier(t))):[],i=t.assemblyFunctionReturns(),n=i?i.assemblyIdentifierList().identifier().map((t=>this.visitIdentifier(t))):[],s={type:"AssemblyFunctionDefinition",name:this._toText(t.identifier()),arguments:r,returnArguments:n,body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(s,t)}visitAssemblyAssignment(t){const e=t.assemblyIdentifierOrList();let r;r=e.identifier()?[this.visitIdentifier(e.identifier())]:e.assemblyMember()?[this.visitAssemblyMember(e.assemblyMember())]:e.assemblyIdentifierList().identifier().map((t=>this.visitIdentifier(t)));const i={type:"AssemblyAssignment",names:r,expression:this.visitAssemblyExpression(t.assemblyExpression())};return this._addMeta(i,t)}visitAssemblyMember(t){const[e,r]=t.identifier(),i={type:"AssemblyMemberAccess",expression:this.visitIdentifier(e),memberName:this.visitIdentifier(r)};return this._addMeta(i,t)}visitLabelDefinition(t){const e={type:"LabelDefinition",name:this._toText(t.identifier())};return this._addMeta(e,t)}visitAssemblyStackAssignment(t){const e={type:"AssemblyStackAssignment",name:this._toText(t.identifier()),expression:this.visitAssemblyExpression(t.assemblyExpression())};return this._addMeta(e,t)}visitAssemblyFor(t){const e={type:"AssemblyFor",pre:this.visit(t.getChild(1)),condition:this.visit(t.getChild(2)),post:this.visit(t.getChild(3)),body:this.visit(t.getChild(4))};return this._addMeta(e,t)}visitAssemblyIf(t){const e={type:"AssemblyIf",condition:this.visitAssemblyExpression(t.assemblyExpression()),body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(e,t)}visitContinueStatement(t){return this._addMeta({type:"ContinueStatement"},t)}visitBreakStatement(t){return this._addMeta({type:"BreakStatement"},t)}_toText(t){const e=t.text;if(void 0===e)throw new Error("Assertion error: text should never be undefiend");return e}_stateMutabilityToText(t){if(void 0!==t.PureKeyword())return"pure";if(void 0!==t.ConstantKeyword())return"constant";if(void 0!==t.PayableKeyword())return"payable";if(void 0!==t.ViewKeyword())return"view";throw new Error("Assertion error: non-exhaustive stateMutability check")}_loc(t){return{start:{line:t.start.line,column:t.start.charPositionInLine},end:{line:t.stop?t.stop.line:t.start.line,column:t.stop?t.stop.charPositionInLine:t.start.charPositionInLine}}}_range(t){return[t.start.startIndex,t.stop?.stopIndex??t.start.startIndex]}_addMeta(t,e){const r={type:t.type};return!0===this.options.loc&&(t.loc=this._loc(e)),!0===this.options.range&&(t.range=this._range(e)),{...r,...t}}_mapCommasToNulls(t){if(0===t.length)return[];const e=[];let r=!0;for(const i of t)if(r)","===this._toText(i)?e.push(null):(e.push(i),r=!1);else{if(","!==this._toText(i))throw new Error("expected comma");r=!0}return r&&e.push(null),e}};p();var _o=h(zi()),yo=class extends _o.default.error.ErrorListener{constructor(){super(),this._errors=[]}syntaxError(t,e,r,i,n){this._errors.push({message:n,line:r,column:i})}getErrors(){return this._errors}hasErrors(){return this._errors.length>0}};p();var go=h(qi()).default,mo=["var","bool","address","string","Int","Uint","Byte","Fixed","UFixed"];function xo(t,e){const r=go.split("\n").map((t=>function(t,e){const r=t.lastIndexOf("=");return[t.substring(0,r),t.substring(r+1,t.length)]}(t))).reduce(((t,[e,r])=>(t[parseInt(r,10)]=function(t){return t.endsWith("'")&&(t=t.substring(0,t.length-1)),t.startsWith("'")&&(t=t.substring(1,t.length)),t}(e),t)),{});return t.map((t=>{var i;const n={type:"Identifier"===(i=r[t.type])||"from"===i?"Identifier":"TrueLiteral"===i||"FalseLiteral"===i?"Boolean":"VersionLiteral"===i?"Version":"StringLiteral"===i?"String":mo.includes(i)?"Type":"NumberUnit"===i?"Subdenomination":"DecimalNumber"===i?"Numeric":"HexLiteral"===i?"Hex":"ReservedKeyword"===i?"Reserved":/^\W+$/.test(i)?"Punctuator":"Keyword",value:t.text};return!0===e.range&&(n.range=[t.startIndex,t.stopIndex+1]),!0===e.loc&&(n.loc={start:{line:t.line,column:t.charPositionInLine},end:{line:t.line,column:t.charPositionInLine+(t.text?.length??0)}}),n}))}var To=class extends Error{constructor(t){super();const{message:e,line:r,column:i}=t.errors[0];this.message=`${e} (${r}:${i})`,this.errors=t.errors,void 0!==Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack}};function vo(t,e={}){const r=new $i.ANTLRInputStream(t);return xo(new tn(r).getAllTokens(),e)}function So(t,e={}){const r=new $i.ANTLRInputStream(t),i=new tn(r),n=new $i.CommonTokenStream(i),s=new fn(n),o=new yo;i.removeErrorListeners(),i.addErrorListener(o),s.removeErrorListeners(),s.addErrorListener(o),s.buildParseTree=!0;const a=s.sourceUnit(),l=new fo(e);l.visit(a);const c=l.result;if(null===c)throw new Error("ast should never be null");let u=[];if(!0===e.tokens&&(u=xo(n.getTokens(),e)),!0!==e.tolerant&&o.hasErrors())throw new To({errors:o.getErrors()});return!0===e.tolerant&&o.hasErrors()&&(c.errors=o.getErrors()),!0===e.tokens&&(c.tokens=u),c}function bo(t,e,r){if(Array.isArray(t)&&t.forEach((t=>bo(t,e,r))),!function(t){if("object"!=typeof t||null===t)return!1;const e=t;return!(!Object.prototype.hasOwnProperty.call(e,"type")||"string"!=typeof e.type)&&lo.includes(e.type)}(t))return;let i=!0;if(void 0!==e[t.type]&&(i=e[t.type](t,r)),!1===i)return;for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&bo(t[r],e,t);const n=t.type+":exit";void 0!==e[n]&&e[n](t,r)}return Gi})();t.exports=e},257:(t,e,r)=>{const i=Symbol("SemVer ANY");class n{static get ANY(){return i}constructor(t,e){if(e=s(e),t instanceof n){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),c("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===i?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(t){const e=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=t.match(e);if(!r)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new u(r[2],this.options.loose):this.semver=i}toString(){return this.value}test(t){if(c("Comparator.test",t,this.options.loose),this.semver===i||t===i)return!0;if("string"==typeof t)try{t=new u(t,this.options)}catch(t){return!1}return l(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new h(t.value,e).test(this.value):""===t.operator?""===t.value||new h(this.value,e).test(t.semver):!((e=s(e)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!t.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!t.operator.startsWith("<"))&&(this.semver.version!==t.semver.version||!this.operator.includes("=")||!t.operator.includes("="))&&!(l(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<"))&&!(l(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}}t.exports=n;const s=r(893),{safeRe:o,t:a}=r(765),l=r(539),c=r(225),u=r(376),h=r(902)},902:(t,e,r)=>{class i{constructor(t,e){if(e=s(e),t instanceof i)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new i(t.raw,e);if(t instanceof o)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!y(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&g(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(t){const e=((this.options.includePrerelease&&f)|(this.options.loose&&_))+":"+t,r=n.get(e);if(r)return r;const i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];t=t.replace(s,O(this.options.includePrerelease)),a("hyphen replace",t),t=t.replace(c[u.COMPARATORTRIM],h),a("comparator trim",t),t=t.replace(c[u.TILDETRIM],p),a("tilde trim",t),t=t.replace(c[u.CARETTRIM],d),a("caret trim",t);let l=t.split(" ").map((t=>x(t,this.options))).join(" ").split(/\s+/).map((t=>C(t,this.options)));i&&(l=l.filter((t=>(a("loose invalid filter",t,this.options),!!t.match(c[u.COMPARATORLOOSE]))))),a("range list",l);const g=new Map,m=l.map((t=>new o(t,this.options)));for(const t of m){if(y(t))return[t];g.set(t.value,t)}g.size>1&&g.has("")&&g.delete("");const T=[...g.values()];return n.set(e,T),T}intersects(t,e){if(!(t instanceof i))throw new TypeError("a Range is required");return this.set.some((r=>m(r,e)&&t.set.some((t=>m(t,e)&&r.every((r=>t.every((t=>r.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new l(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if(L(this.set[e],t,this.options))return!0;return!1}}t.exports=i;const n=new(r(62))({max:1e3}),s=r(893),o=r(257),a=r(225),l=r(376),{safeRe:c,t:u,comparatorTrimReplace:h,tildeTrimReplace:p,caretTrimReplace:d}=r(765),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:_}=r(295),y=t=>"<0.0.0-0"===t.value,g=t=>""===t.value,m=(t,e)=>{let r=!0;const i=t.slice();let n=i.pop();for(;r&&i.length;)r=i.every((t=>n.intersects(t,e))),n=i.pop();return r},x=(t,e)=>(a("comp",t,e),t=b(t,e),a("caret",t),t=v(t,e),a("tildes",t),t=N(t,e),a("xrange",t),t=R(t,e),a("stars",t),t),T=t=>!t||"x"===t.toLowerCase()||"*"===t,v=(t,e)=>t.trim().split(/\s+/).map((t=>S(t,e))).join(" "),S=(t,e)=>{const r=e.loose?c[u.TILDELOOSE]:c[u.TILDE];return t.replace(r,((e,r,i,n,s)=>{let o;return a("tilde",t,e,r,i,n,s),T(r)?o="":T(i)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:T(n)?o=`>=${r}.${i}.0 <${r}.${+i+1}.0-0`:s?(a("replaceTilde pr",s),o=`>=${r}.${i}.${n}-${s} <${r}.${+i+1}.0-0`):o=`>=${r}.${i}.${n} <${r}.${+i+1}.0-0`,a("tilde return",o),o}))},b=(t,e)=>t.trim().split(/\s+/).map((t=>E(t,e))).join(" "),E=(t,e)=>{a("caret",t,e);const r=e.loose?c[u.CARETLOOSE]:c[u.CARET],i=e.includePrerelease?"-0":"";return t.replace(r,((e,r,n,s,o)=>{let l;return a("caret",t,e,r,n,s,o),T(r)?l="":T(n)?l=`>=${r}.0.0${i} <${+r+1}.0.0-0`:T(s)?l="0"===r?`>=${r}.${n}.0${i} <${r}.${+n+1}.0-0`:`>=${r}.${n}.0${i} <${+r+1}.0.0-0`:o?(a("replaceCaret pr",o),l="0"===r?"0"===n?`>=${r}.${n}.${s}-${o} <${r}.${n}.${+s+1}-0`:`>=${r}.${n}.${s}-${o} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${s}-${o} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===n?`>=${r}.${n}.${s}${i} <${r}.${n}.${+s+1}-0`:`>=${r}.${n}.${s}${i} <${r}.${+n+1}.0-0`:`>=${r}.${n}.${s} <${+r+1}.0.0-0`),a("caret return",l),l}))},N=(t,e)=>(a("replaceXRanges",t,e),t.split(/\s+/).map((t=>A(t,e))).join(" ")),A=(t,e)=>{t=t.trim();const r=e.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return t.replace(r,((r,i,n,s,o,l)=>{a("xRange",t,r,i,n,s,o,l);const c=T(n),u=c||T(s),h=u||T(o),p=h;return"="===i&&p&&(i=""),l=e.includePrerelease?"-0":"",c?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(u&&(s=0),o=0,">"===i?(i=">=",u?(n=+n+1,s=0,o=0):(s=+s+1,o=0)):"<="===i&&(i="<",u?n=+n+1:s=+s+1),"<"===i&&(l="-0"),r=`${i+n}.${s}.${o}${l}`):u?r=`>=${n}.0.0${l} <${+n+1}.0.0-0`:h&&(r=`>=${n}.${s}.0${l} <${n}.${+s+1}.0-0`),a("xRange return",r),r}))},R=(t,e)=>(a("replaceStars",t,e),t.trim().replace(c[u.STAR],"")),C=(t,e)=>(a("replaceGTE0",t,e),t.trim().replace(c[e.includePrerelease?u.GTE0PRE:u.GTE0],"")),O=t=>(e,r,i,n,s,o,a,l,c,u,h,p,d)=>`${r=T(i)?"":T(n)?`>=${i}.0.0${t?"-0":""}`:T(s)?`>=${i}.${n}.0${t?"-0":""}`:o?`>=${r}`:`>=${r}${t?"-0":""}`} ${l=T(c)?"":T(u)?`<${+c+1}.0.0-0`:T(h)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${h}-${p}`:t?`<${c}.${u}.${+h+1}-0`:`<=${l}`}`.trim(),L=(t,e,r)=>{for(let r=0;r<t.length;r++)if(!t[r].test(e))return!1;if(e.prerelease.length&&!r.includePrerelease){for(let r=0;r<t.length;r++)if(a(t[r].semver),t[r].semver!==o.ANY&&t[r].semver.prerelease.length>0){const i=t[r].semver;if(i.major===e.major&&i.minor===e.minor&&i.patch===e.patch)return!0}return!1}return!0}},376:(t,e,r)=>{const i=r(225),{MAX_LENGTH:n,MAX_SAFE_INTEGER:s}=r(295),{safeRe:o,t:a}=r(765),l=r(893),{compareIdentifiers:c}=r(742);class u{constructor(t,e){if(e=l(e),t instanceof u){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>n)throw new TypeError(`version is longer than ${n} characters`);i("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const r=t.trim().match(e.loose?o[a.LOOSE]:o[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<s)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(i("SemVer.compare",this.version,this.options,t),!(t instanceof u)){if("string"==typeof t&&t===this.version)return 0;t=new u(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof u||(t=new u(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}comparePre(t){if(t instanceof u||(t=new u(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const r=this.prerelease[e],n=t.prerelease[e];if(i("prerelease compare",e,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return c(r,n)}while(++e)}compareBuild(t){t instanceof u||(t=new u(t,this.options));let e=0;do{const r=this.build[e],n=t.build[e];if(i("prerelease compare",e,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;if(r!==n)return c(r,n)}while(++e)}inc(t,e,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,r),this.inc("pre",e,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,r),this.inc("pre",e,r);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(r)?1:0;if(!e&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[t];else{let i=this.prerelease.length;for(;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let i=[e,t];!1===r&&(i=[e]),0===c(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=u},539:(t,e,r)=>{const i=r(718),n=r(194),s=r(312),o=r(903),a=r(544),l=r(56);t.exports=(t,e,r,c)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t===r;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof r&&(r=r.version),t!==r;case"":case"=":case"==":return i(t,r,c);case"!=":return n(t,r,c);case">":return s(t,r,c);case">=":return o(t,r,c);case"<":return a(t,r,c);case"<=":return l(t,r,c);default:throw new TypeError(`Invalid operator: ${e}`)}}},38:(t,e,r)=>{const i=r(376),n=r(959),{safeRe:s,t:o}=r(765);t.exports=(t,e)=>{if(t instanceof i)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let r=null;if((e=e||{}).rtl){let e;for(;(e=s[o.COERCERTL].exec(t))&&(!r||r.index+r[0].length!==t.length);)r&&e.index+e[0].length===r.index+r[0].length||(r=e),s[o.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;s[o.COERCERTL].lastIndex=-1}else r=t.match(s[o.COERCE]);return null===r?null:n(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)}},269:(t,e,r)=>{const i=r(376);t.exports=(t,e,r)=>new i(t,r).compare(new i(e,r))},718:(t,e,r)=>{const i=r(269);t.exports=(t,e,r)=>0===i(t,e,r)},312:(t,e,r)=>{const i=r(269);t.exports=(t,e,r)=>i(t,e,r)>0},903:(t,e,r)=>{const i=r(269);t.exports=(t,e,r)=>i(t,e,r)>=0},544:(t,e,r)=>{const i=r(269);t.exports=(t,e,r)=>i(t,e,r)<0},56:(t,e,r)=>{const i=r(269);t.exports=(t,e,r)=>i(t,e,r)<=0},194:(t,e,r)=>{const i=r(269);t.exports=(t,e,r)=>0!==i(t,e,r)},959:(t,e,r)=>{const i=r(376);t.exports=(t,e,r=!1)=>{if(t instanceof i)return t;try{return new i(t,e)}catch(t){if(!r)return null;throw t}}},712:(t,e,r)=>{const i=r(902);t.exports=(t,e,r)=>{try{e=new i(e,r)}catch(t){return!1}return e.test(t)}},295:t=>{const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},225:t=>{const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=e},742:t=>{const e=/^[0-9]+$/,r=(t,r)=>{const i=e.test(t),n=e.test(r);return i&&n&&(t=+t,r=+r),t===r?0:i&&!n?-1:n&&!i?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},893:t=>{const e=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:r},765:(t,e,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:s}=r(295),o=r(225),a=(e=t.exports={}).re=[],l=e.safeRe=[],c=e.src=[],u=e.t={};let h=0;const p="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",s],[p,n]],f=(t,e,r)=>{const i=(t=>{for(const[e,r]of d)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),n=h++;o(t,n,e),u[t]=n,c[n]=e,a[n]=new RegExp(e,r?"g":void 0),l[n]=new RegExp(i,r?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),f("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),f("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),f("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),f("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),f("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),f("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),f("BUILDIDENTIFIER",`${p}+`),f("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),f("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),f("FULL",`^${c[u.FULLPLAIN]}$`),f("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),f("LOOSE",`^${c[u.LOOSEPLAIN]}$`),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),f("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),f("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),f("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),f("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),f("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),f("COERCE",`(^|[^\\d])(\\d{1,${i}})(?:\\.(\\d{1,${i}}))?(?:\\.(\\d{1,${i}}))?(?:$|[^\\d])`),f("COERCERTL",c[u.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",f("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),f("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),f("LONECARET","(?:\\^)"),f("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",f("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),f("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),f("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),f("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),f("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),f("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},62:(t,e,r)=>{"use strict";const i=r(411),n=Symbol("max"),s=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),l=Symbol("maxAge"),c=Symbol("dispose"),u=Symbol("noDisposeOnSet"),h=Symbol("lruList"),p=Symbol("cache"),d=Symbol("updateAgeOnGet"),f=()=>1,_=(t,e,r)=>{const i=t[p].get(e);if(i){const e=i.value;if(y(t,e)){if(m(t,i),!t[a])return}else r&&(t[d]&&(i.value.now=Date.now()),t[h].unshiftNode(i));return e.value}},y=(t,e)=>{if(!e||!e.maxAge&&!t[l])return!1;const r=Date.now()-e.now;return e.maxAge?r>e.maxAge:t[l]&&r>t[l]},g=t=>{if(t[s]>t[n])for(let e=t[h].tail;t[s]>t[n]&&null!==e;){const r=e.prev;m(t,e),e=r}},m=(t,e)=>{if(e){const r=e.value;t[c]&&t[c](r.key,r.value),t[s]-=r.length,t[p].delete(r.key),t[h].removeNode(e)}};class x{constructor(t,e,r,i,n){this.key=t,this.value=e,this.length=r,this.now=i,this.maxAge=n||0}}const T=(t,e,r,i)=>{let n=r.value;y(t,n)&&(m(t,r),t[a]||(n=void 0)),n&&e.call(i,n.value,n.key,t)};t.exports=class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[n]=t.max||1/0;const e=t.length||f;if(this[o]="function"!=typeof e?f:e,this[a]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[c]=t.dispose,this[u]=t.noDisposeOnSet||!1,this[d]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[n]=t||1/0,g(this)}get max(){return this[n]}set allowStale(t){this[a]=!!t}get allowStale(){return this[a]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[l]=t,g(this)}get maxAge(){return this[l]}set lengthCalculator(t){"function"!=typeof t&&(t=f),t!==this[o]&&(this[o]=t,this[s]=0,this[h].forEach((t=>{t.length=this[o](t.value,t.key),this[s]+=t.length}))),g(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let r=this[h].tail;null!==r;){const i=r.prev;T(this,t,r,e),r=i}}forEach(t,e){e=e||this;for(let r=this[h].head;null!==r;){const i=r.next;T(this,t,r,e),r=i}}keys(){return this[h].toArray().map((t=>t.key))}values(){return this[h].toArray().map((t=>t.value))}reset(){this[c]&&this[h]&&this[h].length&&this[h].forEach((t=>this[c](t.key,t.value))),this[p]=new Map,this[h]=new i,this[s]=0}dump(){return this[h].map((t=>!y(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[h]}set(t,e,r){if((r=r||this[l])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const i=r?Date.now():0,a=this[o](e,t);if(this[p].has(t)){if(a>this[n])return m(this,this[p].get(t)),!1;const o=this[p].get(t).value;return this[c]&&(this[u]||this[c](t,o.value)),o.now=i,o.maxAge=r,o.value=e,this[s]+=a-o.length,o.length=a,this.get(t),g(this),!0}const d=new x(t,e,a,i,r);return d.length>this[n]?(this[c]&&this[c](t,e),!1):(this[s]+=d.length,this[h].unshift(d),this[p].set(t,this[h].head),g(this),!0)}has(t){if(!this[p].has(t))return!1;const e=this[p].get(t).value;return!y(this,e)}get(t){return _(this,t,!0)}peek(t){return _(this,t,!1)}pop(){const t=this[h].tail;return t?(m(this,t),t.value):null}del(t){m(this,this[p].get(t))}load(t){this.reset();const e=Date.now();for(let r=t.length-1;r>=0;r--){const i=t[r],n=i.e||0;if(0===n)this.set(i.k,i.v);else{const t=n-e;t>0&&this.set(i.k,i.v,t)}}}prune(){this[p].forEach(((t,e)=>_(this,e,!1)))}}},167:t=>{const e="double-quote-string-state",r="single-quote-string-state",i="line-comment-state",n="block-comment-state",s="etc-state";t.exports=function(t){let o=s,a=0;const l=[];let c=null;for(;a+1<t.length;)o!==s||"/"!==t[a]||"/"!==t[a+1]?o!==i||"\n"!==t[a]?o!==s||"/"!==t[a]||"*"!==t[a+1]?o!==n||"*"!==t[a]||"/"!==t[a+1]?o!==s||'"'!==t[a]?o!==e||'"'!==t[a]||"\\"===t[a-1]&&"\\"!==t[a-2]?o!==s||"'"!==t[a]?(o!==r||"'"!==t[a]||"\\"===t[a-1]&&"\\"!==t[a-2]||(o=s),a+=1):(o=r,a+=1):(o=s,a+=1):(o=e,a+=1):(o=s,c.range.push(a+2),l.push(c),c=null,a+=2):(o=n,c={type:"BlockComment",range:[a]},a+=2):(o=s,c.range.push(a),l.push(c),c=null,a+=1):(o=i,c={type:"LineComment",range:[a]},a+=2);return null!==c&&"LineComment"===c.type&&("\n"===t[a]?c.range.push(t.length-1):c.range.push(t.length),l.push(c)),l.map((e=>{const r=e.range[0]+2,i="LineComment"===e.type?e.range[1]:e.range[1]-2,n=t.slice(r,i);let s=n;return"BlockComment"===e.type&&(s=s.split("\n").map((t=>t.replace(/^\s*\*/,""))).join("\n").trimRight()),{...e,raw:n,value:s}}))}},602:t=>{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},411:(t,e,r)=>{"use strict";function i(t){var e=this;if(e instanceof i||(e=new i),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var r=0,n=arguments.length;r<n;r++)e.push(arguments[r]);return e}function n(t,e,r){var i=e===t.head?new a(r,null,e,t):new a(r,e,e.next,t);return null===i.next&&(t.tail=i),null===i.prev&&(t.head=i),t.length++,i}function s(t,e){t.tail=new a(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function o(t,e){t.head=new a(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function a(t,e,r,i){if(!(this instanceof a))return new a(t,e,r,i);this.list=i,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}t.exports=i,i.Node=a,i.create=i,i.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,r=t.prev;return e&&(e.prev=r),r&&(r.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=r),t.list.length--,t.next=null,t.prev=null,t.list=null,e},i.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},i.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},i.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)s(this,arguments[t]);return this.length},i.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)o(this,arguments[t]);return this.length},i.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},i.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},i.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,i=0;null!==r;i++)t.call(e,r.value,i,this),r=r.next},i.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,i=this.length-1;null!==r;i--)t.call(e,r.value,i,this),r=r.prev},i.prototype.get=function(t){for(var e=0,r=this.head;null!==r&&e<t;e++)r=r.next;if(e===t&&null!==r)return r.value},i.prototype.getReverse=function(t){for(var e=0,r=this.tail;null!==r&&e<t;e++)r=r.prev;if(e===t&&null!==r)return r.value},i.prototype.map=function(t,e){e=e||this;for(var r=new i,n=this.head;null!==n;)r.push(t.call(e,n.value,this)),n=n.next;return r},i.prototype.mapReverse=function(t,e){e=e||this;for(var r=new i,n=this.tail;null!==n;)r.push(t.call(e,n.value,this)),n=n.prev;return r},i.prototype.reduce=function(t,e){var r,i=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");i=this.head.next,r=this.head.value}for(var n=0;null!==i;n++)r=t(r,i.value,n),i=i.next;return r},i.prototype.reduceReverse=function(t,e){var r,i=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");i=this.tail.prev,r=this.tail.value}for(var n=this.length-1;null!==i;n--)r=t(r,i.value,n),i=i.prev;return r},i.prototype.toArray=function(){for(var t=new Array(this.length),e=0,r=this.head;null!==r;e++)t[e]=r.value,r=r.next;return t},i.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,r=this.tail;null!==r;e++)t[e]=r.value,r=r.prev;return t},i.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new i;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=0,s=this.head;null!==s&&n<t;n++)s=s.next;for(;null!==s&&n<e;n++,s=s.next)r.push(s.value);return r},i.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new i;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var n=this.length,s=this.tail;null!==s&&n>e;n--)s=s.prev;for(;null!==s&&n>t;n--,s=s.prev)r.push(s.value);return r},i.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var i=0,s=this.head;null!==s&&i<t;i++)s=s.next;var o=[];for(i=0;s&&i<e;i++)o.push(s.value),s=this.removeNode(s);for(null===s&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev),i=0;i<r.length;i++)s=n(this,s,r[i]);return o},i.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=e,this.tail=t,this};try{r(602)(i)}catch(t){}},288:e=>{"use strict";e.exports=t}},r={};function i(t){var n=r[t];if(void 0!==n)return n.exports;var s=r[t]={exports:{}};return e[t](s,s.exports,i),s.exports}i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};return(()=>{"use strict";i.d(n,{default:()=>Tn});var t={};i.r(t),i.d(t,{arithmetic:()=>Lt,assignment:()=>kt,bit:()=>Dt,comparison:()=>At,exponentiation:()=>Ut,logical:()=>zt,shift:()=>Vt});var e={};i.r(e),i.d(e,{ArrayTypeName:()=>G,AssemblyAssignment:()=>Y,AssemblyBlock:()=>lt,AssemblyCall:()=>ct,AssemblyCase:()=>ut,AssemblyFor:()=>pt,AssemblyFunctionDefinition:()=>ft,AssemblyIf:()=>_t,AssemblyLocalDefinition:()=>gt,AssemblyMemberAccess:()=>mt,AssemblyStackAssignment:()=>xt,AssemblySwitch:()=>St,BinaryOperation:()=>qt,Block:()=>Yt,BooleanLiteral:()=>Wt,Break:()=>Xt,BreakStatement:()=>Jt,CatchClause:()=>Zt,Conditional:()=>ie,Continue:()=>ne,ContinueStatement:()=>se,ContractDefinition:()=>he,CustomErrorDefinition:()=>de,DecimalNumber:()=>fe,DoWhileStatement:()=>xe,ElementaryTypeName:()=>ve,EmitStatement:()=>Se,EnumDefinition:()=>Ne,EnumValue:()=>Ae,EventDefinition:()=>Ce,ExpressionStatement:()=>Le,FileLevelConstant:()=>we,ForStatement:()=>Ue,FunctionCall:()=>Ge,FunctionDefinition:()=>lr,FunctionTypeName:()=>_r,HexLiteral:()=>mr,HexNumber:()=>xr,Identifier:()=>Tr,IfStatement:()=>Ar,ImportDirective:()=>Lr,IndexAccess:()=>Mr,IndexRangeAccess:()=>jr,InheritanceSpecifier:()=>Hr,InlineAssemblyStatement:()=>Kr,LabelDefinition:()=>Vr,Mapping:()=>Gr,MemberAccess:()=>Jr,ModifierDefinition:()=>oi,ModifierInvocation:()=>li,NameValueExpression:()=>ci,NameValueList:()=>pi,NewExpression:()=>di,NumberLiteral:()=>fi,PragmaDirective:()=>_i,ReturnStatement:()=>Ti,RevertStatement:()=>vi,SourceUnit:()=>bi,StateVariableDeclaration:()=>Ci,StringLiteral:()=>wi,StructDefinition:()=>Pi,ThrowStatement:()=>ki,TryStatement:()=>Mi,TupleExpression:()=>Hi,TypeDefinition:()=>Ki,UnaryOperation:()=>Bi,UncheckedStatement:()=>Vi,UserDefinedTypeName:()=>qi,UsingForDeclaration:()=>Yi,VariableDeclaration:()=>on,VariableDeclarationStatement:()=>hn,WhileStatement:()=>yn});var r=i(288),s=i(712);const o=t=>s(r.version,t);function a(t,e){const i={quote:'"',regex:/"/g},n={quote:"'",regex:/'/g},s=e.singleQuote?n:i,o=s===n?i:n;let a=!1;(t.includes(s.quote)||t.includes(o.quote))&&(a=(t.match(s.regex)||[]).length>(t.match(o.regex)||[]).length);const l=a?o.quote:s.quote;return r.util.makeString(t,l)}const l=o("^2.3.0");function c(t,e,i){return l?t.charAt(r.util.getNextNonSpaceNonCommentCharacterIndex(t,e,i)):r.util.getNextNonSpaceNonCommentCharacter(t,i(e))}const{addLeadingComment:u,addTrailingComment:h,addDanglingComment:p,hasNewline:d,hasNewlineInRange:f}=r.util;function _(t,e){if(!t.body)return void p(t,e);const r=t.body.filter((t=>"EmptyStatement"!==t.type));0===r.length?p(t,e):u(r[0],e)}function y(t,e){"BlockStatement"===t.type?_(t,e):u(t,e)}function g(t,e,r,i,n,s){return!(!r||"IfStatement"!==r.type||!i)&&(")"===c(t,n,s.locEnd)?(h(e,n),!0):e===r.trueBody&&i===r.falseBody?("ExpressionStatement"===e.type?h(e,n):p(r,n),!0):"ExpressionStatement"===i.type?(_(i,n),!0):"IfStatement"===i.type?(y(i.trueBody,n),!0):r.trueBody===i&&(u(i,n),!0))}function m(t,e,r,i,n,s){return!(!r||"WhileStatement"!==r.type||!i)&&(")"===c(t,n,s.locEnd)?(h(e,n),!0):"BlockStatement"===i.type&&(_(i,n),!0))}function x(t,e,r,i){return!(!t||"TryStatement"!==t.type&&"CatchClause"!==t.type||!r||("CatchClause"===t.type&&e?(h(e,i),0):"BlockStatement"===r.type?(_(r,i),0):"TryStatement"===r.type?(y(r.finalizer,i),0):"CatchClause"!==r.type||(y(r.body,i),0)))}function T(t,e,r,i){return!(!(t&&("ClassDeclaration"===t.type||"ClassExpression"===t.type)&&t.decorators&&t.decorators.length>0)||r&&"Decorator"===r.type||(t.decorators&&0!==t.decorators.length?h(t.decorators[t.decorators.length-1],i):u(t,i),0))}function v(t,e,r,i,n){return(e&&r&&("Property"===e.type||"MethodDefinition"===e.type)&&"Identifier"===r.type&&e.key===r&&":"!==c(t,r,n.locEnd)||!(!r||!e||"Decorator"!==r.type||"ClassMethod"!==e.type&&"ClassProperty"!==e.type&&"TSAbstractClassProperty"!==e.type&&"TSAbstractMethodDefinition"!==e.type&&"MethodDefinition"!==e.type))&&(h(r,i),!0)}function S(t,e,r,i,n,s){return(e&&"FunctionTypeParam"===e.type&&r&&"FunctionTypeAnnotation"===r.type&&i&&"FunctionTypeParam"!==i.type||!(!e||"Identifier"!==e.type&&"AssignmentPattern"!==e.type||!r||"ArrowFunctionExpression"!==r.type&&"FunctionExpression"!==r.type&&"FunctionDeclaration"!==r.type&&"ObjectMethod"!==r.type&&"ClassMethod"!==r.type||")"!==c(t,n,s.locEnd)))&&(h(e,n),!0)}function b(t,e){return!(!t||"ImportSpecifier"!==t.type||(u(t,e),0))}function E(t,e,r,i){return e&&e.body&&0===e.body.length?(i?p(e,r):u(e,r),!0):!(!t||"Program"!==t.type||0!==t.body.length||!t.directives||0!==t.directives.length||(i?p(t,r):u(t,r),0))}const{addLeadingComment:N,addTrailingComment:A,addDanglingComment:R}=r.util,{addLeadingComment:C,addTrailingComment:O,addDanglingComment:L}=r.util,w=[function({text:t,precedingNode:e,enclosingNode:r,followingNode:i,comment:n,options:s}){if(!r||"ContractDefinition"!==r.type)return!1;const o=c(t,n,s.locEnd);return i&&"InheritanceSpecifier"===i.type||"{"===o?e&&"InheritanceSpecifier"===e.type?(A(e,n),!0):(N(r,n),!0):0===r.subNodes.length&&(R(r,n),!0)},function({text:t,precedingNode:e,enclosingNode:r,comment:i,options:n}){if(!r||"ModifierInvocation"!==r.type)return!1;const s=c(t,i,n.locEnd);return"("===s?(C(r,i),!0):")"===s&&(e?(O(e,i),!0):"LineComment"===i.type?(C(r,i),!0):(L(r,i),!0))}],{hardline:I,join:P}=r.doc.builders,k=new Set(["loc","range","comments"]);function D(){}D.ignoredProperties=k;const F=D;function M(t,e){return e.range?e.range[t]:e.expression&&e.expression.range?e.expression.range[t]:null}const j={locEnd:t=>M(1,t),locStart:t=>M(0,t)},U="Global",H="Common",K={printWidth:{since:"0.0.0",category:U,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},tabWidth:{type:"int",category:U,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:U,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},bracketSpacing:{since:"0.0.0",category:H,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:H,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},compiler:{category:"Solidity",type:"string",description:"The Solidity compiler version to help us avoid critical errors in format for the wrong version."}};var B=i(167),z=i(298),V=i(38);const q=(t,e)=>"BinaryOperation"===t.type&&e.includes(t.operator)?{type:"TupleExpression",components:[t],isArray:!1}:t,G={print:({node:t,path:e,print:r})=>[e.call(r,"baseTypeName"),"[",t.length?e.call(r,"length"):"","]"]},{join:$}=r.doc.builders,Y={print:({path:t,print:e})=>[$(", ",t.map(e,"names"))," := ",t.call(e,"expression")]},{group:W,indent:X,join:J,line:Q,softline:Z,hardline:tt}=r.doc.builders,et=(t,e,r,i=(()=>!0))=>{if(!t.comments)return"";const n=J(Q,e.map((t=>{const e=t.getValue();return e.trailing||e.leading||e.printed?null:i(e)?(e.printed=!0,r.printer.printComment(t)):null}),"comments").filter(Boolean));return l?n.parts:n},rt=(t,e)=>Boolean("FunctionDefinition"!==t.type||t.body||t.comments?.some((t=>e&&t.leading))),it=(t,e)=>rt(t,!1)||rt(e,!0)?tt:"";function nt(t,e,i,n){const s=[];return t.each(((t,o)=>{const a=t.getValue(),c=a.type;var u,h;0!==s.length&&"LabelDefinition"!==c&&s.push(tt),function(t,e,r){return l?0===r:t.isFirst}(t,0,o)||s[s.length-2]===tt||("FunctionDefinition"===c?s.push(it(function(t,e,r){return l?t.getParentNode()[e][r-1]:t.previous}(t,e,o),a)):"ContractDefinition"===c&&s.push(tt)),s.push(n(t)),function(t,e,r){return l?r===t.getParentNode()[e].length-1:t.isLast}(t,e,o)||(u=i.originalText,h=i.locEnd(a)+1,(l?r.util.isNextLineEmptyAfterIndex(u,h):r.util.isNextLineEmpty(u,h))?s.push(tt):"FunctionDefinition"===c?s.push(it(a,function(t,e,r){return l?t.getParentNode()[e][r+1]:t.next}(t,e,o))):"ContractDefinition"===c&&s.push(tt))}),e),s}const st=(t,{firstSeparator:e=Z,lastSeparator:r=e,grouped:i=!0}={})=>{const n=[X([e,t]),r];return i?W(n):n},ot=(t,{firstSeparator:e,separator:r=[",",Q],lastSeparator:i,grouped:n}={})=>st(J(r,t),{firstSeparator:e,lastSeparator:i,grouped:n}),{hardline:at}=r.doc.builders,lt={print:({node:t,options:e,path:r,print:i})=>["{",st([nt(r,"operations",e,i),et(t,r,e)],{firstSeparator:at,grouped:!1}),"}"]},ct={print:({node:t,path:e,print:r,options:i})=>0===t.arguments.length&&")"!==i.originalText.charAt(i.locEnd(t))?t.functionName:[t.functionName,"(",ot(e.map(r,"arguments")),")"]},ut={print:({node:t,path:e,print:r})=>[t.default?"default":["case ",e.call(r,"value")]," ",e.call(r,"block")]},{join:ht}=r.doc.builders,pt={print:({path:t,print:e})=>ht(" ",["for",t.call(e,"pre"),t.call(e,"condition"),t.call(e,"post"),t.call(e,"body")])},{line:dt}=r.doc.builders,ft={print:({node:t,path:e,print:r})=>["function ",t.name,"(",ot(e.map(r,"arguments")),")",0===t.returnArguments.length?" ":st(["->",ot(e.map(r,"returnArguments"),{firstSeparator:dt,lastSeparator:""})],{firstSeparator:dt}),e.call(r,"body")]},_t={print:({path:t,print:e})=>["if ",t.call(e,"condition")," ",t.call(e,"body")]},{line:yt}=r.doc.builders,gt={print:({node:t,path:e,print:r})=>{const i=["let",ot(e.map(r,"names"),{firstSeparator:yt})];return null!==t.expression&&(i.push(":= "),i.push(e.call(r,"expression"))),i}},mt={print:({path:t,print:e})=>[t.call(e,"expression"),".",t.call(e,"memberName")]},xt={print:({node:t,path:e,print:r})=>[e.call(r,"expression")," =: ",t.name]},{hardline:Tt,join:vt}=r.doc.builders,St={print:({path:t,print:e})=>["switch ",t.call(e,"expression"),Tt,vt(Tt,t.map(e,"cases"))]},{group:bt,indent:Et,line:Nt}=r.doc.builders,At={match:t=>["<",">","<=",">=","==","!="].includes(t),print:(t,e,r)=>{const i=(t=>e=>{let r=t.getNode();for(let i=0;;i+=1){const n=t.getParentNode(i);if("ReturnStatement"===n.type)return e;if("IfStatement"===n.type)return e;if("ForStatement"===n.type)return e;if("WhileStatement"===n.type)return e;if("BinaryOperation"!==n.type)return Et(e);if(r===n.right)return e;r=n}})(e),n=[t.operator,Nt,e.call(r,"right")],s="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return bt([e.call(r,"left")," ",i(s?bt(n):n)])}},{group:Rt,line:Ct,indent:Ot}=r.doc.builders,Lt={match:t=>["+","-","*","/","%"].includes(t),print:(t,e,r)=>{const i=(t=>e=>{const r=t.getParentNode();return"BinaryOperation"!==r.type||At.match(r.operator)?Rt(e):e})(e),n=(t=>e=>{let r=t.getNode();for(let i=0;;i+=1){const n=t.getParentNode(i);if("ReturnStatement"===n.type)return e;if("BinaryOperation"!==n.type||At.match(n.operator))return Ot(e);if(r===n.right)return e;r=n}})(e),s=[t.operator,Ct,e.call(r,"right")],o="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return i([e.call(r,"left")," ",n(o?Rt(s):s)])}},{group:wt,line:It,indent:Pt}=r.doc.builders,kt={match:t=>["=","|=","^=","&=","<<=",">>=","+=","-=","*=","/=","%="].includes(t),print:(t,e,r)=>[e.call(r,"left")," ",t.operator,"BinaryOperation"===t.right.type?wt(Pt([It,e.call(r,"right")])):[" ",e.call(r,"right")]]},Dt={match:t=>["&","|","^"].includes(t),print:Lt.print},{group:Ft,indent:Mt,line:jt}=r.doc.builders,Ut={match:t=>"**"===t,print:(t,e,r)=>{const i=[" ",t.operator,jt,e.call(r,"right")],n="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return Ft([e.call(r,"left"),Mt(n?Ft(i):i)])}},{group:Ht,line:Kt,indent:Bt}=r.doc.builders,zt={match:t=>["&&","||"].includes(t),print:(t,e,r)=>{const i=(t=>e=>"BinaryOperation"===t.getParentNode().type?e:Ht(e))(e),n=(t=>e=>{let r=t.getNode();for(let i=0;;i+=1){const n=t.getParentNode(i);if("ReturnStatement"===n.type)return e;if("IfStatement"===n.type)return e;if("WhileStatement"===n.type)return e;if("BinaryOperation"!==n.type)return Bt(e);if(r===n.right)return e;r=n}})(e),s=[t.operator,Kt,e.call(r,"right")],o="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return i([e.call(r,"left")," ",n(o?Ht(s):s)])}},Vt={match:t=>["<<",">>"].includes(t),print:Lt.print},qt={print:({node:e,path:r,print:i,options:n})=>{const s=Object.values(t).find((t=>t.match(e.operator)));if(void 0===s)throw new Error(`Assertion error: no printer found for operator ${JSON.stringify(e.operator)}`);return s.print(e,r,i,n)}},{hardline:Gt,indent:$t}=r.doc.builders,Yt={print:({node:t,options:e,path:r,print:i})=>0!==t.statements.length||t.comments?["{",$t([Gt,nt(r,"statements",e,i),et(t,r,e)]),Gt,"}"]:"{}"},Wt={print:({node:t})=>t.value?"true":"false"},Xt={print:()=>"break"},Jt={print:()=>"break;"},Qt=(t,e,r)=>t.parameters?[t.kind||"","(",ot(e.map(r,"parameters")),") "]:"",Zt={print:({node:t,path:e,print:r})=>["catch ",Qt(t,e,r),e.call(r,"body")]},{group:te,indent:ee,line:re}=r.doc.builders,ie={print:({path:t,print:e})=>te([t.call(e,"condition"),ee([re,"? ",t.call(e,"trueExpression"),re,": ",t.call(e,"falseExpression")])])},ne={print:()=>"continue"},se={print:()=>"continue;"},{group:oe,line:ae,hardline:le}=r.doc.builders,ce=(t,e,r)=>t.baseContracts.length>0?[" is",ot(e.map(r,"baseContracts"),{firstSeparator:ae})]:ae,ue=(t,e,r,i)=>{const n=et(t,e,r);return t.subNodes.length>0||n&&n.length?st([nt(e,"subNodes",r,i),n],{firstSeparator:le,grouped:!1}):""},he={print:({node:t,options:e,path:r,print:i})=>[oe(["abstract"===t.kind?"abstract contract":t.kind," ",t.name,ce(t,r,i),"{"]),ue(t,r,e,i),"}"]},pe=(t,e,r)=>t.parameters&&t.parameters.length>0?ot(e.map(r,"parameters")):"",de={print:({node:t,path:e,print:r})=>["error ",t.name,"(",pe(t,e,r),");"]},fe={print:({node:t})=>t.value},{group:_e,indent:ye,line:ge}=r.doc.builders,me=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")," "]:_e([ye([ge,e.call(r,"body")]),ge]),xe={print:({node:t,path:e,print:r})=>["do",me(t,e,r),"while (",st(e.call(r,"condition")),");"]},Te=t=>t.stateMutability&&t.stateMutability.length>0?[" ",t.stateMutability]:"",ve={print:({node:t})=>[t.name,Te(t)]},Se={print:({path:t,print:e})=>["emit ",t.call(e,"eventCall"),";"]},{group:be,hardline:Ee}=r.doc.builders,Ne={print:({node:t,path:e,print:r})=>be(["enum ",t.name," {",ot(e.map(r,"members"),{firstSeparator:Ee}),"}"])},Ae={print:({node:t})=>t.name},Re=(t,e,r)=>t.parameters&&t.parameters.length>0?ot(e.map(r,"parameters")):"",Ce={print:({node:t,path:e,print:r})=>["event ",t.name,"(",Re(t,e,r),")",t.isAnonymous?" anonymous":"",";"]},{hardline:Oe}=r.doc.builders,Le={print:({node:t,options:e,path:r,print:i})=>{const n=[];if("IfStatement"===r.getParentNode().type&&t.comments&&t.comments.length){const i=et(t,r,e);i&&i.length&&(n.push(i),n.push(Oe))}return n.push(r.call(i,"expression")),n.push(t.omitSemicolon?"":";"),n}},we={print:({node:t,path:e,print:r})=>[e.call(r,"typeName")," constant ",t.name," = ",e.call(r,"initialValue"),";"]},{group:Ie,indent:Pe,line:ke}=r.doc.builders,De=(t,e,r)=>t.initExpression?e.call(r,"initExpression"):"",Fe=(t,e,r)=>t.conditionExpression?e.call(r,"conditionExpression"):"",Me=(t,e,r)=>t.loopExpression.expression?e.call(r,"loopExpression"):"",je=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:Ie(Pe([ke,e.call(r,"body")])),Ue={print:({node:t,path:e,print:r})=>["for (",ot([De(t,e,r),Fe(t,e,r),Me(t,e,r)],{separator:t.initExpression||t.conditionExpression||t.loopExpression.expression?[";",ke]:";"}),")",je(t,e,r)]},{group:He,indentIfBreak:Ke,label:Be,line:ze,softline:Ve}=r.doc.builders;let qe=0;const Ge={print:({node:t,path:e,print:r,options:i})=>{let n=e.call(r,"expression"),s=")";return t.arguments&&t.arguments.length>0&&(s=t.identifiers&&t.identifiers.length>0?((t,e,r)=>{const i=t.map(e,"identifiers");return["{",ot(t.map(e,"arguments").map(((t,e)=>[i[e],": ",t])),{firstSeparator:r.bracketSpacing?ze:Ve,lastSeparator:[r.bracketSpacing?ze:Ve,"})"]})]})(e,r,i):((t,e)=>ot(t.map(e,"arguments"),{lastSeparator:[Ve,")"]}))(e,r)),"MemberAccessChain"===n.label?(n=He(n.contents,{id:`FunctionCall.expression-${qe}`}),qe+=1,s=Ke(s,{groupId:n.id}),Be("MemberAccessChain",[n,"(",s])):[n,"(",s]}},{dedent:$e,group:Ye,indent:We,join:Xe,line:Je}=r.doc.builders,Qe=(t,e)=>t.isConstructor&&!t.name?"constructor":t.name?`function ${t.name}`:t.isReceiveEther?"receive":{fallback:"fallback",function:"function"}[e.originalText.slice(e.locStart(t),e.locStart(t)+8)],Ze=(t,e,r,i,n)=>{if(e[t]&&e[t].length>0)return ot(r.map(i,t),{grouped:!1});if(e.comments&&e.comments.length>0){const t=et(e,r,n,(t=>")"===c(n.originalText,t,n.locEnd)));return t.length>0?st(t):""}return""},tr=t=>t.visibility&&"default"!==t.visibility?[Je,t.visibility]:"",er=t=>t.isVirtual?[Je,"virtual"]:"",rr=(t,e,r)=>t.override?0===t.override.length?[Je,"override"]:[Je,"override(",ot(e.map(r,"override")),")"]:"",ir=t=>t.stateMutability?[Je,t.stateMutability]:"",nr=(t,e,r)=>t.modifiers.length>0?[Je,Xe(Je,e.map(r,"modifiers"))]:"",sr=(t,e,r,i)=>t.returnParameters?[Je,"returns (",Ye(Ze("returnParameters",t,e,r,i)),")"]:"",or=t=>t.body?$e(Je):";",ar=(t,e,r)=>t.body?e.call(r,"body"):"",lr={print:({node:t,path:e,print:r,options:i})=>[Ye([Qe(t,i),"(",Ze("parameters",t,e,r,i),")",We(Ye([et(t,e,i),tr(t),ir(t),er(t),rr(t,e,r),nr(t,e,r),sr(t,e,r,i),or(t)]))]),ar(t,e,r)]},{group:cr,indent:ur,line:hr}=r.doc.builders,pr=(t,e,r)=>t.returnTypes.length>0?[hr,"returns (",ot(e.map(r,"returnTypes")),")"]:"",dr=t=>t.visibility&&"default"!==t.visibility?[hr,t.visibility]:"",fr=t=>t.stateMutability&&"default"!==t.stateMutability?[hr,t.stateMutability]:"",_r={print:({node:t,path:e,print:r})=>["function(",ot(e.map(r,"parameterTypes")),")",ur(cr([dr(t),fr(t),pr(t,e,r)]))]},{join:yr,line:gr}=r.doc.builders,mr={print:({node:t,options:e})=>{const r=t.parts.map((t=>`hex${a(t,e)}`));return yr(gr,r)}},xr={print:({node:t})=>t.value},Tr={print:({node:t})=>t.name},{group:vr,hardline:Sr,indent:br,line:Er}=r.doc.builders,Nr=(t,e,r)=>"Block"===t.falseBody.type||"IfStatement"===t.falseBody.type?[" ",e.call(r,"falseBody")]:vr(br([Er,e.call(r,"falseBody")])),Ar={print:({node:t,options:e,path:r,print:i})=>{const n=(t.comments||[]).filter((t=>!t.leading&&!t.trailing)),s=[];return s.push("if (",st(r.call(i,"condition")),")"),s.push(((t,e,r)=>{if("Block"===t.trueBody.type)return[" ",e.call(r,"trueBody")];const i="IfStatement"===t.trueBody.type;return vr(br([i?Sr:Er,e.call(r,"trueBody")]))})(t,r,i)),n.length&&t.falseBody&&(s.push(Sr),s.push(et(t,r,e))),s.push(((t,e,r,i)=>t.falseBody?["Block"===t.trueBody.type&&0===i.length?" ":Sr,"else",Nr(t,e,r)]:"")(t,r,i,n)),s}},{group:Rr,line:Cr,softline:Or}=r.doc.builders,Lr={print:({node:t,options:e})=>{const r=a(t.path,e);let i;if(t.unitAlias)i=[r," as ",t.unitAlias];else if(t.symbolAliases){const n=V(e.compiler),o=t.symbolAliases.map((([t,e])=>e?`${t} as ${e}`:t));let a,l;n&&s(n,">=0.7.4")?(a=e.bracketSpacing?Cr:Or,l=[",",Cr]):(a=e.bracketSpacing?" ":"",l=", "),i=["{",ot(o,{firstSeparator:a,separator:l}),"} from ",r]}else i=r;return Rr(["import ",i,";"])}},{group:wr,indent:Ir,indentIfBreak:Pr,label:kr,softline:Dr}=r.doc.builders;let Fr=0;const Mr={print:({path:t,print:e})=>{let r=t.call(e,"base"),i=wr([Ir([Dr,t.call(e,"index")]),Dr,"]"]);return"MemberAccessChain"===r.label?(r=wr(r.contents,{id:`IndexAccess.base-${Fr}`}),Fr+=1,i=Pr(i,{groupId:r.id}),kr("MemberAccessChain",[r,"[",i])):[r,"[",i]}},jr={print:({node:t,path:e,print:r})=>[e.call(r,"base"),"[",t.indexStart?e.call(r,"indexStart"):"",":",t.indexEnd?e.call(r,"indexEnd"):"","]"]},Ur=(t,e,r)=>t.arguments&&t.arguments.length?["(",ot(e.map(r,"arguments")),")"]:"",Hr={print:({node:t,path:e,print:r})=>[e.call(r,"baseName"),Ur(t,e,r)]},Kr={print:({node:t,path:e,print:r,options:i})=>["assembly ",t.language?`${a(t.language,i)} `:"",t.flags&&t.flags.length>0?["(",ot(t.flags.map((t=>a(t,i)))),") "]:"",e.call(r,"body")]},{dedent:Br,line:zr}=r.doc.builders,Vr={print:({node:t})=>[Br(zr),t.name,":"]},qr=(t,e,r,i)=>e[`${t}Name`]?[r.call(i,`${t}Type`)," ",r.call(i,`${t}Name`)]:r.call(i,`${t}Type`),Gr={print:({node:t,path:e,print:r})=>["mapping(",qr("key",t,e,r)," => ",qr("value",t,e,r),")"]},{group:$r,indent:Yr,label:Wr,softline:Xr}=r.doc.builders,Jr={print:({node:t,path:e,print:r})=>{let i=e.call(r,"expression");Array.isArray(i)&&(i=i.flat());const n=[i,Wr("separator",[Xr,"."]),t.memberName].flat();return((t,e)=>{let r=0,i=t,n=e.getParentNode(r);for(;n&&["FunctionCall","IndexAccess","NameValueExpression","MemberAccess"].includes(n.type);){switch(n.type){case"MemberAccess":return!1;case"IndexAccess":if(i!==n.base)return!0;break;case"FunctionCall":if(i!==n.expression)return!0}r+=1,i=n,n=e.getParentNode(r)}return!0})(t,e)?(t=>{const e=t.findIndex((t=>"separator"===t.label)),r=t.slice(0,e),i=$r(Yr(t.slice(e)));return Wr("MemberAccessChain",$r([r,i]))})(n):n}},{group:Qr,hardline:Zr,indent:ti,line:ei}=r.doc.builders,ri=(t,e,r)=>t.parameters&&t.parameters.length>0?["(",ot(e.map(r,"parameters"),{separator:[",",t.parameters.length>2?Zr:ei]}),")"]:"()",ii=t=>t.isVirtual?[ei,"virtual"]:"",ni=(t,e,r)=>t.override?0===t.override.length?[ei,"override"]:[ei,"override(",ot(e.map(r,"override")),")"]:"",si=(t,e,r)=>t.body?t.isVirtual?Qr([" ",e.call(r,"body")]):[" ",e.call(r,"body")]:";",oi={print:({node:t,path:e,print:r})=>["modifier ",t.name,ri(t,e,r),Qr(ti([ii(t),ni(t,e,r)])),si(t,e,r)]},ai=(t,e,r,i)=>t.arguments?t.arguments.length>0?["(",ot(e.map(r,"arguments")),")"]:"()":t.comments&&t.comments.some((t=>!t.leading&&!t.trailing&&!t.printed))?["(",et(t,e,i),")"]:"",li={print:({node:t,path:e,print:r,options:i})=>[t.name,ai(t,e,r,i)]},ci={print:({path:t,print:e})=>[t.call(e,"expression"),"{",t.call(e,"arguments"),"}"]},{line:ui,softline:hi}=r.doc.builders,pi={print:({node:t,path:e,print:r,options:i})=>ot(e.map(r,"arguments").map(((e,r)=>[t.names[r],": ",e])),{firstSeparator:i.bracketSpacing?ui:hi})},di={print:({path:t,print:e})=>["new ",t.call(e,"typeName")]},fi={print:({node:t})=>t.subdenomination?[t.number," ",t.subdenomination]:t.number},_i={print:({node:t})=>["pragma ",t.name," ",t.value,";"]},{group:yi,indent:gi,line:mi}=r.doc.builders,xi=(t,e,r)=>t.expression?"TupleExpression"===t.expression.type?[" ",e.call(r,"expression")]:yi(gi([mi,e.call(r,"expression")])):"",Ti={print:({node:t,path:e,print:r})=>["return",xi(t,e,r),";"]},vi={print:({path:t,print:e})=>["revert ",t.call(e,"revertCall"),";"]},{line:Si}=r.doc.builders,bi={print:({options:t,path:e,print:r})=>[nt(e,"children",t,r),t.parentParser?"":Si]},{group:Ei,indent:Ni,line:Ai}=r.doc.builders,Ri=(t,e,r)=>t.initialValue?"TupleExpression"===t.initialValue.type?[" = ",e.call(r,"initialValue")]:Ei([" =",Ni([Ai,e.call(r,"initialValue")])]):"",Ci={print:({node:t,path:e,print:r})=>[...e.map(r,"variables"),Ri(t,e,r),";"]},{join:Oi,hardline:Li}=r.doc.builders,wi={print:({node:t,options:e})=>{const r=t.parts.map(((r,i)=>(t.isUnicode[i]?"unicode":"")+a(r,e)));return Oi(Li,r)}},{hardline:Ii}=r.doc.builders,Pi={print:({node:t,path:e,print:r})=>["struct ",t.name," {",t.members.length>0?ot(e.map(r,"members"),{firstSeparator:Ii,separator:[";",Ii],lastSeparator:[";",Ii]}):"","}"]},ki={print:()=>"throw;"},{join:Di,line:Fi}=r.doc.builders,Mi={print:({node:t,path:e,print:r})=>{let i=["try",st(e.call(r,"expression"),{firstSeparator:Fi})];const n=((t,e,r)=>t.returnParameters?["returns (",ot(e.map(r,"returnParameters")),")"]:"")(t,e,r);return n&&(i=i.concat([n," "])),i=i.concat([e.call(r,"body")," ",Di(" ",e.map(r,"catchClauses"))]),i}},{group:ji}=r.doc.builders,Ui=(t,e,r)=>t.components&&1===t.components.length&&"BinaryOperation"===t.components[0].type?e.map(r,"components"):[ot(e.map(r,"components"))],Hi={print:({node:t,path:e,print:r})=>ji([t.isArray?"[":"(",...Ui(t,e,r),t.isArray?"]":")"])},Ki={print:({node:t})=>["type ",t.name," is ",t.definition.name,";"]},Bi={print:({node:t,path:e,print:r})=>t.isPrefix?[t.operator,"delete"===t.operator?" ":"",e.call(r,"subExpression")]:[e.call(r,"subExpression"),t.operator]},{group:zi}=r.doc.builders,Vi={print:({path:t,print:e})=>zi(["unchecked ",t.call(e,"block")])},qi={print:({node:t})=>t.namePath},{line:Gi,softline:$i}=r.doc.builders,Yi={print:({node:t,path:e,print:r,options:i})=>["using ",t.functions&&t.functions.length?["{",ot(t.functions.map(((e,r)=>t.operators[r]?[e," as ",t.operators[r]]:e)),{firstSeparator:i.bracketSpacing?Gi:$i}),"}"]:t.libraryName," for ",t.typeName?e.call(r,"typeName"):"*",t.isGlobal?" global;":";"]},{group:Wi,indent:Xi,line:Ji}=r.doc.builders,Qi=t=>t.isIndexed?" indexed":"",Zi=t=>t.visibility&&"default"!==t.visibility?[Ji,t.visibility]:"",tn=t=>t.isDeclaredConst?" constant":"",en=t=>t.storageLocation&&"default"!==t.visibility?[Ji,t.storageLocation]:"",rn=t=>t.isImmutable?" immutable":"",nn=(t,e,r)=>t.override?0===t.override.length?[Ji,"override"]:[Ji,"override(",ot(e.map(r,"override")),")"]:"",sn=t=>t.name?[" ",t.name]:"",on={print:({node:t,path:e,print:r})=>t.typeName?Wi([e.call(r,"typeName"),Xi([Qi(t),Zi(t),tn(t),en(t),rn(t),nn(t,e,r),sn(t)])]):t.name},{group:an,indentIfBreak:ln}=r.doc.builders,cn=(t,e)=>e?["(",ot(t),")"]:t;let un=0;const hn={print:({node:t,path:e,print:r})=>{const i=0===t.variables.filter((t=>t&&t.typeName)).length,n=an([i?"var ":"",cn(e.map(r,"variables"),t.variables.length>1||i)],{id:`VariableDeclarationStatement.variables-${un}`});un+=1;const s=((t,e,r)=>t.initialValue?[" = ",e.call(r,"initialValue")]:"")(t,e,r);return an([n,ln(s,{groupId:n.id}),t.omitSemicolon?"":";"])}},{group:pn,indent:dn,line:fn}=r.doc.builders,_n=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:pn(dn([fn,e.call(r,"body")])),yn={print:({node:t,path:e,print:r})=>["while (",st(e.call(r,"condition")),")",_n(t,e,r)]},gn=function t(e){const r=e.getValue();null!==r&&"object"==typeof r&&Object.keys(r).forEach((i=>{switch(i){case"loc":case"range":break;case"comments":e.each((t=>{t.getValue().printed=!0}),"comments");break;default:if("object"==typeof r[i]){if(Array.isArray(r[i]))return void e.each(t,i);e.call(t,i)}}}))};let mn=!1;const xn={"solidity-ast":{canAttachComment:t=>t.type&&"BlockComment"!==t.type&&"LineComment"!==t.type,handleComments:{ownLine:function(t,e,r,i,n){const{precedingNode:s,enclosingNode:o,followingNode:a}=t,l={text:e,precedingNode:s,enclosingNode:o,followingNode:a,comment:t,options:r};return!(!w.some((t=>t(l)))&&!function(t,e,r,i,n){const{precedingNode:s,enclosingNode:o,followingNode:a}=t;return!!(S(e,s,o,a,t,r)||function(t,e,r){return!(!t||"MemberExpression"!==t.type||!e||"Identifier"!==e.type||(u(t,r),0))}(o,a,t)||g(e,s,o,a,t,r)||m(e,s,o,a,t,r)||x(o,s,a,t)||T(o,0,a,t)||b(o,t)||function(t,e,r){return!(!t||"ForInStatement"!==t.type&&"ForOfStatement"!==t.type||(u(t,r),0))}(o,0,t)||function(t,e,r,i){return!(!e||"UnionTypeAnnotation"!==e.type&&"TSUnionType"!==e.type||(h(t,i),0))}(s,o,0,t)||E(o,i,t,n)||function(t,e,r,i,n){return!!(r&&"ImportSpecifier"===r.type&&e&&"ImportDeclaration"===e.type&&d(t,n.locEnd(i)))&&(h(r,i),!0)}(e,o,s,t,r)||function(t,e){return!(!t||"AssignmentPattern"!==t.type||(u(t,e),0))}(o,t)||v(e,o,s,t,r))}(t,e,r,i,n))},endOfLine:function(t,e,r,i,n){const{precedingNode:s,enclosingNode:o,followingNode:a}=t,l={text:e,precedingNode:s,enclosingNode:o,followingNode:a,comment:t,options:r};return!(!w.some((t=>t(l)))&&!function(t,e,r,i,n){const{precedingNode:s,enclosingNode:o,followingNode:a}=t;return!!(S(e,s,o,a,t,r)||function(t,e,r,i,n,s){const o=e&&!f(n,s.locEnd(e),s.locStart(i));return!(e&&o||!t||"ConditionalExpression"!==t.type||!r||(u(r,i),0))}(o,s,a,t,e,r)||b(o,t)||g(e,s,o,a,t,r)||m(e,s,o,a,t,r)||x(o,s,a,t)||T(o,0,a,t)||function(t,e){return!(!t||"LabeledStatement"!==t.type||(u(t,e),0))}(o,t)||function(t,e,r){return!!(e&&"CallExpression"===e.type&&t&&e.callee===t&&e.arguments.length>0)&&(u(e.arguments[0],r),!0)}(s,o,t)||function(t,e){return!(!t||"Property"!==t.type&&"ObjectProperty"!==t.type||(u(t,e),0))}(o,t)||E(o,i,t,n)||function(t,e,r){return!(!t||"TypeAlias"!==t.type||(u(t,r),0))}(o,0,t)||function(t,e,r){return!(!t||"VariableDeclarator"!==t.type&&"AssignmentExpression"!==t.type||!e||"ObjectExpression"!==e.type&&"ArrayExpression"!==e.type&&"TemplateLiteral"!==e.type&&"TaggedTemplateExpression"!==e.type||(u(e,r),0))}(o,a,t))}(t,e,r,i,n))},remaining:function(t,e,r,i,n){const{precedingNode:s,enclosingNode:o,followingNode:a}=t,l={text:e,precedingNode:s,enclosingNode:o,followingNode:a,comment:t,options:r};return!(!w.some((t=>t(l)))&&!function(t,e,r,i,n){const{precedingNode:s,enclosingNode:o,followingNode:a}=t;return!!(g(e,s,o,a,t,r)||m(e,s,o,a,t,r)||function(t,e,r){return!(!t||"ObjectProperty"!==t.type&&"Property"!==t.type||!t.shorthand||t.key!==e||"AssignmentPattern"!==t.value.type||(h(t.value.left,r),0))}(o,s,t)||function(t,e,r,i){return!(")"!==c(t,r,i.locEnd)||(!e||("FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&("ArrowFunctionExpression"!==e.type||"CallExpression"===e.body.type&&0!==e.body.arguments.length)&&"ClassMethod"!==e.type&&"ObjectMethod"!==e.type||0!==e.params.length)&&("CallExpression"!==e.type&&"NewExpression"!==e.type||0!==e.arguments.length)?!e||"MethodDefinition"!==e.type||0!==e.value.params.length||(p(e.value,r),0):(p(e,r),0)))}(e,o,t,r)||v(e,o,s,t,r)||E(o,i,t,n)||function(t,e,r,i){if(!e||"ArrowFunctionExpression"!==e.type)return!1;const n=getNextNonSpaceNonCommentCharacterIndex(t,r,i);return"=>"===t.substr(n,2)&&(p(e,r),!0)}(e,o,t,r)||function(t,e,r,i,n){return!("("!==c(t,i,n.locEnd)||!r||!e||"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&"ClassMethod"!==e.type&&"MethodDefinition"!==e.type&&"ObjectMethod"!==e.type||(h(r,i),0))}(e,o,s,t,r)||function(t,e,r,i,n){return!(!e||"TSMappedType"!==e.type||(i&&"TSTypeParameter"===i.type&&i.name?(u(i.name,n),0):!r||"TSTypeParameter"!==r.type||!r.constraint||(h(r.constraint,n),0)))}(0,o,s,a,t)||function(t,e){return!(!t||"ContinueStatement"!==t.type&&"BreakStatement"!==t.type||t.label||(h(t,e),0))}(o,t))}(t,e,r,i,n))}},isBlockComment:function(t){return"BlockComment"===t.type},massageAstNode:F,print:function(t,r,i){!function(){if(!mn){if(!o(">=2.3.0"))throw new Error('The version of prettier in your node-modules does not satisfy the required ">=2.3.0" constraint. Please update the version of Prettier.');mn=!0}}();const n=t.getValue();if(null===n)return"";if(!(n.type in e))throw new Error(`Unknown type: ${JSON.stringify(n.type)}`);return function(t){return t&&t.comments&&t.comments.length>0&&t.comments.some((t=>"prettier-ignore"===t.value.trim()))}(n)?(gn(t),r.originalText.slice(r.locStart(n),r.locEnd(n)+1)):e[n.type].print({node:n,options:r,path:t,print:i})},printComment:function(t,e){const i=t.getValue();switch(i.type){case"BlockComment":if(function(t){const e=`*${t.raw}*`.split("\n");return e.length>1&&e.every((t=>"*"===t.trim()[0]))}(i)){const t=function(t){const e=t.raw.split("\n");return["/*",P(I,e.map(((t,r)=>0===r?t.trimEnd():` ${r<e.length-1?t.trim():t.trimStart()}`))),"*/"]}(i);return i.trailing&&!r.util.hasNewline(e.originalText,e.locStart(i),{backwards:!0})?[I,t]:t}return`/*${i.raw}*/`;case"LineComment":return`//${i.raw.trimEnd()}`;default:throw new Error(`Not a comment: ${JSON.stringify(i)}`)}}}},Tn={languages:[{linguistLanguageId:237469032,name:"Solidity",type:"programming",color:"#AA6746",aceMode:"text",tmScope:"source.solidity",extensions:[".sol"],parsers:["solidity-parse"],vscodeLanguageIds:["solidity"]}],parsers:{"solidity-parse":{astFormat:"solidity-ast",parse:function(t,e,r=e){const i=V(r.compiler),n=z.parse(t,{loc:!0,range:!0});return n.comments=B(t),z.visit(n,{PragmaDirective(t){"solidity"===t.name&&i&&(s(i,t.value)||console.warn(`[prettier-solidity] The compiler option is set to '${r.compiler}', which does not satisfy 'pragma solidity ${t.value}'.`))},ModifierDefinition(t){t.parameters||(t.parameters=[])},FunctionDefinition(t){t.isConstructor||t.modifiers.forEach((t=>{t.arguments&&0===t.arguments.length&&(t.arguments=null)}))},ForStatement(t){t.initExpression&&(t.initExpression.omitSemicolon=!0),t.loopExpression.omitSemicolon=!0},HexLiteral(t){t.value=r.singleQuote?`hex'${t.value.slice(4,-1)}'`:`hex"${t.value.slice(4,-1)}"`},BinaryOperation(t){switch(t.operator){case"+":case"-":t.left=q(t.left,["%"]),t.right=q(t.right,["%"]);break;case"*":t.left=q(t.left,["/","%"]);break;case"/":t.left=q(t.left,["*","%"]);break;case"%":t.left=q(t.left,["*","/","%"]);break;case"**":if(!i)break;if(s(i,"<0.8.0")){t.left=q(t.left,["**"]);break}"BinaryOperation"===t.left.type&&"**"===t.left.operator&&(t.right={type:"TupleExpression",components:[{type:"BinaryOperation",operator:"**",left:t.left.right,right:t.right}],isArray:!1},t.left=t.left.left);break;case"<<":case">>":t.left=q(t.left,["+","-","*","/","**","<<",">>"]),t.right=q(t.right,["+","-","*","/","**"]);break;case"&":t.left=q(t.left,["+","-","*","/","**","<<",">>"]),t.right=q(t.right,["+","-","*","/","**","<<",">>"]);break;case"|":t.left=q(t.left,["+","-","*","/","**","<<",">>","&","^"]),t.right=q(t.right,["+","-","*","/","**","<<",">>","&","^"]);break;case"^":t.left=q(t.left,["+","-","*","/","**","<<",">>","&"]),t.right=q(t.right,["+","-","*","/","**","<<",">>","&"]);break;case"||":t.left=q(t.left,["&&"]),t.right=q(t.right,["&&"])}}}),n},...j}},printers:xn,options:K,defaultOptions:{bracketSpacing:!1,tabWidth:4}}})(),n.default})()));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("prettier/standalone")):"function"==typeof define&&define.amd?define(["prettier/standalone"],e):"object"==typeof exports?exports.prettierPluginSolidity=e(require("prettier/standalone")):(t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.solidity=e(t.prettier))}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{},(t=>(()=>{var e={298:t=>{var e=(()=>{var t=Object.defineProperty,e={};((e,i)=>{for(var s in i)t(e,s,{get:i[s],enumerable:!0})})(e,{ParserError:()=>Ne,parse:()=>ke,tokenize:()=>Ie,visit:()=>De});var i={92:()=>{}},s={};function r(t){var e=s[t];if(void 0!==e)return e.exports;var n=s[t]={exports:{}};return i[t](n,n.exports,r),n.exports}r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};(()=>{r.d(n,{dx:()=>Y,q2:()=>Ct,FO:()=>Re,xf:()=>Se,Gy:()=>Ne,s4:()=>Dt,c7:()=>Oe,_7:()=>le,tx:()=>ve,gp:()=>ge,cK:()=>wt,zs:()=>fe,AV:()=>Se,Xp:()=>g,VS:()=>T,ul:()=>W,hW:()=>Ht,x1:()=>Xt,z5:()=>ee,oN:()=>pe,TB:()=>de,u1:()=>me,_b:()=>Fe,$F:()=>se,_T:()=>Me,db:()=>re,Zx:()=>te,_x:()=>Ft,r8:()=>U,JI:()=>k,TP:()=>D,WU:()=>t,Nj:()=>c,ZP:()=>Xe});class t{constructor(){this.source=null,this.type=null,this.channel=null,this.start=null,this.stop=null,this.tokenIndex=null,this.line=null,this.column=null,this._text=null}getTokenSource(){return this.source[0]}getInputStream(){return this.source[1]}get text(){return this._text}set text(t){this._text=t}}function e(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t===e)return!0;if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(!(t[i]===e[i]||t[i].equals&&t[i].equals(e[i])))return!1;return!0}t.INVALID_TYPE=0,t.EPSILON=-2,t.MIN_USER_TOKEN_TYPE=1,t.EOF=-1,t.DEFAULT_CHANNEL=0,t.HIDDEN_CHANNEL=1;const i=Math.round(Math.random()*Math.pow(2,32));function s(t){if(!t)return 0;const e=typeof t,s="string"===e?t:!("object"!==e||!t.toString)&&t.toString();if(!s)return 0;let r,n;const a=3&s.length,o=s.length-a;let l=i;const h=3432918353,c=461845907;let u=0;for(;u<o;)n=255&s.charCodeAt(u)|(255&s.charCodeAt(++u))<<8|(255&s.charCodeAt(++u))<<16|(255&s.charCodeAt(++u))<<24,++u,n=(65535&n)*h+(((n>>>16)*h&65535)<<16)&4294967295,n=n<<15|n>>>17,n=(65535&n)*c+(((n>>>16)*c&65535)<<16)&4294967295,l^=n,l=l<<13|l>>>19,r=5*(65535&l)+((5*(l>>>16)&65535)<<16)&4294967295,l=27492+(65535&r)+((58964+(r>>>16)&65535)<<16);switch(n=0,a){case 3:n^=(255&s.charCodeAt(u+2))<<16;case 2:n^=(255&s.charCodeAt(u+1))<<8;case 1:n^=255&s.charCodeAt(u),n=(65535&n)*h+(((n>>>16)*h&65535)<<16)&4294967295,n=n<<15|n>>>17,n=(65535&n)*c+(((n>>>16)*c&65535)<<16)&4294967295,l^=n}return l^=s.length,l^=l>>>16,l=2246822507*(65535&l)+((2246822507*(l>>>16)&65535)<<16)&4294967295,l^=l>>>13,l=3266489909*(65535&l)+((3266489909*(l>>>16)&65535)<<16)&4294967295,l^=l>>>16,l>>>0}class a{constructor(){this.count=0,this.hash=0}update(){for(let t=0;t<arguments.length;t++){const e=arguments[t];if(null!=e)if(Array.isArray(e))this.update.apply(this,e);else{let t=0;switch(typeof e){case"undefined":case"function":continue;case"number":case"boolean":t=e;break;case"string":t=s(e);break;default:e.updateHashCode?e.updateHashCode(this):console.log("No updateHashCode for "+e.toString());continue}t*=3432918353,t=t<<15|t>>>17,t*=461845907,this.count=this.count+1;let i=this.hash^t;i=i<<13|i>>>19,i=5*i+3864292196,this.hash=i}}}finish(){let t=this.hash^4*this.count;return t^=t>>>16,t*=2246822507,t^=t>>>13,t*=3266489909,t^=t>>>16,t}static hashStuff(){const t=new a;return t.update.apply(t,arguments),t.finish()}}function o(t){return t?"string"==typeof t?s(t):t.hashCode():-1}function l(t,e){return t?t.equals(e):t===e}function h(t){return null===t?"null":t}function c(t){return Array.isArray(t)?"["+t.map(h).join(", ")+"]":"null"}const u="h-";class p{constructor(t,e){this.data={},this.hashFunction=t||o,this.equalsFunction=e||l}add(t){const e=u+this.hashFunction(t);if(e in this.data){const i=this.data[e];for(let e=0;e<i.length;e++)if(this.equalsFunction(t,i[e]))return i[e];return i.push(t),t}return this.data[e]=[t],t}has(t){return null!=this.get(t)}get(t){const e=u+this.hashFunction(t);if(e in this.data){const i=this.data[e];for(let e=0;e<i.length;e++)if(this.equalsFunction(t,i[e]))return i[e]}return null}values(){return Object.keys(this.data).filter((t=>t.startsWith(u))).flatMap((t=>this.data[t]),this)}toString(){return c(this.values())}get length(){return Object.keys(this.data).filter((t=>t.startsWith(u))).map((t=>this.data[t].length),this).reduce(((t,e)=>t+e),0)}}class d{hashCode(){const t=new a;return this.updateHashCode(t),t.finish()}evaluate(t,e){}evalPrecedence(t,e){return this}static andContext(t,e){if(null===t||t===d.NONE)return e;if(null===e||e===d.NONE)return t;const i=new m(t,e);return 1===i.opnds.length?i.opnds[0]:i}static orContext(t,e){if(null===t)return e;if(null===e)return t;if(t===d.NONE||e===d.NONE)return d.NONE;const i=new _(t,e);return 1===i.opnds.length?i.opnds[0]:i}}class m extends d{constructor(t,e){super();const i=new p;t instanceof m?t.opnds.map((function(t){i.add(t)})):i.add(t),e instanceof m?e.opnds.map((function(t){i.add(t)})):i.add(e);const s=x(i);if(s.length>0){let t=null;s.map((function(e){(null===t||e.precedence<t.precedence)&&(t=e)})),i.add(t)}this.opnds=Array.from(i.values())}equals(t){return this===t||t instanceof m&&e(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"AND")}evaluate(t,e){for(let i=0;i<this.opnds.length;i++)if(!this.opnds[i].evaluate(t,e))return!1;return!0}evalPrecedence(t,e){let i=!1;const s=[];for(let r=0;r<this.opnds.length;r++){const n=this.opnds[r],a=n.evalPrecedence(t,e);if(i|=a!==n,null===a)return null;a!==d.NONE&&s.push(a)}if(!i)return this;if(0===s.length)return d.NONE;let r=null;return s.map((function(t){r=null===r?t:d.andContext(r,t)})),r}toString(){const t=this.opnds.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("&&")}}class _ extends d{constructor(t,e){super();const i=new p;t instanceof _?t.opnds.map((function(t){i.add(t)})):i.add(t),e instanceof _?e.opnds.map((function(t){i.add(t)})):i.add(e);const s=x(i);if(s.length>0){const t=s.sort((function(t,e){return t.compareTo(e)})),e=t[t.length-1];i.add(e)}this.opnds=Array.from(i.values())}equals(t){return this===t||t instanceof _&&e(this.opnds,t.opnds)}updateHashCode(t){t.update(this.opnds,"OR")}evaluate(t,e){for(let i=0;i<this.opnds.length;i++)if(this.opnds[i].evaluate(t,e))return!0;return!1}evalPrecedence(t,e){let i=!1;const s=[];for(let r=0;r<this.opnds.length;r++){const n=this.opnds[r],a=n.evalPrecedence(t,e);if(i|=a!==n,a===d.NONE)return d.NONE;null!==a&&s.push(a)}return i?(0===s.length||s.map((function(t){return t})),null):this}toString(){const t=this.opnds.map((t=>t.toString()));return(t.length>3?t.slice(3):t).join("||")}}function x(t){const e=[];return t.values().map((function(t){t instanceof d.PrecedencePredicate&&e.push(t)})),e}function f(t,e){if(null===t){const t={state:null,alt:null,context:null,semanticContext:null};return e&&(t.reachesIntoOuterContext=0),t}{const i={};return i.state=t.state||null,i.alt=void 0===t.alt?null:t.alt,i.context=t.context||null,i.semanticContext=t.semanticContext||null,e&&(i.reachesIntoOuterContext=t.reachesIntoOuterContext||0,i.precedenceFilterSuppressed=t.precedenceFilterSuppressed||!1),i}}class y{constructor(t,e){this.checkContext(t,e),t=f(t),e=f(e,!0),this.state=null!==t.state?t.state:e.state,this.alt=null!==t.alt?t.alt:e.alt,this.context=null!==t.context?t.context:e.context,this.semanticContext=null!==t.semanticContext?t.semanticContext:null!==e.semanticContext?e.semanticContext:d.NONE,this.reachesIntoOuterContext=e.reachesIntoOuterContext,this.precedenceFilterSuppressed=e.precedenceFilterSuppressed}checkContext(t,e){null!==t.context&&void 0!==t.context||null!==e&&null!==e.context&&void 0!==e.context||(this.context=null)}hashCode(){const t=new a;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}equals(t){return this===t||t instanceof y&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&(null===this.context?null===t.context:this.context.equals(t.context))&&this.semanticContext.equals(t.semanticContext)&&this.precedenceFilterSuppressed===t.precedenceFilterSuppressed}hashCodeForConfigSet(){const t=new a;return t.update(this.state.stateNumber,this.alt,this.semanticContext),t.finish()}equalsForConfigSet(t){return this===t||t instanceof y&&this.state.stateNumber===t.state.stateNumber&&this.alt===t.alt&&this.semanticContext.equals(t.semanticContext)}toString(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==d.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}class g{constructor(t,e){this.start=t,this.stop=e}clone(){return new g(this.start,this.stop)}contains(t){return t>=this.start&&t<this.stop}toString(){return this.start===this.stop-1?this.start.toString():this.start.toString()+".."+(this.stop-1).toString()}get length(){return this.stop-this.start}}g.INVALID_INTERVAL=new g(-1,-2);class T{constructor(){this.intervals=null,this.readOnly=!1}first(e){return null===this.intervals||0===this.intervals.length?t.INVALID_TYPE:this.intervals[0].start}addOne(t){this.addInterval(new g(t,t+1))}addRange(t,e){this.addInterval(new g(t,e+1))}addInterval(t){if(null===this.intervals)this.intervals=[],this.intervals.push(t.clone());else{for(let e=0;e<this.intervals.length;e++){const i=this.intervals[e];if(t.stop<i.start)return void this.intervals.splice(e,0,t);if(t.stop===i.start)return void(this.intervals[e]=new g(t.start,i.stop));if(t.start<=i.stop)return this.intervals[e]=new g(Math.min(i.start,t.start),Math.max(i.stop,t.stop)),void this.reduce(e)}this.intervals.push(t.clone())}}addSet(t){return null!==t.intervals&&t.intervals.forEach((t=>this.addInterval(t)),this),this}reduce(t){if(t<this.intervals.length-1){const e=this.intervals[t],i=this.intervals[t+1];e.stop>=i.stop?(this.intervals.splice(t+1,1),this.reduce(t)):e.stop>=i.start&&(this.intervals[t]=new g(e.start,i.stop),this.intervals.splice(t+1,1))}}complement(t,e){const i=new T;return i.addInterval(new g(t,e+1)),null!==this.intervals&&this.intervals.forEach((t=>i.removeRange(t))),i}contains(t){if(null===this.intervals)return!1;for(let e=0;e<this.intervals.length;e++)if(this.intervals[e].contains(t))return!0;return!1}removeRange(t){if(t.start===t.stop-1)this.removeOne(t.start);else if(null!==this.intervals){let e=0;for(let i=0;i<this.intervals.length;i++){const i=this.intervals[e];if(t.stop<=i.start)return;if(t.start>i.start&&t.stop<i.stop){this.intervals[e]=new g(i.start,t.start);const s=new g(t.stop,i.stop);return void this.intervals.splice(e,0,s)}t.start<=i.start&&t.stop>=i.stop?(this.intervals.splice(e,1),e-=1):t.start<i.stop?this.intervals[e]=new g(i.start,t.start):t.stop<i.stop&&(this.intervals[e]=new g(t.stop,i.stop)),e+=1}}}removeOne(t){if(null!==this.intervals)for(let e=0;e<this.intervals.length;e++){const i=this.intervals[e];if(t<i.start)return;if(t===i.start&&t===i.stop-1)return void this.intervals.splice(e,1);if(t===i.start)return void(this.intervals[e]=new g(i.start+1,i.stop));if(t===i.stop-1)return void(this.intervals[e]=new g(i.start,i.stop-1));if(t<i.stop-1){const s=new g(i.start,t);return i.start=t+1,void this.intervals.splice(e,0,s)}}}toString(t,e,i){return t=t||null,e=e||null,i=i||!1,null===this.intervals?"{}":null!==t||null!==e?this.toTokenString(t,e):i?this.toCharString():this.toIndexString()}toCharString(){const e=[];for(let i=0;i<this.intervals.length;i++){const s=this.intervals[i];s.stop===s.start+1?s.start===t.EOF?e.push("<EOF>"):e.push("'"+String.fromCharCode(s.start)+"'"):e.push("'"+String.fromCharCode(s.start)+"'..'"+String.fromCharCode(s.stop-1)+"'")}return e.length>1?"{"+e.join(", ")+"}":e[0]}toIndexString(){const e=[];for(let i=0;i<this.intervals.length;i++){const s=this.intervals[i];s.stop===s.start+1?s.start===t.EOF?e.push("<EOF>"):e.push(s.start.toString()):e.push(s.start.toString()+".."+(s.stop-1).toString())}return e.length>1?"{"+e.join(", ")+"}":e[0]}toTokenString(t,e){const i=[];for(let s=0;s<this.intervals.length;s++){const r=this.intervals[s];for(let s=r.start;s<r.stop;s++)i.push(this.elementName(t,e,s))}return i.length>1?"{"+i.join(", ")+"}":i[0]}elementName(e,i,s){return s===t.EOF?"<EOF>":s===t.EPSILON?"<EPSILON>":e[s]||i[s]}get length(){return this.intervals.map((t=>t.length)).reduce(((t,e)=>t+e))}}class E{constructor(){this.atn=null,this.stateNumber=E.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}toString(){return this.stateNumber}equals(t){return t instanceof E&&this.stateNumber===t.stateNumber}isNonGreedyExitState(){return!1}addTransition(t,e){void 0===e&&(e=-1),0===this.transitions.length?this.epsilonOnlyTransitions=t.isEpsilon:this.epsilonOnlyTransitions!==t.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===e?this.transitions.push(t):this.transitions.splice(e,1,t)}}E.INVALID_TYPE=0,E.BASIC=1,E.RULE_START=2,E.BLOCK_START=3,E.PLUS_BLOCK_START=4,E.STAR_BLOCK_START=5,E.TOKEN_START=6,E.RULE_STOP=7,E.BLOCK_END=8,E.STAR_LOOP_BACK=9,E.STAR_LOOP_ENTRY=10,E.PLUS_LOOP_BACK=11,E.LOOP_END=12,E.serializationNames=["INVALID","BASIC","RULE_START","BLOCK_START","PLUS_BLOCK_START","STAR_BLOCK_START","TOKEN_START","RULE_STOP","BLOCK_END","STAR_LOOP_BACK","STAR_LOOP_ENTRY","PLUS_LOOP_BACK","LOOP_END"],E.INVALID_STATE_NUMBER=-1;class v extends E{constructor(){return super(),this.stateType=E.RULE_STOP,this}}class R{constructor(t){if(null==t)throw"target cannot be null.";this.target=t,this.isEpsilon=!1,this.label=null}}R.EPSILON=1,R.RANGE=2,R.RULE=3,R.PREDICATE=4,R.ATOM=5,R.ACTION=6,R.SET=7,R.NOT_SET=8,R.WILDCARD=9,R.PRECEDENCE=10,R.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],R.serializationTypes={EpsilonTransition:R.EPSILON,RangeTransition:R.RANGE,RuleTransition:R.RULE,PredicateTransition:R.PREDICATE,AtomTransition:R.ATOM,ActionTransition:R.ACTION,SetTransition:R.SET,NotSetTransition:R.NOT_SET,WildcardTransition:R.WILDCARD,PrecedencePredicateTransition:R.PRECEDENCE};class b extends R{constructor(t,e,i,s){super(t),this.ruleIndex=e,this.precedence=i,this.followState=s,this.serializationType=R.RULE,this.isEpsilon=!0}matches(t,e,i){return!1}}class L extends R{constructor(e,i){super(e),this.serializationType=R.SET,null!=i?this.label=i:(this.label=new T,this.label.addOne(t.INVALID_TYPE))}matches(t,e,i){return this.label.contains(t)}toString(){return this.label.toString()}}class S extends L{constructor(t,e){super(t,e),this.serializationType=R.NOT_SET}matches(t,e,i){return t>=e&&t<=i&&!super.matches(t,e,i)}toString(){return"~"+super.toString()}}class A extends R{constructor(t){super(t),this.serializationType=R.WILDCARD}matches(t,e,i){return t>=e&&t<=i}toString(){return"."}}class C extends R{constructor(t){super(t)}}class w{}class N extends w{}class I extends N{}class k extends I{get ruleContext(){throw new Error("missing interface implementation")}}class D extends I{}class O extends D{}const P={toStringTree:function(t,e,i){e=e||null,null!==(i=i||null)&&(e=i.ruleNames);let s=P.getNodeText(t,e);s=s.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r");const r=t.getChildCount();if(0===r)return s;let n="("+s+" ";r>0&&(s=P.toStringTree(t.getChild(0),e),n=n.concat(s));for(let i=1;i<r;i++)s=P.toStringTree(t.getChild(i),e),n=n.concat(" "+s);return n=n.concat(")"),n},getNodeText:function(e,i,s){if(i=i||null,null!==(s=s||null)&&(i=s.ruleNames),null!==i){if(e instanceof k){const t=e.ruleContext.getAltNumber();return 0!=t?i[e.ruleIndex]+":"+t:i[e.ruleIndex]}if(e instanceof O)return e.toString();if(e instanceof D&&null!==e.symbol)return e.symbol.text}const r=e.getPayload();return r instanceof t?r.text:e.getPayload().toString()},getChildren:function(t){const e=[];for(let i=0;i<t.getChildCount();i++)e.push(t.getChild(i));return e},getAncestors:function(t){let e=[];for(t=t.getParent();null!==t;)e=[t].concat(e),t=t.getParent();return e},findAllTokenNodes:function(t,e){return P.findAllNodes(t,e,!0)},findAllRuleNodes:function(t,e){return P.findAllNodes(t,e,!1)},findAllNodes:function(t,e,i){const s=[];return P._findAllNodes(t,e,i,s),s},_findAllNodes:function(t,e,i,s){i&&t instanceof D?t.symbol.type===e&&s.push(t):!i&&t instanceof k&&t.ruleIndex===e&&s.push(t);for(let r=0;r<t.getChildCount();r++)P._findAllNodes(t.getChild(r),e,i,s)},descendants:function(t){let e=[t];for(let i=0;i<t.getChildCount();i++)e=e.concat(P.descendants(t.getChild(i)));return e}},F=P;class U extends k{constructor(t,e){super(),this.parentCtx=t||null,this.invokingState=e||-1}depth(){let t=0,e=this;for(;null!==e;)e=e.parentCtx,t+=1;return t}isEmpty(){return-1===this.invokingState}getSourceInterval(){return g.INVALID_INTERVAL}get ruleContext(){return this}getPayload(){return this}getText(){return 0===this.getChildCount()?"":this.children.map((function(t){return t.getText()})).join("")}getAltNumber(){return 0}setAltNumber(t){}getChild(t){return null}getChildCount(){return 0}accept(t){return t.visitChildren(this)}toStringTree(t,e){return F.toStringTree(this,t,e)}toString(t,e){t=t||null,e=e||null;let i=this,s="[";for(;null!==i&&i!==e;){if(null===t)i.isEmpty()||(s+=i.invokingState);else{const e=i.ruleIndex;s+=e>=0&&e<t.length?t[e]:""+e}null===i.parentCtx||null===t&&i.parentCtx.isEmpty()||(s+=" "),i=i.parentCtx}return s+="]",s}}class H{constructor(t){this.cachedHashCode=t}isEmpty(){return this===H.EMPTY}hasEmptyPath(){return this.getReturnState(this.length-1)===H.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}}H.EMPTY=null,H.EMPTY_RETURN_STATE=2147483647,H.globalNodeCount=1,H.id=H.globalNodeCount,H.trace_atn_sim=!1;class M extends H{constructor(t,e){const i=new a;return i.update(t,e),super(i.finish()),this.parents=t,this.returnStates=e,this}isEmpty(){return this.returnStates[0]===H.EMPTY_RETURN_STATE}getParent(t){return this.parents[t]}getReturnState(t){return this.returnStates[t]}equals(t){return this===t||t instanceof M&&this.hashCode()===t.hashCode()&&e(this.returnStates,t.returnStates)&&e(this.parents,t.parents)}toString(){if(this.isEmpty())return"[]";{let t="[";for(let e=0;e<this.returnStates.length;e++)e>0&&(t+=", "),this.returnStates[e]!==H.EMPTY_RETURN_STATE?(t+=this.returnStates[e],null!==this.parents[e]?t=t+" "+this.parents[e]:t+="null"):t+="$";return t+"]"}}get length(){return this.returnStates.length}}class K extends H{constructor(t,e){let i=0;const s=new a;null!==t?s.update(t,e):s.update(1),i=s.finish(),super(i),this.parentCtx=t,this.returnState=e}getParent(t){return this.parentCtx}getReturnState(t){return this.returnState}equals(t){return this===t||t instanceof K&&this.hashCode()===t.hashCode()&&this.returnState===t.returnState&&(null==this.parentCtx?null==t.parentCtx:this.parentCtx.equals(t.parentCtx))}toString(){const t=null===this.parentCtx?"":this.parentCtx.toString();return 0===t.length?this.returnState===H.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+t}get length(){return 1}static create(t,e){return e===H.EMPTY_RETURN_STATE&&null===t?H.EMPTY:new K(t,e)}}class V extends K{constructor(){super(null,H.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(t){return null}getReturnState(t){return this.returnState}equals(t){return this===t}toString(){return"$"}}H.EMPTY=new V;const B="h-";class ${constructor(t,e){this.data={},this.hashFunction=t||o,this.equalsFunction=e||l}set(t,e){const i=B+this.hashFunction(t);if(i in this.data){const s=this.data[i];for(let i=0;i<s.length;i++){const r=s[i];if(this.equalsFunction(t,r.key)){const t=r.value;return r.value=e,t}}return s.push({key:t,value:e}),e}return this.data[i]=[{key:t,value:e}],e}containsKey(t){const e=B+this.hashFunction(t);if(e in this.data){const i=this.data[e];for(let e=0;e<i.length;e++){const s=i[e];if(this.equalsFunction(t,s.key))return!0}}return!1}get(t){const e=B+this.hashFunction(t);if(e in this.data){const i=this.data[e];for(let e=0;e<i.length;e++){const s=i[e];if(this.equalsFunction(t,s.key))return s.value}}return null}entries(){return Object.keys(this.data).filter((t=>t.startsWith(B))).flatMap((t=>this.data[t]),this)}getKeys(){return this.entries().map((t=>t.key))}getValues(){return this.entries().map((t=>t.value))}toString(){return"["+this.entries().map((t=>"{"+t.key+":"+t.value+"}")).join(", ")+"]"}get length(){return Object.keys(this.data).filter((t=>t.startsWith(B))).map((t=>this.data[t].length),this).reduce(((t,e)=>t+e),0)}}function j(t,e){if(null==e&&(e=U.EMPTY),null===e.parentCtx||e===U.EMPTY)return H.EMPTY;const i=j(t,e.parentCtx),s=t.states[e.invokingState].transitions[0];return K.create(i,s.followState.stateNumber)}function G(t,e,i){if(t.isEmpty())return t;let s=i.get(t)||null;if(null!==s)return s;if(s=e.get(t),null!==s)return i.set(t,s),s;let r=!1,n=[];for(let s=0;s<n.length;s++){const a=G(t.getParent(s),e,i);if(r||a!==t.getParent(s)){if(!r){n=[];for(let e=0;e<t.length;e++)n[e]=t.getParent(e);r=!0}n[s]=a}}if(!r)return e.add(t),i.set(t,t),t;let a=null;return a=0===n.length?H.EMPTY:1===n.length?K.create(n[0],t.getReturnState(0)):new M(n,t.returnStates),e.add(a),i.set(a,a),i.set(t,a),a}function z(t,e,i,s){if(t===e)return t;if(t instanceof K&&e instanceof K)return function(t,e,i,s){if(null!==s){let i=s.get(t,e);if(null!==i)return i;if(i=s.get(e,t),null!==i)return i}const r=function(t,e,i){if(i){if(t===H.EMPTY)return H.EMPTY;if(e===H.EMPTY)return H.EMPTY}else{if(t===H.EMPTY&&e===H.EMPTY)return H.EMPTY;if(t===H.EMPTY){const t=[e.returnState,H.EMPTY_RETURN_STATE],i=[e.parentCtx,null];return new M(i,t)}if(e===H.EMPTY){const e=[t.returnState,H.EMPTY_RETURN_STATE],i=[t.parentCtx,null];return new M(i,e)}}return null}(t,e,i);if(null!==r)return null!==s&&s.set(t,e,r),r;if(t.returnState===e.returnState){const r=z(t.parentCtx,e.parentCtx,i,s);if(r===t.parentCtx)return t;if(r===e.parentCtx)return e;const n=K.create(r,t.returnState);return null!==s&&s.set(t,e,n),n}{let i=null;if((t===e||null!==t.parentCtx&&t.parentCtx===e.parentCtx)&&(i=t.parentCtx),null!==i){const r=[t.returnState,e.returnState];t.returnState>e.returnState&&(r[0]=e.returnState,r[1]=t.returnState);const n=new M([i,i],r);return null!==s&&s.set(t,e,n),n}const r=[t.returnState,e.returnState];let n=[t.parentCtx,e.parentCtx];t.returnState>e.returnState&&(r[0]=e.returnState,r[1]=t.returnState,n=[e.parentCtx,t.parentCtx]);const a=new M(n,r);return null!==s&&s.set(t,e,a),a}}(t,e,i,s);if(i){if(t instanceof V)return t;if(e instanceof V)return e}return t instanceof K&&(t=new M([t.getParent()],[t.returnState])),e instanceof K&&(e=new M([e.getParent()],[e.returnState])),function(t,e,i,s){if(null!==s){let i=s.get(t,e);if(null!==i)return H.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),i;if(i=s.get(e,t),null!==i)return H.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> previous"),i}let r=0,n=0,a=0,o=new Array(t.returnStates.length+e.returnStates.length).fill(0),l=new Array(t.returnStates.length+e.returnStates.length).fill(null);for(;r<t.returnStates.length&&n<e.returnStates.length;){const h=t.parents[r],c=e.parents[n];if(t.returnStates[r]===e.returnStates[n]){const e=t.returnStates[r];e===H.EMPTY_RETURN_STATE&&null===h&&null===c||null!==h&&null!==c&&h===c?(l[a]=h,o[a]=e):(l[a]=z(h,c,i,s),o[a]=e),r+=1,n+=1}else t.returnStates[r]<e.returnStates[n]?(l[a]=h,o[a]=t.returnStates[r],r+=1):(l[a]=c,o[a]=e.returnStates[n],n+=1);a+=1}if(r<t.returnStates.length)for(let e=r;e<t.returnStates.length;e++)l[a]=t.parents[e],o[a]=t.returnStates[e],a+=1;else for(let t=n;t<e.returnStates.length;t++)l[a]=e.parents[t],o[a]=e.returnStates[t],a+=1;if(a<l.length){if(1===a){const i=K.create(l[0],o[0]);return null!==s&&s.set(t,e,i),i}l=l.slice(0,a),o=o.slice(0,a)}const h=new M(l,o);return h.equals(t)?(null!==s&&s.set(t,e,t),H.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> a"),t):h.equals(e)?(null!==s&&s.set(t,e,e),H.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> b"),e):(function(t){const e=new $;for(let i=0;i<t.length;i++){const s=t[i];e.containsKey(s)||e.set(s,s)}for(let i=0;i<t.length;i++)t[i]=e.get(t[i])}(l),null!==s&&s.set(t,e,h),H.trace_atn_sim&&console.log("mergeArrays a="+t+",b="+e+" -> "+h),h)}(t,e,i,s)}class q{constructor(){this.data=[]}add(t){this.data[t]=!0}or(t){Object.keys(t.data).map((t=>this.add(t)),this)}remove(t){delete this.data[t]}has(t){return!0===this.data[t]}values(){return Object.keys(this.data)}minValue(){return Math.min.apply(null,this.values())}hashCode(){return a.hashStuff(this.values())}equals(t){return t instanceof q&&e(this.data,t.data)}toString(){return"{"+this.values().join(", ")+"}"}get length(){return this.values().length}}class W{constructor(t){this.atn=t}getDecisionLookahead(t){if(null===t)return null;const e=t.transitions.length,i=[];for(let s=0;s<e;s++){i[s]=new T;const e=new p,r=!1;this._LOOK(t.transition(s).target,null,H.EMPTY,i[s],e,new q,r,!1),(0===i[s].length||i[s].contains(W.HIT_PRED))&&(i[s]=null)}return i}LOOK(t,e,i){const s=new T,r=null!==(i=i||null)?j(t.atn,i):null;return this._LOOK(t,e,r,s,new p,new q,!0,!0),s}_LOOK(e,i,s,r,n,a,o,l){const h=new y({state:e,alt:0,context:s},null);if(!n.has(h)){if(n.add(h),e===i){if(null===s)return void r.addOne(t.EPSILON);if(s.isEmpty()&&l)return void r.addOne(t.EOF)}if(e instanceof v){if(null===s)return void r.addOne(t.EPSILON);if(s.isEmpty()&&l)return void r.addOne(t.EOF);if(s!==H.EMPTY){const t=a.has(e.ruleIndex);try{a.remove(e.ruleIndex);for(let t=0;t<s.length;t++){const e=this.atn.states[s.getReturnState(t)];this._LOOK(e,i,s.getParent(t),r,n,a,o,l)}}finally{t&&a.add(e.ruleIndex)}return}}for(let h=0;h<e.transitions.length;h++){const c=e.transitions[h];if(c.constructor===b){if(a.has(c.target.ruleIndex))continue;const t=K.create(s,c.followState.stateNumber);try{a.add(c.target.ruleIndex),this._LOOK(c.target,i,t,r,n,a,o,l)}finally{a.remove(c.target.ruleIndex)}}else if(c instanceof C)o?this._LOOK(c.target,i,s,r,n,a,o,l):r.addOne(W.HIT_PRED);else if(c.isEpsilon)this._LOOK(c.target,i,s,r,n,a,o,l);else if(c.constructor===A)r.addRange(t.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{let e=c.label;null!==e&&(c instanceof S&&(e=e.complement(t.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),r.addSet(e))}}}}}W.HIT_PRED=t.INVALID_TYPE;class Y{constructor(t,e){this.grammarType=t,this.maxTokenType=e,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}nextTokensInContext(t,e){return new W(this).LOOK(t,null,e)}nextTokensNoContext(t){return null!==t.nextTokenWithinRule||(t.nextTokenWithinRule=this.nextTokensInContext(t,null),t.nextTokenWithinRule.readOnly=!0),t.nextTokenWithinRule}nextTokens(t,e){return void 0===e?this.nextTokensNoContext(t):this.nextTokensInContext(t,e)}addState(t){null!==t&&(t.atn=this,t.stateNumber=this.states.length),this.states.push(t)}removeState(t){this.states[t.stateNumber]=null}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,t.decision}getDecisionState(t){return 0===this.decisionToState.length?null:this.decisionToState[t]}getExpectedTokens(e,i){if(e<0||e>=this.states.length)throw"Invalid state number.";const s=this.states[e];let r=this.nextTokens(s);if(!r.contains(t.EPSILON))return r;const n=new T;for(n.addSet(r),n.removeOne(t.EPSILON);null!==i&&i.invokingState>=0&&r.contains(t.EPSILON);){const e=this.states[i.invokingState].transitions[0];r=this.nextTokens(e.followState),n.addSet(r),n.removeOne(t.EPSILON),i=i.parentCtx}return r.contains(t.EPSILON)&&n.addOne(t.EOF),n}}Y.INVALID_ALT_NUMBER=0;class X extends E{constructor(){super(),this.stateType=E.BASIC}}class J extends E{constructor(){return super(),this.decision=-1,this.nonGreedy=!1,this}}class Q extends J{constructor(){return super(),this.endState=null,this}}class Z extends E{constructor(){return super(),this.stateType=E.BLOCK_END,this.startState=null,this}}class tt extends E{constructor(){return super(),this.stateType=E.LOOP_END,this.loopBackState=null,this}}class et extends E{constructor(){return super(),this.stateType=E.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}}class it extends J{constructor(){return super(),this.stateType=E.TOKEN_START,this}}class st extends J{constructor(){return super(),this.stateType=E.PLUS_LOOP_BACK,this}}class rt extends E{constructor(){return super(),this.stateType=E.STAR_LOOP_BACK,this}}class nt extends J{constructor(){return super(),this.stateType=E.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}}class at extends Q{constructor(){return super(),this.stateType=E.PLUS_BLOCK_START,this.loopBackState=null,this}}class ot extends Q{constructor(){return super(),this.stateType=E.STAR_BLOCK_START,this}}class lt extends Q{constructor(){return super(),this.stateType=E.BLOCK_START,this}}class ht extends R{constructor(t,e){super(t),this.label_=e,this.label=this.makeLabel(),this.serializationType=R.ATOM}makeLabel(){const t=new T;return t.addOne(this.label_),t}matches(t,e,i){return this.label_===t}toString(){return this.label_}}class ct extends R{constructor(t,e,i){super(t),this.serializationType=R.RANGE,this.start=e,this.stop=i,this.label=this.makeLabel()}makeLabel(){const t=new T;return t.addRange(this.start,this.stop),t}matches(t,e,i){return t>=this.start&&t<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}}class ut extends R{constructor(t,e,i,s){super(t),this.serializationType=R.ACTION,this.ruleIndex=e,this.actionIndex=void 0===i?-1:i,this.isCtxDependent=void 0!==s&&s,this.isEpsilon=!0}matches(t,e,i){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}}class pt extends R{constructor(t,e){super(t),this.serializationType=R.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=e}matches(t,e,i){return!1}toString(){return"epsilon"}}class dt extends d{constructor(t,e,i){super(),this.ruleIndex=void 0===t?-1:t,this.predIndex=void 0===e?-1:e,this.isCtxDependent=void 0!==i&&i}evaluate(t,e){const i=this.isCtxDependent?e:null;return t.sempred(i,this.ruleIndex,this.predIndex)}updateHashCode(t){t.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}equals(t){return this===t||t instanceof dt&&this.ruleIndex===t.ruleIndex&&this.predIndex===t.predIndex&&this.isCtxDependent===t.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}d.NONE=new dt;class mt extends C{constructor(t,e,i,s){super(t),this.serializationType=R.PREDICATE,this.ruleIndex=e,this.predIndex=i,this.isCtxDependent=s,this.isEpsilon=!0}matches(t,e,i){return!1}getPredicate(){return new dt(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}}class _t extends d{constructor(t){super(),this.precedence=void 0===t?0:t}evaluate(t,e){return t.precpred(e,this.precedence)}evalPrecedence(t,e){return t.precpred(e,this.precedence)?d.NONE:null}compareTo(t){return this.precedence-t.precedence}updateHashCode(t){t.update(this.precedence)}equals(t){return this===t||t instanceof _t&&this.precedence===t.precedence}toString(){return"{"+this.precedence+">=prec}?"}}d.PrecedencePredicate=_t;class xt extends C{constructor(t,e){super(t),this.serializationType=R.PRECEDENCE,this.precedence=e,this.isEpsilon=!0}matches(t,e,i){return!1}getPredicate(){return new _t(this.precedence)}toString(){return this.precedence+" >= _p"}}class ft{constructor(t){void 0===t&&(t=null),this.readOnly=!1,this.verifyATN=null===t||t.verifyATN,this.generateRuleBypassTransitions=null!==t&&t.generateRuleBypassTransitions}}ft.defaultOptions=new ft,ft.defaultOptions.readOnly=!0;class yt{constructor(t){this.actionType=t,this.isPositionDependent=!1}hashCode(){const t=new a;return this.updateHashCode(t),t.finish()}updateHashCode(t){t.update(this.actionType)}equals(t){return this===t}}class gt extends yt{constructor(){super(6)}execute(t){t.skip()}toString(){return"skip"}}gt.INSTANCE=new gt;class Tt extends yt{constructor(t){super(0),this.channel=t}execute(t){t._channel=this.channel}updateHashCode(t){t.update(this.actionType,this.channel)}equals(t){return this===t||t instanceof Tt&&this.channel===t.channel}toString(){return"channel("+this.channel+")"}}class Et extends yt{constructor(t,e){super(1),this.ruleIndex=t,this.actionIndex=e,this.isPositionDependent=!0}execute(t){t.action(null,this.ruleIndex,this.actionIndex)}updateHashCode(t){t.update(this.actionType,this.ruleIndex,this.actionIndex)}equals(t){return this===t||t instanceof Et&&this.ruleIndex===t.ruleIndex&&this.actionIndex===t.actionIndex}}class vt extends yt{constructor(){super(3)}execute(t){t.more()}toString(){return"more"}}vt.INSTANCE=new vt;class Rt extends yt{constructor(t){super(7),this.type=t}execute(t){t.type=this.type}updateHashCode(t){t.update(this.actionType,this.type)}equals(t){return this===t||t instanceof Rt&&this.type===t.type}toString(){return"type("+this.type+")"}}class bt extends yt{constructor(t){super(5),this.mode=t}execute(t){t.pushMode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof bt&&this.mode===t.mode}toString(){return"pushMode("+this.mode+")"}}class Lt extends yt{constructor(){super(4)}execute(t){t.popMode()}toString(){return"popMode"}}Lt.INSTANCE=new Lt;class St extends yt{constructor(t){super(2),this.mode=t}execute(t){t.mode(this.mode)}updateHashCode(t){t.update(this.actionType,this.mode)}equals(t){return this===t||t instanceof St&&this.mode===t.mode}toString(){return"mode("+this.mode+")"}}function At(t,e){const i=[];return i[t-1]=e,i.map((function(t){return e}))}class Ct{constructor(t){null==t&&(t=ft.defaultOptions),this.deserializationOptions=t,this.stateFactories=null,this.actionFactories=null}deserialize(t){const e=this.reset(t);this.checkVersion(e),e&&this.skipUUID();const i=this.readATN();this.readStates(i,e),this.readRules(i,e),this.readModes(i);const s=[];return this.readSets(i,s,this.readInt.bind(this)),e&&this.readSets(i,s,this.readInt32.bind(this)),this.readEdges(i,s),this.readDecisions(i),this.readLexerActions(i,e),this.markPrecedenceDecisions(i),this.verifyATN(i),this.deserializationOptions.generateRuleBypassTransitions&&1===i.grammarType&&(this.generateRuleBypassTransitions(i),this.verifyATN(i)),i}reset(t){if(3===(t.charCodeAt?t.charCodeAt(0):t[0])){const e=function(t){const e=t.charCodeAt(0);return e>1?e-2:e+65534},i=t.split("").map(e);return i[0]=t.charCodeAt(0),this.data=i,this.pos=0,!0}return this.data=t,this.pos=0,!1}skipUUID(){let t=0;for(;t++<8;)this.readInt()}checkVersion(t){const e=this.readInt();if(!t&&4!==e)throw"Could not deserialize ATN with version "+e+" (expected 4)."}readATN(){const t=this.readInt(),e=this.readInt();return new Y(t,e)}readStates(t,e){let i,s,r;const n=[],a=[],o=this.readInt();for(let i=0;i<o;i++){const i=this.readInt();if(i===E.INVALID_TYPE){t.addState(null);continue}let s=this.readInt();e&&65535===s&&(s=-1);const r=this.stateFactory(i,s);if(i===E.LOOP_END){const t=this.readInt();n.push([r,t])}else if(r instanceof Q){const t=this.readInt();a.push([r,t])}t.addState(r)}for(i=0;i<n.length;i++)s=n[i],s[0].loopBackState=t.states[s[1]];for(i=0;i<a.length;i++)s=a[i],s[0].endState=t.states[s[1]];let l=this.readInt();for(i=0;i<l;i++)r=this.readInt(),t.states[r].nonGreedy=!0;let h=this.readInt();for(i=0;i<h;i++)r=this.readInt(),t.states[r].isPrecedenceRule=!0}readRules(e,i){let s;const r=this.readInt();for(0===e.grammarType&&(e.ruleToTokenType=At(r,0)),e.ruleToStartState=At(r,0),s=0;s<r;s++){const r=this.readInt();if(e.ruleToStartState[s]=e.states[r],0===e.grammarType){let r=this.readInt();i&&65535===r&&(r=t.EOF),e.ruleToTokenType[s]=r}}for(e.ruleToStopState=At(r,0),s=0;s<e.states.length;s++){const t=e.states[s];t instanceof v&&(e.ruleToStopState[t.ruleIndex]=t,e.ruleToStartState[t.ruleIndex].stopState=t)}}readModes(t){const e=this.readInt();for(let i=0;i<e;i++){let e=this.readInt();t.modeToStartState.push(t.states[e])}}readSets(t,e,i){const s=this.readInt();for(let t=0;t<s;t++){const t=new T;e.push(t);const s=this.readInt();0!==this.readInt()&&t.addOne(-1);for(let e=0;e<s;e++){const e=i(),s=i();t.addRange(e,s)}}}readEdges(t,e){let i,s,r,n,a;const o=this.readInt();for(i=0;i<o;i++){const i=this.readInt(),s=this.readInt(),r=this.readInt(),a=this.readInt(),o=this.readInt(),l=this.readInt();n=this.edgeFactory(t,r,i,s,a,o,l,e),t.states[i].addTransition(n)}for(i=0;i<t.states.length;i++)for(r=t.states[i],s=0;s<r.transitions.length;s++){const e=r.transitions[s];if(!(e instanceof b))continue;let i=-1;t.ruleToStartState[e.target.ruleIndex].isPrecedenceRule&&0===e.precedence&&(i=e.target.ruleIndex),n=new pt(e.followState,i),t.ruleToStopState[e.target.ruleIndex].addTransition(n)}for(i=0;i<t.states.length;i++){if(r=t.states[i],r instanceof Q){if(null===r.endState)throw"IllegalState";if(null!==r.endState.startState)throw"IllegalState";r.endState.startState=r}if(r instanceof st)for(s=0;s<r.transitions.length;s++)a=r.transitions[s].target,a instanceof at&&(a.loopBackState=r);else if(r instanceof rt)for(s=0;s<r.transitions.length;s++)a=r.transitions[s].target,a instanceof nt&&(a.loopBackState=r)}}readDecisions(t){const e=this.readInt();for(let i=0;i<e;i++){const e=this.readInt(),s=t.states[e];t.decisionToState.push(s),s.decision=i}}readLexerActions(t,e){if(0===t.grammarType){const i=this.readInt();t.lexerActions=At(i,null);for(let s=0;s<i;s++){const i=this.readInt();let r=this.readInt();e&&65535===r&&(r=-1);let n=this.readInt();e&&65535===n&&(n=-1),t.lexerActions[s]=this.lexerActionFactory(i,r,n)}}}generateRuleBypassTransitions(t){let e;const i=t.ruleToStartState.length;for(e=0;e<i;e++)t.ruleToTokenType[e]=t.maxTokenType+e+1;for(e=0;e<i;e++)this.generateRuleBypassTransition(t,e)}generateRuleBypassTransition(t,e){let i,s;const r=new lt;r.ruleIndex=e,t.addState(r);const n=new Z;n.ruleIndex=e,t.addState(n),r.endState=n,t.defineDecisionState(r),n.startState=r;let a=null,o=null;if(t.ruleToStartState[e].isPrecedenceRule){for(o=null,i=0;i<t.states.length;i++)if(s=t.states[i],this.stateIsEndStateFor(s,e)){o=s,a=s.loopBackState.transitions[0];break}if(null===a)throw"Couldn't identify final state of the precedence rule prefix section."}else o=t.ruleToStopState[e];for(i=0;i<t.states.length;i++){s=t.states[i];for(let t=0;t<s.transitions.length;t++){const e=s.transitions[t];e!==a&&e.target===o&&(e.target=n)}}const l=t.ruleToStartState[e],h=l.transitions.length;for(;h>0;)r.addTransition(l.transitions[h-1]),l.transitions=l.transitions.slice(-1);t.ruleToStartState[e].addTransition(new pt(r)),n.addTransition(new pt(o));const c=new X;t.addState(c),c.addTransition(new ht(n,t.ruleToTokenType[e])),r.addTransition(new pt(c))}stateIsEndStateFor(t,e){if(t.ruleIndex!==e)return null;if(!(t instanceof nt))return null;const i=t.transitions[t.transitions.length-1].target;return i instanceof tt&&i.epsilonOnlyTransitions&&i.transitions[0].target instanceof v?t:null}markPrecedenceDecisions(t){for(let e=0;e<t.states.length;e++){const i=t.states[e];if(i instanceof nt&&t.ruleToStartState[i.ruleIndex].isPrecedenceRule){const t=i.transitions[i.transitions.length-1].target;t instanceof tt&&t.epsilonOnlyTransitions&&t.transitions[0].target instanceof v&&(i.isPrecedenceDecision=!0)}}}verifyATN(t){if(this.deserializationOptions.verifyATN)for(let e=0;e<t.states.length;e++){const i=t.states[e];if(null!==i)if(this.checkCondition(i.epsilonOnlyTransitions||i.transitions.length<=1),i instanceof at)this.checkCondition(null!==i.loopBackState);else if(i instanceof nt)if(this.checkCondition(null!==i.loopBackState),this.checkCondition(2===i.transitions.length),i.transitions[0].target instanceof ot)this.checkCondition(i.transitions[1].target instanceof tt),this.checkCondition(!i.nonGreedy);else{if(!(i.transitions[0].target instanceof tt))throw"IllegalState";this.checkCondition(i.transitions[1].target instanceof ot),this.checkCondition(i.nonGreedy)}else i instanceof rt?(this.checkCondition(1===i.transitions.length),this.checkCondition(i.transitions[0].target instanceof nt)):i instanceof tt?this.checkCondition(null!==i.loopBackState):i instanceof et?this.checkCondition(null!==i.stopState):i instanceof Q?this.checkCondition(null!==i.endState):i instanceof Z?this.checkCondition(null!==i.startState):i instanceof J?this.checkCondition(i.transitions.length<=1||i.decision>=0):this.checkCondition(i.transitions.length<=1||i instanceof v)}}checkCondition(t,e){if(!t)throw null==e&&(e="IllegalState"),e}readInt(){return this.data[this.pos++]}readInt32(){return this.readInt()|this.readInt()<<16}edgeFactory(e,i,s,r,n,a,o,l){const h=e.states[r];switch(i){case R.EPSILON:return new pt(h);case R.RANGE:return new ct(h,0!==o?t.EOF:n,a);case R.RULE:return new b(e.states[n],a,o,h);case R.PREDICATE:return new mt(h,n,a,0!==o);case R.PRECEDENCE:return new xt(h,n);case R.ATOM:return new ht(h,0!==o?t.EOF:n);case R.ACTION:return new ut(h,n,a,0!==o);case R.SET:return new L(h,l[n]);case R.NOT_SET:return new S(h,l[n]);case R.WILDCARD:return new A(h);default:throw"The specified transition type: "+i+" is not valid."}}stateFactory(t,e){if(null===this.stateFactories){const t=[];t[E.INVALID_TYPE]=null,t[E.BASIC]=()=>new X,t[E.RULE_START]=()=>new et,t[E.BLOCK_START]=()=>new lt,t[E.PLUS_BLOCK_START]=()=>new at,t[E.STAR_BLOCK_START]=()=>new ot,t[E.TOKEN_START]=()=>new it,t[E.RULE_STOP]=()=>new v,t[E.BLOCK_END]=()=>new Z,t[E.STAR_LOOP_BACK]=()=>new rt,t[E.STAR_LOOP_ENTRY]=()=>new nt,t[E.PLUS_LOOP_BACK]=()=>new st,t[E.LOOP_END]=()=>new tt,this.stateFactories=t}if(t>this.stateFactories.length||null===this.stateFactories[t])throw"The specified state type "+t+" is not valid.";{const i=this.stateFactories[t]();if(null!==i)return i.ruleIndex=e,i}}lexerActionFactory(t,e,i){if(null===this.actionFactories){const t=[];t[0]=(t,e)=>new Tt(t),t[1]=(t,e)=>new Et(t,e),t[2]=(t,e)=>new St(t),t[3]=(t,e)=>vt.INSTANCE,t[4]=(t,e)=>Lt.INSTANCE,t[5]=(t,e)=>new bt(t),t[6]=(t,e)=>gt.INSTANCE,t[7]=(t,e)=>new Rt(t),this.actionFactories=t}if(t>this.actionFactories.length||null===this.actionFactories[t])throw"The specified lexer action type "+t+" is not valid.";return this.actionFactories[t](e,i)}}class wt{syntaxError(t,e,i,s,r,n){}reportAmbiguity(t,e,i,s,r,n,a){}reportAttemptingFullContext(t,e,i,s,r,n){}reportContextSensitivity(t,e,i,s,r,n){}}class Nt extends wt{constructor(){super()}syntaxError(t,e,i,s,r,n){console.error("line "+i+":"+s+" "+r)}}Nt.INSTANCE=new Nt;class It extends wt{constructor(t){if(super(),null===t)throw"delegates";return this.delegates=t,this}syntaxError(t,e,i,s,r,n){this.delegates.map((a=>a.syntaxError(t,e,i,s,r,n)))}reportAmbiguity(t,e,i,s,r,n,a){this.delegates.map((o=>o.reportAmbiguity(t,e,i,s,r,n,a)))}reportAttemptingFullContext(t,e,i,s,r,n){this.delegates.map((a=>a.reportAttemptingFullContext(t,e,i,s,r,n)))}reportContextSensitivity(t,e,i,s,r,n){this.delegates.map((a=>a.reportContextSensitivity(t,e,i,s,r,n)))}}class kt{constructor(){this._listeners=[Nt.INSTANCE],this._interp=null,this._stateNumber=-1}checkVersion(t){const e="4.13.1";e!==t&&console.log("ANTLR runtime and generated code versions disagree: "+e+"!="+t)}addErrorListener(t){this._listeners.push(t)}removeErrorListeners(){this._listeners=[]}getLiteralNames(){return Object.getPrototypeOf(this).constructor.literalNames||[]}getSymbolicNames(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}getTokenNames(){if(!this.tokenNames){const t=this.getLiteralNames(),e=this.getSymbolicNames(),i=t.length>e.length?t.length:e.length;this.tokenNames=[];for(let s=0;s<i;s++)this.tokenNames[s]=t[s]||e[s]||"<INVALID"}return this.tokenNames}getTokenTypeMap(){const e=this.getTokenNames();if(null===e)throw"The current recognizer does not provide a list of token names.";let i=this.tokenTypeMapCache[e];return void 0===i&&(i=e.reduce((function(t,e,i){t[e]=i})),i.EOF=t.EOF,this.tokenTypeMapCache[e]=i),i}getRuleIndexMap(){const t=this.ruleNames;if(null===t)throw"The current recognizer does not provide a list of rule names.";let e=this.ruleIndexMapCache[t];return void 0===e&&(e=t.reduce((function(t,e,i){t[e]=i})),this.ruleIndexMapCache[t]=e),e}getTokenType(e){const i=this.getTokenTypeMap()[e];return void 0!==i?i:t.INVALID_TYPE}getErrorHeader(t){return"line "+t.getOffendingToken().line+":"+t.getOffendingToken().column}getTokenErrorDisplay(e){if(null===e)return"<no token>";let i=e.text;return null===i&&(i=e.type===t.EOF?"<EOF>":"<"+e.type+">"),i=i.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"),"'"+i+"'"}getErrorListenerDispatch(){return new It(this._listeners)}sempred(t,e,i){return!0}precpred(t,e){return!0}get atn(){return this._interp.atn}get state(){return this._stateNumber}set state(t){this._stateNumber=t}}kt.tokenTypeMapCache={},kt.ruleIndexMapCache={};class Dt extends t{constructor(e,i,s,r,n){super(),this.source=void 0!==e?e:Dt.EMPTY_SOURCE,this.type=void 0!==i?i:null,this.channel=void 0!==s?s:t.DEFAULT_CHANNEL,this.start=void 0!==r?r:-1,this.stop=void 0!==n?n:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=e[0].line,this.column=e[0].column):this.column=-1}clone(){const t=new Dt(this.source,this.type,this.channel,this.start,this.stop);return t.tokenIndex=this.tokenIndex,t.line=this.line,t.column=this.column,t.text=this.text,t}cloneWithType(e){const i=new Dt(this.source,e,this.channel,this.start,this.stop);return i.tokenIndex=this.tokenIndex,i.line=this.line,i.column=this.column,e===t.EOF&&(i.text=""),i}toString(){let t=this.text;return t=null!==t?t.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+t+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}get text(){if(null!==this._text)return this._text;const t=this.getInputStream();if(null===t)return null;const e=t.size;return this.start<e&&this.stop<e?t.getText(this.start,this.stop):"<EOF>"}set text(t){this._text=t}}Dt.EMPTY_SOURCE=[null,null];class Ot{}class Pt extends Ot{constructor(t){super(),this.copyText=void 0!==t&&t}create(t,e,i,s,r,n,a,o){const l=new Dt(t,e,s,r,n);return l.line=a,l.column=o,null!==i?l.text=i:this.copyText&&null!==t[1]&&(l.text=t[1].getText(r,n)),l}createThin(t,e){const i=new Dt(null,t);return i.text=e,i}}Pt.DEFAULT=new Pt;class Ft extends Error{constructor(t){super(t.message),Error.captureStackTrace&&Error.captureStackTrace(this,Ft),this.message=t.message,this.recognizer=t.recognizer,this.input=t.input,this.ctx=t.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}}class Ut extends Ft{constructor(t,e,i,s){super({message:"",recognizer:t,input:e,ctx:null}),this.startIndex=i,this.deadEndConfigs=s}toString(){let t="";return this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getText(new g(this.startIndex,this.startIndex))),"LexerNoViableAltException"+t}}class Ht extends kt{constructor(e){super(),this._input=e,this._factory=Pt.DEFAULT,this._tokenFactorySourcePair=[this,e],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=t.DEFAULT_CHANNEL,this._type=t.INVALID_TYPE,this._modeStack=[],this._mode=Ht.DEFAULT_MODE,this._text=null}reset(){null!==this._input&&this._input.seek(0),this._token=null,this._type=t.INVALID_TYPE,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=Ht.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}nextToken(){if(null===this._input)throw"nextToken requires a non-null input stream.";const e=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=t.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;let e=!1;for(;;){this._type=t.INVALID_TYPE;let i=Ht.SKIP;try{i=this._interp.match(this._input,this._mode)}catch(t){if(!(t instanceof Ft))throw console.log(t.stack),t;this.notifyListeners(t),this.recover(t)}if(this._input.LA(1)===t.EOF&&(this._hitEOF=!0),this._type===t.INVALID_TYPE&&(this._type=i),this._type===Ht.SKIP){e=!0;break}if(this._type!==Ht.MORE)break}if(!e)return null===this._token&&this.emit(),this._token}}finally{this._input.release(e)}}skip(){this._type=Ht.SKIP}more(){this._type=Ht.MORE}mode(t){this._mode=t}pushMode(t){this._interp.debug&&console.log("pushMode "+t),this._modeStack.push(this._mode),this.mode(t)}popMode(){if(0===this._modeStack.length)throw"Empty Stack";return this._interp.debug&&console.log("popMode back to "+this._modeStack.slice(0,-1)),this.mode(this._modeStack.pop()),this._mode}emitToken(t){this._token=t}emit(){const t=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(t),t}emitEOF(){const e=this.column,i=this.line,s=this._factory.create(this._tokenFactorySourcePair,t.EOF,null,t.DEFAULT_CHANNEL,this._input.index,this._input.index-1,i,e);return this.emitToken(s),s}getCharIndex(){return this._input.index}getAllTokens(){const e=[];let i=this.nextToken();for(;i.type!==t.EOF;)e.push(i),i=this.nextToken();return e}notifyListeners(t){const e=this._tokenStartCharIndex,i=this._input.index,s=this._input.getText(e,i),r="token recognition error at: '"+this.getErrorDisplay(s)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,r,t)}getErrorDisplay(t){const e=[];for(let i=0;i<t.length;i++)e.push(t[i]);return e.join("")}getErrorDisplayForChar(e){return e.charCodeAt(0)===t.EOF?"<EOF>":"\n"===e?"\\n":"\t"===e?"\\t":"\r"===e?"\\r":e}getCharErrorDisplay(t){return"'"+this.getErrorDisplayForChar(t)+"'"}recover(e){this._input.LA(1)!==t.EOF&&(e instanceof Ut?this._interp.consume(this._input):this._input.consume())}get inputStream(){return this._input}set inputStream(t){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=t,this._tokenFactorySourcePair=[this,this._input]}get sourceName(){return this._input.sourceName}get type(){return this._type}set type(t){this._type=t}get line(){return this._interp.line}set line(t){this._interp.line=t}get column(){return this._interp.column}set column(t){this._interp.column=t}get text(){return null!==this._text?this._text:this._interp.getText(this._input)}set text(t){this._text=t}}function Mt(t){return t.hashCodeForConfigSet()}function Kt(t,e){return t===e||null!==t&&null!==e&&t.equalsForConfigSet(e)}Ht.DEFAULT_MODE=0,Ht.MORE=-2,Ht.SKIP=-3,Ht.DEFAULT_TOKEN_CHANNEL=t.DEFAULT_CHANNEL,Ht.HIDDEN=t.HIDDEN_CHANNEL,Ht.MIN_CHAR_VALUE=0,Ht.MAX_CHAR_VALUE=1114111;class Vt{constructor(t){this.configLookup=new p(Mt,Kt),this.fullCtx=void 0===t||t,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}add(t,e){if(void 0===e&&(e=null),this.readOnly)throw"This set is readonly";t.semanticContext!==d.NONE&&(this.hasSemanticContext=!0),t.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);const i=this.configLookup.add(t);if(i===t)return this.cachedHashCode=-1,this.configs.push(t),!0;const s=!this.fullCtx,r=z(i.context,t.context,s,e);return i.reachesIntoOuterContext=Math.max(i.reachesIntoOuterContext,t.reachesIntoOuterContext),t.precedenceFilterSuppressed&&(i.precedenceFilterSuppressed=!0),i.context=r,!0}getStates(){const t=new p;for(let e=0;e<this.configs.length;e++)t.add(this.configs[e].state);return t}getPredicates(){const t=[];for(let e=0;e<this.configs.length;e++){const i=this.configs[e].semanticContext;i!==d.NONE&&t.push(i.semanticContext)}return t}optimizeConfigs(t){if(this.readOnly)throw"This set is readonly";if(0!==this.configLookup.length)for(let e=0;e<this.configs.length;e++){const i=this.configs[e];i.context=t.getCachedContext(i.context)}}addAll(t){for(let e=0;e<t.length;e++)this.add(t[e]);return!1}equals(t){return this===t||t instanceof Vt&&e(this.configs,t.configs)&&this.fullCtx===t.fullCtx&&this.uniqueAlt===t.uniqueAlt&&this.conflictingAlts===t.conflictingAlts&&this.hasSemanticContext===t.hasSemanticContext&&this.dipsIntoOuterContext===t.dipsIntoOuterContext}hashCode(){const t=new a;return t.update(this.configs),t.finish()}updateHashCode(t){this.readOnly?(-1===this.cachedHashCode&&(this.cachedHashCode=this.hashCode()),t.update(this.cachedHashCode)):t.update(this.hashCode())}isEmpty(){return 0===this.configs.length}contains(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(t)}containsFast(t){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(t)}clear(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new p}setReadonly(t){this.readOnly=t,t&&(this.configLookup=null)}toString(){return c(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==Y.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}get items(){return this.configs}get length(){return this.configs.length}}class Bt{constructor(t,e){return null===t&&(t=-1),null===e&&(e=new Vt),this.stateNumber=t,this.configs=e,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}getAltSet(){const t=new p;if(null!==this.configs)for(let e=0;e<this.configs.length;e++){const i=this.configs[e];t.add(i.alt)}return 0===t.length?null:t}equals(t){return this===t||t instanceof Bt&&this.configs.equals(t.configs)}toString(){let t=this.stateNumber+":"+this.configs;return this.isAcceptState&&(t+="=>",null!==this.predicates?t+=this.predicates:t+=this.prediction),t}hashCode(){const t=new a;return t.update(this.configs),t.finish()}}class $t{constructor(t,e){return this.atn=t,this.sharedContextCache=e,this}getCachedContext(t){if(null===this.sharedContextCache)return t;const e=new $;return G(t,this.sharedContextCache,e)}}$t.ERROR=new Bt(2147483647,new Vt);class jt extends Vt{constructor(){super(),this.configLookup=new p}}class Gt extends y{constructor(t,e){super(t,e);const i=t.lexerActionExecutor||null;return this.lexerActionExecutor=i||(null!==e?e.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==e&&this.checkNonGreedyDecision(e,this.state),this.hashCodeForConfigSet=Gt.prototype.hashCode,this.equalsForConfigSet=Gt.prototype.equals,this}updateHashCode(t){t.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}equals(t){return this===t||t instanceof Gt&&this.passedThroughNonGreedyDecision===t.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(t.lexerActionExecutor):!t.lexerActionExecutor)&&super.equals(t)}checkNonGreedyDecision(t,e){return t.passedThroughNonGreedyDecision||e instanceof J&&e.nonGreedy}}class zt extends yt{constructor(t,e){super(e.actionType),this.offset=t,this.action=e,this.isPositionDependent=!0}execute(t){this.action.execute(t)}updateHashCode(t){t.update(this.actionType,this.offset,this.action)}equals(t){return this===t||t instanceof zt&&this.offset===t.offset&&this.action===t.action}}class qt{constructor(t){return this.lexerActions=null===t?[]:t,this.cachedHashCode=a.hashStuff(t),this}fixOffsetBeforeMatch(t){let e=null;for(let i=0;i<this.lexerActions.length;i++)!this.lexerActions[i].isPositionDependent||this.lexerActions[i]instanceof zt||(null===e&&(e=this.lexerActions.concat([])),e[i]=new zt(t,this.lexerActions[i]));return null===e?this:new qt(e)}execute(t,e,i){let s=!1;const r=e.index;try{for(let n=0;n<this.lexerActions.length;n++){let a=this.lexerActions[n];if(a instanceof zt){const t=a.offset;e.seek(i+t),a=a.action,s=i+t!==r}else a.isPositionDependent&&(e.seek(r),s=!1);a.execute(t)}}finally{s&&e.seek(r)}}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}equals(t){if(this===t)return!0;if(t instanceof qt){if(this.cachedHashCode!=t.cachedHashCode)return!1;if(this.lexerActions.length!=t.lexerActions.length)return!1;{const e=this.lexerActions.length;for(let i=0;i<e;++i)if(!this.lexerActions[i].equals(t.lexerActions[i]))return!1;return!0}}return!1}static append(t,e){if(null===t)return new qt([e]);const i=t.lexerActions.concat([e]);return new qt(i)}}function Wt(t){t.index=-1,t.line=0,t.column=-1,t.dfaState=null}class Yt{constructor(){Wt(this)}reset(){Wt(this)}}class Xt extends $t{constructor(t,e,i,s){super(e,s),this.decisionToDFA=i,this.recog=t,this.startIndex=-1,this.line=1,this.column=0,this.mode=Ht.DEFAULT_MODE,this.prevAccept=new Yt}copyState(t){this.column=t.column,this.line=t.line,this.mode=t.mode,this.startIndex=t.startIndex}match(t,e){this.mode=e;const i=t.mark();try{this.startIndex=t.index,this.prevAccept.reset();const i=this.decisionToDFA[e];return null===i.s0?this.matchATN(t):this.execATN(t,i.s0)}finally{t.release(i)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=Ht.DEFAULT_MODE}matchATN(t){const e=this.atn.modeToStartState[this.mode];Xt.debug&&console.log("matchATN mode "+this.mode+" start: "+e);const i=this.mode,s=this.computeStartState(t,e),r=s.hasSemanticContext;s.hasSemanticContext=!1;const n=this.addDFAState(s);r||(this.decisionToDFA[this.mode].s0=n);const a=this.execATN(t,n);return Xt.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[i].toLexerString()),a}execATN(e,i){Xt.debug&&console.log("start state closure="+i.configs),i.isAcceptState&&this.captureSimState(this.prevAccept,e,i);let s=e.LA(1),r=i;for(;;){Xt.debug&&console.log("execATN loop starting closure: "+r.configs);let i=this.getExistingTargetState(r,s);if(null===i&&(i=this.computeTargetState(e,r,s)),i===$t.ERROR)break;if(s!==t.EOF&&this.consume(e),i.isAcceptState&&(this.captureSimState(this.prevAccept,e,i),s===t.EOF))break;s=e.LA(1),r=i}return this.failOrAccept(this.prevAccept,e,r.configs,s)}getExistingTargetState(t,e){if(null===t.edges||e<Xt.MIN_DFA_EDGE||e>Xt.MAX_DFA_EDGE)return null;let i=t.edges[e-Xt.MIN_DFA_EDGE];return void 0===i&&(i=null),Xt.debug&&null!==i&&console.log("reuse state "+t.stateNumber+" edge to "+i.stateNumber),i}computeTargetState(t,e,i){const s=new jt;return this.getReachableConfigSet(t,e.configs,s,i),0===s.items.length?(s.hasSemanticContext||this.addDFAEdge(e,i,$t.ERROR),$t.ERROR):this.addDFAEdge(e,i,null,s)}failOrAccept(e,i,s,r){if(null!==this.prevAccept.dfaState){const t=e.dfaState.lexerActionExecutor;return this.accept(i,t,this.startIndex,e.index,e.line,e.column),e.dfaState.prediction}if(r===t.EOF&&i.index===this.startIndex)return t.EOF;throw new Ut(this.recog,i,this.startIndex,s)}getReachableConfigSet(e,i,s,r){let n=Y.INVALID_ALT_NUMBER;for(let a=0;a<i.items.length;a++){const o=i.items[a],l=o.alt===n;if(!l||!o.passedThroughNonGreedyDecision){Xt.debug&&console.log("testing %s at %s\n",this.getTokenName(r),o.toString(this.recog,!0));for(let i=0;i<o.state.transitions.length;i++){const a=o.state.transitions[i],h=this.getReachableTarget(a,r);if(null!==h){let i=o.lexerActionExecutor;null!==i&&(i=i.fixOffsetBeforeMatch(e.index-this.startIndex));const a=r===t.EOF,c=new Gt({state:h,lexerActionExecutor:i},o);this.closure(e,c,s,l,!0,a)&&(n=o.alt)}}}}}accept(t,e,i,s,r,n){Xt.debug&&console.log("ACTION %s\n",e),t.seek(s),this.line=r,this.column=n,null!==e&&null!==this.recog&&e.execute(this.recog,t,i)}getReachableTarget(t,e){return t.matches(e,0,Ht.MAX_CHAR_VALUE)?t.target:null}computeStartState(t,e){const i=H.EMPTY,s=new jt;for(let r=0;r<e.transitions.length;r++){const n=e.transitions[r].target,a=new Gt({state:n,alt:r+1,context:i},null);this.closure(t,a,s,!1,!1,!1)}return s}closure(t,e,i,s,r,n){let a=null;if(Xt.debug&&console.log("closure("+e.toString(this.recog,!0)+")"),e.state instanceof v){if(Xt.debug&&(null!==this.recog?console.log("closure at %s rule stop %s\n",this.recog.ruleNames[e.state.ruleIndex],e):console.log("closure at rule stop %s\n",e)),null===e.context||e.context.hasEmptyPath()){if(null===e.context||e.context.isEmpty())return i.add(e),!0;i.add(new Gt({state:e.state,context:H.EMPTY},e)),s=!0}if(null!==e.context&&!e.context.isEmpty())for(let o=0;o<e.context.length;o++)if(e.context.getReturnState(o)!==H.EMPTY_RETURN_STATE){const l=e.context.getParent(o),h=this.atn.states[e.context.getReturnState(o)];a=new Gt({state:h,context:l},e),s=this.closure(t,a,i,s,r,n)}return s}e.state.epsilonOnlyTransitions||s&&e.passedThroughNonGreedyDecision||i.add(e);for(let o=0;o<e.state.transitions.length;o++){const l=e.state.transitions[o];a=this.getEpsilonTarget(t,e,l,i,r,n),null!==a&&(s=this.closure(t,a,i,s,r,n))}return s}getEpsilonTarget(e,i,s,r,n,a){let o=null;if(s.serializationType===R.RULE){const t=K.create(i.context,s.followState.stateNumber);o=new Gt({state:s.target,context:t},i)}else{if(s.serializationType===R.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(s.serializationType===R.PREDICATE)Xt.debug&&console.log("EVAL rule "+s.ruleIndex+":"+s.predIndex),r.hasSemanticContext=!0,this.evaluatePredicate(e,s.ruleIndex,s.predIndex,n)&&(o=new Gt({state:s.target},i));else if(s.serializationType===R.ACTION)if(null===i.context||i.context.hasEmptyPath()){const t=qt.append(i.lexerActionExecutor,this.atn.lexerActions[s.actionIndex]);o=new Gt({state:s.target,lexerActionExecutor:t},i)}else o=new Gt({state:s.target},i);else s.serializationType===R.EPSILON?o=new Gt({state:s.target},i):s.serializationType!==R.ATOM&&s.serializationType!==R.RANGE&&s.serializationType!==R.SET||a&&s.matches(t.EOF,0,Ht.MAX_CHAR_VALUE)&&(o=new Gt({state:s.target},i))}return o}evaluatePredicate(t,e,i,s){if(null===this.recog)return!0;if(!s)return this.recog.sempred(null,e,i);const r=this.column,n=this.line,a=t.index,o=t.mark();try{return this.consume(t),this.recog.sempred(null,e,i)}finally{this.column=r,this.line=n,t.seek(a),t.release(o)}}captureSimState(t,e,i){t.index=e.index,t.line=this.line,t.column=this.column,t.dfaState=i}addDFAEdge(t,e,i,s){if(void 0===i&&(i=null),void 0===s&&(s=null),null===i&&null!==s){const t=s.hasSemanticContext;if(s.hasSemanticContext=!1,i=this.addDFAState(s),t)return i}return e<Xt.MIN_DFA_EDGE||e>Xt.MAX_DFA_EDGE||(Xt.debug&&console.log("EDGE "+t+" -> "+i+" upon "+e),null===t.edges&&(t.edges=[]),t.edges[e-Xt.MIN_DFA_EDGE]=i),i}addDFAState(t){const e=new Bt(null,t);let i=null;for(let e=0;e<t.items.length;e++){const s=t.items[e];if(s.state instanceof v){i=s;break}}null!==i&&(e.isAcceptState=!0,e.lexerActionExecutor=i.lexerActionExecutor,e.prediction=this.atn.ruleToTokenType[i.state.ruleIndex]);const s=this.decisionToDFA[this.mode],r=s.states.get(e);if(null!==r)return r;const n=e;return n.stateNumber=s.states.length,t.setReadonly(!0),n.configs=t,s.states.add(n),n}getDFA(t){return this.decisionToDFA[t]}getText(t){return t.getText(this.startIndex,t.index-1)}consume(t){t.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,t.consume()}getTokenName(t){return-1===t?"EOF":"'"+String.fromCharCode(t)+"'"}}Xt.debug=!1,Xt.dfa_debug=!1,Xt.MIN_DFA_EDGE=0,Xt.MAX_DFA_EDGE=127;class Jt{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}}class Qt{constructor(){this.data={}}get(t){return this.data["k-"+t]||null}set(t,e){this.data["k-"+t]=e}values(){return Object.keys(this.data).filter((t=>t.startsWith("k-"))).map((t=>this.data[t]),this)}}const Zt={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(t,e){if(Zt.allConfigsInRuleStopStates(e))return!0;if(t===Zt.SLL&&e.hasSemanticContext){const t=new Vt;for(let i=0;i<e.items.length;i++){let s=e.items[i];s=new y({semanticContext:d.NONE},s),t.add(s)}e=t}const i=Zt.getConflictingAltSubsets(e);return Zt.hasConflictingAltSet(i)&&!Zt.hasStateAssociatedWithOneAlt(e)},hasConfigInRuleStopState:function(t){for(let e=0;e<t.items.length;e++)if(t.items[e].state instanceof v)return!0;return!1},allConfigsInRuleStopStates:function(t){for(let e=0;e<t.items.length;e++)if(!(t.items[e].state instanceof v))return!1;return!0},resolvesToJustOneViableAlt:function(t){return Zt.getSingleViableAlt(t)},allSubsetsConflict:function(t){return!Zt.hasNonConflictingAltSet(t)},hasNonConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(1===t[e].length)return!0;return!1},hasConflictingAltSet:function(t){for(let e=0;e<t.length;e++)if(t[e].length>1)return!0;return!1},allSubsetsEqual:function(t){let e=null;for(let i=0;i<t.length;i++){const s=t[i];if(null===e)e=s;else if(s!==e)return!1}return!0},getUniqueAlt:function(t){const e=Zt.getAlts(t);return 1===e.length?e.minValue():Y.INVALID_ALT_NUMBER},getAlts:function(t){const e=new q;return t.map((function(t){e.or(t)})),e},getConflictingAltSubsets:function(t){const e=new $;return e.hashFunction=function(t){a.hashStuff(t.state.stateNumber,t.context)},e.equalsFunction=function(t,e){return t.state.stateNumber===e.state.stateNumber&&t.context.equals(e.context)},t.items.map((function(t){let i=e.get(t);null===i&&(i=new q,e.set(t,i)),i.add(t.alt)})),e.getValues()},getStateToAltMap:function(t){const e=new Qt;return t.items.map((function(t){let i=e.get(t.state);null===i&&(i=new q,e.set(t.state,i)),i.add(t.alt)})),e},hasStateAssociatedWithOneAlt:function(t){const e=Zt.getStateToAltMap(t).values();for(let t=0;t<e.length;t++)if(1===e[t].length)return!0;return!1},getSingleViableAlt:function(t){let e=null;for(let i=0;i<t.length;i++){const s=t[i].minValue();if(null===e)e=s;else if(e!==s)return Y.INVALID_ALT_NUMBER}return e}},te=Zt;class ee extends Ft{constructor(t,e,i,s,r,n){n=n||t._ctx,s=s||t.getCurrentToken(),i=i||t.getCurrentToken(),e=e||t.getInputStream(),super({message:"",recognizer:t,input:e,ctx:n}),this.deadEndConfigs=r,this.startToken=i,this.offendingToken=s}}class ie{constructor(t){this.defaultMapCtor=t||$,this.cacheMap=new this.defaultMapCtor}get(t,e){const i=this.cacheMap.get(t)||null;return null===i?null:i.get(e)||null}set(t,e,i){let s=this.cacheMap.get(t)||null;null===s&&(s=new this.defaultMapCtor,this.cacheMap.set(t,s)),s.set(e,i)}}class se extends $t{constructor(t,e,i,s){super(e,s),this.parser=t,this.decisionToDFA=i,this.predictionMode=te.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this.debug=!1,this.debug_closure=!1,this.debug_add=!1,this.trace_atn_sim=!1,this.dfa_debug=!1,this.retry_debug=!1}reset(){}adaptivePredict(t,e,i){(this.debug||this.trace_atn_sim)&&console.log("adaptivePredict decision "+e+" exec LA(1)=="+this.getLookaheadName(t)+" line "+t.LT(1).line+":"+t.LT(1).column),this._input=t,this._startIndex=t.index,this._outerContext=i;const s=this.decisionToDFA[e];this._dfa=s;const r=t.mark(),n=t.index;try{let e;if(e=s.precedenceDfa?s.getPrecedenceStartState(this.parser.getPrecedence()):s.s0,null===e){null===i&&(i=U.EMPTY),this.debug&&console.log("predictATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+i.toString(this.parser.ruleNames));const r=!1;let n=this.computeStartState(s.atnStartState,U.EMPTY,r);s.precedenceDfa?(s.s0.configs=n,n=this.applyPrecedenceFilter(n),e=this.addDFAState(s,new Bt(null,n)),s.setPrecedenceStartState(this.parser.getPrecedence(),e)):(e=this.addDFAState(s,new Bt(null,n)),s.s0=e)}const r=this.execATN(s,e,t,n,i);return this.debug&&console.log("DFA after predictATN: "+s.toString(this.parser.literalNames,this.parser.symbolicNames)),r}finally{this._dfa=null,this.mergeCache=null,t.seek(n),t.release(r)}}execATN(e,i,s,r,n){let a;(this.debug||this.trace_atn_sim)&&console.log("execATN decision "+e.decision+", DFA state "+i+", LA(1)=="+this.getLookaheadName(s)+" line "+s.LT(1).line+":"+s.LT(1).column);let o=i;this.debug&&console.log("s0 = "+i);let l=s.LA(1);for(;;){let i=this.getExistingTargetState(o,l);if(null===i&&(i=this.computeTargetState(e,o,l)),i===$t.ERROR){const t=this.noViableAlt(s,n,o.configs,r);if(s.seek(r),a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(o.configs,n),a!==Y.INVALID_ALT_NUMBER)return a;throw t}if(i.requiresFullContext&&this.predictionMode!==te.SLL){let t=null;if(null!==i.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");const e=s.index;if(e!==r&&s.seek(r),t=this.evalSemanticContext(i.predicates,n,!0),1===t.length)return this.debug&&console.log("Full LL avoided"),t.minValue();e!==r&&s.seek(e)}this.dfa_debug&&console.log("ctx sensitive state "+n+" in "+i);const o=!0,l=this.computeStartState(e.atnStartState,n,o);return this.reportAttemptingFullContext(e,t,i.configs,r,s.index),a=this.execATNWithFullContext(e,i,l,s,r,n),a}if(i.isAcceptState){if(null===i.predicates)return i.prediction;const t=s.index;s.seek(r);const a=this.evalSemanticContext(i.predicates,n,!0);if(0===a.length)throw this.noViableAlt(s,n,i.configs,r);return 1===a.length||this.reportAmbiguity(e,i,r,t,!1,a,i.configs),a.minValue()}o=i,l!==t.EOF&&(s.consume(),l=s.LA(1))}}getExistingTargetState(t,e){const i=t.edges;return null===i?null:i[e+1]||null}computeTargetState(t,e,i){const s=this.computeReachSet(e.configs,i,!1);if(null===s)return this.addDFAEdge(t,e,i,$t.ERROR),$t.ERROR;let r=new Bt(null,s);const n=this.getUniqueAlt(s);if(this.debug){const t=te.getConflictingAltSubsets(s);console.log("SLL altSubSets="+c(t)+", configs="+s+", predict="+n+", allSubsetsConflict="+te.allSubsetsConflict(t)+", conflictingAlts="+this.getConflictingAlts(s))}return n!==Y.INVALID_ALT_NUMBER?(r.isAcceptState=!0,r.configs.uniqueAlt=n,r.prediction=n):te.hasSLLConflictTerminatingPrediction(this.predictionMode,s)&&(r.configs.conflictingAlts=this.getConflictingAlts(s),r.requiresFullContext=!0,r.isAcceptState=!0,r.prediction=r.configs.conflictingAlts.minValue()),r.isAcceptState&&r.configs.hasSemanticContext&&(this.predicateDFAState(r,this.atn.getDecisionState(t.decision)),null!==r.predicates&&(r.prediction=Y.INVALID_ALT_NUMBER)),r=this.addDFAEdge(t,e,i,r),r}predicateDFAState(t,e){const i=e.transitions.length,s=this.getConflictingAltsOrUniqueAlt(t.configs),r=this.getPredsForAmbigAlts(s,t.configs,i);null!==r?(t.predicates=this.getPredicatePredictions(s,r),t.prediction=Y.INVALID_ALT_NUMBER):t.prediction=s.minValue()}execATNWithFullContext(e,i,s,r,n,a){(this.debug||this.trace_atn_sim)&&console.log("execATNWithFullContext "+s);let o,l=!1,h=s;r.seek(n);let c=r.LA(1),u=-1;for(;;){if(o=this.computeReachSet(h,c,!0),null===o){const t=this.noViableAlt(r,a,h,n);r.seek(n);const e=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(h,a);if(e!==Y.INVALID_ALT_NUMBER)return e;throw t}const e=te.getConflictingAltSubsets(o);if(this.debug&&console.log("LL altSubSets="+e+", predict="+te.getUniqueAlt(e)+", resolvesToJustOneViableAlt="+te.resolvesToJustOneViableAlt(e)),o.uniqueAlt=this.getUniqueAlt(o),o.uniqueAlt!==Y.INVALID_ALT_NUMBER){u=o.uniqueAlt;break}if(this.predictionMode!==te.LL_EXACT_AMBIG_DETECTION){if(u=te.resolvesToJustOneViableAlt(e),u!==Y.INVALID_ALT_NUMBER)break}else if(te.allSubsetsConflict(e)&&te.allSubsetsEqual(e)){l=!0,u=te.getSingleViableAlt(e);break}h=o,c!==t.EOF&&(r.consume(),c=r.LA(1))}return o.uniqueAlt!==Y.INVALID_ALT_NUMBER?(this.reportContextSensitivity(e,u,o,n,r.index),u):(this.reportAmbiguity(e,i,n,r.index,l,null,o),u)}computeReachSet(e,i,s){this.debug&&console.log("in computeReachSet, starting closure: "+e),null===this.mergeCache&&(this.mergeCache=new ie);const r=new Vt(s);let n=null;for(let a=0;a<e.items.length;a++){const o=e.items[a];if(this.debug&&console.log("testing "+this.getTokenName(i)+" at "+o),o.state instanceof v)(s||i===t.EOF)&&(null===n&&(n=[]),n.push(o),this.debug_add&&console.log("added "+o+" to skippedStopStates"));else for(let t=0;t<o.state.transitions.length;t++){const e=o.state.transitions[t],s=this.getReachableTarget(e,i);if(null!==s){const t=new y({state:s},o);r.add(t,this.mergeCache),this.debug_add&&console.log("added "+t+" to intermediate")}}}let a=null;if(null===n&&i!==t.EOF&&(1===r.items.length||this.getUniqueAlt(r)!==Y.INVALID_ALT_NUMBER)&&(a=r),null===a){a=new Vt(s);const e=new p,n=i===t.EOF;for(let t=0;t<r.items.length;t++)this.closure(r.items[t],a,e,!1,s,n)}if(i===t.EOF&&(a=this.removeAllConfigsNotInRuleStopState(a,a===r)),!(null===n||s&&te.hasConfigInRuleStopState(a)))for(let t=0;t<n.length;t++)a.add(n[t],this.mergeCache);return this.trace_atn_sim&&console.log("computeReachSet "+e+" -> "+a),0===a.items.length?null:a}removeAllConfigsNotInRuleStopState(e,i){if(te.allConfigsInRuleStopStates(e))return e;const s=new Vt(e.fullCtx);for(let r=0;r<e.items.length;r++){const n=e.items[r];if(n.state instanceof v)s.add(n,this.mergeCache);else if(i&&n.state.epsilonOnlyTransitions&&this.atn.nextTokens(n.state).contains(t.EPSILON)){const t=this.atn.ruleToStopState[n.state.ruleIndex];s.add(new y({state:t},n),this.mergeCache)}}return s}computeStartState(t,e,i){const s=j(this.atn,e),r=new Vt(i);this.trace_atn_sim&&console.log("computeStartState from ATN state "+t+" initialContext="+s.toString(this.parser));for(let e=0;e<t.transitions.length;e++){const n=t.transitions[e].target,a=new y({state:n,alt:e+1,context:s},null),o=new p;this.closure(a,r,o,!0,i,!1)}return r}applyPrecedenceFilter(t){let e;const i=[],s=new Vt(t.fullCtx);for(let r=0;r<t.items.length;r++){if(e=t.items[r],1!==e.alt)continue;const n=e.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==n&&(i[e.state.stateNumber]=e.context,n!==e.semanticContext?s.add(new y({semanticContext:n},e),this.mergeCache):s.add(e,this.mergeCache))}for(let r=0;r<t.items.length;r++)if(e=t.items[r],1!==e.alt){if(!e.precedenceFilterSuppressed){const t=i[e.state.stateNumber]||null;if(null!==t&&t.equals(e.context))continue}s.add(e,this.mergeCache)}return s}getReachableTarget(t,e){return t.matches(e,0,this.atn.maxTokenType)?t.target:null}getPredsForAmbigAlts(t,e,i){let s=[];for(let i=0;i<e.items.length;i++){const r=e.items[i];t.has(r.alt)&&(s[r.alt]=d.orContext(s[r.alt]||null,r.semanticContext))}let r=0;for(let t=1;t<i+1;t++){const e=s[t]||null;null===e?s[t]=d.NONE:e!==d.NONE&&(r+=1)}return 0===r&&(s=null),this.debug&&console.log("getPredsForAmbigAlts result "+c(s)),s}getPredicatePredictions(t,e){const i=[];let s=!1;for(let r=1;r<e.length;r++){const n=e[r];null!==t&&t.has(r)&&i.push(new Jt(n,r)),n!==d.NONE&&(s=!0)}return s?i:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(t,e){const i=this.splitAccordingToSemanticValidity(t,e),s=i[0],r=i[1];let n=this.getAltThatFinishedDecisionEntryRule(s);return n!==Y.INVALID_ALT_NUMBER||r.items.length>0&&(n=this.getAltThatFinishedDecisionEntryRule(r),n!==Y.INVALID_ALT_NUMBER)?n:Y.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(t){const e=[];for(let i=0;i<t.items.length;i++){const s=t.items[i];(s.reachesIntoOuterContext>0||s.state instanceof v&&s.context.hasEmptyPath())&&e.indexOf(s.alt)<0&&e.push(s.alt)}return 0===e.length?Y.INVALID_ALT_NUMBER:Math.min.apply(null,e)}splitAccordingToSemanticValidity(t,e){const i=new Vt(t.fullCtx),s=new Vt(t.fullCtx);for(let r=0;r<t.items.length;r++){const n=t.items[r];n.semanticContext!==d.NONE?n.semanticContext.evaluate(this.parser,e)?i.add(n):s.add(n):i.add(n)}return[i,s]}evalSemanticContext(t,e,i){const s=new q;for(let r=0;r<t.length;r++){const n=t[r];if(n.pred===d.NONE){if(s.add(n.alt),!i)break;continue}const a=n.pred.evaluate(this.parser,e);if((this.debug||this.dfa_debug)&&console.log("eval pred "+n+"="+a),a&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+n.alt),s.add(n.alt),!i))break}return s}closure(t,e,i,s,r,n){this.closureCheckingStopState(t,e,i,s,r,0,n)}closureCheckingStopState(t,e,i,s,r,n,a){if((this.trace_atn_sim||this.debug_closure)&&console.log("closure("+t.toString(this.parser,!0)+")"),t.state instanceof v){if(!t.context.isEmpty()){for(let o=0;o<t.context.length;o++){if(t.context.getReturnState(o)===H.EMPTY_RETURN_STATE){if(r){e.add(new y({state:t.state,context:H.EMPTY},t),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex)),this.closure_(t,e,i,s,r,n,a);continue}const l=this.atn.states[t.context.getReturnState(o)],h=t.context.getParent(o),c={state:l,alt:t.alt,context:h,semanticContext:t.semanticContext},u=new y(c,null);u.reachesIntoOuterContext=t.reachesIntoOuterContext,this.closureCheckingStopState(u,e,i,s,r,n-1,a)}return}if(r)return void e.add(t,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,e,i,s,r,n,a)}closure_(t,e,i,s,r,n,a){const o=t.state;o.epsilonOnlyTransitions||e.add(t,this.mergeCache);for(let l=0;l<o.transitions.length;l++){if(0===l&&this.canDropLoopEntryEdgeInLeftRecursiveRule(t))continue;const h=o.transitions[l],c=s&&!(h instanceof ut),u=this.getEpsilonTarget(t,h,c,0===n,r,a);if(null!==u){let s=n;if(t.state instanceof v){if(null!==this._dfa&&this._dfa.precedenceDfa&&h.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(u.precedenceFilterSuppressed=!0),u.reachesIntoOuterContext+=1,i.add(u)!==u)continue;e.dipsIntoOuterContext=!0,s-=1,this.debug&&console.log("dips into outer ctx: "+u)}else{if(!h.isEpsilon&&i.add(u)!==u)continue;h instanceof b&&s>=0&&(s+=1)}this.closureCheckingStopState(u,e,i,c,r,s,a)}}}canDropLoopEntryEdgeInLeftRecursiveRule(t){const e=t.state;if(e.stateType!==E.STAR_LOOP_ENTRY)return!1;if(e.stateType!==E.STAR_LOOP_ENTRY||!e.isPrecedenceDecision||t.context.isEmpty()||t.context.hasEmptyPath())return!1;const i=t.context.length;for(let s=0;s<i;s++)if(this.atn.states[t.context.getReturnState(s)].ruleIndex!==e.ruleIndex)return!1;const s=e.transitions[0].target.endState.stateNumber,r=this.atn.states[s];for(let s=0;s<i;s++){const i=t.context.getReturnState(s),n=this.atn.states[i];if(1!==n.transitions.length||!n.transitions[0].isEpsilon)return!1;const a=n.transitions[0].target;if(!(n.stateType===E.BLOCK_END&&a===e||n===r||a===r||a.stateType===E.BLOCK_END&&1===a.transitions.length&&a.transitions[0].isEpsilon&&a.transitions[0].target===e))return!1}return!0}getRuleName(t){return null!==this.parser&&t>=0?this.parser.ruleNames[t]:"<rule "+t+">"}getEpsilonTarget(e,i,s,r,n,a){switch(i.serializationType){case R.RULE:return this.ruleTransition(e,i);case R.PRECEDENCE:return this.precedenceTransition(e,i,s,r,n);case R.PREDICATE:return this.predTransition(e,i,s,r,n);case R.ACTION:return this.actionTransition(e,i);case R.EPSILON:return new y({state:i.target},e);case R.ATOM:case R.RANGE:case R.SET:return a&&i.matches(t.EOF,0,1)?new y({state:i.target},e):null;default:return null}}actionTransition(t,e){if(this.debug){const t=-1===e.actionIndex?65535:e.actionIndex;console.log("ACTION edge "+e.ruleIndex+":"+t)}return new y({state:e.target},t)}precedenceTransition(t,e,i,s,r){this.debug&&(console.log("PRED (collectPredicates="+i+") "+e.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+c(this.parser.getRuleInvocationStack())));let n=null;if(i&&s)if(r){const i=this._input.index;this._input.seek(this._startIndex);const s=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(i),s&&(n=new y({state:e.target},t))}else{const i=d.andContext(t.semanticContext,e.getPredicate());n=new y({state:e.target,semanticContext:i},t)}else n=new y({state:e.target},t);return this.debug&&console.log("config from pred transition="+n),n}predTransition(t,e,i,s,r){this.debug&&(console.log("PRED (collectPredicates="+i+") "+e.ruleIndex+":"+e.predIndex+", ctx dependent="+e.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+c(this.parser.getRuleInvocationStack())));let n=null;if(i&&(e.isCtxDependent&&s||!e.isCtxDependent))if(r){const i=this._input.index;this._input.seek(this._startIndex);const s=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(i),s&&(n=new y({state:e.target},t))}else{const i=d.andContext(t.semanticContext,e.getPredicate());n=new y({state:e.target,semanticContext:i},t)}else n=new y({state:e.target},t);return this.debug&&console.log("config from pred transition="+n),n}ruleTransition(t,e){this.debug&&console.log("CALL rule "+this.getRuleName(e.target.ruleIndex)+", ctx="+t.context);const i=e.followState,s=K.create(t.context,i.stateNumber);return new y({state:e.target,context:s},t)}getConflictingAlts(t){const e=te.getConflictingAltSubsets(t);return te.getAlts(e)}getConflictingAltsOrUniqueAlt(t){let e=null;return t.uniqueAlt!==Y.INVALID_ALT_NUMBER?(e=new q,e.add(t.uniqueAlt)):e=t.conflictingAlts,e}getTokenName(e){if(e===t.EOF)return"EOF";if(null!==this.parser&&null!==this.parser.literalNames){if(!(e>=this.parser.literalNames.length&&e>=this.parser.symbolicNames.length))return(this.parser.literalNames[e]||this.parser.symbolicNames[e])+"<"+e+">";console.log(e+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+e}getLookaheadName(t){return this.getTokenName(t.LA(1))}dumpDeadEndConfigs(t){console.log("dead end configs: ");const e=t.getDeadEndConfigs();for(let t=0;t<e.length;t++){const i=e[t];let s="no edges";if(i.state.transitions.length>0){const t=i.state.transitions[0];t instanceof ht?s="Atom "+this.getTokenName(t.label):t instanceof L&&(s=(t instanceof S?"~":"")+"Set "+t.set)}console.error(i.toString(this.parser,!0)+":"+s)}}noViableAlt(t,e,i,s){return new ee(this.parser,t,t.get(s),t.LT(1),i,e)}getUniqueAlt(t){let e=Y.INVALID_ALT_NUMBER;for(let i=0;i<t.items.length;i++){const s=t.items[i];if(e===Y.INVALID_ALT_NUMBER)e=s.alt;else if(s.alt!==e)return Y.INVALID_ALT_NUMBER}return e}addDFAEdge(t,e,i,s){if(this.debug&&console.log("EDGE "+e+" -> "+s+" upon "+this.getTokenName(i)),null===s)return null;if(s=this.addDFAState(t,s),null===e||i<-1||i>this.atn.maxTokenType)return s;if(null===e.edges&&(e.edges=[]),e.edges[i+1]=s,this.debug){const e=null===this.parser?null:this.parser.literalNames,i=null===this.parser?null:this.parser.symbolicNames;console.log("DFA=\n"+t.toString(e,i))}return s}addDFAState(t,e){if(e===$t.ERROR)return e;const i=t.states.get(e);return null!==i?(this.trace_atn_sim&&console.log("addDFAState "+e+" exists"),i):(e.stateNumber=t.states.length,e.configs.readOnly||(e.configs.optimizeConfigs(this),e.configs.setReadonly(!0)),this.trace_atn_sim&&console.log("addDFAState new "+e),t.states.add(e),this.debug&&console.log("adding new DFA state: "+e),e)}reportAttemptingFullContext(t,e,i,s,r){if(this.debug||this.retry_debug){const e=new g(s,r+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+i+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,t,s,r,e,i)}reportContextSensitivity(t,e,i,s,r){if(this.debug||this.retry_debug){const e=new g(s,r+1);console.log("reportContextSensitivity decision="+t.decision+":"+i+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,t,s,r,e,i)}reportAmbiguity(t,e,i,s,r,n,a){if(this.debug||this.retry_debug){const t=new g(i,s+1);console.log("reportAmbiguity "+n+":"+a+", input="+this.parser.getTokenStream().getText(t))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,t,i,s,r,n,a)}}class re{constructor(){this.cache=new $}add(t){if(t===H.EMPTY)return H.EMPTY;const e=this.cache.get(t)||null;return null!==e?e:(this.cache.set(t,t),t)}get(t){return this.cache.get(t)||null}get length(){return this.cache.length}}const ne={ATN:Y,ATNDeserializer:Ct,LexerATNSimulator:Xt,ParserATNSimulator:se,PredictionMode:te,PredictionContextCache:re};class ae{constructor(t,e,i){this.dfa=t,this.literalNames=e||[],this.symbolicNames=i||[]}toString(){if(null===this.dfa.s0)return null;let t="";const e=this.dfa.sortedStates();for(let i=0;i<e.length;i++){const s=e[i];if(null!==s.edges){const e=s.edges.length;for(let i=0;i<e;i++){const e=s.edges[i]||null;null!==e&&2147483647!==e.stateNumber&&(t=t.concat(this.getStateString(s)),t=t.concat("-"),t=t.concat(this.getEdgeLabel(i)),t=t.concat("->"),t=t.concat(this.getStateString(e)),t=t.concat("\n"))}}}return 0===t.length?null:t}getEdgeLabel(t){return 0===t?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[t-1]||this.symbolicNames[t-1]:String.fromCharCode(t-1)}getStateString(t){const e=(t.isAcceptState?":":"")+"s"+t.stateNumber+(t.requiresFullContext?"^":"");return t.isAcceptState?null!==t.predicates?e+"=>"+c(t.predicates):e+"=>"+t.prediction.toString():e}}class oe extends ae{constructor(t){super(t,null)}getEdgeLabel(t){return"'"+String.fromCharCode(t)+"'"}}class le{constructor(t,e){if(void 0===e&&(e=0),this.atnStartState=t,this.decision=e,this._states=new p,this.s0=null,this.precedenceDfa=!1,t instanceof nt&&t.isPrecedenceDecision){this.precedenceDfa=!0;const t=new Bt(null,new Vt);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}}getPrecedenceStartState(t){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return t<0||t>=this.s0.edges.length?null:this.s0.edges[t]||null}setPrecedenceStartState(t,e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";t<0||(this.s0.edges[t]=e)}setPrecedenceDfa(t){if(this.precedenceDfa!==t){if(this._states=new p,t){const t=new Bt(null,new Vt);t.edges=[],t.isAcceptState=!1,t.requiresFullContext=!1,this.s0=t}else this.s0=null;this.precedenceDfa=t}}sortedStates(){return this._states.values().sort((function(t,e){return t.stateNumber-e.stateNumber}))}toString(t,e){return t=t||null,e=e||null,null===this.s0?"":new ae(this,t,e).toString()}toLexerString(){return null===this.s0?"":new oe(this).toString()}get states(){return this._states}}const he={DFA:le,DFASerializer:ae,LexerDFASerializer:oe,PredPrediction:Jt},ce={PredictionContext:H},ue={Interval:g,IntervalSet:T};class pe{visitTerminal(t){}visitErrorNode(t){}enterEveryRule(t){}exitEveryRule(t){}}class de{visit(t){return Array.isArray(t)?t.map((function(t){return t.accept(this)}),this):t.accept(this)}visitChildren(t){return t.children?this.visit(t.children):null}visitTerminal(t){}visitErrorNode(t){}}class me{walk(t,e){if(e instanceof O||void 0!==e.isErrorNode&&e.isErrorNode())t.visitErrorNode(e);else if(e instanceof D)t.visitTerminal(e);else{this.enterRule(t,e);for(let i=0;i<e.getChildCount();i++){const s=e.getChild(i);this.walk(t,s)}this.exitRule(t,e)}}enterRule(t,e){const i=e.ruleContext;t.enterEveryRule(i),i.enterRule(t)}exitRule(t,e){const i=e.ruleContext;i.exitRule(t),t.exitEveryRule(i)}}me.DEFAULT=new me;const _e={Trees:F,RuleNode:k,ErrorNode:O,TerminalNode:D,ParseTreeListener:pe,ParseTreeVisitor:de,ParseTreeWalker:me};class xe extends Ft{constructor(t){super({message:"",recognizer:t,input:t.getInputStream(),ctx:t._ctx}),this.offendingToken=t.getCurrentToken()}}class fe extends Ft{constructor(t,e,i){super({message:ye(e,i||null),recognizer:t,input:t.getInputStream(),ctx:t._ctx});const s=t._interp.atn.states[t.state].transitions[0];s instanceof mt?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken()}}function ye(t,e){return null!==e?e:"failed predicate: {"+t+"}?"}class ge extends wt{constructor(t){super(),t=t||!0,this.exactOnly=t}reportAmbiguity(t,e,i,s,r,n,a){if(this.exactOnly&&!r)return;const o="reportAmbiguity d="+this.getDecisionDescription(t,e)+": ambigAlts="+this.getConflictingAlts(n,a)+", input='"+t.getTokenStream().getText(new g(i,s))+"'";t.notifyErrorListeners(o)}reportAttemptingFullContext(t,e,i,s,r,n){const a="reportAttemptingFullContext d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new g(i,s))+"'";t.notifyErrorListeners(a)}reportContextSensitivity(t,e,i,s,r,n){const a="reportContextSensitivity d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new g(i,s))+"'";t.notifyErrorListeners(a)}getDecisionDescription(t,e){const i=e.decision,s=e.atnStartState.ruleIndex,r=t.ruleNames;if(s<0||s>=r.length)return""+i;const n=r[s]||null;return null===n||0===n.length?""+i:`${i} (${n})`}getConflictingAlts(t,e){if(null!==t)return t;const i=new q;for(let t=0;t<e.items.length;t++)i.add(e.items[t].alt);return`{${i.values().join(", ")}}`}}class Te extends Error{constructor(){super(),Error.captureStackTrace(this,Te)}}class Ee{reset(t){}recoverInline(t){}recover(t,e){}sync(t){}inErrorRecoveryMode(t){}reportError(t){}}class ve extends Ee{constructor(){super(),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this.nextTokensContext=null,this.nextTokenState=0}reset(t){this.endErrorCondition(t)}beginErrorCondition(t){this.errorRecoveryMode=!0}inErrorRecoveryMode(t){return this.errorRecoveryMode}endErrorCondition(t){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}reportMatch(t){this.endErrorCondition(t)}reportError(t,e){this.inErrorRecoveryMode(t)||(this.beginErrorCondition(t),e instanceof ee?this.reportNoViableAlternative(t,e):e instanceof xe?this.reportInputMismatch(t,e):e instanceof fe?this.reportFailedPredicate(t,e):(console.log("unknown recognition error type: "+e.constructor.name),console.log(e.stack),t.notifyErrorListeners(e.getOffendingToken(),e.getMessage(),e)))}recover(t,e){this.lastErrorIndex===t.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(t.state)>=0&&t.consume(),this.lastErrorIndex=t._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(t.state);const i=this.getErrorRecoverySet(t);this.consumeUntil(t,i)}sync(e){if(this.inErrorRecoveryMode(e))return;const i=e._interp.atn.states[e.state],s=e.getTokenStream().LA(1),r=e.atn.nextTokens(i);if(r.contains(s))return this.nextTokensContext=null,void(this.nextTokenState=E.INVALID_STATE_NUMBER);if(r.contains(t.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=e._ctx,this.nextTokensState=e._stateNumber);else switch(i.stateType){case E.BLOCK_START:case E.STAR_BLOCK_START:case E.PLUS_BLOCK_START:case E.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(e))return;throw new xe(e);case E.PLUS_LOOP_BACK:case E.STAR_LOOP_BACK:{this.reportUnwantedToken(e);const t=new T;t.addSet(e.getExpectedTokens());const i=t.addSet(this.getErrorRecoverySet(e));this.consumeUntil(e,i)}}}reportNoViableAlternative(e,i){const s=e.getTokenStream();let r;r=null!==s?i.startToken.type===t.EOF?"<EOF>":s.getText(new g(i.startToken.tokenIndex,i.offendingToken.tokenIndex)):"<unknown input>";const n="no viable alternative at input "+this.escapeWSAndQuote(r);e.notifyErrorListeners(n,i.offendingToken,i)}reportInputMismatch(t,e){const i="mismatched input "+this.getTokenErrorDisplay(e.offendingToken)+" expecting "+e.getExpectedTokens().toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(i,e.offendingToken,e)}reportFailedPredicate(t,e){const i="rule "+t.ruleNames[t._ctx.ruleIndex]+" "+e.message;t.notifyErrorListeners(i,e.offendingToken,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),i="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames);t.notifyErrorListeners(i,e,null)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);const e=t.getCurrentToken(),i="missing "+this.getExpectedTokens(t).toString(t.literalNames,t.symbolicNames)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(i,e,null)}recoverInline(t){const e=this.singleTokenDeletion(t);if(null!==e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw new xe(t)}singleTokenInsertion(t){const e=t.getTokenStream().LA(1),i=t._interp.atn,s=i.states[t.state].transitions[0].target;return!!i.nextTokens(s,t._ctx).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){const e=t.getTokenStream().LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();const e=t.getCurrentToken();return this.reportMatch(t),e}return null}getMissingSymbol(e){const i=e.getCurrentToken(),s=this.getExpectedTokens(e).first();let r;r=s===t.EOF?"<missing EOF>":"<missing "+e.literalNames[s]+">";let n=i;const a=e.getTokenStream().LT(-1);return n.type===t.EOF&&null!==a&&(n=a),e.getTokenFactory().create(n.source,s,r,t.DEFAULT_CHANNEL,-1,-1,n.line,n.column)}getExpectedTokens(t){return t.getExpectedTokens()}getTokenErrorDisplay(e){if(null===e)return"<no token>";let i=e.text;return null===i&&(i=e.type===t.EOF?"<EOF>":"<"+e.type+">"),this.escapeWSAndQuote(i)}escapeWSAndQuote(t){return"'"+(t=(t=(t=t.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(e){const i=e._interp.atn;let s=e._ctx;const r=new T;for(;null!==s&&s.invokingState>=0;){const t=i.states[s.invokingState].transitions[0],e=i.nextTokens(t.followState);r.addSet(e),s=s.parentCtx}return r.removeOne(t.EPSILON),r}consumeUntil(e,i){let s=e.getTokenStream().LA(1);for(;s!==t.EOF&&!i.contains(s);)e.consume(),s=e.getTokenStream().LA(1)}}class Re extends ve{constructor(){super()}recover(t,e){let i=t._ctx;for(;null!==i;)i.exception=e,i=i.parentCtx;throw new Te(e)}recoverInline(t){this.recover(t,new xe(t))}sync(t){}}const be={RecognitionException:Ft,NoViableAltException:ee,LexerNoViableAltException:Ut,InputMismatchException:xe,FailedPredicateException:fe,DiagnosticErrorListener:ge,BailErrorStrategy:Re,DefaultErrorStrategy:ve,ErrorListener:wt};class Le{constructor(t,e){if(this.name="<empty>",this.strdata=t,this.decodeToUnicodeCodePoints=e||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(let t=0;t<this.strdata.length;){const e=this.strdata.codePointAt(t);this.data.push(e),t+=e<=65535?1:2}else{this.data=new Array(this.strdata.length);for(let t=0;t<this.strdata.length;t++)this.data[t]=this.strdata.charCodeAt(t)}this._size=this.data.length}reset(){this._index=0}consume(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}LA(e){if(0===e)return 0;e<0&&(e+=1);const i=this._index+e-1;return i<0||i>=this._size?t.EOF:this.data[i]}LT(t){return this.LA(t)}mark(){return-1}release(t){}seek(t){t<=this._index?this._index=t:this._index=Math.min(t,this._size)}getText(t,e){if(e>=this._size&&(e=this._size-1),t>=this._size)return"";if(this.decodeToUnicodeCodePoints){let i="";for(let s=t;s<=e;s++)i+=String.fromCodePoint(this.data[s]);return i}return this.strdata.slice(t,e+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}class Se extends Le{constructor(t,e){super(t,e)}}var Ae=r(92);const Ce="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;class we extends Se{static fromPath(t,e,i){if(!Ce)throw new Error("FileStream is only available when running in Node!");Ae.readFile(t,e,(function(t,e){let s=null;null!==e&&(s=new Le(e,!0)),i(t,s)}))}constructor(t,e,i){if(!Ce)throw new Error("FileStream is only available when running in Node!");super(Ae.readFileSync(t,e||"utf-8"),i),this.fileName=t}}const Ne={fromString:function(t){return new Le(t,!0)},fromBlob:function(t,e,i,s){const r=new window.FileReader;r.onload=function(t){const e=new Le(t.target.result,!0);i(e)},r.onerror=s,r.readAsText(t,e)},fromBuffer:function(t,e){return new Le(t.toString(e),!0)},fromPath:function(t,e,i){we.fromPath(t,e,i)},fromPathSync:function(t,e){return new we(t,e)}},Ie={arrayToString:c,stringToCharArray:function(t){let e=new Uint16Array(t.length);for(let i=0;i<t.length;i++)e[i]=t.charCodeAt(i);return e}};class ke{}class De extends ke{constructor(t){super(),this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}mark(){return 0}release(t){}reset(){this.seek(0)}seek(t){this.lazyInit(),this.index=this.adjustSeekIndex(t)}get size(){return this.tokens.length}get(t){return this.lazyInit(),this.tokens[t]}consume(){let e=!1;if(e=this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length),!e&&this.LA(1)===t.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}sync(t){const e=t-this.tokens.length+1;return!(e>0)||this.fetch(e)>=e}fetch(e){if(this.fetchedEOF)return 0;for(let i=0;i<e;i++){const e=this.tokenSource.nextToken();if(e.tokenIndex=this.tokens.length,this.tokens.push(e),e.type===t.EOF)return this.fetchedEOF=!0,i+1}return e}getTokens(e,i,s){if(void 0===s&&(s=null),e<0||i<0)return null;this.lazyInit();const r=[];i>=this.tokens.length&&(i=this.tokens.length-1);for(let n=e;n<i;n++){const e=this.tokens[n];if(e.type===t.EOF)break;(null===s||s.contains(e.type))&&r.push(e)}return r}LA(t){return this.LT(t).type}LB(t){return this.index-t<0?null:this.tokens[this.index-t]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);const e=this.index+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.index&&this.setup()}setup(){this.sync(0),this.index=this.adjustSeekIndex(0)}setTokenSource(t){this.tokenSource=t,this.tokens=[],this.index=-1,this.fetchedEOF=!1}nextTokenOnChannel(e,i){if(this.sync(e),e>=this.tokens.length)return-1;let s=this.tokens[e];for(;s.channel!==this.channel;){if(s.type===t.EOF)return-1;e+=1,this.sync(e),s=this.tokens[e]}return e}previousTokenOnChannel(t,e){for(;t>=0&&this.tokens[t].channel!==e;)t-=1;return t}getHiddenTokensToRight(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const i=this.nextTokenOnChannel(t+1,Ht.DEFAULT_TOKEN_CHANNEL),s=t+1,r=-1===i?this.tokens.length-1:i;return this.filterForChannel(s,r,e)}getHiddenTokensToLeft(t,e){if(void 0===e&&(e=-1),this.lazyInit(),t<0||t>=this.tokens.length)throw t+" not in 0.."+this.tokens.length-1;const i=this.previousTokenOnChannel(t-1,Ht.DEFAULT_TOKEN_CHANNEL);if(i===t-1)return null;const s=i+1,r=t-1;return this.filterForChannel(s,r,e)}filterForChannel(t,e,i){const s=[];for(let r=t;r<e+1;r++){const t=this.tokens[r];-1===i?t.channel!==Ht.DEFAULT_TOKEN_CHANNEL&&s.push(t):t.channel===i&&s.push(t)}return 0===s.length?null:s}getSourceName(){return this.tokenSource.getSourceName()}getText(e){this.lazyInit(),this.fill(),e||(e=new g(0,this.tokens.length-1));let i=e.start;i instanceof t&&(i=i.tokenIndex);let s=e.stop;if(s instanceof t&&(s=s.tokenIndex),null===i||null===s||i<0||s<0)return"";s>=this.tokens.length&&(s=this.tokens.length-1);let r="";for(let e=i;e<s+1;e++){const i=this.tokens[e];if(i.type===t.EOF)break;r+=i.text}return r}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}}Object.defineProperty(De,"size",{get:function(){return this.tokens.length}});class Oe extends De{constructor(e,i){super(e),this.channel=void 0===i?t.DEFAULT_CHANNEL:i}adjustSeekIndex(t){return this.nextTokenOnChannel(t,this.channel)}LB(t){if(0===t||this.index-t<0)return null;let e=this.index,i=1;for(;i<=t;)e=this.previousTokenOnChannel(e-1,this.channel),i+=1;return e<0?null:this.tokens[e]}LT(t){if(this.lazyInit(),0===t)return null;if(t<0)return this.LB(-t);let e=this.index,i=1;for(;i<t;)this.sync(e+1)&&(e=this.nextTokenOnChannel(e+1,this.channel)),i+=1;return this.tokens[e]}getNumberOfOnChannelTokens(){let e=0;this.fill();for(let i=0;i<this.tokens.length;i++){const s=this.tokens[i];if(s.channel===this.channel&&(e+=1),s.type===t.EOF)break}return e}}class Pe extends pe{constructor(t){super(),this.parser=t}enterEveryRule(t){console.log("enter "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}visitTerminal(t){console.log("consume "+t.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}exitEveryRule(t){console.log("exit "+this.parser.ruleNames[t.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}class Fe extends kt{constructor(t){super(),this._input=null,this._errHandler=new ve,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(t)}reset(){null!==this._input&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),null!==this._interp&&this._interp.reset()}match(t){let e=this.getCurrentToken();return e.type===t?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(e)),e}matchWildcard(){let t=this.getCurrentToken();return t.type>0?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(t)),t}getParseListeners(){return this._parseListeners||[]}addParseListener(t){if(null===t)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(t)}removeParseListener(t){if(null!==this._parseListeners){const e=this._parseListeners.indexOf(t);e>=0&&this._parseListeners.splice(e,1),0===this._parseListeners.length&&(this._parseListeners=null)}}removeParseListeners(){this._parseListeners=null}triggerEnterRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.forEach((function(e){e.enterEveryRule(t),t.enterRule(e)}))}}triggerExitRuleEvent(){if(null!==this._parseListeners){const t=this._ctx;this._parseListeners.slice(0).reverse().forEach((function(e){t.exitRule(e),e.exitEveryRule(t)}))}}getTokenFactory(){return this._input.tokenSource._factory}setTokenFactory(t){this._input.tokenSource._factory=t}getATNWithBypassAlts(){const t=this.getSerializedATN();if(null===t)throw"The current parser does not support an ATN with bypass alternatives.";let e=this.bypassAltsAtnCache[t];if(null===e){const i=new ft;i.generateRuleBypassTransitions=!0,e=new Ct(i).deserialize(t),this.bypassAltsAtnCache[t]=e}return e}getInputStream(){return this.getTokenStream()}setInputStream(t){this.setTokenStream(t)}getTokenStream(){return this._input}setTokenStream(t){this._input=null,this.reset(),this._input=t}get syntaxErrorsCount(){return this._syntaxErrors}getCurrentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,i){i=i||null,null===(e=e||null)&&(e=this.getCurrentToken()),this._syntaxErrors+=1;const s=e.line,r=e.column;this.getErrorListenerDispatch().syntaxError(this,e,s,r,t,i)}consume(){const e=this.getCurrentToken();e.type!==t.EOF&&this.getInputStream().consume();const i=null!==this._parseListeners&&this._parseListeners.length>0;if(this.buildParseTrees||i){let t;t=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(e):this._ctx.addTokenNode(e),t.invokingState=this.state,i&&this._parseListeners.forEach((function(e){t instanceof O||void 0!==t.isErrorNode&&t.isErrorNode()?e.visitErrorNode(t):t instanceof D&&e.visitTerminal(t)}))}return e}addContextToParseTree(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)}enterRule(t,e,i){this.state=e,this._ctx=t,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}enterOuterAlt(t,e){t.setAltNumber(e),this.buildParseTrees&&this._ctx!==t&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(t)),this._ctx=t}getPrecedence(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]}enterRecursionRule(t,e,i,s){this.state=e,this._precedenceStack.push(s),this._ctx=t,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,i){const s=this._ctx;s.parentCtx=t,s.invokingState=e,s.stop=this._input.LT(-1),this._ctx=t,this._ctx.start=s.start,this.buildParseTrees&&this._ctx.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);const e=this._ctx,i=this.getParseListeners();if(null!==i&&i.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=t;e.parentCtx=t,this.buildParseTrees&&null!==t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;null!==e;){if(e.ruleIndex===t)return e;e=e.parentCtx}return null}precpred(t,e){return e>=this._precedenceStack[this._precedenceStack.length-1]}inContext(t){return!1}isExpectedToken(e){const i=this._interp.atn;let s=this._ctx;const r=i.states[this.state];let n=i.nextTokens(r);if(n.contains(e))return!0;if(!n.contains(t.EPSILON))return!1;for(;null!==s&&s.invokingState>=0&&n.contains(t.EPSILON);){const t=i.states[s.invokingState].transitions[0];if(n=i.nextTokens(t.followState),n.contains(e))return!0;s=s.parentCtx}return!(!n.contains(t.EPSILON)||e!==t.EOF)}getExpectedTokens(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}getExpectedTokensWithinCurrentRule(){const t=this._interp.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){const e=this.getRuleIndexMap()[t];return null!==e?e:-1}getRuleInvocationStack(t){null===(t=t||null)&&(t=this._ctx);const e=[];for(;null!==t;){const i=t.ruleIndex;i<0?e.push("n/a"):e.push(this.ruleNames[i]),t=t.parentCtx}return e}getDFAStrings(){return this._interp.decisionToDFA.toString()}dumpDFA(){let t=!1;for(let e=0;e<this._interp.decisionToDFA.length;e++){const i=this._interp.decisionToDFA[e];i.states.length>0&&(t&&console.log(),this.printer.println("Decision "+i.decision+":"),this.printer.print(i.toString(this.literalNames,this.symbolicNames)),t=!0)}}getSourceName(){return this._input.sourceName}setTrace(t){t?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new Pe(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}Fe.bypassAltsAtnCache={};class Ue extends D{constructor(t){super(),this.parentCtx=null,this.symbol=t}getChild(t){return null}getSymbol(){return this.symbol}getParent(){return this.parentCtx}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return g.INVALID_INTERVAL;const t=this.symbol.tokenIndex;return new g(t,t)}getChildCount(){return 0}accept(t){return t.visitTerminal(this)}getText(){return this.symbol.text}toString(){return this.symbol.type===t.EOF?"<EOF>":this.symbol.text}}class He extends Ue{constructor(t){super(t)}isErrorNode(){return!0}accept(t){return t.visitErrorNode(this)}}class Me extends U{constructor(t,e){super(t,e),this.children=null,this.start=null,this.stop=null,this.exception=null}copyFrom(t){this.parentCtx=t.parentCtx,this.invokingState=t.invokingState,this.children=null,this.start=t.start,this.stop=t.stop,t.children&&(this.children=[],t.children.map((function(t){t instanceof He&&(this.children.push(t),t.parentCtx=this)}),this))}enterRule(t){}exitRule(t){}addChild(t){return null===this.children&&(this.children=[]),this.children.push(t),t}removeLastChild(){null!==this.children&&this.children.pop()}addTokenNode(t){const e=new Ue(t);return this.addChild(e),e.parentCtx=this,e}addErrorNode(t){const e=new He(t);return this.addChild(e),e.parentCtx=this,e}getChild(t,e){if(e=e||null,null===this.children||t<0||t>=this.children.length)return null;if(null===e)return this.children[t];for(let i=0;i<this.children.length;i++){const s=this.children[i];if(s instanceof e){if(0===t)return s;t-=1}}return null}getToken(t,e){if(null===this.children||e<0||e>=this.children.length)return null;for(let i=0;i<this.children.length;i++){const s=this.children[i];if(s instanceof D&&s.symbol.type===t){if(0===e)return s;e-=1}}return null}getTokens(t){if(null===this.children)return[];{const e=[];for(let i=0;i<this.children.length;i++){const s=this.children[i];s instanceof D&&s.symbol.type===t&&e.push(s)}return e}}getTypedRuleContext(t,e){return this.getChild(e,t)}getTypedRuleContexts(t){if(null===this.children)return[];{const e=[];for(let i=0;i<this.children.length;i++){const s=this.children[i];s instanceof t&&e.push(s)}return e}}getChildCount(){return null===this.children?0:this.children.length}getSourceInterval(){return null===this.start||null===this.stop?g.INVALID_INTERVAL:new g(this.start.tokenIndex,this.stop.tokenIndex)}}U.EMPTY=new Me;class Ke{constructor(t){this.tokens=t,this.programs=new Map}getTokenStream(){return this.tokens}insertAfter(t,e){let i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ke.DEFAULT_PROGRAM_NAME;i="number"==typeof t?t:t.tokenIndex;let r=this.getProgram(s),n=new We(this.tokens,i,r.length,e);r.push(n)}insertBefore(t,e){let i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ke.DEFAULT_PROGRAM_NAME;i="number"==typeof t?t:t.tokenIndex;const r=this.getProgram(s),n=new qe(this.tokens,i,r.length,e);r.push(n)}replaceSingle(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ke.DEFAULT_PROGRAM_NAME;this.replace(t,t,e,i)}replace(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ke.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 r=this.getProgram(s),n=new Ye(this.tokens,t,e,r.length,i);r.push(n)}delete(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ke.DEFAULT_PROGRAM_NAME;void 0===e&&(e=t),this.replace(t,e,null,i)}getProgram(t){let e=this.programs.get(t);return null==e&&(e=this.initializeProgram(t)),e}initializeProgram(t){const e=[];return this.programs.set(t,e),e}getText(e){let i,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ke.DEFAULT_PROGRAM_NAME;i=e instanceof g?e:new g(0,this.tokens.size-1),"string"==typeof e&&(s=e);const r=this.programs.get(s);let n=i.start,a=i.stop;if(a>this.tokens.size-1&&(a=this.tokens.size-1),n<0&&(n=0),null==r||0===r.length)return this.tokens.getText(new g(n,a));let o=[],l=this.reduceToSingleOperationPerIndex(r),h=n;for(;h<=a&&h<this.tokens.size;){let e=l.get(h);l.delete(h);let i=this.tokens.get(h);null==e?(i.type!==t.EOF&&o.push(String(i.text)),h++):h=e.execute(o)}if(a===this.tokens.size-1)for(const t of l.values())t.index>=this.tokens.size-1&&o.push(t.text.toString());return o.join("")}reduceToSingleOperationPerIndex(t){for(let e=0;e<t.length;e++){let i=t[e];if(null==i)continue;if(!(i instanceof Ye))continue;let s=i,r=this.getKindOfOps(t,qe,e);for(let e of r)e.index===s.index?(t[e.instructionIndex]=void 0,s.text=e.text.toString()+(null!=s.text?s.text.toString():"")):e.index>s.index&&e.index<=s.lastIndex&&(t[e.instructionIndex]=void 0);let n=this.getKindOfOps(t,Ye,e);for(let e of n){if(e.index>=s.index&&e.lastIndex<=s.lastIndex){t[e.instructionIndex]=void 0;continue}let i=e.lastIndex<s.index||e.index>s.lastIndex;if(null!=e.text||null!=s.text||i){if(!i)throw new Error(`replace op boundaries of ${s} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,s.index=Math.min(e.index,s.index),s.lastIndex=Math.max(e.lastIndex,s.lastIndex)}}for(let e=0;e<t.length;e++){let i=t[e];if(null==i)continue;if(!(i instanceof qe))continue;let s=i,r=this.getKindOfOps(t,qe,e);for(let e of r)e.index===s.index&&(e instanceof We?(s.text=this.catOpText(e.text,s.text),t[e.instructionIndex]=void 0):e instanceof qe&&(s.text=this.catOpText(s.text,e.text),t[e.instructionIndex]=void 0));let n=this.getKindOfOps(t,Ye,e);for(let i of n)if(s.index!==i.index){if(s.index>=i.index&&s.index<=i.lastIndex)throw new Error(`insert op ${s} within boundaries of previous ${i}`)}else i.text=this.catOpText(s.text,i.text),t[e]=void 0}let e=new Map;for(let i of t)if(null!=i){if(null!=e.get(i.index))throw new Error("should only be one op per index");e.set(i.index,i)}return e}catOpText(t,e){let i="",s="";return null!=t&&(i=t.toString()),null!=e&&(s=e.toString()),i+s}getKindOfOps(t,e,i){return t.slice(0,i).filter((t=>t&&t instanceof e))}}var Ve,Be,$e,je,Ge;Ve=Ke,$e="default",je="DEFAULT_PROGRAM_NAME",(Be="symbol"==typeof(Ge=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var s=i.call(t,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(je))?Ge:String(Ge))in Ve?Object.defineProperty(Ve,Be,{value:$e,enumerable:!0,configurable:!0,writable:!0}):Ve[Be]=$e;class ze{constructor(t,e,i,s){this.tokens=t,this.instructionIndex=i,this.index=e,this.text=void 0===s?"":s}toString(){let t=this.constructor.name;const e=t.indexOf("$");return t=t.substring(e+1,t.length),"<"+t+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}class qe extends ze{constructor(t,e,i,s){super(t,e,i,s)}execute(e){return this.text&&e.push(this.text.toString()),this.tokens.get(this.index).type!==t.EOF&&e.push(String(this.tokens.get(this.index).text)),this.index+1}}class We extends qe{constructor(t,e,i,s){super(t,e+1,i,s)}}class Ye extends ze{constructor(t,e,i,s,r){super(t,e,s,r),this.lastIndex=i}execute(t){return this.text&&t.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}const Xe={atn:ne,dfa:he,context:ce,misc:ue,tree:_e,error:be,Token:t,CommonToken:Dt,CharStreams:Ne,CharStream:Se,InputStream:Se,CommonTokenStream:Oe,Lexer:Ht,Parser:Fe,ParserRuleContext:Me,Interval:g,IntervalSet:T,LL1Analyzer:W,Utils:Ie,TokenStreamRewriter:Ke}})();var a=n.dx,o=n.q2,l=n.xf,h=n.c7,c=n._7,u=n.cK,p=n.zs,d=n.hW,m=n.x1,_=n.z5,x=n.TB,f=n._b,y=n.$F,g=n._T,T=n.db,E=n._x,v=n.WU,R=class extends d{constructor(t){super(t),this._interp=new m(this,R._ATN,R.DecisionsToDFA,new T)}get grammarFileName(){return"Solidity.g4"}get literalNames(){return R.literalNames}get symbolicNames(){return R.symbolicNames}get ruleNames(){return R.ruleNames}get serializedATN(){return R._serializedATN}get channelNames(){return R.channelNames}get modeNames(){return R.modeNames}static get _ATN(){return R.__ATN||(R.__ATN=(new o).deserialize(R._serializedATN)),R.__ATN}},b=R;b.T__0=1,b.T__1=2,b.T__2=3,b.T__3=4,b.T__4=5,b.T__5=6,b.T__6=7,b.T__7=8,b.T__8=9,b.T__9=10,b.T__10=11,b.T__11=12,b.T__12=13,b.T__13=14,b.T__14=15,b.T__15=16,b.T__16=17,b.T__17=18,b.T__18=19,b.T__19=20,b.T__20=21,b.T__21=22,b.T__22=23,b.T__23=24,b.T__24=25,b.T__25=26,b.T__26=27,b.T__27=28,b.T__28=29,b.T__29=30,b.T__30=31,b.T__31=32,b.T__32=33,b.T__33=34,b.T__34=35,b.T__35=36,b.T__36=37,b.T__37=38,b.T__38=39,b.T__39=40,b.T__40=41,b.T__41=42,b.T__42=43,b.T__43=44,b.T__44=45,b.T__45=46,b.T__46=47,b.T__47=48,b.T__48=49,b.T__49=50,b.T__50=51,b.T__51=52,b.T__52=53,b.T__53=54,b.T__54=55,b.T__55=56,b.T__56=57,b.T__57=58,b.T__58=59,b.T__59=60,b.T__60=61,b.T__61=62,b.T__62=63,b.T__63=64,b.T__64=65,b.T__65=66,b.T__66=67,b.T__67=68,b.T__68=69,b.T__69=70,b.T__70=71,b.T__71=72,b.T__72=73,b.T__73=74,b.T__74=75,b.T__75=76,b.T__76=77,b.T__77=78,b.T__78=79,b.T__79=80,b.T__80=81,b.T__81=82,b.T__82=83,b.T__83=84,b.T__84=85,b.T__85=86,b.T__86=87,b.T__87=88,b.T__88=89,b.T__89=90,b.T__90=91,b.T__91=92,b.T__92=93,b.T__93=94,b.T__94=95,b.T__95=96,b.Int=97,b.Uint=98,b.Byte=99,b.Fixed=100,b.Ufixed=101,b.BooleanLiteral=102,b.DecimalNumber=103,b.HexNumber=104,b.NumberUnit=105,b.HexLiteralFragment=106,b.ReservedKeyword=107,b.AnonymousKeyword=108,b.BreakKeyword=109,b.ConstantKeyword=110,b.ImmutableKeyword=111,b.ContinueKeyword=112,b.LeaveKeyword=113,b.ExternalKeyword=114,b.IndexedKeyword=115,b.InternalKeyword=116,b.PayableKeyword=117,b.PrivateKeyword=118,b.PublicKeyword=119,b.VirtualKeyword=120,b.PureKeyword=121,b.TypeKeyword=122,b.ViewKeyword=123,b.GlobalKeyword=124,b.ConstructorKeyword=125,b.FallbackKeyword=126,b.ReceiveKeyword=127,b.Identifier=128,b.StringLiteralFragment=129,b.VersionLiteral=130,b.WS=131,b.COMMENT=132,b.LINE_COMMENT=133,b.EOF=v.EOF,b.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],b.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],b.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],b.modeNames=["DEFAULT_MODE"],b.ruleNames=["T__0","T__1","T__2","T__3","T__4","T__5","T__6","T__7","T__8","T__9","T__10","T__11","T__12","T__13","T__14","T__15","T__16","T__17","T__18","T__19","T__20","T__21","T__22","T__23","T__24","T__25","T__26","T__27","T__28","T__29","T__30","T__31","T__32","T__33","T__34","T__35","T__36","T__37","T__38","T__39","T__40","T__41","T__42","T__43","T__44","T__45","T__46","T__47","T__48","T__49","T__50","T__51","T__52","T__53","T__54","T__55","T__56","T__57","T__58","T__59","T__60","T__61","T__62","T__63","T__64","T__65","T__66","T__67","T__68","T__69","T__70","T__71","T__72","T__73","T__74","T__75","T__76","T__77","T__78","T__79","T__80","T__81","T__82","T__83","T__84","T__85","T__86","T__87","T__88","T__89","T__90","T__91","T__92","T__93","T__94","T__95","Int","Uint","Byte","Fixed","Ufixed","NumberOfBits","NumberOfBytes","BooleanLiteral","DecimalNumber","DecimalDigits","HexNumber","HexDigits","NumberUnit","HexLiteralFragment","HexCharacter","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","IdentifierStart","IdentifierPart","StringLiteralFragment","DoubleQuotedStringCharacter","SingleQuotedStringCharacter","VersionLiteral","WS","COMMENT","LINE_COMMENT"],b._serializedATN=[4,0,133,1336,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,27,1,27,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,33,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1,61,1,61,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,67,1,67,1,67,1,68,1,68,1,68,1,68,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,72,1,72,1,72,1,73,1,73,1,73,1,74,1,74,1,74,1,75,1,75,1,75,1,76,1,76,1,77,1,77,1,77,1,78,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,83,1,83,1,83,1,84,1,84,1,84,1,85,1,85,1,85,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,3,96,722,8,96,1,97,1,97,1,97,1,97,1,97,1,97,3,97,730,8,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,3,98,739,8,98,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,1,99,4,99,750,8,99,11,99,12,99,751,3,99,754,8,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,1,100,4,100,766,8,100,11,100,12,100,767,3,100,770,8,100,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,3,101,855,8,101,1,102,1,102,1,102,1,102,1,102,3,102,862,8,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,3,103,873,8,103,1,104,1,104,3,104,877,8,104,1,104,1,104,3,104,881,8,104,1,104,1,104,3,104,885,8,104,1,104,3,104,888,8,104,1,105,1,105,3,105,892,8,105,1,105,5,105,895,8,105,10,105,12,105,898,9,105,1,106,1,106,1,106,1,106,1,107,1,107,3,107,906,8,107,1,107,5,107,909,8,107,10,107,12,107,912,9,107,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,1,108,3,108,970,8,108,1,109,1,109,1,109,1,109,1,109,1,109,3,109,978,8,109,1,109,1,109,1,109,3,109,983,8,109,1,109,3,109,986,8,109,1,110,1,110,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,1,111,3,111,1078,8,111,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,5,132,1240,8,132,10,132,12,132,1243,9,132,1,133,1,133,1,134,1,134,1,135,1,135,1,135,1,135,1,135,1,135,1,135,3,135,1256,8,135,1,135,1,135,5,135,1260,8,135,10,135,12,135,1263,9,135,1,135,1,135,1,135,5,135,1268,8,135,10,135,12,135,1271,9,135,1,135,3,135,1274,8,135,1,136,1,136,1,136,3,136,1279,8,136,1,137,1,137,1,137,3,137,1284,8,137,1,138,4,138,1287,8,138,11,138,12,138,1288,1,138,1,138,4,138,1293,8,138,11,138,12,138,1294,1,138,1,138,4,138,1299,8,138,11,138,12,138,1300,3,138,1303,8,138,1,139,4,139,1306,8,139,11,139,12,139,1307,1,139,1,139,1,140,1,140,1,140,1,140,5,140,1316,8,140,10,140,12,140,1319,9,140,1,140,1,140,1,140,1,140,1,140,1,141,1,141,1,141,1,141,5,141,1330,8,141,10,141,12,141,1333,9,141,1,141,1,141,1,1317,0,142,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59,119,60,121,61,123,62,125,63,127,64,129,65,131,66,133,67,135,68,137,69,139,70,141,71,143,72,145,73,147,74,149,75,151,76,153,77,155,78,157,79,159,80,161,81,163,82,165,83,167,84,169,85,171,86,173,87,175,88,177,89,179,90,181,91,183,92,185,93,187,94,189,95,191,96,193,97,195,98,197,99,199,100,201,101,203,0,205,0,207,102,209,103,211,0,213,104,215,0,217,105,219,106,221,0,223,107,225,108,227,109,229,110,231,111,233,112,235,113,237,114,239,115,241,116,243,117,245,118,247,119,249,120,251,121,253,122,255,123,257,124,259,125,261,126,263,127,265,128,267,0,269,0,271,129,273,0,275,0,277,130,279,131,281,132,283,133,1,0,13,1,0,48,57,1,0,49,57,1,0,49,50,1,0,48,50,2,0,69,69,101,101,2,0,88,88,120,120,3,0,48,57,65,70,97,102,4,0,36,36,65,90,95,95,97,122,5,0,36,36,48,57,65,90,95,95,97,122,4,0,10,10,13,13,34,34,92,92,4,0,10,10,13,13,39,39,92,92,3,0,9,10,12,13,32,32,2,0,10,10,13,13,1418,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,207,1,0,0,0,0,209,1,0,0,0,0,213,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,271,1,0,0,0,0,277,1,0,0,0,0,279,1,0,0,0,0,281,1,0,0,0,0,283,1,0,0,0,1,285,1,0,0,0,3,292,1,0,0,0,5,294,1,0,0,0,7,296,1,0,0,0,9,299,1,0,0,0,11,301,1,0,0,0,13,303,1,0,0,0,15,306,1,0,0,0,17,308,1,0,0,0,19,310,1,0,0,0,21,313,1,0,0,0,23,315,1,0,0,0,25,318,1,0,0,0,27,325,1,0,0,0,29,330,1,0,0,0,31,332,1,0,0,0,33,334,1,0,0,0,35,336,1,0,0,0,37,345,1,0,0,0,39,354,1,0,0,0,41,364,1,0,0,0,43,372,1,0,0,0,45,375,1,0,0,0,47,377,1,0,0,0,49,379,1,0,0,0,51,385,1,0,0,0,53,391,1,0,0,0,55,395,1,0,0,0,57,397,1,0,0,0,59,399,1,0,0,0,61,401,1,0,0,0,63,403,1,0,0,0,65,405,1,0,0,0,67,407,1,0,0,0,69,410,1,0,0,0,71,413,1,0,0,0,73,420,1,0,0,0,75,429,1,0,0,0,77,438,1,0,0,0,79,446,1,0,0,0,81,452,1,0,0,0,83,457,1,0,0,0,85,459,1,0,0,0,87,461,1,0,0,0,89,469,1,0,0,0,91,471,1,0,0,0,93,479,1,0,0,0,95,482,1,0,0,0,97,489,1,0,0,0,99,497,1,0,0,0,101,506,1,0,0,0,103,509,1,0,0,0,105,514,1,0,0,0,107,518,1,0,0,0,109,524,1,0,0,0,111,530,1,0,0,0,113,540,1,0,0,0,115,549,1,0,0,0,117,552,1,0,0,0,119,559,1,0,0,0,121,565,1,0,0,0,123,570,1,0,0,0,125,577,1,0,0,0,127,581,1,0,0,0,129,586,1,0,0,0,131,593,1,0,0,0,133,598,1,0,0,0,135,601,1,0,0,0,137,604,1,0,0,0,139,608,1,0,0,0,141,610,1,0,0,0,143,617,1,0,0,0,145,619,1,0,0,0,147,622,1,0,0,0,149,625,1,0,0,0,151,628,1,0,0,0,153,631,1,0,0,0,155,633,1,0,0,0,157,636,1,0,0,0,159,639,1,0,0,0,161,642,1,0,0,0,163,646,1,0,0,0,165,650,1,0,0,0,167,653,1,0,0,0,169,656,1,0,0,0,171,659,1,0,0,0,173,662,1,0,0,0,175,665,1,0,0,0,177,669,1,0,0,0,179,672,1,0,0,0,181,675,1,0,0,0,183,682,1,0,0,0,185,687,1,0,0,0,187,695,1,0,0,0,189,698,1,0,0,0,191,707,1,0,0,0,193,716,1,0,0,0,195,723,1,0,0,0,197,731,1,0,0,0,199,740,1,0,0,0,201,755,1,0,0,0,203,854,1,0,0,0,205,861,1,0,0,0,207,872,1,0,0,0,209,880,1,0,0,0,211,889,1,0,0,0,213,899,1,0,0,0,215,903,1,0,0,0,217,969,1,0,0,0,219,971,1,0,0,0,221,987,1,0,0,0,223,1077,1,0,0,0,225,1079,1,0,0,0,227,1089,1,0,0,0,229,1095,1,0,0,0,231,1104,1,0,0,0,233,1114,1,0,0,0,235,1123,1,0,0,0,237,1129,1,0,0,0,239,1138,1,0,0,0,241,1146,1,0,0,0,243,1155,1,0,0,0,245,1163,1,0,0,0,247,1171,1,0,0,0,249,1178,1,0,0,0,251,1186,1,0,0,0,253,1191,1,0,0,0,255,1196,1,0,0,0,257,1201,1,0,0,0,259,1208,1,0,0,0,261,1220,1,0,0,0,263,1229,1,0,0,0,265,1237,1,0,0,0,267,1244,1,0,0,0,269,1246,1,0,0,0,271,1255,1,0,0,0,273,1278,1,0,0,0,275,1283,1,0,0,0,277,1286,1,0,0,0,279,1305,1,0,0,0,281,1311,1,0,0,0,283,1325,1,0,0,0,285,286,5,112,0,0,286,287,5,114,0,0,287,288,5,97,0,0,288,289,5,103,0,0,289,290,5,109,0,0,290,291,5,97,0,0,291,2,1,0,0,0,292,293,5,59,0,0,293,4,1,0,0,0,294,295,5,42,0,0,295,6,1,0,0,0,296,297,5,124,0,0,297,298,5,124,0,0,298,8,1,0,0,0,299,300,5,94,0,0,300,10,1,0,0,0,301,302,5,126,0,0,302,12,1,0,0,0,303,304,5,62,0,0,304,305,5,61,0,0,305,14,1,0,0,0,306,307,5,62,0,0,307,16,1,0,0,0,308,309,5,60,0,0,309,18,1,0,0,0,310,311,5,60,0,0,311,312,5,61,0,0,312,20,1,0,0,0,313,314,5,61,0,0,314,22,1,0,0,0,315,316,5,97,0,0,316,317,5,115,0,0,317,24,1,0,0,0,318,319,5,105,0,0,319,320,5,109,0,0,320,321,5,112,0,0,321,322,5,111,0,0,322,323,5,114,0,0,323,324,5,116,0,0,324,26,1,0,0,0,325,326,5,102,0,0,326,327,5,114,0,0,327,328,5,111,0,0,328,329,5,109,0,0,329,28,1,0,0,0,330,331,5,123,0,0,331,30,1,0,0,0,332,333,5,44,0,0,333,32,1,0,0,0,334,335,5,125,0,0,335,34,1,0,0,0,336,337,5,97,0,0,337,338,5,98,0,0,338,339,5,115,0,0,339,340,5,116,0,0,340,341,5,114,0,0,341,342,5,97,0,0,342,343,5,99,0,0,343,344,5,116,0,0,344,36,1,0,0,0,345,346,5,99,0,0,346,347,5,111,0,0,347,348,5,110,0,0,348,349,5,116,0,0,349,350,5,114,0,0,350,351,5,97,0,0,351,352,5,99,0,0,352,353,5,116,0,0,353,38,1,0,0,0,354,355,5,105,0,0,355,356,5,110,0,0,356,357,5,116,0,0,357,358,5,101,0,0,358,359,5,114,0,0,359,360,5,102,0,0,360,361,5,97,0,0,361,362,5,99,0,0,362,363,5,101,0,0,363,40,1,0,0,0,364,365,5,108,0,0,365,366,5,105,0,0,366,367,5,98,0,0,367,368,5,114,0,0,368,369,5,97,0,0,369,370,5,114,0,0,370,371,5,121,0,0,371,42,1,0,0,0,372,373,5,105,0,0,373,374,5,115,0,0,374,44,1,0,0,0,375,376,5,40,0,0,376,46,1,0,0,0,377,378,5,41,0,0,378,48,1,0,0,0,379,380,5,101,0,0,380,381,5,114,0,0,381,382,5,114,0,0,382,383,5,111,0,0,383,384,5,114,0,0,384,50,1,0,0,0,385,386,5,117,0,0,386,387,5,115,0,0,387,388,5,105,0,0,388,389,5,110,0,0,389,390,5,103,0,0,390,52,1,0,0,0,391,392,5,102,0,0,392,393,5,111,0,0,393,394,5,114,0,0,394,54,1,0,0,0,395,396,5,124,0,0,396,56,1,0,0,0,397,398,5,38,0,0,398,58,1,0,0,0,399,400,5,43,0,0,400,60,1,0,0,0,401,402,5,45,0,0,402,62,1,0,0,0,403,404,5,47,0,0,404,64,1,0,0,0,405,406,5,37,0,0,406,66,1,0,0,0,407,408,5,61,0,0,408,409,5,61,0,0,409,68,1,0,0,0,410,411,5,33,0,0,411,412,5,61,0,0,412,70,1,0,0,0,413,414,5,115,0,0,414,415,5,116,0,0,415,416,5,114,0,0,416,417,5,117,0,0,417,418,5,99,0,0,418,419,5,116,0,0,419,72,1,0,0,0,420,421,5,109,0,0,421,422,5,111,0,0,422,423,5,100,0,0,423,424,5,105,0,0,424,425,5,102,0,0,425,426,5,105,0,0,426,427,5,101,0,0,427,428,5,114,0,0,428,74,1,0,0,0,429,430,5,102,0,0,430,431,5,117,0,0,431,432,5,110,0,0,432,433,5,99,0,0,433,434,5,116,0,0,434,435,5,105,0,0,435,436,5,111,0,0,436,437,5,110,0,0,437,76,1,0,0,0,438,439,5,114,0,0,439,440,5,101,0,0,440,441,5,116,0,0,441,442,5,117,0,0,442,443,5,114,0,0,443,444,5,110,0,0,444,445,5,115,0,0,445,78,1,0,0,0,446,447,5,101,0,0,447,448,5,118,0,0,448,449,5,101,0,0,449,450,5,110,0,0,450,451,5,116,0,0,451,80,1,0,0,0,452,453,5,101,0,0,453,454,5,110,0,0,454,455,5,117,0,0,455,456,5,109,0,0,456,82,1,0,0,0,457,458,5,91,0,0,458,84,1,0,0,0,459,460,5,93,0,0,460,86,1,0,0,0,461,462,5,97,0,0,462,463,5,100,0,0,463,464,5,100,0,0,464,465,5,114,0,0,465,466,5,101,0,0,466,467,5,115,0,0,467,468,5,115,0,0,468,88,1,0,0,0,469,470,5,46,0,0,470,90,1,0,0,0,471,472,5,109,0,0,472,473,5,97,0,0,473,474,5,112,0,0,474,475,5,112,0,0,475,476,5,105,0,0,476,477,5,110,0,0,477,478,5,103,0,0,478,92,1,0,0,0,479,480,5,61,0,0,480,481,5,62,0,0,481,94,1,0,0,0,482,483,5,109,0,0,483,484,5,101,0,0,484,485,5,109,0,0,485,486,5,111,0,0,486,487,5,114,0,0,487,488,5,121,0,0,488,96,1,0,0,0,489,490,5,115,0,0,490,491,5,116,0,0,491,492,5,111,0,0,492,493,5,114,0,0,493,494,5,97,0,0,494,495,5,103,0,0,495,496,5,101,0,0,496,98,1,0,0,0,497,498,5,99,0,0,498,499,5,97,0,0,499,500,5,108,0,0,500,501,5,108,0,0,501,502,5,100,0,0,502,503,5,97,0,0,503,504,5,116,0,0,504,505,5,97,0,0,505,100,1,0,0,0,506,507,5,105,0,0,507,508,5,102,0,0,508,102,1,0,0,0,509,510,5,101,0,0,510,511,5,108,0,0,511,512,5,115,0,0,512,513,5,101,0,0,513,104,1,0,0,0,514,515,5,116,0,0,515,516,5,114,0,0,516,517,5,121,0,0,517,106,1,0,0,0,518,519,5,99,0,0,519,520,5,97,0,0,520,521,5,116,0,0,521,522,5,99,0,0,522,523,5,104,0,0,523,108,1,0,0,0,524,525,5,119,0,0,525,526,5,104,0,0,526,527,5,105,0,0,527,528,5,108,0,0,528,529,5,101,0,0,529,110,1,0,0,0,530,531,5,117,0,0,531,532,5,110,0,0,532,533,5,99,0,0,533,534,5,104,0,0,534,535,5,101,0,0,535,536,5,99,0,0,536,537,5,107,0,0,537,538,5,101,0,0,538,539,5,100,0,0,539,112,1,0,0,0,540,541,5,97,0,0,541,542,5,115,0,0,542,543,5,115,0,0,543,544,5,101,0,0,544,545,5,109,0,0,545,546,5,98,0,0,546,547,5,108,0,0,547,548,5,121,0,0,548,114,1,0,0,0,549,550,5,100,0,0,550,551,5,111,0,0,551,116,1,0,0,0,552,553,5,114,0,0,553,554,5,101,0,0,554,555,5,116,0,0,555,556,5,117,0,0,556,557,5,114,0,0,557,558,5,110,0,0,558,118,1,0,0,0,559,560,5,116,0,0,560,561,5,104,0,0,561,562,5,114,0,0,562,563,5,111,0,0,563,564,5,119,0,0,564,120,1,0,0,0,565,566,5,101,0,0,566,567,5,109,0,0,567,568,5,105,0,0,568,569,5,116,0,0,569,122,1,0,0,0,570,571,5,114,0,0,571,572,5,101,0,0,572,573,5,118,0,0,573,574,5,101,0,0,574,575,5,114,0,0,575,576,5,116,0,0,576,124,1,0,0,0,577,578,5,118,0,0,578,579,5,97,0,0,579,580,5,114,0,0,580,126,1,0,0,0,581,582,5,98,0,0,582,583,5,111,0,0,583,584,5,111,0,0,584,585,5,108,0,0,585,128,1,0,0,0,586,587,5,115,0,0,587,588,5,116,0,0,588,589,5,114,0,0,589,590,5,105,0,0,590,591,5,110,0,0,591,592,5,103,0,0,592,130,1,0,0,0,593,594,5,98,0,0,594,595,5,121,0,0,595,596,5,116,0,0,596,597,5,101,0,0,597,132,1,0,0,0,598,599,5,43,0,0,599,600,5,43,0,0,600,134,1,0,0,0,601,602,5,45,0,0,602,603,5,45,0,0,603,136,1,0,0,0,604,605,5,110,0,0,605,606,5,101,0,0,606,607,5,119,0,0,607,138,1,0,0,0,608,609,5,58,0,0,609,140,1,0,0,0,610,611,5,100,0,0,611,612,5,101,0,0,612,613,5,108,0,0,613,614,5,101,0,0,614,615,5,116,0,0,615,616,5,101,0,0,616,142,1,0,0,0,617,618,5,33,0,0,618,144,1,0,0,0,619,620,5,42,0,0,620,621,5,42,0,0,621,146,1,0,0,0,622,623,5,60,0,0,623,624,5,60,0,0,624,148,1,0,0,0,625,626,5,62,0,0,626,627,5,62,0,0,627,150,1,0,0,0,628,629,5,38,0,0,629,630,5,38,0,0,630,152,1,0,0,0,631,632,5,63,0,0,632,154,1,0,0,0,633,634,5,124,0,0,634,635,5,61,0,0,635,156,1,0,0,0,636,637,5,94,0,0,637,638,5,61,0,0,638,158,1,0,0,0,639,640,5,38,0,0,640,641,5,61,0,0,641,160,1,0,0,0,642,643,5,60,0,0,643,644,5,60,0,0,644,645,5,61,0,0,645,162,1,0,0,0,646,647,5,62,0,0,647,648,5,62,0,0,648,649,5,61,0,0,649,164,1,0,0,0,650,651,5,43,0,0,651,652,5,61,0,0,652,166,1,0,0,0,653,654,5,45,0,0,654,655,5,61,0,0,655,168,1,0,0,0,656,657,5,42,0,0,657,658,5,61,0,0,658,170,1,0,0,0,659,660,5,47,0,0,660,661,5,61,0,0,661,172,1,0,0,0,662,663,5,37,0,0,663,664,5,61,0,0,664,174,1,0,0,0,665,666,5,108,0,0,666,667,5,101,0,0,667,668,5,116,0,0,668,176,1,0,0,0,669,670,5,58,0,0,670,671,5,61,0,0,671,178,1,0,0,0,672,673,5,61,0,0,673,674,5,58,0,0,674,180,1,0,0,0,675,676,5,115,0,0,676,677,5,119,0,0,677,678,5,105,0,0,678,679,5,116,0,0,679,680,5,99,0,0,680,681,5,104,0,0,681,182,1,0,0,0,682,683,5,99,0,0,683,684,5,97,0,0,684,685,5,115,0,0,685,686,5,101,0,0,686,184,1,0,0,0,687,688,5,100,0,0,688,689,5,101,0,0,689,690,5,102,0,0,690,691,5,97,0,0,691,692,5,117,0,0,692,693,5,108,0,0,693,694,5,116,0,0,694,186,1,0,0,0,695,696,5,45,0,0,696,697,5,62,0,0,697,188,1,0,0,0,698,699,5,99,0,0,699,700,5,97,0,0,700,701,5,108,0,0,701,702,5,108,0,0,702,703,5,98,0,0,703,704,5,97,0,0,704,705,5,99,0,0,705,706,5,107,0,0,706,190,1,0,0,0,707,708,5,111,0,0,708,709,5,118,0,0,709,710,5,101,0,0,710,711,5,114,0,0,711,712,5,114,0,0,712,713,5,105,0,0,713,714,5,100,0,0,714,715,5,101,0,0,715,192,1,0,0,0,716,717,5,105,0,0,717,718,5,110,0,0,718,719,5,116,0,0,719,721,1,0,0,0,720,722,3,203,101,0,721,720,1,0,0,0,721,722,1,0,0,0,722,194,1,0,0,0,723,724,5,117,0,0,724,725,5,105,0,0,725,726,5,110,0,0,726,727,5,116,0,0,727,729,1,0,0,0,728,730,3,203,101,0,729,728,1,0,0,0,729,730,1,0,0,0,730,196,1,0,0,0,731,732,5,98,0,0,732,733,5,121,0,0,733,734,5,116,0,0,734,735,5,101,0,0,735,736,5,115,0,0,736,738,1,0,0,0,737,739,3,205,102,0,738,737,1,0,0,0,738,739,1,0,0,0,739,198,1,0,0,0,740,741,5,102,0,0,741,742,5,105,0,0,742,743,5,120,0,0,743,744,5,101,0,0,744,745,5,100,0,0,745,753,1,0,0,0,746,747,3,203,101,0,747,749,5,120,0,0,748,750,7,0,0,0,749,748,1,0,0,0,750,751,1,0,0,0,751,749,1,0,0,0,751,752,1,0,0,0,752,754,1,0,0,0,753,746,1,0,0,0,753,754,1,0,0,0,754,200,1,0,0,0,755,756,5,117,0,0,756,757,5,102,0,0,757,758,5,105,0,0,758,759,5,120,0,0,759,760,5,101,0,0,760,761,5,100,0,0,761,769,1,0,0,0,762,763,3,203,101,0,763,765,5,120,0,0,764,766,7,0,0,0,765,764,1,0,0,0,766,767,1,0,0,0,767,765,1,0,0,0,767,768,1,0,0,0,768,770,1,0,0,0,769,762,1,0,0,0,769,770,1,0,0,0,770,202,1,0,0,0,771,855,5,56,0,0,772,773,5,49,0,0,773,855,5,54,0,0,774,775,5,50,0,0,775,855,5,52,0,0,776,777,5,51,0,0,777,855,5,50,0,0,778,779,5,52,0,0,779,855,5,48,0,0,780,781,5,52,0,0,781,855,5,56,0,0,782,783,5,53,0,0,783,855,5,54,0,0,784,785,5,54,0,0,785,855,5,52,0,0,786,787,5,55,0,0,787,855,5,50,0,0,788,789,5,56,0,0,789,855,5,48,0,0,790,791,5,56,0,0,791,855,5,56,0,0,792,793,5,57,0,0,793,855,5,54,0,0,794,795,5,49,0,0,795,796,5,48,0,0,796,855,5,52,0,0,797,798,5,49,0,0,798,799,5,49,0,0,799,855,5,50,0,0,800,801,5,49,0,0,801,802,5,50,0,0,802,855,5,48,0,0,803,804,5,49,0,0,804,805,5,50,0,0,805,855,5,56,0,0,806,807,5,49,0,0,807,808,5,51,0,0,808,855,5,54,0,0,809,810,5,49,0,0,810,811,5,52,0,0,811,855,5,52,0,0,812,813,5,49,0,0,813,814,5,53,0,0,814,855,5,50,0,0,815,816,5,49,0,0,816,817,5,54,0,0,817,855,5,48,0,0,818,819,5,49,0,0,819,820,5,54,0,0,820,855,5,56,0,0,821,822,5,49,0,0,822,823,5,55,0,0,823,855,5,54,0,0,824,825,5,49,0,0,825,826,5,56,0,0,826,855,5,52,0,0,827,828,5,49,0,0,828,829,5,57,0,0,829,855,5,50,0,0,830,831,5,50,0,0,831,832,5,48,0,0,832,855,5,48,0,0,833,834,5,50,0,0,834,835,5,48,0,0,835,855,5,56,0,0,836,837,5,50,0,0,837,838,5,49,0,0,838,855,5,54,0,0,839,840,5,50,0,0,840,841,5,50,0,0,841,855,5,52,0,0,842,843,5,50,0,0,843,844,5,51,0,0,844,855,5,50,0,0,845,846,5,50,0,0,846,847,5,52,0,0,847,855,5,48,0,0,848,849,5,50,0,0,849,850,5,52,0,0,850,855,5,56,0,0,851,852,5,50,0,0,852,853,5,53,0,0,853,855,5,54,0,0,854,771,1,0,0,0,854,772,1,0,0,0,854,774,1,0,0,0,854,776,1,0,0,0,854,778,1,0,0,0,854,780,1,0,0,0,854,782,1,0,0,0,854,784,1,0,0,0,854,786,1,0,0,0,854,788,1,0,0,0,854,790,1,0,0,0,854,792,1,0,0,0,854,794,1,0,0,0,854,797,1,0,0,0,854,800,1,0,0,0,854,803,1,0,0,0,854,806,1,0,0,0,854,809,1,0,0,0,854,812,1,0,0,0,854,815,1,0,0,0,854,818,1,0,0,0,854,821,1,0,0,0,854,824,1,0,0,0,854,827,1,0,0,0,854,830,1,0,0,0,854,833,1,0,0,0,854,836,1,0,0,0,854,839,1,0,0,0,854,842,1,0,0,0,854,845,1,0,0,0,854,848,1,0,0,0,854,851,1,0,0,0,855,204,1,0,0,0,856,862,7,1,0,0,857,858,7,2,0,0,858,862,7,0,0,0,859,860,5,51,0,0,860,862,7,3,0,0,861,856,1,0,0,0,861,857,1,0,0,0,861,859,1,0,0,0,862,206,1,0,0,0,863,864,5,116,0,0,864,865,5,114,0,0,865,866,5,117,0,0,866,873,5,101,0,0,867,868,5,102,0,0,868,869,5,97,0,0,869,870,5,108,0,0,870,871,5,115,0,0,871,873,5,101,0,0,872,863,1,0,0,0,872,867,1,0,0,0,873,208,1,0,0,0,874,881,3,211,105,0,875,877,3,211,105,0,876,875,1,0,0,0,876,877,1,0,0,0,877,878,1,0,0,0,878,879,5,46,0,0,879,881,3,211,105,0,880,874,1,0,0,0,880,876,1,0,0,0,881,887,1,0,0,0,882,884,7,4,0,0,883,885,5,45,0,0,884,883,1,0,0,0,884,885,1,0,0,0,885,886,1,0,0,0,886,888,3,211,105,0,887,882,1,0,0,0,887,888,1,0,0,0,888,210,1,0,0,0,889,896,7,0,0,0,890,892,5,95,0,0,891,890,1,0,0,0,891,892,1,0,0,0,892,893,1,0,0,0,893,895,7,0,0,0,894,891,1,0,0,0,895,898,1,0,0,0,896,894,1,0,0,0,896,897,1,0,0,0,897,212,1,0,0,0,898,896,1,0,0,0,899,900,5,48,0,0,900,901,7,5,0,0,901,902,3,215,107,0,902,214,1,0,0,0,903,910,3,221,110,0,904,906,5,95,0,0,905,904,1,0,0,0,905,906,1,0,0,0,906,907,1,0,0,0,907,909,3,221,110,0,908,905,1,0,0,0,909,912,1,0,0,0,910,908,1,0,0,0,910,911,1,0,0,0,911,216,1,0,0,0,912,910,1,0,0,0,913,914,5,119,0,0,914,915,5,101,0,0,915,970,5,105,0,0,916,917,5,103,0,0,917,918,5,119,0,0,918,919,5,101,0,0,919,970,5,105,0,0,920,921,5,115,0,0,921,922,5,122,0,0,922,923,5,97,0,0,923,924,5,98,0,0,924,970,5,111,0,0,925,926,5,102,0,0,926,927,5,105,0,0,927,928,5,110,0,0,928,929,5,110,0,0,929,930,5,101,0,0,930,970,5,121,0,0,931,932,5,101,0,0,932,933,5,116,0,0,933,934,5,104,0,0,934,935,5,101,0,0,935,970,5,114,0,0,936,937,5,115,0,0,937,938,5,101,0,0,938,939,5,99,0,0,939,940,5,111,0,0,940,941,5,110,0,0,941,942,5,100,0,0,942,970,5,115,0,0,943,944,5,109,0,0,944,945,5,105,0,0,945,946,5,110,0,0,946,947,5,117,0,0,947,948,5,116,0,0,948,949,5,101,0,0,949,970,5,115,0,0,950,951,5,104,0,0,951,952,5,111,0,0,952,953,5,117,0,0,953,954,5,114,0,0,954,970,5,115,0,0,955,956,5,100,0,0,956,957,5,97,0,0,957,958,5,121,0,0,958,970,5,115,0,0,959,960,5,119,0,0,960,961,5,101,0,0,961,962,5,101,0,0,962,963,5,107,0,0,963,970,5,115,0,0,964,965,5,121,0,0,965,966,5,101,0,0,966,967,5,97,0,0,967,968,5,114,0,0,968,970,5,115,0,0,969,913,1,0,0,0,969,916,1,0,0,0,969,920,1,0,0,0,969,925,1,0,0,0,969,931,1,0,0,0,969,936,1,0,0,0,969,943,1,0,0,0,969,950,1,0,0,0,969,955,1,0,0,0,969,959,1,0,0,0,969,964,1,0,0,0,970,218,1,0,0,0,971,972,5,104,0,0,972,973,5,101,0,0,973,974,5,120,0,0,974,985,1,0,0,0,975,977,5,34,0,0,976,978,3,215,107,0,977,976,1,0,0,0,977,978,1,0,0,0,978,979,1,0,0,0,979,986,5,34,0,0,980,982,5,39,0,0,981,983,3,215,107,0,982,981,1,0,0,0,982,983,1,0,0,0,983,984,1,0,0,0,984,986,5,39,0,0,985,975,1,0,0,0,985,980,1,0,0,0,986,220,1,0,0,0,987,988,7,6,0,0,988,222,1,0,0,0,989,990,5,97,0,0,990,991,5,98,0,0,991,992,5,115,0,0,992,993,5,116,0,0,993,994,5,114,0,0,994,995,5,97,0,0,995,996,5,99,0,0,996,1078,5,116,0,0,997,998,5,97,0,0,998,999,5,102,0,0,999,1e3,5,116,0,0,1e3,1001,5,101,0,0,1001,1078,5,114,0,0,1002,1003,5,99,0,0,1003,1004,5,97,0,0,1004,1005,5,115,0,0,1005,1078,5,101,0,0,1006,1007,5,99,0,0,1007,1008,5,97,0,0,1008,1009,5,116,0,0,1009,1010,5,99,0,0,1010,1078,5,104,0,0,1011,1012,5,100,0,0,1012,1013,5,101,0,0,1013,1014,5,102,0,0,1014,1015,5,97,0,0,1015,1016,5,117,0,0,1016,1017,5,108,0,0,1017,1078,5,116,0,0,1018,1019,5,102,0,0,1019,1020,5,105,0,0,1020,1021,5,110,0,0,1021,1022,5,97,0,0,1022,1078,5,108,0,0,1023,1024,5,105,0,0,1024,1078,5,110,0,0,1025,1026,5,105,0,0,1026,1027,5,110,0,0,1027,1028,5,108,0,0,1028,1029,5,105,0,0,1029,1030,5,110,0,0,1030,1078,5,101,0,0,1031,1032,5,108,0,0,1032,1033,5,101,0,0,1033,1078,5,116,0,0,1034,1035,5,109,0,0,1035,1036,5,97,0,0,1036,1037,5,116,0,0,1037,1038,5,99,0,0,1038,1078,5,104,0,0,1039,1040,5,110,0,0,1040,1041,5,117,0,0,1041,1042,5,108,0,0,1042,1078,5,108,0,0,1043,1044,5,111,0,0,1044,1078,5,102,0,0,1045,1046,5,114,0,0,1046,1047,5,101,0,0,1047,1048,5,108,0,0,1048,1049,5,111,0,0,1049,1050,5,99,0,0,1050,1051,5,97,0,0,1051,1052,5,116,0,0,1052,1053,5,97,0,0,1053,1054,5,98,0,0,1054,1055,5,108,0,0,1055,1078,5,101,0,0,1056,1057,5,115,0,0,1057,1058,5,116,0,0,1058,1059,5,97,0,0,1059,1060,5,116,0,0,1060,1061,5,105,0,0,1061,1078,5,99,0,0,1062,1063,5,115,0,0,1063,1064,5,119,0,0,1064,1065,5,105,0,0,1065,1066,5,116,0,0,1066,1067,5,99,0,0,1067,1078,5,104,0,0,1068,1069,5,116,0,0,1069,1070,5,114,0,0,1070,1078,5,121,0,0,1071,1072,5,116,0,0,1072,1073,5,121,0,0,1073,1074,5,112,0,0,1074,1075,5,101,0,0,1075,1076,5,111,0,0,1076,1078,5,102,0,0,1077,989,1,0,0,0,1077,997,1,0,0,0,1077,1002,1,0,0,0,1077,1006,1,0,0,0,1077,1011,1,0,0,0,1077,1018,1,0,0,0,1077,1023,1,0,0,0,1077,1025,1,0,0,0,1077,1031,1,0,0,0,1077,1034,1,0,0,0,1077,1039,1,0,0,0,1077,1043,1,0,0,0,1077,1045,1,0,0,0,1077,1056,1,0,0,0,1077,1062,1,0,0,0,1077,1068,1,0,0,0,1077,1071,1,0,0,0,1078,224,1,0,0,0,1079,1080,5,97,0,0,1080,1081,5,110,0,0,1081,1082,5,111,0,0,1082,1083,5,110,0,0,1083,1084,5,121,0,0,1084,1085,5,109,0,0,1085,1086,5,111,0,0,1086,1087,5,117,0,0,1087,1088,5,115,0,0,1088,226,1,0,0,0,1089,1090,5,98,0,0,1090,1091,5,114,0,0,1091,1092,5,101,0,0,1092,1093,5,97,0,0,1093,1094,5,107,0,0,1094,228,1,0,0,0,1095,1096,5,99,0,0,1096,1097,5,111,0,0,1097,1098,5,110,0,0,1098,1099,5,115,0,0,1099,1100,5,116,0,0,1100,1101,5,97,0,0,1101,1102,5,110,0,0,1102,1103,5,116,0,0,1103,230,1,0,0,0,1104,1105,5,105,0,0,1105,1106,5,109,0,0,1106,1107,5,109,0,0,1107,1108,5,117,0,0,1108,1109,5,116,0,0,1109,1110,5,97,0,0,1110,1111,5,98,0,0,1111,1112,5,108,0,0,1112,1113,5,101,0,0,1113,232,1,0,0,0,1114,1115,5,99,0,0,1115,1116,5,111,0,0,1116,1117,5,110,0,0,1117,1118,5,116,0,0,1118,1119,5,105,0,0,1119,1120,5,110,0,0,1120,1121,5,117,0,0,1121,1122,5,101,0,0,1122,234,1,0,0,0,1123,1124,5,108,0,0,1124,1125,5,101,0,0,1125,1126,5,97,0,0,1126,1127,5,118,0,0,1127,1128,5,101,0,0,1128,236,1,0,0,0,1129,1130,5,101,0,0,1130,1131,5,120,0,0,1131,1132,5,116,0,0,1132,1133,5,101,0,0,1133,1134,5,114,0,0,1134,1135,5,110,0,0,1135,1136,5,97,0,0,1136,1137,5,108,0,0,1137,238,1,0,0,0,1138,1139,5,105,0,0,1139,1140,5,110,0,0,1140,1141,5,100,0,0,1141,1142,5,101,0,0,1142,1143,5,120,0,0,1143,1144,5,101,0,0,1144,1145,5,100,0,0,1145,240,1,0,0,0,1146,1147,5,105,0,0,1147,1148,5,110,0,0,1148,1149,5,116,0,0,1149,1150,5,101,0,0,1150,1151,5,114,0,0,1151,1152,5,110,0,0,1152,1153,5,97,0,0,1153,1154,5,108,0,0,1154,242,1,0,0,0,1155,1156,5,112,0,0,1156,1157,5,97,0,0,1157,1158,5,121,0,0,1158,1159,5,97,0,0,1159,1160,5,98,0,0,1160,1161,5,108,0,0,1161,1162,5,101,0,0,1162,244,1,0,0,0,1163,1164,5,112,0,0,1164,1165,5,114,0,0,1165,1166,5,105,0,0,1166,1167,5,118,0,0,1167,1168,5,97,0,0,1168,1169,5,116,0,0,1169,1170,5,101,0,0,1170,246,1,0,0,0,1171,1172,5,112,0,0,1172,1173,5,117,0,0,1173,1174,5,98,0,0,1174,1175,5,108,0,0,1175,1176,5,105,0,0,1176,1177,5,99,0,0,1177,248,1,0,0,0,1178,1179,5,118,0,0,1179,1180,5,105,0,0,1180,1181,5,114,0,0,1181,1182,5,116,0,0,1182,1183,5,117,0,0,1183,1184,5,97,0,0,1184,1185,5,108,0,0,1185,250,1,0,0,0,1186,1187,5,112,0,0,1187,1188,5,117,0,0,1188,1189,5,114,0,0,1189,1190,5,101,0,0,1190,252,1,0,0,0,1191,1192,5,116,0,0,1192,1193,5,121,0,0,1193,1194,5,112,0,0,1194,1195,5,101,0,0,1195,254,1,0,0,0,1196,1197,5,118,0,0,1197,1198,5,105,0,0,1198,1199,5,101,0,0,1199,1200,5,119,0,0,1200,256,1,0,0,0,1201,1202,5,103,0,0,1202,1203,5,108,0,0,1203,1204,5,111,0,0,1204,1205,5,98,0,0,1205,1206,5,97,0,0,1206,1207,5,108,0,0,1207,258,1,0,0,0,1208,1209,5,99,0,0,1209,1210,5,111,0,0,1210,1211,5,110,0,0,1211,1212,5,115,0,0,1212,1213,5,116,0,0,1213,1214,5,114,0,0,1214,1215,5,117,0,0,1215,1216,5,99,0,0,1216,1217,5,116,0,0,1217,1218,5,111,0,0,1218,1219,5,114,0,0,1219,260,1,0,0,0,1220,1221,5,102,0,0,1221,1222,5,97,0,0,1222,1223,5,108,0,0,1223,1224,5,108,0,0,1224,1225,5,98,0,0,1225,1226,5,97,0,0,1226,1227,5,99,0,0,1227,1228,5,107,0,0,1228,262,1,0,0,0,1229,1230,5,114,0,0,1230,1231,5,101,0,0,1231,1232,5,99,0,0,1232,1233,5,101,0,0,1233,1234,5,105,0,0,1234,1235,5,118,0,0,1235,1236,5,101,0,0,1236,264,1,0,0,0,1237,1241,3,267,133,0,1238,1240,3,269,134,0,1239,1238,1,0,0,0,1240,1243,1,0,0,0,1241,1239,1,0,0,0,1241,1242,1,0,0,0,1242,266,1,0,0,0,1243,1241,1,0,0,0,1244,1245,7,7,0,0,1245,268,1,0,0,0,1246,1247,7,8,0,0,1247,270,1,0,0,0,1248,1249,5,117,0,0,1249,1250,5,110,0,0,1250,1251,5,105,0,0,1251,1252,5,99,0,0,1252,1253,5,111,0,0,1253,1254,5,100,0,0,1254,1256,5,101,0,0,1255,1248,1,0,0,0,1255,1256,1,0,0,0,1256,1273,1,0,0,0,1257,1261,5,34,0,0,1258,1260,3,273,136,0,1259,1258,1,0,0,0,1260,1263,1,0,0,0,1261,1259,1,0,0,0,1261,1262,1,0,0,0,1262,1264,1,0,0,0,1263,1261,1,0,0,0,1264,1274,5,34,0,0,1265,1269,5,39,0,0,1266,1268,3,275,137,0,1267,1266,1,0,0,0,1268,1271,1,0,0,0,1269,1267,1,0,0,0,1269,1270,1,0,0,0,1270,1272,1,0,0,0,1271,1269,1,0,0,0,1272,1274,5,39,0,0,1273,1257,1,0,0,0,1273,1265,1,0,0,0,1274,272,1,0,0,0,1275,1279,8,9,0,0,1276,1277,5,92,0,0,1277,1279,9,0,0,0,1278,1275,1,0,0,0,1278,1276,1,0,0,0,1279,274,1,0,0,0,1280,1284,8,10,0,0,1281,1282,5,92,0,0,1282,1284,9,0,0,0,1283,1280,1,0,0,0,1283,1281,1,0,0,0,1284,276,1,0,0,0,1285,1287,7,0,0,0,1286,1285,1,0,0,0,1287,1288,1,0,0,0,1288,1286,1,0,0,0,1288,1289,1,0,0,0,1289,1290,1,0,0,0,1290,1292,5,46,0,0,1291,1293,7,0,0,0,1292,1291,1,0,0,0,1293,1294,1,0,0,0,1294,1292,1,0,0,0,1294,1295,1,0,0,0,1295,1302,1,0,0,0,1296,1298,5,46,0,0,1297,1299,7,0,0,0,1298,1297,1,0,0,0,1299,1300,1,0,0,0,1300,1298,1,0,0,0,1300,1301,1,0,0,0,1301,1303,1,0,0,0,1302,1296,1,0,0,0,1302,1303,1,0,0,0,1303,278,1,0,0,0,1304,1306,7,11,0,0,1305,1304,1,0,0,0,1306,1307,1,0,0,0,1307,1305,1,0,0,0,1307,1308,1,0,0,0,1308,1309,1,0,0,0,1309,1310,6,139,0,0,1310,280,1,0,0,0,1311,1312,5,47,0,0,1312,1313,5,42,0,0,1313,1317,1,0,0,0,1314,1316,9,0,0,0,1315,1314,1,0,0,0,1316,1319,1,0,0,0,1317,1318,1,0,0,0,1317,1315,1,0,0,0,1318,1320,1,0,0,0,1319,1317,1,0,0,0,1320,1321,5,42,0,0,1321,1322,5,47,0,0,1322,1323,1,0,0,0,1323,1324,6,140,1,0,1324,282,1,0,0,0,1325,1326,5,47,0,0,1326,1327,5,47,0,0,1327,1331,1,0,0,0,1328,1330,8,12,0,0,1329,1328,1,0,0,0,1330,1333,1,0,0,0,1331,1329,1,0,0,0,1331,1332,1,0,0,0,1332,1334,1,0,0,0,1333,1331,1,0,0,0,1334,1335,6,141,1,0,1335,284,1,0,0,0,38,0,721,729,738,751,753,767,769,854,861,872,876,880,884,887,891,896,905,910,969,977,982,985,1077,1241,1255,1261,1269,1273,1278,1283,1288,1294,1300,1302,1307,1317,1331,2,6,0,0,0,1,0],b.DecisionsToDFA=R._ATN.decisionToState.map(((t,e)=>new c(t,e)));var L=b,S=class extends f{get grammarFileName(){return"Solidity.g4"}get literalNames(){return S.literalNames}get symbolicNames(){return S.symbolicNames}get ruleNames(){return S.ruleNames}get serializedATN(){return S._serializedATN}createFailedPredicateException(t,e){return new p(this,t,e)}constructor(t){super(t),this._interp=new y(this,S._ATN,S.DecisionsToDFA,new T)}sourceUnit(){let t,e=new w(this,this._ctx,this.state);this.enterRule(e,0,S.RULE_sourceUnit);try{for(this.enterOuterAlt(e,1),this.state=215,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&104620034)||0==(t-36&-32)&&0!=(1<<t-36&2080392501)||0==(t-95&-32)&&0!=(1<<t-95&3896770685)||127===t||128===t;){switch(this.state=213,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,0,this._ctx)){case 1:this.state=202,this.pragmaDirective();break;case 2:this.state=203,this.importDirective();break;case 3:this.state=204,this.contractDefinition();break;case 4:this.state=205,this.enumDefinition();break;case 5:this.state=206,this.eventDefinition();break;case 6:this.state=207,this.structDefinition();break;case 7:this.state=208,this.functionDefinition();break;case 8:this.state=209,this.fileLevelConstant();break;case 9:this.state=210,this.customErrorDefinition();break;case 10:this.state=211,this.typeDefinition();break;case 11:this.state=212,this.usingForDeclaration()}this.state=217,this._errHandler.sync(this),t=this._input.LA(1)}this.state=218,this.match(S.EOF)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}pragmaDirective(){let t=new N(this,this._ctx,this.state);this.enterRule(t,2,S.RULE_pragmaDirective);try{this.enterOuterAlt(t,1),this.state=220,this.match(S.T__0),this.state=221,this.pragmaName(),this.state=222,this.pragmaValue(),this.state=223,this.match(S.T__1)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}pragmaName(){let t=new I(this,this._ctx,this.state);this.enterRule(t,4,S.RULE_pragmaName);try{this.enterOuterAlt(t,1),this.state=225,this.identifier()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}pragmaValue(){let t=new k(this,this._ctx,this.state);this.enterRule(t,6,S.RULE_pragmaValue);try{switch(this.state=230,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,2,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=227,this.match(S.T__2);break;case 2:this.enterOuterAlt(t,2),this.state=228,this.version();break;case 3:this.enterOuterAlt(t,3),this.state=229,this.expression(0)}}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}version(){let t,e=new D(this,this._ctx,this.state);this.enterRule(e,8,S.RULE_version);try{for(this.enterOuterAlt(e,1),this.state=232,this.versionConstraint(),this.state=239,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&4080)||103===t||130===t;)this.state=234,this._errHandler.sync(this),t=this._input.LA(1),4===t&&(this.state=233,this.match(S.T__3)),this.state=236,this.versionConstraint(),this.state=241,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}versionOperator(){let t,e=new O(this,this._ctx,this.state);this.enterRule(e,10,S.RULE_versionOperator);try{this.enterOuterAlt(e,1),this.state=242,t=this._input.LA(1),0!=(-32&t)||0==(1<<t&4064)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}versionConstraint(){let t,e=new P(this,this._ctx,this.state);this.enterRule(e,12,S.RULE_versionConstraint);try{switch(this.state=252,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=245,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&4064)&&(this.state=244,this.versionOperator()),this.state=247,this.match(S.VersionLiteral);break;case 2:this.enterOuterAlt(e,2),this.state=249,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&4064)&&(this.state=248,this.versionOperator()),this.state=251,this.match(S.DecimalNumber)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importDeclaration(){let t,e=new F(this,this._ctx,this.state);this.enterRule(e,14,S.RULE_importDeclaration);try{this.enterOuterAlt(e,1),this.state=254,this.identifier(),this.state=257,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=255,this.match(S.T__11),this.state=256,this.identifier())}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importDirective(){let t,e=new U(this,this._ctx,this.state);this.enterRule(e,16,S.RULE_importDirective);try{switch(this.state=295,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,13,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=259,this.match(S.T__12),this.state=260,this.importPath(),this.state=263,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=261,this.match(S.T__11),this.state=262,this.identifier()),this.state=265,this.match(S.T__1);break;case 2:switch(this.enterOuterAlt(e,2),this.state=267,this.match(S.T__12),this.state=270,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=268,this.match(S.T__2);break;case 14:case 25:case 44:case 50:case 62:case 95:case 113:case 117:case 124:case 125:case 127:case 128:this.state=269,this.identifier();break;default:throw new _(this)}this.state=274,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=272,this.match(S.T__11),this.state=273,this.identifier()),this.state=276,this.match(S.T__13),this.state=277,this.importPath(),this.state=278,this.match(S.T__1);break;case 3:for(this.enterOuterAlt(e,3),this.state=280,this.match(S.T__12),this.state=281,this.match(S.T__14),this.state=282,this.importDeclaration(),this.state=287,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=283,this.match(S.T__15),this.state=284,this.importDeclaration(),this.state=289,this._errHandler.sync(this),t=this._input.LA(1);this.state=290,this.match(S.T__16),this.state=291,this.match(S.T__13),this.state=292,this.importPath(),this.state=293,this.match(S.T__1)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}importPath(){let t=new H(this,this._ctx,this.state);this.enterRule(t,18,S.RULE_importPath);try{this.enterOuterAlt(t,1),this.state=297,this.match(S.StringLiteralFragment)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}contractDefinition(){let t,e=new M(this,this._ctx,this.state);this.enterRule(e,20,S.RULE_contractDefinition);try{if(this.enterOuterAlt(e,1),this.state=300,this._errHandler.sync(this),t=this._input.LA(1),18===t&&(this.state=299,this.match(S.T__17)),this.state=302,t=this._input.LA(1),0!=(-32&t)||0==(1<<t&3670016)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=303,this.identifier(),this.state=313,this._errHandler.sync(this),t=this._input.LA(1),22===t)for(this.state=304,this.match(S.T__21),this.state=305,this.inheritanceSpecifier(),this.state=310,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=306,this.match(S.T__15),this.state=307,this.inheritanceSpecifier(),this.state=312,this._errHandler.sync(this),t=this._input.LA(1);for(this.state=315,this.match(S.T__14),this.state=319,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&100679680)||0==(t-36&-32)&&0!=(1<<t-36&2080392503)||0==(t-95&-32)&&0!=(1<<t-95&3896770685)||127===t||128===t;)this.state=316,this.contractPart(),this.state=321,this._errHandler.sync(this),t=this._input.LA(1);this.state=322,this.match(S.T__16)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}inheritanceSpecifier(){let t,e=new K(this,this._ctx,this.state);this.enterRule(e,22,S.RULE_inheritanceSpecifier);try{this.enterOuterAlt(e,1),this.state=324,this.userDefinedTypeName(),this.state=330,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=325,this.match(S.T__22),this.state=327,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=326,this.expressionList()),this.state=329,this.match(S.T__23))}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}contractPart(){let t=new V(this,this._ctx,this.state);this.enterRule(t,24,S.RULE_contractPart);try{switch(this.state=341,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,20,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=332,this.stateVariableDeclaration();break;case 2:this.enterOuterAlt(t,2),this.state=333,this.usingForDeclaration();break;case 3:this.enterOuterAlt(t,3),this.state=334,this.structDefinition();break;case 4:this.enterOuterAlt(t,4),this.state=335,this.modifierDefinition();break;case 5:this.enterOuterAlt(t,5),this.state=336,this.functionDefinition();break;case 6:this.enterOuterAlt(t,6),this.state=337,this.eventDefinition();break;case 7:this.enterOuterAlt(t,7),this.state=338,this.enumDefinition();break;case 8:this.enterOuterAlt(t,8),this.state=339,this.customErrorDefinition();break;case 9:this.enterOuterAlt(t,9),this.state=340,this.typeDefinition()}}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}stateVariableDeclaration(){let t,e=new B(this,this._ctx,this.state);this.enterRule(e,26,S.RULE_stateVariableDeclaration);try{for(this.enterOuterAlt(e,1),this.state=343,this.typeName(0),this.state=352,this._errHandler.sync(this),t=this._input.LA(1);0==(t-96&-32)&&0!=(1<<t-96&13680641);){switch(this.state=350,this._errHandler.sync(this),this._input.LA(1)){case 119:this.state=344,this.match(S.PublicKeyword);break;case 116:this.state=345,this.match(S.InternalKeyword);break;case 118:this.state=346,this.match(S.PrivateKeyword);break;case 110:this.state=347,this.match(S.ConstantKeyword);break;case 111:this.state=348,this.match(S.ImmutableKeyword);break;case 96:this.state=349,this.overrideSpecifier();break;default:throw new _(this)}this.state=354,this._errHandler.sync(this),t=this._input.LA(1)}this.state=355,this.identifier(),this.state=358,this._errHandler.sync(this),t=this._input.LA(1),11===t&&(this.state=356,this.match(S.T__10),this.state=357,this.expression(0)),this.state=360,this.match(S.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}fileLevelConstant(){let t=new $(this,this._ctx,this.state);this.enterRule(t,28,S.RULE_fileLevelConstant);try{this.enterOuterAlt(t,1),this.state=362,this.typeName(0),this.state=363,this.match(S.ConstantKeyword),this.state=364,this.identifier(),this.state=365,this.match(S.T__10),this.state=366,this.expression(0),this.state=367,this.match(S.T__1)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}customErrorDefinition(){let t=new j(this,this._ctx,this.state);this.enterRule(t,30,S.RULE_customErrorDefinition);try{this.enterOuterAlt(t,1),this.state=369,this.match(S.T__24),this.state=370,this.identifier(),this.state=371,this.parameterList(),this.state=372,this.match(S.T__1)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}typeDefinition(){let t=new G(this,this._ctx,this.state);this.enterRule(t,32,S.RULE_typeDefinition);try{this.enterOuterAlt(t,1),this.state=374,this.match(S.TypeKeyword),this.state=375,this.identifier(),this.state=376,this.match(S.T__21),this.state=377,this.elementaryTypeName(),this.state=378,this.match(S.T__1)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}usingForDeclaration(){let t,e=new z(this,this._ctx,this.state);this.enterRule(e,34,S.RULE_usingForDeclaration);try{switch(this.enterOuterAlt(e,1),this.state=380,this.match(S.T__25),this.state=381,this.usingForObject(),this.state=382,this.match(S.T__26),this.state=385,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=383,this.match(S.T__2);break;case 14:case 25:case 38:case 44:case 46:case 50:case 62:case 63:case 64:case 65:case 66:case 95:case 97:case 98:case 99:case 100:case 101:case 113:case 117:case 124:case 125:case 127:case 128:this.state=384,this.typeName(0);break;default:throw new _(this)}this.state=388,this._errHandler.sync(this),t=this._input.LA(1),124===t&&(this.state=387,this.match(S.GlobalKeyword)),this.state=390,this.match(S.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}usingForObject(){let t,e=new q(this,this._ctx,this.state);this.enterRule(e,36,S.RULE_usingForObject);try{switch(this.state=404,this._errHandler.sync(this),this._input.LA(1)){case 14:case 25:case 44:case 50:case 62:case 95:case 113:case 117:case 124:case 125:case 127:case 128:this.enterOuterAlt(e,1),this.state=392,this.userDefinedTypeName();break;case 15:for(this.enterOuterAlt(e,2),this.state=393,this.match(S.T__14),this.state=394,this.usingForObjectDirective(),this.state=399,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=395,this.match(S.T__15),this.state=396,this.usingForObjectDirective(),this.state=401,this._errHandler.sync(this),t=this._input.LA(1);this.state=402,this.match(S.T__16);break;default:throw new _(this)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}usingForObjectDirective(){let t,e=new W(this,this._ctx,this.state);this.enterRule(e,38,S.RULE_usingForObjectDirective);try{this.enterOuterAlt(e,1),this.state=406,this.userDefinedTypeName(),this.state=409,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=407,this.match(S.T__11),this.state=408,this.userDefinableOperators())}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}userDefinableOperators(){let t,e=new Y(this,this._ctx,this.state);this.enterRule(e,40,S.RULE_userDefinableOperators);try{this.enterOuterAlt(e,1),this.state=411,t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&4026533864)||0==(t-32&-32)&&0!=(1<<t-32&15)?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}structDefinition(){let t,e=new X(this,this._ctx,this.state);this.enterRule(e,42,S.RULE_structDefinition);try{if(this.enterOuterAlt(e,1),this.state=413,this.match(S.T__35),this.state=414,this.identifier(),this.state=415,this.match(S.T__14),this.state=426,this._errHandler.sync(this),t=this._input.LA(1),14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)for(this.state=416,this.variableDeclaration(),this.state=417,this.match(S.T__1),this.state=423,this._errHandler.sync(this),t=this._input.LA(1);14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t;)this.state=418,this.variableDeclaration(),this.state=419,this.match(S.T__1),this.state=425,this._errHandler.sync(this),t=this._input.LA(1);this.state=428,this.match(S.T__16)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}modifierDefinition(){let t,e=new J(this,this._ctx,this.state);this.enterRule(e,44,S.RULE_modifierDefinition);try{for(this.enterOuterAlt(e,1),this.state=430,this.match(S.T__36),this.state=431,this.identifier(),this.state=433,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=432,this.parameterList()),this.state=439,this._errHandler.sync(this),t=this._input.LA(1);96===t||120===t;){switch(this.state=437,this._errHandler.sync(this),this._input.LA(1)){case 120:this.state=435,this.match(S.VirtualKeyword);break;case 96:this.state=436,this.overrideSpecifier();break;default:throw new _(this)}this.state=441,this._errHandler.sync(this),t=this._input.LA(1)}switch(this.state=444,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=442,this.match(S.T__1);break;case 15:this.state=443,this.block();break;default:throw new _(this)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}modifierInvocation(){let t,e=new Q(this,this._ctx,this.state);this.enterRule(e,46,S.RULE_modifierInvocation);try{this.enterOuterAlt(e,1),this.state=446,this.identifier(),this.state=452,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=447,this.match(S.T__22),this.state=449,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=448,this.expressionList()),this.state=451,this.match(S.T__23))}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionDefinition(){let t,e=new Z(this,this._ctx,this.state);this.enterRule(e,48,S.RULE_functionDefinition);try{switch(this.enterOuterAlt(e,1),this.state=454,this.functionDescriptor(),this.state=455,this.parameterList(),this.state=456,this.modifierList(),this.state=458,this._errHandler.sync(this),t=this._input.LA(1),39===t&&(this.state=457,this.returnParameters()),this.state=462,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=460,this.match(S.T__1);break;case 15:this.state=461,this.block();break;default:throw new _(this)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionDescriptor(){let t,e=new tt(this,this._ctx,this.state);this.enterRule(e,50,S.RULE_functionDescriptor);try{switch(this.state=471,this._errHandler.sync(this),this._input.LA(1)){case 38:this.enterOuterAlt(e,1),this.state=464,this.match(S.T__37),this.state=466,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=465,this.identifier());break;case 125:this.enterOuterAlt(e,2),this.state=468,this.match(S.ConstructorKeyword);break;case 126:this.enterOuterAlt(e,3),this.state=469,this.match(S.FallbackKeyword);break;case 127:this.enterOuterAlt(e,4),this.state=470,this.match(S.ReceiveKeyword);break;default:throw new _(this)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}returnParameters(){let t=new et(this,this._ctx,this.state);this.enterRule(t,52,S.RULE_returnParameters);try{this.enterOuterAlt(t,1),this.state=473,this.match(S.T__38),this.state=474,this.parameterList()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}modifierList(){let t,e=new it(this,this._ctx,this.state);this.enterRule(e,54,S.RULE_modifierList);try{for(this.enterOuterAlt(e,1),this.state=486,this._errHandler.sync(this),t=this._input.LA(1);14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&2011987971)||127===t||128===t;){switch(this.state=484,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,41,this._ctx)){case 1:this.state=476,this.match(S.ExternalKeyword);break;case 2:this.state=477,this.match(S.PublicKeyword);break;case 3:this.state=478,this.match(S.InternalKeyword);break;case 4:this.state=479,this.match(S.PrivateKeyword);break;case 5:this.state=480,this.match(S.VirtualKeyword);break;case 6:this.state=481,this.stateMutability();break;case 7:this.state=482,this.modifierInvocation();break;case 8:this.state=483,this.overrideSpecifier()}this.state=488,this._errHandler.sync(this),t=this._input.LA(1)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}eventDefinition(){let t,e=new st(this,this._ctx,this.state);this.enterRule(e,56,S.RULE_eventDefinition);try{this.enterOuterAlt(e,1),this.state=489,this.match(S.T__39),this.state=490,this.identifier(),this.state=491,this.eventParameterList(),this.state=493,this._errHandler.sync(this),t=this._input.LA(1),108===t&&(this.state=492,this.match(S.AnonymousKeyword)),this.state=495,this.match(S.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}enumValue(){let t=new rt(this,this._ctx,this.state);this.enterRule(t,58,S.RULE_enumValue);try{this.enterOuterAlt(t,1),this.state=497,this.identifier()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}enumDefinition(){let t,e=new nt(this,this._ctx,this.state);this.enterRule(e,60,S.RULE_enumDefinition);try{for(this.enterOuterAlt(e,1),this.state=499,this.match(S.T__40),this.state=500,this.identifier(),this.state=501,this.match(S.T__14),this.state=503,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=502,this.enumValue()),this.state=509,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=505,this.match(S.T__15),this.state=506,this.enumValue(),this.state=511,this._errHandler.sync(this),t=this._input.LA(1);this.state=512,this.match(S.T__16)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}parameterList(){let t,e=new at(this,this._ctx,this.state);this.enterRule(e,62,S.RULE_parameterList);try{if(this.enterOuterAlt(e,1),this.state=514,this.match(S.T__22),this.state=523,this._errHandler.sync(this),t=this._input.LA(1),14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)for(this.state=515,this.parameter(),this.state=520,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=516,this.match(S.T__15),this.state=517,this.parameter(),this.state=522,this._errHandler.sync(this),t=this._input.LA(1);this.state=525,this.match(S.T__23)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}parameter(){let t,e=new ot(this,this._ctx,this.state);this.enterRule(e,64,S.RULE_parameter);try{this.enterOuterAlt(e,1),this.state=527,this.typeName(0),this.state=529,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,48,this._ctx)&&(this.state=528,this.storageLocation()),this.state=532,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=531,this.identifier())}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}eventParameterList(){let t,e=new lt(this,this._ctx,this.state);this.enterRule(e,66,S.RULE_eventParameterList);try{if(this.enterOuterAlt(e,1),this.state=534,this.match(S.T__22),this.state=543,this._errHandler.sync(this),t=this._input.LA(1),14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)for(this.state=535,this.eventParameter(),this.state=540,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=536,this.match(S.T__15),this.state=537,this.eventParameter(),this.state=542,this._errHandler.sync(this),t=this._input.LA(1);this.state=545,this.match(S.T__23)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}eventParameter(){let t,e=new ht(this,this._ctx,this.state);this.enterRule(e,68,S.RULE_eventParameter);try{this.enterOuterAlt(e,1),this.state=547,this.typeName(0),this.state=549,this._errHandler.sync(this),t=this._input.LA(1),115===t&&(this.state=548,this.match(S.IndexedKeyword)),this.state=552,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=551,this.identifier())}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionTypeParameterList(){let t,e=new ct(this,this._ctx,this.state);this.enterRule(e,70,S.RULE_functionTypeParameterList);try{if(this.enterOuterAlt(e,1),this.state=554,this.match(S.T__22),this.state=563,this._errHandler.sync(this),t=this._input.LA(1),14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)for(this.state=555,this.functionTypeParameter(),this.state=560,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=556,this.match(S.T__15),this.state=557,this.functionTypeParameter(),this.state=562,this._errHandler.sync(this),t=this._input.LA(1);this.state=565,this.match(S.T__23)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionTypeParameter(){let t,e=new ut(this,this._ctx,this.state);this.enterRule(e,72,S.RULE_functionTypeParameter);try{this.enterOuterAlt(e,1),this.state=567,this.typeName(0),this.state=569,this._errHandler.sync(this),t=this._input.LA(1),0==(t-48&-32)&&0!=(1<<t-48&7)&&(this.state=568,this.storageLocation())}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}variableDeclaration(){let t=new pt(this,this._ctx,this.state);this.enterRule(t,74,S.RULE_variableDeclaration);try{this.enterOuterAlt(t,1),this.state=571,this.typeName(0),this.state=573,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,57,this._ctx)&&(this.state=572,this.storageLocation()),this.state=575,this.identifier()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}typeName(t){void 0===t&&(t=0);let e,i=this._ctx,s=this.state,r=new dt(this,this._ctx,s),n=r;this.enterRecursionRule(r,76,S.RULE_typeName,t);try{let t;switch(this.enterOuterAlt(r,1),this.state=584,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,58,this._ctx)){case 1:this.state=578,this.elementaryTypeName();break;case 2:this.state=579,this.userDefinedTypeName();break;case 3:this.state=580,this.mapping();break;case 4:this.state=581,this.functionTypeName();break;case 5:this.state=582,this.match(S.T__43),this.state=583,this.match(S.PayableKeyword)}for(this._ctx.stop=this._input.LT(-1),this.state=594,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,60,this._ctx);2!==t&&t!==a.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),n=r,r=new dt(this,i,s),this.pushNewRecursionContext(r,76,S.RULE_typeName),this.state=586,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=587,this.match(S.T__41),this.state=589,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&3263184960)||0==(e-38&-32)&&0!=(1<<e-38&4278194513)||0==(e-71&-32)&&0!=(1<<e-71&4244635651)||0==(e-103&-32)&&0!=(1<<e-103&124273675))&&(this.state=588,this.expression(0)),this.state=591,this.match(S.T__42)}this.state=596,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,60,this._ctx)}}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(i)}return r}userDefinedTypeName(){let t=new mt(this,this._ctx,this.state);this.enterRule(t,78,S.RULE_userDefinedTypeName);try{let e;for(this.enterOuterAlt(t,1),this.state=597,this.identifier(),this.state=602,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,61,this._ctx);2!==e&&e!==a.INVALID_ALT_NUMBER;)1===e&&(this.state=598,this.match(S.T__44),this.state=599,this.identifier()),this.state=604,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,61,this._ctx)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mappingKey(){let t=new _t(this,this._ctx,this.state);this.enterRule(t,80,S.RULE_mappingKey);try{switch(this.state=607,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,62,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=605,this.elementaryTypeName();break;case 2:this.enterOuterAlt(t,2),this.state=606,this.userDefinedTypeName()}}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mapping(){let t,e=new xt(this,this._ctx,this.state);this.enterRule(e,82,S.RULE_mapping);try{this.enterOuterAlt(e,1),this.state=609,this.match(S.T__45),this.state=610,this.match(S.T__22),this.state=611,this.mappingKey(),this.state=613,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=612,this.mappingKeyName()),this.state=615,this.match(S.T__46),this.state=616,this.typeName(0),this.state=618,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=617,this.mappingValueName()),this.state=620,this.match(S.T__23)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}mappingKeyName(){let t=new ft(this,this._ctx,this.state);this.enterRule(t,84,S.RULE_mappingKeyName);try{this.enterOuterAlt(t,1),this.state=622,this.identifier()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mappingValueName(){let t=new yt(this,this._ctx,this.state);this.enterRule(t,86,S.RULE_mappingValueName);try{this.enterOuterAlt(t,1),this.state=624,this.identifier()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}functionTypeName(){let t=new gt(this,this._ctx,this.state);this.enterRule(t,88,S.RULE_functionTypeName);try{let e;for(this.enterOuterAlt(t,1),this.state=626,this.match(S.T__37),this.state=627,this.functionTypeParameterList(),this.state=633,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,66,this._ctx);2!==e&&e!==a.INVALID_ALT_NUMBER;){if(1===e)switch(this.state=631,this._errHandler.sync(this),this._input.LA(1)){case 116:this.state=628,this.match(S.InternalKeyword);break;case 114:this.state=629,this.match(S.ExternalKeyword);break;case 110:case 117:case 121:case 123:this.state=630,this.stateMutability();break;default:throw new _(this)}this.state=635,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,66,this._ctx)}this.state=638,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,67,this._ctx)&&(this.state=636,this.match(S.T__38),this.state=637,this.functionTypeParameterList())}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}storageLocation(){let t,e=new Tt(this,this._ctx,this.state);this.enterRule(e,90,S.RULE_storageLocation);try{this.enterOuterAlt(e,1),this.state=640,t=this._input.LA(1),0!=(t-48&-32)||0==(1<<t-48&7)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}stateMutability(){let t,e=new Et(this,this._ctx,this.state);this.enterRule(e,92,S.RULE_stateMutability);try{this.enterOuterAlt(e,1),this.state=642,t=this._input.LA(1),0!=(t-110&-32)||0==(1<<t-110&10369)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}block(){let t,e=new vt(this,this._ctx,this.state);this.enterRule(e,94,S.RULE_block);try{for(this.enterOuterAlt(e,1),this.state=644,this.match(S.T__14),this.state=648,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&3397435456)||0==(t-38&-32)&&0!=(1<<t-38&4294881617)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124274251);)this.state=645,this.statement(),this.state=650,this._errHandler.sync(this),t=this._input.LA(1);this.state=651,this.match(S.T__16)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}statement(){let t=new Rt(this,this._ctx,this.state);this.enterRule(t,96,S.RULE_statement);try{switch(this.state=668,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,69,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=653,this.ifStatement();break;case 2:this.enterOuterAlt(t,2),this.state=654,this.tryStatement();break;case 3:this.enterOuterAlt(t,3),this.state=655,this.whileStatement();break;case 4:this.enterOuterAlt(t,4),this.state=656,this.forStatement();break;case 5:this.enterOuterAlt(t,5),this.state=657,this.block();break;case 6:this.enterOuterAlt(t,6),this.state=658,this.inlineAssemblyStatement();break;case 7:this.enterOuterAlt(t,7),this.state=659,this.doWhileStatement();break;case 8:this.enterOuterAlt(t,8),this.state=660,this.continueStatement();break;case 9:this.enterOuterAlt(t,9),this.state=661,this.breakStatement();break;case 10:this.enterOuterAlt(t,10),this.state=662,this.returnStatement();break;case 11:this.enterOuterAlt(t,11),this.state=663,this.throwStatement();break;case 12:this.enterOuterAlt(t,12),this.state=664,this.emitStatement();break;case 13:this.enterOuterAlt(t,13),this.state=665,this.simpleStatement();break;case 14:this.enterOuterAlt(t,14),this.state=666,this.uncheckedStatement();break;case 15:this.enterOuterAlt(t,15),this.state=667,this.revertStatement()}}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expressionStatement(){let t=new bt(this,this._ctx,this.state);this.enterRule(t,98,S.RULE_expressionStatement);try{this.enterOuterAlt(t,1),this.state=670,this.expression(0),this.state=671,this.match(S.T__1)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}ifStatement(){let t=new Lt(this,this._ctx,this.state);this.enterRule(t,100,S.RULE_ifStatement);try{this.enterOuterAlt(t,1),this.state=673,this.match(S.T__50),this.state=674,this.match(S.T__22),this.state=675,this.expression(0),this.state=676,this.match(S.T__23),this.state=677,this.statement(),this.state=680,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,70,this._ctx)&&(this.state=678,this.match(S.T__51),this.state=679,this.statement())}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}tryStatement(){let t,e=new St(this,this._ctx,this.state);this.enterRule(e,102,S.RULE_tryStatement);try{this.enterOuterAlt(e,1),this.state=682,this.match(S.T__52),this.state=683,this.expression(0),this.state=685,this._errHandler.sync(this),t=this._input.LA(1),39===t&&(this.state=684,this.returnParameters()),this.state=687,this.block(),this.state=689,this._errHandler.sync(this),t=this._input.LA(1);do{this.state=688,this.catchClause(),this.state=691,this._errHandler.sync(this),t=this._input.LA(1)}while(54===t)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}catchClause(){let t,e=new At(this,this._ctx,this.state);this.enterRule(e,104,S.RULE_catchClause);try{this.enterOuterAlt(e,1),this.state=693,this.match(S.T__53),this.state=698,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&41959424)||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=695,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=694,this.identifier()),this.state=697,this.parameterList()),this.state=700,this.block()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}whileStatement(){let t=new Ct(this,this._ctx,this.state);this.enterRule(t,106,S.RULE_whileStatement);try{this.enterOuterAlt(t,1),this.state=702,this.match(S.T__54),this.state=703,this.match(S.T__22),this.state=704,this.expression(0),this.state=705,this.match(S.T__23),this.state=706,this.statement()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}simpleStatement(){let t=new wt(this,this._ctx,this.state);this.enterRule(t,108,S.RULE_simpleStatement);try{switch(this.enterOuterAlt(t,1),this.state=710,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,75,this._ctx)){case 1:this.state=708,this.variableDeclarationStatement();break;case 2:this.state=709,this.expressionStatement()}}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}uncheckedStatement(){let t=new Nt(this,this._ctx,this.state);this.enterRule(t,110,S.RULE_uncheckedStatement);try{this.enterOuterAlt(t,1),this.state=712,this.match(S.T__55),this.state=713,this.block()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}forStatement(){let t,e=new It(this,this._ctx,this.state);this.enterRule(e,112,S.RULE_forStatement);try{switch(this.enterOuterAlt(e,1),this.state=715,this.match(S.T__26),this.state=716,this.match(S.T__22),this.state=719,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 30:case 31:case 38:case 42:case 44:case 46:case 50:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 71:case 72:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 106:case 113:case 117:case 122:case 124:case 125:case 127:case 128:case 129:this.state=717,this.simpleStatement();break;case 2:this.state=718,this.match(S.T__1);break;default:throw new _(this)}switch(this.state=723,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 30:case 31:case 38:case 42:case 44:case 46:case 50:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 71:case 72:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 106:case 113:case 117:case 122:case 124:case 125:case 127:case 128:case 129:this.state=721,this.expressionStatement();break;case 2:this.state=722,this.match(S.T__1);break;default:throw new _(this)}this.state=726,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=725,this.expression(0)),this.state=728,this.match(S.T__23),this.state=729,this.statement()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}inlineAssemblyStatement(){let t,e=new kt(this,this._ctx,this.state);this.enterRule(e,114,S.RULE_inlineAssemblyStatement);try{this.enterOuterAlt(e,1),this.state=731,this.match(S.T__56),this.state=733,this._errHandler.sync(this),t=this._input.LA(1),129===t&&(this.state=732,this.match(S.StringLiteralFragment)),this.state=739,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=735,this.match(S.T__22),this.state=736,this.inlineAssemblyStatementFlag(),this.state=737,this.match(S.T__23)),this.state=741,this.assemblyBlock()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}inlineAssemblyStatementFlag(){let t=new Dt(this,this._ctx,this.state);this.enterRule(t,116,S.RULE_inlineAssemblyStatementFlag);try{this.enterOuterAlt(t,1),this.state=743,this.stringLiteral()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}doWhileStatement(){let t=new Ot(this,this._ctx,this.state);this.enterRule(t,118,S.RULE_doWhileStatement);try{this.enterOuterAlt(t,1),this.state=745,this.match(S.T__57),this.state=746,this.statement(),this.state=747,this.match(S.T__54),this.state=748,this.match(S.T__22),this.state=749,this.expression(0),this.state=750,this.match(S.T__23),this.state=751,this.match(S.T__1)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}continueStatement(){let t=new Pt(this,this._ctx,this.state);this.enterRule(t,120,S.RULE_continueStatement);try{this.enterOuterAlt(t,1),this.state=753,this.match(S.ContinueKeyword),this.state=754,this.match(S.T__1)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}breakStatement(){let t=new Ft(this,this._ctx,this.state);this.enterRule(t,122,S.RULE_breakStatement);try{this.enterOuterAlt(t,1),this.state=756,this.match(S.BreakKeyword),this.state=757,this.match(S.T__1)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}returnStatement(){let t,e=new Ut(this,this._ctx,this.state);this.enterRule(e,124,S.RULE_returnStatement);try{this.enterOuterAlt(e,1),this.state=759,this.match(S.T__58),this.state=761,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=760,this.expression(0)),this.state=763,this.match(S.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}throwStatement(){let t=new Ht(this,this._ctx,this.state);this.enterRule(t,126,S.RULE_throwStatement);try{this.enterOuterAlt(t,1),this.state=765,this.match(S.T__59),this.state=766,this.match(S.T__1)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}emitStatement(){let t=new Mt(this,this._ctx,this.state);this.enterRule(t,128,S.RULE_emitStatement);try{this.enterOuterAlt(t,1),this.state=768,this.match(S.T__60),this.state=769,this.functionCall(),this.state=770,this.match(S.T__1)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}revertStatement(){let t=new Kt(this,this._ctx,this.state);this.enterRule(t,130,S.RULE_revertStatement);try{this.enterOuterAlt(t,1),this.state=772,this.match(S.T__61),this.state=773,this.functionCall(),this.state=774,this.match(S.T__1)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}variableDeclarationStatement(){let t,e=new Vt(this,this._ctx,this.state);this.enterRule(e,132,S.RULE_variableDeclarationStatement);try{switch(this.enterOuterAlt(e,1),this.state=783,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,82,this._ctx)){case 1:this.state=776,this.match(S.T__62),this.state=777,this.identifierList();break;case 2:this.state=778,this.variableDeclaration();break;case 3:this.state=779,this.match(S.T__22),this.state=780,this.variableDeclarationList(),this.state=781,this.match(S.T__23)}this.state=787,this._errHandler.sync(this),t=this._input.LA(1),11===t&&(this.state=785,this.match(S.T__10),this.state=786,this.expression(0)),this.state=789,this.match(S.T__1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}variableDeclarationList(){let t,e=new Bt(this,this._ctx,this.state);this.enterRule(e,134,S.RULE_variableDeclarationList);try{for(this.enterOuterAlt(e,1),this.state=792,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)&&(this.state=791,this.variableDeclaration()),this.state=800,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=794,this.match(S.T__15),this.state=796,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-38&-32)&&0!=(1<<t-38&520098113)||0==(t-95&-32)&&0!=(1<<t-95&1615069309)||127===t||128===t)&&(this.state=795,this.variableDeclaration()),this.state=802,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}identifierList(){let t,e=new $t(this,this._ctx,this.state);this.enterRule(e,136,S.RULE_identifierList);try{let i;for(this.enterOuterAlt(e,1),this.state=803,this.match(S.T__22),this.state=810,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,88,this._ctx);2!==i&&i!==a.INVALID_ALT_NUMBER;)1===i&&(this.state=805,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=804,this.identifier()),this.state=807,this.match(S.T__15)),this.state=812,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,88,this._ctx);this.state=814,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=813,this.identifier()),this.state=816,this.match(S.T__23)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}elementaryTypeName(){let t,e=new jt(this,this._ctx,this.state);this.enterRule(e,138,S.RULE_elementaryTypeName);try{this.enterOuterAlt(e,1),this.state=818,t=this._input.LA(1),0==(t-44&-32)&&0!=(1<<t-44&7864321)||0==(t-97&-32)&&0!=(1<<t-97&31)?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}expression(t){void 0===t&&(t=0);let e,i=this._ctx,s=this.state,r=new Gt(this,this._ctx,s),n=r,o=140;this.enterRecursionRule(r,140,S.RULE_expression,t);try{let t;switch(this.enterOuterAlt(r,1),this.state=838,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,90,this._ctx)){case 1:this.state=821,this.match(S.T__68),this.state=822,this.typeName(0);break;case 2:this.state=823,this.match(S.T__22),this.state=824,this.expression(0),this.state=825,this.match(S.T__23);break;case 3:this.state=827,e=this._input.LA(1),67!==e&&68!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=828,this.expression(19);break;case 4:this.state=829,e=this._input.LA(1),30!==e&&31!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=830,this.expression(18);break;case 5:this.state=831,this.match(S.T__70),this.state=832,this.expression(17);break;case 6:this.state=833,this.match(S.T__71),this.state=834,this.expression(16);break;case 7:this.state=835,this.match(S.T__5),this.state=836,this.expression(15);break;case 8:this.state=837,this.primaryExpression()}for(this._ctx.stop=this._input.LT(-1),this.state=914,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,94,this._ctx);2!==t&&t!==a.INVALID_ALT_NUMBER;){if(1===t)switch(null!=this._parseListeners&&this.triggerExitRuleEvent(),n=r,this.state=912,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,93,this._ctx)){case 1:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=840,!this.precpred(this._ctx,14))throw this.createFailedPredicateException("this.precpred(this._ctx, 14)");this.state=841,this.match(S.T__72),this.state=842,this.expression(14);break;case 2:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=843,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=844,e=this._input.LA(1),0!=(e-3&-32)||0==(1<<e-3&1610612737)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=845,this.expression(14);break;case 3:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=846,!this.precpred(this._ctx,12))throw this.createFailedPredicateException("this.precpred(this._ctx, 12)");this.state=847,e=this._input.LA(1),30!==e&&31!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=848,this.expression(13);break;case 4:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=849,!this.precpred(this._ctx,11))throw this.createFailedPredicateException("this.precpred(this._ctx, 11)");this.state=850,e=this._input.LA(1),74!==e&&75!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=851,this.expression(12);break;case 5:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=852,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=853,this.match(S.T__28),this.state=854,this.expression(11);break;case 6:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=855,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=856,this.match(S.T__4),this.state=857,this.expression(10);break;case 7:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=858,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=859,this.match(S.T__27),this.state=860,this.expression(9);break;case 8:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=861,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=862,e=this._input.LA(1),0!=(-32&e)||0==(1<<e&1920)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=863,this.expression(8);break;case 9:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=864,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=865,e=this._input.LA(1),34!==e&&35!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=866,this.expression(7);break;case 10:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=867,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=868,this.match(S.T__75),this.state=869,this.expression(6);break;case 11:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=870,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=871,this.match(S.T__3),this.state=872,this.expression(5);break;case 12:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=873,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=874,this.match(S.T__76),this.state=875,this.expression(0),this.state=876,this.match(S.T__69),this.state=877,this.expression(3);break;case 13:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=879,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=880,e=this._input.LA(1),11===e||0==(e-78&-32)&&0!=(1<<e-78&1023)?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=881,this.expression(3);break;case 14:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=882,!this.precpred(this._ctx,27))throw this.createFailedPredicateException("this.precpred(this._ctx, 27)");this.state=883,e=this._input.LA(1),67!==e&&68!==e?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume());break;case 15:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=884,!this.precpred(this._ctx,25))throw this.createFailedPredicateException("this.precpred(this._ctx, 25)");this.state=885,this.match(S.T__41),this.state=886,this.expression(0),this.state=887,this.match(S.T__42);break;case 16:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=889,!this.precpred(this._ctx,24))throw this.createFailedPredicateException("this.precpred(this._ctx, 24)");this.state=890,this.match(S.T__41),this.state=892,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&3263184960)||0==(e-38&-32)&&0!=(1<<e-38&4278194513)||0==(e-71&-32)&&0!=(1<<e-71&4244635651)||0==(e-103&-32)&&0!=(1<<e-103&124273675))&&(this.state=891,this.expression(0)),this.state=894,this.match(S.T__69),this.state=896,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&3263184960)||0==(e-38&-32)&&0!=(1<<e-38&4278194513)||0==(e-71&-32)&&0!=(1<<e-71&4244635651)||0==(e-103&-32)&&0!=(1<<e-103&124273675))&&(this.state=895,this.expression(0)),this.state=898,this.match(S.T__42);break;case 17:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=899,!this.precpred(this._ctx,23))throw this.createFailedPredicateException("this.precpred(this._ctx, 23)");this.state=900,this.match(S.T__44),this.state=901,this.identifier();break;case 18:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=902,!this.precpred(this._ctx,22))throw this.createFailedPredicateException("this.precpred(this._ctx, 22)");this.state=903,this.match(S.T__14),this.state=904,this.nameValueList(),this.state=905,this.match(S.T__16);break;case 19:if(r=new Gt(this,i,s),this.pushNewRecursionContext(r,o,S.RULE_expression),this.state=907,!this.precpred(this._ctx,21))throw this.createFailedPredicateException("this.precpred(this._ctx, 21)");this.state=908,this.match(S.T__22),this.state=909,this.functionCallArguments(),this.state=910,this.match(S.T__23)}this.state=916,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,94,this._ctx)}}catch(t){if(!(t instanceof E))throw t;r.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(i)}return r}primaryExpression(){let t=new zt(this,this._ctx,this.state);this.enterRule(t,142,S.RULE_primaryExpression);try{switch(this.state=926,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,95,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=917,this.match(S.BooleanLiteral);break;case 2:this.enterOuterAlt(t,2),this.state=918,this.numberLiteral();break;case 3:this.enterOuterAlt(t,3),this.state=919,this.hexLiteral();break;case 4:this.enterOuterAlt(t,4),this.state=920,this.stringLiteral();break;case 5:this.enterOuterAlt(t,5),this.state=921,this.identifier();break;case 6:this.enterOuterAlt(t,6),this.state=922,this.match(S.TypeKeyword);break;case 7:this.enterOuterAlt(t,7),this.state=923,this.match(S.PayableKeyword);break;case 8:this.enterOuterAlt(t,8),this.state=924,this.tupleExpression();break;case 9:this.enterOuterAlt(t,9),this.state=925,this.typeName(0)}}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expressionList(){let t,e=new qt(this,this._ctx,this.state);this.enterRule(e,144,S.RULE_expressionList);try{for(this.enterOuterAlt(e,1),this.state=928,this.expression(0),this.state=933,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=929,this.match(S.T__15),this.state=930,this.expression(0),this.state=935,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}nameValueList(){let t,e=new Wt(this,this._ctx,this.state);this.enterRule(e,146,S.RULE_nameValueList);try{let i;for(this.enterOuterAlt(e,1),this.state=936,this.nameValue(),this.state=941,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,97,this._ctx);2!==i&&i!==a.INVALID_ALT_NUMBER;)1===i&&(this.state=937,this.match(S.T__15),this.state=938,this.nameValue()),this.state=943,this._errHandler.sync(this),i=this._interp.adaptivePredict(this._input,97,this._ctx);this.state=945,this._errHandler.sync(this),t=this._input.LA(1),16===t&&(this.state=944,this.match(S.T__15))}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}nameValue(){let t=new Yt(this,this._ctx,this.state);this.enterRule(t,148,S.RULE_nameValue);try{this.enterOuterAlt(t,1),this.state=947,this.identifier(),this.state=948,this.match(S.T__69),this.state=949,this.expression(0)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}functionCallArguments(){let t,e=new Xt(this,this._ctx,this.state);this.enterRule(e,150,S.RULE_functionCallArguments);try{switch(this.state=959,this._errHandler.sync(this),this._input.LA(1)){case 15:this.enterOuterAlt(e,1),this.state=951,this.match(S.T__14),this.state=953,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=952,this.nameValueList()),this.state=955,this.match(S.T__16);break;case 6:case 14:case 23:case 24:case 25:case 30:case 31:case 38:case 42:case 44:case 46:case 50:case 62:case 63:case 64:case 65:case 66:case 67:case 68:case 69:case 71:case 72:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 106:case 113:case 117:case 122:case 124:case 125:case 127:case 128:case 129:this.enterOuterAlt(e,2),this.state=957,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=956,this.expressionList());break;default:throw new _(this)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}functionCall(){let t=new Jt(this,this._ctx,this.state);this.enterRule(t,152,S.RULE_functionCall);try{this.enterOuterAlt(t,1),this.state=961,this.expression(0),this.state=962,this.match(S.T__22),this.state=963,this.functionCallArguments(),this.state=964,this.match(S.T__23)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyBlock(){let t,e=new Qt(this,this._ctx,this.state);this.enterRule(e,154,S.RULE_assemblyBlock);try{for(this.enterOuterAlt(e,1),this.state=966,this.match(S.T__14),this.state=970,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&176209920)||0==(t-38&-32)&&0!=(1<<t-38&287322177)||0==(t-88&-32)&&0!=(1<<t-88&589676681)||0==(t-124&-32)&&0!=(1<<t-124&59);)this.state=967,this.assemblyItem(),this.state=972,this._errHandler.sync(this),t=this._input.LA(1);this.state=973,this.match(S.T__16)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyItem(){let t=new Zt(this,this._ctx,this.state);this.enterRule(t,156,S.RULE_assemblyItem);try{switch(this.state=992,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,103,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=975,this.identifier();break;case 2:this.enterOuterAlt(t,2),this.state=976,this.assemblyBlock();break;case 3:this.enterOuterAlt(t,3),this.state=977,this.assemblyExpression();break;case 4:this.enterOuterAlt(t,4),this.state=978,this.assemblyLocalDefinition();break;case 5:this.enterOuterAlt(t,5),this.state=979,this.assemblyAssignment();break;case 6:this.enterOuterAlt(t,6),this.state=980,this.assemblyStackAssignment();break;case 7:this.enterOuterAlt(t,7),this.state=981,this.labelDefinition();break;case 8:this.enterOuterAlt(t,8),this.state=982,this.assemblySwitch();break;case 9:this.enterOuterAlt(t,9),this.state=983,this.assemblyFunctionDefinition();break;case 10:this.enterOuterAlt(t,10),this.state=984,this.assemblyFor();break;case 11:this.enterOuterAlt(t,11),this.state=985,this.assemblyIf();break;case 12:this.enterOuterAlt(t,12),this.state=986,this.match(S.BreakKeyword);break;case 13:this.enterOuterAlt(t,13),this.state=987,this.match(S.ContinueKeyword);break;case 14:this.enterOuterAlt(t,14),this.state=988,this.match(S.LeaveKeyword);break;case 15:this.enterOuterAlt(t,15),this.state=989,this.numberLiteral();break;case 16:this.enterOuterAlt(t,16),this.state=990,this.stringLiteral();break;case 17:this.enterOuterAlt(t,17),this.state=991,this.hexLiteral()}}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyExpression(){let t=new te(this,this._ctx,this.state);this.enterRule(t,158,S.RULE_assemblyExpression);try{switch(this.state=997,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,104,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=994,this.assemblyCall();break;case 2:this.enterOuterAlt(t,2),this.state=995,this.assemblyLiteral();break;case 3:this.enterOuterAlt(t,3),this.state=996,this.assemblyMember()}}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyMember(){let t=new ee(this,this._ctx,this.state);this.enterRule(t,160,S.RULE_assemblyMember);try{this.enterOuterAlt(t,1),this.state=999,this.identifier(),this.state=1e3,this.match(S.T__44),this.state=1001,this.identifier()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyCall(){let t,e=new ie(this,this._ctx,this.state);this.enterRule(e,162,S.RULE_assemblyCall);try{switch(this.enterOuterAlt(e,1),this.state=1007,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,105,this._ctx)){case 1:this.state=1003,this.match(S.T__58);break;case 2:this.state=1004,this.match(S.T__43);break;case 3:this.state=1005,this.match(S.T__65);break;case 4:this.state=1006,this.identifier()}if(this.state=1021,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,108,this._ctx)){for(this.state=1009,this.match(S.T__22),this.state=1011,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&4489281)||0==(t-95&-32)&&0!=(1<<t-95&1615072129)||0==(t-127&-32)&&0!=(1<<t-127&7))&&(this.state=1010,this.assemblyExpression()),this.state=1017,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1013,this.match(S.T__15),this.state=1014,this.assemblyExpression(),this.state=1019,this._errHandler.sync(this),t=this._input.LA(1);this.state=1020,this.match(S.T__23)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyLocalDefinition(){let t,e=new se(this,this._ctx,this.state);this.enterRule(e,164,S.RULE_assemblyLocalDefinition);try{this.enterOuterAlt(e,1),this.state=1023,this.match(S.T__87),this.state=1024,this.assemblyIdentifierOrList(),this.state=1027,this._errHandler.sync(this),t=this._input.LA(1),89===t&&(this.state=1025,this.match(S.T__88),this.state=1026,this.assemblyExpression())}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyAssignment(){let t=new re(this,this._ctx,this.state);this.enterRule(t,166,S.RULE_assemblyAssignment);try{this.enterOuterAlt(t,1),this.state=1029,this.assemblyIdentifierOrList(),this.state=1030,this.match(S.T__88),this.state=1031,this.assemblyExpression()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIdentifierOrList(){let t=new ne(this,this._ctx,this.state);this.enterRule(t,168,S.RULE_assemblyIdentifierOrList);try{switch(this.state=1040,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,110,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=1033,this.identifier();break;case 2:this.enterOuterAlt(t,2),this.state=1034,this.assemblyMember();break;case 3:this.enterOuterAlt(t,3),this.state=1035,this.assemblyIdentifierList();break;case 4:this.enterOuterAlt(t,4),this.state=1036,this.match(S.T__22),this.state=1037,this.assemblyIdentifierList(),this.state=1038,this.match(S.T__23)}}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIdentifierList(){let t,e=new ae(this,this._ctx,this.state);this.enterRule(e,170,S.RULE_assemblyIdentifierList);try{for(this.enterOuterAlt(e,1),this.state=1042,this.identifier(),this.state=1047,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1043,this.match(S.T__15),this.state=1044,this.identifier(),this.state=1049,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyStackAssignment(){let t=new oe(this,this._ctx,this.state);this.enterRule(t,172,S.RULE_assemblyStackAssignment);try{this.enterOuterAlt(t,1),this.state=1050,this.assemblyExpression(),this.state=1051,this.match(S.T__89),this.state=1052,this.identifier()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}labelDefinition(){let t=new le(this,this._ctx,this.state);this.enterRule(t,174,S.RULE_labelDefinition);try{this.enterOuterAlt(t,1),this.state=1054,this.identifier(),this.state=1055,this.match(S.T__69)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblySwitch(){let t,e=new he(this,this._ctx,this.state);this.enterRule(e,176,S.RULE_assemblySwitch);try{for(this.enterOuterAlt(e,1),this.state=1057,this.match(S.T__90),this.state=1058,this.assemblyExpression(),this.state=1062,this._errHandler.sync(this),t=this._input.LA(1);92===t||93===t;)this.state=1059,this.assemblyCase(),this.state=1064,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyCase(){let t=new ce(this,this._ctx,this.state);this.enterRule(t,178,S.RULE_assemblyCase);try{switch(this.state=1071,this._errHandler.sync(this),this._input.LA(1)){case 92:this.enterOuterAlt(t,1),this.state=1065,this.match(S.T__91),this.state=1066,this.assemblyLiteral(),this.state=1067,this.assemblyBlock();break;case 93:this.enterOuterAlt(t,2),this.state=1069,this.match(S.T__92),this.state=1070,this.assemblyBlock();break;default:throw new _(this)}}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyFunctionDefinition(){let t,e=new ue(this,this._ctx,this.state);this.enterRule(e,180,S.RULE_assemblyFunctionDefinition);try{this.enterOuterAlt(e,1),this.state=1073,this.match(S.T__37),this.state=1074,this.identifier(),this.state=1075,this.match(S.T__22),this.state=1077,this._errHandler.sync(this),t=this._input.LA(1),(14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t)&&(this.state=1076,this.assemblyIdentifierList()),this.state=1079,this.match(S.T__23),this.state=1081,this._errHandler.sync(this),t=this._input.LA(1),94===t&&(this.state=1080,this.assemblyFunctionReturns()),this.state=1083,this.assemblyBlock()}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}assemblyFunctionReturns(){let t=new pe(this,this._ctx,this.state);this.enterRule(t,182,S.RULE_assemblyFunctionReturns);try{this.enterOuterAlt(t,1),this.state=1085,this.match(S.T__93),this.state=1086,this.assemblyIdentifierList()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyFor(){let t=new de(this,this._ctx,this.state);this.enterRule(t,184,S.RULE_assemblyFor);try{switch(this.enterOuterAlt(t,1),this.state=1088,this.match(S.T__26),this.state=1091,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1089,this.assemblyBlock();break;case 14:case 25:case 44:case 50:case 59:case 62:case 66:case 95:case 102:case 103:case 104:case 106:case 113:case 117:case 124:case 125:case 127:case 128:case 129:this.state=1090,this.assemblyExpression();break;default:throw new _(this)}switch(this.state=1093,this.assemblyExpression(),this.state=1096,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1094,this.assemblyBlock();break;case 14:case 25:case 44:case 50:case 59:case 62:case 66:case 95:case 102:case 103:case 104:case 106:case 113:case 117:case 124:case 125:case 127:case 128:case 129:this.state=1095,this.assemblyExpression();break;default:throw new _(this)}this.state=1098,this.assemblyBlock()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIf(){let t=new me(this,this._ctx,this.state);this.enterRule(t,186,S.RULE_assemblyIf);try{this.enterOuterAlt(t,1),this.state=1100,this.match(S.T__50),this.state=1101,this.assemblyExpression(),this.state=1102,this.assemblyBlock()}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyLiteral(){let t=new _e(this,this._ctx,this.state);this.enterRule(t,188,S.RULE_assemblyLiteral);try{switch(this.state=1109,this._errHandler.sync(this),this._input.LA(1)){case 129:this.enterOuterAlt(t,1),this.state=1104,this.stringLiteral();break;case 103:this.enterOuterAlt(t,2),this.state=1105,this.match(S.DecimalNumber);break;case 104:this.enterOuterAlt(t,3),this.state=1106,this.match(S.HexNumber);break;case 106:this.enterOuterAlt(t,4),this.state=1107,this.hexLiteral();break;case 102:this.enterOuterAlt(t,5),this.state=1108,this.match(S.BooleanLiteral);break;default:throw new _(this)}}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}tupleExpression(){let t,e=new xe(this,this._ctx,this.state);this.enterRule(e,190,S.RULE_tupleExpression);try{switch(this.state=1137,this._errHandler.sync(this),this._input.LA(1)){case 23:for(this.enterOuterAlt(e,1),this.state=1111,this.match(S.T__22),this.state=1113,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=1112,this.expression(0)),this.state=1121,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1115,this.match(S.T__15),this.state=1117,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))&&(this.state=1116,this.expression(0)),this.state=1123,this._errHandler.sync(this),t=this._input.LA(1);this.state=1124,this.match(S.T__23);break;case 42:if(this.enterOuterAlt(e,2),this.state=1125,this.match(S.T__41),this.state=1134,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&3263184960)||0==(t-38&-32)&&0!=(1<<t-38&4278194513)||0==(t-71&-32)&&0!=(1<<t-71&4244635651)||0==(t-103&-32)&&0!=(1<<t-103&124273675))for(this.state=1126,this.expression(0),this.state=1131,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1127,this.match(S.T__15),this.state=1128,this.expression(0),this.state=1133,this._errHandler.sync(this),t=this._input.LA(1);this.state=1136,this.match(S.T__42);break;default:throw new _(this)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}numberLiteral(){let t,e=new fe(this,this._ctx,this.state);this.enterRule(e,192,S.RULE_numberLiteral);try{this.enterOuterAlt(e,1),this.state=1139,t=this._input.LA(1),103!==t&&104!==t?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=1141,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,125,this._ctx)&&(this.state=1140,this.match(S.NumberUnit))}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}identifier(){let t,e=new ye(this,this._ctx,this.state);this.enterRule(e,194,S.RULE_identifier);try{this.enterOuterAlt(e,1),this.state=1143,t=this._input.LA(1),14===t||25===t||0==(t-44&-32)&&0!=(1<<t-44&262209)||0==(t-95&-32)&&0!=(1<<t-95&1615069185)||127===t||128===t?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}hexLiteral(){let t=new ge(this,this._ctx,this.state);this.enterRule(t,196,S.RULE_hexLiteral);try{let e;this.enterOuterAlt(t,1),this.state=1146,this._errHandler.sync(this),e=1;do{if(1!==e)throw new _(this);this.state=1145,this.match(S.HexLiteralFragment),this.state=1148,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,126,this._ctx)}while(2!==e&&e!==a.INVALID_ALT_NUMBER)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}overrideSpecifier(){let t,e=new Te(this,this._ctx,this.state);this.enterRule(e,198,S.RULE_overrideSpecifier);try{if(this.enterOuterAlt(e,1),this.state=1150,this.match(S.T__95),this.state=1162,this._errHandler.sync(this),t=this._input.LA(1),23===t){for(this.state=1151,this.match(S.T__22),this.state=1152,this.userDefinedTypeName(),this.state=1157,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1153,this.match(S.T__15),this.state=1154,this.userDefinedTypeName(),this.state=1159,this._errHandler.sync(this),t=this._input.LA(1);this.state=1160,this.match(S.T__23)}}catch(t){if(!(t instanceof E))throw t;e.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.exitRule()}return e}stringLiteral(){let t=new Ee(this,this._ctx,this.state);this.enterRule(t,200,S.RULE_stringLiteral);try{let e;this.enterOuterAlt(t,1),this.state=1165,this._errHandler.sync(this),e=1;do{if(1!==e)throw new _(this);this.state=1164,this.match(S.StringLiteralFragment),this.state=1167,this._errHandler.sync(this),e=this._interp.adaptivePredict(this._input,129,this._ctx)}while(2!==e&&e!==a.INVALID_ALT_NUMBER)}catch(e){if(!(e instanceof E))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}sempred(t,e,i){switch(e){case 38:return this.typeName_sempred(t,i);case 70:return this.expression_sempred(t,i)}return!0}typeName_sempred(t,e){return 0!==e||this.precpred(this._ctx,3)}expression_sempred(t,e){switch(e){case 1:return this.precpred(this._ctx,14);case 2:return this.precpred(this._ctx,13);case 3:return this.precpred(this._ctx,12);case 4:return this.precpred(this._ctx,11);case 5:return this.precpred(this._ctx,10);case 6:return this.precpred(this._ctx,9);case 7:return this.precpred(this._ctx,8);case 8:return this.precpred(this._ctx,7);case 9:return this.precpred(this._ctx,6);case 10:return this.precpred(this._ctx,5);case 11:return this.precpred(this._ctx,4);case 12:return this.precpred(this._ctx,3);case 13:return this.precpred(this._ctx,2);case 14:return this.precpred(this._ctx,27);case 15:return this.precpred(this._ctx,25);case 16:return this.precpred(this._ctx,24);case 17:return this.precpred(this._ctx,23);case 18:return this.precpred(this._ctx,22);case 19:return this.precpred(this._ctx,21)}return!0}static get _ATN(){return S.__ATN||(S.__ATN=(new o).deserialize(S._serializedATN)),S.__ATN}},A=S;A.T__0=1,A.T__1=2,A.T__2=3,A.T__3=4,A.T__4=5,A.T__5=6,A.T__6=7,A.T__7=8,A.T__8=9,A.T__9=10,A.T__10=11,A.T__11=12,A.T__12=13,A.T__13=14,A.T__14=15,A.T__15=16,A.T__16=17,A.T__17=18,A.T__18=19,A.T__19=20,A.T__20=21,A.T__21=22,A.T__22=23,A.T__23=24,A.T__24=25,A.T__25=26,A.T__26=27,A.T__27=28,A.T__28=29,A.T__29=30,A.T__30=31,A.T__31=32,A.T__32=33,A.T__33=34,A.T__34=35,A.T__35=36,A.T__36=37,A.T__37=38,A.T__38=39,A.T__39=40,A.T__40=41,A.T__41=42,A.T__42=43,A.T__43=44,A.T__44=45,A.T__45=46,A.T__46=47,A.T__47=48,A.T__48=49,A.T__49=50,A.T__50=51,A.T__51=52,A.T__52=53,A.T__53=54,A.T__54=55,A.T__55=56,A.T__56=57,A.T__57=58,A.T__58=59,A.T__59=60,A.T__60=61,A.T__61=62,A.T__62=63,A.T__63=64,A.T__64=65,A.T__65=66,A.T__66=67,A.T__67=68,A.T__68=69,A.T__69=70,A.T__70=71,A.T__71=72,A.T__72=73,A.T__73=74,A.T__74=75,A.T__75=76,A.T__76=77,A.T__77=78,A.T__78=79,A.T__79=80,A.T__80=81,A.T__81=82,A.T__82=83,A.T__83=84,A.T__84=85,A.T__85=86,A.T__86=87,A.T__87=88,A.T__88=89,A.T__89=90,A.T__90=91,A.T__91=92,A.T__92=93,A.T__93=94,A.T__94=95,A.T__95=96,A.Int=97,A.Uint=98,A.Byte=99,A.Fixed=100,A.Ufixed=101,A.BooleanLiteral=102,A.DecimalNumber=103,A.HexNumber=104,A.NumberUnit=105,A.HexLiteralFragment=106,A.ReservedKeyword=107,A.AnonymousKeyword=108,A.BreakKeyword=109,A.ConstantKeyword=110,A.ImmutableKeyword=111,A.ContinueKeyword=112,A.LeaveKeyword=113,A.ExternalKeyword=114,A.IndexedKeyword=115,A.InternalKeyword=116,A.PayableKeyword=117,A.PrivateKeyword=118,A.PublicKeyword=119,A.VirtualKeyword=120,A.PureKeyword=121,A.TypeKeyword=122,A.ViewKeyword=123,A.GlobalKeyword=124,A.ConstructorKeyword=125,A.FallbackKeyword=126,A.ReceiveKeyword=127,A.Identifier=128,A.StringLiteralFragment=129,A.VersionLiteral=130,A.WS=131,A.COMMENT=132,A.LINE_COMMENT=133,A.EOF=v.EOF,A.RULE_sourceUnit=0,A.RULE_pragmaDirective=1,A.RULE_pragmaName=2,A.RULE_pragmaValue=3,A.RULE_version=4,A.RULE_versionOperator=5,A.RULE_versionConstraint=6,A.RULE_importDeclaration=7,A.RULE_importDirective=8,A.RULE_importPath=9,A.RULE_contractDefinition=10,A.RULE_inheritanceSpecifier=11,A.RULE_contractPart=12,A.RULE_stateVariableDeclaration=13,A.RULE_fileLevelConstant=14,A.RULE_customErrorDefinition=15,A.RULE_typeDefinition=16,A.RULE_usingForDeclaration=17,A.RULE_usingForObject=18,A.RULE_usingForObjectDirective=19,A.RULE_userDefinableOperators=20,A.RULE_structDefinition=21,A.RULE_modifierDefinition=22,A.RULE_modifierInvocation=23,A.RULE_functionDefinition=24,A.RULE_functionDescriptor=25,A.RULE_returnParameters=26,A.RULE_modifierList=27,A.RULE_eventDefinition=28,A.RULE_enumValue=29,A.RULE_enumDefinition=30,A.RULE_parameterList=31,A.RULE_parameter=32,A.RULE_eventParameterList=33,A.RULE_eventParameter=34,A.RULE_functionTypeParameterList=35,A.RULE_functionTypeParameter=36,A.RULE_variableDeclaration=37,A.RULE_typeName=38,A.RULE_userDefinedTypeName=39,A.RULE_mappingKey=40,A.RULE_mapping=41,A.RULE_mappingKeyName=42,A.RULE_mappingValueName=43,A.RULE_functionTypeName=44,A.RULE_storageLocation=45,A.RULE_stateMutability=46,A.RULE_block=47,A.RULE_statement=48,A.RULE_expressionStatement=49,A.RULE_ifStatement=50,A.RULE_tryStatement=51,A.RULE_catchClause=52,A.RULE_whileStatement=53,A.RULE_simpleStatement=54,A.RULE_uncheckedStatement=55,A.RULE_forStatement=56,A.RULE_inlineAssemblyStatement=57,A.RULE_inlineAssemblyStatementFlag=58,A.RULE_doWhileStatement=59,A.RULE_continueStatement=60,A.RULE_breakStatement=61,A.RULE_returnStatement=62,A.RULE_throwStatement=63,A.RULE_emitStatement=64,A.RULE_revertStatement=65,A.RULE_variableDeclarationStatement=66,A.RULE_variableDeclarationList=67,A.RULE_identifierList=68,A.RULE_elementaryTypeName=69,A.RULE_expression=70,A.RULE_primaryExpression=71,A.RULE_expressionList=72,A.RULE_nameValueList=73,A.RULE_nameValue=74,A.RULE_functionCallArguments=75,A.RULE_functionCall=76,A.RULE_assemblyBlock=77,A.RULE_assemblyItem=78,A.RULE_assemblyExpression=79,A.RULE_assemblyMember=80,A.RULE_assemblyCall=81,A.RULE_assemblyLocalDefinition=82,A.RULE_assemblyAssignment=83,A.RULE_assemblyIdentifierOrList=84,A.RULE_assemblyIdentifierList=85,A.RULE_assemblyStackAssignment=86,A.RULE_labelDefinition=87,A.RULE_assemblySwitch=88,A.RULE_assemblyCase=89,A.RULE_assemblyFunctionDefinition=90,A.RULE_assemblyFunctionReturns=91,A.RULE_assemblyFor=92,A.RULE_assemblyIf=93,A.RULE_assemblyLiteral=94,A.RULE_tupleExpression=95,A.RULE_numberLiteral=96,A.RULE_identifier=97,A.RULE_hexLiteral=98,A.RULE_overrideSpecifier=99,A.RULE_stringLiteral=100,A.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],A.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],A.ruleNames=["sourceUnit","pragmaDirective","pragmaName","pragmaValue","version","versionOperator","versionConstraint","importDeclaration","importDirective","importPath","contractDefinition","inheritanceSpecifier","contractPart","stateVariableDeclaration","fileLevelConstant","customErrorDefinition","typeDefinition","usingForDeclaration","usingForObject","usingForObjectDirective","userDefinableOperators","structDefinition","modifierDefinition","modifierInvocation","functionDefinition","functionDescriptor","returnParameters","modifierList","eventDefinition","enumValue","enumDefinition","parameterList","parameter","eventParameterList","eventParameter","functionTypeParameterList","functionTypeParameter","variableDeclaration","typeName","userDefinedTypeName","mappingKey","mapping","mappingKeyName","mappingValueName","functionTypeName","storageLocation","stateMutability","block","statement","expressionStatement","ifStatement","tryStatement","catchClause","whileStatement","simpleStatement","uncheckedStatement","forStatement","inlineAssemblyStatement","inlineAssemblyStatementFlag","doWhileStatement","continueStatement","breakStatement","returnStatement","throwStatement","emitStatement","revertStatement","variableDeclarationStatement","variableDeclarationList","identifierList","elementaryTypeName","expression","primaryExpression","expressionList","nameValueList","nameValue","functionCallArguments","functionCall","assemblyBlock","assemblyItem","assemblyExpression","assemblyMember","assemblyCall","assemblyLocalDefinition","assemblyAssignment","assemblyIdentifierOrList","assemblyIdentifierList","assemblyStackAssignment","labelDefinition","assemblySwitch","assemblyCase","assemblyFunctionDefinition","assemblyFunctionReturns","assemblyFor","assemblyIf","assemblyLiteral","tupleExpression","numberLiteral","identifier","hexLiteral","overrideSpecifier","stringLiteral"],A._serializedATN=[4,1,133,1170,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,5,0,214,8,0,10,0,12,0,217,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,3,1,3,1,3,3,3,231,8,3,1,4,1,4,3,4,235,8,4,1,4,5,4,238,8,4,10,4,12,4,241,9,4,1,5,1,5,1,6,3,6,246,8,6,1,6,1,6,3,6,250,8,6,1,6,3,6,253,8,6,1,7,1,7,1,7,3,7,258,8,7,1,8,1,8,1,8,1,8,3,8,264,8,8,1,8,1,8,1,8,1,8,1,8,3,8,271,8,8,1,8,1,8,3,8,275,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,5,8,286,8,8,10,8,12,8,289,9,8,1,8,1,8,1,8,1,8,1,8,3,8,296,8,8,1,9,1,9,1,10,3,10,301,8,10,1,10,1,10,1,10,1,10,1,10,1,10,5,10,309,8,10,10,10,12,10,312,9,10,3,10,314,8,10,1,10,1,10,5,10,318,8,10,10,10,12,10,321,9,10,1,10,1,10,1,11,1,11,1,11,3,11,328,8,11,1,11,3,11,331,8,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,342,8,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,5,13,351,8,13,10,13,12,13,354,9,13,1,13,1,13,1,13,3,13,359,8,13,1,13,1,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,3,17,386,8,17,1,17,3,17,389,8,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,5,18,398,8,18,10,18,12,18,401,9,18,1,18,1,18,3,18,405,8,18,1,19,1,19,1,19,3,19,410,8,19,1,20,1,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,5,21,422,8,21,10,21,12,21,425,9,21,3,21,427,8,21,1,21,1,21,1,22,1,22,1,22,3,22,434,8,22,1,22,1,22,5,22,438,8,22,10,22,12,22,441,9,22,1,22,1,22,3,22,445,8,22,1,23,1,23,1,23,3,23,450,8,23,1,23,3,23,453,8,23,1,24,1,24,1,24,1,24,3,24,459,8,24,1,24,1,24,3,24,463,8,24,1,25,1,25,3,25,467,8,25,1,25,1,25,1,25,3,25,472,8,25,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,27,1,27,5,27,485,8,27,10,27,12,27,488,9,27,1,28,1,28,1,28,1,28,3,28,494,8,28,1,28,1,28,1,29,1,29,1,30,1,30,1,30,1,30,3,30,504,8,30,1,30,1,30,5,30,508,8,30,10,30,12,30,511,9,30,1,30,1,30,1,31,1,31,1,31,1,31,5,31,519,8,31,10,31,12,31,522,9,31,3,31,524,8,31,1,31,1,31,1,32,1,32,3,32,530,8,32,1,32,3,32,533,8,32,1,33,1,33,1,33,1,33,5,33,539,8,33,10,33,12,33,542,9,33,3,33,544,8,33,1,33,1,33,1,34,1,34,3,34,550,8,34,1,34,3,34,553,8,34,1,35,1,35,1,35,1,35,5,35,559,8,35,10,35,12,35,562,9,35,3,35,564,8,35,1,35,1,35,1,36,1,36,3,36,570,8,36,1,37,1,37,3,37,574,8,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,585,8,38,1,38,1,38,1,38,3,38,590,8,38,1,38,5,38,593,8,38,10,38,12,38,596,9,38,1,39,1,39,1,39,5,39,601,8,39,10,39,12,39,604,9,39,1,40,1,40,3,40,608,8,40,1,41,1,41,1,41,1,41,3,41,614,8,41,1,41,1,41,1,41,3,41,619,8,41,1,41,1,41,1,42,1,42,1,43,1,43,1,44,1,44,1,44,1,44,1,44,5,44,632,8,44,10,44,12,44,635,9,44,1,44,1,44,3,44,639,8,44,1,45,1,45,1,46,1,46,1,47,1,47,5,47,647,8,47,10,47,12,47,650,9,47,1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,3,48,669,8,48,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,3,50,681,8,50,1,51,1,51,1,51,3,51,686,8,51,1,51,1,51,4,51,690,8,51,11,51,12,51,691,1,52,1,52,3,52,696,8,52,1,52,3,52,699,8,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,3,54,711,8,54,1,55,1,55,1,55,1,56,1,56,1,56,1,56,3,56,720,8,56,1,56,1,56,3,56,724,8,56,1,56,3,56,727,8,56,1,56,1,56,1,56,1,57,1,57,3,57,734,8,57,1,57,1,57,1,57,1,57,3,57,740,8,57,1,57,1,57,1,58,1,58,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,60,1,60,1,60,1,61,1,61,1,61,1,62,1,62,3,62,762,8,62,1,62,1,62,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,66,1,66,3,66,784,8,66,1,66,1,66,3,66,788,8,66,1,66,1,66,1,67,3,67,793,8,67,1,67,1,67,3,67,797,8,67,5,67,799,8,67,10,67,12,67,802,9,67,1,68,1,68,3,68,806,8,68,1,68,5,68,809,8,68,10,68,12,68,812,9,68,1,68,3,68,815,8,68,1,68,1,68,1,69,1,69,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,3,70,839,8,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,3,70,893,8,70,1,70,1,70,3,70,897,8,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,5,70,913,8,70,10,70,12,70,916,9,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,927,8,71,1,72,1,72,1,72,5,72,932,8,72,10,72,12,72,935,9,72,1,73,1,73,1,73,5,73,940,8,73,10,73,12,73,943,9,73,1,73,3,73,946,8,73,1,74,1,74,1,74,1,74,1,75,1,75,3,75,954,8,75,1,75,1,75,3,75,958,8,75,3,75,960,8,75,1,76,1,76,1,76,1,76,1,76,1,77,1,77,5,77,969,8,77,10,77,12,77,972,9,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,993,8,78,1,79,1,79,1,79,3,79,998,8,79,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,3,81,1008,8,81,1,81,1,81,3,81,1012,8,81,1,81,1,81,5,81,1016,8,81,10,81,12,81,1019,9,81,1,81,3,81,1022,8,81,1,82,1,82,1,82,1,82,3,82,1028,8,82,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,84,1,84,3,84,1041,8,84,1,85,1,85,1,85,5,85,1046,8,85,10,85,12,85,1049,9,85,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,88,1,88,1,88,5,88,1061,8,88,10,88,12,88,1064,9,88,1,89,1,89,1,89,1,89,1,89,1,89,3,89,1072,8,89,1,90,1,90,1,90,1,90,3,90,1078,8,90,1,90,1,90,3,90,1082,8,90,1,90,1,90,1,91,1,91,1,91,1,92,1,92,1,92,3,92,1092,8,92,1,92,1,92,1,92,3,92,1097,8,92,1,92,1,92,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,3,94,1110,8,94,1,95,1,95,3,95,1114,8,95,1,95,1,95,3,95,1118,8,95,5,95,1120,8,95,10,95,12,95,1123,9,95,1,95,1,95,1,95,1,95,1,95,5,95,1130,8,95,10,95,12,95,1133,9,95,3,95,1135,8,95,1,95,3,95,1138,8,95,1,96,1,96,3,96,1142,8,96,1,97,1,97,1,98,4,98,1147,8,98,11,98,12,98,1148,1,99,1,99,1,99,1,99,1,99,5,99,1156,8,99,10,99,12,99,1159,9,99,1,99,1,99,3,99,1163,8,99,1,100,4,100,1166,8,100,11,100,12,100,1167,1,100,0,2,76,140,101,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,0,15,1,0,5,11,1,0,19,21,3,0,3,3,5,10,28,35,1,0,48,50,4,0,110,110,117,117,121,121,123,123,3,0,44,44,63,66,97,101,1,0,67,68,1,0,30,31,2,0,3,3,32,33,1,0,74,75,1,0,7,10,1,0,34,35,2,0,11,11,78,87,1,0,103,104,10,0,14,14,25,25,44,44,50,50,62,62,95,95,113,113,117,117,124,125,127,128,1299,0,215,1,0,0,0,2,220,1,0,0,0,4,225,1,0,0,0,6,230,1,0,0,0,8,232,1,0,0,0,10,242,1,0,0,0,12,252,1,0,0,0,14,254,1,0,0,0,16,295,1,0,0,0,18,297,1,0,0,0,20,300,1,0,0,0,22,324,1,0,0,0,24,341,1,0,0,0,26,343,1,0,0,0,28,362,1,0,0,0,30,369,1,0,0,0,32,374,1,0,0,0,34,380,1,0,0,0,36,404,1,0,0,0,38,406,1,0,0,0,40,411,1,0,0,0,42,413,1,0,0,0,44,430,1,0,0,0,46,446,1,0,0,0,48,454,1,0,0,0,50,471,1,0,0,0,52,473,1,0,0,0,54,486,1,0,0,0,56,489,1,0,0,0,58,497,1,0,0,0,60,499,1,0,0,0,62,514,1,0,0,0,64,527,1,0,0,0,66,534,1,0,0,0,68,547,1,0,0,0,70,554,1,0,0,0,72,567,1,0,0,0,74,571,1,0,0,0,76,584,1,0,0,0,78,597,1,0,0,0,80,607,1,0,0,0,82,609,1,0,0,0,84,622,1,0,0,0,86,624,1,0,0,0,88,626,1,0,0,0,90,640,1,0,0,0,92,642,1,0,0,0,94,644,1,0,0,0,96,668,1,0,0,0,98,670,1,0,0,0,100,673,1,0,0,0,102,682,1,0,0,0,104,693,1,0,0,0,106,702,1,0,0,0,108,710,1,0,0,0,110,712,1,0,0,0,112,715,1,0,0,0,114,731,1,0,0,0,116,743,1,0,0,0,118,745,1,0,0,0,120,753,1,0,0,0,122,756,1,0,0,0,124,759,1,0,0,0,126,765,1,0,0,0,128,768,1,0,0,0,130,772,1,0,0,0,132,783,1,0,0,0,134,792,1,0,0,0,136,803,1,0,0,0,138,818,1,0,0,0,140,838,1,0,0,0,142,926,1,0,0,0,144,928,1,0,0,0,146,936,1,0,0,0,148,947,1,0,0,0,150,959,1,0,0,0,152,961,1,0,0,0,154,966,1,0,0,0,156,992,1,0,0,0,158,997,1,0,0,0,160,999,1,0,0,0,162,1007,1,0,0,0,164,1023,1,0,0,0,166,1029,1,0,0,0,168,1040,1,0,0,0,170,1042,1,0,0,0,172,1050,1,0,0,0,174,1054,1,0,0,0,176,1057,1,0,0,0,178,1071,1,0,0,0,180,1073,1,0,0,0,182,1085,1,0,0,0,184,1088,1,0,0,0,186,1100,1,0,0,0,188,1109,1,0,0,0,190,1137,1,0,0,0,192,1139,1,0,0,0,194,1143,1,0,0,0,196,1146,1,0,0,0,198,1150,1,0,0,0,200,1165,1,0,0,0,202,214,3,2,1,0,203,214,3,16,8,0,204,214,3,20,10,0,205,214,3,60,30,0,206,214,3,56,28,0,207,214,3,42,21,0,208,214,3,48,24,0,209,214,3,28,14,0,210,214,3,30,15,0,211,214,3,32,16,0,212,214,3,34,17,0,213,202,1,0,0,0,213,203,1,0,0,0,213,204,1,0,0,0,213,205,1,0,0,0,213,206,1,0,0,0,213,207,1,0,0,0,213,208,1,0,0,0,213,209,1,0,0,0,213,210,1,0,0,0,213,211,1,0,0,0,213,212,1,0,0,0,214,217,1,0,0,0,215,213,1,0,0,0,215,216,1,0,0,0,216,218,1,0,0,0,217,215,1,0,0,0,218,219,5,0,0,1,219,1,1,0,0,0,220,221,5,1,0,0,221,222,3,4,2,0,222,223,3,6,3,0,223,224,5,2,0,0,224,3,1,0,0,0,225,226,3,194,97,0,226,5,1,0,0,0,227,231,5,3,0,0,228,231,3,8,4,0,229,231,3,140,70,0,230,227,1,0,0,0,230,228,1,0,0,0,230,229,1,0,0,0,231,7,1,0,0,0,232,239,3,12,6,0,233,235,5,4,0,0,234,233,1,0,0,0,234,235,1,0,0,0,235,236,1,0,0,0,236,238,3,12,6,0,237,234,1,0,0,0,238,241,1,0,0,0,239,237,1,0,0,0,239,240,1,0,0,0,240,9,1,0,0,0,241,239,1,0,0,0,242,243,7,0,0,0,243,11,1,0,0,0,244,246,3,10,5,0,245,244,1,0,0,0,245,246,1,0,0,0,246,247,1,0,0,0,247,253,5,130,0,0,248,250,3,10,5,0,249,248,1,0,0,0,249,250,1,0,0,0,250,251,1,0,0,0,251,253,5,103,0,0,252,245,1,0,0,0,252,249,1,0,0,0,253,13,1,0,0,0,254,257,3,194,97,0,255,256,5,12,0,0,256,258,3,194,97,0,257,255,1,0,0,0,257,258,1,0,0,0,258,15,1,0,0,0,259,260,5,13,0,0,260,263,3,18,9,0,261,262,5,12,0,0,262,264,3,194,97,0,263,261,1,0,0,0,263,264,1,0,0,0,264,265,1,0,0,0,265,266,5,2,0,0,266,296,1,0,0,0,267,270,5,13,0,0,268,271,5,3,0,0,269,271,3,194,97,0,270,268,1,0,0,0,270,269,1,0,0,0,271,274,1,0,0,0,272,273,5,12,0,0,273,275,3,194,97,0,274,272,1,0,0,0,274,275,1,0,0,0,275,276,1,0,0,0,276,277,5,14,0,0,277,278,3,18,9,0,278,279,5,2,0,0,279,296,1,0,0,0,280,281,5,13,0,0,281,282,5,15,0,0,282,287,3,14,7,0,283,284,5,16,0,0,284,286,3,14,7,0,285,283,1,0,0,0,286,289,1,0,0,0,287,285,1,0,0,0,287,288,1,0,0,0,288,290,1,0,0,0,289,287,1,0,0,0,290,291,5,17,0,0,291,292,5,14,0,0,292,293,3,18,9,0,293,294,5,2,0,0,294,296,1,0,0,0,295,259,1,0,0,0,295,267,1,0,0,0,295,280,1,0,0,0,296,17,1,0,0,0,297,298,5,129,0,0,298,19,1,0,0,0,299,301,5,18,0,0,300,299,1,0,0,0,300,301,1,0,0,0,301,302,1,0,0,0,302,303,7,1,0,0,303,313,3,194,97,0,304,305,5,22,0,0,305,310,3,22,11,0,306,307,5,16,0,0,307,309,3,22,11,0,308,306,1,0,0,0,309,312,1,0,0,0,310,308,1,0,0,0,310,311,1,0,0,0,311,314,1,0,0,0,312,310,1,0,0,0,313,304,1,0,0,0,313,314,1,0,0,0,314,315,1,0,0,0,315,319,5,15,0,0,316,318,3,24,12,0,317,316,1,0,0,0,318,321,1,0,0,0,319,317,1,0,0,0,319,320,1,0,0,0,320,322,1,0,0,0,321,319,1,0,0,0,322,323,5,17,0,0,323,21,1,0,0,0,324,330,3,78,39,0,325,327,5,23,0,0,326,328,3,144,72,0,327,326,1,0,0,0,327,328,1,0,0,0,328,329,1,0,0,0,329,331,5,24,0,0,330,325,1,0,0,0,330,331,1,0,0,0,331,23,1,0,0,0,332,342,3,26,13,0,333,342,3,34,17,0,334,342,3,42,21,0,335,342,3,44,22,0,336,342,3,48,24,0,337,342,3,56,28,0,338,342,3,60,30,0,339,342,3,30,15,0,340,342,3,32,16,0,341,332,1,0,0,0,341,333,1,0,0,0,341,334,1,0,0,0,341,335,1,0,0,0,341,336,1,0,0,0,341,337,1,0,0,0,341,338,1,0,0,0,341,339,1,0,0,0,341,340,1,0,0,0,342,25,1,0,0,0,343,352,3,76,38,0,344,351,5,119,0,0,345,351,5,116,0,0,346,351,5,118,0,0,347,351,5,110,0,0,348,351,5,111,0,0,349,351,3,198,99,0,350,344,1,0,0,0,350,345,1,0,0,0,350,346,1,0,0,0,350,347,1,0,0,0,350,348,1,0,0,0,350,349,1,0,0,0,351,354,1,0,0,0,352,350,1,0,0,0,352,353,1,0,0,0,353,355,1,0,0,0,354,352,1,0,0,0,355,358,3,194,97,0,356,357,5,11,0,0,357,359,3,140,70,0,358,356,1,0,0,0,358,359,1,0,0,0,359,360,1,0,0,0,360,361,5,2,0,0,361,27,1,0,0,0,362,363,3,76,38,0,363,364,5,110,0,0,364,365,3,194,97,0,365,366,5,11,0,0,366,367,3,140,70,0,367,368,5,2,0,0,368,29,1,0,0,0,369,370,5,25,0,0,370,371,3,194,97,0,371,372,3,62,31,0,372,373,5,2,0,0,373,31,1,0,0,0,374,375,5,122,0,0,375,376,3,194,97,0,376,377,5,22,0,0,377,378,3,138,69,0,378,379,5,2,0,0,379,33,1,0,0,0,380,381,5,26,0,0,381,382,3,36,18,0,382,385,5,27,0,0,383,386,5,3,0,0,384,386,3,76,38,0,385,383,1,0,0,0,385,384,1,0,0,0,386,388,1,0,0,0,387,389,5,124,0,0,388,387,1,0,0,0,388,389,1,0,0,0,389,390,1,0,0,0,390,391,5,2,0,0,391,35,1,0,0,0,392,405,3,78,39,0,393,394,5,15,0,0,394,399,3,38,19,0,395,396,5,16,0,0,396,398,3,38,19,0,397,395,1,0,0,0,398,401,1,0,0,0,399,397,1,0,0,0,399,400,1,0,0,0,400,402,1,0,0,0,401,399,1,0,0,0,402,403,5,17,0,0,403,405,1,0,0,0,404,392,1,0,0,0,404,393,1,0,0,0,405,37,1,0,0,0,406,409,3,78,39,0,407,408,5,12,0,0,408,410,3,40,20,0,409,407,1,0,0,0,409,410,1,0,0,0,410,39,1,0,0,0,411,412,7,2,0,0,412,41,1,0,0,0,413,414,5,36,0,0,414,415,3,194,97,0,415,426,5,15,0,0,416,417,3,74,37,0,417,423,5,2,0,0,418,419,3,74,37,0,419,420,5,2,0,0,420,422,1,0,0,0,421,418,1,0,0,0,422,425,1,0,0,0,423,421,1,0,0,0,423,424,1,0,0,0,424,427,1,0,0,0,425,423,1,0,0,0,426,416,1,0,0,0,426,427,1,0,0,0,427,428,1,0,0,0,428,429,5,17,0,0,429,43,1,0,0,0,430,431,5,37,0,0,431,433,3,194,97,0,432,434,3,62,31,0,433,432,1,0,0,0,433,434,1,0,0,0,434,439,1,0,0,0,435,438,5,120,0,0,436,438,3,198,99,0,437,435,1,0,0,0,437,436,1,0,0,0,438,441,1,0,0,0,439,437,1,0,0,0,439,440,1,0,0,0,440,444,1,0,0,0,441,439,1,0,0,0,442,445,5,2,0,0,443,445,3,94,47,0,444,442,1,0,0,0,444,443,1,0,0,0,445,45,1,0,0,0,446,452,3,194,97,0,447,449,5,23,0,0,448,450,3,144,72,0,449,448,1,0,0,0,449,450,1,0,0,0,450,451,1,0,0,0,451,453,5,24,0,0,452,447,1,0,0,0,452,453,1,0,0,0,453,47,1,0,0,0,454,455,3,50,25,0,455,456,3,62,31,0,456,458,3,54,27,0,457,459,3,52,26,0,458,457,1,0,0,0,458,459,1,0,0,0,459,462,1,0,0,0,460,463,5,2,0,0,461,463,3,94,47,0,462,460,1,0,0,0,462,461,1,0,0,0,463,49,1,0,0,0,464,466,5,38,0,0,465,467,3,194,97,0,466,465,1,0,0,0,466,467,1,0,0,0,467,472,1,0,0,0,468,472,5,125,0,0,469,472,5,126,0,0,470,472,5,127,0,0,471,464,1,0,0,0,471,468,1,0,0,0,471,469,1,0,0,0,471,470,1,0,0,0,472,51,1,0,0,0,473,474,5,39,0,0,474,475,3,62,31,0,475,53,1,0,0,0,476,485,5,114,0,0,477,485,5,119,0,0,478,485,5,116,0,0,479,485,5,118,0,0,480,485,5,120,0,0,481,485,3,92,46,0,482,485,3,46,23,0,483,485,3,198,99,0,484,476,1,0,0,0,484,477,1,0,0,0,484,478,1,0,0,0,484,479,1,0,0,0,484,480,1,0,0,0,484,481,1,0,0,0,484,482,1,0,0,0,484,483,1,0,0,0,485,488,1,0,0,0,486,484,1,0,0,0,486,487,1,0,0,0,487,55,1,0,0,0,488,486,1,0,0,0,489,490,5,40,0,0,490,491,3,194,97,0,491,493,3,66,33,0,492,494,5,108,0,0,493,492,1,0,0,0,493,494,1,0,0,0,494,495,1,0,0,0,495,496,5,2,0,0,496,57,1,0,0,0,497,498,3,194,97,0,498,59,1,0,0,0,499,500,5,41,0,0,500,501,3,194,97,0,501,503,5,15,0,0,502,504,3,58,29,0,503,502,1,0,0,0,503,504,1,0,0,0,504,509,1,0,0,0,505,506,5,16,0,0,506,508,3,58,29,0,507,505,1,0,0,0,508,511,1,0,0,0,509,507,1,0,0,0,509,510,1,0,0,0,510,512,1,0,0,0,511,509,1,0,0,0,512,513,5,17,0,0,513,61,1,0,0,0,514,523,5,23,0,0,515,520,3,64,32,0,516,517,5,16,0,0,517,519,3,64,32,0,518,516,1,0,0,0,519,522,1,0,0,0,520,518,1,0,0,0,520,521,1,0,0,0,521,524,1,0,0,0,522,520,1,0,0,0,523,515,1,0,0,0,523,524,1,0,0,0,524,525,1,0,0,0,525,526,5,24,0,0,526,63,1,0,0,0,527,529,3,76,38,0,528,530,3,90,45,0,529,528,1,0,0,0,529,530,1,0,0,0,530,532,1,0,0,0,531,533,3,194,97,0,532,531,1,0,0,0,532,533,1,0,0,0,533,65,1,0,0,0,534,543,5,23,0,0,535,540,3,68,34,0,536,537,5,16,0,0,537,539,3,68,34,0,538,536,1,0,0,0,539,542,1,0,0,0,540,538,1,0,0,0,540,541,1,0,0,0,541,544,1,0,0,0,542,540,1,0,0,0,543,535,1,0,0,0,543,544,1,0,0,0,544,545,1,0,0,0,545,546,5,24,0,0,546,67,1,0,0,0,547,549,3,76,38,0,548,550,5,115,0,0,549,548,1,0,0,0,549,550,1,0,0,0,550,552,1,0,0,0,551,553,3,194,97,0,552,551,1,0,0,0,552,553,1,0,0,0,553,69,1,0,0,0,554,563,5,23,0,0,555,560,3,72,36,0,556,557,5,16,0,0,557,559,3,72,36,0,558,556,1,0,0,0,559,562,1,0,0,0,560,558,1,0,0,0,560,561,1,0,0,0,561,564,1,0,0,0,562,560,1,0,0,0,563,555,1,0,0,0,563,564,1,0,0,0,564,565,1,0,0,0,565,566,5,24,0,0,566,71,1,0,0,0,567,569,3,76,38,0,568,570,3,90,45,0,569,568,1,0,0,0,569,570,1,0,0,0,570,73,1,0,0,0,571,573,3,76,38,0,572,574,3,90,45,0,573,572,1,0,0,0,573,574,1,0,0,0,574,575,1,0,0,0,575,576,3,194,97,0,576,75,1,0,0,0,577,578,6,38,-1,0,578,585,3,138,69,0,579,585,3,78,39,0,580,585,3,82,41,0,581,585,3,88,44,0,582,583,5,44,0,0,583,585,5,117,0,0,584,577,1,0,0,0,584,579,1,0,0,0,584,580,1,0,0,0,584,581,1,0,0,0,584,582,1,0,0,0,585,594,1,0,0,0,586,587,10,3,0,0,587,589,5,42,0,0,588,590,3,140,70,0,589,588,1,0,0,0,589,590,1,0,0,0,590,591,1,0,0,0,591,593,5,43,0,0,592,586,1,0,0,0,593,596,1,0,0,0,594,592,1,0,0,0,594,595,1,0,0,0,595,77,1,0,0,0,596,594,1,0,0,0,597,602,3,194,97,0,598,599,5,45,0,0,599,601,3,194,97,0,600,598,1,0,0,0,601,604,1,0,0,0,602,600,1,0,0,0,602,603,1,0,0,0,603,79,1,0,0,0,604,602,1,0,0,0,605,608,3,138,69,0,606,608,3,78,39,0,607,605,1,0,0,0,607,606,1,0,0,0,608,81,1,0,0,0,609,610,5,46,0,0,610,611,5,23,0,0,611,613,3,80,40,0,612,614,3,84,42,0,613,612,1,0,0,0,613,614,1,0,0,0,614,615,1,0,0,0,615,616,5,47,0,0,616,618,3,76,38,0,617,619,3,86,43,0,618,617,1,0,0,0,618,619,1,0,0,0,619,620,1,0,0,0,620,621,5,24,0,0,621,83,1,0,0,0,622,623,3,194,97,0,623,85,1,0,0,0,624,625,3,194,97,0,625,87,1,0,0,0,626,627,5,38,0,0,627,633,3,70,35,0,628,632,5,116,0,0,629,632,5,114,0,0,630,632,3,92,46,0,631,628,1,0,0,0,631,629,1,0,0,0,631,630,1,0,0,0,632,635,1,0,0,0,633,631,1,0,0,0,633,634,1,0,0,0,634,638,1,0,0,0,635,633,1,0,0,0,636,637,5,39,0,0,637,639,3,70,35,0,638,636,1,0,0,0,638,639,1,0,0,0,639,89,1,0,0,0,640,641,7,3,0,0,641,91,1,0,0,0,642,643,7,4,0,0,643,93,1,0,0,0,644,648,5,15,0,0,645,647,3,96,48,0,646,645,1,0,0,0,647,650,1,0,0,0,648,646,1,0,0,0,648,649,1,0,0,0,649,651,1,0,0,0,650,648,1,0,0,0,651,652,5,17,0,0,652,95,1,0,0,0,653,669,3,100,50,0,654,669,3,102,51,0,655,669,3,106,53,0,656,669,3,112,56,0,657,669,3,94,47,0,658,669,3,114,57,0,659,669,3,118,59,0,660,669,3,120,60,0,661,669,3,122,61,0,662,669,3,124,62,0,663,669,3,126,63,0,664,669,3,128,64,0,665,669,3,108,54,0,666,669,3,110,55,0,667,669,3,130,65,0,668,653,1,0,0,0,668,654,1,0,0,0,668,655,1,0,0,0,668,656,1,0,0,0,668,657,1,0,0,0,668,658,1,0,0,0,668,659,1,0,0,0,668,660,1,0,0,0,668,661,1,0,0,0,668,662,1,0,0,0,668,663,1,0,0,0,668,664,1,0,0,0,668,665,1,0,0,0,668,666,1,0,0,0,668,667,1,0,0,0,669,97,1,0,0,0,670,671,3,140,70,0,671,672,5,2,0,0,672,99,1,0,0,0,673,674,5,51,0,0,674,675,5,23,0,0,675,676,3,140,70,0,676,677,5,24,0,0,677,680,3,96,48,0,678,679,5,52,0,0,679,681,3,96,48,0,680,678,1,0,0,0,680,681,1,0,0,0,681,101,1,0,0,0,682,683,5,53,0,0,683,685,3,140,70,0,684,686,3,52,26,0,685,684,1,0,0,0,685,686,1,0,0,0,686,687,1,0,0,0,687,689,3,94,47,0,688,690,3,104,52,0,689,688,1,0,0,0,690,691,1,0,0,0,691,689,1,0,0,0,691,692,1,0,0,0,692,103,1,0,0,0,693,698,5,54,0,0,694,696,3,194,97,0,695,694,1,0,0,0,695,696,1,0,0,0,696,697,1,0,0,0,697,699,3,62,31,0,698,695,1,0,0,0,698,699,1,0,0,0,699,700,1,0,0,0,700,701,3,94,47,0,701,105,1,0,0,0,702,703,5,55,0,0,703,704,5,23,0,0,704,705,3,140,70,0,705,706,5,24,0,0,706,707,3,96,48,0,707,107,1,0,0,0,708,711,3,132,66,0,709,711,3,98,49,0,710,708,1,0,0,0,710,709,1,0,0,0,711,109,1,0,0,0,712,713,5,56,0,0,713,714,3,94,47,0,714,111,1,0,0,0,715,716,5,27,0,0,716,719,5,23,0,0,717,720,3,108,54,0,718,720,5,2,0,0,719,717,1,0,0,0,719,718,1,0,0,0,720,723,1,0,0,0,721,724,3,98,49,0,722,724,5,2,0,0,723,721,1,0,0,0,723,722,1,0,0,0,724,726,1,0,0,0,725,727,3,140,70,0,726,725,1,0,0,0,726,727,1,0,0,0,727,728,1,0,0,0,728,729,5,24,0,0,729,730,3,96,48,0,730,113,1,0,0,0,731,733,5,57,0,0,732,734,5,129,0,0,733,732,1,0,0,0,733,734,1,0,0,0,734,739,1,0,0,0,735,736,5,23,0,0,736,737,3,116,58,0,737,738,5,24,0,0,738,740,1,0,0,0,739,735,1,0,0,0,739,740,1,0,0,0,740,741,1,0,0,0,741,742,3,154,77,0,742,115,1,0,0,0,743,744,3,200,100,0,744,117,1,0,0,0,745,746,5,58,0,0,746,747,3,96,48,0,747,748,5,55,0,0,748,749,5,23,0,0,749,750,3,140,70,0,750,751,5,24,0,0,751,752,5,2,0,0,752,119,1,0,0,0,753,754,5,112,0,0,754,755,5,2,0,0,755,121,1,0,0,0,756,757,5,109,0,0,757,758,5,2,0,0,758,123,1,0,0,0,759,761,5,59,0,0,760,762,3,140,70,0,761,760,1,0,0,0,761,762,1,0,0,0,762,763,1,0,0,0,763,764,5,2,0,0,764,125,1,0,0,0,765,766,5,60,0,0,766,767,5,2,0,0,767,127,1,0,0,0,768,769,5,61,0,0,769,770,3,152,76,0,770,771,5,2,0,0,771,129,1,0,0,0,772,773,5,62,0,0,773,774,3,152,76,0,774,775,5,2,0,0,775,131,1,0,0,0,776,777,5,63,0,0,777,784,3,136,68,0,778,784,3,74,37,0,779,780,5,23,0,0,780,781,3,134,67,0,781,782,5,24,0,0,782,784,1,0,0,0,783,776,1,0,0,0,783,778,1,0,0,0,783,779,1,0,0,0,784,787,1,0,0,0,785,786,5,11,0,0,786,788,3,140,70,0,787,785,1,0,0,0,787,788,1,0,0,0,788,789,1,0,0,0,789,790,5,2,0,0,790,133,1,0,0,0,791,793,3,74,37,0,792,791,1,0,0,0,792,793,1,0,0,0,793,800,1,0,0,0,794,796,5,16,0,0,795,797,3,74,37,0,796,795,1,0,0,0,796,797,1,0,0,0,797,799,1,0,0,0,798,794,1,0,0,0,799,802,1,0,0,0,800,798,1,0,0,0,800,801,1,0,0,0,801,135,1,0,0,0,802,800,1,0,0,0,803,810,5,23,0,0,804,806,3,194,97,0,805,804,1,0,0,0,805,806,1,0,0,0,806,807,1,0,0,0,807,809,5,16,0,0,808,805,1,0,0,0,809,812,1,0,0,0,810,808,1,0,0,0,810,811,1,0,0,0,811,814,1,0,0,0,812,810,1,0,0,0,813,815,3,194,97,0,814,813,1,0,0,0,814,815,1,0,0,0,815,816,1,0,0,0,816,817,5,24,0,0,817,137,1,0,0,0,818,819,7,5,0,0,819,139,1,0,0,0,820,821,6,70,-1,0,821,822,5,69,0,0,822,839,3,76,38,0,823,824,5,23,0,0,824,825,3,140,70,0,825,826,5,24,0,0,826,839,1,0,0,0,827,828,7,6,0,0,828,839,3,140,70,19,829,830,7,7,0,0,830,839,3,140,70,18,831,832,5,71,0,0,832,839,3,140,70,17,833,834,5,72,0,0,834,839,3,140,70,16,835,836,5,6,0,0,836,839,3,140,70,15,837,839,3,142,71,0,838,820,1,0,0,0,838,823,1,0,0,0,838,827,1,0,0,0,838,829,1,0,0,0,838,831,1,0,0,0,838,833,1,0,0,0,838,835,1,0,0,0,838,837,1,0,0,0,839,914,1,0,0,0,840,841,10,14,0,0,841,842,5,73,0,0,842,913,3,140,70,14,843,844,10,13,0,0,844,845,7,8,0,0,845,913,3,140,70,14,846,847,10,12,0,0,847,848,7,7,0,0,848,913,3,140,70,13,849,850,10,11,0,0,850,851,7,9,0,0,851,913,3,140,70,12,852,853,10,10,0,0,853,854,5,29,0,0,854,913,3,140,70,11,855,856,10,9,0,0,856,857,5,5,0,0,857,913,3,140,70,10,858,859,10,8,0,0,859,860,5,28,0,0,860,913,3,140,70,9,861,862,10,7,0,0,862,863,7,10,0,0,863,913,3,140,70,8,864,865,10,6,0,0,865,866,7,11,0,0,866,913,3,140,70,7,867,868,10,5,0,0,868,869,5,76,0,0,869,913,3,140,70,6,870,871,10,4,0,0,871,872,5,4,0,0,872,913,3,140,70,5,873,874,10,3,0,0,874,875,5,77,0,0,875,876,3,140,70,0,876,877,5,70,0,0,877,878,3,140,70,3,878,913,1,0,0,0,879,880,10,2,0,0,880,881,7,12,0,0,881,913,3,140,70,3,882,883,10,27,0,0,883,913,7,6,0,0,884,885,10,25,0,0,885,886,5,42,0,0,886,887,3,140,70,0,887,888,5,43,0,0,888,913,1,0,0,0,889,890,10,24,0,0,890,892,5,42,0,0,891,893,3,140,70,0,892,891,1,0,0,0,892,893,1,0,0,0,893,894,1,0,0,0,894,896,5,70,0,0,895,897,3,140,70,0,896,895,1,0,0,0,896,897,1,0,0,0,897,898,1,0,0,0,898,913,5,43,0,0,899,900,10,23,0,0,900,901,5,45,0,0,901,913,3,194,97,0,902,903,10,22,0,0,903,904,5,15,0,0,904,905,3,146,73,0,905,906,5,17,0,0,906,913,1,0,0,0,907,908,10,21,0,0,908,909,5,23,0,0,909,910,3,150,75,0,910,911,5,24,0,0,911,913,1,0,0,0,912,840,1,0,0,0,912,843,1,0,0,0,912,846,1,0,0,0,912,849,1,0,0,0,912,852,1,0,0,0,912,855,1,0,0,0,912,858,1,0,0,0,912,861,1,0,0,0,912,864,1,0,0,0,912,867,1,0,0,0,912,870,1,0,0,0,912,873,1,0,0,0,912,879,1,0,0,0,912,882,1,0,0,0,912,884,1,0,0,0,912,889,1,0,0,0,912,899,1,0,0,0,912,902,1,0,0,0,912,907,1,0,0,0,913,916,1,0,0,0,914,912,1,0,0,0,914,915,1,0,0,0,915,141,1,0,0,0,916,914,1,0,0,0,917,927,5,102,0,0,918,927,3,192,96,0,919,927,3,196,98,0,920,927,3,200,100,0,921,927,3,194,97,0,922,927,5,122,0,0,923,927,5,117,0,0,924,927,3,190,95,0,925,927,3,76,38,0,926,917,1,0,0,0,926,918,1,0,0,0,926,919,1,0,0,0,926,920,1,0,0,0,926,921,1,0,0,0,926,922,1,0,0,0,926,923,1,0,0,0,926,924,1,0,0,0,926,925,1,0,0,0,927,143,1,0,0,0,928,933,3,140,70,0,929,930,5,16,0,0,930,932,3,140,70,0,931,929,1,0,0,0,932,935,1,0,0,0,933,931,1,0,0,0,933,934,1,0,0,0,934,145,1,0,0,0,935,933,1,0,0,0,936,941,3,148,74,0,937,938,5,16,0,0,938,940,3,148,74,0,939,937,1,0,0,0,940,943,1,0,0,0,941,939,1,0,0,0,941,942,1,0,0,0,942,945,1,0,0,0,943,941,1,0,0,0,944,946,5,16,0,0,945,944,1,0,0,0,945,946,1,0,0,0,946,147,1,0,0,0,947,948,3,194,97,0,948,949,5,70,0,0,949,950,3,140,70,0,950,149,1,0,0,0,951,953,5,15,0,0,952,954,3,146,73,0,953,952,1,0,0,0,953,954,1,0,0,0,954,955,1,0,0,0,955,960,5,17,0,0,956,958,3,144,72,0,957,956,1,0,0,0,957,958,1,0,0,0,958,960,1,0,0,0,959,951,1,0,0,0,959,957,1,0,0,0,960,151,1,0,0,0,961,962,3,140,70,0,962,963,5,23,0,0,963,964,3,150,75,0,964,965,5,24,0,0,965,153,1,0,0,0,966,970,5,15,0,0,967,969,3,156,78,0,968,967,1,0,0,0,969,972,1,0,0,0,970,968,1,0,0,0,970,971,1,0,0,0,971,973,1,0,0,0,972,970,1,0,0,0,973,974,5,17,0,0,974,155,1,0,0,0,975,993,3,194,97,0,976,993,3,154,77,0,977,993,3,158,79,0,978,993,3,164,82,0,979,993,3,166,83,0,980,993,3,172,86,0,981,993,3,174,87,0,982,993,3,176,88,0,983,993,3,180,90,0,984,993,3,184,92,0,985,993,3,186,93,0,986,993,5,109,0,0,987,993,5,112,0,0,988,993,5,113,0,0,989,993,3,192,96,0,990,993,3,200,100,0,991,993,3,196,98,0,992,975,1,0,0,0,992,976,1,0,0,0,992,977,1,0,0,0,992,978,1,0,0,0,992,979,1,0,0,0,992,980,1,0,0,0,992,981,1,0,0,0,992,982,1,0,0,0,992,983,1,0,0,0,992,984,1,0,0,0,992,985,1,0,0,0,992,986,1,0,0,0,992,987,1,0,0,0,992,988,1,0,0,0,992,989,1,0,0,0,992,990,1,0,0,0,992,991,1,0,0,0,993,157,1,0,0,0,994,998,3,162,81,0,995,998,3,188,94,0,996,998,3,160,80,0,997,994,1,0,0,0,997,995,1,0,0,0,997,996,1,0,0,0,998,159,1,0,0,0,999,1e3,3,194,97,0,1e3,1001,5,45,0,0,1001,1002,3,194,97,0,1002,161,1,0,0,0,1003,1008,5,59,0,0,1004,1008,5,44,0,0,1005,1008,5,66,0,0,1006,1008,3,194,97,0,1007,1003,1,0,0,0,1007,1004,1,0,0,0,1007,1005,1,0,0,0,1007,1006,1,0,0,0,1008,1021,1,0,0,0,1009,1011,5,23,0,0,1010,1012,3,158,79,0,1011,1010,1,0,0,0,1011,1012,1,0,0,0,1012,1017,1,0,0,0,1013,1014,5,16,0,0,1014,1016,3,158,79,0,1015,1013,1,0,0,0,1016,1019,1,0,0,0,1017,1015,1,0,0,0,1017,1018,1,0,0,0,1018,1020,1,0,0,0,1019,1017,1,0,0,0,1020,1022,5,24,0,0,1021,1009,1,0,0,0,1021,1022,1,0,0,0,1022,163,1,0,0,0,1023,1024,5,88,0,0,1024,1027,3,168,84,0,1025,1026,5,89,0,0,1026,1028,3,158,79,0,1027,1025,1,0,0,0,1027,1028,1,0,0,0,1028,165,1,0,0,0,1029,1030,3,168,84,0,1030,1031,5,89,0,0,1031,1032,3,158,79,0,1032,167,1,0,0,0,1033,1041,3,194,97,0,1034,1041,3,160,80,0,1035,1041,3,170,85,0,1036,1037,5,23,0,0,1037,1038,3,170,85,0,1038,1039,5,24,0,0,1039,1041,1,0,0,0,1040,1033,1,0,0,0,1040,1034,1,0,0,0,1040,1035,1,0,0,0,1040,1036,1,0,0,0,1041,169,1,0,0,0,1042,1047,3,194,97,0,1043,1044,5,16,0,0,1044,1046,3,194,97,0,1045,1043,1,0,0,0,1046,1049,1,0,0,0,1047,1045,1,0,0,0,1047,1048,1,0,0,0,1048,171,1,0,0,0,1049,1047,1,0,0,0,1050,1051,3,158,79,0,1051,1052,5,90,0,0,1052,1053,3,194,97,0,1053,173,1,0,0,0,1054,1055,3,194,97,0,1055,1056,5,70,0,0,1056,175,1,0,0,0,1057,1058,5,91,0,0,1058,1062,3,158,79,0,1059,1061,3,178,89,0,1060,1059,1,0,0,0,1061,1064,1,0,0,0,1062,1060,1,0,0,0,1062,1063,1,0,0,0,1063,177,1,0,0,0,1064,1062,1,0,0,0,1065,1066,5,92,0,0,1066,1067,3,188,94,0,1067,1068,3,154,77,0,1068,1072,1,0,0,0,1069,1070,5,93,0,0,1070,1072,3,154,77,0,1071,1065,1,0,0,0,1071,1069,1,0,0,0,1072,179,1,0,0,0,1073,1074,5,38,0,0,1074,1075,3,194,97,0,1075,1077,5,23,0,0,1076,1078,3,170,85,0,1077,1076,1,0,0,0,1077,1078,1,0,0,0,1078,1079,1,0,0,0,1079,1081,5,24,0,0,1080,1082,3,182,91,0,1081,1080,1,0,0,0,1081,1082,1,0,0,0,1082,1083,1,0,0,0,1083,1084,3,154,77,0,1084,181,1,0,0,0,1085,1086,5,94,0,0,1086,1087,3,170,85,0,1087,183,1,0,0,0,1088,1091,5,27,0,0,1089,1092,3,154,77,0,1090,1092,3,158,79,0,1091,1089,1,0,0,0,1091,1090,1,0,0,0,1092,1093,1,0,0,0,1093,1096,3,158,79,0,1094,1097,3,154,77,0,1095,1097,3,158,79,0,1096,1094,1,0,0,0,1096,1095,1,0,0,0,1097,1098,1,0,0,0,1098,1099,3,154,77,0,1099,185,1,0,0,0,1100,1101,5,51,0,0,1101,1102,3,158,79,0,1102,1103,3,154,77,0,1103,187,1,0,0,0,1104,1110,3,200,100,0,1105,1110,5,103,0,0,1106,1110,5,104,0,0,1107,1110,3,196,98,0,1108,1110,5,102,0,0,1109,1104,1,0,0,0,1109,1105,1,0,0,0,1109,1106,1,0,0,0,1109,1107,1,0,0,0,1109,1108,1,0,0,0,1110,189,1,0,0,0,1111,1113,5,23,0,0,1112,1114,3,140,70,0,1113,1112,1,0,0,0,1113,1114,1,0,0,0,1114,1121,1,0,0,0,1115,1117,5,16,0,0,1116,1118,3,140,70,0,1117,1116,1,0,0,0,1117,1118,1,0,0,0,1118,1120,1,0,0,0,1119,1115,1,0,0,0,1120,1123,1,0,0,0,1121,1119,1,0,0,0,1121,1122,1,0,0,0,1122,1124,1,0,0,0,1123,1121,1,0,0,0,1124,1138,5,24,0,0,1125,1134,5,42,0,0,1126,1131,3,140,70,0,1127,1128,5,16,0,0,1128,1130,3,140,70,0,1129,1127,1,0,0,0,1130,1133,1,0,0,0,1131,1129,1,0,0,0,1131,1132,1,0,0,0,1132,1135,1,0,0,0,1133,1131,1,0,0,0,1134,1126,1,0,0,0,1134,1135,1,0,0,0,1135,1136,1,0,0,0,1136,1138,5,43,0,0,1137,1111,1,0,0,0,1137,1125,1,0,0,0,1138,191,1,0,0,0,1139,1141,7,13,0,0,1140,1142,5,105,0,0,1141,1140,1,0,0,0,1141,1142,1,0,0,0,1142,193,1,0,0,0,1143,1144,7,14,0,0,1144,195,1,0,0,0,1145,1147,5,106,0,0,1146,1145,1,0,0,0,1147,1148,1,0,0,0,1148,1146,1,0,0,0,1148,1149,1,0,0,0,1149,197,1,0,0,0,1150,1162,5,96,0,0,1151,1152,5,23,0,0,1152,1157,3,78,39,0,1153,1154,5,16,0,0,1154,1156,3,78,39,0,1155,1153,1,0,0,0,1156,1159,1,0,0,0,1157,1155,1,0,0,0,1157,1158,1,0,0,0,1158,1160,1,0,0,0,1159,1157,1,0,0,0,1160,1161,5,24,0,0,1161,1163,1,0,0,0,1162,1151,1,0,0,0,1162,1163,1,0,0,0,1163,199,1,0,0,0,1164,1166,5,129,0,0,1165,1164,1,0,0,0,1166,1167,1,0,0,0,1167,1165,1,0,0,0,1167,1168,1,0,0,0,1168,201,1,0,0,0,130,213,215,230,234,239,245,249,252,257,263,270,274,287,295,300,310,313,319,327,330,341,350,352,358,385,388,399,404,409,423,426,433,437,439,444,449,452,458,462,466,471,484,486,493,503,509,520,523,529,532,540,543,549,552,560,563,569,573,584,589,594,602,607,613,618,631,633,638,648,668,680,685,691,695,698,710,719,723,726,733,739,761,783,787,792,796,800,805,810,814,838,892,896,912,914,926,933,941,945,953,957,959,970,992,997,1007,1011,1017,1021,1027,1040,1047,1062,1071,1077,1081,1091,1096,1109,1113,1117,1121,1131,1134,1137,1141,1148,1157,1162,1167],A.DecisionsToDFA=S._ATN.decisionToState.map(((t,e)=>new c(t,e)));var C=A,w=class extends g{constructor(t,e,i){super(e,i),this.parser=t}EOF(){return this.getToken(A.EOF,0)}pragmaDirective_list(){return this.getTypedRuleContexts(N)}pragmaDirective(t){return this.getTypedRuleContext(N,t)}importDirective_list(){return this.getTypedRuleContexts(U)}importDirective(t){return this.getTypedRuleContext(U,t)}contractDefinition_list(){return this.getTypedRuleContexts(M)}contractDefinition(t){return this.getTypedRuleContext(M,t)}enumDefinition_list(){return this.getTypedRuleContexts(nt)}enumDefinition(t){return this.getTypedRuleContext(nt,t)}eventDefinition_list(){return this.getTypedRuleContexts(st)}eventDefinition(t){return this.getTypedRuleContext(st,t)}structDefinition_list(){return this.getTypedRuleContexts(X)}structDefinition(t){return this.getTypedRuleContext(X,t)}functionDefinition_list(){return this.getTypedRuleContexts(Z)}functionDefinition(t){return this.getTypedRuleContext(Z,t)}fileLevelConstant_list(){return this.getTypedRuleContexts($)}fileLevelConstant(t){return this.getTypedRuleContext($,t)}customErrorDefinition_list(){return this.getTypedRuleContexts(j)}customErrorDefinition(t){return this.getTypedRuleContext(j,t)}typeDefinition_list(){return this.getTypedRuleContexts(G)}typeDefinition(t){return this.getTypedRuleContext(G,t)}usingForDeclaration_list(){return this.getTypedRuleContexts(z)}usingForDeclaration(t){return this.getTypedRuleContext(z,t)}get ruleIndex(){return A.RULE_sourceUnit}enterRule(t){t.enterSourceUnit&&t.enterSourceUnit(this)}exitRule(t){t.exitSourceUnit&&t.exitSourceUnit(this)}accept(t){return t.visitSourceUnit?t.visitSourceUnit(this):t.visitChildren(this)}},N=class extends g{constructor(t,e,i){super(e,i),this.parser=t}pragmaName(){return this.getTypedRuleContext(I,0)}pragmaValue(){return this.getTypedRuleContext(k,0)}get ruleIndex(){return A.RULE_pragmaDirective}enterRule(t){t.enterPragmaDirective&&t.enterPragmaDirective(this)}exitRule(t){t.exitPragmaDirective&&t.exitPragmaDirective(this)}accept(t){return t.visitPragmaDirective?t.visitPragmaDirective(this):t.visitChildren(this)}},I=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}get ruleIndex(){return A.RULE_pragmaName}enterRule(t){t.enterPragmaName&&t.enterPragmaName(this)}exitRule(t){t.exitPragmaName&&t.exitPragmaName(this)}accept(t){return t.visitPragmaName?t.visitPragmaName(this):t.visitChildren(this)}},k=class extends g{constructor(t,e,i){super(e,i),this.parser=t}version(){return this.getTypedRuleContext(D,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return A.RULE_pragmaValue}enterRule(t){t.enterPragmaValue&&t.enterPragmaValue(this)}exitRule(t){t.exitPragmaValue&&t.exitPragmaValue(this)}accept(t){return t.visitPragmaValue?t.visitPragmaValue(this):t.visitChildren(this)}},D=class extends g{constructor(t,e,i){super(e,i),this.parser=t}versionConstraint_list(){return this.getTypedRuleContexts(P)}versionConstraint(t){return this.getTypedRuleContext(P,t)}get ruleIndex(){return A.RULE_version}enterRule(t){t.enterVersion&&t.enterVersion(this)}exitRule(t){t.exitVersion&&t.exitVersion(this)}accept(t){return t.visitVersion?t.visitVersion(this):t.visitChildren(this)}},O=class extends g{constructor(t,e,i){super(e,i),this.parser=t}get ruleIndex(){return A.RULE_versionOperator}enterRule(t){t.enterVersionOperator&&t.enterVersionOperator(this)}exitRule(t){t.exitVersionOperator&&t.exitVersionOperator(this)}accept(t){return t.visitVersionOperator?t.visitVersionOperator(this):t.visitChildren(this)}},P=class extends g{constructor(t,e,i){super(e,i),this.parser=t}VersionLiteral(){return this.getToken(A.VersionLiteral,0)}versionOperator(){return this.getTypedRuleContext(O,0)}DecimalNumber(){return this.getToken(A.DecimalNumber,0)}get ruleIndex(){return A.RULE_versionConstraint}enterRule(t){t.enterVersionConstraint&&t.enterVersionConstraint(this)}exitRule(t){t.exitVersionConstraint&&t.exitVersionConstraint(this)}accept(t){return t.visitVersionConstraint?t.visitVersionConstraint(this):t.visitChildren(this)}},F=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ye)}identifier(t){return this.getTypedRuleContext(ye,t)}get ruleIndex(){return A.RULE_importDeclaration}enterRule(t){t.enterImportDeclaration&&t.enterImportDeclaration(this)}exitRule(t){t.exitImportDeclaration&&t.exitImportDeclaration(this)}accept(t){return t.visitImportDeclaration?t.visitImportDeclaration(this):t.visitChildren(this)}},U=class extends g{constructor(t,e,i){super(e,i),this.parser=t}importPath(){return this.getTypedRuleContext(H,0)}identifier_list(){return this.getTypedRuleContexts(ye)}identifier(t){return this.getTypedRuleContext(ye,t)}importDeclaration_list(){return this.getTypedRuleContexts(F)}importDeclaration(t){return this.getTypedRuleContext(F,t)}get ruleIndex(){return A.RULE_importDirective}enterRule(t){t.enterImportDirective&&t.enterImportDirective(this)}exitRule(t){t.exitImportDirective&&t.exitImportDirective(this)}accept(t){return t.visitImportDirective?t.visitImportDirective(this):t.visitChildren(this)}},H=class extends g{constructor(t,e,i){super(e,i),this.parser=t}StringLiteralFragment(){return this.getToken(A.StringLiteralFragment,0)}get ruleIndex(){return A.RULE_importPath}enterRule(t){t.enterImportPath&&t.enterImportPath(this)}exitRule(t){t.exitImportPath&&t.exitImportPath(this)}accept(t){return t.visitImportPath?t.visitImportPath(this):t.visitChildren(this)}},M=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}inheritanceSpecifier_list(){return this.getTypedRuleContexts(K)}inheritanceSpecifier(t){return this.getTypedRuleContext(K,t)}contractPart_list(){return this.getTypedRuleContexts(V)}contractPart(t){return this.getTypedRuleContext(V,t)}get ruleIndex(){return A.RULE_contractDefinition}enterRule(t){t.enterContractDefinition&&t.enterContractDefinition(this)}exitRule(t){t.exitContractDefinition&&t.exitContractDefinition(this)}accept(t){return t.visitContractDefinition?t.visitContractDefinition(this):t.visitChildren(this)}},K=class extends g{constructor(t,e,i){super(e,i),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}expressionList(){return this.getTypedRuleContext(qt,0)}get ruleIndex(){return A.RULE_inheritanceSpecifier}enterRule(t){t.enterInheritanceSpecifier&&t.enterInheritanceSpecifier(this)}exitRule(t){t.exitInheritanceSpecifier&&t.exitInheritanceSpecifier(this)}accept(t){return t.visitInheritanceSpecifier?t.visitInheritanceSpecifier(this):t.visitChildren(this)}},V=class extends g{constructor(t,e,i){super(e,i),this.parser=t}stateVariableDeclaration(){return this.getTypedRuleContext(B,0)}usingForDeclaration(){return this.getTypedRuleContext(z,0)}structDefinition(){return this.getTypedRuleContext(X,0)}modifierDefinition(){return this.getTypedRuleContext(J,0)}functionDefinition(){return this.getTypedRuleContext(Z,0)}eventDefinition(){return this.getTypedRuleContext(st,0)}enumDefinition(){return this.getTypedRuleContext(nt,0)}customErrorDefinition(){return this.getTypedRuleContext(j,0)}typeDefinition(){return this.getTypedRuleContext(G,0)}get ruleIndex(){return A.RULE_contractPart}enterRule(t){t.enterContractPart&&t.enterContractPart(this)}exitRule(t){t.exitContractPart&&t.exitContractPart(this)}accept(t){return t.visitContractPart?t.visitContractPart(this):t.visitChildren(this)}},B=class extends g{constructor(t,e,i){super(e,i),this.parser=t}typeName(){return this.getTypedRuleContext(dt,0)}identifier(){return this.getTypedRuleContext(ye,0)}PublicKeyword_list(){return this.getTokens(A.PublicKeyword)}PublicKeyword(t){return this.getToken(A.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(A.InternalKeyword)}InternalKeyword(t){return this.getToken(A.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(A.PrivateKeyword)}PrivateKeyword(t){return this.getToken(A.PrivateKeyword,t)}ConstantKeyword_list(){return this.getTokens(A.ConstantKeyword)}ConstantKeyword(t){return this.getToken(A.ConstantKeyword,t)}ImmutableKeyword_list(){return this.getTokens(A.ImmutableKeyword)}ImmutableKeyword(t){return this.getToken(A.ImmutableKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(Te)}overrideSpecifier(t){return this.getTypedRuleContext(Te,t)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return A.RULE_stateVariableDeclaration}enterRule(t){t.enterStateVariableDeclaration&&t.enterStateVariableDeclaration(this)}exitRule(t){t.exitStateVariableDeclaration&&t.exitStateVariableDeclaration(this)}accept(t){return t.visitStateVariableDeclaration?t.visitStateVariableDeclaration(this):t.visitChildren(this)}},$=class extends g{constructor(t,e,i){super(e,i),this.parser=t}typeName(){return this.getTypedRuleContext(dt,0)}ConstantKeyword(){return this.getToken(A.ConstantKeyword,0)}identifier(){return this.getTypedRuleContext(ye,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return A.RULE_fileLevelConstant}enterRule(t){t.enterFileLevelConstant&&t.enterFileLevelConstant(this)}exitRule(t){t.exitFileLevelConstant&&t.exitFileLevelConstant(this)}accept(t){return t.visitFileLevelConstant?t.visitFileLevelConstant(this):t.visitChildren(this)}},j=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}parameterList(){return this.getTypedRuleContext(at,0)}get ruleIndex(){return A.RULE_customErrorDefinition}enterRule(t){t.enterCustomErrorDefinition&&t.enterCustomErrorDefinition(this)}exitRule(t){t.exitCustomErrorDefinition&&t.exitCustomErrorDefinition(this)}accept(t){return t.visitCustomErrorDefinition?t.visitCustomErrorDefinition(this):t.visitChildren(this)}},G=class extends g{constructor(t,e,i){super(e,i),this.parser=t}TypeKeyword(){return this.getToken(A.TypeKeyword,0)}identifier(){return this.getTypedRuleContext(ye,0)}elementaryTypeName(){return this.getTypedRuleContext(jt,0)}get ruleIndex(){return A.RULE_typeDefinition}enterRule(t){t.enterTypeDefinition&&t.enterTypeDefinition(this)}exitRule(t){t.exitTypeDefinition&&t.exitTypeDefinition(this)}accept(t){return t.visitTypeDefinition?t.visitTypeDefinition(this):t.visitChildren(this)}},z=class extends g{constructor(t,e,i){super(e,i),this.parser=t}usingForObject(){return this.getTypedRuleContext(q,0)}typeName(){return this.getTypedRuleContext(dt,0)}GlobalKeyword(){return this.getToken(A.GlobalKeyword,0)}get ruleIndex(){return A.RULE_usingForDeclaration}enterRule(t){t.enterUsingForDeclaration&&t.enterUsingForDeclaration(this)}exitRule(t){t.exitUsingForDeclaration&&t.exitUsingForDeclaration(this)}accept(t){return t.visitUsingForDeclaration?t.visitUsingForDeclaration(this):t.visitChildren(this)}},q=class extends g{constructor(t,e,i){super(e,i),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}usingForObjectDirective_list(){return this.getTypedRuleContexts(W)}usingForObjectDirective(t){return this.getTypedRuleContext(W,t)}get ruleIndex(){return A.RULE_usingForObject}enterRule(t){t.enterUsingForObject&&t.enterUsingForObject(this)}exitRule(t){t.exitUsingForObject&&t.exitUsingForObject(this)}accept(t){return t.visitUsingForObject?t.visitUsingForObject(this):t.visitChildren(this)}},W=class extends g{constructor(t,e,i){super(e,i),this.parser=t}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}userDefinableOperators(){return this.getTypedRuleContext(Y,0)}get ruleIndex(){return A.RULE_usingForObjectDirective}enterRule(t){t.enterUsingForObjectDirective&&t.enterUsingForObjectDirective(this)}exitRule(t){t.exitUsingForObjectDirective&&t.exitUsingForObjectDirective(this)}accept(t){return t.visitUsingForObjectDirective?t.visitUsingForObjectDirective(this):t.visitChildren(this)}},Y=class extends g{constructor(t,e,i){super(e,i),this.parser=t}get ruleIndex(){return A.RULE_userDefinableOperators}enterRule(t){t.enterUserDefinableOperators&&t.enterUserDefinableOperators(this)}exitRule(t){t.exitUserDefinableOperators&&t.exitUserDefinableOperators(this)}accept(t){return t.visitUserDefinableOperators?t.visitUserDefinableOperators(this):t.visitChildren(this)}},X=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}variableDeclaration_list(){return this.getTypedRuleContexts(pt)}variableDeclaration(t){return this.getTypedRuleContext(pt,t)}get ruleIndex(){return A.RULE_structDefinition}enterRule(t){t.enterStructDefinition&&t.enterStructDefinition(this)}exitRule(t){t.exitStructDefinition&&t.exitStructDefinition(this)}accept(t){return t.visitStructDefinition?t.visitStructDefinition(this):t.visitChildren(this)}},J=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}block(){return this.getTypedRuleContext(vt,0)}parameterList(){return this.getTypedRuleContext(at,0)}VirtualKeyword_list(){return this.getTokens(A.VirtualKeyword)}VirtualKeyword(t){return this.getToken(A.VirtualKeyword,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(Te)}overrideSpecifier(t){return this.getTypedRuleContext(Te,t)}get ruleIndex(){return A.RULE_modifierDefinition}enterRule(t){t.enterModifierDefinition&&t.enterModifierDefinition(this)}exitRule(t){t.exitModifierDefinition&&t.exitModifierDefinition(this)}accept(t){return t.visitModifierDefinition?t.visitModifierDefinition(this):t.visitChildren(this)}},Q=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}expressionList(){return this.getTypedRuleContext(qt,0)}get ruleIndex(){return A.RULE_modifierInvocation}enterRule(t){t.enterModifierInvocation&&t.enterModifierInvocation(this)}exitRule(t){t.exitModifierInvocation&&t.exitModifierInvocation(this)}accept(t){return t.visitModifierInvocation?t.visitModifierInvocation(this):t.visitChildren(this)}},Z=class extends g{constructor(t,e,i){super(e,i),this.parser=t}functionDescriptor(){return this.getTypedRuleContext(tt,0)}parameterList(){return this.getTypedRuleContext(at,0)}modifierList(){return this.getTypedRuleContext(it,0)}block(){return this.getTypedRuleContext(vt,0)}returnParameters(){return this.getTypedRuleContext(et,0)}get ruleIndex(){return A.RULE_functionDefinition}enterRule(t){t.enterFunctionDefinition&&t.enterFunctionDefinition(this)}exitRule(t){t.exitFunctionDefinition&&t.exitFunctionDefinition(this)}accept(t){return t.visitFunctionDefinition?t.visitFunctionDefinition(this):t.visitChildren(this)}},tt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}ConstructorKeyword(){return this.getToken(A.ConstructorKeyword,0)}FallbackKeyword(){return this.getToken(A.FallbackKeyword,0)}ReceiveKeyword(){return this.getToken(A.ReceiveKeyword,0)}get ruleIndex(){return A.RULE_functionDescriptor}enterRule(t){t.enterFunctionDescriptor&&t.enterFunctionDescriptor(this)}exitRule(t){t.exitFunctionDescriptor&&t.exitFunctionDescriptor(this)}accept(t){return t.visitFunctionDescriptor?t.visitFunctionDescriptor(this):t.visitChildren(this)}},et=class extends g{constructor(t,e,i){super(e,i),this.parser=t}parameterList(){return this.getTypedRuleContext(at,0)}get ruleIndex(){return A.RULE_returnParameters}enterRule(t){t.enterReturnParameters&&t.enterReturnParameters(this)}exitRule(t){t.exitReturnParameters&&t.exitReturnParameters(this)}accept(t){return t.visitReturnParameters?t.visitReturnParameters(this):t.visitChildren(this)}},it=class extends g{constructor(t,e,i){super(e,i),this.parser=t}ExternalKeyword_list(){return this.getTokens(A.ExternalKeyword)}ExternalKeyword(t){return this.getToken(A.ExternalKeyword,t)}PublicKeyword_list(){return this.getTokens(A.PublicKeyword)}PublicKeyword(t){return this.getToken(A.PublicKeyword,t)}InternalKeyword_list(){return this.getTokens(A.InternalKeyword)}InternalKeyword(t){return this.getToken(A.InternalKeyword,t)}PrivateKeyword_list(){return this.getTokens(A.PrivateKeyword)}PrivateKeyword(t){return this.getToken(A.PrivateKeyword,t)}VirtualKeyword_list(){return this.getTokens(A.VirtualKeyword)}VirtualKeyword(t){return this.getToken(A.VirtualKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(Et)}stateMutability(t){return this.getTypedRuleContext(Et,t)}modifierInvocation_list(){return this.getTypedRuleContexts(Q)}modifierInvocation(t){return this.getTypedRuleContext(Q,t)}overrideSpecifier_list(){return this.getTypedRuleContexts(Te)}overrideSpecifier(t){return this.getTypedRuleContext(Te,t)}get ruleIndex(){return A.RULE_modifierList}enterRule(t){t.enterModifierList&&t.enterModifierList(this)}exitRule(t){t.exitModifierList&&t.exitModifierList(this)}accept(t){return t.visitModifierList?t.visitModifierList(this):t.visitChildren(this)}},st=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}eventParameterList(){return this.getTypedRuleContext(lt,0)}AnonymousKeyword(){return this.getToken(A.AnonymousKeyword,0)}get ruleIndex(){return A.RULE_eventDefinition}enterRule(t){t.enterEventDefinition&&t.enterEventDefinition(this)}exitRule(t){t.exitEventDefinition&&t.exitEventDefinition(this)}accept(t){return t.visitEventDefinition?t.visitEventDefinition(this):t.visitChildren(this)}},rt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}get ruleIndex(){return A.RULE_enumValue}enterRule(t){t.enterEnumValue&&t.enterEnumValue(this)}exitRule(t){t.exitEnumValue&&t.exitEnumValue(this)}accept(t){return t.visitEnumValue?t.visitEnumValue(this):t.visitChildren(this)}},nt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}enumValue_list(){return this.getTypedRuleContexts(rt)}enumValue(t){return this.getTypedRuleContext(rt,t)}get ruleIndex(){return A.RULE_enumDefinition}enterRule(t){t.enterEnumDefinition&&t.enterEnumDefinition(this)}exitRule(t){t.exitEnumDefinition&&t.exitEnumDefinition(this)}accept(t){return t.visitEnumDefinition?t.visitEnumDefinition(this):t.visitChildren(this)}},at=class extends g{constructor(t,e,i){super(e,i),this.parser=t}parameter_list(){return this.getTypedRuleContexts(ot)}parameter(t){return this.getTypedRuleContext(ot,t)}get ruleIndex(){return A.RULE_parameterList}enterRule(t){t.enterParameterList&&t.enterParameterList(this)}exitRule(t){t.exitParameterList&&t.exitParameterList(this)}accept(t){return t.visitParameterList?t.visitParameterList(this):t.visitChildren(this)}},ot=class extends g{constructor(t,e,i){super(e,i),this.parser=t}typeName(){return this.getTypedRuleContext(dt,0)}storageLocation(){return this.getTypedRuleContext(Tt,0)}identifier(){return this.getTypedRuleContext(ye,0)}get ruleIndex(){return A.RULE_parameter}enterRule(t){t.enterParameter&&t.enterParameter(this)}exitRule(t){t.exitParameter&&t.exitParameter(this)}accept(t){return t.visitParameter?t.visitParameter(this):t.visitChildren(this)}},lt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}eventParameter_list(){return this.getTypedRuleContexts(ht)}eventParameter(t){return this.getTypedRuleContext(ht,t)}get ruleIndex(){return A.RULE_eventParameterList}enterRule(t){t.enterEventParameterList&&t.enterEventParameterList(this)}exitRule(t){t.exitEventParameterList&&t.exitEventParameterList(this)}accept(t){return t.visitEventParameterList?t.visitEventParameterList(this):t.visitChildren(this)}},ht=class extends g{constructor(t,e,i){super(e,i),this.parser=t}typeName(){return this.getTypedRuleContext(dt,0)}IndexedKeyword(){return this.getToken(A.IndexedKeyword,0)}identifier(){return this.getTypedRuleContext(ye,0)}get ruleIndex(){return A.RULE_eventParameter}enterRule(t){t.enterEventParameter&&t.enterEventParameter(this)}exitRule(t){t.exitEventParameter&&t.exitEventParameter(this)}accept(t){return t.visitEventParameter?t.visitEventParameter(this):t.visitChildren(this)}},ct=class extends g{constructor(t,e,i){super(e,i),this.parser=t}functionTypeParameter_list(){return this.getTypedRuleContexts(ut)}functionTypeParameter(t){return this.getTypedRuleContext(ut,t)}get ruleIndex(){return A.RULE_functionTypeParameterList}enterRule(t){t.enterFunctionTypeParameterList&&t.enterFunctionTypeParameterList(this)}exitRule(t){t.exitFunctionTypeParameterList&&t.exitFunctionTypeParameterList(this)}accept(t){return t.visitFunctionTypeParameterList?t.visitFunctionTypeParameterList(this):t.visitChildren(this)}},ut=class extends g{constructor(t,e,i){super(e,i),this.parser=t}typeName(){return this.getTypedRuleContext(dt,0)}storageLocation(){return this.getTypedRuleContext(Tt,0)}get ruleIndex(){return A.RULE_functionTypeParameter}enterRule(t){t.enterFunctionTypeParameter&&t.enterFunctionTypeParameter(this)}exitRule(t){t.exitFunctionTypeParameter&&t.exitFunctionTypeParameter(this)}accept(t){return t.visitFunctionTypeParameter?t.visitFunctionTypeParameter(this):t.visitChildren(this)}},pt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}typeName(){return this.getTypedRuleContext(dt,0)}identifier(){return this.getTypedRuleContext(ye,0)}storageLocation(){return this.getTypedRuleContext(Tt,0)}get ruleIndex(){return A.RULE_variableDeclaration}enterRule(t){t.enterVariableDeclaration&&t.enterVariableDeclaration(this)}exitRule(t){t.exitVariableDeclaration&&t.exitVariableDeclaration(this)}accept(t){return t.visitVariableDeclaration?t.visitVariableDeclaration(this):t.visitChildren(this)}},dt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext(jt,0)}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}mapping(){return this.getTypedRuleContext(xt,0)}functionTypeName(){return this.getTypedRuleContext(gt,0)}PayableKeyword(){return this.getToken(A.PayableKeyword,0)}typeName(){return this.getTypedRuleContext(dt,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return A.RULE_typeName}enterRule(t){t.enterTypeName&&t.enterTypeName(this)}exitRule(t){t.exitTypeName&&t.exitTypeName(this)}accept(t){return t.visitTypeName?t.visitTypeName(this):t.visitChildren(this)}},mt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ye)}identifier(t){return this.getTypedRuleContext(ye,t)}get ruleIndex(){return A.RULE_userDefinedTypeName}enterRule(t){t.enterUserDefinedTypeName&&t.enterUserDefinedTypeName(this)}exitRule(t){t.exitUserDefinedTypeName&&t.exitUserDefinedTypeName(this)}accept(t){return t.visitUserDefinedTypeName?t.visitUserDefinedTypeName(this):t.visitChildren(this)}},_t=class extends g{constructor(t,e,i){super(e,i),this.parser=t}elementaryTypeName(){return this.getTypedRuleContext(jt,0)}userDefinedTypeName(){return this.getTypedRuleContext(mt,0)}get ruleIndex(){return A.RULE_mappingKey}enterRule(t){t.enterMappingKey&&t.enterMappingKey(this)}exitRule(t){t.exitMappingKey&&t.exitMappingKey(this)}accept(t){return t.visitMappingKey?t.visitMappingKey(this):t.visitChildren(this)}},xt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}mappingKey(){return this.getTypedRuleContext(_t,0)}typeName(){return this.getTypedRuleContext(dt,0)}mappingKeyName(){return this.getTypedRuleContext(ft,0)}mappingValueName(){return this.getTypedRuleContext(yt,0)}get ruleIndex(){return A.RULE_mapping}enterRule(t){t.enterMapping&&t.enterMapping(this)}exitRule(t){t.exitMapping&&t.exitMapping(this)}accept(t){return t.visitMapping?t.visitMapping(this):t.visitChildren(this)}},ft=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}get ruleIndex(){return A.RULE_mappingKeyName}enterRule(t){t.enterMappingKeyName&&t.enterMappingKeyName(this)}exitRule(t){t.exitMappingKeyName&&t.exitMappingKeyName(this)}accept(t){return t.visitMappingKeyName?t.visitMappingKeyName(this):t.visitChildren(this)}},yt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}get ruleIndex(){return A.RULE_mappingValueName}enterRule(t){t.enterMappingValueName&&t.enterMappingValueName(this)}exitRule(t){t.exitMappingValueName&&t.exitMappingValueName(this)}accept(t){return t.visitMappingValueName?t.visitMappingValueName(this):t.visitChildren(this)}},gt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}functionTypeParameterList_list(){return this.getTypedRuleContexts(ct)}functionTypeParameterList(t){return this.getTypedRuleContext(ct,t)}InternalKeyword_list(){return this.getTokens(A.InternalKeyword)}InternalKeyword(t){return this.getToken(A.InternalKeyword,t)}ExternalKeyword_list(){return this.getTokens(A.ExternalKeyword)}ExternalKeyword(t){return this.getToken(A.ExternalKeyword,t)}stateMutability_list(){return this.getTypedRuleContexts(Et)}stateMutability(t){return this.getTypedRuleContext(Et,t)}get ruleIndex(){return A.RULE_functionTypeName}enterRule(t){t.enterFunctionTypeName&&t.enterFunctionTypeName(this)}exitRule(t){t.exitFunctionTypeName&&t.exitFunctionTypeName(this)}accept(t){return t.visitFunctionTypeName?t.visitFunctionTypeName(this):t.visitChildren(this)}},Tt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}get ruleIndex(){return A.RULE_storageLocation}enterRule(t){t.enterStorageLocation&&t.enterStorageLocation(this)}exitRule(t){t.exitStorageLocation&&t.exitStorageLocation(this)}accept(t){return t.visitStorageLocation?t.visitStorageLocation(this):t.visitChildren(this)}},Et=class extends g{constructor(t,e,i){super(e,i),this.parser=t}PureKeyword(){return this.getToken(A.PureKeyword,0)}ConstantKeyword(){return this.getToken(A.ConstantKeyword,0)}ViewKeyword(){return this.getToken(A.ViewKeyword,0)}PayableKeyword(){return this.getToken(A.PayableKeyword,0)}get ruleIndex(){return A.RULE_stateMutability}enterRule(t){t.enterStateMutability&&t.enterStateMutability(this)}exitRule(t){t.exitStateMutability&&t.exitStateMutability(this)}accept(t){return t.visitStateMutability?t.visitStateMutability(this):t.visitChildren(this)}},vt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}statement_list(){return this.getTypedRuleContexts(Rt)}statement(t){return this.getTypedRuleContext(Rt,t)}get ruleIndex(){return A.RULE_block}enterRule(t){t.enterBlock&&t.enterBlock(this)}exitRule(t){t.exitBlock&&t.exitBlock(this)}accept(t){return t.visitBlock?t.visitBlock(this):t.visitChildren(this)}},Rt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}ifStatement(){return this.getTypedRuleContext(Lt,0)}tryStatement(){return this.getTypedRuleContext(St,0)}whileStatement(){return this.getTypedRuleContext(Ct,0)}forStatement(){return this.getTypedRuleContext(It,0)}block(){return this.getTypedRuleContext(vt,0)}inlineAssemblyStatement(){return this.getTypedRuleContext(kt,0)}doWhileStatement(){return this.getTypedRuleContext(Ot,0)}continueStatement(){return this.getTypedRuleContext(Pt,0)}breakStatement(){return this.getTypedRuleContext(Ft,0)}returnStatement(){return this.getTypedRuleContext(Ut,0)}throwStatement(){return this.getTypedRuleContext(Ht,0)}emitStatement(){return this.getTypedRuleContext(Mt,0)}simpleStatement(){return this.getTypedRuleContext(wt,0)}uncheckedStatement(){return this.getTypedRuleContext(Nt,0)}revertStatement(){return this.getTypedRuleContext(Kt,0)}get ruleIndex(){return A.RULE_statement}enterRule(t){t.enterStatement&&t.enterStatement(this)}exitRule(t){t.exitStatement&&t.exitStatement(this)}accept(t){return t.visitStatement?t.visitStatement(this):t.visitChildren(this)}},bt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return A.RULE_expressionStatement}enterRule(t){t.enterExpressionStatement&&t.enterExpressionStatement(this)}exitRule(t){t.exitExpressionStatement&&t.exitExpressionStatement(this)}accept(t){return t.visitExpressionStatement?t.visitExpressionStatement(this):t.visitChildren(this)}},Lt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}statement_list(){return this.getTypedRuleContexts(Rt)}statement(t){return this.getTypedRuleContext(Rt,t)}get ruleIndex(){return A.RULE_ifStatement}enterRule(t){t.enterIfStatement&&t.enterIfStatement(this)}exitRule(t){t.exitIfStatement&&t.exitIfStatement(this)}accept(t){return t.visitIfStatement?t.visitIfStatement(this):t.visitChildren(this)}},St=class extends g{constructor(t,e,i){super(e,i),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}block(){return this.getTypedRuleContext(vt,0)}returnParameters(){return this.getTypedRuleContext(et,0)}catchClause_list(){return this.getTypedRuleContexts(At)}catchClause(t){return this.getTypedRuleContext(At,t)}get ruleIndex(){return A.RULE_tryStatement}enterRule(t){t.enterTryStatement&&t.enterTryStatement(this)}exitRule(t){t.exitTryStatement&&t.exitTryStatement(this)}accept(t){return t.visitTryStatement?t.visitTryStatement(this):t.visitChildren(this)}},At=class extends g{constructor(t,e,i){super(e,i),this.parser=t}block(){return this.getTypedRuleContext(vt,0)}parameterList(){return this.getTypedRuleContext(at,0)}identifier(){return this.getTypedRuleContext(ye,0)}get ruleIndex(){return A.RULE_catchClause}enterRule(t){t.enterCatchClause&&t.enterCatchClause(this)}exitRule(t){t.exitCatchClause&&t.exitCatchClause(this)}accept(t){return t.visitCatchClause?t.visitCatchClause(this):t.visitChildren(this)}},Ct=class extends g{constructor(t,e,i){super(e,i),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}statement(){return this.getTypedRuleContext(Rt,0)}get ruleIndex(){return A.RULE_whileStatement}enterRule(t){t.enterWhileStatement&&t.enterWhileStatement(this)}exitRule(t){t.exitWhileStatement&&t.exitWhileStatement(this)}accept(t){return t.visitWhileStatement?t.visitWhileStatement(this):t.visitChildren(this)}},wt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}variableDeclarationStatement(){return this.getTypedRuleContext(Vt,0)}expressionStatement(){return this.getTypedRuleContext(bt,0)}get ruleIndex(){return A.RULE_simpleStatement}enterRule(t){t.enterSimpleStatement&&t.enterSimpleStatement(this)}exitRule(t){t.exitSimpleStatement&&t.exitSimpleStatement(this)}accept(t){return t.visitSimpleStatement?t.visitSimpleStatement(this):t.visitChildren(this)}},Nt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}block(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return A.RULE_uncheckedStatement}enterRule(t){t.enterUncheckedStatement&&t.enterUncheckedStatement(this)}exitRule(t){t.exitUncheckedStatement&&t.exitUncheckedStatement(this)}accept(t){return t.visitUncheckedStatement?t.visitUncheckedStatement(this):t.visitChildren(this)}},It=class extends g{constructor(t,e,i){super(e,i),this.parser=t}statement(){return this.getTypedRuleContext(Rt,0)}simpleStatement(){return this.getTypedRuleContext(wt,0)}expressionStatement(){return this.getTypedRuleContext(bt,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return A.RULE_forStatement}enterRule(t){t.enterForStatement&&t.enterForStatement(this)}exitRule(t){t.exitForStatement&&t.exitForStatement(this)}accept(t){return t.visitForStatement?t.visitForStatement(this):t.visitChildren(this)}},kt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}assemblyBlock(){return this.getTypedRuleContext(Qt,0)}StringLiteralFragment(){return this.getToken(A.StringLiteralFragment,0)}inlineAssemblyStatementFlag(){return this.getTypedRuleContext(Dt,0)}get ruleIndex(){return A.RULE_inlineAssemblyStatement}enterRule(t){t.enterInlineAssemblyStatement&&t.enterInlineAssemblyStatement(this)}exitRule(t){t.exitInlineAssemblyStatement&&t.exitInlineAssemblyStatement(this)}accept(t){return t.visitInlineAssemblyStatement?t.visitInlineAssemblyStatement(this):t.visitChildren(this)}},Dt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}stringLiteral(){return this.getTypedRuleContext(Ee,0)}get ruleIndex(){return A.RULE_inlineAssemblyStatementFlag}enterRule(t){t.enterInlineAssemblyStatementFlag&&t.enterInlineAssemblyStatementFlag(this)}exitRule(t){t.exitInlineAssemblyStatementFlag&&t.exitInlineAssemblyStatementFlag(this)}accept(t){return t.visitInlineAssemblyStatementFlag?t.visitInlineAssemblyStatementFlag(this):t.visitChildren(this)}},Ot=class extends g{constructor(t,e,i){super(e,i),this.parser=t}statement(){return this.getTypedRuleContext(Rt,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return A.RULE_doWhileStatement}enterRule(t){t.enterDoWhileStatement&&t.enterDoWhileStatement(this)}exitRule(t){t.exitDoWhileStatement&&t.exitDoWhileStatement(this)}accept(t){return t.visitDoWhileStatement?t.visitDoWhileStatement(this):t.visitChildren(this)}},Pt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}ContinueKeyword(){return this.getToken(A.ContinueKeyword,0)}get ruleIndex(){return A.RULE_continueStatement}enterRule(t){t.enterContinueStatement&&t.enterContinueStatement(this)}exitRule(t){t.exitContinueStatement&&t.exitContinueStatement(this)}accept(t){return t.visitContinueStatement?t.visitContinueStatement(this):t.visitChildren(this)}},Ft=class extends g{constructor(t,e,i){super(e,i),this.parser=t}BreakKeyword(){return this.getToken(A.BreakKeyword,0)}get ruleIndex(){return A.RULE_breakStatement}enterRule(t){t.enterBreakStatement&&t.enterBreakStatement(this)}exitRule(t){t.exitBreakStatement&&t.exitBreakStatement(this)}accept(t){return t.visitBreakStatement?t.visitBreakStatement(this):t.visitChildren(this)}},Ut=class extends g{constructor(t,e,i){super(e,i),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return A.RULE_returnStatement}enterRule(t){t.enterReturnStatement&&t.enterReturnStatement(this)}exitRule(t){t.exitReturnStatement&&t.exitReturnStatement(this)}accept(t){return t.visitReturnStatement?t.visitReturnStatement(this):t.visitChildren(this)}},Ht=class extends g{constructor(t,e,i){super(e,i),this.parser=t}get ruleIndex(){return A.RULE_throwStatement}enterRule(t){t.enterThrowStatement&&t.enterThrowStatement(this)}exitRule(t){t.exitThrowStatement&&t.exitThrowStatement(this)}accept(t){return t.visitThrowStatement?t.visitThrowStatement(this):t.visitChildren(this)}},Mt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}functionCall(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return A.RULE_emitStatement}enterRule(t){t.enterEmitStatement&&t.enterEmitStatement(this)}exitRule(t){t.exitEmitStatement&&t.exitEmitStatement(this)}accept(t){return t.visitEmitStatement?t.visitEmitStatement(this):t.visitChildren(this)}},Kt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}functionCall(){return this.getTypedRuleContext(Jt,0)}get ruleIndex(){return A.RULE_revertStatement}enterRule(t){t.enterRevertStatement&&t.enterRevertStatement(this)}exitRule(t){t.exitRevertStatement&&t.exitRevertStatement(this)}accept(t){return t.visitRevertStatement?t.visitRevertStatement(this):t.visitChildren(this)}},Vt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifierList(){return this.getTypedRuleContext($t,0)}variableDeclaration(){return this.getTypedRuleContext(pt,0)}variableDeclarationList(){return this.getTypedRuleContext(Bt,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return A.RULE_variableDeclarationStatement}enterRule(t){t.enterVariableDeclarationStatement&&t.enterVariableDeclarationStatement(this)}exitRule(t){t.exitVariableDeclarationStatement&&t.exitVariableDeclarationStatement(this)}accept(t){return t.visitVariableDeclarationStatement?t.visitVariableDeclarationStatement(this):t.visitChildren(this)}},Bt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}variableDeclaration_list(){return this.getTypedRuleContexts(pt)}variableDeclaration(t){return this.getTypedRuleContext(pt,t)}get ruleIndex(){return A.RULE_variableDeclarationList}enterRule(t){t.enterVariableDeclarationList&&t.enterVariableDeclarationList(this)}exitRule(t){t.exitVariableDeclarationList&&t.exitVariableDeclarationList(this)}accept(t){return t.visitVariableDeclarationList?t.visitVariableDeclarationList(this):t.visitChildren(this)}},$t=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ye)}identifier(t){return this.getTypedRuleContext(ye,t)}get ruleIndex(){return A.RULE_identifierList}enterRule(t){t.enterIdentifierList&&t.enterIdentifierList(this)}exitRule(t){t.exitIdentifierList&&t.exitIdentifierList(this)}accept(t){return t.visitIdentifierList?t.visitIdentifierList(this):t.visitChildren(this)}},jt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}Int(){return this.getToken(A.Int,0)}Uint(){return this.getToken(A.Uint,0)}Byte(){return this.getToken(A.Byte,0)}Fixed(){return this.getToken(A.Fixed,0)}Ufixed(){return this.getToken(A.Ufixed,0)}get ruleIndex(){return A.RULE_elementaryTypeName}enterRule(t){t.enterElementaryTypeName&&t.enterElementaryTypeName(this)}exitRule(t){t.exitElementaryTypeName&&t.exitElementaryTypeName(this)}accept(t){return t.visitElementaryTypeName?t.visitElementaryTypeName(this):t.visitChildren(this)}},Gt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}typeName(){return this.getTypedRuleContext(dt,0)}expression_list(){return this.getTypedRuleContexts(Gt)}expression(t){return this.getTypedRuleContext(Gt,t)}primaryExpression(){return this.getTypedRuleContext(zt,0)}identifier(){return this.getTypedRuleContext(ye,0)}nameValueList(){return this.getTypedRuleContext(Wt,0)}functionCallArguments(){return this.getTypedRuleContext(Xt,0)}get ruleIndex(){return A.RULE_expression}enterRule(t){t.enterExpression&&t.enterExpression(this)}exitRule(t){t.exitExpression&&t.exitExpression(this)}accept(t){return t.visitExpression?t.visitExpression(this):t.visitChildren(this)}},zt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}BooleanLiteral(){return this.getToken(A.BooleanLiteral,0)}numberLiteral(){return this.getTypedRuleContext(fe,0)}hexLiteral(){return this.getTypedRuleContext(ge,0)}stringLiteral(){return this.getTypedRuleContext(Ee,0)}identifier(){return this.getTypedRuleContext(ye,0)}TypeKeyword(){return this.getToken(A.TypeKeyword,0)}PayableKeyword(){return this.getToken(A.PayableKeyword,0)}tupleExpression(){return this.getTypedRuleContext(xe,0)}typeName(){return this.getTypedRuleContext(dt,0)}get ruleIndex(){return A.RULE_primaryExpression}enterRule(t){t.enterPrimaryExpression&&t.enterPrimaryExpression(this)}exitRule(t){t.exitPrimaryExpression&&t.exitPrimaryExpression(this)}accept(t){return t.visitPrimaryExpression?t.visitPrimaryExpression(this):t.visitChildren(this)}},qt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}expression_list(){return this.getTypedRuleContexts(Gt)}expression(t){return this.getTypedRuleContext(Gt,t)}get ruleIndex(){return A.RULE_expressionList}enterRule(t){t.enterExpressionList&&t.enterExpressionList(this)}exitRule(t){t.exitExpressionList&&t.exitExpressionList(this)}accept(t){return t.visitExpressionList?t.visitExpressionList(this):t.visitChildren(this)}},Wt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}nameValue_list(){return this.getTypedRuleContexts(Yt)}nameValue(t){return this.getTypedRuleContext(Yt,t)}get ruleIndex(){return A.RULE_nameValueList}enterRule(t){t.enterNameValueList&&t.enterNameValueList(this)}exitRule(t){t.exitNameValueList&&t.exitNameValueList(this)}accept(t){return t.visitNameValueList?t.visitNameValueList(this):t.visitChildren(this)}},Yt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}expression(){return this.getTypedRuleContext(Gt,0)}get ruleIndex(){return A.RULE_nameValue}enterRule(t){t.enterNameValue&&t.enterNameValue(this)}exitRule(t){t.exitNameValue&&t.exitNameValue(this)}accept(t){return t.visitNameValue?t.visitNameValue(this):t.visitChildren(this)}},Xt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}nameValueList(){return this.getTypedRuleContext(Wt,0)}expressionList(){return this.getTypedRuleContext(qt,0)}get ruleIndex(){return A.RULE_functionCallArguments}enterRule(t){t.enterFunctionCallArguments&&t.enterFunctionCallArguments(this)}exitRule(t){t.exitFunctionCallArguments&&t.exitFunctionCallArguments(this)}accept(t){return t.visitFunctionCallArguments?t.visitFunctionCallArguments(this):t.visitChildren(this)}},Jt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}expression(){return this.getTypedRuleContext(Gt,0)}functionCallArguments(){return this.getTypedRuleContext(Xt,0)}get ruleIndex(){return A.RULE_functionCall}enterRule(t){t.enterFunctionCall&&t.enterFunctionCall(this)}exitRule(t){t.exitFunctionCall&&t.exitFunctionCall(this)}accept(t){return t.visitFunctionCall?t.visitFunctionCall(this):t.visitChildren(this)}},Qt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}assemblyItem_list(){return this.getTypedRuleContexts(Zt)}assemblyItem(t){return this.getTypedRuleContext(Zt,t)}get ruleIndex(){return A.RULE_assemblyBlock}enterRule(t){t.enterAssemblyBlock&&t.enterAssemblyBlock(this)}exitRule(t){t.exitAssemblyBlock&&t.exitAssemblyBlock(this)}accept(t){return t.visitAssemblyBlock?t.visitAssemblyBlock(this):t.visitChildren(this)}},Zt=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}assemblyBlock(){return this.getTypedRuleContext(Qt,0)}assemblyExpression(){return this.getTypedRuleContext(te,0)}assemblyLocalDefinition(){return this.getTypedRuleContext(se,0)}assemblyAssignment(){return this.getTypedRuleContext(re,0)}assemblyStackAssignment(){return this.getTypedRuleContext(oe,0)}labelDefinition(){return this.getTypedRuleContext(le,0)}assemblySwitch(){return this.getTypedRuleContext(he,0)}assemblyFunctionDefinition(){return this.getTypedRuleContext(ue,0)}assemblyFor(){return this.getTypedRuleContext(de,0)}assemblyIf(){return this.getTypedRuleContext(me,0)}BreakKeyword(){return this.getToken(A.BreakKeyword,0)}ContinueKeyword(){return this.getToken(A.ContinueKeyword,0)}LeaveKeyword(){return this.getToken(A.LeaveKeyword,0)}numberLiteral(){return this.getTypedRuleContext(fe,0)}stringLiteral(){return this.getTypedRuleContext(Ee,0)}hexLiteral(){return this.getTypedRuleContext(ge,0)}get ruleIndex(){return A.RULE_assemblyItem}enterRule(t){t.enterAssemblyItem&&t.enterAssemblyItem(this)}exitRule(t){t.exitAssemblyItem&&t.exitAssemblyItem(this)}accept(t){return t.visitAssemblyItem?t.visitAssemblyItem(this):t.visitChildren(this)}},te=class extends g{constructor(t,e,i){super(e,i),this.parser=t}assemblyCall(){return this.getTypedRuleContext(ie,0)}assemblyLiteral(){return this.getTypedRuleContext(_e,0)}assemblyMember(){return this.getTypedRuleContext(ee,0)}get ruleIndex(){return A.RULE_assemblyExpression}enterRule(t){t.enterAssemblyExpression&&t.enterAssemblyExpression(this)}exitRule(t){t.exitAssemblyExpression&&t.exitAssemblyExpression(this)}accept(t){return t.visitAssemblyExpression?t.visitAssemblyExpression(this):t.visitChildren(this)}},ee=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ye)}identifier(t){return this.getTypedRuleContext(ye,t)}get ruleIndex(){return A.RULE_assemblyMember}enterRule(t){t.enterAssemblyMember&&t.enterAssemblyMember(this)}exitRule(t){t.exitAssemblyMember&&t.exitAssemblyMember(this)}accept(t){return t.visitAssemblyMember?t.visitAssemblyMember(this):t.visitChildren(this)}},ie=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}assemblyExpression_list(){return this.getTypedRuleContexts(te)}assemblyExpression(t){return this.getTypedRuleContext(te,t)}get ruleIndex(){return A.RULE_assemblyCall}enterRule(t){t.enterAssemblyCall&&t.enterAssemblyCall(this)}exitRule(t){t.exitAssemblyCall&&t.exitAssemblyCall(this)}accept(t){return t.visitAssemblyCall?t.visitAssemblyCall(this):t.visitChildren(this)}},se=class extends g{constructor(t,e,i){super(e,i),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(ne,0)}assemblyExpression(){return this.getTypedRuleContext(te,0)}get ruleIndex(){return A.RULE_assemblyLocalDefinition}enterRule(t){t.enterAssemblyLocalDefinition&&t.enterAssemblyLocalDefinition(this)}exitRule(t){t.exitAssemblyLocalDefinition&&t.exitAssemblyLocalDefinition(this)}accept(t){return t.visitAssemblyLocalDefinition?t.visitAssemblyLocalDefinition(this):t.visitChildren(this)}},re=class extends g{constructor(t,e,i){super(e,i),this.parser=t}assemblyIdentifierOrList(){return this.getTypedRuleContext(ne,0)}assemblyExpression(){return this.getTypedRuleContext(te,0)}get ruleIndex(){return A.RULE_assemblyAssignment}enterRule(t){t.enterAssemblyAssignment&&t.enterAssemblyAssignment(this)}exitRule(t){t.exitAssemblyAssignment&&t.exitAssemblyAssignment(this)}accept(t){return t.visitAssemblyAssignment?t.visitAssemblyAssignment(this):t.visitChildren(this)}},ne=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}assemblyMember(){return this.getTypedRuleContext(ee,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ae,0)}get ruleIndex(){return A.RULE_assemblyIdentifierOrList}enterRule(t){t.enterAssemblyIdentifierOrList&&t.enterAssemblyIdentifierOrList(this)}exitRule(t){t.exitAssemblyIdentifierOrList&&t.exitAssemblyIdentifierOrList(this)}accept(t){return t.visitAssemblyIdentifierOrList?t.visitAssemblyIdentifierOrList(this):t.visitChildren(this)}},ae=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier_list(){return this.getTypedRuleContexts(ye)}identifier(t){return this.getTypedRuleContext(ye,t)}get ruleIndex(){return A.RULE_assemblyIdentifierList}enterRule(t){t.enterAssemblyIdentifierList&&t.enterAssemblyIdentifierList(this)}exitRule(t){t.exitAssemblyIdentifierList&&t.exitAssemblyIdentifierList(this)}accept(t){return t.visitAssemblyIdentifierList?t.visitAssemblyIdentifierList(this):t.visitChildren(this)}},oe=class extends g{constructor(t,e,i){super(e,i),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(te,0)}identifier(){return this.getTypedRuleContext(ye,0)}get ruleIndex(){return A.RULE_assemblyStackAssignment}enterRule(t){t.enterAssemblyStackAssignment&&t.enterAssemblyStackAssignment(this)}exitRule(t){t.exitAssemblyStackAssignment&&t.exitAssemblyStackAssignment(this)}accept(t){return t.visitAssemblyStackAssignment?t.visitAssemblyStackAssignment(this):t.visitChildren(this)}},le=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}get ruleIndex(){return A.RULE_labelDefinition}enterRule(t){t.enterLabelDefinition&&t.enterLabelDefinition(this)}exitRule(t){t.exitLabelDefinition&&t.exitLabelDefinition(this)}accept(t){return t.visitLabelDefinition?t.visitLabelDefinition(this):t.visitChildren(this)}},he=class extends g{constructor(t,e,i){super(e,i),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(te,0)}assemblyCase_list(){return this.getTypedRuleContexts(ce)}assemblyCase(t){return this.getTypedRuleContext(ce,t)}get ruleIndex(){return A.RULE_assemblySwitch}enterRule(t){t.enterAssemblySwitch&&t.enterAssemblySwitch(this)}exitRule(t){t.exitAssemblySwitch&&t.exitAssemblySwitch(this)}accept(t){return t.visitAssemblySwitch?t.visitAssemblySwitch(this):t.visitChildren(this)}},ce=class extends g{constructor(t,e,i){super(e,i),this.parser=t}assemblyLiteral(){return this.getTypedRuleContext(_e,0)}assemblyBlock(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return A.RULE_assemblyCase}enterRule(t){t.enterAssemblyCase&&t.enterAssemblyCase(this)}exitRule(t){t.exitAssemblyCase&&t.exitAssemblyCase(this)}accept(t){return t.visitAssemblyCase?t.visitAssemblyCase(this):t.visitChildren(this)}},ue=class extends g{constructor(t,e,i){super(e,i),this.parser=t}identifier(){return this.getTypedRuleContext(ye,0)}assemblyBlock(){return this.getTypedRuleContext(Qt,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ae,0)}assemblyFunctionReturns(){return this.getTypedRuleContext(pe,0)}get ruleIndex(){return A.RULE_assemblyFunctionDefinition}enterRule(t){t.enterAssemblyFunctionDefinition&&t.enterAssemblyFunctionDefinition(this)}exitRule(t){t.exitAssemblyFunctionDefinition&&t.exitAssemblyFunctionDefinition(this)}accept(t){return t.visitAssemblyFunctionDefinition?t.visitAssemblyFunctionDefinition(this):t.visitChildren(this)}},pe=class extends g{constructor(t,e,i){super(e,i),this.parser=t}assemblyIdentifierList(){return this.getTypedRuleContext(ae,0)}get ruleIndex(){return A.RULE_assemblyFunctionReturns}enterRule(t){t.enterAssemblyFunctionReturns&&t.enterAssemblyFunctionReturns(this)}exitRule(t){t.exitAssemblyFunctionReturns&&t.exitAssemblyFunctionReturns(this)}accept(t){return t.visitAssemblyFunctionReturns?t.visitAssemblyFunctionReturns(this):t.visitChildren(this)}},de=class extends g{constructor(t,e,i){super(e,i),this.parser=t}assemblyExpression_list(){return this.getTypedRuleContexts(te)}assemblyExpression(t){return this.getTypedRuleContext(te,t)}assemblyBlock_list(){return this.getTypedRuleContexts(Qt)}assemblyBlock(t){return this.getTypedRuleContext(Qt,t)}get ruleIndex(){return A.RULE_assemblyFor}enterRule(t){t.enterAssemblyFor&&t.enterAssemblyFor(this)}exitRule(t){t.exitAssemblyFor&&t.exitAssemblyFor(this)}accept(t){return t.visitAssemblyFor?t.visitAssemblyFor(this):t.visitChildren(this)}},me=class extends g{constructor(t,e,i){super(e,i),this.parser=t}assemblyExpression(){return this.getTypedRuleContext(te,0)}assemblyBlock(){return this.getTypedRuleContext(Qt,0)}get ruleIndex(){return A.RULE_assemblyIf}enterRule(t){t.enterAssemblyIf&&t.enterAssemblyIf(this)}exitRule(t){t.exitAssemblyIf&&t.exitAssemblyIf(this)}accept(t){return t.visitAssemblyIf?t.visitAssemblyIf(this):t.visitChildren(this)}},_e=class extends g{constructor(t,e,i){super(e,i),this.parser=t}stringLiteral(){return this.getTypedRuleContext(Ee,0)}DecimalNumber(){return this.getToken(A.DecimalNumber,0)}HexNumber(){return this.getToken(A.HexNumber,0)}hexLiteral(){return this.getTypedRuleContext(ge,0)}BooleanLiteral(){return this.getToken(A.BooleanLiteral,0)}get ruleIndex(){return A.RULE_assemblyLiteral}enterRule(t){t.enterAssemblyLiteral&&t.enterAssemblyLiteral(this)}exitRule(t){t.exitAssemblyLiteral&&t.exitAssemblyLiteral(this)}accept(t){return t.visitAssemblyLiteral?t.visitAssemblyLiteral(this):t.visitChildren(this)}},xe=class extends g{constructor(t,e,i){super(e,i),this.parser=t}expression_list(){return this.getTypedRuleContexts(Gt)}expression(t){return this.getTypedRuleContext(Gt,t)}get ruleIndex(){return A.RULE_tupleExpression}enterRule(t){t.enterTupleExpression&&t.enterTupleExpression(this)}exitRule(t){t.exitTupleExpression&&t.exitTupleExpression(this)}accept(t){return t.visitTupleExpression?t.visitTupleExpression(this):t.visitChildren(this)}},fe=class extends g{constructor(t,e,i){super(e,i),this.parser=t}DecimalNumber(){return this.getToken(A.DecimalNumber,0)}HexNumber(){return this.getToken(A.HexNumber,0)}NumberUnit(){return this.getToken(A.NumberUnit,0)}get ruleIndex(){return A.RULE_numberLiteral}enterRule(t){t.enterNumberLiteral&&t.enterNumberLiteral(this)}exitRule(t){t.exitNumberLiteral&&t.exitNumberLiteral(this)}accept(t){return t.visitNumberLiteral?t.visitNumberLiteral(this):t.visitChildren(this)}},ye=class extends g{constructor(t,e,i){super(e,i),this.parser=t}ReceiveKeyword(){return this.getToken(A.ReceiveKeyword,0)}GlobalKeyword(){return this.getToken(A.GlobalKeyword,0)}ConstructorKeyword(){return this.getToken(A.ConstructorKeyword,0)}PayableKeyword(){return this.getToken(A.PayableKeyword,0)}LeaveKeyword(){return this.getToken(A.LeaveKeyword,0)}Identifier(){return this.getToken(A.Identifier,0)}get ruleIndex(){return A.RULE_identifier}enterRule(t){t.enterIdentifier&&t.enterIdentifier(this)}exitRule(t){t.exitIdentifier&&t.exitIdentifier(this)}accept(t){return t.visitIdentifier?t.visitIdentifier(this):t.visitChildren(this)}},ge=class extends g{constructor(t,e,i){super(e,i),this.parser=t}HexLiteralFragment_list(){return this.getTokens(A.HexLiteralFragment)}HexLiteralFragment(t){return this.getToken(A.HexLiteralFragment,t)}get ruleIndex(){return A.RULE_hexLiteral}enterRule(t){t.enterHexLiteral&&t.enterHexLiteral(this)}exitRule(t){t.exitHexLiteral&&t.exitHexLiteral(this)}accept(t){return t.visitHexLiteral?t.visitHexLiteral(this):t.visitChildren(this)}},Te=class extends g{constructor(t,e,i){super(e,i),this.parser=t}userDefinedTypeName_list(){return this.getTypedRuleContexts(mt)}userDefinedTypeName(t){return this.getTypedRuleContext(mt,t)}get ruleIndex(){return A.RULE_overrideSpecifier}enterRule(t){t.enterOverrideSpecifier&&t.enterOverrideSpecifier(this)}exitRule(t){t.exitOverrideSpecifier&&t.exitOverrideSpecifier(this)}accept(t){return t.visitOverrideSpecifier?t.visitOverrideSpecifier(this):t.visitChildren(this)}},Ee=class extends g{constructor(t,e,i){super(e,i),this.parser=t}StringLiteralFragment_list(){return this.getTokens(A.StringLiteralFragment)}StringLiteralFragment(t){return this.getToken(A.StringLiteralFragment,t)}get ruleIndex(){return A.RULE_stringLiteral}enterRule(t){t.enterStringLiteral&&t.enterStringLiteral(this)}exitRule(t){t.exitStringLiteral&&t.exitStringLiteral(this)}accept(t){return t.visitStringLiteral?t.visitStringLiteral(this):t.visitChildren(this)}},ve=["SourceUnit","PragmaDirective","ImportDirective","ContractDefinition","InheritanceSpecifier","StateVariableDeclaration","UsingForDeclaration","StructDefinition","ModifierDefinition","ModifierInvocation","FunctionDefinition","EventDefinition","CustomErrorDefinition","RevertStatement","EnumValue","EnumDefinition","VariableDeclaration","UserDefinedTypeName","Mapping","ArrayTypeName","FunctionTypeName","Block","ExpressionStatement","IfStatement","WhileStatement","ForStatement","InlineAssemblyStatement","DoWhileStatement","ContinueStatement","Break","Continue","BreakStatement","ReturnStatement","EmitStatement","ThrowStatement","VariableDeclarationStatement","ElementaryTypeName","FunctionCall","AssemblyBlock","AssemblyCall","AssemblyLocalDefinition","AssemblyAssignment","AssemblyStackAssignment","LabelDefinition","AssemblySwitch","AssemblyCase","AssemblyFunctionDefinition","AssemblyFor","AssemblyIf","TupleExpression","NameValueExpression","BooleanLiteral","NumberLiteral","Identifier","BinaryOperation","UnaryOperation","NewExpression","Conditional","StringLiteral","HexLiteral","HexNumber","DecimalNumber","MemberAccess","IndexAccess","IndexRangeAccess","NameValueList","UncheckedStatement","TryStatement","CatchClause","FileLevelConstant","AssemblyMemberAccess","TypeDefinition"],Re=["+","-","*","/","**","%","<<",">>","&&","||",",,","&",",","^","<",">","<=",">=","==","!=","=",",=","^=","&=","<<=",">>=","+=","-=","*=","/=","%=","|","|="],be=["-","+","++","--","~","after","delete","!"],Le=class extends x{constructor(t){super(),this.options=t,this.result=null}defaultResult(){throw new Error("Unknown node")}aggregateResult(){return{type:""}}visitSourceUnit(t){const e={type:"SourceUnit",children:(t.children??[]).slice(0,-1).map((t=>this.visit(t)))},i=this._addMeta(e,t);return this.result=i,i}visitContractPart(t){return this.visit(t.getChild(0))}visitContractDefinition(t){const e=this._toText(t.identifier()),i=this._toText(t.getChild(0));this._currentContract=e;const s={type:"ContractDefinition",name:e,baseContracts:t.inheritanceSpecifier_list().map((t=>this.visitInheritanceSpecifier(t))),subNodes:t.contractPart_list().map((t=>this.visit(t))),kind:i};return this._addMeta(s,t)}visitStateVariableDeclaration(t){const e=this.visitTypeName(t.typeName()),i=t.identifier(),s=this._toText(i);let r=null;const n=t.expression();n&&(r=this.visitExpression(n));let a="default";t.InternalKeyword_list().length>0?a="internal":t.PublicKeyword_list().length>0?a="public":t.PrivateKeyword_list().length>0&&(a="private");let o,l=!1;t.ConstantKeyword_list().length>0&&(l=!0);const h=t.overrideSpecifier_list();o=0===h.length?null:h[0].userDefinedTypeName_list().map((t=>this.visitUserDefinedTypeName(t)));let c=!1;t.ImmutableKeyword_list().length>0&&(c=!0);const u={type:"VariableDeclaration",typeName:e,name:s,identifier:this.visitIdentifier(i),expression:r,visibility:a,isStateVar:!0,isDeclaredConst:l,isIndexed:!1,isImmutable:c,override:o,storageLocation:null},p={type:"StateVariableDeclaration",variables:[this._addMeta(u,t)],initialValue:r};return this._addMeta(p,t)}visitVariableDeclaration(t){let e=null;const i=t.storageLocation();i&&(e=this._toText(i));const s=t.identifier(),r={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:this._toText(s),identifier:this.visitIdentifier(s),storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(r,t)}visitVariableDeclarationStatement(t){let e=[];const i=t.variableDeclaration(),s=t.identifierList(),r=t.variableDeclarationList();i?e=[this.visitVariableDeclaration(i)]:s?e=this.buildIdentifierList(s):r&&(e=this.buildVariableDeclarationList(r));let n=null;const a=t.expression();a&&(n=this.visitExpression(a));const o={type:"VariableDeclarationStatement",variables:e,initialValue:n};return this._addMeta(o,t)}visitStatement(t){return this.visit(t.getChild(0))}visitSimpleStatement(t){return this.visit(t.getChild(0))}visitEventDefinition(t){const e=t.eventParameterList().eventParameter_list().map((t=>{const e=this.visitTypeName(t.typeName());let i=null;const s=t.identifier();s&&(i=this._toText(s));const r={type:"VariableDeclaration",typeName:e,name:i,identifier:s?this.visitIdentifier(s):null,isStateVar:!1,isIndexed:Boolean(t.IndexedKeyword()),storageLocation:null,expression:null};return this._addMeta(r,t)})),i={type:"EventDefinition",name:this._toText(t.identifier()),parameters:e,isAnonymous:Boolean(t.AnonymousKeyword())};return this._addMeta(i,t)}visitBlock(t){const e={type:"Block",statements:t.statement_list().map((t=>this.visitStatement(t)))};return this._addMeta(e,t)}visitParameter(t){let e=null;const i=t.storageLocation();i&&(e=this._toText(i));let s=null;const r=t.identifier();r&&(s=this._toText(r));const n={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:s,identifier:r?this.visitIdentifier(r):null,storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(n,t)}visitFunctionDefinition(t){let e=!1,i=!1,s=!1,r=!1,n=null,a=[],o=null,l="default",h=null;const c=t.block();c&&(h=this.visitBlock(c));const u=t.modifierList().modifierInvocation_list().map((t=>this.visitModifierInvocation(t)));let p=null;t.modifierList().stateMutability_list().length>0&&(p=this._stateMutabilityToText(t.modifierList().stateMutability(0)));const d=t.returnParameters();switch(this._toText(t.functionDescriptor().getChild(0))){case"constructor":a=t.parameterList().parameter_list().map((t=>this.visit(t))),l=t.modifierList().InternalKeyword_list().length>0?"internal":t.modifierList().PublicKeyword_list().length>0?"public":"default",e=!0;break;case"fallback":a=t.parameterList().parameter_list().map((t=>this.visit(t))),o=d?this.visitReturnParameters(d):null,l="external",i=!0;break;case"receive":l="external",s=!0;break;case"function":{const s=t.functionDescriptor().identifier();n=s?this._toText(s):"",a=t.parameterList().parameter_list().map((t=>this.visit(t))),o=d?this.visitReturnParameters(d):null,t.modifierList().ExternalKeyword_list().length>0?l="external":t.modifierList().InternalKeyword_list().length>0?l="internal":t.modifierList().PublicKeyword_list().length>0?l="public":t.modifierList().PrivateKeyword_list().length>0&&(l="private"),e=n===this._currentContract,i=""===n;break}}let m;t.modifierList().VirtualKeyword_list().length>0&&(r=!0);const _=t.modifierList().overrideSpecifier_list();m=0===_.length?null:_[0].userDefinedTypeName_list().map((t=>this.visitUserDefinedTypeName(t)));const x={type:"FunctionDefinition",name:n,parameters:a,returnParameters:o,body:h,visibility:l,modifiers:u,override:m,isConstructor:e,isReceiveEther:s,isFallback:i,isVirtual:r,stateMutability:p};return this._addMeta(x,t)}visitEnumDefinition(t){const e={type:"EnumDefinition",name:this._toText(t.identifier()),members:t.enumValue_list().map((t=>this.visitEnumValue(t)))};return this._addMeta(e,t)}visitEnumValue(t){const e={type:"EnumValue",name:this._toText(t.identifier())};return this._addMeta(e,t)}visitElementaryTypeName(t){const e={type:"ElementaryTypeName",name:this._toText(t),stateMutability:null};return this._addMeta(e,t)}visitIdentifier(t){const e={type:"Identifier",name:this._toText(t)};return this._addMeta(e,t)}visitTypeName(t){if(t.children&&t.children.length>2){let e=null;if(4===t.children.length){const i=t.expression();if(null==i)throw new Error("Assertion error: a typeName with 4 children should have an expression");e=this.visitExpression(i)}const i={type:"ArrayTypeName",baseTypeName:this.visitTypeName(t.typeName()),length:e};return this._addMeta(i,t)}if(2===t.children?.length){const e={type:"ElementaryTypeName",name:this._toText(t.getChild(0)),stateMutability:this._toText(t.getChild(1))};return this._addMeta(e,t)}if(t.elementaryTypeName())return this.visitElementaryTypeName(t.elementaryTypeName());if(t.userDefinedTypeName())return this.visitUserDefinedTypeName(t.userDefinedTypeName());if(t.mapping())return this.visitMapping(t.mapping());if(t.functionTypeName())return this.visitFunctionTypeName(t.functionTypeName());throw new Error("Assertion error: unhandled type name case")}visitUserDefinedTypeName(t){const e={type:"UserDefinedTypeName",namePath:this._toText(t)};return this._addMeta(e,t)}visitUsingForDeclaration(t){let e=null;const i=t.typeName();i&&(e=this.visitTypeName(i));const s=Boolean(t.GlobalKeyword()),r=t.usingForObject(),n=r.userDefinedTypeName();let a;if(n)a={type:"UsingForDeclaration",isGlobal:s,typeName:e,libraryName:this._toText(n),functions:[],operators:[]};else{const t=r.usingForObjectDirective_list(),i=[],n=[];for(const e of t){i.push(this._toText(e.userDefinedTypeName()));const t=e.userDefinableOperators();t?n.push(this._toText(t)):n.push(null)}a={type:"UsingForDeclaration",isGlobal:s,typeName:e,libraryName:null,functions:i,operators:n}}return this._addMeta(a,t)}visitPragmaDirective(t){const e=t.pragmaValue().version();let i=this._toText(t.pragmaValue());e?.children&&(i=e.children.map((t=>this._toText(t))).join(" "));const s={type:"PragmaDirective",name:this._toText(t.pragmaName()),value:i};return this._addMeta(s,t)}visitInheritanceSpecifier(t){const e=t.expressionList(),i=e?e.expression_list().map((t=>this.visitExpression(t))):[],s={type:"InheritanceSpecifier",baseName:this.visitUserDefinedTypeName(t.userDefinedTypeName()),arguments:i};return this._addMeta(s,t)}visitModifierInvocation(t){const e=t.expressionList();let i;i=null!=e?e.expression_list().map((t=>this.visit(t))):t.children&&t.children.length>1?[]:null;const s={type:"ModifierInvocation",name:this._toText(t.identifier()),arguments:i};return this._addMeta(s,t)}visitFunctionTypeName(t){const e=t.functionTypeParameterList(0).functionTypeParameter_list().map((t=>this.visitFunctionTypeParameter(t)));let i=[];t.functionTypeParameterList_list().length>1&&(i=t.functionTypeParameterList(1).functionTypeParameter_list().map((t=>this.visitFunctionTypeParameter(t))));let s="default";t.InternalKeyword_list().length>0?s="internal":t.ExternalKeyword_list().length>0&&(s="external");let r=null;t.stateMutability_list().length>0&&(r=this._toText(t.stateMutability(0)));const n={type:"FunctionTypeName",parameterTypes:e,returnTypes:i,visibility:s,stateMutability:r};return this._addMeta(n,t)}visitFunctionTypeParameter(t){let e=null;t.storageLocation()&&(e=this._toText(t.storageLocation()));const i={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:null,identifier:null,storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(i,t)}visitThrowStatement(t){return this._addMeta({type:"ThrowStatement"},t)}visitReturnStatement(t){let e=null;const i=t.expression();i&&(e=this.visitExpression(i));const s={type:"ReturnStatement",expression:e};return this._addMeta(s,t)}visitEmitStatement(t){const e={type:"EmitStatement",eventCall:this.visitFunctionCall(t.functionCall())};return this._addMeta(e,t)}visitCustomErrorDefinition(t){const e={type:"CustomErrorDefinition",name:this._toText(t.identifier()),parameters:this.visitParameterList(t.parameterList())};return this._addMeta(e,t)}visitTypeDefinition(t){const e={type:"TypeDefinition",name:this._toText(t.identifier()),definition:this.visitElementaryTypeName(t.elementaryTypeName())};return this._addMeta(e,t)}visitRevertStatement(t){const e={type:"RevertStatement",revertCall:this.visitFunctionCall(t.functionCall())};return this._addMeta(e,t)}visitFunctionCall(t){let e=[];const i=[],s=[],r=t.functionCallArguments(),n=r.expressionList(),a=r.nameValueList();if(n)e=n.expression_list().map((t=>this.visitExpression(t)));else if(a)for(const t of a.nameValue_list())e.push(this.visitExpression(t.expression())),i.push(this._toText(t.identifier())),s.push(this.visitIdentifier(t.identifier()));const o={type:"FunctionCall",expression:this.visitExpression(t.expression()),arguments:e,names:i,identifiers:s};return this._addMeta(o,t)}visitStructDefinition(t){const e={type:"StructDefinition",name:this._toText(t.identifier()),members:t.variableDeclaration_list().map((t=>this.visitVariableDeclaration(t)))};return this._addMeta(e,t)}visitWhileStatement(t){const e={type:"WhileStatement",condition:this.visitExpression(t.expression()),body:this.visitStatement(t.statement())};return this._addMeta(e,t)}visitDoWhileStatement(t){const e={type:"DoWhileStatement",condition:this.visitExpression(t.expression()),body:this.visitStatement(t.statement())};return this._addMeta(e,t)}visitIfStatement(t){const e=this.visitStatement(t.statement(0));let i=null;t.statement_list().length>1&&(i=this.visitStatement(t.statement(1)));const s={type:"IfStatement",condition:this.visitExpression(t.expression()),trueBody:e,falseBody:i};return this._addMeta(s,t)}visitTryStatement(t){let e=null;const i=t.returnParameters();i&&(e=this.visitReturnParameters(i));const s=t.catchClause_list().map((t=>this.visitCatchClause(t))),r={type:"TryStatement",expression:this.visitExpression(t.expression()),returnParameters:e,body:this.visitBlock(t.block()),catchClauses:s};return this._addMeta(r,t)}visitCatchClause(t){let e=null;if(t.parameterList()&&(e=this.visitParameterList(t.parameterList())),t.identifier()&&"Error"!==this._toText(t.identifier())&&"Panic"!==this._toText(t.identifier()))throw new Error('Expected "Error" or "Panic" identifier in catch clause');let i=null;const s=t.identifier();s&&(i=this._toText(s));const r={type:"CatchClause",isReasonStringType:"Error"===i,kind:i,parameters:e,body:this.visitBlock(t.block())};return this._addMeta(r,t)}visitExpressionStatement(t){if(!t)return null;const e={type:"ExpressionStatement",expression:this.visitExpression(t.expression())};return this._addMeta(e,t)}visitNumberLiteral(t){const e=this._toText(t.getChild(0));let i=null;2===t.children?.length&&(i=this._toText(t.getChild(1)));const s={type:"NumberLiteral",number:e,subdenomination:i};return this._addMeta(s,t)}visitMappingKey(t){if(t.elementaryTypeName())return this.visitElementaryTypeName(t.elementaryTypeName());if(t.userDefinedTypeName())return this.visitUserDefinedTypeName(t.userDefinedTypeName());throw new Error("Expected MappingKey to have either elementaryTypeName or userDefinedTypeName")}visitMapping(t){const e=t.mappingKeyName(),i=t.mappingValueName(),s={type:"Mapping",keyType:this.visitMappingKey(t.mappingKey()),keyName:e?this.visitIdentifier(e.identifier()):null,valueType:this.visitTypeName(t.typeName()),valueName:i?this.visitIdentifier(i.identifier()):null};return this._addMeta(s,t)}visitModifierDefinition(t){let e=null;t.parameterList()&&(e=this.visitParameterList(t.parameterList()));let i,s=!1;t.VirtualKeyword_list().length>0&&(s=!0);const r=t.overrideSpecifier_list();i=0===r.length?null:r[0].userDefinedTypeName_list().map((t=>this.visitUserDefinedTypeName(t)));let n=null;const a=t.block();a&&(n=this.visitBlock(a));const o={type:"ModifierDefinition",name:this._toText(t.identifier()),parameters:e,body:n,isVirtual:s,override:i};return this._addMeta(o,t)}visitUncheckedStatement(t){const e={type:"UncheckedStatement",block:this.visitBlock(t.block())};return this._addMeta(e,t)}visitExpression(t){let e;switch(t.children.length){case 1:{const e=t.primaryExpression();if(null==e)throw new Error("Assertion error: primary expression should exist when children length is 1");return this.visitPrimaryExpression(e)}case 2:if(e=this._toText(t.getChild(0)),"new"===e){const e={type:"NewExpression",typeName:this.visitTypeName(t.typeName())};return this._addMeta(e,t)}if(be.includes(e)){const i={type:"UnaryOperation",operator:e,subExpression:this.visitExpression(t.expression(0)),isPrefix:!0};return this._addMeta(i,t)}if(e=this._toText(t.getChild(1)),["++","--"].includes(e)){const i={type:"UnaryOperation",operator:e,subExpression:this.visitExpression(t.expression(0)),isPrefix:!1};return this._addMeta(i,t)}break;case 3:if("("===this._toText(t.getChild(0))&&")"===this._toText(t.getChild(2))){const e={type:"TupleExpression",components:[this.visitExpression(t.expression(0))],isArray:!1};return this._addMeta(e,t)}if(e=this._toText(t.getChild(1)),"."===e){const e={type:"MemberAccess",expression:this.visitExpression(t.expression(0)),memberName:this._toText(t.identifier())};return this._addMeta(e,t)}if(function(t){return Re.includes(t)}(e)){const i={type:"BinaryOperation",operator:e,left:this.visitExpression(t.expression(0)),right:this.visitExpression(t.expression(1))};return this._addMeta(i,t)}break;case 4:if("("===this._toText(t.getChild(1))&&")"===this._toText(t.getChild(3))){let e=[];const i=[],s=[],r=t.functionCallArguments();if(r.expressionList())e=r.expressionList().expression_list().map((t=>this.visitExpression(t)));else if(r.nameValueList())for(const t of r.nameValueList().nameValue_list())e.push(this.visitExpression(t.expression())),i.push(this._toText(t.identifier())),s.push(this.visitIdentifier(t.identifier()));const n={type:"FunctionCall",expression:this.visitExpression(t.expression(0)),arguments:e,names:i,identifiers:s};return this._addMeta(n,t)}if("["===this._toText(t.getChild(1))&&"]"===this._toText(t.getChild(3))){if(":"===t.getChild(2).getText()){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0))};return this._addMeta(e,t)}const e={type:"IndexAccess",base:this.visitExpression(t.expression(0)),index:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}if("{"===this._toText(t.getChild(1))&&"}"===this._toText(t.getChild(3))){const e={type:"NameValueExpression",expression:this.visitExpression(t.expression(0)),arguments:this.visitNameValueList(t.nameValueList())};return this._addMeta(e,t)}break;case 5:if("?"===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))){const e={type:"Conditional",condition:this.visitExpression(t.expression(0)),trueExpression:this.visitExpression(t.expression(1)),falseExpression:this.visitExpression(t.expression(2))};return this._addMeta(e,t)}if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(2))&&"]"===this._toText(t.getChild(4))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexEnd:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))&&"]"===this._toText(t.getChild(4))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexStart:this.visitExpression(t.expression(1))};return this._addMeta(e,t)}break;case 6:if("["===this._toText(t.getChild(1))&&":"===this._toText(t.getChild(3))&&"]"===this._toText(t.getChild(5))){const e={type:"IndexRangeAccess",base:this.visitExpression(t.expression(0)),indexStart:this.visitExpression(t.expression(1)),indexEnd:this.visitExpression(t.expression(2))};return this._addMeta(e,t)}}throw new Error("Unrecognized expression")}visitNameValueList(t){const e=[],i=[],s=[];for(const r of t.nameValue_list())e.push(this._toText(r.identifier())),i.push(this.visitIdentifier(r.identifier())),s.push(this.visitExpression(r.expression()));const r={type:"NameValueList",names:e,identifiers:i,arguments:s};return this._addMeta(r,t)}visitFileLevelConstant(t){const e={type:"FileLevelConstant",typeName:this.visitTypeName(t.typeName()),name:this._toText(t.identifier()),initialValue:this.visitExpression(t.expression()),isDeclaredConst:!0,isImmutable:!1};return this._addMeta(e,t)}visitForStatement(t){let e=this.visitExpressionStatement(t.expressionStatement());e&&(e=e.expression);const i={type:"ForStatement",initExpression:t.simpleStatement()?this.visitSimpleStatement(t.simpleStatement()):null,conditionExpression:e,loopExpression:{type:"ExpressionStatement",expression:t.expression()?this.visitExpression(t.expression()):null},body:this.visitStatement(t.statement())};return this._addMeta(i,t)}visitHexLiteral(t){const e=t.HexLiteralFragment_list().map((t=>this._toText(t))).map((t=>t.substring(4,t.length-1))),i={type:"HexLiteral",value:e.join(""),parts:e};return this._addMeta(i,t)}visitPrimaryExpression(t){if(t.BooleanLiteral()){const e={type:"BooleanLiteral",value:"true"===this._toText(t.BooleanLiteral())};return this._addMeta(e,t)}if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());if(t.stringLiteral()){const e=t.stringLiteral().StringLiteralFragment_list().map((t=>{let e=this._toText(t);const i="unicode"===e.slice(0,7);i&&(e=e.slice(7));const s="'"===e[0],r=e.substring(1,e.length-1);return{value:s?r.replace(new RegExp("\\\\'","g"),"'"):r.replace(new RegExp('\\\\"',"g"),'"'),isUnicode:i}})),i=e.map((t=>t.value)),s={type:"StringLiteral",value:i.join(""),parts:i,isUnicode:e.map((t=>t.isUnicode))};return this._addMeta(s,t)}if(t.numberLiteral())return this.visitNumberLiteral(t.numberLiteral());if(t.TypeKeyword()){const e={type:"Identifier",name:"type"};return this._addMeta(e,t)}return t.typeName()?this.visitTypeName(t.typeName()):this.visit(t.getChild(0))}visitTupleExpression(t){const e=t.children.slice(1,-1),i={type:"TupleExpression",components:this._mapCommasToNulls(e).map((t=>null===t?null:this.visit(t))),isArray:"["===this._toText(t.getChild(0))};return this._addMeta(i,t)}buildIdentifierList(t){const e=t.children.slice(1,-1),i=t.identifier_list();let s=0;return this._mapCommasToNulls(e).map((t=>{if(null===t)return null;const e=i[s];s++;const r={type:"VariableDeclaration",name:this._toText(e),identifier:this.visitIdentifier(e),isStateVar:!1,isIndexed:!1,typeName:null,storageLocation:null,expression:null};return this._addMeta(r,e)}))}buildVariableDeclarationList(t){const e=t.variableDeclaration_list();let i=0;return this._mapCommasToNulls(t.children??[]).map((t=>{if(!t)return null;const s=e[i];i++;let r=null;s.storageLocation()&&(r=this._toText(s.storageLocation()));const n=s.identifier(),a={type:"VariableDeclaration",name:this._toText(n),identifier:this.visitIdentifier(n),typeName:this.visitTypeName(s.typeName()),storageLocation:r,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(a,s)}))}visitImportDirective(t){const e=this._toText(t.importPath());let i=null,s=null,r=null,n=null;if(t.importDeclaration_list().length>0)r=t.importDeclaration_list().map((t=>{const e=this._toText(t.identifier(0));let i=null;return t.identifier_list().length>1&&(i=this._toText(t.identifier(1))),[e,i]})),n=t.importDeclaration_list().map((t=>{const e=this.visitIdentifier(t.identifier(0));let i=null;return t.identifier_list().length>1&&(i=this.visitIdentifier(t.identifier(1))),[e,i]}));else{const e=t.identifier_list();if(0===e.length);else if(1===e.length){const e=t.identifier(0);i=this._toText(e),s=this.visitIdentifier(e)}else{if(2!==e.length)throw new Error("Assertion error: an import should have one or two identifiers");{const e=t.identifier(1);i=this._toText(e),s=this.visitIdentifier(e)}}}const a=e.substring(1,e.length-1),o={type:"StringLiteral",value:a,parts:[a],isUnicode:[!1]},l={type:"ImportDirective",path:a,pathLiteral:this._addMeta(o,t.importPath()),unitAlias:i,unitAliasIdentifier:s,symbolAliases:r,symbolAliasesIdentifiers:n};return this._addMeta(l,t)}buildEventParameterList(t){return t.eventParameter_list().map((t=>{const e=this.visit(t.typeName()),i=t.identifier();return{type:"VariableDeclaration",typeName:e,name:i?this._toText(i):null,isStateVar:!1,isIndexed:!!t.IndexedKeyword()}}))}visitReturnParameters(t){return this.visitParameterList(t.parameterList())}visitParameterList(t){return t.parameter_list().map((t=>this.visitParameter(t)))}visitInlineAssemblyStatement(t){let e=null;t.StringLiteralFragment()&&(e=this._toText(t.StringLiteralFragment()),e=e.substring(1,e.length-1));const i=[],s=t.inlineAssemblyStatementFlag();if(s){const t=this._toText(s.stringLiteral());i.push(t.slice(1,t.length-1))}const r={type:"InlineAssemblyStatement",language:e,flags:i,body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(r,t)}visitAssemblyBlock(t){const e={type:"AssemblyBlock",operations:t.assemblyItem_list().map((t=>this.visitAssemblyItem(t)))};return this._addMeta(e,t)}visitAssemblyItem(t){let e;if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());if(t.stringLiteral()){e=this._toText(t.stringLiteral());const i=e.substring(1,e.length-1),s={type:"StringLiteral",value:i,parts:[i],isUnicode:[!1]};return this._addMeta(s,t)}if(t.BreakKeyword()){const e={type:"Break"};return this._addMeta(e,t)}if(t.ContinueKeyword()){const e={type:"Continue"};return this._addMeta(e,t)}return this.visit(t.getChild(0))}visitAssemblyExpression(t){return this.visit(t.getChild(0))}visitAssemblyCall(t){const e={type:"AssemblyCall",functionName:this._toText(t.getChild(0)),arguments:t.assemblyExpression_list().map((t=>this.visitAssemblyExpression(t)))};return this._addMeta(e,t)}visitAssemblyLiteral(t){let e;if(t.stringLiteral()){e=this._toText(t);const i=e.substring(1,e.length-1),s={type:"StringLiteral",value:i,parts:[i],isUnicode:[!1]};return this._addMeta(s,t)}if(t.BooleanLiteral()){const e={type:"BooleanLiteral",value:"true"===this._toText(t.BooleanLiteral())};return this._addMeta(e,t)}if(t.DecimalNumber()){const e={type:"DecimalNumber",value:this._toText(t)};return this._addMeta(e,t)}if(t.HexNumber()){const e={type:"HexNumber",value:this._toText(t)};return this._addMeta(e,t)}if(t.hexLiteral())return this.visitHexLiteral(t.hexLiteral());throw new Error("Should never reach here")}visitAssemblySwitch(t){const e={type:"AssemblySwitch",expression:this.visitAssemblyExpression(t.assemblyExpression()),cases:t.assemblyCase_list().map((t=>this.visitAssemblyCase(t)))};return this._addMeta(e,t)}visitAssemblyCase(t){let e=null;"case"===this._toText(t.getChild(0))&&(e=this.visitAssemblyLiteral(t.assemblyLiteral()));const i={type:"AssemblyCase",block:this.visitAssemblyBlock(t.assemblyBlock()),value:e,default:null===e};return this._addMeta(i,t)}visitAssemblyLocalDefinition(t){const e=t.assemblyIdentifierOrList();let i;i=e.identifier()?[this.visitIdentifier(e.identifier())]:e.assemblyMember()?[this.visitAssemblyMember(e.assemblyMember())]:e.assemblyIdentifierList().identifier_list().map((t=>this.visitIdentifier(t)));let s=null;t.assemblyExpression()&&(s=this.visitAssemblyExpression(t.assemblyExpression()));const r={type:"AssemblyLocalDefinition",names:i,expression:s};return this._addMeta(r,t)}visitAssemblyFunctionDefinition(t){const e=t.assemblyIdentifierList(),i=e?e.identifier_list().map((t=>this.visitIdentifier(t))):[],s=t.assemblyFunctionReturns(),r=s?s.assemblyIdentifierList().identifier_list().map((t=>this.visitIdentifier(t))):[],n={type:"AssemblyFunctionDefinition",name:this._toText(t.identifier()),arguments:i,returnArguments:r,body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(n,t)}visitAssemblyAssignment(t){const e=t.assemblyIdentifierOrList();let i;i=e.identifier()?[this.visitIdentifier(e.identifier())]:e.assemblyMember()?[this.visitAssemblyMember(e.assemblyMember())]:e.assemblyIdentifierList().identifier_list().map((t=>this.visitIdentifier(t)));const s={type:"AssemblyAssignment",names:i,expression:this.visitAssemblyExpression(t.assemblyExpression())};return this._addMeta(s,t)}visitAssemblyMember(t){const[e,i]=t.identifier_list(),s={type:"AssemblyMemberAccess",expression:this.visitIdentifier(e),memberName:this.visitIdentifier(i)};return this._addMeta(s,t)}visitLabelDefinition(t){const e={type:"LabelDefinition",name:this._toText(t.identifier())};return this._addMeta(e,t)}visitAssemblyStackAssignment(t){const e={type:"AssemblyStackAssignment",name:this._toText(t.identifier()),expression:this.visitAssemblyExpression(t.assemblyExpression())};return this._addMeta(e,t)}visitAssemblyFor(t){const e={type:"AssemblyFor",pre:this.visit(t.getChild(1)),condition:this.visit(t.getChild(2)),post:this.visit(t.getChild(3)),body:this.visit(t.getChild(4))};return this._addMeta(e,t)}visitAssemblyIf(t){const e={type:"AssemblyIf",condition:this.visitAssemblyExpression(t.assemblyExpression()),body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(e,t)}visitContinueStatement(t){return this._addMeta({type:"ContinueStatement"},t)}visitBreakStatement(t){return this._addMeta({type:"BreakStatement"},t)}_toText(t){const e=t.getText();if(null==e)throw new Error("Assertion error: text should never be undefined");return e}_stateMutabilityToText(t){if(t.PureKeyword())return"pure";if(t.ConstantKeyword())return"constant";if(t.PayableKeyword())return"payable";if(t.ViewKeyword())return"view";throw new Error("Assertion error: non-exhaustive stateMutability check")}_loc(t){return{start:{line:t.start.line,column:t.start.column},end:{line:t.stop?t.stop.line:t.start.line,column:t.stop?t.stop.column:t.start.column}}}_range(t){return[t.start.start,t.stop?.stop??t.start.start]}_addMeta(t,e){const i={type:t.type};return!0===this.options.loc&&(t.loc=this._loc(e)),!0===this.options.range&&(t.range=this._range(e)),{...i,...t}}_mapCommasToNulls(t){if(0===t.length)return[];const e=[];let i=!0;for(const s of t)if(i)","===this._toText(s)?e.push(null):(e.push(s),i=!1);else{if(","!==this._toText(s))throw new Error("expected comma");i=!0}return i&&e.push(null),e}},Se=class extends u{constructor(){super(),this._errors=[]}syntaxError(t,e,i,s,r){this._errors.push({message:r,line:i,column:s})}getErrors(){return this._errors}hasErrors(){return this._errors.length>0}},Ae={1:"pragma",2:";",3:"*",4:"||",5:"^",6:"~",7:">=",8:">",9:"<",10:"<=",11:"=",12:"as",13:"import",14:"from",15:"{",16:",",17:"}",18:"abstract",19:"contract",20:"interface",21:"library",22:"is",23:"(",24:")",25:"error",26:"using",27:"for",28:"|",29:"&",30:"+",31:"-",32:"/",33:"%",34:"==",35:"!=",36:"struct",37:"modifier",38:"function",39:"returns",40:"event",41:"enum",42:"[",43:"]",44:"address",45:".",46:"mapping",47:"=>",48:"memory",49:"storage",50:"calldata",51:"if",52:"else",53:"try",54:"catch",55:"while",56:"unchecked",57:"assembly",58:"do",59:"return",60:"throw",61:"emit",62:"revert",63:"var",64:"bool",65:"string",66:"byte",67:"++",68:"--",69:"new",70:":",71:"delete",72:"!",73:"**",74:"<<",75:">>",76:"&&",77:"?",78:"|=",79:"^=",80:"&=",81:"<<=",82:">>=",83:"+=",84:"-=",85:"*=",86:"/=",87:"%=",88:"let",89:":=",90:"=:",91:"switch",92:"case",93:"default",94:"->",95:"callback",96:"override",97:"Int",98:"Uint",99:"Byte",100:"Fixed",101:"Ufixed",102:"BooleanLiteral",103:"DecimalNumber",104:"HexNumber",105:"NumberUnit",106:"HexLiteralFragment",107:"ReservedKeyword",108:"anonymous",109:"break",110:"constant",111:"immutable",112:"continue",113:"leave",114:"external",115:"indexed",116:"internal",117:"payable",118:"private",119:"public",120:"virtual",121:"pure",122:"type",123:"view",124:"global",125:"constructor",126:"fallback",127:"receive",128:"Identifier",129:"StringLiteralFragment",130:"VersionLiteral",131:"WS",132:"COMMENT",133:"LINE_COMMENT"},Ce=["var","bool","address","string","Int","Uint","Byte","Fixed","UFixed"];function we(t,e){return t.map((t=>{var i;const s={type:"Identifier"===(i=Ae[t.type.toString()])||"from"===i?"Identifier":"TrueLiteral"===i||"FalseLiteral"===i?"Boolean":"VersionLiteral"===i?"Version":"StringLiteral"===i?"String":Ce.includes(i)?"Type":"NumberUnit"===i?"Subdenomination":"DecimalNumber"===i?"Numeric":"HexLiteral"===i?"Hex":"ReservedKeyword"===i?"Reserved":/^\W+$/.test(i)?"Punctuator":"Keyword",value:t.text};return!0===e.range&&(s.range=[t.start,t.stop+1]),!0===e.loc&&(s.loc={start:{line:t.line,column:t.column},end:{line:t.line,column:t.column+(t.text?.length??0)}}),s}))}var Ne=class extends Error{constructor(t){super();const{message:e,line:i,column:s}=t.errors[0];this.message=`${e} (${i}:${s})`,this.errors=t.errors,void 0!==Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack}};function Ie(t,e={}){const i=new l(t);return we(new L(i).getAllTokens(),e)}function ke(t,e={}){const i=new l(t),s=new L(i),r=new h(s),n=new C(r),a=new Se;s.removeErrorListeners(),s.addErrorListener(a),n.removeErrorListeners(),n.addErrorListener(a),n.buildParseTrees=!0;const o=n.sourceUnit(),c=new Le(e);c.visit(o);const u=c.result;if(null===u)throw new Error("ast should never be null");let p=[];if(!0===e.tokens&&(p=we(r.tokens,e)),!0!==e.tolerant&&a.hasErrors())throw new Ne({errors:a.getErrors()});return!0===e.tolerant&&a.hasErrors()&&(u.errors=a.getErrors()),!0===e.tokens&&(u.tokens=p),u}function De(t,e,i){if(Array.isArray(t)&&t.forEach((t=>De(t,e,i))),!function(t){if("object"!=typeof t||null===t)return!1;const e=t;return!(!Object.prototype.hasOwnProperty.call(e,"type")||"string"!=typeof e.type)&&ve.includes(e.type)}(t))return;let s=!0;if(void 0!==e[t.type]&&(s=e[t.type](t,i)),!1===s)return;for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&De(t[i],e,t);const r=t.type+":exit";void 0!==e[r]&&e[r](t,i)}return e})();t.exports=e},257:(t,e,i)=>{const s=Symbol("SemVer ANY");class r{static get ANY(){return s}constructor(t,e){if(e=n(e),t instanceof r){if(t.loose===!!e.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),h("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===s?this.value="":this.value=this.operator+this.semver.version,h("comp",this)}parse(t){const e=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR],i=t.match(e);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new c(i[2],this.options.loose):this.semver=s}toString(){return this.value}test(t){if(h("Comparator.test",t,this.options.loose),this.semver===s||t===s)return!0;if("string"==typeof t)try{t=new c(t,this.options)}catch(t){return!1}return l(t,this.operator,this.semver,this.options)}intersects(t,e){if(!(t instanceof r))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(t.value,e).test(this.value):""===t.operator?""===t.value||new u(this.value,e).test(t.semver):!((e=n(e)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!e.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!t.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!t.operator.startsWith("<"))&&(this.semver.version!==t.semver.version||!this.operator.includes("=")||!t.operator.includes("="))&&!(l(this.semver,"<",t.semver,e)&&this.operator.startsWith(">")&&t.operator.startsWith("<"))&&!(l(this.semver,">",t.semver,e)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}}t.exports=r;const n=i(893),{safeRe:a,t:o}=i(765),l=i(539),h=i(225),c=i(376),u=i(902)},902:(t,e,i)=>{class s{constructor(t,e){if(e=n(e),t instanceof s)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new s(t.raw,e);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!x(t[0]))),0===this.set.length)this.set=[t];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&f(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(t){const e=((this.options.includePrerelease&&m)|(this.options.loose&&_))+":"+t,i=r.get(e);if(i)return i;const s=this.options.loose,n=s?h[c.HYPHENRANGELOOSE]:h[c.HYPHENRANGE];t=t.replace(n,w(this.options.includePrerelease)),o("hyphen replace",t),t=t.replace(h[c.COMPARATORTRIM],u),o("comparator trim",t),t=t.replace(h[c.TILDETRIM],p),o("tilde trim",t),t=t.replace(h[c.CARETTRIM],d),o("caret trim",t);let l=t.split(" ").map((t=>g(t,this.options))).join(" ").split(/\s+/).map((t=>C(t,this.options)));s&&(l=l.filter((t=>(o("loose invalid filter",t,this.options),!!t.match(h[c.COMPARATORLOOSE]))))),o("range list",l);const f=new Map,y=l.map((t=>new a(t,this.options)));for(const t of y){if(x(t))return[t];f.set(t.value,t)}f.size>1&&f.has("")&&f.delete("");const T=[...f.values()];return r.set(e,T),T}intersects(t,e){if(!(t instanceof s))throw new TypeError("a Range is required");return this.set.some((i=>y(i,e)&&t.set.some((t=>y(t,e)&&i.every((i=>t.every((t=>i.intersects(t,e)))))))))}test(t){if(!t)return!1;if("string"==typeof t)try{t=new l(t,this.options)}catch(t){return!1}for(let e=0;e<this.set.length;e++)if(N(this.set[e],t,this.options))return!0;return!1}}t.exports=s;const r=new(i(62))({max:1e3}),n=i(893),a=i(257),o=i(225),l=i(376),{safeRe:h,t:c,comparatorTrimReplace:u,tildeTrimReplace:p,caretTrimReplace:d}=i(765),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:_}=i(295),x=t=>"<0.0.0-0"===t.value,f=t=>""===t.value,y=(t,e)=>{let i=!0;const s=t.slice();let r=s.pop();for(;i&&s.length;)i=s.every((t=>r.intersects(t,e))),r=s.pop();return i},g=(t,e)=>(o("comp",t,e),t=R(t,e),o("caret",t),t=E(t,e),o("tildes",t),t=L(t,e),o("xrange",t),t=A(t,e),o("stars",t),t),T=t=>!t||"x"===t.toLowerCase()||"*"===t,E=(t,e)=>t.trim().split(/\s+/).map((t=>v(t,e))).join(" "),v=(t,e)=>{const i=e.loose?h[c.TILDELOOSE]:h[c.TILDE];return t.replace(i,((e,i,s,r,n)=>{let a;return o("tilde",t,e,i,s,r,n),T(i)?a="":T(s)?a=`>=${i}.0.0 <${+i+1}.0.0-0`:T(r)?a=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:n?(o("replaceTilde pr",n),a=`>=${i}.${s}.${r}-${n} <${i}.${+s+1}.0-0`):a=`>=${i}.${s}.${r} <${i}.${+s+1}.0-0`,o("tilde return",a),a}))},R=(t,e)=>t.trim().split(/\s+/).map((t=>b(t,e))).join(" "),b=(t,e)=>{o("caret",t,e);const i=e.loose?h[c.CARETLOOSE]:h[c.CARET],s=e.includePrerelease?"-0":"";return t.replace(i,((e,i,r,n,a)=>{let l;return o("caret",t,e,i,r,n,a),T(i)?l="":T(r)?l=`>=${i}.0.0${s} <${+i+1}.0.0-0`:T(n)?l="0"===i?`>=${i}.${r}.0${s} <${i}.${+r+1}.0-0`:`>=${i}.${r}.0${s} <${+i+1}.0.0-0`:a?(o("replaceCaret pr",a),l="0"===i?"0"===r?`>=${i}.${r}.${n}-${a} <${i}.${r}.${+n+1}-0`:`>=${i}.${r}.${n}-${a} <${i}.${+r+1}.0-0`:`>=${i}.${r}.${n}-${a} <${+i+1}.0.0-0`):(o("no pr"),l="0"===i?"0"===r?`>=${i}.${r}.${n}${s} <${i}.${r}.${+n+1}-0`:`>=${i}.${r}.${n}${s} <${i}.${+r+1}.0-0`:`>=${i}.${r}.${n} <${+i+1}.0.0-0`),o("caret return",l),l}))},L=(t,e)=>(o("replaceXRanges",t,e),t.split(/\s+/).map((t=>S(t,e))).join(" ")),S=(t,e)=>{t=t.trim();const i=e.loose?h[c.XRANGELOOSE]:h[c.XRANGE];return t.replace(i,((i,s,r,n,a,l)=>{o("xRange",t,i,s,r,n,a,l);const h=T(r),c=h||T(n),u=c||T(a),p=u;return"="===s&&p&&(s=""),l=e.includePrerelease?"-0":"",h?i=">"===s||"<"===s?"<0.0.0-0":"*":s&&p?(c&&(n=0),a=0,">"===s?(s=">=",c?(r=+r+1,n=0,a=0):(n=+n+1,a=0)):"<="===s&&(s="<",c?r=+r+1:n=+n+1),"<"===s&&(l="-0"),i=`${s+r}.${n}.${a}${l}`):c?i=`>=${r}.0.0${l} <${+r+1}.0.0-0`:u&&(i=`>=${r}.${n}.0${l} <${r}.${+n+1}.0-0`),o("xRange return",i),i}))},A=(t,e)=>(o("replaceStars",t,e),t.trim().replace(h[c.STAR],"")),C=(t,e)=>(o("replaceGTE0",t,e),t.trim().replace(h[e.includePrerelease?c.GTE0PRE:c.GTE0],"")),w=t=>(e,i,s,r,n,a,o,l,h,c,u,p,d)=>`${i=T(s)?"":T(r)?`>=${s}.0.0${t?"-0":""}`:T(n)?`>=${s}.${r}.0${t?"-0":""}`:a?`>=${i}`:`>=${i}${t?"-0":""}`} ${l=T(h)?"":T(c)?`<${+h+1}.0.0-0`:T(u)?`<${h}.${+c+1}.0-0`:p?`<=${h}.${c}.${u}-${p}`:t?`<${h}.${c}.${+u+1}-0`:`<=${l}`}`.trim(),N=(t,e,i)=>{for(let i=0;i<t.length;i++)if(!t[i].test(e))return!1;if(e.prerelease.length&&!i.includePrerelease){for(let i=0;i<t.length;i++)if(o(t[i].semver),t[i].semver!==a.ANY&&t[i].semver.prerelease.length>0){const s=t[i].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}},376:(t,e,i)=>{const s=i(225),{MAX_LENGTH:r,MAX_SAFE_INTEGER:n}=i(295),{safeRe:a,t:o}=i(765),l=i(893),{compareIdentifiers:h}=i(742);class c{constructor(t,e){if(e=l(e),t instanceof c){if(t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw new TypeError(`version is longer than ${r} characters`);s("SemVer",t,e),this.options=e,this.loose=!!e.loose,this.includePrerelease=!!e.includePrerelease;const i=t.trim().match(e.loose?a[o.LOOSE]:a[o.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<n)return e}return t})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(s("SemVer.compare",this.version,this.options,t),!(t instanceof c)){if("string"==typeof t&&t===this.version)return 0;t=new c(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof c||(t=new c(t,this.options)),h(this.major,t.major)||h(this.minor,t.minor)||h(this.patch,t.patch)}comparePre(t){if(t instanceof c||(t=new c(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let e=0;do{const i=this.prerelease[e],r=t.prerelease[e];if(s("prerelease compare",e,i,r),void 0===i&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===i)return-1;if(i!==r)return h(i,r)}while(++e)}compareBuild(t){t instanceof c||(t=new c(t,this.options));let e=0;do{const i=this.build[e],r=t.build[e];if(s("prerelease compare",e,i,r),void 0===i&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===i)return-1;if(i!==r)return h(i,r)}while(++e)}inc(t,e,i){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,i),this.inc("pre",e,i);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,i),this.inc("pre",e,i);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(i)?1:0;if(!e&&!1===i)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[t];else{let s=this.prerelease.length;for(;--s>=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(e===this.prerelease.join(".")&&!1===i)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let s=[e,t];!1===i&&(s=[e]),0===h(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}t.exports=c},539:(t,e,i)=>{const s=i(718),r=i(194),n=i(312),a=i(903),o=i(544),l=i(56);t.exports=(t,e,i,h)=>{switch(e){case"===":return"object"==typeof t&&(t=t.version),"object"==typeof i&&(i=i.version),t===i;case"!==":return"object"==typeof t&&(t=t.version),"object"==typeof i&&(i=i.version),t!==i;case"":case"=":case"==":return s(t,i,h);case"!=":return r(t,i,h);case">":return n(t,i,h);case">=":return a(t,i,h);case"<":return o(t,i,h);case"<=":return l(t,i,h);default:throw new TypeError(`Invalid operator: ${e}`)}}},38:(t,e,i)=>{const s=i(376),r=i(959),{safeRe:n,t:a}=i(765);t.exports=(t,e)=>{if(t instanceof s)return t;if("number"==typeof t&&(t=String(t)),"string"!=typeof t)return null;let i=null;if((e=e||{}).rtl){let e;for(;(e=n[a.COERCERTL].exec(t))&&(!i||i.index+i[0].length!==t.length);)i&&e.index+e[0].length===i.index+i[0].length||(i=e),n[a.COERCERTL].lastIndex=e.index+e[1].length+e[2].length;n[a.COERCERTL].lastIndex=-1}else i=t.match(n[a.COERCE]);return null===i?null:r(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,e)}},269:(t,e,i)=>{const s=i(376);t.exports=(t,e,i)=>new s(t,i).compare(new s(e,i))},718:(t,e,i)=>{const s=i(269);t.exports=(t,e,i)=>0===s(t,e,i)},312:(t,e,i)=>{const s=i(269);t.exports=(t,e,i)=>s(t,e,i)>0},903:(t,e,i)=>{const s=i(269);t.exports=(t,e,i)=>s(t,e,i)>=0},544:(t,e,i)=>{const s=i(269);t.exports=(t,e,i)=>s(t,e,i)<0},56:(t,e,i)=>{const s=i(269);t.exports=(t,e,i)=>s(t,e,i)<=0},194:(t,e,i)=>{const s=i(269);t.exports=(t,e,i)=>0!==s(t,e,i)},959:(t,e,i)=>{const s=i(376);t.exports=(t,e,i=!1)=>{if(t instanceof s)return t;try{return new s(t,e)}catch(t){if(!i)return null;throw t}}},712:(t,e,i)=>{const s=i(902);t.exports=(t,e,i)=>{try{e=new s(e,i)}catch(t){return!1}return e.test(t)}},295:t=>{const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},225:t=>{const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=e},742:t=>{const e=/^[0-9]+$/,i=(t,i)=>{const s=e.test(t),r=e.test(i);return s&&r&&(t=+t,i=+i),t===i?0:s&&!r?-1:r&&!s?1:t<i?-1:1};t.exports={compareIdentifiers:i,rcompareIdentifiers:(t,e)=>i(e,t)}},893:t=>{const e=Object.freeze({loose:!0}),i=Object.freeze({});t.exports=t=>t?"object"!=typeof t?e:t:i},765:(t,e,i)=>{const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:n}=i(295),a=i(225),o=(e=t.exports={}).re=[],l=e.safeRe=[],h=e.src=[],c=e.t={};let u=0;const p="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",n],[p,r]],m=(t,e,i)=>{const s=(t=>{for(const[e,i]of d)t=t.split(`${e}*`).join(`${e}{0,${i}}`).split(`${e}+`).join(`${e}{1,${i}}`);return t})(e),r=u++;a(t,r,e),c[t]=r,h[r]=e,o[r]=new RegExp(e,i?"g":void 0),l[r]=new RegExp(s,i?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),m("MAINVERSION",`(${h[c.NUMERICIDENTIFIER]})\\.(${h[c.NUMERICIDENTIFIER]})\\.(${h[c.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${h[c.NUMERICIDENTIFIERLOOSE]})\\.(${h[c.NUMERICIDENTIFIERLOOSE]})\\.(${h[c.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${h[c.NUMERICIDENTIFIER]}|${h[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${h[c.NUMERICIDENTIFIERLOOSE]}|${h[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${h[c.PRERELEASEIDENTIFIER]}(?:\\.${h[c.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${h[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${h[c.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${p}+`),m("BUILD",`(?:\\+(${h[c.BUILDIDENTIFIER]}(?:\\.${h[c.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${h[c.MAINVERSION]}${h[c.PRERELEASE]}?${h[c.BUILD]}?`),m("FULL",`^${h[c.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${h[c.MAINVERSIONLOOSE]}${h[c.PRERELEASELOOSE]}?${h[c.BUILD]}?`),m("LOOSE",`^${h[c.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${h[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${h[c.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${h[c.XRANGEIDENTIFIER]})(?:\\.(${h[c.XRANGEIDENTIFIER]})(?:\\.(${h[c.XRANGEIDENTIFIER]})(?:${h[c.PRERELEASE]})?${h[c.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${h[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${h[c.XRANGEIDENTIFIERLOOSE]})(?:${h[c.PRERELEASELOOSE]})?${h[c.BUILD]}?)?)?`),m("XRANGE",`^${h[c.GTLT]}\\s*${h[c.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${h[c.GTLT]}\\s*${h[c.XRANGEPLAINLOOSE]}$`),m("COERCE",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?(?:$|[^\\d])`),m("COERCERTL",h[c.COERCE],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${h[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",m("TILDE",`^${h[c.LONETILDE]}${h[c.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${h[c.LONETILDE]}${h[c.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${h[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",m("CARET",`^${h[c.LONECARET]}${h[c.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${h[c.LONECARET]}${h[c.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${h[c.GTLT]}\\s*(${h[c.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${h[c.GTLT]}\\s*(${h[c.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${h[c.GTLT]}\\s*(${h[c.LOOSEPLAIN]}|${h[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${h[c.XRANGEPLAIN]})\\s+-\\s+(${h[c.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${h[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${h[c.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},62:(t,e,i)=>{"use strict";const s=i(411),r=Symbol("max"),n=Symbol("length"),a=Symbol("lengthCalculator"),o=Symbol("allowStale"),l=Symbol("maxAge"),h=Symbol("dispose"),c=Symbol("noDisposeOnSet"),u=Symbol("lruList"),p=Symbol("cache"),d=Symbol("updateAgeOnGet"),m=()=>1,_=(t,e,i)=>{const s=t[p].get(e);if(s){const e=s.value;if(x(t,e)){if(y(t,s),!t[o])return}else i&&(t[d]&&(s.value.now=Date.now()),t[u].unshiftNode(s));return e.value}},x=(t,e)=>{if(!e||!e.maxAge&&!t[l])return!1;const i=Date.now()-e.now;return e.maxAge?i>e.maxAge:t[l]&&i>t[l]},f=t=>{if(t[n]>t[r])for(let e=t[u].tail;t[n]>t[r]&&null!==e;){const i=e.prev;y(t,e),e=i}},y=(t,e)=>{if(e){const i=e.value;t[h]&&t[h](i.key,i.value),t[n]-=i.length,t[p].delete(i.key),t[u].removeNode(e)}};class g{constructor(t,e,i,s,r){this.key=t,this.value=e,this.length=i,this.now=s,this.maxAge=r||0}}const T=(t,e,i,s)=>{let r=i.value;x(t,r)&&(y(t,i),t[o]||(r=void 0)),r&&e.call(s,r.value,r.key,t)};t.exports=class{constructor(t){if("number"==typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!=typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[r]=t.max||1/0;const e=t.length||m;if(this[a]="function"!=typeof e?m:e,this[o]=t.stale||!1,t.maxAge&&"number"!=typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[h]=t.dispose,this[c]=t.noDisposeOnSet||!1,this[d]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!=typeof t||t<0)throw new TypeError("max must be a non-negative number");this[r]=t||1/0,f(this)}get max(){return this[r]}set allowStale(t){this[o]=!!t}get allowStale(){return this[o]}set maxAge(t){if("number"!=typeof t)throw new TypeError("maxAge must be a non-negative number");this[l]=t,f(this)}get maxAge(){return this[l]}set lengthCalculator(t){"function"!=typeof t&&(t=m),t!==this[a]&&(this[a]=t,this[n]=0,this[u].forEach((t=>{t.length=this[a](t.value,t.key),this[n]+=t.length}))),f(this)}get lengthCalculator(){return this[a]}get length(){return this[n]}get itemCount(){return this[u].length}rforEach(t,e){e=e||this;for(let i=this[u].tail;null!==i;){const s=i.prev;T(this,t,i,e),i=s}}forEach(t,e){e=e||this;for(let i=this[u].head;null!==i;){const s=i.next;T(this,t,i,e),i=s}}keys(){return this[u].toArray().map((t=>t.key))}values(){return this[u].toArray().map((t=>t.value))}reset(){this[h]&&this[u]&&this[u].length&&this[u].forEach((t=>this[h](t.key,t.value))),this[p]=new Map,this[u]=new s,this[n]=0}dump(){return this[u].map((t=>!x(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[u]}set(t,e,i){if((i=i||this[l])&&"number"!=typeof i)throw new TypeError("maxAge must be a number");const s=i?Date.now():0,o=this[a](e,t);if(this[p].has(t)){if(o>this[r])return y(this,this[p].get(t)),!1;const a=this[p].get(t).value;return this[h]&&(this[c]||this[h](t,a.value)),a.now=s,a.maxAge=i,a.value=e,this[n]+=o-a.length,a.length=o,this.get(t),f(this),!0}const d=new g(t,e,o,s,i);return d.length>this[r]?(this[h]&&this[h](t,e),!1):(this[n]+=d.length,this[u].unshift(d),this[p].set(t,this[u].head),f(this),!0)}has(t){if(!this[p].has(t))return!1;const e=this[p].get(t).value;return!x(this,e)}get(t){return _(this,t,!0)}peek(t){return _(this,t,!1)}pop(){const t=this[u].tail;return t?(y(this,t),t.value):null}del(t){y(this,this[p].get(t))}load(t){this.reset();const e=Date.now();for(let i=t.length-1;i>=0;i--){const s=t[i],r=s.e||0;if(0===r)this.set(s.k,s.v);else{const t=r-e;t>0&&this.set(s.k,s.v,t)}}}prune(){this[p].forEach(((t,e)=>_(this,e,!1)))}}},167:t=>{const e="double-quote-string-state",i="single-quote-string-state",s="line-comment-state",r="block-comment-state",n="etc-state";t.exports=function(t){let a=n,o=0;const l=[];let h=null;for(;o+1<t.length;)a!==n||"/"!==t[o]||"/"!==t[o+1]?a!==s||"\n"!==t[o]?a!==n||"/"!==t[o]||"*"!==t[o+1]?a!==r||"*"!==t[o]||"/"!==t[o+1]?a!==n||'"'!==t[o]?a!==e||'"'!==t[o]||"\\"===t[o-1]&&"\\"!==t[o-2]?a!==n||"'"!==t[o]?(a!==i||"'"!==t[o]||"\\"===t[o-1]&&"\\"!==t[o-2]||(a=n),o+=1):(a=i,o+=1):(a=n,o+=1):(a=e,o+=1):(a=n,h.range.push(o+2),l.push(h),h=null,o+=2):(a=r,h={type:"BlockComment",range:[o]},o+=2):(a=n,h.range.push(o),l.push(h),h=null,o+=1):(a=s,h={type:"LineComment",range:[o]},o+=2);return null!==h&&"LineComment"===h.type&&("\n"===t[o]?h.range.push(t.length-1):h.range.push(t.length),l.push(h)),l.map((e=>{const i=e.range[0]+2,s="LineComment"===e.type?e.range[1]:e.range[1]-2,r=t.slice(i,s);let n=r;return"BlockComment"===e.type&&(n=n.split("\n").map((t=>t.replace(/^\s*\*/,""))).join("\n").trimRight()),{...e,raw:r,value:n}}))}},602:t=>{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},411:(t,e,i)=>{"use strict";function s(t){var e=this;if(e instanceof s||(e=new s),e.tail=null,e.head=null,e.length=0,t&&"function"==typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var i=0,r=arguments.length;i<r;i++)e.push(arguments[i]);return e}function r(t,e,i){var s=e===t.head?new o(i,null,e,t):new o(i,e,e.next,t);return null===s.next&&(t.tail=s),null===s.prev&&(t.head=s),t.length++,s}function n(t,e){t.tail=new o(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function a(t,e){t.head=new o(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function o(t,e,i,s){if(!(this instanceof o))return new o(t,e,i,s);this.list=s,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,i?(i.prev=this,this.next=i):this.next=null}t.exports=s,s.Node=o,s.create=s,s.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,i=t.prev;return e&&(e.prev=i),i&&(i.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=i),t.list.length--,t.next=null,t.prev=null,t.list=null,e},s.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},s.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},s.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)n(this,arguments[t]);return this.length},s.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)a(this,arguments[t]);return this.length},s.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},s.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},s.prototype.forEach=function(t,e){e=e||this;for(var i=this.head,s=0;null!==i;s++)t.call(e,i.value,s,this),i=i.next},s.prototype.forEachReverse=function(t,e){e=e||this;for(var i=this.tail,s=this.length-1;null!==i;s--)t.call(e,i.value,s,this),i=i.prev},s.prototype.get=function(t){for(var e=0,i=this.head;null!==i&&e<t;e++)i=i.next;if(e===t&&null!==i)return i.value},s.prototype.getReverse=function(t){for(var e=0,i=this.tail;null!==i&&e<t;e++)i=i.prev;if(e===t&&null!==i)return i.value},s.prototype.map=function(t,e){e=e||this;for(var i=new s,r=this.head;null!==r;)i.push(t.call(e,r.value,this)),r=r.next;return i},s.prototype.mapReverse=function(t,e){e=e||this;for(var i=new s,r=this.tail;null!==r;)i.push(t.call(e,r.value,this)),r=r.prev;return i},s.prototype.reduce=function(t,e){var i,s=this.head;if(arguments.length>1)i=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");s=this.head.next,i=this.head.value}for(var r=0;null!==s;r++)i=t(i,s.value,r),s=s.next;return i},s.prototype.reduceReverse=function(t,e){var i,s=this.tail;if(arguments.length>1)i=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");s=this.tail.prev,i=this.tail.value}for(var r=this.length-1;null!==s;r--)i=t(i,s.value,r),s=s.prev;return i},s.prototype.toArray=function(){for(var t=new Array(this.length),e=0,i=this.head;null!==i;e++)t[e]=i.value,i=i.next;return t},s.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,i=this.tail;null!==i;e++)t[e]=i.value,i=i.prev;return t},s.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var i=new s;if(e<t||e<0)return i;t<0&&(t=0),e>this.length&&(e=this.length);for(var r=0,n=this.head;null!==n&&r<t;r++)n=n.next;for(;null!==n&&r<e;r++,n=n.next)i.push(n.value);return i},s.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var i=new s;if(e<t||e<0)return i;t<0&&(t=0),e>this.length&&(e=this.length);for(var r=this.length,n=this.tail;null!==n&&r>e;r--)n=n.prev;for(;null!==n&&r>t;r--,n=n.prev)i.push(n.value);return i},s.prototype.splice=function(t,e,...i){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var s=0,n=this.head;null!==n&&s<t;s++)n=n.next;var a=[];for(s=0;n&&s<e;s++)a.push(n.value),n=this.removeNode(n);for(null===n&&(n=this.tail),n!==this.head&&n!==this.tail&&(n=n.prev),s=0;s<i.length;s++)n=r(this,n,i[s]);return a},s.prototype.reverse=function(){for(var t=this.head,e=this.tail,i=t;null!==i;i=i.prev){var s=i.prev;i.prev=i.next,i.next=s}return this.head=e,this.tail=t,this};try{i(602)(s)}catch(t){}},288:e=>{"use strict";e.exports=t}},i={};function s(t){var r=i[t];if(void 0!==r)return r.exports;var n=i[t]={exports:{}};return e[t](n,n.exports,s),n.exports}s.d=(t,e)=>{for(var i in e)s.o(e,i)&&!s.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";s.d(r,{default:()=>Tr});var t={};s.r(t),s.d(t,{arithmetic:()=>Ct,assignment:()=>kt,bit:()=>Dt,comparison:()=>bt,exponentiation:()=>Ut,logical:()=>Vt,shift:()=>Bt});var e={};s.r(e),s.d(e,{ArrayTypeName:()=>z,AssemblyAssignment:()=>W,AssemblyBlock:()=>at,AssemblyCall:()=>ot,AssemblyCase:()=>lt,AssemblyFor:()=>ct,AssemblyFunctionDefinition:()=>pt,AssemblyIf:()=>dt,AssemblyLocalDefinition:()=>_t,AssemblyMemberAccess:()=>xt,AssemblyStackAssignment:()=>ft,AssemblySwitch:()=>Tt,BinaryOperation:()=>$t,Block:()=>zt,BooleanLiteral:()=>qt,Break:()=>Wt,BreakStatement:()=>Yt,CatchClause:()=>Jt,Conditional:()=>ne,Continue:()=>ae,ContinueStatement:()=>oe,ContractDefinition:()=>de,CustomErrorDefinition:()=>_e,DecimalNumber:()=>xe,DoWhileStatement:()=>Ee,ElementaryTypeName:()=>Re,EmitStatement:()=>be,EnumDefinition:()=>Ae,EnumValue:()=>Ce,EventDefinition:()=>Ne,ExpressionStatement:()=>ke,FileLevelConstant:()=>De,ForStatement:()=>Ve,FunctionCall:()=>We,FunctionDefinition:()=>ci,FunctionTypeName:()=>fi,HexLiteral:()=>Ti,HexNumber:()=>Ei,Identifier:()=>vi,IfStatement:()=>Ci,ImportDirective:()=>ki,IndexAccess:()=>Mi,IndexRangeAccess:()=>Ki,InheritanceSpecifier:()=>Bi,InlineAssemblyStatement:()=>$i,LabelDefinition:()=>zi,Mapping:()=>Wi,MemberAccess:()=>Zi,ModifierDefinition:()=>ls,ModifierInvocation:()=>cs,NameValueExpression:()=>us,NameValueList:()=>ms,NewExpression:()=>_s,NumberLiteral:()=>xs,PragmaDirective:()=>fs,ReturnStatement:()=>vs,RevertStatement:()=>Rs,SourceUnit:()=>Ls,StateVariableDeclaration:()=>Ns,StringLiteral:()=>Ds,StructDefinition:()=>Ps,ThrowStatement:()=>Fs,TryStatement:()=>Ms,TupleExpression:()=>Bs,TypeDefinition:()=>$s,UnaryOperation:()=>js,UncheckedStatement:()=>zs,UserDefinedTypeName:()=>qs,UsingForDeclaration:()=>Xs,VariableDeclaration:()=>or,VariableDeclarationStatement:()=>ur,WhileStatement:()=>xr});var i=s(288),n=s(712);const a=t=>n(i.version,t);function o(t,e){const s={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},n=e.singleQuote?r:s,a=n===r?s:r;let o=!1;(t.includes(n.quote)||t.includes(a.quote))&&(o=(t.match(n.regex)||[]).length>(t.match(a.regex)||[]).length);const l=o?a.quote:n.quote;return i.util.makeString(t,l)}const l=a("^2.3.0");function h(t,e,s){return l?t.charAt(i.util.getNextNonSpaceNonCommentCharacterIndex(t,e,s)):i.util.getNextNonSpaceNonCommentCharacter(t,s(e))}const{addLeadingComment:c,addTrailingComment:u,addDanglingComment:p,hasNewline:d,hasNewlineInRange:m}=i.util;function _(t,e){if(!t.body)return void p(t,e);const i=t.body.filter((t=>"EmptyStatement"!==t.type));0===i.length?p(t,e):c(i[0],e)}function x(t,e){"BlockStatement"===t.type?_(t,e):c(t,e)}function f(t,e,i,s,r,n){return!(!i||"IfStatement"!==i.type||!s)&&(")"===h(t,r,n.locEnd)?(u(e,r),!0):e===i.trueBody&&s===i.falseBody?("ExpressionStatement"===e.type?u(e,r):p(i,r),!0):"ExpressionStatement"===s.type?(_(s,r),!0):"IfStatement"===s.type?(x(s.trueBody,r),!0):i.trueBody===s&&(c(s,r),!0))}function y(t,e,i,s,r,n){return!(!i||"WhileStatement"!==i.type||!s)&&(")"===h(t,r,n.locEnd)?(u(e,r),!0):"BlockStatement"===s.type&&(_(s,r),!0))}function g(t,e,i,s){return!(!t||"TryStatement"!==t.type&&"CatchClause"!==t.type||!i||("CatchClause"===t.type&&e?(u(e,s),0):"BlockStatement"===i.type?(_(i,s),0):"TryStatement"===i.type?(x(i.finalizer,s),0):"CatchClause"!==i.type||(x(i.body,s),0)))}function T(t,e,i,s){return!(!(t&&("ClassDeclaration"===t.type||"ClassExpression"===t.type)&&t.decorators&&t.decorators.length>0)||i&&"Decorator"===i.type||(t.decorators&&0!==t.decorators.length?u(t.decorators[t.decorators.length-1],s):c(t,s),0))}function E(t,e,i,s,r){return(e&&i&&("Property"===e.type||"MethodDefinition"===e.type)&&"Identifier"===i.type&&e.key===i&&":"!==h(t,i,r.locEnd)||!(!i||!e||"Decorator"!==i.type||"ClassMethod"!==e.type&&"ClassProperty"!==e.type&&"TSAbstractClassProperty"!==e.type&&"TSAbstractMethodDefinition"!==e.type&&"MethodDefinition"!==e.type))&&(u(i,s),!0)}function v(t,e,i,s,r,n){return(e&&"FunctionTypeParam"===e.type&&i&&"FunctionTypeAnnotation"===i.type&&s&&"FunctionTypeParam"!==s.type||!(!e||"Identifier"!==e.type&&"AssignmentPattern"!==e.type||!i||"ArrowFunctionExpression"!==i.type&&"FunctionExpression"!==i.type&&"FunctionDeclaration"!==i.type&&"ObjectMethod"!==i.type&&"ClassMethod"!==i.type||")"!==h(t,r,n.locEnd)))&&(u(e,r),!0)}function R(t,e){return!(!t||"ImportSpecifier"!==t.type||(c(t,e),0))}function b(t,e,i,s){return e&&e.body&&0===e.body.length?(s?p(e,i):c(e,i),!0):!(!t||"Program"!==t.type||0!==t.body.length||!t.directives||0!==t.directives.length||(s?p(t,i):c(t,i),0))}const{addLeadingComment:L,addTrailingComment:S,addDanglingComment:A}=i.util,{addLeadingComment:C,addTrailingComment:w,addDanglingComment:N}=i.util,I=[function({text:t,precedingNode:e,enclosingNode:i,followingNode:s,comment:r,options:n}){if(!i||"ContractDefinition"!==i.type)return!1;const a=h(t,r,n.locEnd);return"InheritanceSpecifier"===s?.type||"{"===a?"InheritanceSpecifier"===e?.type?(S(e,r),!0):(L(i,r),!0):0===i.subNodes.length&&(A(i,r),!0)},function({text:t,precedingNode:e,enclosingNode:i,comment:s,options:r}){if(!i||"ModifierInvocation"!==i.type)return!1;const n=h(t,s,r.locEnd);return"("===n?(C(i,s),!0):")"===n&&(e?(w(e,s),!0):"LineComment"===s.type?(C(i,s),!0):(N(i,s),!0))}],{hardline:k,join:D}=i.doc.builders,O=new Set(["loc","range","comments"]);function P(){}P.ignoredProperties=O;const F=P;function U(t,e){return e.range?e.range[t]:e.expression?.range?e.expression.range[t]:null}const H={locEnd:t=>U(1,t),locStart:t=>U(0,t)},M="Global",K="Common",V={printWidth:{since:"0.0.0",category:M,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},tabWidth:{type:"int",category:M,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:M,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},bracketSpacing:{since:"0.0.0",category:K,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:K,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},experimentalTernaries:{category:"JavaScript",type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},compiler:{category:"Solidity",type:"string",description:"The Solidity compiler version to help us avoid critical errors in format for the wrong version."}};var B=s(167),$=s(298),j=s(38);const G=(t,e)=>"BinaryOperation"===t.type&&e.includes(t.operator)?{type:"TupleExpression",components:[t],isArray:!1}:t,z={print:({node:t,path:e,print:i})=>[e.call(i,"baseTypeName"),"[",t.length?e.call(i,"length"):"","]"]},{join:q}=i.doc.builders,W={print:({path:t,print:e})=>[q(", ",t.map(e,"names"))," := ",t.call(e,"expression")]},{group:Y,indent:X,join:J,line:Q,softline:Z,hardline:tt}=i.doc.builders,et=(t,e,i,s=(()=>!0))=>{if(!t.comments)return"";const r=J(Q,e.map((t=>{const e=t.getValue();return e.trailing||e.leading||e.printed?null:s(e)?(e.printed=!0,i.printer.printComment(t,i)):null}),"comments").filter(Boolean));return l?r.parts:r};function it(t,e,s,r){const n=[];return t.each(((t,a)=>{const o=t.getValue(),h=o.type;var c,u;0!==n.length&&"LabelDefinition"!==h&&n.push(tt),n.push(r(t)),!function(t,e,i){return l?i===t.getParentNode()[e].length-1:t.isLast}(t,e,a)&&(c=s.originalText,u=s.locEnd(o)+1,l?i.util.isNextLineEmptyAfterIndex(c,u):i.util.isNextLineEmpty(c,u))&&n.push(tt)}),e),n}const st=(t,{firstSeparator:e=Z,lastSeparator:i=e,grouped:s=!0}={})=>{const r=[X([e,t]),i];return s?Y(r):r},rt=(t,{firstSeparator:e,separator:i=[",",Q],lastSeparator:s,grouped:r}={})=>st(J(i,t),{firstSeparator:e,lastSeparator:s,grouped:r}),{hardline:nt}=i.doc.builders,at={print:({node:t,options:e,path:i,print:s})=>["{",st([it(i,"operations",e,s),et(t,i,e)],{firstSeparator:nt,grouped:!1}),"}"]},ot={print:({node:t,path:e,print:i,options:s})=>0===t.arguments.length&&")"!==s.originalText.charAt(s.locEnd(t))?t.functionName:[t.functionName,"(",rt(e.map(i,"arguments")),")"]},lt={print:({node:t,path:e,print:i})=>[t.default?"default":["case ",e.call(i,"value")]," ",e.call(i,"block")]},{join:ht}=i.doc.builders,ct={print:({path:t,print:e})=>ht(" ",["for",t.call(e,"pre"),t.call(e,"condition"),t.call(e,"post"),t.call(e,"body")])},{line:ut}=i.doc.builders,pt={print:({node:t,path:e,print:i})=>["function ",t.name,"(",rt(e.map(i,"arguments")),")",0===t.returnArguments.length?" ":st(["->",rt(e.map(i,"returnArguments"),{firstSeparator:ut,lastSeparator:""})],{firstSeparator:ut}),e.call(i,"body")]},dt={print:({path:t,print:e})=>["if ",t.call(e,"condition")," ",t.call(e,"body")]},{line:mt}=i.doc.builders,_t={print:({node:t,path:e,print:i})=>{const s=["let",rt(e.map(i,"names"),{firstSeparator:mt})];return null!==t.expression&&(s.push(":= "),s.push(e.call(i,"expression"))),s}},xt={print:({path:t,print:e})=>[t.call(e,"expression"),".",t.call(e,"memberName")]},ft={print:({node:t,path:e,print:i})=>[e.call(i,"expression")," =: ",t.name]},{hardline:yt,join:gt}=i.doc.builders,Tt={print:({path:t,print:e})=>["switch ",t.call(e,"expression"),yt,gt(yt,t.map(e,"cases"))]},{group:Et,indent:vt,line:Rt}=i.doc.builders,bt={match:t=>["<",">","<=",">=","==","!="].includes(t),print:(t,e,i)=>{const s=(t=>e=>{let i=t.getNode();for(let s=0;;s+=1){const r=t.getParentNode(s);if("ReturnStatement"===r.type)return e;if("IfStatement"===r.type)return e;if("ForStatement"===r.type)return e;if("WhileStatement"===r.type)return e;if("BinaryOperation"!==r.type)return vt(e);if(i===r.right)return e;i=r}})(e),r=[t.operator,Rt,e.call(i,"right")],n="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return Et([e.call(i,"left")," ",s(n?Et(r):r)])}},{group:Lt,line:St,indent:At}=i.doc.builders,Ct={match:t=>["+","-","*","/","%"].includes(t),print:(t,e,i)=>{const s=(t=>e=>{const i=t.getParentNode();return"BinaryOperation"!==i.type||bt.match(i.operator)?Lt(e):e})(e),r=(t=>e=>{let i=t.getNode();for(let s=0;;s+=1){const r=t.getParentNode(s);if("ReturnStatement"===r.type)return e;if("BinaryOperation"!==r.type||bt.match(r.operator))return At(e);if(i===r.right)return e;i=r}})(e),n=[t.operator,St,e.call(i,"right")],a="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return s([e.call(i,"left")," ",r(a?Lt(n):n)])}},{group:wt,line:Nt,indent:It}=i.doc.builders,kt={match:t=>["=","|=","^=","&=","<<=",">>=","+=","-=","*=","/=","%="].includes(t),print:(t,e,i)=>[e.call(i,"left")," ",t.operator,"BinaryOperation"===t.right.type?wt(It([Nt,e.call(i,"right")])):[" ",e.call(i,"right")]]},Dt={match:t=>["&","|","^"].includes(t),print:Ct.print},{group:Ot,indent:Pt,line:Ft}=i.doc.builders,Ut={match:t=>"**"===t,print:(t,e,i)=>{const s=[" ",t.operator,Ft,e.call(i,"right")],r="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return Ot([e.call(i,"left"),Pt(r?Ot(s):s)])}},{group:Ht,line:Mt,indent:Kt}=i.doc.builders,Vt={match:t=>["&&","||"].includes(t),print:(t,e,i,s)=>{const r=(t=>e=>"BinaryOperation"===t.getParentNode().type?e:Ht(e))(e),n=((t,e)=>i=>{let s=t.getNode();for(let r=0;;r+=1){const n=t.getParentNode(r);if("ReturnStatement"===n.type)return i;if("IfStatement"===n.type)return i;if("WhileStatement"===n.type)return i;if(e.experimentalTernaries&&"Conditional"===n.type&&n.condition===s)return i;if("BinaryOperation"!==n.type)return Kt(i);if(s===n.right)return i;s=n}})(e,s),a=[t.operator,Mt,e.call(i,"right")],o="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return r([e.call(i,"left")," ",n(o?Ht(a):a)])}},Bt={match:t=>["<<",">>"].includes(t),print:Ct.print},$t={print:({node:e,path:i,print:s,options:r})=>{const n=Object.values(t).find((t=>t.match(e.operator)));if(void 0===n)throw new Error(`Assertion error: no printer found for operator ${JSON.stringify(e.operator)}`);return n.print(e,i,s,r)}},{hardline:jt,indent:Gt}=i.doc.builders,zt={print:({node:t,options:e,path:i,print:s})=>0!==t.statements.length||t.comments?["{",Gt([jt,it(i,"statements",e,s),et(t,i,e)]),jt,"}"]:"{}"},qt={print:({node:t})=>t.value?"true":"false"},Wt={print:()=>"break"},Yt={print:()=>"break;"},Xt=(t,e,i)=>t.parameters?[t.kind||"","(",rt(e.map(i,"parameters")),") "]:"",Jt={print:({node:t,path:e,print:i})=>["catch ",Xt(t,e,i),e.call(i,"body")]},{group:Qt,hardline:Zt,ifBreak:te,indent:ee,line:ie,softline:se}=i.doc.builders;let re=0;const ne={print:({node:t,path:e,print:i,options:s})=>s.experimentalTernaries?((t,e,i,s)=>{const r=e.getParentNode(),n="Conditional"===r.type,a=n&&r.trueExpression===t,o="Conditional"===t.falseExpression.type,l=e.call(i,"condition"),h=Qt(["TupleExpression"===t.condition.type?l:te(["(",st(l),")"],l)," ?"]),c=ee([a?Zt:ie,e.call(i,"trueExpression")]),u=Qt([h,c],{id:`Conditional.trueExpressionDoc-${re}`});re+=1;let p=" ";!o&&(s.tabWidth>2||s.useTabs)&&(p=s.useTabs?"\t":" ".repeat(s.tabWidth-1));const d=e.call(i,"falseExpression"),m=[n?Zt:ie,":",o?[" ",d]:te([p,ee(d)],[" ",d],{groupId:u.id})],_=Qt([u,m]);return"VariableDeclarationStatement"===r.type?ee([se,_]):_})(t,e,i,s):((t,e)=>Qt([t.call(e,"condition"),ee(["Conditional"===t.getParentNode().type?Zt:ie,"? ",t.call(e,"trueExpression"),ie,": ",t.call(e,"falseExpression")])]))(e,i)},ae={print:()=>"continue"},oe={print:()=>"continue;"},{group:le,line:he,hardline:ce}=i.doc.builders,ue=(t,e,i)=>t.baseContracts.length>0?[" is",rt(e.map(i,"baseContracts"),{firstSeparator:he})]:he,pe=(t,e,i,s)=>{const r=et(t,e,i);return t.subNodes.length>0||r?.length?st([it(e,"subNodes",i,s),r],{firstSeparator:ce,grouped:!1}):""},de={print:({node:t,options:e,path:i,print:s})=>[le(["abstract"===t.kind?"abstract contract":t.kind," ",t.name,ue(t,i,s),"{"]),pe(t,i,e,s),"}"]},me=(t,e,i)=>t.parameters?.length>0?rt(e.map(i,"parameters")):"",_e={print:({node:t,path:e,print:i})=>["error ",t.name,"(",me(t,e,i),");"]},xe={print:({node:t})=>t.value},{group:fe,indent:ye,line:ge}=i.doc.builders,Te=(t,e,i)=>"Block"===t.body.type?[" ",e.call(i,"body")," "]:fe([ye([ge,e.call(i,"body")]),ge]),Ee={print:({node:t,path:e,print:i})=>["do",Te(t,e,i),"while (",st(e.call(i,"condition")),");"]},ve=t=>t.stateMutability?.length>0?[" ",t.stateMutability]:"",Re={print:({node:t})=>[t.name,ve(t)]},be={print:({path:t,print:e})=>["emit ",t.call(e,"eventCall"),";"]},{group:Le,hardline:Se}=i.doc.builders,Ae={print:({node:t,path:e,print:i})=>Le(["enum ",t.name," {",rt(e.map(i,"members"),{firstSeparator:Se}),"}"])},Ce={print:({node:t})=>t.name},we=(t,e,i)=>t.parameters?.length>0?rt(e.map(i,"parameters")):"",Ne={print:({node:t,path:e,print:i})=>["event ",t.name,"(",we(t,e,i),")",t.isAnonymous?" anonymous":"",";"]},{hardline:Ie}=i.doc.builders,ke={print:({node:t,options:e,path:i,print:s})=>{const r=[];if("IfStatement"===i.getParentNode().type&&t.comments?.length){const s=et(t,i,e);s?.length&&(r.push(s),r.push(Ie))}return r.push(i.call(s,"expression")),r.push(t.omitSemicolon?"":";"),r}},De={print:({node:t,path:e,print:i})=>[e.call(i,"typeName")," constant ",t.name," = ",e.call(i,"initialValue"),";"]},{group:Oe,indent:Pe,line:Fe}=i.doc.builders,Ue=(t,e,i)=>t.initExpression?e.call(i,"initExpression"):"",He=(t,e,i)=>t.conditionExpression?e.call(i,"conditionExpression"):"",Me=(t,e,i)=>t.loopExpression.expression?e.call(i,"loopExpression"):"",Ke=(t,e,i)=>"Block"===t.body.type?[" ",e.call(i,"body")]:Oe(Pe([Fe,e.call(i,"body")])),Ve={print:({node:t,path:e,print:i})=>["for (",rt([Ue(t,e,i),He(t,e,i),Me(t,e,i)],{separator:t.initExpression||t.conditionExpression||t.loopExpression.expression?[";",Fe]:";"}),")",Ke(t,e,i)]},{group:Be,indentIfBreak:$e,label:je,line:Ge,softline:ze}=i.doc.builders;let qe=0;const We={print:({node:t,path:e,print:i,options:s})=>{let r=e.call(i,"expression"),n=")";return t.arguments?.length>0&&(n=t.identifiers?.length>0?((t,e,i)=>{const s=t.map(e,"identifiers");return["{",rt(t.map(e,"arguments").map(((t,e)=>[s[e],": ",t])),{firstSeparator:i.bracketSpacing?Ge:ze,lastSeparator:[i.bracketSpacing?Ge:ze,"})"]})]})(e,i,s):((t,e)=>rt(t.map(e,"arguments"),{lastSeparator:[ze,")"]}))(e,i)),"MemberAccessChain"===r.label?(r=Be(r.contents,{id:`FunctionCall.expression-${qe}`}),qe+=1,n=$e(n,{groupId:r.id}),je("MemberAccessChain",[r,"(",n])):[r,"(",n]}},{dedent:Ye,group:Xe,indent:Je,join:Qe,line:Ze}=i.doc.builders,ti=(t,e)=>t.isConstructor&&!t.name?"constructor":t.name?`function ${t.name}`:t.isReceiveEther?"receive":{fallback:"fallback",function:"function"}[e.originalText.slice(e.locStart(t),e.locStart(t)+8)],ei=(t,e,i,s,r)=>{if(e[t]?.length>0)return rt(i.map(s,t),{grouped:!1});if(e.comments?.length>0){const t=et(e,i,r,(t=>")"===h(r.originalText,t,r.locEnd)));return t.length>0?st(t):""}return""},ii=t=>t.visibility&&"default"!==t.visibility?[Ze,t.visibility]:"",si=t=>t.isVirtual?[Ze,"virtual"]:"",ri=(t,e,i)=>t.override?0===t.override.length?[Ze,"override"]:[Ze,"override(",rt(e.map(i,"override")),")"]:"",ni=t=>t.stateMutability?[Ze,t.stateMutability]:"",ai=(t,e,i)=>t.modifiers.length>0?[Ze,Qe(Ze,e.map(i,"modifiers"))]:"",oi=(t,e,i,s)=>t.returnParameters?[Ze,"returns (",Xe(ei("returnParameters",t,e,i,s)),")"]:"",li=t=>t.body?Ye(Ze):";",hi=(t,e,i)=>t.body?e.call(i,"body"):"",ci={print:({node:t,path:e,print:i,options:s})=>[Xe([ti(t,s),"(",ei("parameters",t,e,i,s),")",Je(Xe([et(t,e,s),ii(t),ni(t),si(t),ri(t,e,i),ai(t,e,i),oi(t,e,i,s),li(t)]))]),hi(t,e,i)]},{group:ui,indent:pi,line:di}=i.doc.builders,mi=(t,e,i)=>t.returnTypes.length>0?[di,"returns (",rt(e.map(i,"returnTypes")),")"]:"",_i=t=>t.visibility&&"default"!==t.visibility?[di,t.visibility]:"",xi=t=>t.stateMutability&&"default"!==t.stateMutability?[di,t.stateMutability]:"",fi={print:({node:t,path:e,print:i})=>["function(",rt(e.map(i,"parameterTypes")),")",pi(ui([_i(t),xi(t),mi(t,e,i)]))]},{join:yi,line:gi}=i.doc.builders,Ti={print:({node:t,options:e})=>{const i=t.parts.map((t=>`hex${o(t,e)}`));return yi(gi,i)}},Ei={print:({node:t})=>t.value},vi={print:({node:t})=>t.name},{group:Ri,hardline:bi,indent:Li,line:Si}=i.doc.builders,Ai=(t,e,i)=>"Block"===t.falseBody.type||"IfStatement"===t.falseBody.type?[" ",e.call(i,"falseBody")]:Ri(Li([Si,e.call(i,"falseBody")])),Ci={print:({node:t,options:e,path:i,print:s})=>{const r=(t.comments||[]).filter((t=>!t.leading&&!t.trailing)),n=[];return n.push("if (",st(i.call(s,"condition")),")"),n.push(((t,e,i)=>{if("Block"===t.trueBody.type)return[" ",e.call(i,"trueBody")];const s="IfStatement"===t.trueBody.type;return Ri(Li([s?bi:Si,e.call(i,"trueBody")]))})(t,i,s)),r.length&&t.falseBody&&(n.push(bi),n.push(et(t,i,e))),n.push(((t,e,i,s)=>t.falseBody?["Block"===t.trueBody.type&&0===s.length?" ":bi,"else",Ai(t,e,i)]:"")(t,i,s,r)),n}},{group:wi,line:Ni,softline:Ii}=i.doc.builders,ki={print:({node:t,options:e})=>{const i=o(t.path,e);let s;if(t.unitAlias)s=[i," as ",t.unitAlias];else if(t.symbolAliases){const r=j(e.compiler),a=t.symbolAliases.map((([t,e])=>e?`${t} as ${e}`:t));let o,l;r&&n(r,">=0.7.4")?(o=e.bracketSpacing?Ni:Ii,l=[",",Ni]):(o=e.bracketSpacing?" ":"",l=", "),s=["{",rt(a,{firstSeparator:o,separator:l}),"} from ",i]}else s=i;return wi(["import ",s,";"])}},{group:Di,indent:Oi,indentIfBreak:Pi,label:Fi,softline:Ui}=i.doc.builders;let Hi=0;const Mi={print:({path:t,print:e})=>{let i=t.call(e,"base"),s=Di([Oi([Ui,t.call(e,"index")]),Ui,"]"]);return"MemberAccessChain"===i.label?(i=Di(i.contents,{id:`IndexAccess.base-${Hi}`}),Hi+=1,s=Pi(s,{groupId:i.id}),Fi("MemberAccessChain",[i,"[",s])):[i,"[",s]}},Ki={print:({node:t,path:e,print:i})=>[e.call(i,"base"),"[",t.indexStart?e.call(i,"indexStart"):"",":",t.indexEnd?e.call(i,"indexEnd"):"","]"]},Vi=(t,e,i)=>t.arguments?.length?["(",rt(e.map(i,"arguments")),")"]:"",Bi={print:({node:t,path:e,print:i})=>[e.call(i,"baseName"),Vi(t,e,i)]},$i={print:({node:t,path:e,print:i,options:s})=>["assembly ",t.language?`${o(t.language,s)} `:"",t.flags?.length>0?["(",rt(t.flags.map((t=>o(t,s)))),") "]:"",e.call(i,"body")]},{dedent:ji,line:Gi}=i.doc.builders,zi={print:({node:t})=>[ji(Gi),t.name,":"]},qi=(t,e,i,s)=>e[`${t}Name`]?[i.call(s,`${t}Type`)," ",i.call(s,`${t}Name`)]:i.call(s,`${t}Type`),Wi={print:({node:t,path:e,print:i})=>["mapping(",qi("key",t,e,i)," => ",qi("value",t,e,i),")"]},{group:Yi,indent:Xi,label:Ji,softline:Qi}=i.doc.builders,Zi={print:({node:t,path:e,print:i})=>{let s=e.call(i,"expression");Array.isArray(s)&&(s=s.flat());const r=[s,Ji("separator",[Qi,"."]),t.memberName].flat();return((t,e)=>{let i=0,s=t,r=e.getParentNode(i);for(;r&&["FunctionCall","IndexAccess","NameValueExpression","MemberAccess"].includes(r.type);){switch(r.type){case"MemberAccess":return!1;case"IndexAccess":if(s!==r.base)return!0;break;case"FunctionCall":if(s!==r.expression)return!0}i+=1,s=r,r=e.getParentNode(i)}return!0})(t,e)?(t=>{const e=t.findIndex((t=>"separator"===t.label)),i=t.slice(0,e),s=Yi(Xi(t.slice(e)));return Ji("MemberAccessChain",Yi([i,s]))})(r):r}},{group:ts,hardline:es,indent:is,line:ss}=i.doc.builders,rs=(t,e,i)=>t.parameters?.length>0?["(",rt(e.map(i,"parameters"),{separator:[",",t.parameters.length>2?es:ss]}),")"]:"()",ns=t=>t.isVirtual?[ss,"virtual"]:"",as=(t,e,i)=>t.override?0===t.override.length?[ss,"override"]:[ss,"override(",rt(e.map(i,"override")),")"]:"",os=(t,e,i)=>t.body?t.isVirtual?ts([" ",e.call(i,"body")]):[" ",e.call(i,"body")]:";",ls={print:({node:t,path:e,print:i})=>["modifier ",t.name,rs(t,e,i),ts(is([ns(t),as(t,e,i)])),os(t,e,i)]},hs=(t,e,i,s)=>t.arguments?t.arguments.length>0?["(",rt(e.map(i,"arguments")),")"]:"()":t.comments?.some((t=>!t.leading&&!t.trailing&&!t.printed))?["(",et(t,e,s),")"]:"",cs={print:({node:t,path:e,print:i,options:s})=>[t.name,hs(t,e,i,s)]},us={print:({path:t,print:e})=>[t.call(e,"expression"),"{",t.call(e,"arguments"),"}"]},{line:ps,softline:ds}=i.doc.builders,ms={print:({node:t,path:e,print:i,options:s})=>rt(e.map(i,"arguments").map(((e,i)=>[t.names[i],": ",e])),{firstSeparator:s.bracketSpacing?ps:ds})},_s={print:({path:t,print:e})=>["new ",t.call(e,"typeName")]},xs={print:({node:t})=>t.subdenomination?[t.number," ",t.subdenomination]:t.number},fs={print:({node:t})=>["pragma ",t.name," ",t.value,";"]},{group:ys,indent:gs,line:Ts}=i.doc.builders,Es=(t,e,i,s)=>t.expression?"TupleExpression"===t.expression.type||s.experimentalTernaries&&"Conditional"===t.expression.type?[" ",e.call(i,"expression")]:ys(gs([Ts,e.call(i,"expression")])):"",vs={print:({node:t,path:e,print:i,options:s})=>["return",Es(t,e,i,s),";"]},Rs={print:({path:t,print:e})=>["revert ",t.call(e,"revertCall"),";"]},{line:bs}=i.doc.builders,Ls={print:({options:t,path:e,print:i})=>[it(e,"children",t,i),t.parentParser?"":bs]},{group:Ss,indent:As,line:Cs}=i.doc.builders,ws=(t,e,i)=>t.initialValue?"TupleExpression"===t.initialValue.type?[" = ",e.call(i,"initialValue")]:Ss([" =",As([Cs,e.call(i,"initialValue")])]):"",Ns={print:({node:t,path:e,print:i})=>[...e.map(i,"variables"),ws(t,e,i),";"]},{join:Is,hardline:ks}=i.doc.builders,Ds={print:({node:t,options:e})=>{const i=t.parts.map(((i,s)=>(t.isUnicode[s]?"unicode":"")+o(i,e)));return Is(ks,i)}},{hardline:Os}=i.doc.builders,Ps={print:({node:t,path:e,print:i})=>["struct ",t.name," {",t.members.length>0?rt(e.map(i,"members"),{firstSeparator:Os,separator:[";",Os],lastSeparator:[";",Os]}):"","}"]},Fs={print:()=>"throw;"},{join:Us,line:Hs}=i.doc.builders,Ms={print:({node:t,path:e,print:i})=>{let s=["try",st(e.call(i,"expression"),{firstSeparator:Hs})];const r=((t,e,i)=>t.returnParameters?["returns (",rt(e.map(i,"returnParameters")),")"]:"")(t,e,i);return r&&(s=s.concat([r," "])),s=s.concat([e.call(i,"body")," ",Us(" ",e.map(i,"catchClauses"))]),s}},{group:Ks}=i.doc.builders,Vs=(t,e,i)=>1===t.components?.length&&"BinaryOperation"===t.components[0].type?e.map(i,"components"):rt(e.map(i,"components")),Bs={print:({node:t,path:e,print:i})=>Ks([t.isArray?"[":"(",Vs(t,e,i),t.isArray?"]":")"])},$s={print:({node:t})=>["type ",t.name," is ",t.definition.name,";"]},js={print:({node:t,path:e,print:i})=>t.isPrefix?[t.operator,"delete"===t.operator?" ":"",e.call(i,"subExpression")]:[e.call(i,"subExpression"),t.operator]},{group:Gs}=i.doc.builders,zs={print:({path:t,print:e})=>Gs(["unchecked ",t.call(e,"block")])},qs={print:({node:t})=>t.namePath},{line:Ws,softline:Ys}=i.doc.builders,Xs={print:({node:t,path:e,print:i,options:s})=>["using ",t.functions?.length?["{",rt(t.functions.map(((e,i)=>t.operators[i]?[e," as ",t.operators[i]]:e)),{firstSeparator:s.bracketSpacing?Ws:Ys}),"}"]:t.libraryName," for ",t.typeName?e.call(i,"typeName"):"*",t.isGlobal?" global;":";"]},{group:Js,indent:Qs,line:Zs}=i.doc.builders,tr=t=>t.isIndexed?" indexed":"",er=t=>t.visibility&&"default"!==t.visibility?[Zs,t.visibility]:"",ir=t=>t.isDeclaredConst?" constant":"",sr=t=>t.storageLocation&&"default"!==t.visibility?[Zs,t.storageLocation]:"",rr=t=>t.isImmutable?" immutable":"",nr=(t,e,i)=>t.override?0===t.override.length?[Zs,"override"]:[Zs,"override(",rt(e.map(i,"override")),")"]:"",ar=t=>t.name?[" ",t.name]:"",or={print:({node:t,path:e,print:i})=>t.typeName?Js([e.call(i,"typeName"),Qs([tr(t),er(t),ir(t),sr(t),rr(t),nr(t,e,i),ar(t)])]):t.name},{group:lr,indentIfBreak:hr}=i.doc.builders;let cr=0;const ur={print:({node:t,path:e,print:i})=>{const s=0===t.variables.filter((t=>t?.typeName)).length,r=lr([s?"var ":"",(n=e.map(i,"variables"),a=t.variables.length>1||s,a?["(",rt(n),")"]:n)],{id:`VariableDeclarationStatement.variables-${cr}`});var n,a;cr+=1;const o=((t,e,i)=>t.initialValue?[" = ",e.call(i,"initialValue")]:"")(t,e,i);return lr([r,hr(o,{groupId:r.id}),t.omitSemicolon?"":";"])}},{group:pr,indent:dr,line:mr}=i.doc.builders,_r=(t,e,i)=>"Block"===t.body.type?[" ",e.call(i,"body")]:pr(dr([mr,e.call(i,"body")])),xr={print:({node:t,path:e,print:i})=>["while (",st(e.call(i,"condition")),")",_r(t,e,i)]},fr=function t(e){const i=e.getValue();null!==i&&"object"==typeof i&&Object.keys(i).forEach((s=>{switch(s){case"loc":case"range":break;case"comments":e.each((t=>{t.getValue().printed=!0}),"comments");break;default:if("object"==typeof i[s]){if(Array.isArray(i[s]))return void e.each(t,s);e.call(t,s)}}}))};let yr=!1;const gr={"solidity-ast":{canAttachComment:t=>t.type&&"BlockComment"!==t.type&&"LineComment"!==t.type,handleComments:{ownLine:function(t,e,i,s,r){const{precedingNode:n,enclosingNode:a,followingNode:o}=t,l={text:e,precedingNode:n,enclosingNode:a,followingNode:o,comment:t,options:i};return!(!I.some((t=>t(l)))&&!function(t,e,i,s,r){const{precedingNode:n,enclosingNode:a,followingNode:o}=t;return!!(v(e,n,a,o,t,i)||function(t,e,i){return!(!t||"MemberExpression"!==t.type||!e||"Identifier"!==e.type||(c(t,i),0))}(a,o,t)||f(e,n,a,o,t,i)||y(e,n,a,o,t,i)||g(a,n,o,t)||T(a,0,o,t)||R(a,t)||function(t,e,i){return!(!t||"ForInStatement"!==t.type&&"ForOfStatement"!==t.type||(c(t,i),0))}(a,0,t)||function(t,e,i,s){return!(!e||"UnionTypeAnnotation"!==e.type&&"TSUnionType"!==e.type||(u(t,s),0))}(n,a,0,t)||b(a,s,t,r)||function(t,e,i,s,r){return!!(i&&"ImportSpecifier"===i.type&&e&&"ImportDeclaration"===e.type&&d(t,r.locEnd(s)))&&(u(i,s),!0)}(e,a,n,t,i)||function(t,e){return!(!t||"AssignmentPattern"!==t.type||(c(t,e),0))}(a,t)||E(e,a,n,t,i))}(t,e,i,s,r))},endOfLine:function(t,e,i,s,r){const{precedingNode:n,enclosingNode:a,followingNode:o}=t,l={text:e,precedingNode:n,enclosingNode:a,followingNode:o,comment:t,options:i};return!(!I.some((t=>t(l)))&&!function(t,e,i,s,r){const{precedingNode:n,enclosingNode:a,followingNode:o}=t;return!!(v(e,n,a,o,t,i)||function(t,e,i,s,r,n){const a=e&&!m(r,n.locEnd(e),n.locStart(s));return!(e&&a||!t||"ConditionalExpression"!==t.type||!i||(c(i,s),0))}(a,n,o,t,e,i)||R(a,t)||f(e,n,a,o,t,i)||y(e,n,a,o,t,i)||g(a,n,o,t)||T(a,0,o,t)||function(t,e){return!(!t||"LabeledStatement"!==t.type||(c(t,e),0))}(a,t)||function(t,e,i){return!!(e&&"CallExpression"===e.type&&t&&e.callee===t&&e.arguments.length>0)&&(c(e.arguments[0],i),!0)}(n,a,t)||function(t,e){return!(!t||"Property"!==t.type&&"ObjectProperty"!==t.type||(c(t,e),0))}(a,t)||b(a,s,t,r)||function(t,e,i){return!(!t||"TypeAlias"!==t.type||(c(t,i),0))}(a,0,t)||function(t,e,i){return!(!t||"VariableDeclarator"!==t.type&&"AssignmentExpression"!==t.type||!e||"ObjectExpression"!==e.type&&"ArrayExpression"!==e.type&&"TemplateLiteral"!==e.type&&"TaggedTemplateExpression"!==e.type||(c(e,i),0))}(a,o,t))}(t,e,i,s,r))},remaining:function(t,e,i,s,r){const{precedingNode:n,enclosingNode:a,followingNode:o}=t,l={text:e,precedingNode:n,enclosingNode:a,followingNode:o,comment:t,options:i};return!(!I.some((t=>t(l)))&&!function(t,e,i,s,r){const{precedingNode:n,enclosingNode:a,followingNode:o}=t;return!!(f(e,n,a,o,t,i)||y(e,n,a,o,t,i)||function(t,e,i){return!(!t||"ObjectProperty"!==t.type&&"Property"!==t.type||!t.shorthand||t.key!==e||"AssignmentPattern"!==t.value.type||(u(t.value.left,i),0))}(a,n,t)||function(t,e,i,s){return!(")"!==h(t,i,s.locEnd)||(!e||("FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&("ArrowFunctionExpression"!==e.type||"CallExpression"===e.body.type&&0!==e.body.arguments.length)&&"ClassMethod"!==e.type&&"ObjectMethod"!==e.type||0!==e.params.length)&&("CallExpression"!==e.type&&"NewExpression"!==e.type||0!==e.arguments.length)?!e||"MethodDefinition"!==e.type||0!==e.value.params.length||(p(e.value,i),0):(p(e,i),0)))}(e,a,t,i)||E(e,a,n,t,i)||b(a,s,t,r)||function(t,e,i,s){if(!e||"ArrowFunctionExpression"!==e.type)return!1;const r=getNextNonSpaceNonCommentCharacterIndex(t,i,s);return"=>"===t.substr(r,2)&&(p(e,i),!0)}(e,a,t,i)||function(t,e,i,s,r){return!("("!==h(t,s,r.locEnd)||!i||!e||"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&"ClassMethod"!==e.type&&"MethodDefinition"!==e.type&&"ObjectMethod"!==e.type||(u(i,s),0))}(e,a,n,t,i)||function(t,e,i,s,r){return!(!e||"TSMappedType"!==e.type||(s&&"TSTypeParameter"===s.type&&s.name?(c(s.name,r),0):!i||"TSTypeParameter"!==i.type||!i.constraint||(u(i.constraint,r),0)))}(0,a,n,o,t)||function(t,e){return!(!t||"ContinueStatement"!==t.type&&"BreakStatement"!==t.type||t.label||(u(t,e),0))}(a,t))}(t,e,i,s,r))}},isBlockComment:function(t){return"BlockComment"===t.type},massageAstNode:F,print:function(t,i,s){!function(){if(!yr){if(!a(">=2.3.0"))throw new Error('The version of prettier in your node-modules does not satisfy the required ">=2.3.0" constraint. Please update the version of Prettier.');yr=!0}}();const r=t.getValue();if(null===r)return"";if(!(r.type in e))throw new Error(`Unknown type: ${JSON.stringify(r.type)}`);return function(t){return t?.comments?.length>0&&t.comments.some((t=>"prettier-ignore"===t.value.trim()))}(r)?(fr(t),i.originalText.slice(i.locStart(r),i.locEnd(r)+1)):e[r.type].print({node:r,options:i,path:t,print:s})},printComment:function(t,e){const s=t.getValue();switch(s.type){case"BlockComment":if(function(t){const e=`*${t.raw}*`.split("\n");return e.length>1&&e.every((t=>"*"===t.trim()[0]))}(s)){const t=function(t){const e=t.raw.split("\n");return["/*",D(k,e.map(((t,i)=>0===i?t.trimEnd():` ${i<e.length-1?t.trim():t.trimStart()}`))),"*/"]}(s);return s.trailing&&!i.util.hasNewline(e.originalText,e.locStart(s),{backwards:!0})?[k,t]:t}return`/*${s.raw}*/`;case"LineComment":return`//${s.raw.trimEnd()}`;default:throw new Error(`Not a comment: ${JSON.stringify(s)}`)}}}},Tr={languages:[{linguistLanguageId:237469032,name:"Solidity",type:"programming",color:"#AA6746",aceMode:"text",tmScope:"source.solidity",extensions:[".sol"],parsers:["solidity-parse"],vscodeLanguageIds:["solidity"]}],parsers:{"solidity-parse":{astFormat:"solidity-ast",parse:function(t,e,i=e){const s=j(i.compiler),r=$.parse(t,{loc:!0,range:!0});return r.comments=B(t),$.visit(r,{PragmaDirective(t){"solidity"===t.name&&s&&(n(s,t.value)||console.warn(`[prettier-solidity] The compiler option is set to '${i.compiler}', which does not satisfy 'pragma solidity ${t.value}'.`))},ModifierDefinition(t){t.parameters||(t.parameters=[])},FunctionDefinition(t){t.isConstructor||t.modifiers.forEach((t=>{0===t.arguments?.length&&(t.arguments=null)}))},ForStatement(t){t.initExpression&&(t.initExpression.omitSemicolon=!0),t.loopExpression.omitSemicolon=!0},HexLiteral(t){const e=t.value.slice(4,-1);t.value=i.singleQuote?`hex'${e}'`:`hex"${e}"`},Conditional(t){if(i.experimentalTernaries)for(;"TupleExpression"===t.condition.type&&!t.condition.isArray&&1===t.condition.components.length&&"Conditional"!==t.condition.components[0].type;)[t.condition]=t.condition.components},BinaryOperation(t){switch(t.operator){case"+":case"-":t.left=G(t.left,["%"]),t.right=G(t.right,["%"]);break;case"*":t.left=G(t.left,["/","%"]);break;case"/":t.left=G(t.left,["*","%"]);break;case"%":t.left=G(t.left,["*","/","%"]);break;case"**":if(!s)break;if(n(s,">=0.8.0")){t.right=G(t.right,["**"]);break}if("BinaryOperation"===t.right.type&&"**"===t.right.operator){const e={type:"BinaryOperation",operator:"**",left:t.left,right:t.right.left};t.left={type:"TupleExpression",components:[e],isArray:!1},t.right=t.right.right}break;case"<<":case">>":t.left=G(t.left,["+","-","*","/","**","<<",">>"]),t.right=G(t.right,["+","-","*","/","**"]);break;case"&":t.left=G(t.left,["+","-","*","/","**","<<",">>"]),t.right=G(t.right,["+","-","*","/","**","<<",">>"]);break;case"|":t.left=G(t.left,["+","-","*","/","**","<<",">>","&","^"]),t.right=G(t.right,["+","-","*","/","**","<<",">>","&","^"]);break;case"^":t.left=G(t.left,["+","-","*","/","**","<<",">>","&"]),t.right=G(t.right,["+","-","*","/","**","<<",">>","&"]);break;case"||":t.left=G(t.left,["&&"]),t.right=G(t.right,["&&"])}}}),r},...H}},printers:gr,options:V,defaultOptions:{bracketSpacing:!1,tabWidth:4}}})(),r.default})()));
|
|
3
2
|
//# sourceMappingURL=standalone.cjs.map
|