prettier-plugin-solidity 1.1.2 → 1.1.4-dev

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.
Files changed (105) hide show
  1. package/README.md +48 -9
  2. package/dist/standalone.cjs +3 -0
  3. package/dist/standalone.cjs.map +1 -0
  4. package/package.json +42 -33
  5. package/src/binary-operator-printers/arithmetic.js +12 -14
  6. package/src/binary-operator-printers/assignment.js +4 -6
  7. package/src/binary-operator-printers/bit.js +2 -2
  8. package/src/binary-operator-printers/comparison.js +11 -13
  9. package/src/binary-operator-printers/exponentiation.js +4 -6
  10. package/src/binary-operator-printers/index.js +7 -13
  11. package/src/binary-operator-printers/logical.js +12 -14
  12. package/src/binary-operator-printers/shift.js +2 -2
  13. package/src/clean.js +1 -1
  14. package/src/comments/handler.js +7 -15
  15. package/src/comments/handlers/handleContractDefinitionComments.js +9 -11
  16. package/src/comments/handlers/handleModifierInvocationComments.js +9 -11
  17. package/src/comments/handlers/index.js +5 -3
  18. package/src/comments/ignore.js +1 -1
  19. package/src/comments/index.js +2 -4
  20. package/src/comments/printer.js +5 -10
  21. package/src/common/printer-helpers.js +15 -28
  22. package/src/common/util.js +30 -20
  23. package/src/index.js +14 -12
  24. package/src/loc.js +1 -1
  25. package/src/nodes/ArrayTypeName.js +1 -3
  26. package/src/nodes/AssemblyAssignment.js +4 -8
  27. package/src/nodes/AssemblyBlock.js +6 -11
  28. package/src/nodes/AssemblyCall.js +2 -4
  29. package/src/nodes/AssemblyCase.js +1 -3
  30. package/src/nodes/AssemblyFor.js +4 -8
  31. package/src/nodes/AssemblyFunctionDefinition.js +6 -11
  32. package/src/nodes/AssemblyIf.js +1 -3
  33. package/src/nodes/AssemblyLocalDefinition.js +4 -9
  34. package/src/nodes/AssemblyMemberAccess.js +1 -3
  35. package/src/nodes/AssemblyStackAssignment.js +1 -3
  36. package/src/nodes/AssemblySwitch.js +4 -8
  37. package/src/nodes/BinaryOperation.js +2 -5
  38. package/src/nodes/Block.js +6 -11
  39. package/src/nodes/BooleanLiteral.js +1 -3
  40. package/src/nodes/Break.js +1 -3
  41. package/src/nodes/BreakStatement.js +1 -3
  42. package/src/nodes/CatchClause.js +2 -4
  43. package/src/nodes/Conditional.js +4 -8
  44. package/src/nodes/Continue.js +1 -3
  45. package/src/nodes/ContinueStatement.js +1 -3
  46. package/src/nodes/ContractDefinition.js +11 -17
  47. package/src/nodes/CustomErrorDefinition.js +2 -4
  48. package/src/nodes/DecimalNumber.js +1 -3
  49. package/src/nodes/DoWhileStatement.js +4 -9
  50. package/src/nodes/ElementaryTypeName.js +1 -3
  51. package/src/nodes/EmitStatement.js +1 -3
  52. package/src/nodes/EnumDefinition.js +4 -9
  53. package/src/nodes/EnumValue.js +1 -3
  54. package/src/nodes/EventDefinition.js +2 -4
  55. package/src/nodes/ExpressionStatement.js +4 -9
  56. package/src/nodes/FileLevelConstant.js +1 -3
  57. package/src/nodes/ForStatement.js +4 -9
  58. package/src/nodes/FunctionCall.js +4 -9
  59. package/src/nodes/FunctionDefinition.js +11 -18
  60. package/src/nodes/FunctionTypeName.js +4 -9
  61. package/src/nodes/HexLiteral.js +4 -9
  62. package/src/nodes/HexNumber.js +1 -3
  63. package/src/nodes/Identifier.js +1 -3
  64. package/src/nodes/IfStatement.js +6 -11
  65. package/src/nodes/ImportDirective.js +12 -17
  66. package/src/nodes/IndexAccess.js +4 -8
  67. package/src/nodes/IndexRangeAccess.js +1 -3
  68. package/src/nodes/InheritanceSpecifier.js +2 -4
  69. package/src/nodes/InlineAssemblyStatement.js +3 -4
  70. package/src/nodes/LabelDefinition.js +4 -8
  71. package/src/nodes/Mapping.js +17 -18
  72. package/src/nodes/MemberAccess.js +6 -10
  73. package/src/nodes/ModifierDefinition.js +4 -9
  74. package/src/nodes/ModifierInvocation.js +3 -5
  75. package/src/nodes/NameValueExpression.js +1 -3
  76. package/src/nodes/NameValueList.js +4 -9
  77. package/src/nodes/NewExpression.js +1 -3
  78. package/src/nodes/NumberLiteral.js +1 -3
  79. package/src/nodes/PragmaDirective.js +1 -3
  80. package/src/nodes/ReturnStatement.js +4 -8
  81. package/src/nodes/RevertStatement.js +1 -3
  82. package/src/nodes/SourceUnit.js +4 -9
  83. package/src/nodes/StateVariableDeclaration.js +4 -8
  84. package/src/nodes/StringLiteral.js +5 -9
  85. package/src/nodes/StructDefinition.js +11 -14
  86. package/src/nodes/ThrowStatement.js +1 -3
  87. package/src/nodes/TryStatement.js +6 -11
  88. package/src/nodes/TupleExpression.js +4 -9
  89. package/src/nodes/TypeDefinition.js +1 -3
  90. package/src/nodes/UnaryOperation.js +1 -3
  91. package/src/nodes/UncheckedStatement.js +4 -8
  92. package/src/nodes/UserDefinedTypeName.js +1 -3
  93. package/src/nodes/UsingForDeclaration.js +14 -12
  94. package/src/nodes/VariableDeclaration.js +4 -9
  95. package/src/nodes/VariableDeclarationStatement.js +6 -11
  96. package/src/nodes/WhileStatement.js +4 -9
  97. package/src/nodes/index.js +72 -78
  98. package/src/options.js +1 -1
  99. package/src/parser.js +5 -12
  100. package/src/prettier-comments/language-js/comments.js +13 -23
  101. package/src/printer.js +6 -6
  102. package/dist/standalone.js +0 -3
  103. package/dist/standalone.js.map +0 -1
  104. package/src/prettier-comments/index.js +0 -3
  105. /package/dist/{standalone.js.LICENSE.txt → standalone.cjs.LICENSE.txt} +0 -0
@@ -1,3 +0,0 @@
1
- /*! For license information please see standalone.js.LICENSE.txt */
2
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("prettier")):"function"==typeof define&&define.amd?define(["prettier"],e):"object"==typeof exports?exports.prettierPluginSolidity=e(require("prettier")):(t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.solidity=e(t.prettier))}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{},(function(t){return e={9298:function(t){var e=(()=>{var t,e,r,n,i=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 n of l(e))a.call(t,n)||"default"===n||s(t,n,{get:()=>e[n],enumerable:!(r=c(e,n))||r.enumerable});return t})((e=s(null!=t?i(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&&(n=r(r=0)),n)),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 n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}})),y=u(((t,e)=>{p();var r="undefined"!=typeof Symbol&&Symbol,n=_();e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&n()}})),g=u(((t,e)=>{p();var r="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,i=Object.prototype.toString,s="[object Function]";e.exports=function(t){var e=this;if("function"!=typeof e||i.call(e)!==s)throw new TypeError(r+e);for(var o,a=n.call(arguments,1),l=function(){if(this instanceof o){var r=e.apply(this,a.concat(n.call(arguments)));return Object(r)===r?r:this}return e.apply(t,a.concat(n.call(arguments)))},c=Math.max(0,e.length-a.length),u=[],h=0;h<c;h++)u.push("$"+h);if(o=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(l),e.prototype){var p=function(){};p.prototype=e.prototype,o.prototype=new p,p.prototype=null}return o}})),m=u(((t,e)=>{p();var r=g();e.exports=Function.prototype.bind||r})),x=u(((t,e)=>{p();var r=m();e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)})),T=u(((t,e)=>{var r;p();var n=SyntaxError,i=Function,s=TypeError,o=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},a=Object.getOwnPropertyDescriptor;if(a)try{a({},"")}catch(t){a=null}var l=function(){throw new s},c=a?function(){try{return l}catch(t){try{return a(arguments,"callee").get}catch(t){return l}}}():l,u=y()(),h=Object.getPrototypeOf||function(t){return t.__proto__},d={},f="undefined"==typeof Uint8Array?r:h(Uint8Array),_={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":u?h([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%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%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?h(h([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?h((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&&u?h((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?h(""[Symbol.iterator]()):r,"%Symbol%":u?Symbol:r,"%SyntaxError%":n,"%ThrowTypeError%":c,"%TypedArray%":f,"%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},g=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 n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&(r=h(i.prototype))}return _[e]=r,r},T={"%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"]},v=m(),S=x(),b=v.call(Function.call,Array.prototype.concat),E=v.call(Function.apply,Array.prototype.splice),N=v.call(Function.call,String.prototype.replace),A=v.call(Function.call,String.prototype.slice),R=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,O=function(t){var e=A(t,0,1),r=A(t,-1);if("%"===e&&"%"!==r)throw new n("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new n("invalid intrinsic syntax, expected opening `%`");var i=[];return N(t,R,(function(t,e,r,n){i[i.length]=r?N(n,C,"$1"):e||t})),i},L=function(t,e){var r,i=t;if(S(T,i)&&(i="%"+(r=T[i])[0]+"%"),S(_,i)){var o=_[i];if(o===d&&(o=g(i)),void 0===o&&!e)throw new s("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:i,value:o}}throw new n("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');var r=O(t),i=r.length>0?r[0]:"",o=L("%"+i+"%",e),l=o.name,c=o.value,u=!1,h=o.alias;h&&(i=h[0],E(r,b([0,1],h)));for(var p=1,d=!0;p<r.length;p+=1){var f=r[p],y=A(f,0,1),g=A(f,-1);if(('"'===y||"'"===y||"`"===y||'"'===g||"'"===g||"`"===g)&&y!==g)throw new n("property names with quotes must have matching quotes");if("constructor"!==f&&d||(u=!0),S(_,l="%"+(i+="."+f)+"%"))c=_[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 m=a(c,f);c=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:c[f]}else d=S(c,f),c=c[f];d&&!u&&(_[l]=c)}}return c}})),v=u(((t,e)=>{p();var r=m(),n=T(),i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||r.call(s,i),a=n("%Object.getOwnPropertyDescriptor%",!0),l=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch(t){l=null}e.exports=function(t){var e=o(r,s,arguments);if(a&&l){var n=a(e,"length");n.configurable&&l(e,"length",{value:1+c(0,t.length-(arguments.length-1))})}return e};var u=function(){return o(r,i,arguments)};l?l(e.exports,"apply",{value:u}):e.exports.apply=u})),S=u(((t,e)=>{p();var r=T(),n=v(),i=n(r("String.prototype.indexOf"));e.exports=function(t,e){var s=r(t,!!e);return"function"==typeof s&&i(t,".prototype.")>-1?n(s):s}})),b=u(((t,e)=>{p();var r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,n=S()("Object.prototype.toString"),i=function(t){return!(r&&t&&"object"==typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===n(t)},s=function(t){return!!i(t)||null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Array]"!==n(t)&&"[object Function]"===n(t.callee)},o=function(){return i(arguments)}();i.isLegacyArguments=s,e.exports=o?i:s})),E=u(((t,e)=>{p();var r=Object.prototype.toString,n=Function.prototype.toString,i=/^\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&&(!!i.test(n.call(t))||(s?o&&o(t)===l:"[object GeneratorFunction]"===r.call(t)))}})),N=u(((t,e)=>{p();var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(t,e,i){if("[object Function]"!==n.call(e))throw new TypeError("iterator must be a function");var s=t.length;if(s===+s)for(var o=0;o<s;o++)e.call(i,t[o],o,t);else for(var a in t)r.call(t,a)&&e.call(i,t[a],a,t)}})),A=u(((t,e)=>{p(),e.exports=function(t,e,n){if(t.filter)return t.filter(e,n);if(null==t)throw new TypeError;if("function"!=typeof e)throw new TypeError;for(var i=[],s=0;s<t.length;s++)if(r.call(t,s)){var o=t[s];e.call(n,o,s,t)&&i.push(o)}return i};var r=Object.prototype.hasOwnProperty})),R=u(((t,r)=>{p();var n=A();r.exports=function(){return n(["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],(function(t){return"function"==typeof e[t]}))}})),C=u(((t,e)=>{p();var r=T()("%Object.getOwnPropertyDescriptor%");if(r)try{r([],"length")}catch(t){r=null}e.exports=r})),O=u(((t,r)=>{p();var n=N(),i=R(),s=S(),o=s("Object.prototype.toString"),a=y()()&&"symbol"==typeof Symbol.toStringTag,l=i(),c=s("Array.prototype.indexOf",!0)||function(t,e){for(var r=0;r<t.length;r+=1)if(t[r]===e)return r;return-1},u=s("String.prototype.slice"),h={},d=C(),f=Object.getPrototypeOf;a&&d&&f&&n(l,(function(t){var r=new e[t];if(!(Symbol.toStringTag in r))throw new EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var n=f(r),i=d(n,Symbol.toStringTag);if(!i){var s=f(n);i=d(s,Symbol.toStringTag)}h[t]=i.get})),r.exports=function(t){if(!t||"object"!=typeof t)return!1;if(!a){var e=u(o(t),8,-1);return c(l,e)>-1}return!!d&&function(t){var e=!1;return n(h,(function(r,n){if(!e)try{e=r.call(t)===n}catch(t){}})),e}(t)}})),L=u(((t,r)=>{p();var n=N(),i=R(),s=S(),o=s("Object.prototype.toString"),a=y()()&&"symbol"==typeof Symbol.toStringTag,l=i(),c=s("String.prototype.slice"),u={},h=C(),d=Object.getPrototypeOf;a&&h&&d&&n(l,(function(t){if("function"==typeof e[t]){var r=new e[t];if(!(Symbol.toStringTag in r))throw new EvalError("this engine has support for Symbol.toStringTag, but "+t+" does not have the property! Please report this.");var n=d(r),i=h(n,Symbol.toStringTag);if(!i){var s=d(n);i=h(s,Symbol.toStringTag)}u[t]=i.get}}));var f=O();r.exports=function(t){return!!f(t)&&(a?function(t){var e=!1;return n(u,(function(r,n){if(!e)try{var i=r.call(t);i===n&&(e=i)}catch(t){}})),e}(t):c(o(t),8,-1))}})),w=u((t=>{p();var e=b(),r=E(),n=L(),i=O();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 N(t){return"undefined"!=typeof DataView&&(S.working?S(t):t instanceof DataView)}function A(t){return"[object SharedArrayBuffer]"===u(t)}function R(t){return"undefined"!=typeof SharedArrayBuffer&&(A.working?A(t):t instanceof SharedArrayBuffer)}function C(t){return _(t,h)}function w(t){return _(t,d)}function I(t){return _(t,f)}function P(t){return l&&_(t,o)}function k(t){return c&&_(t,a)}l&&(o=s(BigInt.prototype.valueOf)),c&&(a=s(Symbol.prototype.valueOf)),t.isArgumentsObject=e,t.isGeneratorFunction=r,t.isTypedArray=i,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):i(t)||N(t)},t.isUint8Array=function(t){return"Uint8Array"===n(t)},t.isUint8ClampedArray=function(t){return"Uint8ClampedArray"===n(t)},t.isUint16Array=function(t){return"Uint16Array"===n(t)},t.isUint32Array=function(t){return"Uint32Array"===n(t)},t.isInt8Array=function(t){return"Int8Array"===n(t)},t.isInt16Array=function(t){return"Int16Array"===n(t)},t.isInt32Array=function(t){return"Int32Array"===n(t)},t.isFloat32Array=function(t){return"Float32Array"===n(t)},t.isFloat64Array=function(t){return"Float64Array"===n(t)},t.isBigInt64Array=function(t){return"BigInt64Array"===n(t)},t.isBigUint64Array=function(t){return"BigUint64Array"===n(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=N,A.working="undefined"!=typeof SharedArrayBuffer&&A(new SharedArrayBuffer),t.isSharedArrayBuffer=R,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=C,t.isStringObject=w,t.isBooleanObject=I,t.isBigIntObject=P,t.isSymbolObject=k,t.isBoxedPrimitive=function(t){return C(t)||w(t)||I(t)||P(t)||k(t)},t.isAnyArrayBuffer=function(t){return"undefined"!=typeof Uint8Array&&(v(t)||R(t))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))})),I=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}})),P=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}}})),k=u((e=>{p();var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++)r[e[n]]=Object.getOwnPropertyDescriptor(t,e[n]);return r},n=/%[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 i=arguments,s=i.length,o=String(t).replace(n,(function(t){if("%%"===t)return"%";if(r>=s)return t;switch(t){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(t){return"[Circular]"}default:return t}})),l=i[r];r<s;l=i[++r])y(l)||!v(l)?o+=" "+l:o+=" "+a(l);return o},e.deprecate=function(r,n){if(void 0!==t&&!0===t.noDeprecation)return r;if(void 0===t)return function(){return e.deprecate(r,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(t.throwDeprecation)throw new Error(n);t.traceDeprecation?console.trace(n):console.error(n),i=!0}return r.apply(this,arguments)}};var i,s={},o=/^$/;function a(t,r){var n={seen:[],stylize:c};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_(r)?n.showHidden=r:r&&e._extend(n,r),x(n.showHidden)&&(n.showHidden=!1),x(n.depth)&&(n.depth=2),x(n.colors)&&(n.colors=!1),x(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=l),u(n,t,n.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,n){if(t.customInspect&&r&&E(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return m(i)||(i=u(t,i,n)),i}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?n<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,n,i){for(var s=[],o=0,a=e.length;o<a;++o)O(e,String(o))?s.push(d(t,e,r,n,String(o),!0)):s.push("");return i.forEach((function(i){i.match(/^\d+$/)||s.push(d(t,e,r,n,i,!0))})),s}(t,r,n,a,o):o.map((function(e){return d(t,r,n,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,n,i,s){var o,a,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(a=t.stylize("[Setter]","special")),O(n,i)||(o="["+i+"]"),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").substr(2):"\n"+a.split("\n").map((function(t){return" "+t})).join("\n")):a=t.stylize("[Circular]","special")),x(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),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&&(i=(i=t.env.NODE_DEBUG).replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),o=new RegExp("^"+i+"$","i")),e.debuglog=function(r){if(r=r.toUpperCase(),!s[r])if(o.test(r)){var n=t.pid;s[r]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",r,n,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=w(),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=I();var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function C(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),R[t.getMonth()],e].join(" ")}function O(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",C(),e.format.apply(e,arguments))},e.inherits=P(),e._extend=function(t,e){if(!e||!v(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t};var L="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function k(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(L&&t[L]){var e;if("function"!=typeof(e=t[L]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,L,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,r,n=new Promise((function(t,n){e=t,r=n})),i=[],s=0;s<arguments.length;s++)i.push(arguments[s]);i.push((function(t,n){t?r(t):e(n)}));try{t.apply(this,i)}catch(t){r(t)}return n}return Object.setPrototypeOf(e,Object.getPrototypeOf(t)),L&&Object.defineProperty(e,L,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,r(t))},e.promisify.custom=L,e.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function n(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var s=this,o=function(){return i.apply(s,arguments)};e.apply(this,r).then((function(e){t.nextTick(o.bind(null,null,e))}),(function(e){t.nextTick(k.bind(null,e,o))}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,r(e)),n}})),D=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 n(t){return(n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}p();var s,o,a={};function l(t,e,s){s||(s=Error);var o=function(s){function o(i,s,a){var l;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),l=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}(this,n(o).call(this,function(t,r,n){return"string"==typeof e?e:e(t,r,n)}(i,s,a))),l.code=t,l}return 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}}),e&&i(t,e)}(o,s),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,n){var i,o,a,l,u;if(void 0===s&&(s=J()),s("string"==typeof t,"'name' must be a string"),"string"==typeof e&&(o="not ",e.substr(0,o.length)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}(t," argument"))a="The ".concat(t," ").concat(i," ").concat(c(e,"type"));else{var h=("number"!=typeof u&&(u=0),u+".".length>(l=t).length||-1===l.indexOf(".",u)?"argument":"property");a='The "'.concat(t,'" ').concat(h," ").concat(i," ").concat(c(e,"type"))}return a+". Received type ".concat(r(n))}),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=k());var n=o.inspect(e);return n.length>128&&(n="".concat(n.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(r,". Received ").concat(n)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(t,e,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),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=J()),s(e.length>0,"At least one arg needs to be specified");var n="The ",i=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),i){case 1:n+="".concat(e[0]," argument");break;case 2:n+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:n+=e.slice(0,i-1).join(", "),n+=", and ".concat(e[i-1]," arguments")}return"".concat(n," must be specified")}),TypeError),e.exports.codes=a})),F=u(((e,r)=>{function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function i(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,n.key,n)}}function s(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?o(t):e}function o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t){var e="function"==typeof Map?new Map:void 0;return a=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 c(t,arguments,h(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),u(r,t)},a(t)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function c(t,e,r){return(c=l()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&u(i,r.prototype),i}).apply(null,arguments)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function d(t){return(d="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 f=k().inspect,_=D().codes.ERR_INVALID_ARG_TYPE;function y(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}var g="",m="",x="",T="",v={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 S(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 b(t){return f(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var E=function(e){function r(e){var n;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),"object"!==d(e)||null===e)throw new _("options","Object",e);var i=e.message,a=e.operator,l=e.stackStartFn,c=e.actual,u=e.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=s(this,h(r).call(this,String(i)));else if(t.stderr&&t.stderr.isTTY&&(t.stderr&&t.stderr.getColorDepth&&1!==t.stderr.getColorDepth()?(g="",m="",T="",x=""):(g="",m="",T="",x="")),"object"===d(c)&&null!==c&&"object"===d(u)&&null!==u&&"stack"in c&&c instanceof Error&&"stack"in u&&u instanceof Error&&(c=S(c),u=S(u)),"deepStrictEqual"===a||"strictEqual"===a)n=s(this,h(r).call(this,function(e,r,n){var i="",s="",o=0,a="",l=!1,c=b(e),u=c.split("\n"),h=b(r).split("\n"),p=0,f="";if("strictEqual"===n&&"object"===d(e)&&"object"===d(r)&&null!==e&&null!==r&&(n="strictEqualObject"),1===u.length&&1===h.length&&u[0]!==h[0]){var _=u[0].length+h[0].length;if(_<=10){if(!("object"===d(e)&&null!==e||"object"===d(r)&&null!==r||0===e&&0===r))return"".concat(v[n],"\n\n")+"".concat(u[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==n&&_<(t.stderr&&t.stderr.isTTY?t.stderr.columns:80)){for(;u[0][p]===h[0][p];)p++;p>2&&(f="\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 S=u[u.length-1],E=h[h.length-1];S===E&&(p++<2?a="\n ".concat(S).concat(a):i=S,u.pop(),h.pop(),0!==u.length&&0!==h.length);)S=u[u.length-1],E=h[h.length-1];var N=Math.max(u.length,h.length);if(0===N){var A=c.split("\n");if(A.length>30)for(A[26]="".concat(g,"...").concat(T);A.length>27;)A.pop();return"".concat(v.notIdentical,"\n\n").concat(A.join("\n"),"\n")}p>3&&(a="\n".concat(g,"...").concat(T).concat(a),l=!0),""!==i&&(a="\n ".concat(i).concat(a),i="");var R=0,C=v[n]+"\n".concat(m,"+ actual").concat(T," ").concat(x,"- expected").concat(T),O=" ".concat(g,"...").concat(T," Lines skipped");for(p=0;p<N;p++){var L=p-o;if(u.length<p+1)L>1&&p>2&&(L>4?(s+="\n".concat(g,"...").concat(T),l=!0):L>3&&(s+="\n ".concat(h[p-2]),R++),s+="\n ".concat(h[p-1]),R++),o=p,i+="\n".concat(x,"-").concat(T," ").concat(h[p]),R++;else if(h.length<p+1)L>1&&p>2&&(L>4?(s+="\n".concat(g,"...").concat(T),l=!0):L>3&&(s+="\n ".concat(u[p-2]),R++),s+="\n ".concat(u[p-1]),R++),o=p,s+="\n".concat(m,"+").concat(T," ").concat(u[p]),R++;else{var w=h[p],I=u[p],P=I!==w&&(!y(I,",")||I.slice(0,-1)!==w);P&&y(w,",")&&w.slice(0,-1)===I&&(P=!1,I+=","),P?(L>1&&p>2&&(L>4?(s+="\n".concat(g,"...").concat(T),l=!0):L>3&&(s+="\n ".concat(u[p-2]),R++),s+="\n ".concat(u[p-1]),R++),o=p,s+="\n".concat(m,"+").concat(T," ").concat(I),i+="\n".concat(x,"-").concat(T," ").concat(w),R+=2):(s+=i,i="",1!==L&&0!==p||(s+="\n ".concat(I),R++))}if(R>20&&p<N-2)return"".concat(C).concat(O,"\n").concat(s,"\n").concat(g,"...").concat(T).concat(i,"\n")+"".concat(g,"...").concat(T)}return"".concat(C).concat(l?O:"","\n").concat(s).concat(i).concat(a).concat(f)}(c,u,a)));else if("notDeepStrictEqual"===a||"notStrictEqual"===a){var f=v[a],E=b(c).split("\n");if("notStrictEqual"===a&&"object"===d(c)&&null!==c&&(f=v.notStrictEqualObject),E.length>30)for(E[26]="".concat(g,"...").concat(T);E.length>27;)E.pop();n=1===E.length?s(this,h(r).call(this,"".concat(f," ").concat(E[0]))):s(this,h(r).call(this,"".concat(f,"\n\n").concat(E.join("\n"),"\n")))}else{var N=b(c),A="",R=v[a];"notDeepEqual"===a||"notEqual"===a?(N="".concat(v[a],"\n\n").concat(N)).length>1024&&(N="".concat(N.slice(0,1021),"...")):(A="".concat(b(u)),N.length>512&&(N="".concat(N.slice(0,509),"...")),A.length>512&&(A="".concat(A.slice(0,509),"...")),"deepEqual"===a||"equal"===a?N="".concat(R,"\n\n").concat(N,"\n\nshould equal\n\n"):A=" ".concat(a," ").concat(A)),n=s(this,h(r).call(this,"".concat(N).concat(A)))}return Error.stackTraceLimit=p,n.generatedMessage=!i,Object.defineProperty(o(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=c,n.expected=u,n.operator=a,Error.captureStackTrace&&Error.captureStackTrace(o(n),l),n.stack,n.name="AssertionError",s(n)}var a,l;return 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}}),e&&u(t,e)}(r,e),a=r,l=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:f.custom,value:function(t,e){return f(this,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),i.forEach((function(e){n(t,e,r[e])}))}return t}({},e,{customInspect:!1,depth:0}))}}],l&&i(a.prototype,l),r}(a(Error));r.exports=E})),M=u(((t,e)=>{function r(t,e){if(null==t)throw new TypeError("Cannot convert first argument to object");for(var r=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var s=Object.keys(Object(i)),o=0,a=s.length;o<a;o++){var l=s[o],c=Object.getOwnPropertyDescriptor(i,l);void 0!==c&&c.enumerable&&(r[l]=i[l])}}return r}p(),e.exports={assign:r,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:r})}}})),U=u(((t,e)=>{p();var r=Object.prototype.toString;e.exports=function(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}})),j=u(((t,e)=>{var r,n,i,s,o,a,l,c,u,h,d,f;p(),Object.keys||(n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,s=U(),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]&&n.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]"===i.call(t),o=s(t),u=e&&"[object String]"===i.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&&!n.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||!n.call(t,y)||h.push(String(y));if(a)for(var g=f(t),m=0;m<c.length;++m)g&&"constructor"===c[m]||!n.call(t,c[m])||h.push(c[m]);return h}),e.exports=r})),H=u(((t,e)=>{p();var r=Array.prototype.slice,n=U(),i=Object.keys,s=i?function(t){return i(t)}:j(),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 n(t)?o(r.call(t)):o(t)})}else Object.keys=s;return Object.keys||s},e.exports=s})),B=u(((t,e)=>{p();var r=H(),n="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,s=Array.prototype.concat,o=Object.defineProperty,a=o&&function(){var t={};try{for(var e in o(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(t){return!1}}(),l=function(t,e,r,n){(!(e in t)||function(t){return"function"==typeof t&&"[object Function]"===i.call(t)}(n)&&n())&&(a?o(t,e,{configurable:!0,enumerable:!1,value:r,writable:!0}):t[e]=r)},c=function(t,e){var i=arguments.length>2?arguments[2]:{},o=r(e);n&&(o=s.call(o,Object.getOwnPropertySymbols(e)));for(var a=0;a<o.length;a+=1)l(t,o[a],e[o[a]],i[o[a]])};c.supportsDescriptors=!!a,e.exports=c})),K=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))}})),z=u(((t,e)=>{p();var r=K();e.exports=function(){return"function"==typeof Object.is?Object.is:r}})),V=u(((t,e)=>{p();var r=z(),n=B();e.exports=function(){var t=r();return n(Object,{is:t},{is:function(){return Object.is!==t}}),t}})),G=u(((t,e)=>{p();var r=B(),n=v(),i=K(),s=z(),o=V(),a=n(s(),Object);r(a,{getPolyfill:s,implementation:i,shim:o}),e.exports=a})),q=u(((t,e)=>{p(),e.exports=function(t){return t!=t}})),$=u(((t,e)=>{p();var r=q();e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}})),Y=u(((t,e)=>{p();var r=B(),n=$();e.exports=function(){var t=n();return r(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}})),W=u(((t,e)=>{p();var r=v(),n=B(),i=q(),s=$(),o=Y(),a=r(s(),Number);n(a,{getPolyfill:s,implementation:i,shim:o}),e.exports=a})),X=u(((t,e)=>{function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],n=!0,i=!1,s=void 0;try{for(var o,a=t[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,s=t}finally{try{n||null==a.return||a.return()}finally{if(i)throw s}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}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 i=void 0!==/a/g.flags,s=function(t){var e=[];return t.forEach((function(t){return e.push(t)})),e},o=function(t){var e=[];return t.forEach((function(t,r){return e.push([r,t])})),e},a=Object.is?Object.is:G(),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},c=Number.isNaN?Number.isNaN:W();function u(t){return t.call.bind(t)}var h=u(Object.prototype.hasOwnProperty),d=u(Object.prototype.propertyIsEnumerable),f=u(Object.prototype.toString),_=k().types,y=_.isAnyArrayBuffer,g=_.isArrayBufferView,m=_.isDate,x=_.isMap,T=_.isRegExp,v=_.isSet,S=_.isNativeError,b=_.isBoxedPrimitive,E=_.isNumberObject,N=_.isStringObject,A=_.isBooleanObject,R=_.isBigIntObject,C=_.isSymbolObject,O=_.isFloat32Array,L=_.isFloat64Array;function w(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 I(t){return Object.keys(t).filter(w).concat(l(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))}function P(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,s=Math.min(r,n);i<s;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function D(t,e,r,s){if(t===e)return 0!==t||!r||a(t,e);if(r){if("object"!==n(t))return"number"==typeof t&&c(t)&&c(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,l,u,h,p=f(t);if(p!==f(e))return!1;if(Array.isArray(t)){if(t.length!==e.length)return!1;var d=I(t),_=I(e);return d.length===_.length&&M(t,e,r,s,1,d)}if("[object Object]"===p&&(!x(t)&&x(e)||!v(t)&&v(e)))return!1;if(m(t)){if(!m(e)||Date.prototype.getTime.call(t)!==Date.prototype.getTime.call(e))return!1}else if(T(t)){if(!T(e)||(u=t,h=e,!(i?u.source===h.source&&u.flags===h.flags:RegExp.prototype.toString.call(u)===RegExp.prototype.toString.call(h))))return!1}else if(S(t)||t instanceof Error){if(t.message!==e.message||t.name!==e.name)return!1}else{if(g(t)){if(r||!O(t)&&!L(t)){if(!function(t,e){return t.byteLength===e.byteLength&&0===P(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 w=I(t),k=I(e);return w.length===k.length&&M(t,e,r,s,0,w)}if(v(t))return!(!v(e)||t.size!==e.size)&&M(t,e,r,s,2);if(x(t))return!(!x(e)||t.size!==e.size)&&M(t,e,r,s,3);if(y(t)){if(l=e,(o=t).byteLength!==l.byteLength||0!==P(new Uint8Array(o),new Uint8Array(l)))return!1}else if(b(t)&&!function(t,e){return E(t)?E(e)&&a(Number.prototype.valueOf.call(t),Number.prototype.valueOf.call(e)):N(t)?N(e)&&String.prototype.valueOf.call(t)===String.prototype.valueOf.call(e):A(t)?A(e)&&Boolean.prototype.valueOf.call(t)===Boolean.prototype.valueOf.call(e):R(t)?R(e)&&BigInt.prototype.valueOf.call(t)===BigInt.prototype.valueOf.call(e):C(e)&&Symbol.prototype.valueOf.call(t)===Symbol.prototype.valueOf.call(e)}(t,e))return!1}return M(t,e,r,s,0)}function F(t,e){return e.filter((function(e){return d(t,e)}))}function M(t,e,r,n,i,s){if(5===arguments.length){s=Object.keys(t);var o=Object.keys(e);if(s.length!==o.length)return!1}for(var a=0;a<s.length;a++)if(!h(e,s[a]))return!1;if(r&&5===arguments.length){var c=l(t);if(0!==c.length){var u=0;for(a=0;a<c.length;a++){var p=c[a];if(d(t,p)){if(!d(e,p))return!1;s.push(p),u++}else if(d(e,p))return!1}var f=l(e);if(c.length!==f.length&&F(e,f).length!==u)return!1}else{var _=l(e);if(0!==_.length&&0!==F(e,_).length)return!1}}if(0===s.length&&(0===i||1===i&&0===t.length||0===t.size))return!0;if(void 0===n)n={val1:new Map,val2:new Map,position:0};else{var y=n.val1.get(t);if(void 0!==y){var g=n.val2.get(e);if(void 0!==g)return y===g}n.position++}n.val1.set(t,n.position),n.val2.set(e,n.position);var m=z(t,e,r,s,n,i);return n.val1.delete(t),n.val2.delete(e),m}function U(t,e,r,n){for(var i=s(t),o=0;o<i.length;o++){var a=i[o];if(D(e,a,r,n))return t.delete(a),!0}return!1}function j(t){switch(n(t)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":t=+t;case"number":if(c(t))return!1}return!0}function H(t,e,r){var n=j(r);return null!=n?n:e.has(n)&&!t.has(n)}function B(t,e,r,n,i){var s=j(r);if(null!=s)return s;var o=e.get(s);return!(void 0===o&&!e.has(s)||!D(n,o,!1,i))&&!t.has(s)&&D(n,o,!1,i)}function K(t,e,r,n,i,o){for(var a=s(t),l=0;l<a.length;l++){var c=a[l];if(D(r,c,i,o)&&D(n,e.get(c),i,o))return t.delete(c),!0}return!1}function z(t,e,i,a,l,c){var u=0;if(2===c){if(!function(t,e,r,i){for(var o=null,a=s(t),l=0;l<a.length;l++){var c=a[l];if("object"===n(c)&&null!==c)null===o&&(o=new Set),o.add(c);else if(!e.has(c)){if(r)return!1;if(!H(t,e,c))return!1;null===o&&(o=new Set),o.add(c)}}if(null!==o){for(var u=s(e),h=0;h<u.length;h++){var p=u[h];if("object"===n(p)&&null!==p){if(!U(o,p,r,i))return!1}else if(!r&&!t.has(p)&&!U(o,p,r,i))return!1}return 0===o.size}return!0}(t,e,i,l))return!1}else if(3===c){if(!function(t,e,i,s){for(var a=null,l=o(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===a&&(a=new Set),a.add(h);else{var d=e.get(h);if(void 0===d&&!e.has(h)||!D(p,d,i,s)){if(i)return!1;if(!B(t,e,h,p,s))return!1;null===a&&(a=new Set),a.add(h)}}}if(null!==a){for(var f=o(e),_=0;_<f.length;_++){var y=r(f[_],2),g=(h=y[0],y[1]);if("object"===n(h)&&null!==h){if(!K(a,t,h,g,i,s))return!1}else if(!(i||t.has(h)&&D(t.get(h),g,!1,s)||K(a,t,h,g,!1,s)))return!1}return 0===a.size}return!0}(t,e,i,l))return!1}else if(1===c)for(;u<t.length;u++){if(!h(t,u)){if(h(e,u))return!1;for(var p=Object.keys(t);u<p.length;u++){var d=p[u];if(!h(e,d)||!D(t[d],e[d],i,l))return!1}return p.length===Object.keys(e).length}if(!h(e,u)||!D(t[u],e[u],i,l))return!1}for(u=0;u<a.length;u++){var f=a[u];if(!D(t[f],e[f],i,l))return!1}return!0}e.exports={isDeepEqual:function(t,e){return D(t,e,!1)},isDeepStrictEqual:function(t,e){return D(t,e,!0)}}})),J=u(((e,r)=>{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 i,s,o=D().codes,a=o.ERR_AMBIGUOUS_ARGUMENT,l=o.ERR_INVALID_ARG_TYPE,c=o.ERR_INVALID_ARG_VALUE,u=o.ERR_INVALID_RETURN_VALUE,h=o.ERR_MISSING_ARGS,d=F(),f=k().inspect,_=k().types,y=_.isPromise,g=_.isRegExp,m=Object.assign?Object.assign:M().assign,x=Object.is?Object.is:G();function T(){var t=X();i=t.isDeepEqual,s=t.isDeepStrictEqual}new Map;var v=!1,S=r.exports=A,b={};function E(t){if(t.message instanceof Error)throw t.message;throw new d(t)}function N(t,e,r,n){if(!r){var i=!1;if(0===e)i=!0,n="No value argument passed to `assert.ok()`";else if(n instanceof Error)throw n;var s=new d({actual:r,expected:!0,message:n,operator:"==",stackStartFn:t});throw s.generatedMessage=i,s}}function A(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];N.apply(void 0,[A,e.length].concat(e))}S.fail=function e(r,n,i,s,o){var a,l=arguments.length;if(0===l)a="Failed";else if(1===l)i=r,r=void 0;else{if(!1===v){v=!0;var c=t.emitWarning?t.emitWarning:console.warn.bind(console);c("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===l&&(s="!=")}if(i instanceof Error)throw i;var u={actual:r,expected:n,operator:void 0===s?"fail":s,stackStartFn:o||e};void 0!==i&&(u.message=i);var h=new d(u);throw a&&(h.message=a,h.generatedMessage=!0),h},S.AssertionError=d,S.ok=A,S.equal=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");e!=r&&E({actual:e,expected:r,message:n,operator:"==",stackStartFn:t})},S.notEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");e==r&&E({actual:e,expected:r,message:n,operator:"!=",stackStartFn:t})},S.deepEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&T(),i(e,r)||E({actual:e,expected:r,message:n,operator:"deepEqual",stackStartFn:t})},S.notDeepEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&T(),i(e,r)&&E({actual:e,expected:r,message:n,operator:"notDeepEqual",stackStartFn:t})},S.deepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&T(),s(e,r)||E({actual:e,expected:r,message:n,operator:"deepStrictEqual",stackStartFn:t})},S.notDeepStrictEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");void 0===i&&T(),s(e,r)&&E({actual:e,expected:r,message:n,operator:"notDeepStrictEqual",stackStartFn:t})},S.strictEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");x(e,r)||E({actual:e,expected:r,message:n,operator:"strictEqual",stackStartFn:t})},S.notStrictEqual=function t(e,r,n){if(arguments.length<2)throw new h("actual","expected");x(e,r)&&E({actual:e,expected:r,message:n,operator:"notStrictEqual",stackStartFn:t})};var R=function t(e,r,n){var i=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!==n&&"string"==typeof n[t]&&g(e[t])&&e[t].test(n[t])?i[t]=n[t]:i[t]=e[t])}))};function C(t,e,r,n,i,o){if(!(r in t)||!s(t[r],e[r])){if(!n){var a=new R(t,i),l=new R(e,i,t),c=new d({actual:a,expected:l,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=t,c.expected=e,c.operator=o.name,c}E({actual:t,expected:e,message:n,operator:o.name,stackStartFn:o})}}function O(t,e,r,s){if("function"!=typeof e){if(g(e))return e.test(t);if(2===arguments.length)throw new l("expected",["Function","RegExp"],e);if("object"!==n(t)||null===t){var o=new d({actual:t,expected:e,message:r,operator:"deepStrictEqual",stackStartFn:s});throw o.operator=s.name,o}var a=Object.keys(e);if(e instanceof Error)a.push("name","message");else if(0===a.length)throw new c("error",e,"may not be an empty object");return void 0===i&&T(),a.forEach((function(n){"string"==typeof t[n]&&g(e[n])&&e[n].test(t[n])||C(t,e,n,r,a,s)})),!0}return void 0!==e.prototype&&t instanceof e||!Error.isPrototypeOf(e)&&!0===e.call({},t)}function L(t){if("function"!=typeof t)throw new l("fn","Function",t);try{t()}catch(t){return t}return b}function w(t){return y(t)||null!==t&&"object"===n(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function I(t){return Promise.resolve().then((function(){var e;if("function"==typeof t){if(!w(e=t()))throw new u("instance of Promise","promiseFn",e)}else{if(!w(t))throw new l("promiseFn",["Function","Promise"],t);e=t}return Promise.resolve().then((function(){return e})).then((function(){return b})).catch((function(t){return t}))}))}function P(t,e,r,i){if("string"==typeof r){if(4===arguments.length)throw new l("error",["Object","Error","Function","RegExp"],r);if("object"===n(e)&&null!==e){if(e.message===r)throw new a("error/message",'The error message "'.concat(e.message,'" is identical to the message.'))}else if(e===r)throw new a("error/message",'The error "'.concat(e,'" is identical to the message.'));i=r,r=void 0}else if(null!=r&&"object"!==n(r)&&"function"!=typeof r)throw new l("error",["Object","Error","Function","RegExp"],r);if(e===b){var s="";r&&r.name&&(s+=" (".concat(r.name,")")),s+=i?": ".concat(i):".";var o="rejects"===t.name?"rejection":"exception";E({actual:void 0,expected:r,operator:t.name,message:"Missing expected ".concat(o).concat(s),stackStartFn:t})}if(r&&!O(e,r,i,t))throw e}function U(t,e,r,n){if(e!==b){if("string"==typeof r&&(n=r,r=void 0),!r||O(e,r)){var i=n?": ".concat(n):".",s="doesNotReject"===t.name?"rejection":"exception";E({actual:e,expected:r,operator:t.name,message:"Got unwanted ".concat(s).concat(i,"\n")+'Actual message: "'.concat(e&&e.message,'"'),stackStartFn:t})}throw e}}function j(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];N.apply(void 0,[j,e.length].concat(e))}S.throws=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];P.apply(void 0,[t,L(e)].concat(n))},S.rejects=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return I(e).then((function(e){return P.apply(void 0,[t,e].concat(n))}))},S.doesNotThrow=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];U.apply(void 0,[t,L(e)].concat(n))},S.doesNotReject=function t(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return I(e).then((function(e){return U.apply(void 0,[t,e].concat(n))}))},S.ifError=function t(e){if(null!=e){var r="ifError got unwanted exception: ";"object"===n(e)&&"string"==typeof e.message?0===e.message.length&&e.constructor?r+=e.constructor.name:r+=e.message:r+=f(e);var i=new d({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=i.stack.split("\n"),l=0;l<o.length;l++){var c=a.indexOf(o[l]);if(-1!==c){a=a.slice(0,c);break}}i.stack="".concat(a.join("\n"),"\n").concat(o.join("\n"))}throw i}},S.strict=m(j,S,{equal:S.strictEqual,deepEqual:S.deepStrictEqual,notEqual:S.notStrictEqual,notDeepEqual:S.notDeepStrictEqual}),S.strict.strict=S.strict})),Q=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)=>{}}})),Z=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>"})),tt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=J(),n=Q(),i=Z(),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)===i.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?i.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 n=r-e+1;return e>=this.n?"":this.data.substr(e,n)}get sourceName(){return this.name?this.name:i.IntStream.UNKNOWN_SOURCE_NAME}toString(){return this.data}};e([n.Override],s.prototype,"consume",null),e([n.Override],s.prototype,"LA",null),e([n.Override],s.prototype,"index",null),e([n.Override],s.prototype,"size",null),e([n.Override],s.prototype,"mark",null),e([n.Override],s.prototype,"release",null),e([n.Override],s.prototype,"seek",null),e([n.Override],s.prototype,"getText",null),e([n.Override],s.prototype,"sourceName",null),e([n.Override],s.prototype,"toString",null),t.ANTLRInputStream=s})),et=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=class{constructor(){this.stateNumber=n.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 n&&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],n.prototype,"hashCode",null),e([r.Override],n.prototype,"equals",null),e([r.Override],n.prototype,"toString",null),t.ATNState=n,(n=t.ATNState||(t.ATNState={})).INVALID_STATE_NUMBER=-1})),rt=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"})),nt=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.RecognitionException=void 0;var e=class extends Error{constructor(t,e,r,n){super(n),this._offendingState=-1,this._recognizer=t,this.input=e,this.ctx=r,t&&(this._offendingState=t.state)}get offendingState(){return this._offendingState}setOffendingState(t){this._offendingState=t}get expectedTokens(){if(this._recognizer)return this._recognizer.atn.getExpectedTokens(this._offendingState,this.ctx)}get context(){return this.ctx}get inputStream(){return this.input}getOffendingToken(t){if(!t||t===this._recognizer)return this.offendingToken}setOffendingToken(t,e){t===this._recognizer&&(this.offendingToken=e)}get recognizer(){return this._recognizer}};t.RecognitionException=e})),it=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Transition=void 0;var n=Q(),i=class{constructor(t){if(null==t)throw new Error("target cannot be null.");this.target=t}get isEpsilon(){return!1}get label(){}};i.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],e([n.NotNull],i.prototype,"target",void 0),i=e([r(0,n.NotNull)],i),t.Transition=i})),st=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractPredicateTransition=void 0;var e=it(),r=class extends e.Transition{constructor(t){super(t)}};t.AbstractPredicateTransition=r})),ot=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash=void 0,function(t){function e(t=0){return t}function r(t,e){null==e?e=0:"string"==typeof e?e=function(t){let e=t.length;if(0===e)return 0;let r=0;for(let n=0;n<e;n++)r=(r<<5>>>0)-r+t.charCodeAt(n),r|=0;return r}(e):"object"==typeof e&&(e=e.hashCode());let r=e;return r=Math.imul(r,3432918353),r=r<<15|r>>>17,r=Math.imul(r,461845907),t=(t^=r)<<13|t>>>19,4294967295&Math.imul(t,5)+3864292196}function 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=e,t.update=r,t.finish=n,t.hashCode=function(t,i=0){let s=e(i),o=0;for(let e of t)s=r(s,e),o++;return s=n(s,o),s}}(t.MurmurHash||(t.MurmurHash={}))})),at=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=class{hashCode(t){return null==t?0:t.hashCode()}equals(t,e){return null==t?null==e:t.equals(e)}};n.INSTANCE=new n,e([r.Override],n.prototype,"hashCode",null),e([r.Override],n.prototype,"equals",null),t.ObjectEqualityComparator=n})),lt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=ot(),i=at(),s=class{hashCode(t){return null==t?0:"string"==typeof t||"number"==typeof t?n.MurmurHash.hashCode([t]):i.ObjectEqualityComparator.INSTANCE.hashCode(t)}equals(t,e){return null==t?null==e:"string"==typeof t||"number"==typeof t?t===e:i.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})),ct=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Array2DHashSet=void 0;var n=J(),i=lt(),s=Q(),o=ot(),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||i.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 i=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)}n(this.n===i)}add(t){return this.getOrAdd(t)===t}get size(){return this.n}get isEmpty(){return 0===this.n}contains(t){return this.containsFast(this.asElementType(t))}containsFast(t){return null!=t&&null!=this.get(t)}*[Symbol.iterator](){yield*this.toArray()}toArray(){const t=new Array(this.size);let e=0;for(let r of this.buckets)if(null!=r)for(let n of r){if(null==n)break;t[e++]=n}return t}containsAll(t){if(t instanceof 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 n of r){if(null==n)break;e?e=!1:t+=", ",t+=n.toString()}return t+="}",t}toTableString(){let t="";for(let e of this.buckets){if(null==e){t+="null\n";continue}t+="[";let r=!0;for(let n of e)r?r=!1:t+=" ",t+=null==n?"_":n.toString();t+="]\n"}return t}asElementType(t){return t}createBuckets(t){return new Array(t)}};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})),ut=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=ot(),i=at(),s=class{hashCode(t){return null==t?0:n.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(!i.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})),ht=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="",n=!0;for(let i of t)n?n=!1:r+=e,r+=i;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()}})),pt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SemanticContext=void 0;var n=ct(),i=ut(),s=ot(),o=Q(),a=at(),l=ht(),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 n=0;n<e.length;n++){let i=e[n];i instanceof t.PrecedencePredicate&&(r.push(i),e.splice(n,1),n--)}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 i=new n.Array2DHashSet(a.ObjectEqualityComparator.INSTANCE);t instanceof e?i.addAll(t.opnds):i.add(t),r instanceof e?i.addAll(r.opnds):i.add(r),this.opnds=i.toArray();let s=function(t){let e;for(let r of t)void 0!==e?e.compareTo(r)>0&&(e=r):e=r;return e}(c(this.opnds));s&&this.opnds.push(s)}get operands(){return this.opnds}equals(t){return this===t||t instanceof e&&i.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 n=!1,i=[];for(let s of this.opnds){let o=s.evalPrecedence(e,r);if(n=n||o!==s,null==o)return;o!==t.NONE&&i.push(o)}if(!n)return this;if(0===i.length)return t.NONE;let s=i[0];for(let e=1;e<i.length;e++)s=t.and(s,i[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 i=new n.Array2DHashSet(a.ObjectEqualityComparator.INSTANCE);t instanceof e?i.addAll(t.opnds):i.add(t),r instanceof e?i.addAll(r.opnds):i.add(r),this.opnds=i.toArray();let s=function(t){let e;for(let r of t)void 0!==e?e.compareTo(r)<0&&(e=r):e=r;return e}(c(this.opnds));s&&this.opnds.push(s)}get operands(){return this.opnds}equals(t){return this===t||t instanceof e&&i.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 n=!1,i=[];for(let s of this.opnds){let o=s.evalPrecedence(e,r);if(n=n||o!==s,o===t.NONE)return t.NONE;o&&i.push(o)}if(!n)return this;if(0===i.length)return;let s=i[0];for(let e=1;e<i.length;e++)s=t.or(s,i[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={}))})),dt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.PredicateTransition=void 0;var n=st(),i=Q(),s=pt(),o=class extends n.AbstractPredicateTransition{constructor(t,e,r,n){super(t),this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=n}get serializationType(){return 4}get isEpsilon(){return!0}matches(t,e,r){return!1}get predicate(){return new s.SemanticContext.Predicate(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}};e([i.Override],o.prototype,"serializationType",null),e([i.Override],o.prototype,"isEpsilon",null),e([i.Override],o.prototype,"matches",null),e([i.Override,i.NotNull],o.prototype,"toString",null),o=e([r(0,i.NotNull)],o),t.PredicateTransition=o})),ft=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.FailedPredicateException=void 0;var n=nt(),i=Q(),s=dt(),o=class t extends n.RecognitionException{constructor(e,r,n){super(e,e.inputStream,e.context,t.formatMessage(r,n));let i=e.interpreter.atn.states[e.state].transition(0);i instanceof s.PredicateTransition?(this._ruleIndex=i.ruleIndex,this._predicateIndex=i.predIndex):(this._ruleIndex=0,this._predicateIndex=0),this._predicate=r,super.setOffendingToken(e,e.currentToken)}get ruleIndex(){return this._ruleIndex}get predicateIndex(){return this._predicateIndex}get predicate(){return this._predicate}static formatMessage(t,e){return e||`failed predicate: {${t}}?`}};e([i.NotNull],o,"formatMessage",null),o=e([r(0,i.NotNull)],o),t.FailedPredicateException=o})),_t=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputMismatchException=void 0;var n=nt(),i=Q(),s=class extends n.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,i.NotNull)],s),t.InputMismatchException=s})),yt=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,n){return function(t,e,r,n){let i=e,s=r-1;for(;i<=s;){let e=i+s>>>1,r=t[e];if(r<n)i=e+1;else{if(!(r>n))return e;s=e-1}}return-(i+1)}(t,void 0!==r?r:0,void 0!==n?n:t.length,e)},e.toString=function(t){let e="[",r=!0;for(let n of t)r?r=!1:e+=", ",e+=null===n?"null":void 0===n?"undefined":n;return e+="]",e}})),gt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=yt(),n=Q(),i=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=i,this._size=0):(this._data=new Int32Array(t),this._size=0);else{this._data=i,this._size=0;for(let e of t)this.add(e)}else this._data=i,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,n){if(void 0===e&&(e=0),void 0===n&&(n=this._size),e<0||n<0||e>this._size||n>this._size)throw new RangeError;if(e>n)throw new RangeError;return r.Arrays.binarySearch(this._data,t,e,n)}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 n=0;n<this._size;n++){let i=this._data[n];if(i>=0&&i<65536){t[e]=i,e++;continue}if(!r){let e=new Uint16Array(this.charArraySize());e.set(t,0),t=e,r=!0}let s=String.fromCodePoint(i);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([n.NotNull],o.prototype,"_data",void 0),e([n.Override],o.prototype,"equals",null),e([n.Override],o.prototype,"hashCode",null),e([n.Override],o.prototype,"toString",null),t.IntegerList=o})),mt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=class{constructor(t,e){this.a=t,this.b=e}static get INVALID(){return n._INVALID}static of(t,e){return t!==e||t<0||t>1e3?new n(t,e):(null==n.cache[t]&&(n.cache[t]=new n(t,t)),n.cache[t])}get length(){return this.b<this.a?0:this.b-this.a+1}equals(t){return t===this||t instanceof n&&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 n.of(Math.min(this.a,t.a),Math.max(this.b,t.b))}intersection(t){return n.of(Math.max(this.a,t.a),Math.min(this.b,t.b))}differenceNotProperlyContained(t){let e;return t.startsBeforeNonDisjoint(this)?e=n.of(Math.max(this.a,t.b+1),this.b):t.startsAfterNonDisjoint(this)&&(e=n.of(this.a,t.a-1)),e}toString(){return this.a+".."+this.b}};n._INVALID=new n(-1,-2),n.cache=new Array(1001),e([r.Override],n.prototype,"equals",null),e([r.Override],n.prototype,"hashCode",null),e([r.Override],n.prototype,"toString",null),t.Interval=n})),xt=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.Token=void 0;var e,r=Z();(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})),Tt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommonToken=void 0;var n=mt(),i=Q(),s=xt(),o=class t{constructor(e,r,n=t.EMPTY_SOURCE,i=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=n,this._channel=i,this.start=o,this.stop=a,null!=n.source&&(this._line=n.source.line,this._charPositionInLine=n.source.charPositionInLine)}static fromToken(e){let r=new t(e.type,void 0,t.EMPTY_SOURCE,e.channel,e.startIndex,e.stopIndex);return r._line=e.line,r.index=e.tokenIndex,r._charPositionInLine=e.charPositionInLine,e instanceof t?(r._text=e._text,r.source=e.source):(r._text=e.text,r.source={source:e.tokenSource,stream:e.inputStream}),r}get type(){return this._type}set type(t){this._type=t}get line(){return this._line}set line(t){this._line=t}get text(){if(null!=this._text)return this._text;let t=this.inputStream;if(null==t)return;let e=t.size;return this.start<e&&this.stop<e?t.getText(n.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 n=String(this._type);return t&&(n=t.vocabulary.getDisplayName(this._type)),"[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+r+"',<"+n+">"+e+","+this._line+":"+this.charPositionInLine+"]"}};o.EMPTY_SOURCE={source:void 0,stream:void 0},e([i.NotNull],o.prototype,"source",void 0),e([i.Override],o.prototype,"type",null),e([i.Override],o.prototype,"line",null),e([i.Override],o.prototype,"text",null),e([i.Override],o.prototype,"charPositionInLine",null),e([i.Override],o.prototype,"channel",null),e([i.Override],o.prototype,"startIndex",null),e([i.Override],o.prototype,"stopIndex",null),e([i.Override],o.prototype,"tokenIndex",null),e([i.Override],o.prototype,"tokenSource",null),e([i.Override],o.prototype,"inputStream",null),e([i.Override],o.prototype,"toString",null),e([r(0,i.NotNull)],o,"fromToken",null),o=e([r(2,i.NotNull)],o),t.CommonToken=o})),vt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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,n=Tt(),i=mt(),s=Q(),o=class{constructor(t=!1){this.copyText=t}create(t,e,r,s,o,a,l,c){let u=new n.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(i.Interval.of(o,a))),u}createSimple(t,e){return new n.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})),St=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.IntegerStack=void 0;var e=gt(),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})),bt=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}}})),Et=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.Array2DHashMap=void 0;var e=ct(),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,n=this.backingStore.get({key:t,value:e});return n?(r=n.value,n.value=e):this.backingStore.add({key:t,value:e}),r}putIfAbsent(t,e){let r,n=this.backingStore.get({key:t,value:e});return n?r=n.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})),Nt=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.DecisionState=void 0;var e=et(),r=class extends e.ATNState{constructor(){super(...arguments),this.decision=-1,this.nonGreedy=!1,this.sll=!1}};t.DecisionState=r})),At=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Et(),n=Q(),i=at(),s=Rt(),o=J(),a=class{constructor(t=!0){this.contexts=new r.Array2DHashMap(i.ObjectEqualityComparator.INSTANCE),this.childContexts=new r.Array2DHashMap(i.ObjectEqualityComparator.INSTANCE),this.joinContexts=new r.Array2DHashMap(i.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),n=this.childContexts.get(r);return n||(n=t.getChild(e),n=this.getAsCached(n),this.childContexts.put(r,n)),n}join(t,e){if(!this.enableCache)return s.PredictionContext.join(t,e,this);let r=new a.IdentityCommutativePredictionContextOperands(t,e),n=this.joinContexts.get(r);return n||(n=s.PredictionContext.join(t,e,this),n=this.getAsCached(n),this.joinContexts.put(r,n),n)}};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([n.Override],r.prototype,"equals",null),e([n.Override],r.prototype,"hashCode",null),t.PredictionContextAndInt=r;class i{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 i))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([n.Override],i.prototype,"equals",null),e([n.Override],i.prototype,"hashCode",null),t.IdentityCommutativePredictionContextOperands=i}(a=t.PredictionContextCache||(t.PredictionContextCache={}))})),Rt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SingletonPredictionContext=t.PredictionContext=void 0;var n=Et(),i=ct(),s=yt(),o=ot(),a=Q(),l=At(),c=J(),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 n;n=e._parent?u.fromRuleContext(t,e._parent,r):r?u.EMPTY_FULL:u.EMPTY_LOCAL;let i=t.states[e.invokingState].transition(0);return n.getChild(i.followState.stateNumber)}static addEmptyContext(t){return t.addEmptyContext()}static removeEmptyContext(t){return t.removeEmptyContext()}static join(t,e,r=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 n=t.size,i=e.size;if(1===n&&1===i&&t.getReturnState(0)===e.getReturnState(0)){let n=r.join(t.getParent(0),e.getParent(0));return n===t.getParent(0)?t:n===e.getParent(0)?e:n.getChild(t.getReturnState(0))}let s=0,o=new Array(n+i),a=new Array(o.length),h=0,p=0,_=!0,y=!0;for(;h<n&&p<i;)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<n;)o[s]=t.getParent(h),a[s]=t.getReturnState(h),h++,y=!1,s++;for(;p<i;)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 n=r.get(t);if(n)return n;if(n=e.get(t),n)return r.put(t,n),n;let i,s=!1,o=new Array(t.size);for(let n=0;n<o.length;n++){let i=u.getCachedContext(t.getParent(n),e,r);if(s||i!==t.getParent(n)){if(!s){o=new Array(t.size);for(let e=0;e<t.size;e++)o[e]=t.getParent(e);s=!0}o[n]=i}}if(!s)return n=e.putIfAbsent(t,t),r.put(t,null!=n?n:t),t;if(1===o.length)i=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);i=new d(o,e,t.hashCode())}return n=e.putIfAbsent(i,i),r.put(i,n||i),r.put(t,n||i),i}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 n=[];t:for(let i=0;;i++){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=i>>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+="]",n.push(c),o)break}return n}};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,n){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 i=n.get(e);if(!i){if(e.isEmpty)i=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 i=0;i<s;i++)o[i]=t.appendContextImpl(e.getParent(i),r,n);1===o.length?i=new f(o[0],a[0]):(c(o.length>1),i=new t(o,a)),e.hasEmpty&&(i=u.join(i,r))}n.put(e,i)}return i}equals(e){if(this===e)return!0;if(!(e instanceof t))return!1;if(this.hashCode()!==e.hashCode())return!1;let r=e;return this.equalsImpl(r,new i.Array2DHashSet)}equalsImpl(t,e){let r=[],n=[];for(r.push(this),n.push(t);;){let t=r.pop(),i=n.pop();if(!t||!i)break;let s=new l.PredictionContextCache.IdentityCommutativePredictionContextOperands(t,i);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),i=s.y.getParent(t);if(e.hashCode()!==i.hashCode())return!1;e!==i&&(r.push(e),n.push(i))}}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 n.Array2DHashMap{constructor(){super(i.INSTANCE)}}t.IdentityHashMap=r;class i{IdentityEqualityComparator(){}hashCode(t){return t.hashCode()}equals(t,e){return t===e}}i.INSTANCE=new i,e([a.Override],i.prototype,"hashCode",null),e([a.Override],i.prototype,"equals",null),t.IdentityEqualityComparator=i}(u=t.PredictionContext||(t.PredictionContext={}))})),Ct=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ATNConfig=void 0;var n=Et(),i=Nt(),s=ot(),o=Q(),a=at(),l=Rt(),c=pt(),u=J(),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,n,i=c.SemanticContext.NONE,s){return i!==c.SemanticContext.NONE?null!=s?new y(s,i,e,r,n,!1):new f(i,e,r,n):null!=s?new _(s,e,r,n,!1):new t(e,r,n)}get state(){return this._state}get alt(){return 16777215&this.altAndOuterContextDepth}get context(){return this._context}set context(t){this._context=t}get reachesIntoOuterContext(){return 0!==this.outerContextDepth}get outerContextDepth(){return this.altAndOuterContextDepth>>>24&127}set outerContextDepth(t){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,n,i,s){let o=i&&t.checkNonGreedyDecision(this,e);return n!==c.SemanticContext.NONE?null!=s||o?new y(s,n,e,this,r,o):new f(n,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 i.DecisionState&&e.nonGreedy}appendContext(t,e){if("number"==typeof t){let r=this.context.appendSingleContext(t,e);return this.transform(this.state,!1,r)}{let r=this.context.appendContext(t,e);return this.transform(this.state,!1,r)}}contains(t){if(this.state.stateNumber!==t.state.stateNumber||this.alt!==t.alt||!this.semanticContext.equals(t.semanticContext))return!1;let e=[],r=[];for(e.push(this.context),r.push(t.context);;){let t=e.pop(),n=r.pop();if(!t||!n)break;if(t===n)return!0;if(t.size<n.size)return!1;if(n.isEmpty)return t.hasEmpty;for(let i=0;i<n.size;i++){let s=t.findReturnState(n.getReturnState(i));if(s<0)return!1;e.push(t.getParent(s)),r.push(n.getParent(i))}}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 n.Array2DHashMap(l.PredictionContext.IdentityEqualityComparator.INSTANCE),r=[];function i(t){let n=e.size,i=e.putIfAbsent(t,n);return null!=i?i:(r.push(t),n)}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"+i(e),t+="->",t+="s"+i(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 n,i="";n=r?this.context.toStrings(t,this.state.stateNumber):["?"];let s=!0;for(let t of n)s?s=!1:i+=", ",i+="(",i+=this.state,e&&(i+=",",i+=this.alt),this.context&&(i+=",",i+=t),this.semanticContext!==c.SemanticContext.NONE&&(i+=",",i+=this.semanticContext),this.reachesIntoOuterContext&&(i+=",up="+this.outerContextDepth),i+=")";return i.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,n){super(e,r,n),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,n,i){if("number"==typeof r)super(e,r,n);else if(super(e,r,n),r.semanticContext!==c.SemanticContext.NONE)throw new Error("Not supported");this._lexerActionExecutor=t,this.passedThroughNonGreedyDecision=i}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,n,i,s){super(e,r,n,i),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)})),Ot=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.BitSet=void 0;var e=k(),r=ot(),n=new Uint16Array(0);function i(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(i(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(i(e-1)+1);for(let e of t)this.set(e)}else this.data=n}and(t){const e=this.data,r=t.data,i=Math.min(e.length,r.length);let s=-1;for(let t=0;t<i;t++)0!=(e[t]&=r[t])&&(s=t);-1===s&&(this.data=n),s<e.length-1&&(this.data=e.slice(0,s+1))}andNot(t){const e=this.data,r=t.data,i=Math.min(e.length,r.length);let s=-1;for(let t=0;t<i;t++)0!=(e[t]&=65535^r[t])&&(s=t);-1===s&&(this.data=n),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 n=0;n<e;n++)r+=c[t[n]];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=i(t);const n=i(e);if(r===n)this.data[r]^=l(t,e);else{for(this.data[r++]^=l(t,15);r<n;)this.data[r++]^=65535;this.data[r++]^=l(0,e)}}get(t,e){if(void 0===e)return!!(this.data[i(t)]&l(t,t));{let r=new u(e+1);for(let n=t;n<=e;n++)r.set(n,this.get(n));return r}}intersects(t){let e=Math.min(this.length(),t.length());if(0===e)return!1;let r=i(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 n=i(t);if(n>r)return-1;let a=65535^l(t,15);if(65535==(e[n]|a)){for(n++,a=0;n<r&&65535===e[n];n++);if(n===r)return-1}return s(n)+o(65535^(e[n]|a))}nextSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=i(t);if(n>r)return-1;let a=l(t,15);if(0==(e[n]&a)){for(n++,a=65535;n<r&&0===e[n];n++);if(n>=r)return-1}return s(n)+o(e[n]&a)}or(t){const e=this.data,r=t.data,i=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<i;t++)0!=(o[t]=e[t]|r[t])&&(a=t);const l=e.length>r.length?e:r;for(let t=i;t<s;t++)0!==(o[t]=l[t])&&(a=t);-1===a?this.data=n: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 n=i(t);n>=r&&(n=r-1);let o=65535^l(0,t);if(65535==(e[n]|o)){for(o=0,n--;n>=0&&65535===e[n];n--);if(n<0)return-1}return s(n)+a(65535^(e[n]|o))}previousSetBit(t){if(t<0)throw new RangeError("fromIndex cannot be negative");const e=this.data,r=e.length;let n=i(t);n>=r&&(n=r-1);let o=l(0,t);if(0==(e[n]&o)){for(n--,o=65535;n>=0&&0===e[n];n--);if(n<0)return-1}return s(n)+a(e[n]&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 n=i(t),s=i(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(n>=this.data.length)return;s>=this.data.length&&(s=this.data.length-1,e=16*this.data.length-1)}if(n===s)this._setBits(n,r,l(t,e));else{for(this._setBits(n++,r,l(t,15));n<s;)this.data[n++]=r?65535:0;this._setBits(n,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=i(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,i=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<i;t++)0!=(o[t]=e[t]^r[t])&&(a=t);const l=e.length>r.length?e:r;for(let t=i;t<s;t++)0!==(o[t]=l[t])&&(a=t);-1===a?this.data=n: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}}})),Lt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Et(),n=ct(),i=ut(),s=Wt(),o=Ct(),a=Ot(),l=Q(),c=at(),u=Rt(),h=At(),d=pt(),f=J(),_=ht(),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 n.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),n=this.mergedConfigs.get(r);if(null!=n&&this.canMerge(e,r,n))return n.contains(e);for(let e of this.unmerged)if(e.contains(t))return!0}else for(let e of this.configs)if(e.contains(t))return!0;return!1}*[Symbol.iterator](){yield*this.configs}toArray(){return this.configs}add(t,e){if(this.ensureWritable(),!this.mergedConfigs||!this.unmerged)throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");let r;f(!this.outermostConfigSet||!t.reachesIntoOuterContext),null==e&&(e=h.PredictionContextCache.UNCACHED);let n=this.getKey(t),i=this.mergedConfigs.get(n);if(r=null==i,null!=i&&this.canMerge(t,n,i)){i.outerContextDepth=Math.max(i.outerContextDepth,t.outerContextDepth),t.isPrecedenceFilterSuppressed&&(i.isPrecedenceFilterSuppressed=!0);let r=u.PredictionContext.join(i.context,t.context,e);return this.updatePropertiesForMergedConfig(t),i.context!==r&&(i.context=r,!0)}for(let i=0;i<this.unmerged.length;i++){let s=this.unmerged[i];if(this.canMerge(t,n,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(n,s),this.unmerged.splice(i,1)),!0)}}return this.configs.push(t),r?this.mergedConfigs.put(n,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 n of t)this.add(n,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)&&i.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^i.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 n=0;n<r.length;n++)n>0&&(e+=", "),e+=r[n].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})),wt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DFAState=void 0;var n=Wt(),i=Ot(),s=ot(),o=Q(),a=Rt(),l=J(),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 i.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:n.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 n=class{constructor(t,e){this.alt=e,this.pred=t}toString(){return"("+this.pred+", "+this.alt+")"}};e([o.NotNull],n.prototype,"pred",void 0),e([o.Override],n.prototype,"toString",null),n=e([r(0,o.NotNull)],n),t.PredPrediction=n}(c=t.DFAState||(t.DFAState={}))})),It=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ATNSimulator=void 0;var n=Lt(),i=wt(),s=Q(),o=Rt(),a=class t{constructor(t){this.atn=t}static get ERROR(){return t._ERROR||(t._ERROR=new i.DFAState(new n.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})),Pt=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleErrorListener=void 0;var e=class{syntaxError(t,e,r,n,i,s){console.error(`line ${r}:${n} ${i}`)}};t.ConsoleErrorListener=e,e.INSTANCE=new e})),kt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyErrorListener=void 0;var n=Q(),i=class{constructor(t){if(this.delegates=t,!t)throw new Error("Invalid delegates")}getDelegates(){return this.delegates}syntaxError(t,e,r,n,i,s){this.delegates.forEach((o=>{o.syntaxError&&o.syntaxError(t,e,r,n,i,s)}))}};e([n.Override,r(0,n.NotNull),r(4,n.NotNull)],i.prototype,"syntaxError",null),t.ProxyErrorListener=i})),Dt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Recognizer=void 0;var n=Pt(),i=kt(),s=Q(),o=xt(),a=ht(),l=class{constructor(){this._listeners=[n.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 n=t.getLiteralName(e);null!=n&&r.set(n,e);let i=t.getSymbolicName(e);null!=i&&r.set(i,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 i.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})),Ft=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=xt(),i=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===n.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))}};i.EMPTY_VOCABULARY=new i([],[],[]),e([r.NotNull],i.prototype,"literalNames",void 0),e([r.NotNull],i.prototype,"symbolicNames",void 0),e([r.NotNull],i.prototype,"displayNames",void 0),e([r.Override],i.prototype,"maxTokenType",null),e([r.Override],i.prototype,"getLiteralName",null),e([r.Override],i.prototype,"getSymbolicName",null),e([r.Override,r.NotNull],i.prototype,"getDisplayName",null),e([r.NotNull],i,"EMPTY_VOCABULARY",void 0),t.VocabularyImpl=i})),Mt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=It(),n=Q(),i=Rt(),s=Dt(),o=Ft(),a=class{constructor(t,e,r,n){e instanceof s.Recognizer?(r=e.ruleNames,n=e.atn,e=e.vocabulary):e||(e=o.VocabularyImpl.EMPTY_VOCABULARY),this.dfa=t,this.vocabulary=e,this.ruleNames=r,this.atn=n}toString(){if(!this.dfa.s0)return"";let t="";if(this.dfa.states){let e=new Array(...this.dfa.states.toArray());e.sort(((t,e)=>t.stateNumber-e.stateNumber));for(let n of e){let e=n.getEdgeMap(),i=[...e.keys()].sort(((t,e)=>t-e)),s=n.getContextEdgeMap(),o=[...s.keys()].sort(((t,e)=>t-e));for(let s of i){let i=e.get(s);if((null==i||i===r.ATNSimulator.ERROR)&&!n.isContextSymbol(s))continue;let o=!1;t+=this.getStateString(n)+"-"+this.getEdgeLabel(s)+"->",n.isContextSymbol(s)&&(t+="!",o=!0);let a=i;a&&a.stateNumber!==r.ATNSimulator.ERROR.stateNumber?t+=this.getStateString(a)+"\n":o&&(t+="ctx\n")}if(n.isContextSensitive)for(let e of o)t+=this.getStateString(n)+"-"+this.getContextLabel(e)+"->"+this.getStateString(s.get(e))+"\n"}}let e=t;return 0===e.length?"":e}getContextLabel(t){if(t===i.PredictionContext.EMPTY_FULL_STATE_KEY)return"ctx:EMPTY_FULL";if(t===i.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,n="s"+e;if(t.isAcceptState&&(n=t.predicates?":s"+e+"=>"+t.predicates:":s"+e+"=>"+t.prediction),t.isContextSensitive){n+="*";for(let e of t.configs)if(e.reachesIntoOuterContext){n+="*";break}}return n}};e([n.NotNull],a.prototype,"dfa",void 0),e([n.NotNull],a.prototype,"vocabulary",void 0),e([n.Override],a.prototype,"toString",null),t.DFASerializer=a})),Ut=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerDFASerializer=void 0;var n=Mt(),i=Q(),s=Ft(),o=class extends n.DFASerializer{constructor(t){super(t,s.VocabularyImpl.EMPTY_VOCABULARY)}getEdgeLabel(t){return"'"+String.fromCodePoint(t)+"'"}};e([i.Override,i.NotNull],o.prototype,"getEdgeLabel",null),o=e([r(0,i.NotNull)],o),t.LexerDFASerializer=o})),jt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=rt(),n=Ot(),i=Nt(),s=Q(),o=class extends i.DecisionState{constructor(){super(...arguments),this.precedenceRuleDecision=!1,this.precedenceLoopbackStates=new n.BitSet}get stateType(){return r.ATNStateType.STAR_LOOP_ENTRY}};e([s.Override],o.prototype,"stateType",null),t.StarLoopEntryState=o})),Ht=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DFA=void 0;var n=ct(),i=Lt(),s=Mt(),o=wt(),a=Ut(),l=Q(),c=at(),u=jt(),h=Ft(),d=class{constructor(t,e=0){if(this.states=new n.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 i.ATNConfigSet),this.s0full=new o.DFAState(new i.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})),Bt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=et(),n=rt(),i=Q(),s=class extends r.ATNState{get stateType(){return n.ATNStateType.BASIC}};e([i.Override],s.prototype,"stateType",null),t.BasicState=s})),Kt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=rt(),n=Bt(),i=Q(),s=class extends n.BasicState{get stateType(){return r.ATNStateType.INVALID_TYPE}};e([i.Override],s.prototype,"stateType",null),t.InvalidState=s})),zt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SetTransition=void 0;var n=re(),i=Q(),s=xt(),o=it(),a=class extends o.Transition{constructor(t,e){super(t),null==e&&(e=n.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([i.NotNull],a.prototype,"set",void 0),e([i.Override],a.prototype,"serializationType",null),e([i.Override,i.NotNull],a.prototype,"label",null),e([i.Override],a.prototype,"matches",null),e([i.Override,i.NotNull],a.prototype,"toString",null),a=e([r(0,i.NotNull),r(1,i.Nullable)],a),t.SetTransition=a})),Vt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NotSetTransition=void 0;var n=Q(),i=zt(),s=class extends i.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([n.Override],s.prototype,"serializationType",null),e([n.Override],s.prototype,"matches",null),e([n.Override],s.prototype,"toString",null),s=e([r(0,n.NotNull),r(1,n.Nullable)],s),t.NotSetTransition=s})),Gt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=et(),n=rt(),i=Q(),s=class extends r.ATNState{get nonStopStateNumber(){return-1}get stateType(){return n.ATNStateType.RULE_STOP}};e([i.Override],s.prototype,"nonStopStateNumber",null),e([i.Override],s.prototype,"stateType",null),t.RuleStopState=s})),qt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RuleTransition=void 0;var n=Q(),i=it(),s=class extends i.Transition{constructor(t,e,r,n){super(t),this.tailCall=!1,this.optimizedTailCall=!1,this.ruleIndex=e,this.precedence=r,this.followState=n}get serializationType(){return 3}get isEpsilon(){return!0}matches(t,e,r){return!1}};e([n.NotNull],s.prototype,"followState",void 0),e([n.Override],s.prototype,"serializationType",null),e([n.Override],s.prototype,"isEpsilon",null),e([n.Override],s.prototype,"matches",null),s=e([r(0,n.NotNull),r(3,n.NotNull)],s),t.RuleTransition=s})),$t=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.WildcardTransition=void 0;var n=Q(),i=it(),s=class extends i.Transition{constructor(t){super(t)}get serializationType(){return 9}matches(t,e,r){return t>=e&&t<=r}toString(){return"."}};e([n.Override],s.prototype,"serializationType",null),e([n.Override],s.prototype,"matches",null),e([n.Override,n.NotNull],s.prototype,"toString",null),s=e([r(0,n.NotNull)],s),t.WildcardTransition=s})),Yt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LL1Analyzer=void 0;var n=st(),i=ct(),s=Ct(),o=Ot(),a=re(),l=Q(),c=Vt(),u=at(),h=Rt(),d=Gt(),f=qt(),_=xt(),y=$t(),g=class t{constructor(t){this.atn=t}getDecisionLookahead(e){if(null==e)return;let r=new Array(e.numberOfTransitions);for(let n=0;n<e.numberOfTransitions;n++){let s=new a.IntervalSet;r[n]=s;let l=new i.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE),c=!1;this._LOOK(e.transition(n).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[n]=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 n=new a.IntervalSet;return this._LOOK(t,r,e,n,new i.Array2DHashSet,new o.BitSet,!0,!0),n}_LOOK(e,r,i,o,l,u,p,g){let m=s.ATNConfig.create(e,0,i);if(!l.add(m))return;if(e===r){if(h.PredictionContext.isEmptyLocal(i))return void o.add(_.Token.EPSILON);if(i.isEmpty)return void(g&&o.add(_.Token.EOF))}if(e instanceof d.RuleStopState){if(i.isEmpty&&!h.PredictionContext.isEmptyLocal(i))return void(g&&o.add(_.Token.EOF));let t=u.get(e.ruleIndex);try{u.clear(e.ruleIndex);for(let t=0;t<i.size;t++){if(i.getReturnState(t)===h.PredictionContext.EMPTY_FULL_STATE_KEY)continue;let e=this.atn.states[i.getReturnState(t)];this._LOOK(e,r,i.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=i.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 n.AbstractPredicateTransition)p?this._LOOK(h.target,r,i,o,l,u,p,g):o.add(t.HIT_PRED);else if(h.isEpsilon)this._LOOK(h.target,r,i,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})),Wt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ATN=void 0;var n=Et(),i=Ht(),s=re(),o=Kt(),a=Yt(),l=Q(),c=at(),u=Rt(),h=xt(),d=J(),f=class{constructor(t,e){this.states=[],this.decisionToState=[],this.modeNameToStartState=new Map,this.modeToStartState=[],this.contextCache=new n.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 i.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 i.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 i.DFA(e)),this.defineDecisionState(e)}defineDecisionState(t){return this.decisionToState.push(t),t.decision=this.decisionToState.length-1,this.decisionToDFA.push(new i.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,n=this.states[t],i=this.nextTokens(n);if(!i.contains(h.Token.EPSILON))return i;let o=new s.IntervalSet;for(o.addAll(i),o.remove(h.Token.EPSILON);null!=r&&r.invokingState>=0&&i.contains(h.Token.EPSILON);){let t=this.states[r.invokingState].transition(0);i=this.nextTokens(t.followState),o.addAll(i),o.remove(h.Token.EPSILON),r=r._parent}return i.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})),Xt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerIndexedCustomAction=void 0;var n=ot(),i=Q(),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=n.MurmurHash.initialize();return t=n.MurmurHash.update(t,this._offset),t=n.MurmurHash.update(t,this._action),n.MurmurHash.finish(t,2)}equals(e){return e===this||e instanceof t&&this._offset===e._offset&&this._action.equals(e._action)}};e([i.NotNull],s.prototype,"action",null),e([i.Override],s.prototype,"actionType",null),e([i.Override],s.prototype,"isPositionDependent",null),e([i.Override],s.prototype,"execute",null),e([i.Override],s.prototype,"hashCode",null),e([i.Override],s.prototype,"equals",null),s=e([r(1,i.NotNull)],s),t.LexerIndexedCustomAction=s})),Jt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerActionExecutor=void 0;var n=ut(),i=Xt(),s=ot(),o=Q(),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 n=e._lexerActions.slice(0);return n.push(r),new t(n)}fixOffsetBeforeMatch(e){let r;for(let t=0;t<this._lexerActions.length;t++)!this._lexerActions[t].isPositionDependent||this._lexerActions[t]instanceof i.LexerIndexedCustomAction||(r||(r=this._lexerActions.slice(0)),r[t]=new i.LexerIndexedCustomAction(e,this._lexerActions[t]));return r?new t(r):this}get lexerActions(){return this._lexerActions}execute(t,e,r){let n=!1,s=e.index;try{for(let o of this._lexerActions){if(o instanceof i.LexerIndexedCustomAction){let t=o.offset;e.seek(r+t),o=o.action,n=r+t!==s}else o.isPositionDependent&&(e.seek(s),n=!1);o.execute(t)}}finally{n&&e.seek(s)}}hashCode(){return this.cachedHashCode}equals(e){return e===this||e instanceof t&&this.cachedHashCode===e.cachedHashCode&&n.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})),Qt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerNoViableAltException=void 0;var n=nt(),i=Q(),s=mt(),o=ht(),a=class extends n.RecognitionException{constructor(t,e,r,n){super(t,e),this._startIndex=r,this._deadEndConfigs=n}get startIndex(){return this._startIndex}get deadEndConfigs(){return this._deadEndConfigs}get inputStream(){return super.inputStream}toString(){let t="";return this._startIndex>=0&&this._startIndex<this.inputStream.size&&(t=this.inputStream.getText(s.Interval.of(this._startIndex,this._startIndex)),t=o.escapeWhitespace(t,!1)),`LexerNoViableAltException('${t}')`}};e([i.Override],a.prototype,"inputStream",null),e([i.Override],a.prototype,"toString",null),a=e([r(1,i.NotNull)],a),t.LexerNoViableAltException=a})),Zt=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Lt(),n=Q(),i=class extends r.ATNConfigSet{constructor(t,e){null!=t&&null!=e?super(t,e):super()}clone(t){let e=new i(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([n.Override],i.prototype,"clone",null),e([n.Override],i.prototype,"getKey",null),e([n.Override],i.prototype,"canMerge",null),t.OrderedATNConfigSet=i})),te=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerATNSimulator=void 0;var n,i=bt(),s=Wt(),o=Ct(),a=Lt(),l=It(),c=wt(),u=mt(),h=Z(),d=ee(),f=Jt(),_=Qt(),y=Q(),g=Zt(),m=Rt(),x=Gt(),T=xt(),v=J(),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 n=this.atn.modeToDFA[e].s0;return null==n?this.matchATN(t):this.execATN(t,n)}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 n=this.mode,i=this.computeStartState(e,r),s=i.hasSemanticContext;s&&(i.hasSemanticContext=!1);let o=this.addDFAState(i);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[n].toLexerString()}`),a}execATN(e,r){t.debug&&console.log(`start state closure=${r.configs}`),r.isAcceptState&&this.captureSimState(this.prevAccept,e,r);let n=e.LA(1),i=r;for(;;){t.debug&&console.log(`execATN loop starting closure: ${i.configs}`);let r=this.getExistingTargetState(i,n);if(null==r&&(r=this.computeTargetState(e,i,n)),r===l.ATNSimulator.ERROR)break;if(n!==h.IntStream.EOF&&this.consume(e),r.isAcceptState&&(this.captureSimState(this.prevAccept,e,r),n===h.IntStream.EOF))break;n=e.LA(1),i=r}return this.failOrAccept(this.prevAccept,e,i.configs,n)}getExistingTargetState(e,r){let n=e.getTarget(r);return t.debug&&null!=n&&console.log("reuse state "+e.stateNumber+" edge to "+n.stateNumber),n}computeTargetState(t,e,r){let n=new g.OrderedATNConfigSet;return this.getReachableConfigSet(t,e.configs,n,r),n.isEmpty?(n.hasSemanticContext||this.addDFAEdge(e,r,l.ATNSimulator.ERROR),l.ATNSimulator.ERROR):this.addDFAEdge(e,r,n)}failOrAccept(t,e,r,n){if(null!=t.dfaState){let r=t.dfaState.lexerActionExecutor;return this.accept(e,r,this.startIndex,t.index,t.line,t.charPos),t.dfaState.prediction}if(n===h.IntStream.EOF&&e.index===this.startIndex)return T.Token.EOF;throw new _.LexerNoViableAltException(this.recog,e,this.startIndex,r)}getReachableConfigSet(e,r,n,i){let o=s.ATN.INVALID_ALT_NUMBER;for(let s of r){let r=s.alt===o;if(r&&s.hasPassedThroughNonGreedyDecision)continue;t.debug&&console.log(`testing ${this.getTokenName(i)} at ${s.toString(this.recog,!0)}`);let a=s.state.numberOfOptimizedTransitions;for(let t=0;t<a;t++){let a=s.state.getOptimizedTransition(t),l=this.getReachableTarget(a,i);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=i===h.IntStream.EOF;if(this.closure(e,t,n,r,!0,c)){o=s.alt;break}}}}}accept(e,r,n,i,s,o){t.debug&&console.log(`ACTION ${r}`),e.seek(i),this._line=s,this._charPositionInLine=o,null!=r&&null!=this.recog&&r.execute(this.recog,e,n)}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,n=new g.OrderedATNConfigSet;for(let i=0;i<e.numberOfTransitions;i++){let s=e.transition(i).target,a=o.ATNConfig.create(s,i+1,r);this.closure(t,a,n,!1,!1,!1)}return n}closure(e,r,n,i,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 n.add(r),!0;a.hasEmpty&&(n.add(r.transform(r.state,!0,m.PredictionContext.EMPTY_FULL)),i=!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);i=this.closure(e,h,n,i,s,o)}return i}r.state.onlyHasEpsilonTransitions||i&&r.hasPassedThroughNonGreedyDecision||n.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,n,s,o);null!=c&&(i=this.closure(e,c,n,i,s,o))}return i}getEpsilonTarget(e,r,n,i,s,o){let a;switch(n.serializationType){case 3:let l=n;if(this.optimize_tail_calls&&l.optimizedTailCall&&!r.context.hasEmpty)a=r.transform(n.target,!0);else{let t=r.context.getChild(l.followState.stateNumber);a=r.transform(n.target,!0,t)}break;case 10:throw new Error("Precedence predicates are not supported in lexers.");case 4:let c=n;t.debug&&console.log("EVAL rule "+c.ruleIndex+":"+c.predIndex),i.hasSemanticContext=!0,a=this.evaluatePredicate(e,c.ruleIndex,c.predIndex,s)?r.transform(n.target,!0):void 0;break;case 6:if(r.context.hasEmpty){let t=f.LexerActionExecutor.append(r.lexerActionExecutor,this.atn.lexerActions[n.actionIndex]);a=r.transform(n.target,!0,t);break}a=r.transform(n.target,!0);break;case 1:a=r.transform(n.target,!0);break;case 5:case 2:case 7:if(o&&n.matches(h.IntStream.EOF,d.Lexer.MIN_CHAR_VALUE,d.Lexer.MAX_CHAR_VALUE)){a=r.transform(n.target,!1);break}a=void 0;break;default:a=void 0}return a}evaluatePredicate(t,e,r,n){if(null==this.recog)return!0;if(!n)return this.recog.sempred(void 0,e,r);let i=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=i,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,n){if(n instanceof a.ATNConfigSet){let t=n.hasSemanticContext;t&&(n.hasSemanticContext=!1);let i=this.addDFAState(n);return t||this.addDFAEdge(e,r,i),i}t.debug&&console.log("EDGE "+e+" -> "+n+" upon "+String.fromCharCode(r)),null!=e&&e.setTarget(r,n)}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 n,s=new c.DFAState(t.clone(!0));for(let e of t)if(e.state instanceof x.RuleStopState){n=e;break}if(null!=n){let t=this.atn.ruleToTokenType[n.state.ruleIndex],e=n.lexerActionExecutor;s.acceptStateInfo=new i.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,(n=S=t.LexerATNSimulator||(t.LexerATNSimulator={})).debug=!1,n.dfa_debug=!1,n.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})),ee=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=vt(),n=St(),i=mt(),s=Z(),o=te(),a=Qt(),l=Q(),c=Dt(),u=xt(),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 n.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(i.Interval.of(this._tokenStartCharIndex,this._input.index)),r="token recognition error at: '"+this.getErrorDisplay(e)+"'",n=this.getErrorListenerDispatch();n.syntaxError&&n.syntaxError(this,void 0,this._tokenStartLine,this._tokenStartCharPositionInLine,r,t)}getErrorDisplay(t){if("number"==typeof t){switch(t){case 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})),re=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.IntervalSet=void 0;var n=ut(),i=gt(),s=mt(),o=ee(),a=ot(),l=Q(),c=xt(),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 n=t.union(r);for(this._intervals[e]=n;e<this._intervals.length-1;){e++;let t=this._intervals[e];if(!n.adjacent(t)&&n.disjoint(t))break;this._intervals.splice(e,1),e--,this._intervals[e]=n.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 n=0,i=0;for(;n<r._intervals.length&&i<e._intervals.length;){let t,o,a=r._intervals[n],l=e._intervals[i];if(l.b<a.a)i++;else if(l.a>a.b)n++;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[n]=t,r._intervals.splice(n+1,0,o),n++,i++;continue}r._intervals[n]=t,n++}else o?(r._intervals[n]=o,i++):r._intervals.splice(n,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,n=t._intervals,i=r.length,s=n.length,o=0,a=0;for(;o<i&&a<s;){let t=r[o],i=n[a];t.startsBeforeDisjoint(i)?o++:i.startsBeforeDisjoint(t)?a++:t.properlyContains(i)?(e||(e=new u),e.addRange(t.intersection(i)),a++):i.properlyContains(t)?(e||(e=new u),e.addRange(t.intersection(i)),o++):t.disjoint(i)||(e||(e=new u),e.addRange(t.intersection(i)),t.startsAfterNonDisjoint(i)?a++:i.startsAfterNonDisjoint(t)&&o++)}return e||new u}contains(t){let e=0,r=this._intervals.length-1;for(;e<=r;){let n=e+r>>1,i=this._intervals[n],s=i.a;if(i.b<t)e=n+1;else{if(!(s>t))return!0;r=n-1}}return!1}get isNil(){return null==this._intervals||0===this._intervals.length}get maxElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[this._intervals.length-1].b}get minElement(){if(this.isNil)throw new RangeError("set is empty");return this._intervals[0].a}get intervals(){return this._intervals}hashCode(){let t=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&&n.ArrayEqualityComparator.INSTANCE.equals(this._intervals,t._intervals)}toString(t=!1){let e="";if(null==this._intervals||0===this._intervals.length)return"{}";this.size>1&&(e+="{");let r=!0;for(let n of this._intervals){r?r=!1:e+=", ";let i=n.a,s=n.b;i===s?i===c.Token.EOF?e+="<EOF>":e+=t?"'"+String.fromCodePoint(i)+"'":i:e+=t?"'"+String.fromCodePoint(i)+"'..'"+String.fromCodePoint(s)+"'":i+".."+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 n of this._intervals){r?r=!1:e+=", ";let i=n.a,s=n.b;if(i===s)e+=this.elementName(t,i);else for(let r=i;r<=s;r++)r>i&&(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 i.IntegerList(this.size),e=this._intervals.length;for(let r=0;r<e;r++){let e=this._intervals[r],n=e.a,i=e.b;for(let e=n;e<=i;e++)t.add(e)}return t}toSet(){let t=new Set;for(let e of this._intervals){let r=e.a,n=e.b;for(let e=r;e<=n;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],n=e.a,i=e.b;for(let e=n;e<=i;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],n=e.a,i=e.b;if(t<n)break;if(t===n&&t===i){this._intervals.splice(r,1);break}if(t===n){this._intervals[r]=s.Interval.of(e.a+1,e.b);break}if(t===i){this._intervals[r]=s.Interval.of(e.a,e.b-1);break}if(t>n&&t<i){let n=e.b;this._intervals[r]=s.Interval.of(e.a,t-1),this.add(t+1,n)}}}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})),ne=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=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==n._defaultOptions&&(n._defaultOptions=new n,n._defaultOptions.makeReadOnly()),n._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],n,"defaultOptions",null),t.ATNDeserializationOptions=n})),ie=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ActionTransition=void 0;var n=Q(),i=it(),s=class extends i.Transition{constructor(t,e,r=-1,n=!1){super(t),this.ruleIndex=e,this.actionIndex=r,this.isCtxDependent=n}get serializationType(){return 6}get isEpsilon(){return!0}matches(t,e,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}};e([n.Override],s.prototype,"serializationType",null),e([n.Override],s.prototype,"isEpsilon",null),e([n.Override],s.prototype,"matches",null),e([n.Override],s.prototype,"toString",null),s=e([r(0,n.NotNull)],s),t.ActionTransition=s})),se=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AtomTransition=void 0;var n=re(),i=Q(),s=it(),o=class extends s.Transition{constructor(t,e){super(t),this._label=e}get serializationType(){return 5}get label(){return n.IntervalSet.of(this._label)}matches(t,e,r){return this._label===t}toString(){return String(this.label)}};e([i.Override],o.prototype,"serializationType",null),e([i.Override,i.NotNull],o.prototype,"label",null),e([i.Override],o.prototype,"matches",null),e([i.Override,i.NotNull],o.prototype,"toString",null),o=e([r(0,i.NotNull)],o),t.AtomTransition=o})),oe=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStartState=void 0;var e=Nt(),r=class extends e.DecisionState{};t.BlockStartState=r})),ae=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=rt(),n=oe(),i=Q(),s=class extends n.BlockStartState{get stateType(){return r.ATNStateType.BLOCK_START}};e([i.Override],s.prototype,"stateType",null),t.BasicBlockStartState=s})),le=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=et(),n=rt(),i=Q(),s=class extends r.ATNState{get stateType(){return n.ATNStateType.BLOCK_END}};e([i.Override],s.prototype,"stateType",null),t.BlockEndState=s})),ce=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpsilonTransition=void 0;var n=Q(),i=it(),s=class extends i.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([n.Override],s.prototype,"serializationType",null),e([n.Override],s.prototype,"isEpsilon",null),e([n.Override],s.prototype,"matches",null),e([n.Override,n.NotNull],s.prototype,"toString",null),s=e([r(0,n.NotNull)],s),t.EpsilonTransition=s})),ue=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerChannelAction=void 0;var n=ot(),i=Q(),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=n.MurmurHash.initialize();return t=n.MurmurHash.update(t,this.actionType),t=n.MurmurHash.update(t,this._channel),n.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof s&&this._channel===t._channel}toString(){return`channel(${this._channel})`}};e([i.Override],s.prototype,"actionType",null),e([i.Override],s.prototype,"isPositionDependent",null),e([i.Override,r(0,i.NotNull)],s.prototype,"execute",null),e([i.Override],s.prototype,"hashCode",null),e([i.Override],s.prototype,"equals",null),e([i.Override],s.prototype,"toString",null),t.LexerChannelAction=s})),he=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerCustomAction=void 0;var n=ot(),i=Q(),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=n.MurmurHash.initialize();return t=n.MurmurHash.update(t,this.actionType),t=n.MurmurHash.update(t,this._ruleIndex),t=n.MurmurHash.update(t,this._actionIndex),n.MurmurHash.finish(t,3)}equals(t){return t===this||t instanceof s&&this._ruleIndex===t._ruleIndex&&this._actionIndex===t._actionIndex}};e([i.Override],s.prototype,"actionType",null),e([i.Override],s.prototype,"isPositionDependent",null),e([i.Override,r(0,i.NotNull)],s.prototype,"execute",null),e([i.Override],s.prototype,"hashCode",null),e([i.Override],s.prototype,"equals",null),t.LexerCustomAction=s})),pe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerModeAction=void 0;var n=ot(),i=Q(),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=n.MurmurHash.initialize();return t=n.MurmurHash.update(t,this.actionType),t=n.MurmurHash.update(t,this._mode),n.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof s&&this._mode===t._mode}toString(){return`mode(${this._mode})`}};e([i.Override],s.prototype,"actionType",null),e([i.Override],s.prototype,"isPositionDependent",null),e([i.Override,r(0,i.NotNull)],s.prototype,"execute",null),e([i.Override],s.prototype,"hashCode",null),e([i.Override],s.prototype,"equals",null),e([i.Override],s.prototype,"toString",null),t.LexerModeAction=s})),de=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerMoreAction=void 0;var n,i=ot(),s=Q(),o=class{constructor(){}get actionType(){return 3}get isPositionDependent(){return!1}execute(t){t.more()}hashCode(){let t=i.MurmurHash.initialize();return t=i.MurmurHash.update(t,this.actionType),i.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,(n=o=t.LexerMoreAction||(t.LexerMoreAction={})).INSTANCE=new n})),fe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerPopModeAction=void 0;var n,i=ot(),s=Q(),o=class{constructor(){}get actionType(){return 4}get isPositionDependent(){return!1}execute(t){t.popMode()}hashCode(){let t=i.MurmurHash.initialize();return t=i.MurmurHash.update(t,this.actionType),i.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,(n=o=t.LexerPopModeAction||(t.LexerPopModeAction={})).INSTANCE=new n})),_e=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerPushModeAction=void 0;var n=ot(),i=Q(),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=n.MurmurHash.initialize();return t=n.MurmurHash.update(t,this.actionType),t=n.MurmurHash.update(t,this._mode),n.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof s&&this._mode===t._mode}toString(){return`pushMode(${this._mode})`}};e([i.Override],s.prototype,"actionType",null),e([i.Override],s.prototype,"isPositionDependent",null),e([i.Override,r(0,i.NotNull)],s.prototype,"execute",null),e([i.Override],s.prototype,"hashCode",null),e([i.Override],s.prototype,"equals",null),e([i.Override],s.prototype,"toString",null),t.LexerPushModeAction=s})),ye=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerSkipAction=void 0;var n,i=ot(),s=Q(),o=class{constructor(){}get actionType(){return 6}get isPositionDependent(){return!1}execute(t){t.skip()}hashCode(){let t=i.MurmurHash.initialize();return t=i.MurmurHash.update(t,this.actionType),i.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,(n=o=t.LexerSkipAction||(t.LexerSkipAction={})).INSTANCE=new n})),ge=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerTypeAction=void 0;var n=ot(),i=Q(),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=n.MurmurHash.initialize();return t=n.MurmurHash.update(t,this.actionType),t=n.MurmurHash.update(t,this._type),n.MurmurHash.finish(t,2)}equals(t){return t===this||t instanceof s&&this._type===t._type}toString(){return`type(${this._type})`}};e([i.Override],s.prototype,"actionType",null),e([i.Override],s.prototype,"isPositionDependent",null),e([i.Override,r(0,i.NotNull)],s.prototype,"execute",null),e([i.Override],s.prototype,"hashCode",null),e([i.Override],s.prototype,"equals",null),e([i.Override],s.prototype,"toString",null),t.LexerTypeAction=s})),me=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=et(),n=rt(),i=Q(),s=class extends r.ATNState{get stateType(){return n.ATNStateType.LOOP_END}};e([i.Override],s.prototype,"stateType",null),t.LoopEndState=s})),xe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=ht(),i=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 i&&this.isExact===t.isExact&&n.equals(this.conflictedAlts,t.conflictedAlts)}hashCode(){return this.conflictedAlts.hashCode()}};e([r.Override],i.prototype,"equals",null),e([r.Override],i.prototype,"hashCode",null),t.ConflictInfo=i})),Te=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=mt(),n=Q(),i=xt(),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===i.Token.EOF?"<EOF>":this._symbol.text||""}};e([n.Override],s.prototype,"getChild",null),e([n.Override],s.prototype,"parent",null),e([n.Override],s.prototype,"setParent",null),e([n.Override],s.prototype,"payload",null),e([n.Override],s.prototype,"sourceInterval",null),e([n.Override],s.prototype,"childCount",null),e([n.Override],s.prototype,"accept",null),e([n.Override],s.prototype,"text",null),e([n.Override],s.prototype,"toStringTree",null),e([n.Override],s.prototype,"toString",null),t.TerminalNode=s})),ve=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=Te(),i=class extends n.TerminalNode{constructor(t){super(t)}accept(t){return t.visitErrorNode(this)}};e([r.Override],i.prototype,"accept",null),t.ErrorNode=i})),Se=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.RuleNode=void 0,t.RuleNode=class{}})),be=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Trees=void 0;var n=Wt(),i=Tt(),s=ve(),o=Q(),a=Er(),l=Ne(),c=Se(),u=Te(),h=xt(),d=ht(),f=class{static toStringTree(t,e){let r;r=e instanceof a.Parser?e.ruleNames:e;let n=d.escapeWhitespace(this.getNodeText(t,r),!1);if(0===t.childCount)return n;let i="";i+="(",n=d.escapeWhitespace(this.getNodeText(t,r),!1),i+=n,i+=" ";for(let e=0;e<t.childCount;e++)e>0&&(i+=" "),i+=this.toStringTree(t.getChild(e),r);return i+=")",i}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,i=r[e.ruleIndex],s=e.altNumber;return s!==n.ATN.INVALID_ALT_NUMBER?i+":"+s:i}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 n=[];return f._findAllNodes(t,e,r,n),n}static _findAllNodes(t,e,r,n){r&&t instanceof u.TerminalNode?t.symbol.type===e&&n.push(t):!r&&t instanceof l.ParserRuleContext&&t.ruleIndex===e&&n.push(t);for(let i=0;i<t.childCount;i++)f._findAllNodes(t.getChild(i),e,r,n)}static getDescendants(t){let e=[];return function t(r){e.push(r);const n=r.childCount;for(let e=0;e<n;e++)t(r.getChild(e))}(t),e}static getRootOfSubtreeEnclosingRegion(t,e,r){let n=t.childCount;for(let i=0;i<n;i++){let n=t.getChild(i),s=f.getRootOfSubtreeEnclosingRegion(n,e,r);if(s)return s}if(t instanceof l.ParserRuleContext){let n=t.stop;if(e>=t.start.tokenIndex&&(null==n||r<=n.tokenIndex))return t}}static stripChildrenOutOfRange(t,e,r,n){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>n)&&f.isAncestorOf(s,e)){let e=new i.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 n=0;n<r;n++){let r=f.findNodeSuchThat(t.getChild(n),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})),Ee=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Wt(),n=Dt(),i=Se(),s=mt(),o=Q(),a=be(),l=Ne(),c=class extends i.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 n.Recognizer?t.ruleNames:t;e=e||l.ParserRuleContext.emptyContext();let i="",s=this;for(i+="[";s&&s!==e;){if(r){let t=s.ruleIndex;i+=t>=0&&t<r.length?r[t]:t.toString()}else s.isEmpty||(i+=s.invokingState);!s._parent||!r&&s._parent.isEmpty||(i+=" "),s=s._parent}return i+="]",i.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})),Ne=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=ve(),n=mt(),i=Q(),s=Ee(),o=Te(),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 n=new r.ErrorNode(e);return this.addAnyChild(n),n.setParent(this),n}}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 n of this.children)if(n instanceof e&&(r++,r===t))return n}getToken(t,e){let r=this.tryGetToken(t,e);if(void 0===r)throw new Error("The specified token does not exist");return r}tryGetToken(t,e){if(!this.children||e<0||e>=this.children.length)return;let r=-1;for(let n of this.children)if(n instanceof o.TerminalNode&&n.symbol.type===t&&(r++,r===e))return n}getTokens(t){let e=[];if(!this.children)return e;for(let r of this.children)r instanceof 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?n.Interval.of(this._start.tokenIndex,this._start.tokenIndex-1):n.Interval.of(this._start.tokenIndex,this._stop.tokenIndex):n.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([i.Override],a.prototype,"parent",null),e([i.Override],a.prototype,"childCount",null),e([i.Override],a.prototype,"sourceInterval",null),t.ParserRuleContext=a})),Ae=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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,n=Et(),i=ot(),s=Q(),o=Gt();(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 n.Array2DHashMap{constructor(){super(a.INSTANCE)}}class a{AltAndContextConfigEqualityComparator(){}hashCode(t){let e=i.MurmurHash.initialize(7);return e=i.MurmurHash.update(e,t.state.stateNumber),e=i.MurmurHash.update(e,t.context),e=i.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={}))})),Re=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SimulatorState=void 0;var n=Q(),i=Ne(),s=class{constructor(t,e,r,n){this.outerContext=null!=t?t:i.ParserRuleContext.emptyContext(),this.s0=e,this.useContext=r,this.remainingOuterContext=n}};s=e([r(1,n.NotNull)],s),t.SimulatorState=s})),Ce=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParserATNSimulator=void 0;var n=bt(),i=ie(),s=ct(),o=yt(),a=Wt(),l=Ct(),c=Lt(),u=It(),h=rt(),d=se(),f=Ot(),_=xe(),y=Nt(),g=wt(),m=gt(),x=mt(),T=Z(),v=Q(),S=Vt(),b=Nr(),E=at(),N=Ne(),A=Rt(),R=At(),C=Ae(),O=Gt(),L=qt(),w=pt(),I=zt(),P=Re(),k=xt(),D=Ft(),F=J(),M=-2147483648,U=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,n,i){void 0===i&&(i=!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,n=this.atn.LL1Table.get(e);if(null!=n)return n}}this.dfa=o,this.force_global_context?i=!0:this.always_try_local_context||(i=i||o.isContextSensitive),this.userWantsCtxSensitive=i||this.predictionMode!==C.PredictionMode.SLL&&null!=n&&!this.atn.decisionToState[r].sll,null==n&&(n=N.ParserRuleContext.emptyContext()),o.isEmpty||(s=this.getStartState(o,e,n,i)),null==s&&(null==n&&(n=N.ParserRuleContext.emptyContext()),t.debug&&console.log("ATN decision "+o.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+n.toString(this._parser)),s=this.computeStartState(o,n,i));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,n){if(!n){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 i,s=r;for(F(null!=r),i=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,!0):t.s0full;null!=s&&null!=i&&i.isContextSensitive;)s=this.skipTailCalls(s),i=i.getContextTarget(this.getReturnState(s)),s.isEmpty?F(null==i||!i.isContextSensitive):s=s.parent;return null!=i?new P.SimulatorState(r,i,n,s):void 0}execDFA(e,r,n,i){let s=i.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=i.s0,a=r.LA(1),l=i.remainingOuterContext;for(;;){if(t.dfa_debug&&console.log("DFA state "+o.stateNumber+" LA(1)=="+this.getLookaheadName(r)),i.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(i.outerContext,o,i.useContext,l);return this.execATN(e,r,n,t)}F(null!=l),l=l.parent,o=t}if(this.isAcceptState(o,i.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,i.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(n,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,i.useContext,l);return c=this.execATN(e,r,n,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,i.useContext,l);return this.handleNoViableAlt(r,n,t)}o=c,this.isAcceptState(o,i.useContext)||a===T.IntStream.EOF||(r.consume(),a=r.LA(1))}if(!i.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===n)){let t;F(!i.useContext);let a=o.predicates;if(null!=a){let e=r.index;if(e!==n&&r.seek(n),t=this.evalSemanticContext(a,s,!0),1===t.cardinality())return t.nextSetBit(0);e!==n&&r.seek(e)}if(this.reportAmbiguities){let a=new P.SimulatorState(s,o,i.useContext,l);this.reportAttemptingFullContext(e,t,a,n,r.index)}return r.seek(n),this.adaptivePredict(r,e.decision,s,!0)}let c=o.predicates;if(null!=c){let t=r.index;n!==t&&r.seek(n);let i=this.evalSemanticContext(c,s,this.reportAmbiguities&&this.predictionMode===C.PredictionMode.LL_EXACT_AMBIG_DETECTION);switch(i.cardinality()){case 0:throw this.noViableAlt(r,s,o.configs,n);case 1:return i.nextSetBit(0);default:return n!==t&&r.seek(t),this.reportAmbiguity(e,o,n,t,o.configs.isExactConflict,i,o.configs),i.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,n,i){t.debug&&console.log("execATN decision "+e.decision+" exec LA(1)=="+this.getLookaheadName(r));let s=i.outerContext,o=i.useContext,l=r.LA(1),c=i,h=new R.PredictionContextCache;for(;;){let i=this.computeReachSet(e,c,l,h);if(null==i)return this.setDFAEdge(c.s0,r.LA(1),u.ATNSimulator.ERROR),this.handleNoViableAlt(r,n,c);let p=i.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===n&&!e.isPrecedenceDfa&&i.outerContext===i.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,i,n,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!==n)),p.configs.hasSemanticContext){let t=p.predicates;if(null!=t){let e=r.index;switch(e!==n&&r.seek(n),c=this.evalSemanticContext(t,s,h||this.reportAmbiguities),c.cardinality()){case 0:throw this.noViableAlt(r,s,p.configs,n);case 1:return c.nextSetBit(0)}e!==n&&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,i,n,r.index),r.seek(n),this.execATN(e,r,n,a)}return null!=c&&(this.reportAmbiguities&&c.cardinality()>1&&this.reportAmbiguity(e,p,n,r.index,p.configs.isExactConflict,c,p.configs),u=c.nextSetBit(0)),u}c=i,l!==T.IntStream.EOF&&(r.consume(),l=r.LA(1))}}handleNoViableAlt(t,e,r){if(null!=r.s0){let n=new f.BitSet,i=0;for(let t of r.s0.configs)(t.reachesIntoOuterContext||t.state instanceof O.RuleStopState)&&(n.set(t.alt),i=Math.max(i,t.alt));switch(n.cardinality()){case 0:break;case 1:return n.nextSetBit(0);default:if(!r.s0.configs.hasSemanticContext)return n.nextSetBit(0);let 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(n,s,i);if(null!=o){let i=this.getPredicatePredictions(n,o);if(null!=i){let n=t.index;try{t.seek(e);let s=this.evalSemanticContext(i,r.outerContext,!1);if(!s.isEmpty)return s.nextSetBit(0)}finally{t.seek(n)}}}return n.nextSetBit(0)}}throw this.noViableAlt(t,r.outerContext,r.s0.configs,e)}computeReachSet(t,e,r,n){let i=e.useContext,s=e.remainingOuterContext,o=e.s0;if(i)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,i)),this.isAcceptState(o,i))return new P.SimulatorState(e.outerContext,o,i,s);let a=o,l=this.getExistingTargetState(a,r);if(null==l){let e=this.computeTargetState(t,a,s,r,i,n);l=e[0],s=e[1]}return l!==u.ATNSimulator.ERROR?(F(!i||!l.configs.dipsIntoOuterContext),new P.SimulatorState(e.outerContext,l,i,s)):void 0}getExistingTargetState(t,e){return t.getTarget(e)}computeTargetState(e,r,n,i,s,o){let l,h,p=r.configs.toArray(),d=new c.ATNConfigSet;do{let e=!s||null!=n;e||(d.isOutermostConfigSet=!0);let r,u=new c.ATNConfigSet;for(let e of p){if(t.debug&&console.log("testing "+this.getTokenName(i)+" at "+e.toString()),e.state instanceof O.RuleStopState){F(e.context.isEmpty),(s&&!e.reachesIntoOuterContext||i===T.IntStream.EOF)&&(null==r&&(r=[]),r.push(e));continue}let n=e.state.numberOfOptimizedTransitions;for(let t=0;t<n;t++){let r=e.state.getOptimizedTransition(t),n=this.getReachableTarget(e,r,i);null!=n&&u.add(e.transform(n,!1),o)}}if(this.optimize_unique_closure&&null==r&&i!==k.Token.EOF&&u.uniqueAlt!==a.ATN.INVALID_ALT_NUMBER){u.isOutermostConfigSet=d.isOutermostConfigSet,d=u;break}let f=!1,_=i===k.Token.EOF;if(this.closure(u,d,f,e,o,_),h=d.dipsIntoOuterContext,i===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(),n=this.skipTailCalls(n);let t=this.getReturnState(n);if(null==l&&(l=new m.IntegerList),n=n.isEmpty?void 0:n.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,i,u.ATNSimulator.ERROR),[u.ATNSimulator.ERROR,n]):[this.addDFAEdge(e,r,i,l,d,o),n]}removeAllConfigsNotInRuleStopState(t,e){if(C.PredictionMode.allConfigsInRuleStopStates(t))return t;let r=new c.ATNConfigSet;for(let n of t)n.state instanceof O.RuleStopState&&r.add(n,e);return r}computeStartState(t,e,r){let n=t.isPrecedenceDfa?t.getPrecedenceStartState(this._parser.precedence,r):r?t.s0full:t.s0;if(null!=n){if(!r)return new P.SimulatorState(e,n,r,e);n.setContextSensitive(this.atn)}t.decision;let i=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!=n&&n.isContextSensitive&&null!=o;){let t;if(o=this.skipTailCalls(o),o.isEmpty?(t=n.getContextTarget(A.PredictionContext.EMPTY_FULL_STATE_KEY),s=A.PredictionContext.EMPTY_FULL_STATE_KEY,o=void 0):(s=this.getReturnState(o),t=n.getContextTarget(s),a=a.appendSingleContext(s,u),o=o.parent),null==t)break;n=t}}if(null!=n&&!n.isContextSensitive)return new P.SimulatorState(e,n,r,o);let h=new c.ATNConfigSet;for(;;){let p=new c.ATNConfigSet,d=i.numberOfTransitions;for(let t=0;t<d;t++){let e=i.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){n=this.addDFAState(t,h,u);break}if(null==n?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),n.setContextTarget(s,y)),n=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,n,r,o)}applyPrecedenceFilter(t,e,r){let n=new Map,i=new c.ATNConfigSet;for(let s of t){if(1!==s.alt)continue;let t=s.semanticContext.evalPrecedence(this._parser,e);null!=t&&(n.set(s.state.stateNumber,s.context),t!==s.semanticContext?i.add(s.transform(s.state,!1,t),r):i.add(s,r))}for(let e of t)if(1!==e.alt){if(!e.isPrecedenceFilterSuppressed){let t=n.get(e.state.stateNumber);if(null!=t&&t.equals(e.context))continue}i.add(e,r)}return i}getReachableTarget(t,e,r){if(e.matches(r,0,this.atn.maxTokenType))return e.target}predicateDFAState(e,r,n){let i=this.getConflictingAltsFromConfigSet(r);if(!i)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(i,r,n);return null!=o&&(s=this.getPredicatePredictions(i,o),e.predicates=s),s}getPredsForAmbigAlts(e,r,n){let i=new Array(n+1),s=i.length;for(let t of r)e.get(t.alt)&&(i[t.alt]=w.SemanticContext.or(i[t.alt],t.semanticContext));let a=0;for(let t=0;t<s;t++)null==i[t]?i[t]=w.SemanticContext.NONE:i[t]!==w.SemanticContext.NONE&&a++;let l=i;return 0===a&&(l=void 0),t.debug&&console.log("getPredsForAmbigAlts result "+(l?o.Arrays.toString(l):"undefined")),l}getPredicatePredictions(t,e){let r=[],n=!1;for(let i=1;i<e.length;i++){let s=e[i];F(null!=s),null!=t&&t.get(i)&&s===w.SemanticContext.NONE?r.push(new g.DFAState.PredPrediction(s,i)):s!==w.SemanticContext.NONE&&(n=!0,r.push(new g.DFAState.PredPrediction(s,i)))}if(n)return r}evalSemanticContext(e,r,n){let i=new f.BitSet;for(let s of e){if(s.pred===w.SemanticContext.NONE){if(i.set(s.alt),!n)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),i.set(s.alt),!n))break}return i}evalSemanticContextImpl(t,e,r){return t.eval(this._parser,e)}closure(t,e,r,n,i,o){null==i&&(i=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,n,i,0,o);a=t}}closureImpl(e,r,n,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,i=e.context.size-(t?1:0);for(let t=0;t<i;t++){let i=e.context.getParent(t),h=this.atn.states[e.context.getReturnState(t)],d=l.ATNConfig.create(h,e.alt,i,e.semanticContext);d.outerContextDepth=e.outerContextDepth,d.isPrecedenceFilterSuppressed=e.isPrecedenceFilterSuppressed,F(u>M),this.closureImpl(d,r,n,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 n=0;n<e.context.size;n++)if(!t.precedenceLoopbackStates.get(e.context.getReturnState(n))){r=!1;break}if(r)continue}let f=d.getOptimizedTransition(l),_=!(f instanceof i.ActionTransition)&&o,y=this.getEpsilonTarget(e,f,_,0===u,c,p);if(null!=y){if(f instanceof L.RuleTransition&&null!=n&&!o){n.add(y,c);continue}let i=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(i>M),i--,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)?i>=0&&i++:(F(y.context===e.context),0===i&&(i--,!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,n,s,_,a,c,i,p)}}}getRuleName(t){return null!=this._parser&&t>=0?this._parser.ruleNames[t]:"<rule "+t+">"}getEpsilonTarget(t,e,r,n,i,s){switch(e.serializationType){case 3:return this.ruleTransition(t,e,i);case 10:return this.precedenceTransition(t,e,r,n);case 4:return this.predTransition(t,e,r,n);case 6:return this.actionTransition(t,e);case 1:return t.transform(e.target,!1);case 5:case 2:case 7:return 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,n,i){let s;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.precedence+">=_p, ctx dependent=true"),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&i){let t=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,n,i){let s;if(t.debug&&(console.log("PRED (collectPredicates="+n+") "+r.ruleIndex+":"+r.predIndex+", ctx dependent="+r.isCtxDependent),null!=this._parser&&console.log("context surrounding pred is "+this._parser.getRuleInvocationStack())),n&&(!r.isCtxDependent||r.isCtxDependent&&i)){let t=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,n){t.debug&&console.log("CALL rule "+this.getRuleName(r.target.ruleIndex)+", ctx="+e.context);let i,s=r.followState;return i=!this.optimize_tail_calls||!r.optimizedTailCall||this.tail_call_preserves_sll&&A.PredictionContext.isEmptyLocal(e.context)?null!=n?n.getChild(e.context,s.stateNumber):e.context.getChild(s.stateNumber):e.context,e.transform(r.target,!1,i)}isConflicted(e,r){if(e.uniqueAlt!==a.ATN.INVALID_ALT_NUMBER||e.size<=1)return;let n=e.toArray();n.sort(t.STATE_ALT_SORT_COMPARATOR);let i=!e.dipsIntoOuterContext,s=new f.BitSet,o=n[0].alt;s.set(o);let l,c=n[0].state.nonStopStateNumber;for(let t of n){let e=t.state.nonStopStateNumber;if(e!==c){if(t.alt!==o)return;c=e}}if(i){c=n[0].state.nonStopStateNumber,l=new f.BitSet;let t=o;for(let e of n){if(e.state.nonStopStateNumber!==c)break;let r=e.alt;l.set(r),t=r}c=n[0].state.nonStopStateNumber;let e=o;for(let r of n){let n=r.state.nonStopStateNumber,s=r.alt;if(n!==c){if(e!==t){i=!1;break}c=n,e=o}else if(s!==e){if(s!==l.nextSetBit(e+1)){i=!1;break}e=s}}}c=n[0].state.nonStopStateNumber;let u=0,h=0,p=n[0].context;for(let t=1;t<n.length;t++){let e=n[t];if(e.alt!==o)break;if(e.state.nonStopStateNumber!==c)break;h=t,p=r.join(p,n[t].context)}for(let t=h+1;t<n.length;t++){let e=n[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<n.length;t++){let e=n[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<n.length;t++){let e=n[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;i=i&&p.equals(l)}return new _.ConflictInfo(s,i)}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,n){return new b.NoViableAltException(this._parser,t,t.get(n),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,n,i,s,o){F(null==i||i.isEmpty||e.isContextSensitive);let a=r,l=this.addDFAState(e,s,o);if(null!=i)for(let t of i.toArray()){if(t===A.PredictionContext.EMPTY_FULL_STATE_KEY&&a.configs.isOutermostConfigSet)continue;a.setContextSensitive(this.atn),a.setContextSymbol(n);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(n)),this.setDFAEdge(a,n,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,n){if(r!==A.PredictionContext.EMPTY_FULL_STATE_KEY){let i=new c.ATNConfigSet;for(let t of e)i.add(t.appendContext(r,n));return this.addDFAState(t,i,n)}return F(!e.isOutermostConfigSet,"Shouldn't be adding a duplicate edge."),(e=e.clone(!0)).isOutermostConfigSet=!0,this.addDFAState(t,e,n)}addDFAState(e,r,i){let s=this.enable_global_context_dfa||!r.isOutermostConfigSet;if(s){r.isReadOnly||r.optimizeConfigs(this);let t=this.createDFAState(e,r),n=e.states.get(t);if(null!=n)return n}r.isReadOnly||null==r.conflictInfo&&(r.conflictInfo=this.isConflicted(r,i));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 n.AcceptStateInfo(c);else if(null!=r.conflictingAlts){let t=r.conflictingAlts;t&&(o.acceptStateInfo=new n.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,n,i,s){if(t.debug||t.retry_debug){let t=x.Interval.of(i,s);console.log("reportAttemptingFullContext decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportAttemptingFullContext&&t.reportAttemptingFullContext(this._parser,e,i,s,r,n)}}reportContextSensitivity(e,r,n,i,s){if(t.debug||t.retry_debug){let t=x.Interval.of(i,s);console.log("reportContextSensitivity decision="+e.decision+":"+n.s0.configs+", input="+this._parser.inputStream.getText(t))}if(null!=this._parser){let t=this._parser.getErrorListenerDispatch();t.reportContextSensitivity&&t.reportContextSensitivity(this._parser,e,i,s,r,n)}}reportAmbiguity(e,r,n,i,s,o,a){if(t.debug||t.retry_debug){let t=x.Interval.of(n,i);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,n,i,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}};U.debug=!1,U.dfa_debug=!1,U.retry_debug=!1,U.STATE_ALT_SORT_COMPARATOR=(t,e)=>{let r=t.state.nonStopStateNumber-e.state.nonStopStateNumber;return 0!==r?r:(r=t.alt-e.alt,0!==r?r:0)},e([v.NotNull],U.prototype,"predictionMode",void 0),e([v.NotNull],U.prototype,"getPredictionMode",null),e([r(0,v.NotNull)],U.prototype,"setPredictionMode",null),e([v.Override],U.prototype,"reset",null),e([r(0,v.NotNull)],U.prototype,"adaptivePredict",null),e([r(0,v.NotNull),r(1,v.NotNull),r(2,v.NotNull)],U.prototype,"getStartState",null),e([r(0,v.NotNull),r(1,v.NotNull),r(3,v.NotNull)],U.prototype,"execDFA",null),e([r(0,v.NotNull),r(1,v.NotNull),r(3,v.NotNull)],U.prototype,"execATN",null),e([r(0,v.NotNull),r(2,v.NotNull)],U.prototype,"handleNoViableAlt",null),e([r(0,v.NotNull)],U.prototype,"getExistingTargetState",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull)],U.prototype,"computeTargetState",null),e([v.NotNull,r(0,v.NotNull)],U.prototype,"removeAllConfigsNotInRuleStopState",null),e([v.NotNull],U.prototype,"computeStartState",null),e([v.NotNull,r(0,v.NotNull)],U.prototype,"applyPrecedenceFilter",null),e([r(0,v.NotNull),r(1,v.NotNull)],U.prototype,"getReachableTarget",null),e([r(0,v.NotNull),r(1,v.NotNull)],U.prototype,"getPredsForAmbigAlts",null),e([r(0,v.NotNull)],U.prototype,"evalSemanticContext",null),e([r(0,v.NotNull)],U.prototype,"evalSemanticContextImpl",null),e([r(1,v.NotNull),r(4,v.Nullable)],U.prototype,"closure",null),e([r(0,v.NotNull),r(1,v.NotNull),r(2,v.Nullable),r(3,v.NotNull),r(6,v.NotNull)],U.prototype,"closureImpl",null),e([v.NotNull],U.prototype,"getRuleName",null),e([r(0,v.NotNull),r(1,v.NotNull)],U.prototype,"getEpsilonTarget",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull)],U.prototype,"actionTransition",null),e([v.Nullable,r(0,v.NotNull),r(1,v.NotNull)],U.prototype,"precedenceTransition",null),e([v.Nullable,r(0,v.NotNull),r(1,v.NotNull)],U.prototype,"predTransition",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull),r(2,v.Nullable)],U.prototype,"ruleTransition",null),e([r(0,v.NotNull)],U.prototype,"isConflicted",null),e([v.NotNull],U.prototype,"getTokenName",null),e([r(0,v.NotNull)],U.prototype,"dumpDeadEndConfigs",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull),r(2,v.NotNull)],U.prototype,"noViableAlt",null),e([r(0,v.NotNull)],U.prototype,"getUniqueAlt",null),e([r(0,v.NotNull)],U.prototype,"configWithAltAtStopState",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull),r(4,v.NotNull)],U.prototype,"addDFAEdge",null),e([r(0,v.Nullable),r(2,v.Nullable)],U.prototype,"setDFAEdge",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull)],U.prototype,"addDFAContextState",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull)],U.prototype,"addDFAState",null),e([v.NotNull,r(0,v.NotNull),r(1,v.NotNull)],U.prototype,"createDFAState",null),e([r(0,v.NotNull),r(2,v.NotNull)],U.prototype,"reportAttemptingFullContext",null),e([r(0,v.NotNull),r(2,v.NotNull)],U.prototype,"reportContextSensitivity",null),e([r(0,v.NotNull),r(5,v.NotNull),r(6,v.NotNull)],U.prototype,"reportAmbiguity",null),U=e([r(0,v.NotNull)],U),t.ParserATNSimulator=U})),Oe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=rt(),n=oe(),i=Q(),s=class extends n.BlockStartState{get stateType(){return r.ATNStateType.PLUS_BLOCK_START}};e([i.Override],s.prototype,"stateType",null),t.PlusBlockStartState=s})),Le=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=rt(),n=Nt(),i=Q(),s=class extends n.DecisionState{get stateType(){return r.ATNStateType.PLUS_LOOP_BACK}};e([i.Override],s.prototype,"stateType",null),t.PlusLoopbackState=s})),we=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrecedencePredicateTransition=void 0;var n=st(),i=Q(),s=pt(),o=class extends n.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([i.Override],o.prototype,"serializationType",null),e([i.Override],o.prototype,"isEpsilon",null),e([i.Override],o.prototype,"matches",null),e([i.Override],o.prototype,"toString",null),o=e([r(0,i.NotNull)],o),t.PrecedencePredicateTransition=o})),Ie=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RangeTransition=void 0;var n=re(),i=Q(),s=it(),o=class extends s.Transition{constructor(t,e,r){super(t),this.from=e,this.to=r}get serializationType(){return 2}get label(){return n.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([i.Override],o.prototype,"serializationType",null),e([i.Override,i.NotNull],o.prototype,"label",null),e([i.Override],o.prototype,"matches",null),e([i.Override,i.NotNull],o.prototype,"toString",null),o=e([r(0,i.NotNull)],o),t.RangeTransition=o})),Pe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=et(),n=rt(),i=Q(),s=class extends r.ATNState{constructor(){super(...arguments),this.isPrecedenceRule=!1,this.leftFactored=!1}get stateType(){return n.ATNStateType.RULE_START}};e([i.Override],s.prototype,"stateType",null),t.RuleStartState=s})),ke=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=rt(),n=oe(),i=Q(),s=class extends n.BlockStartState{get stateType(){return r.ATNStateType.STAR_BLOCK_START}};e([i.Override],s.prototype,"stateType",null),t.StarBlockStartState=s})),De=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=et(),n=rt(),i=Q(),s=class extends r.ATNState{get loopEntryState(){return this.transition(0).target}get stateType(){return n.ATNStateType.STAR_LOOP_BACK}};e([i.Override],s.prototype,"stateType",null),t.StarLoopbackState=s})),Fe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=rt(),n=Nt(),i=Q(),s=class extends n.DecisionState{get stateType(){return r.ATNStateType.TOKEN_START}};e([i.Override],s.prototype,"stateType",null),t.TokensStartState=s})),Me=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.UUID=void 0;var e=ot(),r=class{constructor(t,e,r,n){this.data=new Uint32Array(4),this.data[0]=t,this.data[1]=e,this.data[2]=r,this.data[3]=n}static fromString(t){if(!/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/.test(t))throw new Error("Incorrectly formatted UUID");let e=t.split("-"),n=parseInt(e[0],16),i=(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(n,i,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})),Ue=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ATNDeserializer=void 0;var n,i,s=ie(),o=ct(),a=Wt(),l=ne(),c=rt(),u=se(),h=ae(),d=Bt(),f=Ot(),_=le(),y=oe(),g=Nt(),m=Ht(),x=ce(),T=re(),v=Kt(),S=ue(),b=he(),E=pe(),N=de(),A=fe(),R=_e(),C=ye(),O=ge(),L=me(),w=Q(),I=Vt(),P=Ce(),k=Oe(),D=Le(),F=we(),M=dt(),U=Ie(),j=Pe(),H=Gt(),B=qt(),K=zt(),z=ke(),V=De(),G=jt(),q=xt(),$=Fe(),Y=Me(),W=$t();(i=n||(n={}))[i.UNICODE_BMP=0]="UNICODE_BMP",i[i.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 n=X.toUUID(t,e);if(e+=8,X.SUPPORTED_UUIDS.findIndex((t=>t.equals(n)))<0){let t=`Could not deserialize ATN with UUID ${n} (expected ${X.SERIALIZED_UUID} or a legacy UUID).`;throw new Error(t)}let i=X.isFeatureSupported(X.ADDED_LEXER_ACTIONS,n),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 n=X.toInt(t[e++]);65535===n&&(n=-1);let i=this.stateFactory(r,n);if(r===c.ATNStateType.LOOP_END){let r=X.toInt(t[e++]);g.push([i,r])}else if(i instanceof y.BlockStartState){let r=X.toInt(t[e++]);T.push([i,r])}f.addState(i)}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 i=X.toInt(t[e++]),s=f.states[i];if(s.leftFactored=0!==X.toInt(t[e++]),f.ruleToStartState[r]=s,0===f.grammarType){let i=X.toInt(t[e++]);if(65535===i&&(i=q.Token.EOF),f.ruleToTokenType[r]=i,!X.isFeatureSupported(X.ADDED_LEXER_ACTIONS,n)){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,n)&&(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]),n=X.toInt(t[e+1]),i=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,i,r,n,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 n=t.transition(r);if(!(n instanceof B.RuleTransition))continue;let i=n;if(!f.ruleToStartState[i.target.ruleIndex].leftFactored&&e)continue;let s=-1;f.ruleToStartState[i.target.ruleIndex].isPrecedenceRule&&0===i.precedence&&(s=i.target.ruleIndex);let o={stopState:i.target.ruleIndex,returnState:i.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 G.StarLoopEntryState&&(r.loopBackState=e)}}}let F=X.toInt(t[e++]);for(let r=1;r<=F;r++){let n=X.toInt(t[e++]),i=f.states[n];f.decisionToState.push(i),i.decision=r-1}if(0===f.grammarType)if(i){f.lexerActions=new Array(X.toInt(t[e++]));for(let r=0;r<f.lexerActions.length;r++){let n=X.toInt(t[e++]),i=X.toInt(t[e++]);65535===i&&(i=-1);let s=X.toInt(t[e++]);65535===s&&(s=-1);let o=this.lexerActionFactory(n,i,s);f.lexerActions[r]=o}}else{let t=[];for(let e of f.states)for(let r=0;r<e.numberOfTransitions;r++){let n=e.transition(r);if(!(n instanceof s.ActionTransition))continue;let i=n.ruleIndex,o=n.actionIndex,a=new b.LexerCustomAction(i,o);e.setTransition(r,new s.ActionTransition(n.target,i,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,n,i=new _.BlockEndState;if(i.ruleIndex=t,f.addState(i),e.endState=i,f.defineDecisionState(e),i.startState=e,f.ruleToStartState[t].isPrecedenceRule){r=void 0;for(let e of f.states){if(e.ruleIndex!==t)continue;if(!(e instanceof G.StarLoopEntryState))continue;let n=e.transition(e.numberOfTransitions-1).target;if(n instanceof L.LoopEndState&&n.epsilonOnlyTransitions&&n.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.");n=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!==n&&s.target===r&&(s.target=i)}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)),i.addTransition(new x.EpsilonTransition(r));let s=new d.BasicState;f.addState(s),s.addTransition(new u.AtomTransition(i,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,n){let i=X.toInt(t[e++]);for(let s=0;s<i;s++){let i=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<i;r++){let r=n.readUnicode(t,e);e+=n.size;let i=n.readUnicode(t,e);e+=n.size,s.add(r,i)}}return e}markPrecedenceDecisions(t){let e=new Map;for(let r of t.states)if(r instanceof G.StarLoopEntryState&&t.ruleToStartState[r.ruleIndex].isPrecedenceRule){let n=r.transition(r.numberOfTransitions-1).target;n instanceof L.LoopEndState&&n.epsilonOnlyTransitions&&n.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 G.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 G.StarLoopEntryState)),e instanceof L.LoopEndState&&this.checkCondition(void 0!==e.loopBackState),e instanceof j.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 n=t.ruleToStartState[e];for(;n.onlyHasEpsilonTransitions&&1===n.numberOfOptimizedTransitions&&1===n.getOptimizedTransition(0).serializationType;)n=n.getOptimizedTransition(0).target;if(1!==n.numberOfOptimizedTransitions)continue;let i=n.getOptimizedTransition(0),s=i.target;if(!i.isEpsilon&&s.onlyHasEpsilonTransitions&&1===s.numberOfOptimizedTransitions&&s.getOptimizedTransition(0).target instanceof H.RuleStopState)switch(i.serializationType){case 5:case 2:case 7:r[e]=i;break;default:continue}}for(let n of t.states){if(n.ruleIndex<0)continue;let i;for(let s=0;s<n.numberOfOptimizedTransitions;s++){let o=n.getOptimizedTransition(s);if(!(o instanceof B.RuleTransition)){void 0!==i&&i.push(o);continue}let a=o,l=r[a.target.ruleIndex];if(void 0===l){void 0!==i&&i.push(o);continue}if(void 0===i){i=[];for(let t=0;t<s;t++)i.push(n.getOptimizedTransition(s))}e++;let c=a.followState,h=new d.BasicState;switch(h.setRuleIndex(c.ruleIndex),t.addState(h),i.push(new x.EpsilonTransition(h)),l.serializationType){case 5:h.addTransition(new u.AtomTransition(c,l._label));break;case 2:h.addTransition(new U.RangeTransition(c,l.from,l.to));break;case 7:h.addTransition(new K.SetTransition(c,l.label));break;default:throw new Error("UnsupportedOperationException")}}if(void 0!==i){if(n.isOptimized)for(;n.numberOfOptimizedTransitions>0;)n.removeOptimizedTransition(n.numberOfOptimizedTransitions-1);for(let t of i)n.addOptimizedTransition(t)}}return P.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+e+" rule invocations by inlining sets."),e}static combineChainedEpsilons(t){let e=0;for(let r of t.states){if(!r.onlyHasEpsilonTransitions||r instanceof H.RuleStopState)continue;let t;t:for(let n=0;n<r.numberOfOptimizedTransitions;n++){let i=r.getOptimizedTransition(n),s=i.target;if(1===i.serializationType&&-1===i.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(i);continue t}if(e++,void 0===t){t=[];for(let e=0;e<n;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(i)}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,n=t.decisionToState;for(let e of n){let n=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 i=r.target.getOptimizedTransition(0);i.target instanceof _.BlockEndState&&(i instanceof I.NotSetTransition||(i instanceof u.AtomTransition||i instanceof U.RangeTransition||i instanceof K.SetTransition)&&n.add(t))}if(n.size<=1)continue;let i=[];for(let t=0;t<e.numberOfOptimizedTransitions;t++)n.contains(t)||i.push(e.getOptimizedTransition(t));let s,o=e.getOptimizedTransition(n.minElement).target.getOptimizedTransition(0).target,a=new T.IntervalSet;for(let t of n.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 U.RangeTransition(o,t.a,t.b)}else s=new K.SetTransition(o,a);let l=new d.BasicState;if(l.setRuleIndex(e.ruleIndex),t.addState(l),l.addTransition(s),i.push(new x.EpsilonTransition(l)),r+=e.numberOfOptimizedTransitions-i.length,e.isOptimized)for(;e.numberOfOptimizedTransitions>0;)e.removeOptimizedTransition(e.numberOfOptimizedTransitions-1);for(let t of i)e.addOptimizedTransition(t)}return P.ParserATNSimulator.debug&&console.log("ATN runtime optimizer removed "+r+" paths by collapsing sets."),r}static identifyTailCalls(t){for(let e of t.states){for(let r=0;r<e.numberOfTransitions;r++){let n=e.transition(r);n instanceof B.RuleTransition&&(n.tailCall=this.testTailCall(t,n,!1),n.optimizedTailCall=this.testTailCall(t,n,!0))}if(e.isOptimized)for(let r=0;r<e.numberOfOptimizedTransitions;r++){let n=e.getOptimizedTransition(r);n instanceof B.RuleTransition&&(n.tailCall=this.testTailCall(t,n,!1),n.optimizedTailCall=this.testTailCall(t,n,!0))}}}static testTailCall(t,e,r){if(!r&&e.tailCall)return!0;if(r&&e.optimizedTailCall)return!0;let n=new f.BitSet(t.states.length),i=[];for(i.push(e.followState);;){let t=i.pop();if(!t)break;if(n.get(t.stateNumber))continue;if(t instanceof H.RuleStopState)continue;if(!t.onlyHasEpsilonTransitions)return!1;let e=r?t.numberOfOptimizedTransitions:t.numberOfTransitions;for(let n=0;n<e;n++){let e=r?t.getOptimizedTransition(n):t.transition(n);if(1!==e.serializationType)return!1;i.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),n=X.toInt32(t,e+2),i=X.toInt32(t,e+4),s=X.toInt32(t,e+6);return new Y.UUID(s,i,n,r)}edgeFactory(t,e,r,n,i,o,a,l){let c=t.states[n];switch(e){case 1:return new x.EpsilonTransition(c);case 2:return 0!==a?new U.RangeTransition(c,q.Token.EOF,o):new U.RangeTransition(c,i,o);case 3:return new B.RuleTransition(t.states[i],o,a,c);case 4:return new M.PredicateTransition(c,i,o,0!==a);case 10:return new F.PrecedencePredicateTransition(c,i);case 5:return 0!==a?new u.AtomTransition(c,q.Token.EOF):new u.AtomTransition(c,i);case 6:return new s.ActionTransition(c,i,o,0!==a);case 7:return new K.SetTransition(c,l[i]);case 8:return new I.NotSetTransition(c,l[i]);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 j.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 G.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})),je=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParseInfo=void 0;var n=Q(),i=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([n.NotNull],i.prototype,"getDecisionInfo",null),e([n.NotNull],i.prototype,"getLLDecisions",null),i=e([r(0,n.NotNull)],i),t.ParseInfo=i})),He=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=kt(),n=Q(),i=class extends r.ProxyErrorListener{constructor(t){super(t)}reportAmbiguity(t,e,r,n,i,s,o){this.getDelegates().forEach((a=>{a.reportAmbiguity&&a.reportAmbiguity(t,e,r,n,i,s,o)}))}reportAttemptingFullContext(t,e,r,n,i,s){this.getDelegates().forEach((o=>{o.reportAttemptingFullContext&&o.reportAttemptingFullContext(t,e,r,n,i,s)}))}reportContextSensitivity(t,e,r,n,i,s){this.getDelegates().forEach((o=>{o.reportContextSensitivity&&o.reportContextSensitivity(t,e,r,n,i,s)}))}};e([n.Override],i.prototype,"reportAmbiguity",null),e([n.Override],i.prototype,"reportAttemptingFullContext",null),e([n.Override],i.prototype,"reportContextSensitivity",null),t.ProxyParserErrorListener=i})),Be=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}})),Ke=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.CodePointBuffer=void 0;var e=J(),r=Be(),n=class{constructor(t,e){this.buffer=t,this._position=0,this._size=e}static withArray(t){return new n(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 n.Builder(t)}};t.CodePointBuffer=n,function(t){let n;var i;(i=n||(n={}))[i.BYTE=0]="BYTE",i[i.CHAR=1]="CHAR",i[i.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 n=t,i=0,s=t.length,o=this.buffer,a=this.position;for(;i<s;){let e=n[i];if(!(e<=255))return t=t.subarray(i,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,i++,a++}this.position=a}appendArrayChar(t){e(-1===this.prevHighSurrogate);let n=t,i=0,s=t.length,o=this.buffer,a=this.position;for(;i<s;){let e=n[i];if(r.isHighSurrogate(e))return t=t.subarray(i,s),this.position=a,this.charToIntBuffer(t.length),void this.appendArrayInt(t);o[a]=e,i++,a++}this.position=a}appendArrayInt(t){let e=t,n=0,i=t.length,s=this.buffer,o=this.position;for(;n<i;){let t=e[n];n++,-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}(n=t.CodePointBuffer||(t.CodePointBuffer={}))})),ze=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=J(),n=Z(),i=mt(),s=Q(),o=class{constructor(t,e,n,i){r(0===e),this._array=t,this._size=n,this._name=i,this._position=0}get internalStorage(){return this._array}static fromBuffer(t,e){return void 0!==e&&0!==e.length||(e=n.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)===n.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(i.Interval.of(0,this.size-1))}LA(t){let e;switch(Math.sign(t)){case-1:return e=this.index+t,e<0?n.IntStream.EOF:this._array[e];case 0:return 0;case 1:return e=this.index+t-1,e>=this.size?n.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})),Ve=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.CharStreams=void 0;var e=Ke(),r=ze(),n=Z();(t.CharStreams||(t.CharStreams={})).fromString=function(t,i){void 0!==i&&0!==i.length||(i=n.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(),i)}})),Ge=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferedTokenStream=void 0;var n=J(),i=Tt(),s=mt(),o=ee(),a=Q(),l=xt(),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){n(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 n=t;n<=e;n++){let t=this.tokens[n];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 n(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 i=r,s=this.tokens.slice(t,e+1);return s=s.filter((t=>i.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,n=this.nextTokenOnChannel(t+1,o.Lexer.DEFAULT_TOKEN_CHANNEL),i=t+1;return r=-1===n?this.size-1:n,this.filterForChannel(i,r,e)}getHiddenTokensToLeft(t,e=-1){if(this.lazyInit(),t<0||t>=this.tokens.length)throw new RangeError(t+" not in 0.."+(this.tokens.length-1));if(0===t)return[];let r=this.previousTokenOnChannel(t-1,o.Lexer.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return[];let n=r+1,i=t-1;return this.filterForChannel(n,i,e)}filterForChannel(t,e,r){let n=new Array;for(let i=t;i<=e;i++){let t=this.tokens[i];-1===r?t.channel!==o.Lexer.DEFAULT_TOKEN_CHANNEL&&n.push(t):t.channel===r&&n.push(t)}return n}get sourceName(){return this.tokenSource.sourceName}getText(t){void 0===t?t=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 n="";for(let t=e;t<=r;t++){let e=this.tokens[t];if(e.type===l.Token.EOF)break;n+=e.text}return n.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 i.CommonToken}isToken(t){return t instanceof i.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,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommonTokenStream=void 0;var n=Ge(),i=Q(),s=xt(),o=class extends n.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([i.Override],o.prototype,"adjustSeekIndex",null),e([i.Override],o.prototype,"tryLB",null),e([i.Override],o.prototype,"tryLT",null),o=e([r(0,i.NotNull)],o),t.CommonTokenStream=o})),$e=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ListTokenSource=void 0;var n=vt(),i=Q(),s=xt(),o=class{constructor(t,e){if(this.i=0,this._factory=n.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([i.Override],o.prototype,"charPositionInLine",null),e([i.Override],o.prototype,"nextToken",null),e([i.Override],o.prototype,"line",null),e([i.Override],o.prototype,"inputStream",null),e([i.Override],o.prototype,"sourceName",null),e([i.Override,i.NotNull,r(0,i.NotNull)],o.prototype,"tokenFactory",null),o=e([r(0,i.NotNull)],o),t.ListTokenSource=o})),Ye=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})),We=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})),Xe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=Ne(),i=class extends n.ParserRuleContext{constructor(t,e,r){void 0!==r?super(e,r):super(),this._ruleIndex=t}get ruleIndex(){return this._ruleIndex}};e([r.Override],i.prototype,"ruleIndex",null),t.InterpreterRuleContext=i})),Je=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParserInterpreter=void 0;var n=et(),i=rt(),s=Ot(),o=ft(),a=_t(),l=Xe(),c=me(),u=Q(),h=Q(),d=Er(),f=Ce(),_=nt(),y=jt(),g=xt(),m=class t extends d.Parser{constructor(e,r,n,i,o){if(super(e instanceof t?e.inputStream:o),this._parentContextStack=[],this.overrideDecision=-1,this.overrideDecisionInputIndex=-1,this.overrideDecisionAlt=-1,this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0,e instanceof t){let t=e;this._grammarFileName=t._grammarFileName,this._atn=t._atn,this.pushRecursionContextStates=t.pushRecursionContextStates,this._ruleNames=t._ruleNames,this._vocabulary=t._vocabulary,this.interpreter=new f.ParserATNSimulator(this._atn,this)}else{this._grammarFileName=e,this._atn=i,this._ruleNames=n.slice(0),this._vocabulary=r,this.pushRecursionContextStates=new s.BitSet(i.states.length);for(let t of i.states)t instanceof y.StarLoopEntryState&&t.precedenceRuleDecision&&this.pushRecursionContextStates.set(t.stateNumber);this.interpreter=new f.ParserATNSimulator(i,this)}}reset(t){void 0===t?super.reset():super.reset(t),this.overrideDecisionReached=!1,this._overrideDecisionRoot=void 0}get atn(){return this._atn}get vocabulary(){return this._vocabulary}get ruleNames(){return this._ruleNames}get grammarFileName(){return this._grammarFileName}parse(t){let e=this._atn.ruleToStartState[t];for(this._rootContext=this.createInterpreterRuleContext(void 0,n.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===i.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,n){this._parentContextStack.push([this._ctx,t.invokingState]),super.enterRecursionRule(t,e,r,n)}get atnState(){return this._atn.states[this.state]}visitState(t){let e=1;t.numberOfTransitions>1&&(e=this.visitDecisionState(t));let r=t.transition(e-1);switch(r.serializationType){case 1:if(this.pushRecursionContextStates.get(t.stateNumber)&&!(r.target instanceof 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,n=e.ruleIndex,i=this.createInterpreterRuleContext(this._ctx,t.stateNumber,n);e.isPrecedenceRule?this.enterRecursionRule(i,e.stateNumber,n,r.precedence):this.enterRule(i,r.target.stateNumber,n);break;case 4:let 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,n={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 i=g.Token.INVALID_TYPE;r.isNil||(i=r.minElement);let s=this.tokenFactory.create(n,i,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(n,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})),Qe=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParseTreeMatch=void 0;var n=Q(),i=class{constructor(t,e,r,n){if(!t)throw new Error("tree cannot be null");if(!e)throw new Error("pattern cannot be null");if(!r)throw new Error("labels cannot be null");this._tree=t,this._pattern=e,this._labels=r,this._mismatchedNode=n}get(t){let e=this._labels.get(t);if(e&&0!==e.length)return e[e.length-1]}getAll(t){return this._labels.get(t)||[]}get labels(){return this._labels}get mismatchedNode(){return this._mismatchedNode}get succeeded(){return!this._mismatchedNode}get pattern(){return this._pattern}get tree(){return this._tree}toString(){return`Match ${this.succeeded?"succeeded":"failed"}; found ${this.labels.size} labels`}};e([n.NotNull,r(0,n.NotNull)],i.prototype,"getAll",null),e([n.NotNull],i.prototype,"labels",null),e([n.NotNull],i.prototype,"pattern",null),e([n.NotNull],i.prototype,"tree",null),e([n.Override],i.prototype,"toString",null),i=e([r(0,n.NotNull),r(1,n.NotNull),r(2,n.NotNull)],i),t.ParseTreeMatch=i})),Ze=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.XPathLexer=void 0;var e=Ue(),r=ee(),n=te(),i=Ft(),s=ht(),o=class extends r.Lexer{constructor(t){super(t),this._interp=new n.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 i.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],"")})),tr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=class{syntaxError(t,e,r,n,i,s){}};e([r.Override],n.prototype,"syntaxError",null),t.XPathLexerErrorListener=n})),er=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=class{constructor(t){this.nodeName=t,this.invert=!1}toString(){let t=this.invert?"!":"";return Object.constructor.name+"["+t+this.nodeName+"]"}};e([r.Override],n.prototype,"toString",null),t.XPathElement=n})),rr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=be(),i=er(),s=class extends i.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){return n.Trees.findAllRuleNodes(t,this.ruleIndex)}};e([r.Override],s.prototype,"evaluate",null),t.XPathRuleAnywhereElement=s})),nr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Ne(),n=Q(),i=be(),s=er(),o=class extends s.XPathElement{constructor(t,e){super(t),this.ruleIndex=e}evaluate(t){let e=[];for(let n of i.Trees.getChildren(t))n instanceof r.ParserRuleContext&&(n.ruleIndex===this.ruleIndex&&!this.invert||n.ruleIndex!==this.ruleIndex&&this.invert)&&e.push(n);return e}};e([n.Override],o.prototype,"evaluate",null),t.XPathRuleElement=o})),ir=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=be(),i=er(),s=class extends i.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){return n.Trees.findAllTokenNodes(t,this.tokenType)}};e([r.Override],s.prototype,"evaluate",null),t.XPathTokenAnywhereElement=s})),sr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=Te(),i=be(),s=er(),o=class extends s.XPathElement{constructor(t,e){super(t),this.tokenType=e}evaluate(t){let e=[];for(let r of i.Trees.getChildren(t))r instanceof n.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})),or=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=be(),i=lr(),s=er(),o=class extends s.XPathElement{constructor(){super(i.XPath.WILDCARD)}evaluate(t){return this.invert?[]:n.Trees.getDescendants(t)}};e([r.Override],o.prototype,"evaluate",null),t.XPathWildcardAnywhereElement=o})),ar=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=be(),i=lr(),s=er(),o=class extends s.XPathElement{constructor(){super(i.XPath.WILDCARD)}evaluate(t){let e=[];if(this.invert)return e;for(let r of n.Trees.getChildren(t))e.push(r);return e}};e([r.Override],o.prototype,"evaluate",null),t.XPathWildcardElement=o})),lr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.XPath=void 0;var e=Ve(),r=qe(),n=Qt(),i=Ne(),s=xt(),o=Ze(),a=tr(),l=rr(),c=nr(),u=ir(),h=sr(),d=or(),f=ar(),_=class{constructor(t,e){this.parser=t,this.path=e,this.elements=this.split(e)}split(t){let i=new o.XPathLexer(e.CharStreams.fromString(t));i.recover=t=>{throw t},i.removeErrorListeners(),i.addErrorListener(new a.XPathLexerErrorListener);let l=new r.CommonTokenStream(i);try{l.fill()}catch(e){if(e instanceof n.LexerNoViableAltException){let r="Invalid tokens or characters at index "+i.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 n=t.type===o.XPathLexer.BANG;n&&(p++,t=c[p]);let i=this.getXPathElement(t,r);i.invert=n,u.push(i),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 n=this.parser.getTokenType(r),i=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(n===s.Token.INVALID_TYPE)throw new Error(r+" at index "+t.startIndex+" isn't a valid token name");return e?new u.XPathTokenAnywhereElement(r,n):new h.XPathTokenElement(r,n);default:if(-1===i)throw new Error(r+" at index "+t.startIndex+" isn't a valid rule name");return e?new l.XPathRuleAnywhereElement(r,i):new c.XPathRuleElement(r,i)}}static findAll(t,e,r){return new _(r,e).evaluate(t)}evaluate(t){let e=new i.ParserRuleContext;e.addChild(t);let r=new Set([e]),n=0;for(;n<this.elements.length;){let t=new Set;for(let e of r)e.childCount>0&&this.elements[n].evaluate(e).forEach(t.add,t);n++,r=t}return r}};t.XPath=_,_.WILDCARD="*",_.NOT="!"})),cr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParseTreePattern=void 0;var n=Q(),i=lr(),s=class{constructor(t,e,r,n){this._matcher=t,this._patternRuleIndex=r,this._pattern=e,this._patternTree=n}match(t){return this._matcher.match(t,this)}matches(t){return this._matcher.match(t,this).succeeded}findAll(t,e){let r=i.XPath.findAll(t,e,this._matcher.parser),n=[];for(let t of r){let e=this.match(t);e.succeeded&&n.push(e)}return n}get matcher(){return this._matcher}get pattern(){return this._pattern}get patternRuleIndex(){return this._patternRuleIndex}get patternTree(){return this._patternTree}};e([n.NotNull],s.prototype,"_pattern",void 0),e([n.NotNull],s.prototype,"_patternTree",void 0),e([n.NotNull],s.prototype,"_matcher",void 0),e([n.NotNull,r(0,n.NotNull)],s.prototype,"match",null),e([r(0,n.NotNull)],s.prototype,"matches",null),e([n.NotNull,r(0,n.NotNull),r(1,n.NotNull)],s.prototype,"findAll",null),e([n.NotNull],s.prototype,"matcher",null),e([n.NotNull],s.prototype,"pattern",null),e([n.NotNull],s.prototype,"patternTree",null),s=e([r(0,n.NotNull),r(1,n.NotNull),r(3,n.NotNull)],s),t.ParseTreePattern=s})),ur=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RuleTagToken=void 0;var n=Q(),i=xt(),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 i.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([n.NotNull],s.prototype,"ruleName",null),e([n.Override],s.prototype,"channel",null),e([n.Override],s.prototype,"text",null),e([n.Override],s.prototype,"type",null),e([n.Override],s.prototype,"line",null),e([n.Override],s.prototype,"charPositionInLine",null),e([n.Override],s.prototype,"tokenIndex",null),e([n.Override],s.prototype,"startIndex",null),e([n.Override],s.prototype,"stopIndex",null),e([n.Override],s.prototype,"tokenSource",null),e([n.Override],s.prototype,"inputStream",null),e([n.Override],s.prototype,"toString",null),s=e([r(0,n.NotNull)],s),t.RuleTagToken=s})),hr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.Chunk=void 0,t.Chunk=class{}})),pr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=hr(),n=Q(),i=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([n.NotNull],i.prototype,"tag",null),e([n.Override],i.prototype,"toString",null),t.TagChunk=i})),dr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextChunk=void 0;var n=hr(),i=Q(),s=class extends n.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([i.NotNull],s.prototype,"_text",void 0),e([i.NotNull],s.prototype,"text",null),e([i.Override],s.prototype,"toString",null),s=e([r(0,i.NotNull)],s),t.TextChunk=s})),fr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TokenTagToken=void 0;var n=Tt(),i=Q(),s=class extends n.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([i.NotNull],s.prototype,"_tokenName",void 0),e([i.NotNull],s.prototype,"tokenName",null),e([i.Override],s.prototype,"text",null),e([i.Override],s.prototype,"toString",null),s=e([r(0,i.NotNull)],s),t.TokenTagToken=s})),_r=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParseTreePatternMatcher=void 0;var n=Rr(),i=Ve(),s=qe(),o=$e(),a=Ye(),l=Q(),c=We(),u=Je(),h=Ne(),d=Qe(),f=cr(),_=nt(),y=Se(),g=ur(),m=pr(),x=Te(),T=dr(),v=xt(),S=fr(),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 n=this.compile(e,r);return this.matches(t,n)}{let r=new a.MultiMap;return!this.matchImpl(t,e.patternTree,r)}}match(t,e,r=0){if("string"==typeof e){let n=this.compile(e,r);return this.match(t,n)}{let r=new a.MultiMap,n=this.matchImpl(t,e.patternTree,r);return new d.ParseTreeMatch(t,e,r,n)}}compile(t,e){let r=this.tokenize(t),i=new o.ListTokenSource(r),a=new s.CommonTokenStream(i);const l=this._parser;let h,p=new u.ParserInterpreter(l.grammarFileName,l.vocabulary,l.ruleNames,l.getATNWithBypassAlts(),a);try{p.errorHandler=new n.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 n;if(t.symbol.type===e.symbol.type)if(e.symbol instanceof S.TokenTagToken){let n=e.symbol;r.map(n.tokenName,t);const i=n.label;i&&r.map(i,t)}else t.text===e.text||n||(n=t);else n||(n=t);return n}if(t instanceof h.ParserRuleContext&&e instanceof h.ParserRuleContext){let n,i=this.getRuleTagToken(e);if(i){if(t.ruleContext.ruleIndex===e.ruleContext.ruleIndex){r.map(i.ruleName,t);const e=i.label;e&&r.map(e,t)}else n||(n=t);return n}if(t.childCount!==e.childCount)return n||(n=t),n;let s=t.childCount;for(let n=0;n<s;n++){let i=this.matchImpl(t.getChild(n),e.getChild(n),r);if(i)return i}return n}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 n of e)if(n instanceof m.TagChunk){let e=n;const i=e.tag.substr(0,1);if(i===i.toUpperCase()){let n=this._parser.getTokenType(e.tag);if(n===v.Token.INVALID_TYPE)throw new Error("Unknown token "+e.tag+" in pattern: "+t);let i=new S.TokenTagToken(e.tag,n,e.label);r.push(i)}else{if(i!==i.toLowerCase())throw new Error("invalid tag: "+e.tag+" in pattern: "+t);{let n=this._parser.getRuleIndex(e.tag);if(-1===n)throw new Error("Unknown rule "+e.tag+" in pattern: "+t);let i=this._parser.getATNWithBypassAlts().ruleToTokenType[n];r.push(new g.RuleTagToken(e.tag,i,e.label))}}}else{let t=n;this._lexer.inputStream=i.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,n=[],i=[],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)?(i.push(e),e+=this.start.length):e===t.indexOf(this.stop,e)?(s.push(e),e+=this.stop.length):e++;if(i.length>s.length)throw new Error("unterminated tag in pattern: "+t);if(i.length<s.length)throw new Error("missing start tag in pattern: "+t);let o=i.length;for(let e=0;e<o;e++)if(i[e]>=s[e])throw new Error("tag delimiters out of order in pattern: "+t);if(0===o){let e=t.substring(0,r);n.push(new T.TextChunk(e))}if(o>0&&i[0]>0){let e=t.substring(0,i[0]);n.push(new T.TextChunk(e))}for(let e=0;e<o;e++){let r,a=t.substring(i[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)),n.push(new m.TagChunk(l,r)),e+1<o){let r=t.substring(s[e]+this.stop.length,i[e+1]);n.push(new T.TextChunk(r))}}if(o>0){let e=s[o-1]+this.stop.length;if(e<r){let i=t.substring(e,r);n.push(new T.TextChunk(i))}}for(let t=0;t<n.length;t++){let e=n[t];if(e instanceof T.TextChunk){let r=e.text.replace(this.escapeRE,"");r.length<e.text.length&&(n[t]=new T.TextChunk(r))}}return n}};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={}))})),yr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DecisionEventInfo=void 0;var n=Q(),i=class{constructor(t,e,r,n,i,s){this.decision=t,this.fullCtx=s,this.stopIndex=i,this.input=r,this.startIndex=n,this.state=e}};e([n.NotNull],i.prototype,"input",void 0),i=e([r(2,n.NotNull)],i),t.DecisionEventInfo=i})),gr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AmbiguityInfo=void 0;var n=yr(),i=Q(),s=class extends n.DecisionEventInfo{constructor(t,e,r,n,i,s){super(t,e,n,i,s,e.useContext),this.ambigAlts=r}get ambiguousAlternatives(){return this.ambigAlts}};e([i.NotNull],s.prototype,"ambigAlts",void 0),e([i.NotNull],s.prototype,"ambiguousAlternatives",null),s=e([r(1,i.NotNull),r(2,i.NotNull),r(3,i.NotNull)],s),t.AmbiguityInfo=s})),mr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextSensitivityInfo=void 0;var n=yr(),i=Q(),s=class extends n.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}};s=e([r(1,i.NotNull),r(2,i.NotNull)],s),t.ContextSensitivityInfo=s})),xr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Q(),n=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],n.prototype,"toString",null),t.DecisionInfo=n})),Tr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorInfo=void 0;var n=yr(),i=Q(),s=class extends n.DecisionEventInfo{constructor(t,e,r,n,i){super(t,e,r,n,i,e.useContext)}};s=e([r(1,i.NotNull),r(2,i.NotNull)],s),t.ErrorInfo=s})),vr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LookaheadEventInfo=void 0;var n=yr(),i=Q(),s=class extends n.DecisionEventInfo{constructor(t,e,r,n,i,s,o){super(t,e,n,i,s,o),this.predictedAlt=r}};s=e([r(3,i.NotNull)],s),t.LookaheadEventInfo=s})),Sr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.PredicateEvalInfo=void 0;var n=yr(),i=Q(),s=class extends n.DecisionEventInfo{constructor(t,e,r,n,i,s,o,a){super(e,t,r,n,i,t.useContext),this.semctx=s,this.evalResult=o,this.predictedAlt=a}};s=e([r(0,i.NotNull),r(2,i.NotNull),r(5,i.NotNull)],s),t.PredicateEvalInfo=s})),br=u((e=>{p();var r=e&&e.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},n=e&&e.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(e,"__esModule",{value:!0}),e.ProfilingATNSimulator=void 0;var i=gr(),s=Wt(),o=It(),a=mr(),l=xr(),c=Tr(),u=Q(),h=vr(),d=Ce(),f=Sr(),_=pt(),y=Re(),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,n,i){if(void 0!==i)return super.adaptivePredict(e,r,n,i);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 i=t.hrtime(),o=super.adaptivePredict(e,r,n),a=t.hrtime(),l=1e9*(a[0]-i[0]);0===l?l=a[1]-i[1]:l+=1e9-i[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,n){let i=super.getStartState(t,e,r,n);return this.currentState=i,i}computeStartState(t,e,r){let n=super.computeStartState(t,e,r);return this.currentState=n,n}computeReachSet(t,e,r,n){if(void 0===this._input)throw new Error("Invalid state");let i=super.computeReachSet(t,e,r,n);return null==i&&this.decisions[this.currentDecision].errors.push(new c.ErrorInfo(this.currentDecision,e,this._input,this._startIndex,this._input.index)),this.currentState=i,i}getExistingTargetState(t,e){if(void 0===this.currentState||void 0===this._input)throw new Error("Invalid state");this.currentState.useContext?this._llStopIndex=this._input.index:this._sllStopIndex=this._input.index;let r=super.getExistingTargetState(t,e);if(null!=r&&(this.currentState=new 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,n,i,s){let o=super.computeTargetState(t,e,r,n,i,s);return i?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 n=super.evalSemanticContextImpl(t,e,r);if(!(t instanceof _.SemanticContext.PrecedencePredicate)){let e=this._llStopIndex>=0?this._llStopIndex:this._sllStopIndex;this.decisions[this.currentDecision].predicateEvals.push(new f.PredicateEvalInfo(this.currentState,this.currentDecision,this._input,this._startIndex,e,t,n,r))}return n}reportContextSensitivity(t,e,r,n,i){if(void 0===this._input)throw new Error("Invalid state");e!==this.conflictingAltResolvedBySLL&&this.decisions[this.currentDecision].contextSensitivities.push(new a.ContextSensitivityInfo(this.currentDecision,r,this._input,n,i)),super.reportContextSensitivity(t,e,r,n,i)}reportAttemptingFullContext(t,e,r,n,i){this.conflictingAltResolvedBySLL=null!=e?e.nextSetBit(0):r.s0.configs.getRepresentedAlternatives().nextSetBit(0),this.decisions[this.currentDecision].LL_Fallback++,super.reportAttemptingFullContext(t,e,r,n,i)}reportAmbiguity(t,e,r,n,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,n)),this.decisions[this.currentDecision].ambiguities.push(new i.AmbiguityInfo(this.currentDecision,this.currentState,l,this._input,r,n)),super.reportAmbiguity(t,e,r,n,o,l,c)}getDecisionInfo(){return this.decisions}getCurrentState(){return this.currentState}};r([u.Override,n(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,n(0,u.NotNull),n(5,u.NotNull),n(6,u.NotNull)],g.prototype,"reportAmbiguity",null),e.ProfilingATNSimulator=g})),Er=u((e=>{p();var r=e&&e.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},n=e&&e.__param||function(t,e){return function(r,n){e(r,n,t)}},i=e&&e.__awaiter||function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{l(n.next(t))}catch(t){s(t)}}function a(t){try{l(n.throw(t))}catch(t){s(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}l((n=n.apply(t,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.Parser=void 0;var s=ht(),o=ne(),a=Ue(),l=Ar(),c=ve(),u=St(),h=ee(),d=Q(),f=je(),_=Ce(),y=He(),g=Dt(),m=Te(),x=xt(),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 i(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 n=r;return new((yield Promise.resolve().then((()=>_r()))).ParseTreePatternMatcher)(n,this).compile(t,e)}))}get errorHandler(){return this._errHandler}set errorHandler(t){this._errHandler=t}get inputStream(){return this._input}set inputStream(t){this.reset(!1),this._input=t}get currentToken(){return this._input.LT(1)}notifyErrorListeners(t,e,r){void 0===e?e=this.currentToken:null===e&&(e=void 0),this._syntaxErrors++;let n=-1,i=-1;null!=e&&(n=e.line,i=e.charPositionInLine);let s=this.getErrorListenerDispatch();s.syntaxError&&s.syntaxError(this,e,n,i,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,n){this.state=e,this._precedenceStack.push(n),this._ctx=t,this._ctx._start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){let n=this._ctx;n._parent=t,n.invokingState=e,n._stop=this._input.tryLT(-1),this._ctx=t,this._ctx._start=n._start,this._buildParseTrees&&this._ctx.addChild(n),this.triggerEnterRuleEvent()}unrollRecursionContexts(t){this._precedenceStack.pop(),this._ctx._stop=this._input.tryLT(-1);let e=this._ctx;if(this._parseListeners.length>0)for(;this._ctx!==t;)this.triggerExitRuleEvent(),this._ctx=this._ctx._parent;else this._ctx=t;e._parent=t,this._buildParseTrees&&null!=t&&t.addChild(e)}getInvokingContext(t){let e=this._ctx;for(;e&&e.ruleIndex!==t;)e=e._parent;return e}get context(){return this._ctx}set context(t){this._ctx=t}precpred(t,e){return e>=this._precedenceStack.peek()}getErrorListenerDispatch(){return new y.ProxyParserErrorListener(this.getErrorListeners())}inContext(t){return!1}isExpectedToken(t){let e=this.interpreter.atn,r=this._ctx,n=e.states[this.state],i=e.nextTokens(n);if(i.contains(t))return!0;if(!i.contains(x.Token.EPSILON))return!1;for(;null!=r&&r.invokingState>=0&&i.contains(x.Token.EPSILON);){let n=e.states[r.invokingState].transition(0);if(i=e.nextTokens(n.followState),i.contains(t))return!0;r=r._parent}return!(!i.contains(x.Token.EPSILON)||t!==x.Token.EOF)}get isMatchedEOF(){return this.matchedEOF}getExpectedTokens(){return this.atn.getExpectedTokens(this.state,this.context)}getExpectedTokensWithinCurrentRule(){let t=this.interpreter.atn,e=t.states[this.state];return t.nextTokens(e)}getRuleIndex(t){let e=this.getRuleIndexMap().get(t);return null!=e?e:-1}get ruleContext(){return this._ctx}getRuleInvocationStack(t=this._ctx){let e=t,r=this.ruleNames,n=[];for(;null!=e;){let t=e.ruleIndex;t<0?n.push("n/a"):n.push(r[t]),e=e._parent}return n}getDFAStrings(){let t=[];for(let e of this._interp.atn.decisionToDFA)t.push(e.toString(this.vocabulary,this.ruleNames));return t}dumpDFA(){let e=!1;for(let r of this._interp.atn.decisionToDFA)r.isEmpty||(e&&console.log(),console.log("Decision "+r.decision+":"),t.stdout.write(r.toString(this.vocabulary,this.ruleNames)),e=!0)}get sourceName(){return this._input.sourceName}get parseInfo(){return Promise.resolve().then((()=>br())).then((t=>{let e=this.interpreter;if(e instanceof t.ProfilingATNSimulator)return new f.ParseInfo(e)}))}setProfile(t){return i(this,void 0,void 0,(function*(){let e=yield Promise.resolve().then((()=>br())),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([n(0,d.NotNull)],v.prototype,"addParseListener",null),r([d.NotNull],v.prototype,"getATNWithBypassAlts",null),r([d.NotNull,n(0,d.NotNull)],v.prototype,"errorHandler",null),r([d.Override],v.prototype,"inputStream",null),r([d.NotNull],v.prototype,"currentToken",null),r([n(0,d.NotNull)],v.prototype,"enterRule",null),r([d.Override,n(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})),Nr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Er(),n=nt(),i=Q(),s=class extends n.RecognitionException{constructor(t,e,n,i,s,o){t instanceof r.Parser&&(void 0===e&&(e=t.inputStream),void 0===n&&(n=t.currentToken),void 0===i&&(i=t.currentToken),void 0===o&&(o=t.context)),super(t,e,o),this._deadEndConfigs=s,this._startToken=n,this.setOffendingToken(t,i)}get startToken(){return this._startToken}get deadEndConfigs(){return this._deadEndConfigs}};e([i.NotNull],s.prototype,"_startToken",void 0),t.NoViableAltException=s})),Ar=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultErrorStrategy=void 0;var n=et(),i=rt(),s=ft(),o=_t(),a=re(),l=Nr(),c=Rt(),u=xt(),h=Q(),d=class{constructor(){this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.nextTokensState=n.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 n=r.getOffendingToken(t);void 0===n&&(n=null),t.notifyErrorListeners(e,n,r)}recover(t,e){this.lastErrorIndex===t.inputStream.index&&this.lastErrorStates&&this.lastErrorStates.contains(t.state)&&t.consume(),this.lastErrorIndex=t.inputStream.index,this.lastErrorStates||(this.lastErrorStates=new 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=n.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 i.ATNStateType.BLOCK_START:case i.ATNStateType.STAR_BLOCK_START:case i.ATNStateType.PLUS_BLOCK_START:case i.ATNStateType.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(t))return;throw new o.InputMismatchException(t);case i.ATNStateType.PLUS_LOOP_BACK:case i.ATNStateType.STAR_LOOP_BACK:this.reportUnwantedToken(t);let e=t.getExpectedTokens().or(this.getErrorRecoverySet(t));this.consumeUntil(t,e)}}reportNoViableAlternative(t,e){let r,n=t.inputStream;r=n?e.startToken.type===u.Token.EOF?"<EOF>":n.getTextFromRange(e.startToken,e.getOffendingToken()):"<unknown input>";let i="no viable alternative at input "+this.escapeWSAndQuote(r);this.notifyErrorListeners(t,i,e)}reportInputMismatch(t,e){let r=e.expectedTokens,n=r?r.toStringVocabulary(t.vocabulary):"",i="mismatched input "+this.getTokenErrorDisplay(e.getOffendingToken(t))+" expecting "+n;this.notifyErrorListeners(t,i,e)}reportFailedPredicate(t,e){let r="rule "+t.ruleNames[t.context.ruleIndex]+" "+e.message;this.notifyErrorListeners(t,r,e)}reportUnwantedToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="extraneous input "+this.getTokenErrorDisplay(e)+" expecting "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary);t.notifyErrorListeners(r,e,void 0)}reportMissingToken(t){if(this.inErrorRecoveryMode(t))return;this.beginErrorCondition(t);let e=t.currentToken,r="missing "+this.getExpectedTokens(t).toStringVocabulary(t.vocabulary)+" at "+this.getTokenErrorDisplay(e);t.notifyErrorListeners(r,e,void 0)}recoverInline(t){let e=this.singleTokenDeletion(t);if(e)return t.consume(),e;if(this.singleTokenInsertion(t))return this.getMissingSymbol(t);throw void 0===this.nextTokensContext?new 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,n=t.interpreter.atn;return!!n.nextTokens(r,c.PredictionContext.fromRuleContext(n,t.context)).contains(e)&&(this.reportMissingToken(t),!0)}singleTokenDeletion(t){let e=t.inputStream.LA(2);if(this.getExpectedTokens(t).contains(e)){this.reportUnwantedToken(t),t.consume();let e=t.currentToken;return this.reportMatch(t),e}}getMissingSymbol(t){let e,r=t.currentToken,n=this.getExpectedTokens(t),i=u.Token.INVALID_TYPE;n.isNil||(i=n.minElement),e=i===u.Token.EOF?"<missing EOF>":"<missing "+t.vocabulary.getDisplayName(i)+">";let s=r,o=t.inputStream.tryLT(-1);return s.type===u.Token.EOF&&null!=o&&(s=o),this.constructToken(t.inputStream.tokenSource,i,e,s)}constructToken(t,e,r,n){let i=t.tokenFactory,s=n.tokenSource,o=s?s.inputStream:void 0;return i.create({source:t,stream:o},e,r,u.Token.DEFAULT_CHANNEL,-1,-1,n.line,n.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,n=new a.IntervalSet;for(;r&&r.invokingState>=0;){let t=e.states[r.invokingState].transition(0),i=e.nextTokens(t.followState);n.addAll(i),r=r._parent}return n.remove(u.Token.EPSILON),n}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})),Rr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Ar(),n=_t(),i=Q(),s=We(),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 n.InputMismatchException(t);for(let r=t.context;r;r=r.parent)r.exception=e;throw new s.ParseCancellationException(e)}sync(t){}};e([i.Override],o.prototype,"recover",null),e([i.Override],o.prototype,"recoverInline",null),e([i.Override],o.prototype,"sync",null),t.BailErrorStrategy=o})),Cr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),Or=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"})),Lr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DiagnosticErrorListener=void 0;var n=Ot(),i=Q(),s=mt(),o=class{constructor(t=!0){this.exactOnly=t,this.exactOnly=t}syntaxError(t,e,r,n,i,s){}reportAmbiguity(t,e,r,n,i,o,a){if(this.exactOnly&&!i)return;let l=`reportAmbiguity d=${this.getDecisionDescription(t,e)}: ambigAlts=${this.getConflictingAlts(o,a)}, input='${t.inputStream.getText(s.Interval.of(r,n))}'`;t.notifyErrorListeners(l)}reportAttemptingFullContext(t,e,r,n,i,o){let a=`reportAttemptingFullContext d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(s.Interval.of(r,n))}'`;t.notifyErrorListeners(a)}reportContextSensitivity(t,e,r,n,i,o){let a=`reportContextSensitivity d=${this.getDecisionDescription(t,e)}, input='${t.inputStream.getText(s.Interval.of(r,n))}'`;t.notifyErrorListeners(a)}getDecisionDescription(t,e){let r=e.decision,n=e.atnStartState.ruleIndex,i=t.ruleNames;if(n<0||n>=i.length)return r.toString();let s=i[n];return s?`${r} (${s})`:r.toString()}getConflictingAlts(t,e){if(null!=t)return t;let r=new n.BitSet;for(let t of e)r.set(t.alt);return r}};e([i.Override],o.prototype,"syntaxError",null),e([i.Override,r(0,i.NotNull),r(1,i.NotNull),r(6,i.NotNull)],o.prototype,"reportAmbiguity",null),e([i.Override,r(0,i.NotNull),r(1,i.NotNull),r(5,i.NotNull)],o.prototype,"reportAttemptingFullContext",null),e([i.Override,r(0,i.NotNull),r(1,i.NotNull),r(5,i.NotNull)],o.prototype,"reportContextSensitivity",null),e([r(0,i.NotNull),r(1,i.NotNull)],o.prototype,"getDecisionDescription",null),e([i.NotNull,r(1,i.NotNull)],o.prototype,"getConflictingAlts",null),t.DiagnosticErrorListener=o})),wr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LexerInterpreter=void 0;var n=ee(),i=te(),s=Q(),o=Q(),a=class extends n.Lexer{constructor(t,e,r,n,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=n.slice(0),this._modeNames=s.slice(0),this._vocabulary=e,this._interp=new i.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})),Ir=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),Pr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=Wt(),n=Q(),i=Ne(),s=class extends i.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([n.Override],s.prototype,"altNumber",null),t.RuleContextWithAltNum=s})),kr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.RuleDependency=void 0,t.RuleDependency=function(t){return(t,e,r)=>{}}})),Dr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0}),t.RuleVersion=void 0,t.RuleVersion=function(t){return(t,e,r)=>{}}})),Fr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),Mr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),Ur=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),jr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(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=mt(),n=Q(),i=xt(),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 n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),o=new l(this.tokens,n,i.length,e);i.push(o)}insertBefore(t,e,r=s.DEFAULT_PROGRAM_NAME){let n;n="number"==typeof t?t:t.tokenIndex;let i=this.getProgram(r),o=new a(this.tokens,n,i.length,e);i.push(o)}replaceSingle(t,e){this.replace(t,t,e)}replace(t,e,r,n=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 i=this.getProgram(n),o=new c(this.tokens,t,e,i.length,r);i.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 n;n=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=n.a,l=n.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(n);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!==i.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 n=r,i=this.getKindOfOps(t,a,e);for(let e of i)e.index===n.index?(t[e.instructionIndex]=void 0,n.text=e.text.toString()+(null!=n.text?n.text.toString():"")):e.index>n.index&&e.index<=n.lastIndex&&(t[e.instructionIndex]=void 0);let s=this.getKindOfOps(t,c,e);for(let e of s){if(e.index>=n.index&&e.lastIndex<=n.lastIndex){t[e.instructionIndex]=void 0;continue}let r=e.lastIndex<n.index||e.index>n.lastIndex;if(null!=e.text||null!=n.text||r){if(!r)throw new Error(`replace op boundaries of ${n} overlap with previous ${e}`)}else t[e.instructionIndex]=void 0,n.index=Math.min(e.index,n.index),n.lastIndex=Math.max(e.lastIndex,n.lastIndex)}}for(let e=0;e<t.length;e++){let r=t[e];if(null==r)continue;if(!(r instanceof a))continue;let n=r,i=this.getKindOfOps(t,a,e);for(let e of i)e.index===n.index&&(e instanceof l?(n.text=this.catOpText(e.text,n.text),t[e.instructionIndex]=void 0):e instanceof a&&(n.text=this.catOpText(n.text,e.text),t[e.instructionIndex]=void 0));let s=this.getKindOfOps(t,c,e);for(let r of s)if(n.index!==r.index){if(n.index>=r.index&&n.index<=r.lastIndex)throw new Error(`insert op ${n} within boundaries of previous ${r}`)}else r.text=this.catOpText(n.text,r.text),t[e]=void 0}let e=new Map;for(let r of t)if(null!=r){if(null!=e.get(r.index))throw new Error("should only be one op per index");e.set(r.index,r)}return e}catOpText(t,e){let r="",n="";return null!=t&&(r=t.toString()),null!=e&&(n=e.toString()),r+n}getKindOfOps(t,e,r){let n=[];for(let i=0;i<r&&i<t.length;i++){let r=t[i];null!=r&&r instanceof e&&n.push(r)}return n}};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,n){this.tokens=t,this.instructionIndex=r,this.index=e,this.text=void 0===n?"":n}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([n.Override],o.prototype,"toString",null),t.RewriteOperation=o;var a=class extends o{constructor(t,e,r,n){super(t,e,r,n)}execute(t){return t.push(this.text.toString()),this.tokens.get(this.index).type!==i.Token.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}};e([n.Override],a.prototype,"execute",null);var l=class extends a{constructor(t,e,r,n){super(t,e+1,r,n)}},c=class extends o{constructor(t,e,r,n,i){super(t,e,n,i),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([n.Override],c.prototype,"execute",null),e([n.Override],c.prototype,"toString",null)})),Hr=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),Br=u((t=>{p(),Object.defineProperty(t,"__esModule",{value:!0})})),Kr=u((t=>{p();var e=t&&t.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),r=t&&t.__exportStar||function(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||e(r,t,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(d(),t),r(f(),t),r(tt(),t),r(Rr(),t),r(Ge(),t),r(Cr(),t),r(Ve(),t),r(Ke(),t),r(ze(),t),r(Tt(),t),r(vt(),t),r(qe(),t),r(Pt(),t),r(Ar(),t),r(Or(),t),r(Lr(),t),r(ft(),t),r(_t(),t),r(Xe(),t),r(Z(),t),r(ee(),t),r(wr(),t),r(Qt(),t),r($e(),t),r(Nr(),t),r(Er(),t),r(Ir(),t),r(Je(),t),r(Ne(),t),r(kt(),t),r(He(),t),r(nt(),t),r(Dt(),t),r(Ee(),t),r(Pr(),t),r(kr(),t),r(Dr(),t),r(xt(),t),r(Fr(),t),r(Mr(),t),r(Ur(),t),r(jr(),t),r(Hr(),t),r(Ft(),t),r(Br(),t)})),zr=u((t=>{p();var e=t&&t.__decorate||function(t,e,r,n){var i,s=arguments.length,o=s<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o},r=t&&t.__param||function(t,e){return function(r,n){e(r,n,t)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractParseTreeVisitor=void 0;var n=Q(),i=class{visit(t){return t.accept(this)}visitChildren(t){let e=this.defaultResult(),r=t.childCount;for(let n=0;n<r&&this.shouldVisitNextChild(t,e);n++){let r=t.getChild(n).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([n.Override,r(0,n.NotNull)],i.prototype,"visit",null),e([n.Override,r(0,n.NotNull)],i.prototype,"visitChildren",null),e([n.Override,r(0,n.NotNull)],i.prototype,"visitTerminal",null),e([n.Override,r(0,n.NotNull)],i.prototype,"visitErrorNode",null),e([r(0,n.NotNull)],i.prototype,"shouldVisitNextChild",null),t.AbstractParseTreeVisitor=i})),Vr=u(((t,e)=>{function r(t){return Array.isArray(t)?"["+t.join(", ")+"]":"null"}function n(t,e){return t?t.equals(e):t==e}function i(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 n=3&t.length,i=t.length-n;let s=String.prototype.seed;const o=3432918353,a=461845907;let l=0;for(;l<i;)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,n){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||i,this.equalsFunction=e||n}put(t,e){const r="hash_"+this.hashFunction(t);if(r in this.data){const n=this.data[r];for(let r=0;r<n.length;r++){const i=n[r];if(this.equalsFunction(t,i.key)){const t=i.value;return i.value=e,t}}return n.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 n=r[e];if(this.equalsFunction(t,n.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 n=r[e];if(this.equalsFunction(t,n.key))return n.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||i,this.equalsFunction=e||n}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 n=this.cacheMap.get(t)||null;null===n&&(n=new this.defaultMapCtor,this.cacheMap.put(t,n)),n.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}}})),Gr=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 n=class extends r{constructor(t,e,i,s,o){super(),this.source=void 0!==t?t:n.EMPTY_SOURCE,this.type=void 0!==e?e:null,this.channel=void 0!==i?i: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 n(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}};n.EMPTY_SOURCE=[null,null],e.exports={Token:r,CommonToken:n}})),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 n=class extends r{constructor(){return super(),this.decision=-1,this.nonGreedy=!1,this}},i=class extends n{constructor(){return super(),this.endState=null,this}};e.exports={ATNState:r,BasicState:class extends r{constructor(){super(),this.stateType=r.BASIC}},DecisionState:n,BlockStartState:i,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 n{constructor(){return super(),this.stateType=r.TOKEN_START,this}},PlusLoopbackState:class extends n{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 n{constructor(){return super(),this.stateType=r.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}},PlusBlockStartState:class extends i{constructor(){return super(),this.stateType=r.PLUS_BLOCK_START,this.loopBackState=null,this}},StarBlockStartState:class extends i{constructor(){return super(),this.stateType=r.STAR_BLOCK_START,this}},BasicBlockStartState:class extends i{constructor(){return super(),this.stateType=r.BLOCK_START,this}}}})),$r=u(((t,e)=>{p();var{Set:r,Hash:n,equalArrays:i}=Vr(),s=class{hashCode(){const t=new n;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 n=new r;t instanceof l?t.opnds.map((function(t){n.add(t)})):n.add(t),e instanceof l?e.opnds.map((function(t){n.add(t)})):n.add(e);const i=a.filterPrecedencePredicates(n);if(i.length>0){let t=null;i.map((function(e){(null===t||e.precedence<t.precedence)&&(t=e)})),n.add(t)}this.opnds=Array.from(n.values())}equals(t){return this===t||t instanceof l&&i(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 n=[];for(let i=0;i<this.opnds.length;i++){const o=this.opnds[i],a=o.evalPrecedence(t,e);if(r|=a!==o,null===a)return null;a!==s.NONE&&n.push(a)}if(!r)return this;if(0===n.length)return s.NONE;let i=null;return n.map((function(t){i=null===i?t:s.andContext(i,t)})),i}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 n=new r;t instanceof c?t.opnds.map((function(t){n.add(t)})):n.add(t),e instanceof c?e.opnds.map((function(t){n.add(t)})):n.add(e);const i=a.filterPrecedencePredicates(n);if(i.length>0){const t=i.sort((function(t,e){return t.compareTo(e)})),e=t[t.length-1];n.add(e)}this.opnds=Array.from(n.values())}equals(t){return this===t||t instanceof c&&i(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 n=[];for(let i=0;i<this.opnds.length;i++){const o=this.opnds[i],a=o.evalPrecedence(t,e);if(r|=a!==o,a===s.NONE)return s.NONE;null!==a&&n.push(a)}if(!r)return this;if(0===n.length)return null;return n.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}})),Yr=u(((t,e)=>{p();var{DecisionState:r}=qr(),{SemanticContext:n}=$r(),{Hash:i}=Vr();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:n.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 i;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 i;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!==n.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})),Wr=u(((t,e)=>{p();var{Token:r}=Gr(),n=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}},i=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 n(t,t+1))}addRange(t,e){this.addInterval(new n(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 n(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 n(e.start,r.stop),this.intervals.splice(t+1,1))}}complement(t,e){const r=new i;return r.addInterval(new n(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 n(r.start,t.start);const i=new n(t.stop,r.stop);return void this.intervals.splice(e,0,i)}t.start<=r.start&&t.stop>=r.stop?(this.intervals.splice(e,1),e-=1):t.start<r.stop?this.intervals[e]=new n(r.start,t.start):t.stop<r.stop&&(this.intervals[e]=new n(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 n(r.start+1,r.stop));if(t===r.stop-1)return void(this.intervals[e]=new n(r.start,r.stop-1));if(t<r.stop-1){const i=new n(r.start,t);return r.start=t+1,void this.intervals.splice(e,0,i)}}}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 n=this.intervals[e];n.stop===n.start+1?n.start===r.EOF?t.push("<EOF>"):t.push("'"+String.fromCharCode(n.start)+"'"):t.push("'"+String.fromCharCode(n.start)+"'..'"+String.fromCharCode(n.stop-1)+"'")}return t.length>1?"{"+t.join(", ")+"}":t[0]}toIndexString(){const t=[];for(let e=0;e<this.intervals.length;e++){const n=this.intervals[e];n.stop===n.start+1?n.start===r.EOF?t.push("<EOF>"):t.push(n.start.toString()):t.push(n.start.toString()+".."+(n.stop-1).toString())}return t.length>1?"{"+t.join(", ")+"}":t[0]}toTokenString(t,e){const r=[];for(let n=0;n<this.intervals.length;n++){const i=this.intervals[n];for(let n=i.start;n<i.stop;n++)r.push(this.elementName(t,e,n))}return r.length>1?"{"+r.join(", ")+"}":r[0]}elementName(t,e,n){return n===r.EOF?"<EOF>":n===r.EPSILON?"<EPSILON>":t[n]||e[n]}get length(){return this.intervals.map((t=>t.length)).reduce(((t,e)=>t+e))}};e.exports={Interval:n,IntervalSet:i}})),Xr=u(((t,e)=>{p();var{Token:r}=Gr(),{IntervalSet:n}=Wr(),{Predicate:i,PrecedencePredicate:s}=$r(),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 n,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 n;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,n){super(t),this.ruleIndex=e,this.precedence=r,this.followState=n,this.serializationType=o.RULE,this.isEpsilon=!0}matches(t,e,r){return!1}},ActionTransition:class extends o{constructor(t,e,r,n){super(t),this.serializationType=o.ACTION,this.ruleIndex=e,this.actionIndex=void 0===r?-1:r,this.isCtxDependent=void 0!==n&&n,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 n;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,n){super(t),this.serializationType=o.PREDICATE,this.ruleIndex=e,this.predIndex=r,this.isCtxDependent=n,this.isEpsilon=!0}matches(t,e,r){return!1}getPredicate(){return new i(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}})),Jr=u(((t,e)=>{p();var{Token:r}=Gr(),{Interval:n}=Wr(),i=new n(-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 i;const t=this.symbol.tokenIndex;return new n(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 n=e.getChild(r);this.walk(t,n)}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:i}})),Qr=u(((t,e)=>{p();var r=Vr(),{Token:n}=Gr(),{ErrorNode:i,TerminalNode:s,RuleNode:o}=Jr(),a={toStringTree:function(t,e,n){e=e||null,null!==(n=n||null)&&(e=n.ruleNames);let i=a.getNodeText(t,e);i=r.escapeWhitespace(i,!1);const s=t.getChildCount();if(0===s)return i;let o="("+i+" ";s>0&&(i=a.toStringTree(t.getChild(0),e),o=o.concat(i));for(let r=1;r<s;r++)i=a.toStringTree(t.getChild(r),e),o=o.concat(" "+i);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 i)return t.toString();if(t instanceof s&&null!==t.symbol)return t.symbol.text}const a=t.getPayload();return a instanceof n?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 n=[];return a._findAllNodes(t,e,r,n),n},_findAllNodes:function(t,e,r,n){r&&t instanceof s?t.symbol.type===e&&n.push(t):!r&&t instanceof o&&t.ruleIndex===e&&n.push(t);for(let i=0;i<t.getChildCount();i++)a._findAllNodes(t.getChild(i),e,r,n)},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})),Zr=u(((t,e)=>{p();var{RuleNode:r}=Jr(),{INVALID_INTERVAL:n}=Jr(),i=Qr();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 n}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 i.toStringTree(this,t,e)}toString(t,e){t=t||null,e=e||null;let r=this,n="[";for(;null!==r&&r!==e;){if(null===t)r.isEmpty()||(n+=r.invokingState);else{const e=r.ruleIndex;n+=e>=0&&e<t.length?t[e]:""+e}null===r.parentCtx||null===t&&r.parentCtx.isEmpty()||(n+=" "),r=r.parentCtx}return n+="]",n}}})),tn=u(((t,e)=>{p();var r=Zr(),{Hash:n,Map:i,equalArrays:s}=Vr(),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 i=new n;null!==t?i.update(t,e):i.update(1),r=i.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 n;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,n,s){if(e===r)return e;if(e instanceof a&&r instanceof a)return function(e,r,n,i){if(null!==i){let t=i.get(e,r);if(null!==t)return t;if(t=i.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,n);if(null!==s)return null!==i&&i.set(e,r,s),s;if(e.returnState===r.returnState){const s=t(e.parentCtx,r.parentCtx,n,i);if(s===e.parentCtx)return e;if(s===r.parentCtx)return r;const o=a.create(s,e.returnState);return null!==i&&i.set(e,r,o),o}{let t=null;if((e===r||null!==e.parentCtx&&e.parentCtx===r.parentCtx)&&(t=e.parentCtx),null!==t){const n=[e.returnState,r.returnState];e.returnState>r.returnState&&(n[0]=r.returnState,n[1]=e.returnState);const s=new c([t,t],n);return null!==i&&i.set(e,r,s),s}const n=[e.returnState,r.returnState];let s=[e.parentCtx,r.parentCtx];e.returnState>r.returnState&&(n[0]=r.returnState,n[1]=e.returnState,s=[r.parentCtx,e.parentCtx]);const o=new c(s,n);return null!==i&&i.set(e,r,o),o}}(e,r,n,s);if(n){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,n,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 i=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===i&&null===a||null!==i&&null!==a&&i===a?(d[h]=i,p[h]=r):(d[h]=t(i,a,n,s),p[h]=r),l+=1,u+=1}else e.returnStates[l]<r.returnStates[u]?(d[h]=i,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 i;for(let r=0;r<t.length;r++){const n=t[r];e.containsKey(n)||e.put(n,n)}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,n,s)},PredictionContext:o,PredictionContextCache:class{constructor(){this.cache=new i}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,n){if(null==n&&(n=r.EMPTY),null===n.parentCtx||n===r.EMPTY)return o.EMPTY;const i=t(e,n.parentCtx),s=e.states[n.invokingState].transitions[0];return a.create(i,s.followState.stateNumber)},getCachedPredictionContext:function t(e,r,n){if(e.isEmpty())return e;let i=n.get(e)||null;if(null!==i)return i;if(i=r.get(e),null!==i)return n.put(e,i),i;let s=!1,l=[];for(let i=0;i<l.length;i++){const o=t(e.getParent(i),r,n);if(s||o!==e.getParent(i)){if(!s){l=[];for(let t=0;t<e.length;t++)l[t]=e.getParent(t);s=!0}l[i]=o}}if(!s)return r.add(e),n.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),n.put(u,u),n.put(e,u),u}}})),en=u(((t,e)=>{p();var{Set:r,BitSet:n}=Vr(),{Token:i}=Gr(),{ATNConfig:s}=Yr(),{IntervalSet:o}=Wr(),{RuleStopState:a}=qr(),{RuleTransition:l,NotSetTransition:c,WildcardTransition:u,AbstractPredicateTransition:h}=Xr(),{predictionContextFromRuleContext:d,PredictionContext:f,SingletonPredictionContext:_}=tn(),y=class{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 o;const e=new r,a=!1;this._LOOK(t.transition(s).target,null,f.EMPTY,i[s],e,new n,a,!1),(0===i[s].length||i[s].contains(y.HIT_PRED))&&(i[s]=null)}return i}LOOK(t,e,i){const s=new o,a=null!==(i=i||null)?d(t.atn,i):null;return this._LOOK(t,e,a,s,new r,new n,!0,!0),s}_LOOK(t,e,r,n,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 n.addOne(i.EPSILON);if(r.isEmpty()&&g)return void n.addOne(i.EOF)}if(t instanceof a){if(null===r)return void n.addOne(i.EPSILON);if(r.isEmpty()&&g)return void n.addOne(i.EOF);if(r!==f.EMPTY){const i=p.contains(t.ruleIndex);try{p.remove(t.ruleIndex);for(let t=0;t<r.length;t++){const i=this.atn.states[r.getReturnState(t)];this._LOOK(i,e,r.getParent(t),n,o,p,d,g)}}finally{i&&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,n,o,p,d,g)}finally{p.remove(a.target.ruleIndex)}}else if(a instanceof h)d?this._LOOK(a.target,e,r,n,o,p,d,g):n.addOne(y.HIT_PRED);else if(a.isEpsilon)this._LOOK(a.target,e,r,n,o,p,d,g);else if(a.constructor===u)n.addRange(i.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{let t=a.label;null!==t&&(a instanceof c&&(t=t.complement(i.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),n.addSet(t))}}}}};y.HIT_PRED=i.INVALID_TYPE,e.exports=y})),rn=u(((t,e)=>{p();var r=en(),{IntervalSet:n}=Wr(),{Token:i}=Gr(),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(i.EPSILON))return s;const o=new n;for(o.addSet(s),o.removeOne(i.EPSILON);null!==e&&e.invokingState>=0&&s.contains(i.EPSILON);){const t=this.states[e.invokingState].transitions[0];s=this.nextTokens(t.followState),o.addSet(s),o.removeOne(i.EPSILON),e=e.parentCtx}return s.contains(i.EPSILON)&&o.addOne(i.EOF),o}};s.INVALID_ALT_NUMBER=0,e.exports=s})),nn=u(((t,e)=>{p(),e.exports={LEXER:0,PARSER:1}})),sn=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})),on=u(((t,e)=>{p();var r={CHANNEL:0,CUSTOM:1,MODE:2,MORE:3,POP_MODE:4,PUSH_MODE:5,SKIP:6,TYPE:7},n=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}},i=class extends n{constructor(){super(r.SKIP)}execute(t){t.skip()}toString(){return"skip"}};i.INSTANCE=new i;var s=class extends n{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 n{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 n{constructor(){super(r.POP_MODE)}execute(t){t.popMode()}toString(){return"popMode"}};a.INSTANCE=new a;var l=class extends n{constructor(){super(r.MORE)}execute(t){t.more()}toString(){return"more"}};l.INSTANCE=new l;var c=class extends n{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 n{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 n{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 n{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:i,LexerChannelAction:h,LexerCustomAction:u,LexerIndexedCustomAction:d,LexerMoreAction:l,LexerTypeAction:s,LexerPushModeAction:o,LexerPopModeAction:a,LexerModeAction:c}})),an=u(((t,e)=>{p();var{Token:r}=Gr(),n=rn(),i=nn(),{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}=Xr(),{IntervalSet:I}=Wr(),P=sn(),{LexerActionType:k,LexerSkipAction:D,LexerChannelAction:F,LexerCustomAction:M,LexerMoreAction:U,LexerTypeAction:j,LexerPushModeAction:H,LexerPopModeAction:B,LexerModeAction:K}=on(),z="59627784-3BE5-417A-B9EB-8131A7286089",V=["AADB8D7E-AEEF-4415-AD2B-8204D6CF042E",z],G=z;function q(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===i.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 G;this.uuid=t}readATN(){const t=this.readInt(),e=this.readInt();return new n(t,e)}readStates(t){let e,r,n;const i=[],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 n=this.stateFactory(e,r);if(e===s.LOOP_END){const t=this.readInt();i.push([n,t])}else if(n instanceof l){const t=this.readInt();o.push([n,t])}t.addState(n)}for(e=0;e<i.length;e++)r=i[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++)n=this.readInt(),t.states[n].nonGreedy=!0;let u=this.readInt();for(e=0;e<u;e++)n=this.readInt(),t.states[n].isPrecedenceRule=!0}readRules(t){let e;const n=this.readInt();for(t.grammarType===i.LEXER&&(t.ruleToTokenType=q(n,0)),t.ruleToStartState=q(n,0),e=0;e<n;e++){const n=this.readInt();if(t.ruleToStartState[e]=t.states[n],t.grammarType===i.LEXER){let n=this.readInt();65535===n&&(n=r.EOF),t.ruleToTokenType[e]=n}}for(t.ruleToStopState=q(n,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 n=this.readInt();for(let t=0;t<n;t++){const t=new I;e.push(t);const n=this.readInt();0!==this.readInt()&&t.addOne(-1);for(let e=0;e<n;e++){const e=r(),n=r();t.addRange(e,n)}}}readEdges(t,e){let r,n,i,s,o;const a=this.readInt();for(r=0;r<a;r++){const r=this.readInt(),n=this.readInt(),i=this.readInt(),o=this.readInt(),a=this.readInt(),l=this.readInt();s=this.edgeFactory(t,i,r,n,o,a,l,e),t.states[r].addTransition(s)}for(r=0;r<t.states.length;r++)for(i=t.states[r],n=0;n<i.transitions.length;n++){const e=i.transitions[n];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(i=t.states[r],i instanceof l){if(null===i.endState)throw"IllegalState";if(null!==i.endState.startState)throw"IllegalState";i.endState.startState=i}if(i instanceof _)for(n=0;n<i.transitions.length;n++)o=i.transitions[n].target,o instanceof m&&(o.loopBackState=i);else if(i instanceof y)for(n=0;n<i.transitions.length;n++)o=i.transitions[n].target,o instanceof g&&(o.loopBackState=i)}}readDecisions(t){const e=this.readInt();for(let r=0;r<e;r++){const e=this.readInt(),n=t.states[e];t.decisionToState.push(n),n.decision=r}}readLexerActions(t){if(t.grammarType===i.LEXER){const e=this.readInt();t.lexerActions=q(e,null);for(let r=0;r<e;r++){const e=this.readInt();let n=this.readInt();65535===n&&(n=-1);let i=this.readInt();65535===i&&(i=-1),t.lexerActions[r]=this.lexerActionFactory(e,n,i)}}}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,n;const i=new T;i.ruleIndex=e,t.addState(i);const s=new c;s.ruleIndex=e,t.addState(s),i.endState=s,t.defineDecisionState(i),s.startState=i;let a=null,l=null;if(t.ruleToStartState[e].isPrecedenceRule){for(l=null,r=0;r<t.states.length;r++)if(n=t.states[r],this.stateIsEndStateFor(n,e)){l=n,a=n.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++){n=t.states[r];for(let t=0;t<n.transitions.length;t++){const e=n.transitions[t];e!==a&&e.target===l&&(e.target=s)}}const u=t.ruleToStartState[e],h=u.transitions.length;for(;h>0;)i.addTransition(u.transitions[h-1]),u.transitions=u.transitions.slice(-1);t.ruleToStartState[e].addTransition(new C(i)),s.addTransition(new C(l));const p=new o;t.addState(p),p.addTransition(new S(s,t.ruleToTokenType[e])),i.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,n,i,s,o,a,l){const c=t.states[i];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 K(t),t[k.MORE]=(t,e)=>U.INSTANCE,t[k.POP_MODE]=(t,e)=>B.INSTANCE,t[k.PUSH_MODE]=(t,e)=>new H(t),t[k.SKIP]=(t,e)=>D.INSTANCE,t[k.TYPE]=(t,e)=>new j(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)}}})),ln=u(((t,e)=>{p();var r=class{syntaxError(t,e,r,n,i,s){}reportAmbiguity(t,e,r,n,i,s,o){}reportAttemptingFullContext(t,e,r,n,i,s){}reportContextSensitivity(t,e,r,n,i,s){}},n=class extends r{constructor(){super()}syntaxError(t,e,r,n,i,s){console.error("line "+r+":"+n+" "+i)}};n.INSTANCE=new n,e.exports={ErrorListener:r,ConsoleErrorListener:n,ProxyErrorListener:class extends r{constructor(t){if(super(),null===t)throw"delegates";return this.delegates=t,this}syntaxError(t,e,r,n,i,s){this.delegates.map((o=>o.syntaxError(t,e,r,n,i,s)))}reportAmbiguity(t,e,r,n,i,s,o){this.delegates.map((a=>a.reportAmbiguity(t,e,r,n,i,s,o)))}reportAttemptingFullContext(t,e,r,n,i,s){this.delegates.map((o=>o.reportAttemptingFullContext(t,e,r,n,i,s)))}reportContextSensitivity(t,e,r,n,i,s){this.delegates.map((o=>o.reportContextSensitivity(t,e,r,n,i,s)))}}}})),cn=u(((t,e)=>{p();var{Token:r}=Gr(),{ConsoleErrorListener:n}=ln(),{ProxyErrorListener:i}=ln(),s=class{constructor(){this._listeners=[n.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 i(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})),un=u(((t,e)=>{p();var r=Gr().CommonToken,n=class{},i=class extends n{constructor(t){super(),this.copyText=void 0!==t&&t}create(t,e,n,i,s,o,a,l){const c=new r(t,e,i,s,o);return c.line=a,c.column=l,null!==n?c.text=n:this.copyText&&null!==t[1]&&(c.text=t[1].getText(s,o)),c}createThin(t,e){const n=new r(null,t);return n.text=e,n}};i.DEFAULT=new i,e.exports=i})),hn=u(((t,e)=>{p();var{PredicateTransition:r}=Xr(),{Interval:n}=Wr().Interval,i=class extends Error{constructor(t){super(t.message),Error.captureStackTrace?Error.captureStackTrace(this,i):(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:i,NoViableAltException:class extends i{constructor(t,e,r,n,i,s){s=s||t._ctx,n=n||t.getCurrentToken(),r=r||t.getCurrentToken(),e=e||t.getInputStream(),super({message:"",recognizer:t,input:e,ctx:s}),this.deadEndConfigs=i,this.startToken=r,this.offendingToken=n}},LexerNoViableAltException:class extends i{constructor(t,e,r,n){super({message:"",recognizer:t,input:e,ctx:null}),this.startIndex=r,this.deadEndConfigs=n}toString(){let t="";return this.startIndex>=0&&this.startIndex<this.input.size&&(t=this.input.getText(new n(this.startIndex,this.startIndex))),"LexerNoViableAltException"+t}},InputMismatchException:class extends i{constructor(t){super({message:"",recognizer:t,input:t.getInputStream(),ctx:t._ctx}),this.offendingToken=t.getCurrentToken()}},FailedPredicateException:class extends i{constructor(t,e,n){super({message:s(e,n||null),recognizer:t,input:t.getInputStream(),ctx:t._ctx});const i=t._interp.atn.states[t.state].transitions[0];i instanceof r?(this.ruleIndex=i.ruleIndex,this.predicateIndex=i.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=e,this.offendingToken=t.getCurrentToken()}},ParseCancellationException:o}})),pn=u(((t,e)=>{p();var{Token:r}=Gr(),n=cn(),i=un(),{RecognitionException:s}=hn(),{LexerNoViableAltException:o}=hn(),a=class extends n{constructor(t){super(),this._input=t,this._factory=i.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,n=this._factory.create(this._tokenFactorySourcePair,r.EOF,null,r.DEFAULT_CHANNEL,this._input.index,this._input.index-1,e,t);return this.emitToken(n),n}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,n=this._input.getText(e,r),i="token recognition error at: '"+this.getErrorDisplay(n)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,i,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})),dn=u(((t,e)=>{p();var r=rn(),n=Vr(),{SemanticContext:i}=$r(),{merge:s}=tn();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 n.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!==i.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 n=!this.fullCtx,o=s(r.context,t.context,n,e);return r.reachesIntoOuterContext=Math.max(r.reachesIntoOuterContext,t.reachesIntoOuterContext),t.precedenceFilterSuppressed&&(r.precedenceFilterSuppressed=!0),r.context=o,!0}getStates(){const t=new n.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!==i.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&&n.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 n.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 n.Set}setReadonly(t){this.readOnly=t,t&&(this.configLookup=null)}toString(){return n.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 n.Set}}}})),fn=u(((t,e)=>{p();var{ATNConfigSet:r}=dn(),{Hash:n,Set:i}=Vr(),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 i;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 n;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+")"}}}})),_n=u(((t,e)=>{p();var{DFAState:r}=fn(),{ATNConfigSet:n}=dn(),{getCachedPredictionContext:i}=tn(),{Map:s}=Vr(),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 i(t,this.sharedContextCache,e)}};o.ERROR=new r(2147483647,new n),e.exports=o})),yn=u(((t,e)=>{p();var{hashStuff:r}=Vr(),{LexerIndexedCustomAction:n}=on(),i=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 n||(null===e&&(e=this.lexerActions.concat([])),e[r]=new n(t,this.lexerActions[r]));return null===e?this:new i(e)}execute(t,e,r){let i=!1;const s=e.index;try{for(let o=0;o<this.lexerActions.length;o++){let a=this.lexerActions[o];if(a instanceof n){const t=a.offset;e.seek(r+t),a=a.action,i=r+t!==s}else a.isPositionDependent&&(e.seek(s),i=!1);a.execute(t)}}finally{i&&e.seek(s)}}hashCode(){return this.cachedHashCode}updateHashCode(t){t.update(this.cachedHashCode)}equals(t){if(this===t)return!0;if(t instanceof i){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 i([e]);const r=t.lexerActions.concat([e]);return new i(r)}};e.exports=i})),gn=u(((t,e)=>{p();var{Token:r}=Gr(),n=pn(),i=rn(),s=_n(),{DFAState:o}=fn(),{OrderedATNConfigSet:a}=dn(),{PredictionContext:l}=tn(),{SingletonPredictionContext:c}=tn(),{RuleStopState:u}=qr(),{LexerATNConfig:h}=Yr(),{Transition:d}=Xr(),f=yn(),{LexerNoViableAltException:_}=hn();function y(t){t.index=-1,t.line=0,t.column=-1,t.dfaState=null}var g=class extends s{constructor(t,e,r,i){super(e,i),this.decisionToDFA=r,this.recog=t,this.startIndex=-1,this.line=1,this.column=0,this.mode=n.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 n=this.decisionToDFA[e];return null===n.s0?this.matchATN(t):this.execATN(t,n.s0)}finally{t.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=n.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,n=this.computeStartState(t,e),i=n.hasSemanticContext;n.hasSemanticContext=!1;const s=this.addDFAState(n);i||(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 n=t.LA(1),i=e;for(;;){g.debug&&console.log("execATN loop starting closure: "+i.configs);let e=this.getExistingTargetState(i,n);if(null===e&&(e=this.computeTargetState(t,i,n)),e===s.ERROR)break;if(n!==r.EOF&&this.consume(t),e.isAcceptState&&(this.captureSimState(this.prevAccept,t,e),n===r.EOF))break;n=t.LA(1),i=e}return this.failOrAccept(this.prevAccept,t,i.configs,n)}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 n=new a;return this.getReachableConfigSet(t,e.configs,n,r),0===n.items.length?(n.hasSemanticContext||this.addDFAEdge(e,r,s.ERROR),s.ERROR):this.addDFAEdge(e,r,null,n)}failOrAccept(t,e,n,i){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(i===r.EOF&&e.index===this.startIndex)return r.EOF;throw new _(this.recog,e,this.startIndex,n)}getReachableConfigSet(t,e,n,s){let o=i.INVALID_ALT_NUMBER;for(let i=0;i<e.items.length;i++){const a=e.items[i],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 i=a.state.transitions[e],c=this.getReachableTarget(i,s);if(null!==c){let e=a.lexerActionExecutor;null!==e&&(e=e.fixOffsetBeforeMatch(t.index-this.startIndex));const i=s===r.EOF,u=new h({state:c,lexerActionExecutor:e},a);this.closure(t,u,n,l,!0,i)&&(o=a.alt)}}}}}accept(t,e,r,n,i,s){g.debug&&console.log("ACTION %s\n",e),t.seek(n),this.line=i,this.column=s,null!==e&&null!==this.recog&&e.execute(this.recog,t,r)}getReachableTarget(t,e){return t.matches(e,0,n.MAX_CHAR_VALUE)?t.target:null}computeStartState(t,e){const r=l.EMPTY,n=new a;for(let i=0;i<e.transitions.length;i++){const s=e.transitions[i].target,o=new h({state:s,alt:i+1,context:r},null);this.closure(t,o,n,!1,!1,!1)}return n}closure(t,e,r,n,i,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)),n=!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),n=this.closure(t,o,r,n,i,s)}return n}e.state.epsilonOnlyTransitions||n&&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,i,s),null!==o&&(n=this.closure(t,o,r,n,i,s))}return n}getEpsilonTarget(t,e,i,s,o,a){let l=null;if(i.serializationType===d.RULE){const t=c.create(e.context,i.followState.stateNumber);l=new h({state:i.target,context:t},e)}else{if(i.serializationType===d.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(i.serializationType===d.PREDICATE)g.debug&&console.log("EVAL rule "+i.ruleIndex+":"+i.predIndex),s.hasSemanticContext=!0,this.evaluatePredicate(t,i.ruleIndex,i.predIndex,o)&&(l=new h({state:i.target},e));else if(i.serializationType===d.ACTION)if(null===e.context||e.context.hasEmptyPath()){const t=f.append(e.lexerActionExecutor,this.atn.lexerActions[i.actionIndex]);l=new h({state:i.target,lexerActionExecutor:t},e)}else l=new h({state:i.target},e);else i.serializationType===d.EPSILON?l=new h({state:i.target},e):i.serializationType!==d.ATOM&&i.serializationType!==d.RANGE&&i.serializationType!==d.SET||a&&i.matches(r.EOF,0,n.MAX_CHAR_VALUE)&&(l=new h({state:i.target},e))}return l}evaluatePredicate(t,e,r,n){if(null===this.recog)return!0;if(!n)return this.recog.sempred(null,e,r);const i=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=i,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,n){if(void 0===r&&(r=null),void 0===n&&(n=null),null===r&&null!==n){const t=n.hasSemanticContext;if(n.hasSemanticContext=!1,r=this.addDFAState(n),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 n=t.items[e];if(n.state instanceof u){r=n;break}}null!==r&&(e.isAcceptState=!0,e.lexerActionExecutor=r.lexerActionExecutor,e.prediction=this.atn.ruleToTokenType[r.state.ruleIndex]);const n=this.decisionToDFA[this.mode],i=n.states.get(e);if(null!==i)return i;const s=e;return s.stateNumber=n.states.length,t.setReadonly(!0),s.configs=t,n.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})),mn=u(((t,e)=>{p();var{Map:r,BitSet:n,AltDict:i,hashStuff:s}=Vr(),o=rn(),{RuleStopState:a}=qr(),{ATNConfigSet:l}=dn(),{ATNConfig:c}=Yr(),{SemanticContext:u}=$r(),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 n=e.items[r];n=new c({semanticContext:u.NONE},n),t.add(n)}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 n=t[r];if(null===e)e=n;else if(n!==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 n;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 n,e.put(t,r)),r.add(t.alt)})),e.getValues()},getStateToAltMap:function(t){const e=new i;return t.items.map((function(t){let r=e.get(t.state);null===r&&(r=new n,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 n=t[r].minValue();if(null===e)e=n;else if(e!==n)return o.INVALID_ALT_NUMBER}return e}};e.exports=h})),xn=u(((t,e)=>{p();var r=Zr(),n=Jr(),i=n.INVALID_INTERVAL,s=n.TerminalNode,o=n.TerminalNodeImpl,a=n.ErrorNodeImpl,l=Wr().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 n=this.children[r];if(n instanceof e){if(0===t)return n;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 n=this.children[r];if(n instanceof s&&n.symbol.type===t){if(0===e)return n;e-=1}}return null}getTokens(t){if(null===this.children)return[];{const e=[];for(let r=0;r<this.children.length;r++){const n=this.children[r];n instanceof s&&n.symbol.type===t&&e.push(n)}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 n=this.children[r];n instanceof t&&e.push(n)}return e}}getChildCount(){return null===this.children?0:this.children.length}getSourceInterval(){return null===this.start||null===this.stop?i:new l(this.start.tokenIndex,this.stop.tokenIndex)}};r.EMPTY=new c,e.exports=c})),Tn=u(((t,e)=>{p();var r=Vr(),{Set:n,BitSet:i,DoubleDict:s}=r,o=rn(),{ATNState:a,RuleStopState:l}=qr(),{ATNConfig:c}=Yr(),{ATNConfigSet:u}=dn(),{Token:h}=Gr(),{DFAState:d,PredPrediction:f}=fn(),_=_n(),y=mn(),g=Zr(),{SemanticContext:m}=(xn(),$r()),{PredictionContext:x}=tn(),{Interval:T}=Wr(),{Transition:v,SetTransition:S,NotSetTransition:b,RuleTransition:E,ActionTransition:N}=Xr(),{NoViableAltException:A}=hn(),{SingletonPredictionContext:R,predictionContextFromRuleContext:C}=tn();e.exports=class extends _{constructor(t,e,r,n){super(e,n),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 n=this.decisionToDFA[e];this._dfa=n;const i=t.mark(),s=t.index;try{let e;if(e=n.precedenceDfa?n.getPrecedenceStartState(this.parser.getPrecedence()):n.s0,null===e){null===r&&(r=g.EMPTY),(this.debug||this.debug_list_atn_decisions)&&console.log("predictATN decision "+n.decision+" exec LA(1)=="+this.getLookaheadName(t)+", outerContext="+r.toString(this.parser.ruleNames));const i=!1;let s=this.computeStartState(n.atnStartState,g.EMPTY,i);n.precedenceDfa?(n.s0.configs=s,s=this.applyPrecedenceFilter(s),e=this.addDFAState(n,new d(null,s)),n.setPrecedenceStartState(this.parser.getPrecedence(),e)):(e=this.addDFAState(n,new d(null,s)),n.s0=e)}const o=this.execATN(n,e,t,s,r);return this.debug&&console.log("DFA after predictATN: "+n.toString(this.parser.literalNames)),o}finally{this._dfa=null,this.mergeCache=null,t.seek(s),t.release(i)}}execATN(t,e,r,n,i){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,i,a.configs,n);if(r.seek(n),s=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(a.configs,i),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!==n&&r.seek(n),o=this.evalSemanticContext(e.predicates,i,!0),1===o.length)return this.debug&&console.log("Full LL avoided"),o.minValue();t!==n&&r.seek(t)}this.dfa_debug&&console.log("ctx sensitive state "+i+" in "+e);const a=!0,l=this.computeStartState(t.atnStartState,i,a);return this.reportAttemptingFullContext(t,o,e.configs,n,r.index),s=this.execATNWithFullContext(t,e,l,r,n,i),s}if(e.isAcceptState){if(null===e.predicates)return e.prediction;const s=r.index;r.seek(n);const o=this.evalSemanticContext(e.predicates,i,!0);if(0===o.length)throw this.noViableAlt(r,i,e.configs,n);return 1===o.length||this.reportAmbiguity(t,e,n,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,n){const i=this.computeReachSet(e.configs,n,!1);if(null===i)return this.addDFAEdge(t,e,n,_.ERROR),_.ERROR;let s=new d(null,i);const a=this.getUniqueAlt(i);if(this.debug){const t=y.getConflictingAltSubsets(i);console.log("SLL altSubSets="+r.arrayToString(t)+", previous="+e.configs+", configs="+i+", predict="+a+", allSubsetsConflict="+y.allSubsetsConflict(t)+", conflictingAlts="+this.getConflictingAlts(i))}return a!==o.INVALID_ALT_NUMBER?(s.isAcceptState=!0,s.configs.uniqueAlt=a,s.prediction=a):y.hasSLLConflictTerminatingPrediction(this.predictionMode,i)&&(s.configs.conflictingAlts=this.getConflictingAlts(i),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,n,s),s}predicateDFAState(t,e){const r=e.transitions.length,n=this.getConflictingAltsOrUniqueAlt(t.configs),i=this.getPredsForAmbigAlts(n,t.configs,r);null!==i?(t.predicates=this.getPredicatePredictions(n,i),t.prediction=o.INVALID_ALT_NUMBER):t.prediction=n.minValue()}execATNWithFullContext(t,e,r,n,i,s){(this.debug||this.debug_list_atn_decisions)&&console.log("execATNWithFullContext "+r);let a,l=!1,c=r;n.seek(i);let u=n.LA(1),p=-1;for(;;){if(a=this.computeReachSet(c,u,!0),null===a){const t=this.noViableAlt(n,s,c,i);n.seek(i);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&&(n.consume(),u=n.LA(1))}return a.uniqueAlt!==o.INVALID_ALT_NUMBER?(this.reportContextSensitivity(t,p,a,i,n.index),p):(this.reportAmbiguity(t,e,i,n.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 i=new u(r);let a=null;for(let n=0;n<t.items.length;n++){const s=t.items[n];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],n=this.getReachableTarget(r,e);if(null!==n){const t=new c({state:n},s);i.add(t,this.mergeCache),this.debug_add&&console.log("added "+t+" to intermediate")}}}let p=null;if(null===a&&e!==h.EOF&&(1===i.items.length||this.getUniqueAlt(i)!==o.INVALID_ALT_NUMBER)&&(p=i),null===p){p=new u(r);const t=new n,s=e===h.EOF;for(let e=0;e<i.items.length;e++)this.closure(i.items[e],p,t,!1,r,s)}if(e===h.EOF&&(p=this.removeAllConfigsNotInRuleStopState(p,p===i)),!(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 n=0;n<t.items.length;n++){const i=t.items[n];if(i.state instanceof l)r.add(i,this.mergeCache);else if(e&&i.state.epsilonOnlyTransitions&&this.atn.nextTokens(i.state).contains(h.EPSILON)){const t=this.atn.ruleToStopState[i.state.ruleIndex];r.add(new c({state:t},i),this.mergeCache)}}return r}computeStartState(t,e,r){const i=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:i},null),l=new n;this.closure(a,s,l,!0,r,!1)}return s}applyPrecedenceFilter(t){let e;const r=[],n=new u(t.fullCtx);for(let i=0;i<t.items.length;i++){if(e=t.items[i],1!==e.alt)continue;const s=e.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==s&&(r[e.state.stateNumber]=e.context,s!==e.semanticContext?n.add(new c({semanticContext:s},e),this.mergeCache):n.add(e,this.mergeCache))}for(let i=0;i<t.items.length;i++)if(e=t.items[i],1!==e.alt){if(!e.precedenceFilterSuppressed){const t=r[e.state.stateNumber]||null;if(null!==t&&t.equals(e.context))continue}n.add(e,this.mergeCache)}return n}getReachableTarget(t,e){return t.matches(e,0,this.atn.maxTokenType)?t.target:null}getPredsForAmbigAlts(t,e,n){let i=[];for(let r=0;r<e.items.length;r++){const n=e.items[r];t.contains(n.alt)&&(i[n.alt]=m.orContext(i[n.alt]||null,n.semanticContext))}let s=0;for(let t=1;t<n+1;t++){const e=i[t]||null;null===e?i[t]=m.NONE:e!==m.NONE&&(s+=1)}return 0===s&&(i=null),this.debug&&console.log("getPredsForAmbigAlts result "+r.arrayToString(i)),i}getPredicatePredictions(t,e){const r=[];let n=!1;for(let i=1;i<e.length;i++){const s=e[i];null!==t&&t.contains(i)&&r.push(new f(s,i)),s!==m.NONE&&(n=!0)}return n?r:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(t,e){const r=this.splitAccordingToSemanticValidity(t,e),n=r[0],i=r[1];let s=this.getAltThatFinishedDecisionEntryRule(n);return s!==o.INVALID_ALT_NUMBER||i.items.length>0&&(s=this.getAltThatFinishedDecisionEntryRule(i),s!==o.INVALID_ALT_NUMBER)?s:o.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(t){const e=[];for(let r=0;r<t.items.length;r++){const n=t.items[r];(n.reachesIntoOuterContext>0||n.state instanceof l&&n.context.hasEmptyPath())&&e.indexOf(n.alt)<0&&e.push(n.alt)}return 0===e.length?o.INVALID_ALT_NUMBER:Math.min.apply(null,e)}splitAccordingToSemanticValidity(t,e){const r=new u(t.fullCtx),n=new u(t.fullCtx);for(let i=0;i<t.items.length;i++){const s=t.items[i];s.semanticContext!==m.NONE?s.semanticContext.evaluate(this.parser,e)?r.add(s):n.add(s):r.add(s)}return[r,n]}evalSemanticContext(t,e,r){const n=new i;for(let i=0;i<t.length;i++){const s=t[i];if(s.pred===m.NONE){if(n.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),n.add(s.alt),!r))break}return n}closure(t,e,r,n,i,s){this.closureCheckingStopState(t,e,r,n,i,0,s)}closureCheckingStopState(t,e,r,n,i,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(i){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,n,i,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,n,i,s-1,o)}return}if(i)return void e.add(t,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(t.state.ruleIndex))}this.closure_(t,e,r,n,i,s,o)}closure_(t,e,r,n,i,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=n&&!(u instanceof N),p=this.getEpsilonTarget(t,u,h,0===s,i,o);if(null!==p){let n=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,n-=1,this.debug&&console.log("dips into outer ctx: "+p)}else{if(!u.isEpsilon&&r.add(p)!==p)continue;u instanceof E&&n>=0&&(n+=1)}this.closureCheckingStopState(p,e,r,h,i,n,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 n=0;n<r;n++)if(this.atn.states[t.context.getReturnState(n)].ruleIndex!==e.ruleIndex)return!1;const n=e.transitions[0].target.endState.stateNumber,i=this.atn.states[n];for(let n=0;n<r;n++){const r=t.context.getReturnState(n),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===i||o===i||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,n,i,s){switch(e.serializationType){case v.RULE:return this.ruleTransition(t,e);case v.PRECEDENCE:return this.precedenceTransition(t,e,r,n,i);case v.PREDICATE:return this.predTransition(t,e,r,n,i);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,n,i,s){this.debug&&(console.log("PRED (collectPredicates="+n+") "+e.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+r.arrayToString(this.parser.getRuleInvocationStack())));let o=null;if(n&&i)if(s){const r=this._input.index;this._input.seek(this._startIndex);const n=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),n&&(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,n,i,s){this.debug&&(console.log("PRED (collectPredicates="+n+") "+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(n&&(e.isCtxDependent&&i||!e.isCtxDependent))if(s){const r=this._input.index;this._input.seek(this._startIndex);const n=e.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),n&&(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,n=R.create(t.context,r.stateNumber);return new c({state:e.target,context:n},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 i,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 n="no edges";if(r.state.transitions.length>0){const t=r.state.transitions[0];t instanceof AtomTransition?n="Atom "+this.getTokenName(t.label):t instanceof S&&(n=(t instanceof b?"~":"")+"Set "+t.set)}console.error(r.toString(this.parser,!0)+":"+n)}}noViableAlt(t,e,r,n){return new A(this.parser,t,t.get(n),t.LT(1),r,e)}getUniqueAlt(t){let e=o.INVALID_ALT_NUMBER;for(let r=0;r<t.items.length;r++){const n=t.items[r];if(e===o.INVALID_ALT_NUMBER)e=n.alt;else if(n.alt!==e)return o.INVALID_ALT_NUMBER}return e}addDFAEdge(t,e,r,n){if(this.debug&&console.log("EDGE "+e+" -> "+n+" upon "+this.getTokenName(r)),null===n)return null;if(n=this.addDFAState(t,n),null===e||r<-1||r>this.atn.maxTokenType)return n;if(null===e.edges&&(e.edges=[]),e.edges[r+1]=n,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 n}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,n,i){if(this.debug||this.retry_debug){const e=new T(n,i+1);console.log("reportAttemptingFullContext decision="+t.decision+":"+r+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,t,n,i,e,r)}reportContextSensitivity(t,e,r,n,i){if(this.debug||this.retry_debug){const e=new T(n,i+1);console.log("reportContextSensitivity decision="+t.decision+":"+r+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,t,n,i,e,r)}reportAmbiguity(t,e,r,n,i,s,o){if(this.debug||this.retry_debug){const t=new T(r,n+1);console.log("reportAmbiguity "+s+":"+o+", input="+this.parser.getTokenStream().getText(t))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,t,r,n,i,s,o)}}})),vn=u((t=>{p(),t.ATN=rn(),t.ATNDeserializer=an(),t.LexerATNSimulator=gn(),t.ParserATNSimulator=Tn(),t.PredictionMode=mn()})),Sn=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 n=t?Number(t):0;if(n!=n&&(n=0),n<0||n>=r)return;const i=e.charCodeAt(n);let s;return i>=55296&&i<=56319&&r>n+1&&(s=e.charCodeAt(n+1),s>=56320&&s<=57343)?1024*(i-55296)+s-56320+65536:i};t?t(String.prototype,"codePointAt",{value:e,configurable:!0,writable:!0}):String.prototype.codePointAt=e}()})),bn=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 n=e[r];if(null!==n.edges){const e=n.edges.length;for(let r=0;r<e;r++){const e=n.edges[r]||null;null!==e&&2147483647!==e.stateNumber&&(t=t.concat(this.getStateString(n)),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)+"'"}}}})),En=u(((t,e)=>{p();var{Set:r}=Vr(),{DFAState:n}=fn(),{StarLoopEntryState:i}=qr(),{ATNConfigSet:s}=dn(),{DFASerializer:o}=bn(),{LexerDFASerializer:a}=bn();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 i&&t.isPrecedenceDecision){this.precedenceDfa=!0;const t=new n(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 n(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}}})),Nn=u((t=>{p(),t.DFA=En(),t.DFASerializer=bn().DFASerializer,t.LexerDFASerializer=bn().LexerDFASerializer,t.PredPrediction=fn().PredPrediction})),An=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,n=function(t){const n=16384,i=[];let s,o,a=-1;const l=arguments.length;if(!l)return"";let c="";for(;++a<l;){let t=Number(arguments[a]);if(!isFinite(t)||t<0||t>1114111||r(t)!==t)throw RangeError("Invalid code point: "+t);t<=65535?i.push(t):(t-=65536,s=55296+(t>>10),o=t%1024+56320,i.push(s,o)),(a+1===l||i.length>n)&&(c+=e.apply(null,i),i.length=0)}return c};t?t(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()})),Rn=u(((t,e)=>{p();var r=Jr(),n=Qr();e.exports={...r,Trees:n}})),Cn=u(((t,e)=>{p();var{BitSet:r}=Vr(),{ErrorListener:n}=ln(),{Interval:i}=Wr();e.exports=class extends n{constructor(t){super(),t=t||!0,this.exactOnly=t}reportAmbiguity(t,e,r,n,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 i(r,n))+"'";t.notifyErrorListeners(l)}reportAttemptingFullContext(t,e,r,n,s,o){const a="reportAttemptingFullContext d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new i(r,n))+"'";t.notifyErrorListeners(a)}reportContextSensitivity(t,e,r,n,s,o){const a="reportContextSensitivity d="+this.getDecisionDescription(t,e)+", input='"+t.getTokenStream().getText(new i(r,n))+"'";t.notifyErrorListeners(a)}getDecisionDescription(t,e){const r=e.decision,n=e.atnStartState.ruleIndex,i=t.ruleNames;if(n<0||n>=i.length)return""+r;const s=i[n]||null;return null===s||0===s.length?""+r:`${r} (${s})`}getConflictingAlts(t,e){if(null!==t)return t;const n=new r;for(let t=0;t<e.items.length;t++)n.add(e.items[t].alt);return`{${n.values().join(", ")}}`}}})),On=u(((t,e)=>{p();var{Token:r}=Gr(),{NoViableAltException:n,InputMismatchException:i,FailedPredicateException:s,ParseCancellationException:o}=hn(),{ATNState:a}=qr(),{Interval:l,IntervalSet:c}=Wr(),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 n?this.reportNoViableAlternative(t,e):e instanceof i?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],n=t.getTokenStream().LA(1),s=t.atn.nextTokens(e);if(s.contains(n))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 i(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 n=t.getTokenStream();let i;i=null!==n?e.startToken.type===r.EOF?"<EOF>":n.getText(new l(e.startToken.tokenIndex,e.offendingToken.tokenIndex)):"<unknown input>";const s="no viable alternative at input "+this.escapeWSAndQuote(i);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 i(t)}singleTokenInsertion(t){const e=t.getTokenStream().LA(1),r=t._interp.atn,n=r.states[t.state].transitions[0].target;return!!r.nextTokens(n,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(),n=this.getExpectedTokens(t).first();let i;i=n===r.EOF?"<missing EOF>":"<missing "+t.literalNames[n]+">";let s=e;const o=t.getTokenStream().LT(-1);return s.type===r.EOF&&null!==o&&(s=o),t.getTokenFactory().create(s.source,n,i,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 n=t._ctx;const i=new c;for(;null!==n&&n.invokingState>=0;){const t=e.states[n.invokingState].transitions[0],r=e.nextTokens(t.followState);i.addSet(r),n=n.parentCtx}return i.removeOne(r.EPSILON),i}consumeUntil(t,e){let n=t.getTokenStream().LA(1);for(;n!==r.EOF&&!e.contains(n);)t.consume(),n=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 i(t))}sync(t){}},DefaultErrorStrategy:h}})),Ln=u(((t,e)=>{p(),e.exports.RecognitionException=hn().RecognitionException,e.exports.NoViableAltException=hn().NoViableAltException,e.exports.LexerNoViableAltException=hn().LexerNoViableAltException,e.exports.InputMismatchException=hn().InputMismatchException,e.exports.FailedPredicateException=hn().FailedPredicateException,e.exports.DiagnosticErrorListener=Cn(),e.exports.BailErrorStrategy=On().BailErrorStrategy,e.exports.DefaultErrorStrategy=On().DefaultErrorStrategy,e.exports.ErrorListener=ln().ErrorListener})),wn=u(((t,e)=>{p();var{Token:r}=Gr();Sn(),An(),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 n=t;n<=e;n++)r+=String.fromCodePoint(this.data[n]);return r}return this.strdata.slice(t,e+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}})),In=u((()=>{p()})),Pn=u(((t,e)=>{p();var r=wn(),n=In(),i={fromString:function(t){return new r(t,!0)},fromBlob:function(t,e,n,i){const s=new window.FileReader;s.onload=function(t){const e=new r(t.target.result,!0);n(e)},s.onerror=i,s.readAsText(t,e)},fromBuffer:function(t,e){return new r(t.toString(e),!0)},fromPath:function(t,e,i){n.readFile(t,e,(function(t,e){let n=null;null!==e&&(n=new r(e,!0)),i(t,n)}))},fromPathSync:function(t,e){const i=n.readFileSync(t,e);return new r(i,!0)}};e.exports=i})),kn=u(((t,e)=>{p();var r=wn(),n=In();e.exports=class extends r{constructor(t,e){super(n.readFileSync(t,"utf8"),e),this.fileName=t}}})),Dn=u(((t,e)=>{p();var{Token:r}=Gr(),n=pn(),{Interval:i}=Wr(),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,n){if(void 0===n&&(n=null),t<0||e<0)return null;this.lazyInit();const i=[];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===n||n.contains(t.type))&&i.push(t)}return i}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 n=this.tokens[t];for(;n.channel!==this.channel;){if(n.type===r.EOF)return-1;t+=1,this.sync(t),n=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,n.DEFAULT_TOKEN_CHANNEL),i=t+1,s=-1===r?this.tokens.length-1:r;return this.filterForChannel(i,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,n.DEFAULT_TOKEN_CHANNEL);if(r===t-1)return null;const i=r+1,s=t-1;return this.filterForChannel(i,s,e)}filterForChannel(t,e,r){const i=[];for(let s=t;s<e+1;s++){const t=this.tokens[s];-1===r?t.channel!==n.DEFAULT_TOKEN_CHANNEL&&i.push(t):t.channel===r&&i.push(t)}return 0===i.length?null:i}getSourceName(){return this.tokenSource.getSourceName()}getText(t){this.lazyInit(),this.fill(),null==t&&(t=new i(0,this.tokens.length-1));let e=t.start;e instanceof r&&(e=e.tokenIndex);let n=t.stop;if(n instanceof r&&(n=n.tokenIndex),null===e||null===n||e<0||n<0)return"";n>=this.tokens.length&&(n=this.tokens.length-1);let s="";for(let t=e;t<n+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););}}})),Fn=u(((t,e)=>{p();var r=Gr().Token,n=Dn();e.exports=class extends n{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 n=this.tokens[e];if(n.channel===this.channel&&(t+=1),n.type===r.EOF)break}return t}}})),Mn=u(((t,e)=>{p();var{Token:r}=Gr(),{ParseTreeListener:n,TerminalNode:i,ErrorNode:s}=Jr(),o=cn(),{DefaultErrorStrategy:a}=On(),l=an(),c=sn(),u=pn(),h=class extends n{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 n=e.line,i=e.column;this.getErrorListenerDispatch().syntaxError(this,e,n,i,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 i&&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,n){this.state=e,this._precedenceStack.push(n),this._ctx=t,this._ctx.start=this._input.LT(1),null!==this._parseListeners&&this.triggerEnterRuleEvent()}pushNewRecursionContext(t,e,r){const n=this._ctx;n.parentCtx=t,n.invokingState=e,n.stop=this._input.LT(-1),this._ctx=t,this._ctx.start=n.start,this.buildParseTrees&&this._ctx.addChild(n),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 n=this._ctx;const i=e.states[this.state];let s=e.nextTokens(i);if(s.contains(t))return!0;if(!s.contains(r.EPSILON))return!1;for(;null!==n&&n.invokingState>=0&&s.contains(r.EPSILON);){const r=e.states[n.invokingState].transitions[0];if(s=e.nextTokens(r.followState),s.contains(t))return!0;n=n.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})),Un=u((t=>{p(),t.atn=vn(),t.codepointat=Sn(),t.dfa=Nn(),t.fromcodepoint=An(),t.tree=Rn(),t.error=Ln(),t.Token=Gr().Token,t.CharStreams=Pn(),t.CommonToken=Gr().CommonToken,t.InputStream=wn(),t.FileStream=kn(),t.CommonTokenStream=Fn(),t.Lexer=pn(),t.Parser=Mn();var e=tn();t.PredictionContextCache=e.PredictionContextCache,t.ParserRuleContext=xn(),t.Interval=Wr().Interval,t.IntervalSet=Wr().IntervalSet,t.Utils=Vr(),t.LL1Analyzer=en().LL1Analyzer})),jn=u(((t,e)=>{e.exports="./Solidity-3XVHMNWT.tokens"})),Hn=u(((t,e)=>{p(),e.exports=jn()})),Bn={};((t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})})(Bn,{ParserError:()=>ho,parse:()=>fo,tokenize:()=>po,visit:()=>_o}),p(),p();var Kn=h(Kr());p();var zn=h(Ue()),Vn=h(ee()),Gn=h(te()),qn=h(Ft()),$n=h(ht()),Yn=class extends Vn.Lexer{get vocabulary(){return Yn.VOCABULARY}constructor(t){super(t),this._interp=new Gn.LexerATNSimulator(Yn._ATN,this)}get grammarFileName(){return"Solidity.g4"}get ruleNames(){return Yn.ruleNames}get serializedATN(){return Yn._serializedATN}get channelNames(){return Yn.channelNames}get modeNames(){return Yn.modeNames}static get _ATN(){return Yn.__ATN||(Yn.__ATN=(new zn.ATNDeserializer).deserialize($n.toCharArray(Yn._serializedATN))),Yn.__ATN}},Wn=Yn;Wn.T__0=1,Wn.T__1=2,Wn.T__2=3,Wn.T__3=4,Wn.T__4=5,Wn.T__5=6,Wn.T__6=7,Wn.T__7=8,Wn.T__8=9,Wn.T__9=10,Wn.T__10=11,Wn.T__11=12,Wn.T__12=13,Wn.T__13=14,Wn.T__14=15,Wn.T__15=16,Wn.T__16=17,Wn.T__17=18,Wn.T__18=19,Wn.T__19=20,Wn.T__20=21,Wn.T__21=22,Wn.T__22=23,Wn.T__23=24,Wn.T__24=25,Wn.T__25=26,Wn.T__26=27,Wn.T__27=28,Wn.T__28=29,Wn.T__29=30,Wn.T__30=31,Wn.T__31=32,Wn.T__32=33,Wn.T__33=34,Wn.T__34=35,Wn.T__35=36,Wn.T__36=37,Wn.T__37=38,Wn.T__38=39,Wn.T__39=40,Wn.T__40=41,Wn.T__41=42,Wn.T__42=43,Wn.T__43=44,Wn.T__44=45,Wn.T__45=46,Wn.T__46=47,Wn.T__47=48,Wn.T__48=49,Wn.T__49=50,Wn.T__50=51,Wn.T__51=52,Wn.T__52=53,Wn.T__53=54,Wn.T__54=55,Wn.T__55=56,Wn.T__56=57,Wn.T__57=58,Wn.T__58=59,Wn.T__59=60,Wn.T__60=61,Wn.T__61=62,Wn.T__62=63,Wn.T__63=64,Wn.T__64=65,Wn.T__65=66,Wn.T__66=67,Wn.T__67=68,Wn.T__68=69,Wn.T__69=70,Wn.T__70=71,Wn.T__71=72,Wn.T__72=73,Wn.T__73=74,Wn.T__74=75,Wn.T__75=76,Wn.T__76=77,Wn.T__77=78,Wn.T__78=79,Wn.T__79=80,Wn.T__80=81,Wn.T__81=82,Wn.T__82=83,Wn.T__83=84,Wn.T__84=85,Wn.T__85=86,Wn.T__86=87,Wn.T__87=88,Wn.T__88=89,Wn.T__89=90,Wn.T__90=91,Wn.T__91=92,Wn.T__92=93,Wn.T__93=94,Wn.T__94=95,Wn.T__95=96,Wn.Int=97,Wn.Uint=98,Wn.Byte=99,Wn.Fixed=100,Wn.Ufixed=101,Wn.BooleanLiteral=102,Wn.DecimalNumber=103,Wn.HexNumber=104,Wn.NumberUnit=105,Wn.HexLiteralFragment=106,Wn.ReservedKeyword=107,Wn.AnonymousKeyword=108,Wn.BreakKeyword=109,Wn.ConstantKeyword=110,Wn.ImmutableKeyword=111,Wn.ContinueKeyword=112,Wn.LeaveKeyword=113,Wn.ExternalKeyword=114,Wn.IndexedKeyword=115,Wn.InternalKeyword=116,Wn.PayableKeyword=117,Wn.PrivateKeyword=118,Wn.PublicKeyword=119,Wn.VirtualKeyword=120,Wn.PureKeyword=121,Wn.TypeKeyword=122,Wn.ViewKeyword=123,Wn.GlobalKeyword=124,Wn.ConstructorKeyword=125,Wn.FallbackKeyword=126,Wn.ReceiveKeyword=127,Wn.Identifier=128,Wn.StringLiteralFragment=129,Wn.VersionLiteral=130,Wn.WS=131,Wn.COMMENT=132,Wn.LINE_COMMENT=133,Wn.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],Wn.modeNames=["DEFAULT_MODE"],Wn.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","BooleanLiteral","DecimalNumber","DecimalDigits","HexNumber","HexDigits","NumberUnit","HexLiteralFragment","HexPair","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"],Wn._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'"],Wn._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"],Wn.VOCABULARY=new qn.VocabularyImpl(Yn._LITERAL_NAMES,Yn._SYMBOLIC_NAMES,[]),Wn._serializedATNSegments=4,Wn._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Ž\b\b\b\t\t\n\n\v\v\v\f\f\r\r\r        !!!!!!\"\"\"\"\"##$$%%%%%%%%&&''''''''((()))))))********+++++++++,,,-----....//////00000011111111112222222223334444444555555666667777777888899999:::::::;;;;;<<<===>>>>??@@AABBBBBBBCCDDDEEFFGGGHHHIIJJKKKLLLMMMNNOOOPPPQQQRRRRSSSSTTTUUUVVVWWWXXXYYYYZZZ[[[\\\\\\\\\\\\\\]]]]]^^^^^^^^___`````````aaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb΃\nbccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccќ\ncdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddԺ\ndeeeeeeeeeeeeeՈ\ne\reeՉeeeՎ\ne\reeՏeՒ\nefffffffffffffffբ\nf\rffգfffը\nf\rffթfլ\nfggggggggggշ\nghhhջ\nhhhhտ\nhhhhփ\nhiiiև\niii֊\ni\fii֍\vijjjjkkk֕\nkkk֘\nk\fkk֛\vklllllllllllllllllllllllllllllllllllllllllllllllllllllllllו\nlmmmmmmmם\nmmmmmע\nmmmץ\nmnnnoopppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppل\npqqqqqqqqqqrrrrrrsssssssssttttttttttuuuuuuuuuvvvvvvwwwwwwwwwxxxxxxxxyyyyyyyyyzzzzzzzz{{{{{{{{|||||||}}}}}}}}~~~~~€€€€€‚‚‚‚‚‚‚‚‚‚‚‚ƒƒƒƒƒƒƒƒƒ„„„„„„„„………ۦ\n…\f……۩\v…††‡‡ˆˆˆˆˆˆˆˆ۶\nˆˆˆˆۺ\nˆ\fˆˆ۽\vˆˆˆˆˆˆˆˆˆˆ܇\nˆˆˆˆ܋\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>{?}@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³[µ\\·]¹^»_½`¿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û{ý|ÿ}ā~㹀ćĉ‚ċčďƒđēĕ„ė…ę†ě‡\f2;GGggZZzz2;CHch&&C\\aac|&&2;C\\aac|\f\f$$^^\f\f))^^\v\f\"\"\f\fߠ\t\v\r!#%')+-/13579;=?ACEGIKMOQSUWY[]_acegikmoqsuwy{}ƒ…‡‰‹‘“•—™›Ÿ¡£¥§©«­¯±³µ·¹»½¿ÁÃÅÇÉËÍÏÓ×Ùßáãåçéëí",Wn._serializedATNSegment1="ïñóõ÷ùûýÿāăąćĉďĕėęěĝĤĦ\tĨ\vī\rĭįIJĴĶĹĻľŅŊ!Ō#Ŏ%Ő'ř)Ţ+Ŭ-Ŵ/ŷ1Ź3Ż5Ɓ7Ƈ9Ƌ;ƒ=ƛ?ƤAƬCƲEƷGƹIƻKǃMDžOǍQǐSǗUǟWǨYǫ[ǰ]Ǵ_ǺaȀcȊeȓgȖiȝkȣmȨoȯqȳsȸuȿwɄyɇ{Ɋ}Ɏɐɒƒɔ…ɛ‡ɝ‰ɠ‹ɢɤɧ‘ɪ“ɬ•ɮ—ɱ™ɴ›ɷɹŸɼ¡ɿ£ʂ¥ʆ§ʊ©ʍ«ʐ­ʓ¯ʖ±ʙ³ʝµʠ·ʣ¹ʪ»ʯ½ʷ¿ʺÁ˃Ã΂ÅћÇԹÉՑËիÍնÏվÑքÓ֎Õ֒×הÙזÛצÝשßكáمãُåٕçٞé٨ëٱíٷïڀñڈóڑõڙ÷ڡùڨûڰýڵÿںāڿăۆąےćۛĉۣċ۪č۬ďܐđܕēܚĕܝėܰęܶě݄ĝĞrĞğtğĠcĠġiġĢoĢģcģĤĥ=ĥĦħ,ħ\bĨĩ~ĩĪ~Ī\nīĬ`Ĭ\fĭĮ€Įįİ@İı?ıIJij@ijĴĵ>ĵĶķ>ķĸ?ĸĹĺ?ĺĻļcļĽuĽľĿkĿŀoŀŁrŁłqłŃtŃńvńŅņhņŇtŇňqňʼnoʼnŊŋ}ŋ Ōō.ō\"Ŏŏŏ$Őő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ƋƌuƌƍvƍƎtƎƏwƏƐeƐƑvƑ:ƒƓoƓƔqƔƕfƕƖkƖƗhƗƘkƘƙgƙƚtƚ<ƛƜhƜƝwƝƞpƞƟeƟƠvƠơkơƢqƢƣpƣ>ƤƥtƥƦgƦƧvƧƨwƨƩtƩƪpƪƫuƫ@ƬƭgƭƮxƮƯgƯưpưƱvƱBƲƳgƳƴpƴƵwƵƶoƶDƷƸ]ƸFƹƺ_ƺHƻƼcƼƽfƽƾfƾƿtƿǀgǀǁuǁǂuǂJǃDŽ0DŽLDždžodžLJcLJLjrLjljrljNJkNJNjpNjnjinjNǍǎ?ǎǏ@ǏPǐǑoǑǒgǒǓoǓǔqǔǕtǕǖ{ǖRǗǘuǘǙvǙǚqǚǛtǛǜcǜǝiǝǞgǞTǟǠeǠǡcǡǢnǢǣnǣǤfǤǥcǥǦvǦǧcǧVǨǩkǩǪhǪXǫǬgǬǭnǭǮuǮǯgǯZǰDZvDZDztDzdz{dz\\ǴǵeǵǶcǶǷvǷǸeǸǹjǹ^ǺǻyǻǼjǼǽkǽǾnǾǿgǿ`ȀȁwȁȂpȂȃeȃȄjȄȅgȅȆeȆȇmȇȈgȈȉfȉbȊȋcȋȌuȌȍuȍȎgȎȏoȏȐdȐȑnȑȒ{ȒdȓȔfȔȕqȕfȖȗtȗȘgȘșvșȚwȚțtțȜpȜhȝȞvȞȟjȟȠtȠȡqȡȢyȢjȣȤgȤȥoȥȦkȦȧvȧlȨȩtȩȪgȪȫxȫȬgȬȭtȭȮvȮnȯȰxȰȱcȱȲtȲpȳȴdȴȵqȵȶqȶȷnȷrȸȹuȹȺvȺȻtȻȼkȼȽpȽȾiȾtȿɀdɀɁ{ɁɂvɂɃgɃvɄɅ-ɅɆ-ɆxɇɈ/Ɉɉ/ɉzɊɋpɋɌgɌɍyɍ|Ɏɏ<ɏ~ɐɑ-ɑ€ɒɓ/ɓ‚ɔɕfɕɖgɖɗnɗɘgɘəvəɚgɚ„ɛɜ#ɜ†ɝɞ,ɞɟ,ɟˆɠɡ1ɡŠɢɣ'ɣŒɤɥ>ɥɦ>ɦŽɧɨ@ɨɩ@ɩɪɫ(ɫ’ɬɭ~ɭ”ɮɯ?ɯɰ?ɰ–ɱɲ#ɲɳ?ɳ˜ɴɵ(ɵɶ(ɶšɷɸ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ˏːkːˑpˑ˒v˒΃:˓˔k˔˕p˕˖v˖˗3˗΃8˘˙k˙˚p˚˛v˛˜4˜΃6˝˞k˞˟p˟ˠvˠˡ5ˡ΃4ˢˣkˣˤpˤ˥v˥˦6˦΃2˧˨k˨˩p˩˪v˪˫6˫΃:ˬ˭k˭ˮpˮ˯v˯˰7˰΃8˱˲k˲˳p˳˴v˴˵8˵΃6˶˷k˷˸p˸˹v˹˺9˺΃4˻˼k˼˽p˽˾v˾˿:˿΃2̀́ḱ̂p̂̃ṽ̄:̄΃:̅̆k̆̇ṗ̈v̈̉;̉΃8̊̋k̋̌p̌̍v̍̎3̎̏2̏΃6̐̑k̑̒p̒̓v̓̔3̔̕3̕΃4̖̗k̗̘p̘̙v̙̚3̛̚4̛΃2̜̝k̝̞p̞̟v̟̠3̡̠4̡΃:̢̣ḳ̤p̤̥v̥̦3̧̦5̧΃8̨̩k̩̪p̪̫v̫̬3̬̭6̭΃6̮̯k̯̰p̰̱v̱̲3̲̳7̳΃4̴̵k̵̶p̶̷v̷̸3̸̹8̹΃2̺̻k̻̼p̼̽v̽̾3̾̿8̿΃:̀́ḱ͂p͂̓v̓̈́3̈́ͅ9ͅ΃8͇͆k͇͈p͈͉v͉͊3͊͋:͋΃6͍͌k͍͎p͎͏v͏͐3͐͑;͑΃4͓͒k͓͔p͔͕v͕͖4͖͗2͗΃2͙͘k͙͚p͚͛v͛͜4͜͝2͝΃:͟͞k͟͠p͠͡v͢͡4ͣ͢3ͣ΃8ͤͥkͥͦpͦͧvͧͨ4ͨͩ4ͩ΃6ͪͫkͫͬpͬͭvͭͮ4ͮͯ5ͯ΃4ͰͱkͱͲpͲͳvͳʹ4ʹ͵6͵΃2Ͷͷkͷ͸p͸͹v͹ͺ4ͺͻ6ͻ΃:ͼͽkͽ;p;ͿvͿ΀4΀΁7΁΃8΂ˌ΂ˏ΂˓΂˘΂˝΂ˢ΂˧΂ˬ΂˱΂˶΂˻΂̀΂̅΂̊΂̐΂̖΂̜΂̢΂̨΂̮΂̴΂̺΂̀΂͆΂͌΂͒΂͘΂͞΂ͤ΂ͪ΂Ͱ΂Ͷ΂ͼ΃Ä΄΅w΅ΆkΆ·p·ќvΈΉwΉΊkΊ΋p΋ΌvΌќ:΍ΎwΎΏkΏΐpΐΑvΑΒ3Βќ8ΓΔwΔΕkΕΖpΖΗvΗΘ4Θќ6ΙΚwΚΛkΛΜpΜΝvΝΞ5Ξќ",Wn._serializedATNSegment2="4ΟΠwΠΡkΡ΢p΢ΣvΣΤ6Τќ2ΥΦwΦΧkΧΨpΨΩvΩΪ6Ϊќ:Ϋάwάέkέήpήίvίΰ7ΰќ8αβwβγkγδpδεvεζ8ζќ6ηθwθιkικpκλvλμ9μќ4νξwξοkοπpπρvρς:ςќ2στwτυkυφpφχvχψ:ψќ:ωϊwϊϋkϋόpόύvύώ;ώќ8Ϗϐwϐϑkϑϒpϒϓvϓϔ3ϔϕ2ϕќ6ϖϗwϗϘkϘϙpϙϚvϚϛ3ϛϜ3Ϝќ4ϝϞwϞϟkϟϠpϠϡvϡϢ3Ϣϣ4ϣќ2ϤϥwϥϦkϦϧpϧϨvϨϩ3ϩϪ4Ϫќ:ϫϬwϬϭkϭϮpϮϯvϯϰ3ϰϱ5ϱќ8ϲϳwϳϴkϴϵpϵ϶v϶Ϸ3Ϸϸ6ϸќ6ϹϺwϺϻkϻϼpϼϽvϽϾ3ϾϿ7Ͽќ4ЀЁwЁЂkЂЃpЃЄvЄЅ3ЅІ8Іќ2ЇЈwЈЉkЉЊpЊЋvЋЌ3ЌЍ8Ѝќ:ЎЏwЏАkАБpБВvВГ3ГД9Дќ8ЕЖwЖЗkЗИpИЙvЙК3КЛ:Лќ6МНwНОkОПpПРvРС3СТ;Тќ4УФwФХkХЦpЦЧvЧШ4ШЩ2Щќ2ЪЫwЫЬkЬЭpЭЮvЮЯ4Яа2аќ:бвwвгkгдpдеvеж4жз3зќ8ийwйкkклpлмvмн4но4оќ6прwрсkстpтуvуф4фх5хќ4цчwчшkшщpщъvъы4ыь6ьќ2эюwюяkяѐpѐёvёђ4ђѓ6ѓќ:єѕwѕіkіїpїјvјљ4љњ7њќ8ћ΄ћΈћ΍ћΓћΙћΟћΥћΫћαћηћνћσћωћϏћϖћϝћϤћϫћϲћϹћЀћЇћЎћЕћМћУћЪћбћићпћцћэћєќÆѝўdўџ{џѠvѠѡgѡԺuѢѣdѣѤ{ѤѥvѥѦgѦѧuѧԺ3ѨѩdѩѪ{ѪѫvѫѬgѬѭuѭԺ4ѮѯdѯѰ{ѰѱvѱѲgѲѳuѳԺ5ѴѵdѵѶ{ѶѷvѷѸgѸѹuѹԺ6ѺѻdѻѼ{ѼѽvѽѾgѾѿuѿԺ7Ҁҁdҁ҂{҂҃v҃҄g҄҅u҅Ժ8҆҇d҇҈{҈҉v҉ҊgҊҋuҋԺ9ҌҍdҍҎ{ҎҏvҏҐgҐґuґԺ:ҒғdғҔ{ҔҕvҕҖgҖҗuҗԺ;ҘҙdҙҚ{ҚқvқҜgҜҝuҝҞ3ҞԺ2ҟҠdҠҡ{ҡҢvҢңgңҤuҤҥ3ҥԺ3ҦҧdҧҨ{ҨҩvҩҪgҪҫuҫҬ3ҬԺ4ҭҮdҮү{үҰvҰұgұҲuҲҳ3ҳԺ5ҴҵdҵҶ{ҶҷvҷҸgҸҹuҹҺ3ҺԺ6һҼdҼҽ{ҽҾvҾҿgҿӀuӀӁ3ӁԺ7ӂӃdӃӄ{ӄӅvӅӆgӆӇuӇӈ3ӈԺ8ӉӊdӊӋ{ӋӌvӌӍgӍӎuӎӏ3ӏԺ9ӐӑdӑӒ{ӒӓvӓӔgӔӕuӕӖ3ӖԺ:ӗӘdӘә{әӚvӚӛgӛӜuӜӝ3ӝԺ;ӞӟdӟӠ{ӠӡvӡӢgӢӣuӣӤ4ӤԺ2ӥӦdӦӧ{ӧӨvӨөgөӪuӪӫ4ӫԺ3ӬӭdӭӮ{ӮӯvӯӰgӰӱuӱӲ4ӲԺ4ӳӴdӴӵ{ӵӶvӶӷgӷӸuӸӹ4ӹԺ5ӺӻdӻӼ{ӼӽvӽӾgӾӿuӿԀ4ԀԺ6ԁԂdԂԃ{ԃԄvԄԅgԅԆuԆԇ4ԇԺ7ԈԉdԉԊ{ԊԋvԋԌgԌԍuԍԎ4ԎԺ8ԏԐdԐԑ{ԑԒvԒԓgԓԔuԔԕ4ԕԺ9ԖԗdԗԘ{ԘԙvԙԚgԚԛuԛԜ4ԜԺ:ԝԞdԞԟ{ԟԠvԠԡgԡԢuԢԣ4ԣԺ;ԤԥdԥԦ{ԦԧvԧԨgԨԩuԩԪ5ԪԺ2ԫԬdԬԭ{ԭԮvԮԯgԯ԰u԰Ա5ԱԺ3ԲԳdԳԴ{ԴԵvԵԶgԶԷuԷԸ5ԸԺ4ԹѝԹѢԹѨԹѮԹѴԹѺԹҀԹ҆ԹҌԹҒԹҘԹҟԹҦԹҭԹҴԹһԹӂԹӉԹӐԹӗԹӞԹӥԹӬԹӳԹӺԹԁԹԈԹԏԹԖԹԝԹԤԹԫԹԲԺÈԻԼhԼԽkԽԾzԾԿgԿՒfՀՁhՁՂkՂՃzՃՄgՄՅfՅՇՆՈ\tՇՆՈՉՉՇՉՊՊՋՋՍzՌՎ\tՍՌՎՏՏՍՏՐՐՒՑԻՑՀՒÊՓՔwՔՕhՕՖkՖ՗z՗՘g՘լfՙ՚w՚՛h՛՜k՜՝z՝՞g՞՟f՟աՠբ\tաՠբգգագդդեեէzզը\tէզըթթէթժժլիՓիՙլÌխծvծկtկհwհշgձղhղճcճմnմյuյշgնխնձշÎոտÑiչջÑiպչպջջռռս0ստÑiվովպտւրց\tցփÑiւրւփփÐք֋\tօևaֆօֆևևֈֈ֊\t։ֆ֊֍֋։֋֌֌Ò֍֋֎֏2֏֐\t֐֑Õk֑Ô֒֙Ýo֓֕a֖֖֔֓֔֕֕֘Ýo֛֚֚֗֔֘֙֗֙Ö֛֙֜֝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יפךל$כםÕkלכלםםממץ$ןס)נעÕkסנסעעףףץ)פךפןץÚצקÝoקרÝoרÜשת\tתÞ׫׬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ؼل{ؽؾ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",Wn._serializedATNSegment3="ٵٶ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ۭĎۮۯwۯ۰p۰۱k۱۲e۲۳q۳۴f۴۶g۵ۮ۵۶۶۷۷ۻ$۸ۺđ‰۹۸ۺ۽ۻ۹ۻۼۼ۾۽ۻ۾ܑ$ۿ܀w܀܁p܁܂k܂܃e܃܄q܄܅f܅܇g܆ۿ܆܇܇܈܈܌)܉܋ēŠ܊܉܋܎܌܊܌܍܍܏܎܌܏ܑ)ܐ۵ܐ܆ܑĐܒܖ\n\bܓܔ^ܔܖ\vܕܒܕܓܖĒܗܛ\n\tܘܙ^ܙܛ\vܚܗܚܘܛĔܜܞ\tܝܜܞܟܟܝܟܠܠܡܡܣ0ܢܤ\tܣܢܤܥܥܣܥܦܦܭܧܩ0ܨܪ\tܩܨܪܫܫܩܫܬܬܮܭܧܭܮܮĖܯܱ\t\nܰܯܱܴܴܲܲܰܲܳܳܵ\bŒܵĘܷܶ1ܷܸ,ܸܼܹܻ\vܹܻܾܼܼܾܼܺܽܺܽܿܿ݀,݀݁1݂݂݁݃\b݃Ě݄݅1݆݅1݆݊݇݉\n\v݈݇݉݌݈݊݊݋݋ݍ݌݊ݍݎ\bŽݎĜ(΂ћԹՉՏՑգթինպվւֆ֋֔֙הלספكۧ۵ۻ܆܌ܐܕܚܟܥܫܭܼܲ݊\b",Wn._serializedATN=$n.join([Yn._serializedATNSegment0,Yn._serializedATNSegment1,Yn._serializedATNSegment2,Yn._serializedATNSegment3],""),p();var Xn=h(Wt()),Jn=h(Ue()),Qn=h(ft()),Zn=h(Nr()),ti=h(Er()),ei=h(Ne()),ri=h(Ce()),ni=h(nt()),ii=h(xt()),si=h(Ft()),oi=h(ht()),ai=class extends ti.Parser{get vocabulary(){return ai.VOCABULARY}get grammarFileName(){return"Solidity.g4"}get ruleNames(){return ai.ruleNames}get serializedATN(){return ai._serializedATN}createFailedPredicateException(t,e){return new Qn.FailedPredicateException(this,t,e)}constructor(t){super(t),this._interp=new ri.ParserATNSimulator(ai._ATN,this)}sourceUnit(){let t,e=new ci(this._ctx,this.state);this.enterRule(e,0,ai.RULE_sourceUnit);try{for(this.enterOuterAlt(e,1),this.state=210,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<ai.T__0|1<<ai.T__12|1<<ai.T__13|1<<ai.T__17|1<<ai.T__18|1<<ai.T__19|1<<ai.T__20|1<<ai.T__24|1<<ai.T__25|1<<ai.T__27|1<<ai.T__29))||0==(t-33&-32)&&0!=(1<<t-33&(1<<ai.T__32-33|1<<ai.T__35-33|1<<ai.T__37-33|1<<ai.T__41-33|1<<ai.T__53-33|1<<ai.T__54-33|1<<ai.T__55-33|1<<ai.T__56-33|1<<ai.T__57-33))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.Int-95|1<<ai.Uint-95|1<<ai.Byte-95|1<<ai.Fixed-95|1<<ai.Ufixed-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.TypeKeyword-95|1<<ai.ConstructorKeyword-95|1<<ai.FallbackKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier;){switch(this.state=208,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,0,this._ctx)){case 1:this.state=198,this.pragmaDirective();break;case 2:this.state=199,this.importDirective();break;case 3:this.state=200,this.contractDefinition();break;case 4:this.state=201,this.enumDefinition();break;case 5:this.state=202,this.structDefinition();break;case 6:this.state=203,this.functionDefinition();break;case 7:this.state=204,this.fileLevelConstant();break;case 8:this.state=205,this.customErrorDefinition();break;case 9:this.state=206,this.typeDefinition();break;case 10:this.state=207,this.usingForDeclaration()}this.state=212,this._errHandler.sync(this),t=this._input.LA(1)}this.state=213,this.match(ai.EOF)}catch(t){if(!(t instanceof ni.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 ui(this._ctx,this.state);this.enterRule(t,2,ai.RULE_pragmaDirective);try{this.enterOuterAlt(t,1),this.state=215,this.match(ai.T__0),this.state=216,this.pragmaName(),this.state=217,this.pragmaValue(),this.state=218,this.match(ai.T__1)}catch(e){if(!(e instanceof ni.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 hi(this._ctx,this.state);this.enterRule(t,4,ai.RULE_pragmaName);try{this.enterOuterAlt(t,1),this.state=220,this.identifier()}catch(e){if(!(e instanceof ni.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 pi(this._ctx,this.state);this.enterRule(t,6,ai.RULE_pragmaValue);try{switch(this.state=225,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,2,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=222,this.match(ai.T__2);break;case 2:this.enterOuterAlt(t,2),this.state=223,this.version();break;case 3:this.enterOuterAlt(t,3),this.state=224,this.expression(0)}}catch(e){if(!(e instanceof ni.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 di(this._ctx,this.state);this.enterRule(e,8,ai.RULE_version);try{for(this.enterOuterAlt(e,1),this.state=227,this.versionConstraint(),this.state=234,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<ai.T__3|1<<ai.T__4|1<<ai.T__5|1<<ai.T__6|1<<ai.T__7|1<<ai.T__8|1<<ai.T__9|1<<ai.T__10))||t===ai.DecimalNumber||t===ai.VersionLiteral;)this.state=229,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__3&&(this.state=228,this.match(ai.T__3)),this.state=231,this.versionConstraint(),this.state=236,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof ni.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 fi(this._ctx,this.state);this.enterRule(e,10,ai.RULE_versionOperator);try{this.enterOuterAlt(e,1),this.state=237,t=this._input.LA(1),0!=(-32&t)||0==(1<<t&(1<<ai.T__4|1<<ai.T__5|1<<ai.T__6|1<<ai.T__7|1<<ai.T__8|1<<ai.T__9|1<<ai.T__10))?this._errHandler.recoverInline(this):(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof ni.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 _i(this._ctx,this.state);this.enterRule(e,12,ai.RULE_versionConstraint);try{switch(this.state=247,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=240,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&(1<<ai.T__4|1<<ai.T__5|1<<ai.T__6|1<<ai.T__7|1<<ai.T__8|1<<ai.T__9|1<<ai.T__10))&&(this.state=239,this.versionOperator()),this.state=242,this.match(ai.VersionLiteral);break;case 2:this.enterOuterAlt(e,2),this.state=244,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&(1<<ai.T__4|1<<ai.T__5|1<<ai.T__6|1<<ai.T__7|1<<ai.T__8|1<<ai.T__9|1<<ai.T__10))&&(this.state=243,this.versionOperator()),this.state=246,this.match(ai.DecimalNumber)}}catch(t){if(!(t instanceof ni.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 yi(this._ctx,this.state);this.enterRule(e,14,ai.RULE_importDeclaration);try{this.enterOuterAlt(e,1),this.state=249,this.identifier(),this.state=252,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__11&&(this.state=250,this.match(ai.T__11),this.state=251,this.identifier())}catch(t){if(!(t instanceof ni.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 gi(this._ctx,this.state);this.enterRule(e,16,ai.RULE_importDirective);try{switch(this.state=290,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,13,this._ctx)){case 1:this.enterOuterAlt(e,1),this.state=254,this.match(ai.T__12),this.state=255,this.importPath(),this.state=258,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__11&&(this.state=256,this.match(ai.T__11),this.state=257,this.identifier()),this.state=260,this.match(ai.T__1);break;case 2:switch(this.enterOuterAlt(e,2),this.state=262,this.match(ai.T__12),this.state=265,this._errHandler.sync(this),this._input.LA(1)){case ai.T__2:this.state=263,this.match(ai.T__2);break;case ai.T__13:case ai.T__24:case ai.T__35:case ai.T__41:case ai.T__53:case ai.T__94:case ai.LeaveKeyword:case ai.PayableKeyword:case ai.ConstructorKeyword:case ai.ReceiveKeyword:case ai.Identifier:this.state=264,this.identifier();break;default:throw new Zn.NoViableAltException(this)}this.state=269,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__11&&(this.state=267,this.match(ai.T__11),this.state=268,this.identifier()),this.state=271,this.match(ai.T__13),this.state=272,this.importPath(),this.state=273,this.match(ai.T__1);break;case 3:for(this.enterOuterAlt(e,3),this.state=275,this.match(ai.T__12),this.state=276,this.match(ai.T__14),this.state=277,this.importDeclaration(),this.state=282,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=278,this.match(ai.T__15),this.state=279,this.importDeclaration(),this.state=284,this._errHandler.sync(this),t=this._input.LA(1);this.state=285,this.match(ai.T__16),this.state=286,this.match(ai.T__13),this.state=287,this.importPath(),this.state=288,this.match(ai.T__1)}}catch(t){if(!(t instanceof ni.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 mi(this._ctx,this.state);this.enterRule(t,18,ai.RULE_importPath);try{this.enterOuterAlt(t,1),this.state=292,this.match(ai.StringLiteralFragment)}catch(e){if(!(e instanceof ni.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 xi(this._ctx,this.state);this.enterRule(e,20,ai.RULE_contractDefinition);try{if(this.enterOuterAlt(e,1),this.state=295,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__17&&(this.state=294,this.match(ai.T__17)),this.state=297,t=this._input.LA(1),0!=(-32&t)||0==(1<<t&(1<<ai.T__18|1<<ai.T__19|1<<ai.T__20))?this._errHandler.recoverInline(this):(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=298,this.identifier(),this.state=308,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__21)for(this.state=299,this.match(ai.T__21),this.state=300,this.inheritanceSpecifier(),this.state=305,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=301,this.match(ai.T__15),this.state=302,this.inheritanceSpecifier(),this.state=307,this._errHandler.sync(this),t=this._input.LA(1);for(this.state=310,this.match(ai.T__14),this.state=314,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<ai.T__13|1<<ai.T__24|1<<ai.T__25|1<<ai.T__27|1<<ai.T__28|1<<ai.T__29))||0==(t-32&-32)&&0!=(1<<t-32&(1<<ai.T__31-32|1<<ai.T__32-32|1<<ai.T__35-32|1<<ai.T__37-32|1<<ai.T__41-32|1<<ai.T__53-32|1<<ai.T__54-32|1<<ai.T__55-32|1<<ai.T__56-32|1<<ai.T__57-32))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.Int-95|1<<ai.Uint-95|1<<ai.Byte-95|1<<ai.Fixed-95|1<<ai.Ufixed-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.TypeKeyword-95|1<<ai.ConstructorKeyword-95|1<<ai.FallbackKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier;)this.state=311,this.contractPart(),this.state=316,this._errHandler.sync(this),t=this._input.LA(1);this.state=317,this.match(ai.T__16)}catch(t){if(!(t instanceof ni.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 Ti(this._ctx,this.state);this.enterRule(e,22,ai.RULE_inheritanceSpecifier);try{this.enterOuterAlt(e,1),this.state=319,this.userDefinedTypeName(),this.state=325,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__22&&(this.state=320,this.match(ai.T__22),this.state=322,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<ai.T__5|1<<ai.T__13|1<<ai.T__22|1<<ai.T__24|1<<ai.T__29))||0==(t-34&-32)&&0!=(1<<t-34&(1<<ai.T__33-34|1<<ai.T__35-34|1<<ai.T__37-34|1<<ai.T__41-34|1<<ai.T__53-34|1<<ai.T__54-34|1<<ai.T__55-34|1<<ai.T__56-34|1<<ai.T__57-34|1<<ai.T__58-34|1<<ai.T__59-34|1<<ai.T__60-34|1<<ai.T__62-34|1<<ai.T__63-34|1<<ai.T__64-34))||0==(t-66&-32)&&0!=(1<<t-66&(1<<ai.T__65-66|1<<ai.T__94-66|1<<ai.Int-66))||0==(t-98&-32)&&0!=(1<<t-98&(1<<ai.Uint-98|1<<ai.Byte-98|1<<ai.Fixed-98|1<<ai.Ufixed-98|1<<ai.BooleanLiteral-98|1<<ai.DecimalNumber-98|1<<ai.HexNumber-98|1<<ai.HexLiteralFragment-98|1<<ai.LeaveKeyword-98|1<<ai.PayableKeyword-98|1<<ai.TypeKeyword-98|1<<ai.ConstructorKeyword-98|1<<ai.ReceiveKeyword-98|1<<ai.Identifier-98|1<<ai.StringLiteralFragment-98)))&&(this.state=321,this.expressionList()),this.state=324,this.match(ai.T__23))}catch(t){if(!(t instanceof ni.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 vi(this._ctx,this.state);this.enterRule(t,24,ai.RULE_contractPart);try{switch(this.state=336,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,20,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=327,this.stateVariableDeclaration();break;case 2:this.enterOuterAlt(t,2),this.state=328,this.usingForDeclaration();break;case 3:this.enterOuterAlt(t,3),this.state=329,this.structDefinition();break;case 4:this.enterOuterAlt(t,4),this.state=330,this.modifierDefinition();break;case 5:this.enterOuterAlt(t,5),this.state=331,this.functionDefinition();break;case 6:this.enterOuterAlt(t,6),this.state=332,this.eventDefinition();break;case 7:this.enterOuterAlt(t,7),this.state=333,this.enumDefinition();break;case 8:this.enterOuterAlt(t,8),this.state=334,this.customErrorDefinition();break;case 9:this.enterOuterAlt(t,9),this.state=335,this.typeDefinition()}}catch(e){if(!(e instanceof ni.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 Si(this._ctx,this.state);this.enterRule(e,26,ai.RULE_stateVariableDeclaration);try{for(this.enterOuterAlt(e,1),this.state=338,this.typeName(0),this.state=347,this._errHandler.sync(this),t=this._input.LA(1);0==(t-96&-32)&&0!=(1<<t-96&(1<<ai.T__95-96|1<<ai.ConstantKeyword-96|1<<ai.ImmutableKeyword-96|1<<ai.InternalKeyword-96|1<<ai.PrivateKeyword-96|1<<ai.PublicKeyword-96));){switch(this.state=345,this._errHandler.sync(this),this._input.LA(1)){case ai.PublicKeyword:this.state=339,this.match(ai.PublicKeyword);break;case ai.InternalKeyword:this.state=340,this.match(ai.InternalKeyword);break;case ai.PrivateKeyword:this.state=341,this.match(ai.PrivateKeyword);break;case ai.ConstantKeyword:this.state=342,this.match(ai.ConstantKeyword);break;case ai.ImmutableKeyword:this.state=343,this.match(ai.ImmutableKeyword);break;case ai.T__95:this.state=344,this.overrideSpecifier();break;default:throw new Zn.NoViableAltException(this)}this.state=349,this._errHandler.sync(this),t=this._input.LA(1)}this.state=350,this.identifier(),this.state=353,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__10&&(this.state=351,this.match(ai.T__10),this.state=352,this.expression(0)),this.state=355,this.match(ai.T__1)}catch(t){if(!(t instanceof ni.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 bi(this._ctx,this.state);this.enterRule(t,28,ai.RULE_fileLevelConstant);try{this.enterOuterAlt(t,1),this.state=357,this.typeName(0),this.state=358,this.match(ai.ConstantKeyword),this.state=359,this.identifier(),this.state=360,this.match(ai.T__10),this.state=361,this.expression(0),this.state=362,this.match(ai.T__1)}catch(e){if(!(e instanceof ni.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 Ei(this._ctx,this.state);this.enterRule(t,30,ai.RULE_customErrorDefinition);try{this.enterOuterAlt(t,1),this.state=364,this.match(ai.T__24),this.state=365,this.identifier(),this.state=366,this.parameterList(),this.state=367,this.match(ai.T__1)}catch(e){if(!(e instanceof ni.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 Ni(this._ctx,this.state);this.enterRule(t,32,ai.RULE_typeDefinition);try{this.enterOuterAlt(t,1),this.state=369,this.match(ai.TypeKeyword),this.state=370,this.identifier(),this.state=371,this.match(ai.T__21),this.state=372,this.elementaryTypeName(),this.state=373,this.match(ai.T__1)}catch(e){if(!(e instanceof ni.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 Ai(this._ctx,this.state);this.enterRule(e,34,ai.RULE_usingForDeclaration);try{switch(this.enterOuterAlt(e,1),this.state=375,this.match(ai.T__25),this.state=376,this.usingForObject(),this.state=377,this.match(ai.T__26),this.state=380,this._errHandler.sync(this),this._input.LA(1)){case ai.T__2:this.state=378,this.match(ai.T__2);break;case ai.T__13:case ai.T__24:case ai.T__29:case ai.T__35:case ai.T__37:case ai.T__41:case ai.T__53:case ai.T__54:case ai.T__55:case ai.T__56:case ai.T__57:case ai.T__94:case ai.Int:case ai.Uint:case ai.Byte:case ai.Fixed:case ai.Ufixed:case ai.LeaveKeyword:case ai.PayableKeyword:case ai.ConstructorKeyword:case ai.ReceiveKeyword:case ai.Identifier:this.state=379,this.typeName(0);break;default:throw new Zn.NoViableAltException(this)}this.state=383,this._errHandler.sync(this),t=this._input.LA(1),t===ai.GlobalKeyword&&(this.state=382,this.match(ai.GlobalKeyword)),this.state=385,this.match(ai.T__1)}catch(t){if(!(t instanceof ni.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 Ri(this._ctx,this.state);this.enterRule(e,36,ai.RULE_usingForObject);try{switch(this.state=399,this._errHandler.sync(this),this._input.LA(1)){case ai.T__13:case ai.T__24:case ai.T__35:case ai.T__41:case ai.T__53:case ai.T__94:case ai.LeaveKeyword:case ai.PayableKeyword:case ai.ConstructorKeyword:case ai.ReceiveKeyword:case ai.Identifier:this.enterOuterAlt(e,1),this.state=387,this.userDefinedTypeName();break;case ai.T__14:for(this.enterOuterAlt(e,2),this.state=388,this.match(ai.T__14),this.state=389,this.userDefinedTypeName(),this.state=394,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=390,this.match(ai.T__15),this.state=391,this.userDefinedTypeName(),this.state=396,this._errHandler.sync(this),t=this._input.LA(1);this.state=397,this.match(ai.T__16);break;default:throw new Zn.NoViableAltException(this)}}catch(t){if(!(t instanceof ni.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 Ci(this._ctx,this.state);this.enterRule(e,38,ai.RULE_structDefinition);try{if(this.enterOuterAlt(e,1),this.state=401,this.match(ai.T__27),this.state=402,this.identifier(),this.state=403,this.match(ai.T__14),this.state=414,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&(1<<ai.T__13|1<<ai.T__24|1<<ai.T__29))||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__37-36|1<<ai.T__41-36|1<<ai.T__53-36|1<<ai.T__54-36|1<<ai.T__55-36|1<<ai.T__56-36|1<<ai.T__57-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.Int-95|1<<ai.Uint-95|1<<ai.Byte-95|1<<ai.Fixed-95|1<<ai.Ufixed-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)for(this.state=404,this.variableDeclaration(),this.state=405,this.match(ai.T__1),this.state=411,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<ai.T__13|1<<ai.T__24|1<<ai.T__29))||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__37-36|1<<ai.T__41-36|1<<ai.T__53-36|1<<ai.T__54-36|1<<ai.T__55-36|1<<ai.T__56-36|1<<ai.T__57-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.Int-95|1<<ai.Uint-95|1<<ai.Byte-95|1<<ai.Fixed-95|1<<ai.Ufixed-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier;)this.state=406,this.variableDeclaration(),this.state=407,this.match(ai.T__1),this.state=413,this._errHandler.sync(this),t=this._input.LA(1);this.state=416,this.match(ai.T__16)}catch(t){if(!(t instanceof ni.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 Oi(this._ctx,this.state);this.enterRule(e,40,ai.RULE_modifierDefinition);try{for(this.enterOuterAlt(e,1),this.state=418,this.match(ai.T__28),this.state=419,this.identifier(),this.state=421,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__22&&(this.state=420,this.parameterList()),this.state=427,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__95||t===ai.VirtualKeyword;){switch(this.state=425,this._errHandler.sync(this),this._input.LA(1)){case ai.VirtualKeyword:this.state=423,this.match(ai.VirtualKeyword);break;case ai.T__95:this.state=424,this.overrideSpecifier();break;default:throw new Zn.NoViableAltException(this)}this.state=429,this._errHandler.sync(this),t=this._input.LA(1)}switch(this.state=432,this._errHandler.sync(this),this._input.LA(1)){case ai.T__1:this.state=430,this.match(ai.T__1);break;case ai.T__14:this.state=431,this.block();break;default:throw new Zn.NoViableAltException(this)}}catch(t){if(!(t instanceof ni.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 Li(this._ctx,this.state);this.enterRule(e,42,ai.RULE_modifierInvocation);try{this.enterOuterAlt(e,1),this.state=434,this.identifier(),this.state=440,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__22&&(this.state=435,this.match(ai.T__22),this.state=437,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<ai.T__5|1<<ai.T__13|1<<ai.T__22|1<<ai.T__24|1<<ai.T__29))||0==(t-34&-32)&&0!=(1<<t-34&(1<<ai.T__33-34|1<<ai.T__35-34|1<<ai.T__37-34|1<<ai.T__41-34|1<<ai.T__53-34|1<<ai.T__54-34|1<<ai.T__55-34|1<<ai.T__56-34|1<<ai.T__57-34|1<<ai.T__58-34|1<<ai.T__59-34|1<<ai.T__60-34|1<<ai.T__62-34|1<<ai.T__63-34|1<<ai.T__64-34))||0==(t-66&-32)&&0!=(1<<t-66&(1<<ai.T__65-66|1<<ai.T__94-66|1<<ai.Int-66))||0==(t-98&-32)&&0!=(1<<t-98&(1<<ai.Uint-98|1<<ai.Byte-98|1<<ai.Fixed-98|1<<ai.Ufixed-98|1<<ai.BooleanLiteral-98|1<<ai.DecimalNumber-98|1<<ai.HexNumber-98|1<<ai.HexLiteralFragment-98|1<<ai.LeaveKeyword-98|1<<ai.PayableKeyword-98|1<<ai.TypeKeyword-98|1<<ai.ConstructorKeyword-98|1<<ai.ReceiveKeyword-98|1<<ai.Identifier-98|1<<ai.StringLiteralFragment-98)))&&(this.state=436,this.expressionList()),this.state=439,this.match(ai.T__23))}catch(t){if(!(t instanceof ni.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 wi(this._ctx,this.state);this.enterRule(e,44,ai.RULE_functionDefinition);try{switch(this.enterOuterAlt(e,1),this.state=442,this.functionDescriptor(),this.state=443,this.parameterList(),this.state=444,this.modifierList(),this.state=446,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__30&&(this.state=445,this.returnParameters()),this.state=450,this._errHandler.sync(this),this._input.LA(1)){case ai.T__1:this.state=448,this.match(ai.T__1);break;case ai.T__14:this.state=449,this.block();break;default:throw new Zn.NoViableAltException(this)}}catch(t){if(!(t instanceof ni.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 Ii(this._ctx,this.state);this.enterRule(e,46,ai.RULE_functionDescriptor);try{switch(this.state=459,this._errHandler.sync(this),this._input.LA(1)){case ai.T__29:this.enterOuterAlt(e,1),this.state=452,this.match(ai.T__29),this.state=454,this._errHandler.sync(this),t=this._input.LA(1),(t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=453,this.identifier());break;case ai.ConstructorKeyword:this.enterOuterAlt(e,2),this.state=456,this.match(ai.ConstructorKeyword);break;case ai.FallbackKeyword:this.enterOuterAlt(e,3),this.state=457,this.match(ai.FallbackKeyword);break;case ai.ReceiveKeyword:this.enterOuterAlt(e,4),this.state=458,this.match(ai.ReceiveKeyword);break;default:throw new Zn.NoViableAltException(this)}}catch(t){if(!(t instanceof ni.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 Pi(this._ctx,this.state);this.enterRule(t,48,ai.RULE_returnParameters);try{this.enterOuterAlt(t,1),this.state=461,this.match(ai.T__30),this.state=462,this.parameterList()}catch(e){if(!(e instanceof ni.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 ki(this._ctx,this.state);this.enterRule(e,50,ai.RULE_modifierList);try{for(this.enterOuterAlt(e,1),this.state=474,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.T__95-95|1<<ai.ConstantKeyword-95|1<<ai.LeaveKeyword-95|1<<ai.ExternalKeyword-95|1<<ai.InternalKeyword-95|1<<ai.PayableKeyword-95|1<<ai.PrivateKeyword-95|1<<ai.PublicKeyword-95|1<<ai.VirtualKeyword-95|1<<ai.PureKeyword-95|1<<ai.ViewKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier;){switch(this.state=472,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,40,this._ctx)){case 1:this.state=464,this.match(ai.ExternalKeyword);break;case 2:this.state=465,this.match(ai.PublicKeyword);break;case 3:this.state=466,this.match(ai.InternalKeyword);break;case 4:this.state=467,this.match(ai.PrivateKeyword);break;case 5:this.state=468,this.match(ai.VirtualKeyword);break;case 6:this.state=469,this.stateMutability();break;case 7:this.state=470,this.modifierInvocation();break;case 8:this.state=471,this.overrideSpecifier()}this.state=476,this._errHandler.sync(this),t=this._input.LA(1)}}catch(t){if(!(t instanceof ni.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 Di(this._ctx,this.state);this.enterRule(e,52,ai.RULE_eventDefinition);try{this.enterOuterAlt(e,1),this.state=477,this.match(ai.T__31),this.state=478,this.identifier(),this.state=479,this.eventParameterList(),this.state=481,this._errHandler.sync(this),t=this._input.LA(1),t===ai.AnonymousKeyword&&(this.state=480,this.match(ai.AnonymousKeyword)),this.state=483,this.match(ai.T__1)}catch(t){if(!(t instanceof ni.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 Fi(this._ctx,this.state);this.enterRule(t,54,ai.RULE_enumValue);try{this.enterOuterAlt(t,1),this.state=485,this.identifier()}catch(e){if(!(e instanceof ni.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 Mi(this._ctx,this.state);this.enterRule(e,56,ai.RULE_enumDefinition);try{for(this.enterOuterAlt(e,1),this.state=487,this.match(ai.T__32),this.state=488,this.identifier(),this.state=489,this.match(ai.T__14),this.state=491,this._errHandler.sync(this),t=this._input.LA(1),(t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=490,this.enumValue()),this.state=497,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=493,this.match(ai.T__15),this.state=494,this.enumValue(),this.state=499,this._errHandler.sync(this),t=this._input.LA(1);this.state=500,this.match(ai.T__16)}catch(t){if(!(t instanceof ni.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 Ui(this._ctx,this.state);this.enterRule(e,58,ai.RULE_parameterList);try{if(this.enterOuterAlt(e,1),this.state=502,this.match(ai.T__22),this.state=511,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&(1<<ai.T__13|1<<ai.T__24|1<<ai.T__29))||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__37-36|1<<ai.T__41-36|1<<ai.T__53-36|1<<ai.T__54-36|1<<ai.T__55-36|1<<ai.T__56-36|1<<ai.T__57-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.Int-95|1<<ai.Uint-95|1<<ai.Byte-95|1<<ai.Fixed-95|1<<ai.Ufixed-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)for(this.state=503,this.parameter(),this.state=508,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=504,this.match(ai.T__15),this.state=505,this.parameter(),this.state=510,this._errHandler.sync(this),t=this._input.LA(1);this.state=513,this.match(ai.T__23)}catch(t){if(!(t instanceof ni.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 ji(this._ctx,this.state);this.enterRule(e,60,ai.RULE_parameter);try{this.enterOuterAlt(e,1),this.state=515,this.typeName(0),this.state=517,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,47,this._ctx)&&(this.state=516,this.storageLocation()),this.state=520,this._errHandler.sync(this),t=this._input.LA(1),(t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=519,this.identifier())}catch(t){if(!(t instanceof ni.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 Hi(this._ctx,this.state);this.enterRule(e,62,ai.RULE_eventParameterList);try{if(this.enterOuterAlt(e,1),this.state=522,this.match(ai.T__22),this.state=531,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&(1<<ai.T__13|1<<ai.T__24|1<<ai.T__29))||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__37-36|1<<ai.T__41-36|1<<ai.T__53-36|1<<ai.T__54-36|1<<ai.T__55-36|1<<ai.T__56-36|1<<ai.T__57-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.Int-95|1<<ai.Uint-95|1<<ai.Byte-95|1<<ai.Fixed-95|1<<ai.Ufixed-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)for(this.state=523,this.eventParameter(),this.state=528,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=524,this.match(ai.T__15),this.state=525,this.eventParameter(),this.state=530,this._errHandler.sync(this),t=this._input.LA(1);this.state=533,this.match(ai.T__23)}catch(t){if(!(t instanceof ni.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 Bi(this._ctx,this.state);this.enterRule(e,64,ai.RULE_eventParameter);try{this.enterOuterAlt(e,1),this.state=535,this.typeName(0),this.state=537,this._errHandler.sync(this),t=this._input.LA(1),t===ai.IndexedKeyword&&(this.state=536,this.match(ai.IndexedKeyword)),this.state=540,this._errHandler.sync(this),t=this._input.LA(1),(t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=539,this.identifier())}catch(t){if(!(t instanceof ni.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 Ki(this._ctx,this.state);this.enterRule(e,66,ai.RULE_functionTypeParameterList);try{if(this.enterOuterAlt(e,1),this.state=542,this.match(ai.T__22),this.state=551,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&(1<<ai.T__13|1<<ai.T__24|1<<ai.T__29))||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__37-36|1<<ai.T__41-36|1<<ai.T__53-36|1<<ai.T__54-36|1<<ai.T__55-36|1<<ai.T__56-36|1<<ai.T__57-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.Int-95|1<<ai.Uint-95|1<<ai.Byte-95|1<<ai.Fixed-95|1<<ai.Ufixed-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)for(this.state=543,this.functionTypeParameter(),this.state=548,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=544,this.match(ai.T__15),this.state=545,this.functionTypeParameter(),this.state=550,this._errHandler.sync(this),t=this._input.LA(1);this.state=553,this.match(ai.T__23)}catch(t){if(!(t instanceof ni.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 zi(this._ctx,this.state);this.enterRule(e,68,ai.RULE_functionTypeParameter);try{this.enterOuterAlt(e,1),this.state=555,this.typeName(0),this.state=557,this._errHandler.sync(this),t=this._input.LA(1),0==(t-40&-32)&&0!=(1<<t-40&(1<<ai.T__39-40|1<<ai.T__40-40|1<<ai.T__41-40))&&(this.state=556,this.storageLocation())}catch(t){if(!(t instanceof ni.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 Vi(this._ctx,this.state);this.enterRule(t,70,ai.RULE_variableDeclaration);try{this.enterOuterAlt(t,1),this.state=559,this.typeName(0),this.state=561,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,56,this._ctx)&&(this.state=560,this.storageLocation()),this.state=563,this.identifier()}catch(e){if(!(e instanceof ni.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,n=this.state,i=new Gi(this._ctx,n),s=i;this.enterRecursionRule(i,72,ai.RULE_typeName,t);try{let t;switch(this.enterOuterAlt(i,1),this.state=572,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,57,this._ctx)){case 1:this.state=566,this.elementaryTypeName();break;case 2:this.state=567,this.userDefinedTypeName();break;case 3:this.state=568,this.mapping();break;case 4:this.state=569,this.functionTypeName();break;case 5:this.state=570,this.match(ai.T__35),this.state=571,this.match(ai.PayableKeyword)}for(this._ctx._stop=this._input.tryLT(-1),this.state=582,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,59,this._ctx);2!==t&&t!==Xn.ATN.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),s=i,i=new Gi(r,n),this.pushNewRecursionContext(i,72,ai.RULE_typeName),this.state=574,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=575,this.match(ai.T__33),this.state=577,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&(1<<ai.T__5|1<<ai.T__13|1<<ai.T__22|1<<ai.T__24|1<<ai.T__29))||0==(e-34&-32)&&0!=(1<<e-34&(1<<ai.T__33-34|1<<ai.T__35-34|1<<ai.T__37-34|1<<ai.T__41-34|1<<ai.T__53-34|1<<ai.T__54-34|1<<ai.T__55-34|1<<ai.T__56-34|1<<ai.T__57-34|1<<ai.T__58-34|1<<ai.T__59-34|1<<ai.T__60-34|1<<ai.T__62-34|1<<ai.T__63-34|1<<ai.T__64-34))||0==(e-66&-32)&&0!=(1<<e-66&(1<<ai.T__65-66|1<<ai.T__94-66|1<<ai.Int-66))||0==(e-98&-32)&&0!=(1<<e-98&(1<<ai.Uint-98|1<<ai.Byte-98|1<<ai.Fixed-98|1<<ai.Ufixed-98|1<<ai.BooleanLiteral-98|1<<ai.DecimalNumber-98|1<<ai.HexNumber-98|1<<ai.HexLiteralFragment-98|1<<ai.LeaveKeyword-98|1<<ai.PayableKeyword-98|1<<ai.TypeKeyword-98|1<<ai.ConstructorKeyword-98|1<<ai.ReceiveKeyword-98|1<<ai.Identifier-98|1<<ai.StringLiteralFragment-98)))&&(this.state=576,this.expression(0)),this.state=579,this.match(ai.T__34)}this.state=584,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,59,this._ctx)}}catch(t){if(!(t instanceof ni.RecognitionException))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}userDefinedTypeName(){let t=new qi(this._ctx,this.state);this.enterRule(t,74,ai.RULE_userDefinedTypeName);try{let e;for(this.enterOuterAlt(t,1),this.state=585,this.identifier(),this.state=590,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,60,this._ctx);2!==e&&e!==Xn.ATN.INVALID_ALT_NUMBER;)1===e&&(this.state=586,this.match(ai.T__36),this.state=587,this.identifier()),this.state=592,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,60,this._ctx)}catch(e){if(!(e instanceof ni.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 $i(this._ctx,this.state);this.enterRule(t,76,ai.RULE_mappingKey);try{switch(this.state=595,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,61,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=593,this.elementaryTypeName();break;case 2:this.enterOuterAlt(t,2),this.state=594,this.userDefinedTypeName()}}catch(e){if(!(e instanceof ni.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 Yi(this._ctx,this.state);this.enterRule(e,78,ai.RULE_mapping);try{this.enterOuterAlt(e,1),this.state=597,this.match(ai.T__37),this.state=598,this.match(ai.T__22),this.state=599,this.mappingKey(),this.state=601,this._errHandler.sync(this),t=this._input.LA(1),(t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=600,this.mappingKeyName()),this.state=603,this.match(ai.T__38),this.state=604,this.typeName(0),this.state=606,this._errHandler.sync(this),t=this._input.LA(1),(t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=605,this.mappingValueName()),this.state=608,this.match(ai.T__23)}catch(t){if(!(t instanceof ni.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 Wi(this._ctx,this.state);this.enterRule(t,80,ai.RULE_mappingKeyName);try{this.enterOuterAlt(t,1),this.state=610,this.identifier()}catch(e){if(!(e instanceof ni.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 Xi(this._ctx,this.state);this.enterRule(t,82,ai.RULE_mappingValueName);try{this.enterOuterAlt(t,1),this.state=612,this.identifier()}catch(e){if(!(e instanceof ni.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 Ji(this._ctx,this.state);this.enterRule(t,84,ai.RULE_functionTypeName);try{let e;for(this.enterOuterAlt(t,1),this.state=614,this.match(ai.T__29),this.state=615,this.functionTypeParameterList(),this.state=621,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,65,this._ctx);2!==e&&e!==Xn.ATN.INVALID_ALT_NUMBER;){if(1===e)switch(this.state=619,this._errHandler.sync(this),this._input.LA(1)){case ai.InternalKeyword:this.state=616,this.match(ai.InternalKeyword);break;case ai.ExternalKeyword:this.state=617,this.match(ai.ExternalKeyword);break;case ai.ConstantKeyword:case ai.PayableKeyword:case ai.PureKeyword:case ai.ViewKeyword:this.state=618,this.stateMutability();break;default:throw new Zn.NoViableAltException(this)}this.state=623,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,65,this._ctx)}this.state=626,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,66,this._ctx)&&(this.state=624,this.match(ai.T__30),this.state=625,this.functionTypeParameterList())}catch(e){if(!(e instanceof ni.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 Qi(this._ctx,this.state);this.enterRule(e,86,ai.RULE_storageLocation);try{this.enterOuterAlt(e,1),this.state=628,t=this._input.LA(1),0!=(t-40&-32)||0==(1<<t-40&(1<<ai.T__39-40|1<<ai.T__40-40|1<<ai.T__41-40))?this._errHandler.recoverInline(this):(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof ni.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 Zi(this._ctx,this.state);this.enterRule(e,88,ai.RULE_stateMutability);try{this.enterOuterAlt(e,1),this.state=630,t=this._input.LA(1),0!=(t-110&-32)||0==(1<<t-110&(1<<ai.ConstantKeyword-110|1<<ai.PayableKeyword-110|1<<ai.PureKeyword-110|1<<ai.ViewKeyword-110))?this._errHandler.recoverInline(this):(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume())}catch(t){if(!(t instanceof ni.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 ts(this._ctx,this.state);this.enterRule(e,90,ai.RULE_block);try{for(this.enterOuterAlt(e,1),this.state=632,this.match(ai.T__14),this.state=636,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<ai.T__5|1<<ai.T__13|1<<ai.T__14|1<<ai.T__22|1<<ai.T__24|1<<ai.T__26|1<<ai.T__29))||0==(t-34&-32)&&0!=(1<<t-34&(1<<ai.T__33-34|1<<ai.T__35-34|1<<ai.T__37-34|1<<ai.T__41-34|1<<ai.T__42-34|1<<ai.T__44-34|1<<ai.T__46-34|1<<ai.T__47-34|1<<ai.T__48-34|1<<ai.T__49-34|1<<ai.T__50-34|1<<ai.T__51-34|1<<ai.T__52-34|1<<ai.T__53-34|1<<ai.T__54-34|1<<ai.T__55-34|1<<ai.T__56-34|1<<ai.T__57-34|1<<ai.T__58-34|1<<ai.T__59-34|1<<ai.T__60-34|1<<ai.T__62-34|1<<ai.T__63-34|1<<ai.T__64-34))||0==(t-66&-32)&&0!=(1<<t-66&(1<<ai.T__65-66|1<<ai.T__94-66|1<<ai.Int-66))||0==(t-98&-32)&&0!=(1<<t-98&(1<<ai.Uint-98|1<<ai.Byte-98|1<<ai.Fixed-98|1<<ai.Ufixed-98|1<<ai.BooleanLiteral-98|1<<ai.DecimalNumber-98|1<<ai.HexNumber-98|1<<ai.HexLiteralFragment-98|1<<ai.BreakKeyword-98|1<<ai.ContinueKeyword-98|1<<ai.LeaveKeyword-98|1<<ai.PayableKeyword-98|1<<ai.TypeKeyword-98|1<<ai.ConstructorKeyword-98|1<<ai.ReceiveKeyword-98|1<<ai.Identifier-98|1<<ai.StringLiteralFragment-98));)this.state=633,this.statement(),this.state=638,this._errHandler.sync(this),t=this._input.LA(1);this.state=639,this.match(ai.T__16)}catch(t){if(!(t instanceof ni.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 es(this._ctx,this.state);this.enterRule(t,92,ai.RULE_statement);try{switch(this.state=656,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,68,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=641,this.ifStatement();break;case 2:this.enterOuterAlt(t,2),this.state=642,this.tryStatement();break;case 3:this.enterOuterAlt(t,3),this.state=643,this.whileStatement();break;case 4:this.enterOuterAlt(t,4),this.state=644,this.forStatement();break;case 5:this.enterOuterAlt(t,5),this.state=645,this.block();break;case 6:this.enterOuterAlt(t,6),this.state=646,this.inlineAssemblyStatement();break;case 7:this.enterOuterAlt(t,7),this.state=647,this.doWhileStatement();break;case 8:this.enterOuterAlt(t,8),this.state=648,this.continueStatement();break;case 9:this.enterOuterAlt(t,9),this.state=649,this.breakStatement();break;case 10:this.enterOuterAlt(t,10),this.state=650,this.returnStatement();break;case 11:this.enterOuterAlt(t,11),this.state=651,this.throwStatement();break;case 12:this.enterOuterAlt(t,12),this.state=652,this.emitStatement();break;case 13:this.enterOuterAlt(t,13),this.state=653,this.simpleStatement();break;case 14:this.enterOuterAlt(t,14),this.state=654,this.uncheckedStatement();break;case 15:this.enterOuterAlt(t,15),this.state=655,this.revertStatement()}}catch(e){if(!(e instanceof ni.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 rs(this._ctx,this.state);this.enterRule(t,94,ai.RULE_expressionStatement);try{this.enterOuterAlt(t,1),this.state=658,this.expression(0),this.state=659,this.match(ai.T__1)}catch(e){if(!(e instanceof ni.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 ns(this._ctx,this.state);this.enterRule(t,96,ai.RULE_ifStatement);try{this.enterOuterAlt(t,1),this.state=661,this.match(ai.T__42),this.state=662,this.match(ai.T__22),this.state=663,this.expression(0),this.state=664,this.match(ai.T__23),this.state=665,this.statement(),this.state=668,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,69,this._ctx)&&(this.state=666,this.match(ai.T__43),this.state=667,this.statement())}catch(e){if(!(e instanceof ni.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 is(this._ctx,this.state);this.enterRule(e,98,ai.RULE_tryStatement);try{this.enterOuterAlt(e,1),this.state=670,this.match(ai.T__44),this.state=671,this.expression(0),this.state=673,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__30&&(this.state=672,this.returnParameters()),this.state=675,this.block(),this.state=677,this._errHandler.sync(this),t=this._input.LA(1);do{this.state=676,this.catchClause(),this.state=679,this._errHandler.sync(this),t=this._input.LA(1)}while(t===ai.T__45)}catch(t){if(!(t instanceof ni.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 ss(this._ctx,this.state);this.enterRule(e,100,ai.RULE_catchClause);try{this.enterOuterAlt(e,1),this.state=681,this.match(ai.T__45),this.state=686,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<ai.T__13|1<<ai.T__22|1<<ai.T__24))||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=683,this._errHandler.sync(this),t=this._input.LA(1),(t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=682,this.identifier()),this.state=685,this.parameterList()),this.state=688,this.block()}catch(t){if(!(t instanceof ni.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 os(this._ctx,this.state);this.enterRule(t,102,ai.RULE_whileStatement);try{this.enterOuterAlt(t,1),this.state=690,this.match(ai.T__46),this.state=691,this.match(ai.T__22),this.state=692,this.expression(0),this.state=693,this.match(ai.T__23),this.state=694,this.statement()}catch(e){if(!(e instanceof ni.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 as(this._ctx,this.state);this.enterRule(t,104,ai.RULE_simpleStatement);try{switch(this.enterOuterAlt(t,1),this.state=698,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,74,this._ctx)){case 1:this.state=696,this.variableDeclarationStatement();break;case 2:this.state=697,this.expressionStatement()}}catch(e){if(!(e instanceof ni.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 ls(this._ctx,this.state);this.enterRule(t,106,ai.RULE_uncheckedStatement);try{this.enterOuterAlt(t,1),this.state=700,this.match(ai.T__47),this.state=701,this.block()}catch(e){if(!(e instanceof ni.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 cs(this._ctx,this.state);this.enterRule(e,108,ai.RULE_forStatement);try{switch(this.enterOuterAlt(e,1),this.state=703,this.match(ai.T__26),this.state=704,this.match(ai.T__22),this.state=707,this._errHandler.sync(this),this._input.LA(1)){case ai.T__5:case ai.T__13:case ai.T__22:case ai.T__24:case ai.T__29:case ai.T__33:case ai.T__35:case ai.T__37:case ai.T__41:case ai.T__53:case ai.T__54:case ai.T__55:case ai.T__56:case ai.T__57:case ai.T__58:case ai.T__59:case ai.T__60:case ai.T__62:case ai.T__63:case ai.T__64:case ai.T__65:case ai.T__94:case ai.Int:case ai.Uint:case ai.Byte:case ai.Fixed:case ai.Ufixed:case ai.BooleanLiteral:case ai.DecimalNumber:case ai.HexNumber:case ai.HexLiteralFragment:case ai.LeaveKeyword:case ai.PayableKeyword:case ai.TypeKeyword:case ai.ConstructorKeyword:case ai.ReceiveKeyword:case ai.Identifier:case ai.StringLiteralFragment:this.state=705,this.simpleStatement();break;case ai.T__1:this.state=706,this.match(ai.T__1);break;default:throw new Zn.NoViableAltException(this)}switch(this.state=711,this._errHandler.sync(this),this._input.LA(1)){case ai.T__5:case ai.T__13:case ai.T__22:case ai.T__24:case ai.T__29:case ai.T__33:case ai.T__35:case ai.T__37:case ai.T__41:case ai.T__53:case ai.T__54:case ai.T__55:case ai.T__56:case ai.T__57:case ai.T__58:case ai.T__59:case ai.T__60:case ai.T__62:case ai.T__63:case ai.T__64:case ai.T__65:case ai.T__94:case ai.Int:case ai.Uint:case ai.Byte:case ai.Fixed:case ai.Ufixed:case ai.BooleanLiteral:case ai.DecimalNumber:case ai.HexNumber:case ai.HexLiteralFragment:case ai.LeaveKeyword:case ai.PayableKeyword:case ai.TypeKeyword:case ai.ConstructorKeyword:case ai.ReceiveKeyword:case ai.Identifier:case ai.StringLiteralFragment:this.state=709,this.expressionStatement();break;case ai.T__1:this.state=710,this.match(ai.T__1);break;default:throw new Zn.NoViableAltException(this)}this.state=714,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<ai.T__5|1<<ai.T__13|1<<ai.T__22|1<<ai.T__24|1<<ai.T__29))||0==(t-34&-32)&&0!=(1<<t-34&(1<<ai.T__33-34|1<<ai.T__35-34|1<<ai.T__37-34|1<<ai.T__41-34|1<<ai.T__53-34|1<<ai.T__54-34|1<<ai.T__55-34|1<<ai.T__56-34|1<<ai.T__57-34|1<<ai.T__58-34|1<<ai.T__59-34|1<<ai.T__60-34|1<<ai.T__62-34|1<<ai.T__63-34|1<<ai.T__64-34))||0==(t-66&-32)&&0!=(1<<t-66&(1<<ai.T__65-66|1<<ai.T__94-66|1<<ai.Int-66))||0==(t-98&-32)&&0!=(1<<t-98&(1<<ai.Uint-98|1<<ai.Byte-98|1<<ai.Fixed-98|1<<ai.Ufixed-98|1<<ai.BooleanLiteral-98|1<<ai.DecimalNumber-98|1<<ai.HexNumber-98|1<<ai.HexLiteralFragment-98|1<<ai.LeaveKeyword-98|1<<ai.PayableKeyword-98|1<<ai.TypeKeyword-98|1<<ai.ConstructorKeyword-98|1<<ai.ReceiveKeyword-98|1<<ai.Identifier-98|1<<ai.StringLiteralFragment-98)))&&(this.state=713,this.expression(0)),this.state=716,this.match(ai.T__23),this.state=717,this.statement()}catch(t){if(!(t instanceof ni.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 us(this._ctx,this.state);this.enterRule(e,110,ai.RULE_inlineAssemblyStatement);try{this.enterOuterAlt(e,1),this.state=719,this.match(ai.T__48),this.state=721,this._errHandler.sync(this),t=this._input.LA(1),t===ai.StringLiteralFragment&&(this.state=720,this.match(ai.StringLiteralFragment)),this.state=727,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__22&&(this.state=723,this.match(ai.T__22),this.state=724,this.inlineAssemblyStatementFlag(),this.state=725,this.match(ai.T__23)),this.state=729,this.assemblyBlock()}catch(t){if(!(t instanceof ni.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 hs(this._ctx,this.state);this.enterRule(t,112,ai.RULE_inlineAssemblyStatementFlag);try{this.enterOuterAlt(t,1),this.state=731,this.stringLiteral()}catch(e){if(!(e instanceof ni.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 ps(this._ctx,this.state);this.enterRule(t,114,ai.RULE_doWhileStatement);try{this.enterOuterAlt(t,1),this.state=733,this.match(ai.T__49),this.state=734,this.statement(),this.state=735,this.match(ai.T__46),this.state=736,this.match(ai.T__22),this.state=737,this.expression(0),this.state=738,this.match(ai.T__23),this.state=739,this.match(ai.T__1)}catch(e){if(!(e instanceof ni.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 ds(this._ctx,this.state);this.enterRule(t,116,ai.RULE_continueStatement);try{this.enterOuterAlt(t,1),this.state=741,this.match(ai.ContinueKeyword),this.state=742,this.match(ai.T__1)}catch(e){if(!(e instanceof ni.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 fs(this._ctx,this.state);this.enterRule(t,118,ai.RULE_breakStatement);try{this.enterOuterAlt(t,1),this.state=744,this.match(ai.BreakKeyword),this.state=745,this.match(ai.T__1)}catch(e){if(!(e instanceof ni.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 _s(this._ctx,this.state);this.enterRule(e,120,ai.RULE_returnStatement);try{this.enterOuterAlt(e,1),this.state=747,this.match(ai.T__50),this.state=749,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<ai.T__5|1<<ai.T__13|1<<ai.T__22|1<<ai.T__24|1<<ai.T__29))||0==(t-34&-32)&&0!=(1<<t-34&(1<<ai.T__33-34|1<<ai.T__35-34|1<<ai.T__37-34|1<<ai.T__41-34|1<<ai.T__53-34|1<<ai.T__54-34|1<<ai.T__55-34|1<<ai.T__56-34|1<<ai.T__57-34|1<<ai.T__58-34|1<<ai.T__59-34|1<<ai.T__60-34|1<<ai.T__62-34|1<<ai.T__63-34|1<<ai.T__64-34))||0==(t-66&-32)&&0!=(1<<t-66&(1<<ai.T__65-66|1<<ai.T__94-66|1<<ai.Int-66))||0==(t-98&-32)&&0!=(1<<t-98&(1<<ai.Uint-98|1<<ai.Byte-98|1<<ai.Fixed-98|1<<ai.Ufixed-98|1<<ai.BooleanLiteral-98|1<<ai.DecimalNumber-98|1<<ai.HexNumber-98|1<<ai.HexLiteralFragment-98|1<<ai.LeaveKeyword-98|1<<ai.PayableKeyword-98|1<<ai.TypeKeyword-98|1<<ai.ConstructorKeyword-98|1<<ai.ReceiveKeyword-98|1<<ai.Identifier-98|1<<ai.StringLiteralFragment-98)))&&(this.state=748,this.expression(0)),this.state=751,this.match(ai.T__1)}catch(t){if(!(t instanceof ni.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 ys(this._ctx,this.state);this.enterRule(t,122,ai.RULE_throwStatement);try{this.enterOuterAlt(t,1),this.state=753,this.match(ai.T__51),this.state=754,this.match(ai.T__1)}catch(e){if(!(e instanceof ni.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 gs(this._ctx,this.state);this.enterRule(t,124,ai.RULE_emitStatement);try{this.enterOuterAlt(t,1),this.state=756,this.match(ai.T__52),this.state=757,this.functionCall(),this.state=758,this.match(ai.T__1)}catch(e){if(!(e instanceof ni.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 ms(this._ctx,this.state);this.enterRule(t,126,ai.RULE_revertStatement);try{this.enterOuterAlt(t,1),this.state=760,this.match(ai.T__53),this.state=761,this.functionCall(),this.state=762,this.match(ai.T__1)}catch(e){if(!(e instanceof ni.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 xs(this._ctx,this.state);this.enterRule(e,128,ai.RULE_variableDeclarationStatement);try{switch(this.enterOuterAlt(e,1),this.state=771,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,81,this._ctx)){case 1:this.state=764,this.match(ai.T__54),this.state=765,this.identifierList();break;case 2:this.state=766,this.variableDeclaration();break;case 3:this.state=767,this.match(ai.T__22),this.state=768,this.variableDeclarationList(),this.state=769,this.match(ai.T__23)}this.state=775,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__10&&(this.state=773,this.match(ai.T__10),this.state=774,this.expression(0)),this.state=777,this.match(ai.T__1)}catch(t){if(!(t instanceof ni.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 Ts(this._ctx,this.state);this.enterRule(e,130,ai.RULE_variableDeclarationList);try{for(this.enterOuterAlt(e,1),this.state=780,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<ai.T__13|1<<ai.T__24|1<<ai.T__29))||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__37-36|1<<ai.T__41-36|1<<ai.T__53-36|1<<ai.T__54-36|1<<ai.T__55-36|1<<ai.T__56-36|1<<ai.T__57-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.Int-95|1<<ai.Uint-95|1<<ai.Byte-95|1<<ai.Fixed-95|1<<ai.Ufixed-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=779,this.variableDeclaration()),this.state=788,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=782,this.match(ai.T__15),this.state=784,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<ai.T__13|1<<ai.T__24|1<<ai.T__29))||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__37-36|1<<ai.T__41-36|1<<ai.T__53-36|1<<ai.T__54-36|1<<ai.T__55-36|1<<ai.T__56-36|1<<ai.T__57-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.Int-95|1<<ai.Uint-95|1<<ai.Byte-95|1<<ai.Fixed-95|1<<ai.Ufixed-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=783,this.variableDeclaration()),this.state=790,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof ni.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 vs(this._ctx,this.state);this.enterRule(e,132,ai.RULE_identifierList);try{let r;for(this.enterOuterAlt(e,1),this.state=791,this.match(ai.T__22),this.state=798,this._errHandler.sync(this),r=this.interpreter.adaptivePredict(this._input,87,this._ctx);2!==r&&r!==Xn.ATN.INVALID_ALT_NUMBER;)1===r&&(this.state=793,this._errHandler.sync(this),t=this._input.LA(1),(t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=792,this.identifier()),this.state=795,this.match(ai.T__15)),this.state=800,this._errHandler.sync(this),r=this.interpreter.adaptivePredict(this._input,87,this._ctx);this.state=802,this._errHandler.sync(this),t=this._input.LA(1),(t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=801,this.identifier()),this.state=804,this.match(ai.T__23)}catch(t){if(!(t instanceof ni.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 Ss(this._ctx,this.state);this.enterRule(e,134,ai.RULE_elementaryTypeName);try{this.enterOuterAlt(e,1),this.state=806,t=this._input.LA(1),0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__54-36|1<<ai.T__55-36|1<<ai.T__56-36|1<<ai.T__57-36))||0==(t-97&-32)&&0!=(1<<t-97&(1<<ai.Int-97|1<<ai.Uint-97|1<<ai.Byte-97|1<<ai.Fixed-97|1<<ai.Ufixed-97))?(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof ni.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,n=this.state,i=new bs(this._ctx,n),s=i,o=136;this.enterRecursionRule(i,136,ai.RULE_expression,t);try{let t;switch(this.enterOuterAlt(i,1),this.state=826,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,89,this._ctx)){case 1:this.state=809,this.match(ai.T__60),this.state=810,this.typeName(0);break;case 2:this.state=811,this.match(ai.T__22),this.state=812,this.expression(0),this.state=813,this.match(ai.T__23);break;case 3:this.state=815,e=this._input.LA(1),e!==ai.T__58&&e!==ai.T__59?this._errHandler.recoverInline(this):(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=816,this.expression(19);break;case 4:this.state=817,e=this._input.LA(1),e!==ai.T__62&&e!==ai.T__63?this._errHandler.recoverInline(this):(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=818,this.expression(18);break;case 5:this.state=819,this.match(ai.T__64),this.state=820,this.expression(17);break;case 6:this.state=821,this.match(ai.T__65),this.state=822,this.expression(16);break;case 7:this.state=823,this.match(ai.T__5),this.state=824,this.expression(15);break;case 8:this.state=825,this.primaryExpression()}for(this._ctx._stop=this._input.tryLT(-1),this.state=902,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,93,this._ctx);2!==t&&t!==Xn.ATN.INVALID_ALT_NUMBER;){if(1===t)switch(null!=this._parseListeners&&this.triggerExitRuleEvent(),s=i,this.state=900,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,92,this._ctx)){case 1:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=828,!this.precpred(this._ctx,14))throw this.createFailedPredicateException("this.precpred(this._ctx, 14)");this.state=829,this.match(ai.T__66),this.state=830,this.expression(15);break;case 2:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=831,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=832,e=this._input.LA(1),e!==ai.T__2&&e!==ai.T__67&&e!==ai.T__68?this._errHandler.recoverInline(this):(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=833,this.expression(14);break;case 3:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=834,!this.precpred(this._ctx,12))throw this.createFailedPredicateException("this.precpred(this._ctx, 12)");this.state=835,e=this._input.LA(1),e!==ai.T__62&&e!==ai.T__63?this._errHandler.recoverInline(this):(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=836,this.expression(13);break;case 4:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=837,!this.precpred(this._ctx,11))throw this.createFailedPredicateException("this.precpred(this._ctx, 11)");this.state=838,e=this._input.LA(1),e!==ai.T__69&&e!==ai.T__70?this._errHandler.recoverInline(this):(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=839,this.expression(12);break;case 5:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=840,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=841,this.match(ai.T__71),this.state=842,this.expression(11);break;case 6:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=843,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=844,this.match(ai.T__4),this.state=845,this.expression(10);break;case 7:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=846,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=847,this.match(ai.T__72),this.state=848,this.expression(9);break;case 8:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=849,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=850,e=this._input.LA(1),0!=(-32&e)||0==(1<<e&(1<<ai.T__6|1<<ai.T__7|1<<ai.T__8|1<<ai.T__9))?this._errHandler.recoverInline(this):(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=851,this.expression(8);break;case 9:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=852,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=853,e=this._input.LA(1),e!==ai.T__73&&e!==ai.T__74?this._errHandler.recoverInline(this):(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=854,this.expression(7);break;case 10:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=855,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=856,this.match(ai.T__75),this.state=857,this.expression(6);break;case 11:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=858,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=859,this.match(ai.T__3),this.state=860,this.expression(5);break;case 12:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=861,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=862,this.match(ai.T__76),this.state=863,this.expression(0),this.state=864,this.match(ai.T__61),this.state=865,this.expression(4);break;case 13:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=867,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=868,e=this._input.LA(1),e===ai.T__10||0==(e-78&-32)&&0!=(1<<e-78&(1<<ai.T__77-78|1<<ai.T__78-78|1<<ai.T__79-78|1<<ai.T__80-78|1<<ai.T__81-78|1<<ai.T__82-78|1<<ai.T__83-78|1<<ai.T__84-78|1<<ai.T__85-78|1<<ai.T__86-78))?(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=869,this.expression(3);break;case 14:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=870,!this.precpred(this._ctx,27))throw this.createFailedPredicateException("this.precpred(this._ctx, 27)");this.state=871,e=this._input.LA(1),e!==ai.T__58&&e!==ai.T__59?this._errHandler.recoverInline(this):(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume());break;case 15:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=872,!this.precpred(this._ctx,25))throw this.createFailedPredicateException("this.precpred(this._ctx, 25)");this.state=873,this.match(ai.T__33),this.state=874,this.expression(0),this.state=875,this.match(ai.T__34);break;case 16:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=877,!this.precpred(this._ctx,24))throw this.createFailedPredicateException("this.precpred(this._ctx, 24)");this.state=878,this.match(ai.T__33),this.state=880,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&(1<<ai.T__5|1<<ai.T__13|1<<ai.T__22|1<<ai.T__24|1<<ai.T__29))||0==(e-34&-32)&&0!=(1<<e-34&(1<<ai.T__33-34|1<<ai.T__35-34|1<<ai.T__37-34|1<<ai.T__41-34|1<<ai.T__53-34|1<<ai.T__54-34|1<<ai.T__55-34|1<<ai.T__56-34|1<<ai.T__57-34|1<<ai.T__58-34|1<<ai.T__59-34|1<<ai.T__60-34|1<<ai.T__62-34|1<<ai.T__63-34|1<<ai.T__64-34))||0==(e-66&-32)&&0!=(1<<e-66&(1<<ai.T__65-66|1<<ai.T__94-66|1<<ai.Int-66))||0==(e-98&-32)&&0!=(1<<e-98&(1<<ai.Uint-98|1<<ai.Byte-98|1<<ai.Fixed-98|1<<ai.Ufixed-98|1<<ai.BooleanLiteral-98|1<<ai.DecimalNumber-98|1<<ai.HexNumber-98|1<<ai.HexLiteralFragment-98|1<<ai.LeaveKeyword-98|1<<ai.PayableKeyword-98|1<<ai.TypeKeyword-98|1<<ai.ConstructorKeyword-98|1<<ai.ReceiveKeyword-98|1<<ai.Identifier-98|1<<ai.StringLiteralFragment-98)))&&(this.state=879,this.expression(0)),this.state=882,this.match(ai.T__61),this.state=884,this._errHandler.sync(this),e=this._input.LA(1),(0==(-32&e)&&0!=(1<<e&(1<<ai.T__5|1<<ai.T__13|1<<ai.T__22|1<<ai.T__24|1<<ai.T__29))||0==(e-34&-32)&&0!=(1<<e-34&(1<<ai.T__33-34|1<<ai.T__35-34|1<<ai.T__37-34|1<<ai.T__41-34|1<<ai.T__53-34|1<<ai.T__54-34|1<<ai.T__55-34|1<<ai.T__56-34|1<<ai.T__57-34|1<<ai.T__58-34|1<<ai.T__59-34|1<<ai.T__60-34|1<<ai.T__62-34|1<<ai.T__63-34|1<<ai.T__64-34))||0==(e-66&-32)&&0!=(1<<e-66&(1<<ai.T__65-66|1<<ai.T__94-66|1<<ai.Int-66))||0==(e-98&-32)&&0!=(1<<e-98&(1<<ai.Uint-98|1<<ai.Byte-98|1<<ai.Fixed-98|1<<ai.Ufixed-98|1<<ai.BooleanLiteral-98|1<<ai.DecimalNumber-98|1<<ai.HexNumber-98|1<<ai.HexLiteralFragment-98|1<<ai.LeaveKeyword-98|1<<ai.PayableKeyword-98|1<<ai.TypeKeyword-98|1<<ai.ConstructorKeyword-98|1<<ai.ReceiveKeyword-98|1<<ai.Identifier-98|1<<ai.StringLiteralFragment-98)))&&(this.state=883,this.expression(0)),this.state=886,this.match(ai.T__34);break;case 17:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=887,!this.precpred(this._ctx,23))throw this.createFailedPredicateException("this.precpred(this._ctx, 23)");this.state=888,this.match(ai.T__36),this.state=889,this.identifier();break;case 18:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=890,!this.precpred(this._ctx,22))throw this.createFailedPredicateException("this.precpred(this._ctx, 22)");this.state=891,this.match(ai.T__14),this.state=892,this.nameValueList(),this.state=893,this.match(ai.T__16);break;case 19:if(i=new bs(r,n),this.pushNewRecursionContext(i,o,ai.RULE_expression),this.state=895,!this.precpred(this._ctx,21))throw this.createFailedPredicateException("this.precpred(this._ctx, 21)");this.state=896,this.match(ai.T__22),this.state=897,this.functionCallArguments(),this.state=898,this.match(ai.T__23)}this.state=904,this._errHandler.sync(this),t=this.interpreter.adaptivePredict(this._input,93,this._ctx)}}catch(t){if(!(t instanceof ni.RecognitionException))throw t;i.exception=t,this._errHandler.reportError(this,t),this._errHandler.recover(this,t)}finally{this.unrollRecursionContexts(r)}return i}primaryExpression(){let t=new Es(this._ctx,this.state);this.enterRule(t,138,ai.RULE_primaryExpression);try{switch(this.state=914,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,94,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=905,this.match(ai.BooleanLiteral);break;case 2:this.enterOuterAlt(t,2),this.state=906,this.numberLiteral();break;case 3:this.enterOuterAlt(t,3),this.state=907,this.hexLiteral();break;case 4:this.enterOuterAlt(t,4),this.state=908,this.stringLiteral();break;case 5:this.enterOuterAlt(t,5),this.state=909,this.identifier();break;case 6:this.enterOuterAlt(t,6),this.state=910,this.match(ai.TypeKeyword);break;case 7:this.enterOuterAlt(t,7),this.state=911,this.match(ai.PayableKeyword);break;case 8:this.enterOuterAlt(t,8),this.state=912,this.tupleExpression();break;case 9:this.enterOuterAlt(t,9),this.state=913,this.typeName(0)}}catch(e){if(!(e instanceof ni.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 Ns(this._ctx,this.state);this.enterRule(e,140,ai.RULE_expressionList);try{for(this.enterOuterAlt(e,1),this.state=916,this.expression(0),this.state=921,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=917,this.match(ai.T__15),this.state=918,this.expression(0),this.state=923,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof ni.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 As(this._ctx,this.state);this.enterRule(e,142,ai.RULE_nameValueList);try{let r;for(this.enterOuterAlt(e,1),this.state=924,this.nameValue(),this.state=929,this._errHandler.sync(this),r=this.interpreter.adaptivePredict(this._input,96,this._ctx);2!==r&&r!==Xn.ATN.INVALID_ALT_NUMBER;)1===r&&(this.state=925,this.match(ai.T__15),this.state=926,this.nameValue()),this.state=931,this._errHandler.sync(this),r=this.interpreter.adaptivePredict(this._input,96,this._ctx);this.state=933,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__15&&(this.state=932,this.match(ai.T__15))}catch(t){if(!(t instanceof ni.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 Rs(this._ctx,this.state);this.enterRule(t,144,ai.RULE_nameValue);try{this.enterOuterAlt(t,1),this.state=935,this.identifier(),this.state=936,this.match(ai.T__61),this.state=937,this.expression(0)}catch(e){if(!(e instanceof ni.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 Cs(this._ctx,this.state);this.enterRule(e,146,ai.RULE_functionCallArguments);try{switch(this.state=947,this._errHandler.sync(this),this._input.LA(1)){case ai.T__14:this.enterOuterAlt(e,1),this.state=939,this.match(ai.T__14),this.state=941,this._errHandler.sync(this),t=this._input.LA(1),(t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=940,this.nameValueList()),this.state=943,this.match(ai.T__16);break;case ai.T__5:case ai.T__13:case ai.T__22:case ai.T__23:case ai.T__24:case ai.T__29:case ai.T__33:case ai.T__35:case ai.T__37:case ai.T__41:case ai.T__53:case ai.T__54:case ai.T__55:case ai.T__56:case ai.T__57:case ai.T__58:case ai.T__59:case ai.T__60:case ai.T__62:case ai.T__63:case ai.T__64:case ai.T__65:case ai.T__94:case ai.Int:case ai.Uint:case ai.Byte:case ai.Fixed:case ai.Ufixed:case ai.BooleanLiteral:case ai.DecimalNumber:case ai.HexNumber:case ai.HexLiteralFragment:case ai.LeaveKeyword:case ai.PayableKeyword:case ai.TypeKeyword:case ai.ConstructorKeyword:case ai.ReceiveKeyword:case ai.Identifier:case ai.StringLiteralFragment:this.enterOuterAlt(e,2),this.state=945,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<ai.T__5|1<<ai.T__13|1<<ai.T__22|1<<ai.T__24|1<<ai.T__29))||0==(t-34&-32)&&0!=(1<<t-34&(1<<ai.T__33-34|1<<ai.T__35-34|1<<ai.T__37-34|1<<ai.T__41-34|1<<ai.T__53-34|1<<ai.T__54-34|1<<ai.T__55-34|1<<ai.T__56-34|1<<ai.T__57-34|1<<ai.T__58-34|1<<ai.T__59-34|1<<ai.T__60-34|1<<ai.T__62-34|1<<ai.T__63-34|1<<ai.T__64-34))||0==(t-66&-32)&&0!=(1<<t-66&(1<<ai.T__65-66|1<<ai.T__94-66|1<<ai.Int-66))||0==(t-98&-32)&&0!=(1<<t-98&(1<<ai.Uint-98|1<<ai.Byte-98|1<<ai.Fixed-98|1<<ai.Ufixed-98|1<<ai.BooleanLiteral-98|1<<ai.DecimalNumber-98|1<<ai.HexNumber-98|1<<ai.HexLiteralFragment-98|1<<ai.LeaveKeyword-98|1<<ai.PayableKeyword-98|1<<ai.TypeKeyword-98|1<<ai.ConstructorKeyword-98|1<<ai.ReceiveKeyword-98|1<<ai.Identifier-98|1<<ai.StringLiteralFragment-98)))&&(this.state=944,this.expressionList());break;default:throw new Zn.NoViableAltException(this)}}catch(t){if(!(t instanceof ni.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 Os(this._ctx,this.state);this.enterRule(t,148,ai.RULE_functionCall);try{this.enterOuterAlt(t,1),this.state=949,this.expression(0),this.state=950,this.match(ai.T__22),this.state=951,this.functionCallArguments(),this.state=952,this.match(ai.T__23)}catch(e){if(!(e instanceof ni.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 Ls(this._ctx,this.state);this.enterRule(e,150,ai.RULE_assemblyBlock);try{for(this.enterOuterAlt(e,1),this.state=954,this.match(ai.T__14),this.state=958,this._errHandler.sync(this),t=this._input.LA(1);0==(-32&t)&&0!=(1<<t&(1<<ai.T__13|1<<ai.T__14|1<<ai.T__22|1<<ai.T__24|1<<ai.T__26|1<<ai.T__29))||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__42-36|1<<ai.T__50-36|1<<ai.T__53-36|1<<ai.T__57-36))||0==(t-88&-32)&&0!=(1<<t-88&(1<<ai.T__87-88|1<<ai.T__90-88|1<<ai.T__94-88|1<<ai.BooleanLiteral-88|1<<ai.DecimalNumber-88|1<<ai.HexNumber-88|1<<ai.HexLiteralFragment-88|1<<ai.BreakKeyword-88|1<<ai.ContinueKeyword-88|1<<ai.LeaveKeyword-88|1<<ai.PayableKeyword-88))||0==(t-125&-32)&&0!=(1<<t-125&(1<<ai.ConstructorKeyword-125|1<<ai.ReceiveKeyword-125|1<<ai.Identifier-125|1<<ai.StringLiteralFragment-125));)this.state=955,this.assemblyItem(),this.state=960,this._errHandler.sync(this),t=this._input.LA(1);this.state=961,this.match(ai.T__16)}catch(t){if(!(t instanceof ni.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 ws(this._ctx,this.state);this.enterRule(t,152,ai.RULE_assemblyItem);try{switch(this.state=980,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,102,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=963,this.identifier();break;case 2:this.enterOuterAlt(t,2),this.state=964,this.assemblyBlock();break;case 3:this.enterOuterAlt(t,3),this.state=965,this.assemblyExpression();break;case 4:this.enterOuterAlt(t,4),this.state=966,this.assemblyLocalDefinition();break;case 5:this.enterOuterAlt(t,5),this.state=967,this.assemblyAssignment();break;case 6:this.enterOuterAlt(t,6),this.state=968,this.assemblyStackAssignment();break;case 7:this.enterOuterAlt(t,7),this.state=969,this.labelDefinition();break;case 8:this.enterOuterAlt(t,8),this.state=970,this.assemblySwitch();break;case 9:this.enterOuterAlt(t,9),this.state=971,this.assemblyFunctionDefinition();break;case 10:this.enterOuterAlt(t,10),this.state=972,this.assemblyFor();break;case 11:this.enterOuterAlt(t,11),this.state=973,this.assemblyIf();break;case 12:this.enterOuterAlt(t,12),this.state=974,this.match(ai.BreakKeyword);break;case 13:this.enterOuterAlt(t,13),this.state=975,this.match(ai.ContinueKeyword);break;case 14:this.enterOuterAlt(t,14),this.state=976,this.match(ai.LeaveKeyword);break;case 15:this.enterOuterAlt(t,15),this.state=977,this.numberLiteral();break;case 16:this.enterOuterAlt(t,16),this.state=978,this.stringLiteral();break;case 17:this.enterOuterAlt(t,17),this.state=979,this.hexLiteral()}}catch(e){if(!(e instanceof ni.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 Is(this._ctx,this.state);this.enterRule(t,154,ai.RULE_assemblyExpression);try{switch(this.state=985,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,103,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=982,this.assemblyCall();break;case 2:this.enterOuterAlt(t,2),this.state=983,this.assemblyLiteral();break;case 3:this.enterOuterAlt(t,3),this.state=984,this.assemblyMember()}}catch(e){if(!(e instanceof ni.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 Ps(this._ctx,this.state);this.enterRule(t,156,ai.RULE_assemblyMember);try{this.enterOuterAlt(t,1),this.state=987,this.identifier(),this.state=988,this.match(ai.T__36),this.state=989,this.identifier()}catch(e){if(!(e instanceof ni.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 ks(this._ctx,this.state);this.enterRule(e,158,ai.RULE_assemblyCall);try{switch(this.enterOuterAlt(e,1),this.state=995,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,104,this._ctx)){case 1:this.state=991,this.match(ai.T__50);break;case 2:this.state=992,this.match(ai.T__35);break;case 3:this.state=993,this.match(ai.T__57);break;case 4:this.state=994,this.identifier()}if(this.state=1009,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,107,this._ctx)){for(this.state=997,this.match(ai.T__22),this.state=999,this._errHandler.sync(this),t=this._input.LA(1),(t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__50-36|1<<ai.T__53-36|1<<ai.T__57-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.BooleanLiteral-95|1<<ai.DecimalNumber-95|1<<ai.HexNumber-95|1<<ai.HexLiteralFragment-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||0==(t-127&-32)&&0!=(1<<t-127&(1<<ai.ReceiveKeyword-127|1<<ai.Identifier-127|1<<ai.StringLiteralFragment-127)))&&(this.state=998,this.assemblyExpression()),this.state=1005,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=1001,this.match(ai.T__15),this.state=1002,this.assemblyExpression(),this.state=1007,this._errHandler.sync(this),t=this._input.LA(1);this.state=1008,this.match(ai.T__23)}}catch(t){if(!(t instanceof ni.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 Ds(this._ctx,this.state);this.enterRule(e,160,ai.RULE_assemblyLocalDefinition);try{this.enterOuterAlt(e,1),this.state=1011,this.match(ai.T__87),this.state=1012,this.assemblyIdentifierOrList(),this.state=1015,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__88&&(this.state=1013,this.match(ai.T__88),this.state=1014,this.assemblyExpression())}catch(t){if(!(t instanceof ni.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 Fs(this._ctx,this.state);this.enterRule(t,162,ai.RULE_assemblyAssignment);try{this.enterOuterAlt(t,1),this.state=1017,this.assemblyIdentifierOrList(),this.state=1018,this.match(ai.T__88),this.state=1019,this.assemblyExpression()}catch(e){if(!(e instanceof ni.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 Ms(this._ctx,this.state);this.enterRule(t,164,ai.RULE_assemblyIdentifierOrList);try{switch(this.state=1028,this._errHandler.sync(this),this.interpreter.adaptivePredict(this._input,109,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=1021,this.identifier();break;case 2:this.enterOuterAlt(t,2),this.state=1022,this.assemblyMember();break;case 3:this.enterOuterAlt(t,3),this.state=1023,this.assemblyIdentifierList();break;case 4:this.enterOuterAlt(t,4),this.state=1024,this.match(ai.T__22),this.state=1025,this.assemblyIdentifierList(),this.state=1026,this.match(ai.T__23)}}catch(e){if(!(e instanceof ni.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 Us(this._ctx,this.state);this.enterRule(e,166,ai.RULE_assemblyIdentifierList);try{for(this.enterOuterAlt(e,1),this.state=1030,this.identifier(),this.state=1035,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=1031,this.match(ai.T__15),this.state=1032,this.identifier(),this.state=1037,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof ni.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 js(this._ctx,this.state);this.enterRule(t,168,ai.RULE_assemblyStackAssignment);try{this.enterOuterAlt(t,1),this.state=1038,this.assemblyExpression(),this.state=1039,this.match(ai.T__89),this.state=1040,this.identifier()}catch(e){if(!(e instanceof ni.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 Hs(this._ctx,this.state);this.enterRule(t,170,ai.RULE_labelDefinition);try{this.enterOuterAlt(t,1),this.state=1042,this.identifier(),this.state=1043,this.match(ai.T__61)}catch(e){if(!(e instanceof ni.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 Bs(this._ctx,this.state);this.enterRule(e,172,ai.RULE_assemblySwitch);try{for(this.enterOuterAlt(e,1),this.state=1045,this.match(ai.T__90),this.state=1046,this.assemblyExpression(),this.state=1050,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__91||t===ai.T__92;)this.state=1047,this.assemblyCase(),this.state=1052,this._errHandler.sync(this),t=this._input.LA(1)}catch(t){if(!(t instanceof ni.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 Ks(this._ctx,this.state);this.enterRule(t,174,ai.RULE_assemblyCase);try{switch(this.state=1059,this._errHandler.sync(this),this._input.LA(1)){case ai.T__91:this.enterOuterAlt(t,1),this.state=1053,this.match(ai.T__91),this.state=1054,this.assemblyLiteral(),this.state=1055,this.assemblyBlock();break;case ai.T__92:this.enterOuterAlt(t,2),this.state=1057,this.match(ai.T__92),this.state=1058,this.assemblyBlock();break;default:throw new Zn.NoViableAltException(this)}}catch(e){if(!(e instanceof ni.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 zs(this._ctx,this.state);this.enterRule(e,176,ai.RULE_assemblyFunctionDefinition);try{this.enterOuterAlt(e,1),this.state=1061,this.match(ai.T__29),this.state=1062,this.identifier(),this.state=1063,this.match(ai.T__22),this.state=1065,this._errHandler.sync(this),t=this._input.LA(1),(t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier)&&(this.state=1064,this.assemblyIdentifierList()),this.state=1067,this.match(ai.T__23),this.state=1069,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__93&&(this.state=1068,this.assemblyFunctionReturns()),this.state=1071,this.assemblyBlock()}catch(t){if(!(t instanceof ni.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 Vs(this._ctx,this.state);this.enterRule(t,178,ai.RULE_assemblyFunctionReturns);try{this.enterOuterAlt(t,1),this.state=1073,this.match(ai.T__93),this.state=1074,this.assemblyIdentifierList()}catch(e){if(!(e instanceof ni.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 Gs(this._ctx,this.state);this.enterRule(t,180,ai.RULE_assemblyFor);try{switch(this.enterOuterAlt(t,1),this.state=1076,this.match(ai.T__26),this.state=1079,this._errHandler.sync(this),this._input.LA(1)){case ai.T__14:this.state=1077,this.assemblyBlock();break;case ai.T__13:case ai.T__24:case ai.T__35:case ai.T__41:case ai.T__50:case ai.T__53:case ai.T__57:case ai.T__94:case ai.BooleanLiteral:case ai.DecimalNumber:case ai.HexNumber:case ai.HexLiteralFragment:case ai.LeaveKeyword:case ai.PayableKeyword:case ai.ConstructorKeyword:case ai.ReceiveKeyword:case ai.Identifier:case ai.StringLiteralFragment:this.state=1078,this.assemblyExpression();break;default:throw new Zn.NoViableAltException(this)}switch(this.state=1081,this.assemblyExpression(),this.state=1084,this._errHandler.sync(this),this._input.LA(1)){case ai.T__14:this.state=1082,this.assemblyBlock();break;case ai.T__13:case ai.T__24:case ai.T__35:case ai.T__41:case ai.T__50:case ai.T__53:case ai.T__57:case ai.T__94:case ai.BooleanLiteral:case ai.DecimalNumber:case ai.HexNumber:case ai.HexLiteralFragment:case ai.LeaveKeyword:case ai.PayableKeyword:case ai.ConstructorKeyword:case ai.ReceiveKeyword:case ai.Identifier:case ai.StringLiteralFragment:this.state=1083,this.assemblyExpression();break;default:throw new Zn.NoViableAltException(this)}this.state=1086,this.assemblyBlock()}catch(e){if(!(e instanceof ni.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 qs(this._ctx,this.state);this.enterRule(t,182,ai.RULE_assemblyIf);try{this.enterOuterAlt(t,1),this.state=1088,this.match(ai.T__42),this.state=1089,this.assemblyExpression(),this.state=1090,this.assemblyBlock()}catch(e){if(!(e instanceof ni.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 $s(this._ctx,this.state);this.enterRule(t,184,ai.RULE_assemblyLiteral);try{switch(this.state=1097,this._errHandler.sync(this),this._input.LA(1)){case ai.StringLiteralFragment:this.enterOuterAlt(t,1),this.state=1092,this.stringLiteral();break;case ai.DecimalNumber:this.enterOuterAlt(t,2),this.state=1093,this.match(ai.DecimalNumber);break;case ai.HexNumber:this.enterOuterAlt(t,3),this.state=1094,this.match(ai.HexNumber);break;case ai.HexLiteralFragment:this.enterOuterAlt(t,4),this.state=1095,this.hexLiteral();break;case ai.BooleanLiteral:this.enterOuterAlt(t,5),this.state=1096,this.match(ai.BooleanLiteral);break;default:throw new Zn.NoViableAltException(this)}}catch(e){if(!(e instanceof ni.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 Ys(this._ctx,this.state);this.enterRule(e,186,ai.RULE_tupleExpression);try{switch(this.state=1125,this._errHandler.sync(this),this._input.LA(1)){case ai.T__22:for(this.enterOuterAlt(e,1),this.state=1099,this.match(ai.T__22),this.state=1101,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<ai.T__5|1<<ai.T__13|1<<ai.T__22|1<<ai.T__24|1<<ai.T__29))||0==(t-34&-32)&&0!=(1<<t-34&(1<<ai.T__33-34|1<<ai.T__35-34|1<<ai.T__37-34|1<<ai.T__41-34|1<<ai.T__53-34|1<<ai.T__54-34|1<<ai.T__55-34|1<<ai.T__56-34|1<<ai.T__57-34|1<<ai.T__58-34|1<<ai.T__59-34|1<<ai.T__60-34|1<<ai.T__62-34|1<<ai.T__63-34|1<<ai.T__64-34))||0==(t-66&-32)&&0!=(1<<t-66&(1<<ai.T__65-66|1<<ai.T__94-66|1<<ai.Int-66))||0==(t-98&-32)&&0!=(1<<t-98&(1<<ai.Uint-98|1<<ai.Byte-98|1<<ai.Fixed-98|1<<ai.Ufixed-98|1<<ai.BooleanLiteral-98|1<<ai.DecimalNumber-98|1<<ai.HexNumber-98|1<<ai.HexLiteralFragment-98|1<<ai.LeaveKeyword-98|1<<ai.PayableKeyword-98|1<<ai.TypeKeyword-98|1<<ai.ConstructorKeyword-98|1<<ai.ReceiveKeyword-98|1<<ai.Identifier-98|1<<ai.StringLiteralFragment-98)))&&(this.state=1100,this.expression(0)),this.state=1109,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=1103,this.match(ai.T__15),this.state=1105,this._errHandler.sync(this),t=this._input.LA(1),(0==(-32&t)&&0!=(1<<t&(1<<ai.T__5|1<<ai.T__13|1<<ai.T__22|1<<ai.T__24|1<<ai.T__29))||0==(t-34&-32)&&0!=(1<<t-34&(1<<ai.T__33-34|1<<ai.T__35-34|1<<ai.T__37-34|1<<ai.T__41-34|1<<ai.T__53-34|1<<ai.T__54-34|1<<ai.T__55-34|1<<ai.T__56-34|1<<ai.T__57-34|1<<ai.T__58-34|1<<ai.T__59-34|1<<ai.T__60-34|1<<ai.T__62-34|1<<ai.T__63-34|1<<ai.T__64-34))||0==(t-66&-32)&&0!=(1<<t-66&(1<<ai.T__65-66|1<<ai.T__94-66|1<<ai.Int-66))||0==(t-98&-32)&&0!=(1<<t-98&(1<<ai.Uint-98|1<<ai.Byte-98|1<<ai.Fixed-98|1<<ai.Ufixed-98|1<<ai.BooleanLiteral-98|1<<ai.DecimalNumber-98|1<<ai.HexNumber-98|1<<ai.HexLiteralFragment-98|1<<ai.LeaveKeyword-98|1<<ai.PayableKeyword-98|1<<ai.TypeKeyword-98|1<<ai.ConstructorKeyword-98|1<<ai.ReceiveKeyword-98|1<<ai.Identifier-98|1<<ai.StringLiteralFragment-98)))&&(this.state=1104,this.expression(0)),this.state=1111,this._errHandler.sync(this),t=this._input.LA(1);this.state=1112,this.match(ai.T__23);break;case ai.T__33:if(this.enterOuterAlt(e,2),this.state=1113,this.match(ai.T__33),this.state=1122,this._errHandler.sync(this),t=this._input.LA(1),0==(-32&t)&&0!=(1<<t&(1<<ai.T__5|1<<ai.T__13|1<<ai.T__22|1<<ai.T__24|1<<ai.T__29))||0==(t-34&-32)&&0!=(1<<t-34&(1<<ai.T__33-34|1<<ai.T__35-34|1<<ai.T__37-34|1<<ai.T__41-34|1<<ai.T__53-34|1<<ai.T__54-34|1<<ai.T__55-34|1<<ai.T__56-34|1<<ai.T__57-34|1<<ai.T__58-34|1<<ai.T__59-34|1<<ai.T__60-34|1<<ai.T__62-34|1<<ai.T__63-34|1<<ai.T__64-34))||0==(t-66&-32)&&0!=(1<<t-66&(1<<ai.T__65-66|1<<ai.T__94-66|1<<ai.Int-66))||0==(t-98&-32)&&0!=(1<<t-98&(1<<ai.Uint-98|1<<ai.Byte-98|1<<ai.Fixed-98|1<<ai.Ufixed-98|1<<ai.BooleanLiteral-98|1<<ai.DecimalNumber-98|1<<ai.HexNumber-98|1<<ai.HexLiteralFragment-98|1<<ai.LeaveKeyword-98|1<<ai.PayableKeyword-98|1<<ai.TypeKeyword-98|1<<ai.ConstructorKeyword-98|1<<ai.ReceiveKeyword-98|1<<ai.Identifier-98|1<<ai.StringLiteralFragment-98)))for(this.state=1114,this.expression(0),this.state=1119,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=1115,this.match(ai.T__15),this.state=1116,this.expression(0),this.state=1121,this._errHandler.sync(this),t=this._input.LA(1);this.state=1124,this.match(ai.T__34);break;default:throw new Zn.NoViableAltException(this)}}catch(t){if(!(t instanceof ni.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 Ws(this._ctx,this.state);this.enterRule(e,188,ai.RULE_numberLiteral);try{this.enterOuterAlt(e,1),this.state=1127,t=this._input.LA(1),t!==ai.DecimalNumber&&t!==ai.HexNumber?this._errHandler.recoverInline(this):(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()),this.state=1129,this._errHandler.sync(this),1===this.interpreter.adaptivePredict(this._input,124,this._ctx)&&(this.state=1128,this.match(ai.NumberUnit))}catch(t){if(!(t instanceof ni.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 Xs(this._ctx,this.state);this.enterRule(e,190,ai.RULE_identifier);try{this.enterOuterAlt(e,1),this.state=1131,t=this._input.LA(1),t===ai.T__13||t===ai.T__24||0==(t-36&-32)&&0!=(1<<t-36&(1<<ai.T__35-36|1<<ai.T__41-36|1<<ai.T__53-36))||0==(t-95&-32)&&0!=(1<<t-95&(1<<ai.T__94-95|1<<ai.LeaveKeyword-95|1<<ai.PayableKeyword-95|1<<ai.ConstructorKeyword-95))||t===ai.ReceiveKeyword||t===ai.Identifier?(this._input.LA(1)===ii.Token.EOF&&(this.matchedEOF=!0),this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(t){if(!(t instanceof ni.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 Js(this._ctx,this.state);this.enterRule(t,192,ai.RULE_hexLiteral);try{let e;this.enterOuterAlt(t,1),this.state=1134,this._errHandler.sync(this),e=1;do{if(1!==e)throw new Zn.NoViableAltException(this);this.state=1133,this.match(ai.HexLiteralFragment),this.state=1136,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,125,this._ctx)}while(2!==e&&e!==Xn.ATN.INVALID_ALT_NUMBER)}catch(e){if(!(e instanceof ni.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 Qs(this._ctx,this.state);this.enterRule(e,194,ai.RULE_overrideSpecifier);try{if(this.enterOuterAlt(e,1),this.state=1138,this.match(ai.T__95),this.state=1150,this._errHandler.sync(this),t=this._input.LA(1),t===ai.T__22){for(this.state=1139,this.match(ai.T__22),this.state=1140,this.userDefinedTypeName(),this.state=1145,this._errHandler.sync(this),t=this._input.LA(1);t===ai.T__15;)this.state=1141,this.match(ai.T__15),this.state=1142,this.userDefinedTypeName(),this.state=1147,this._errHandler.sync(this),t=this._input.LA(1);this.state=1148,this.match(ai.T__23)}}catch(t){if(!(t instanceof ni.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 Zs(this._ctx,this.state);this.enterRule(t,196,ai.RULE_stringLiteral);try{let e;this.enterOuterAlt(t,1),this.state=1153,this._errHandler.sync(this),e=1;do{if(1!==e)throw new Zn.NoViableAltException(this);this.state=1152,this.match(ai.StringLiteralFragment),this.state=1155,this._errHandler.sync(this),e=this.interpreter.adaptivePredict(this._input,128,this._ctx)}while(2!==e&&e!==Xn.ATN.INVALID_ALT_NUMBER)}catch(e){if(!(e instanceof ni.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 36:return this.typeName_sempred(t,r);case 68: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 ai.__ATN||(ai.__ATN=(new Jn.ATNDeserializer).deserialize(oi.toCharArray(ai._serializedATN))),ai.__ATN}},li=ai;li.T__0=1,li.T__1=2,li.T__2=3,li.T__3=4,li.T__4=5,li.T__5=6,li.T__6=7,li.T__7=8,li.T__8=9,li.T__9=10,li.T__10=11,li.T__11=12,li.T__12=13,li.T__13=14,li.T__14=15,li.T__15=16,li.T__16=17,li.T__17=18,li.T__18=19,li.T__19=20,li.T__20=21,li.T__21=22,li.T__22=23,li.T__23=24,li.T__24=25,li.T__25=26,li.T__26=27,li.T__27=28,li.T__28=29,li.T__29=30,li.T__30=31,li.T__31=32,li.T__32=33,li.T__33=34,li.T__34=35,li.T__35=36,li.T__36=37,li.T__37=38,li.T__38=39,li.T__39=40,li.T__40=41,li.T__41=42,li.T__42=43,li.T__43=44,li.T__44=45,li.T__45=46,li.T__46=47,li.T__47=48,li.T__48=49,li.T__49=50,li.T__50=51,li.T__51=52,li.T__52=53,li.T__53=54,li.T__54=55,li.T__55=56,li.T__56=57,li.T__57=58,li.T__58=59,li.T__59=60,li.T__60=61,li.T__61=62,li.T__62=63,li.T__63=64,li.T__64=65,li.T__65=66,li.T__66=67,li.T__67=68,li.T__68=69,li.T__69=70,li.T__70=71,li.T__71=72,li.T__72=73,li.T__73=74,li.T__74=75,li.T__75=76,li.T__76=77,li.T__77=78,li.T__78=79,li.T__79=80,li.T__80=81,li.T__81=82,li.T__82=83,li.T__83=84,li.T__84=85,li.T__85=86,li.T__86=87,li.T__87=88,li.T__88=89,li.T__89=90,li.T__90=91,li.T__91=92,li.T__92=93,li.T__93=94,li.T__94=95,li.T__95=96,li.Int=97,li.Uint=98,li.Byte=99,li.Fixed=100,li.Ufixed=101,li.BooleanLiteral=102,li.DecimalNumber=103,li.HexNumber=104,li.NumberUnit=105,li.HexLiteralFragment=106,li.ReservedKeyword=107,li.AnonymousKeyword=108,li.BreakKeyword=109,li.ConstantKeyword=110,li.ImmutableKeyword=111,li.ContinueKeyword=112,li.LeaveKeyword=113,li.ExternalKeyword=114,li.IndexedKeyword=115,li.InternalKeyword=116,li.PayableKeyword=117,li.PrivateKeyword=118,li.PublicKeyword=119,li.VirtualKeyword=120,li.PureKeyword=121,li.TypeKeyword=122,li.ViewKeyword=123,li.GlobalKeyword=124,li.ConstructorKeyword=125,li.FallbackKeyword=126,li.ReceiveKeyword=127,li.Identifier=128,li.StringLiteralFragment=129,li.VersionLiteral=130,li.WS=131,li.COMMENT=132,li.LINE_COMMENT=133,li.RULE_sourceUnit=0,li.RULE_pragmaDirective=1,li.RULE_pragmaName=2,li.RULE_pragmaValue=3,li.RULE_version=4,li.RULE_versionOperator=5,li.RULE_versionConstraint=6,li.RULE_importDeclaration=7,li.RULE_importDirective=8,li.RULE_importPath=9,li.RULE_contractDefinition=10,li.RULE_inheritanceSpecifier=11,li.RULE_contractPart=12,li.RULE_stateVariableDeclaration=13,li.RULE_fileLevelConstant=14,li.RULE_customErrorDefinition=15,li.RULE_typeDefinition=16,li.RULE_usingForDeclaration=17,li.RULE_usingForObject=18,li.RULE_structDefinition=19,li.RULE_modifierDefinition=20,li.RULE_modifierInvocation=21,li.RULE_functionDefinition=22,li.RULE_functionDescriptor=23,li.RULE_returnParameters=24,li.RULE_modifierList=25,li.RULE_eventDefinition=26,li.RULE_enumValue=27,li.RULE_enumDefinition=28,li.RULE_parameterList=29,li.RULE_parameter=30,li.RULE_eventParameterList=31,li.RULE_eventParameter=32,li.RULE_functionTypeParameterList=33,li.RULE_functionTypeParameter=34,li.RULE_variableDeclaration=35,li.RULE_typeName=36,li.RULE_userDefinedTypeName=37,li.RULE_mappingKey=38,li.RULE_mapping=39,li.RULE_mappingKeyName=40,li.RULE_mappingValueName=41,li.RULE_functionTypeName=42,li.RULE_storageLocation=43,li.RULE_stateMutability=44,li.RULE_block=45,li.RULE_statement=46,li.RULE_expressionStatement=47,li.RULE_ifStatement=48,li.RULE_tryStatement=49,li.RULE_catchClause=50,li.RULE_whileStatement=51,li.RULE_simpleStatement=52,li.RULE_uncheckedStatement=53,li.RULE_forStatement=54,li.RULE_inlineAssemblyStatement=55,li.RULE_inlineAssemblyStatementFlag=56,li.RULE_doWhileStatement=57,li.RULE_continueStatement=58,li.RULE_breakStatement=59,li.RULE_returnStatement=60,li.RULE_throwStatement=61,li.RULE_emitStatement=62,li.RULE_revertStatement=63,li.RULE_variableDeclarationStatement=64,li.RULE_variableDeclarationList=65,li.RULE_identifierList=66,li.RULE_elementaryTypeName=67,li.RULE_expression=68,li.RULE_primaryExpression=69,li.RULE_expressionList=70,li.RULE_nameValueList=71,li.RULE_nameValue=72,li.RULE_functionCallArguments=73,li.RULE_functionCall=74,li.RULE_assemblyBlock=75,li.RULE_assemblyItem=76,li.RULE_assemblyExpression=77,li.RULE_assemblyMember=78,li.RULE_assemblyCall=79,li.RULE_assemblyLocalDefinition=80,li.RULE_assemblyAssignment=81,li.RULE_assemblyIdentifierOrList=82,li.RULE_assemblyIdentifierList=83,li.RULE_assemblyStackAssignment=84,li.RULE_labelDefinition=85,li.RULE_assemblySwitch=86,li.RULE_assemblyCase=87,li.RULE_assemblyFunctionDefinition=88,li.RULE_assemblyFunctionReturns=89,li.RULE_assemblyFor=90,li.RULE_assemblyIf=91,li.RULE_assemblyLiteral=92,li.RULE_tupleExpression=93,li.RULE_numberLiteral=94,li.RULE_identifier=95,li.RULE_hexLiteral=96,li.RULE_overrideSpecifier=97,li.RULE_stringLiteral=98,li.ruleNames=["sourceUnit","pragmaDirective","pragmaName","pragmaValue","version","versionOperator","versionConstraint","importDeclaration","importDirective","importPath","contractDefinition","inheritanceSpecifier","contractPart","stateVariableDeclaration","fileLevelConstant","customErrorDefinition","typeDefinition","usingForDeclaration","usingForObject","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"],li._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'"],li._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"],li.VOCABULARY=new si.VocabularyImpl(ai._LITERAL_NAMES,ai._SYMBOLIC_NAMES,[]),li._serializedATNSegments=3,li._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\tdÓ\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\fIJ\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\fƟ\vơ\nƨ\nƬ\n\fƯ\vƳ\nƸ\nƻ\nǁ\nDž\nlj\nǎ\nǛ\n\fǞ\vǤ\nǮ\nDz\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,--..///ɽ\n/\f//ʀ\v///0000000000000000ʓ\n011122222222ʟ\n23333ʤ\n3333ʨ\n3\r33ʩ444ʮ\n444ʱ\n444555555666ʽ\n677788888ˆ\n8888ˊ\n888ˍ\n8888999˔\n999999˚\n999::;;;;;;;;<<<===>>>˰\n>>>???@@@@AAAABBBBBBBB̆\nBBBB̊\nBBBCC̏\nCCCC̓\nCC̕\nC\fCC̘\vCDDD̜\nDDD̟\nD\fDD̢\vDDD̥\nDDDEEFFFFFFFFFFFFFFFFFFF̽\nFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFͳ\nFFFFͷ\nFFFFFFFFFFFFFFFF·\nF\fFFΊ\vFGGGGGGGGGGΕ\nGHHHHΚ\nH\fHHΝ\vHIIII΢\nI\fIIΥ\vIIIΨ\nIJJJJKKKΰ\nKKKKδ\nKKζ\nKLLLLLMMMο\nM\fMMς\vMMMNNNNNNNNNNNNNNNNNNϗ\nNOOOOϜ\nOPPPPQQQQQϦ\nQQQQϪ\nQQQQϮ\nQ\fQQϱ\vQQQϴ\nQRRRRRϺ\nRSSSSTTTTTTTTЇ\nTUUUUЌ\nU\fUUЏ\vUVVVVWWWXXXXЛ\nX\fXXО\vXYYYYYYYЦ\nYZZZZZЬ\nZZZZа\nZZZ[[[\\\\\\\\к\n\\\\\\\\\\п\n\\\\\\]]]]^^^^^^ь\n^___ѐ\n____є\n__і\n_\f__љ\v_______Ѡ\n_\f__ѣ\v__ѥ\n___Ѩ\n_```Ѭ\n`aabbѱ\nb\rbbѲccccccѺ\nc\fccѽ\vccccҁ\ncdd҄\nd\rdd҅dJŠe\b\n\f \"$&(*,.02468:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~€‚„†ˆŠŒŽ’”–˜šœž ¢¤¦¨ª¬®°²´¶¸º¼¾ÀÂÄÆ\r*,ppww{{}}&&9<cg=>ABFGHI\t\fLM\r\rPYij\f&&,,88aassww‚ԉÔÙÞ\bã\nå\fïùûĤĦĩŁŒŔŧ Ů\"ų$Ź&Ƒ(Ɠ*Ƥ,ƴ.Ƽ0Ǎ2Ǐ4ǜ6ǟ8ǧ:ǩ<Ǹ>ȅ@Ȍ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ËÓ:ÌÓ(ÍÓ.ÎÓÏÓ ÐÓ\"ÑÓ$ÒÈÒÉÒÊÒËÒÌÒÍÒÎÒÏÒÐÒÑÓÖÔÒÔÕÕ×ÖÔרØÙÚÚÛÛÜ\bÜÝÝÞßÀaßàäáä\nâäŠFãàãáãâä\tåì\bæèçæçèèééë\bêçëîìêìíí\vîìïð\tð\rñó\fòñòóóôôú„õ÷\föõö÷÷øøúiùòùöúûþÀaüýýÿÀaþüþÿÿĀāāĄ\vĂăăąÀaĄĂĄąąĆĆććĥĈċĉČĊČÀaċĉċĊČďčĎĎĐÀaďčďĐĐđđĒĒē\vēĔĔĥĕĖĖėėĜ\tĘęęě\tĚĘěĞĜĚĜĝĝğĞĜğĠĠġġĢ\vĢģģĥĤĀĤĈĤĕĥĦħƒħĨĪĩĨĩĪĪīīĬ\tĬĶÀaĭĮĮij\rįİİIJ\rıįIJĵijıijĴĴķĵijĶĭĶķķĸĸļĹĻĺĹĻľļĺļĽĽĿľļĿŀŀŁŇL'łńŃŅŽHńŃńŅŅņņňŇłŇňňʼnœŊœ$ŋœ(Ōœ*ōœ.Ŏœ6ŏœ:Őœ őœ\"ŒʼnŒŊŒŋŒŌŒōŒŎŒŏŒŐŒőœŔŝJ&ŕŜyŖŜvŗŜxŘŜpřŜqŚŜÄcśŕśŖśŗśŘśřśŚŜşŝśŝŞŞŠşŝŠţÀašŢ\rŢŤŠFţšţŤŤťťŦŦŧŨJ&ŨũpũŪÀaŪū\rūŬŠFŬŭŭŮůůŰÀaŰű<űŲŲ!ųŴ|ŴŵÀaŵŶŶŷˆEŷŸŸ#ŹźźŻ&ŻžżſŽſJ&žżžŽſƁƀƂ~ƁƀƁƂƂƃƃƄƄ%ƅƒL'ƆƇƇƌL'ƈƉƉƋL'ƊƈƋƎƌƊƌƍƍƏƎƌƏƐƐƒƑƅƑƆƒ'ƓƔƔƕÀaƕƠƖƗH%ƗƝƘƙH%ƙƚƚƜƛƘƜƟƝƛƝƞƞơƟƝƠƖƠơơƢƢƣƣ)",li._serializedATNSegment1="ƤƥƥƧÀaƦƨ<ƧƦƧƨƨƭƩƬzƪƬÄcƫƩƫƪƬƯƭƫƭƮƮƲƯƭưƳƱƳ\\/ƲưƲƱƳ+ƴƺÀaƵƷƶƸŽHƷƶƷƸƸƹƹƻƺƵƺƻƻ-Ƽƽ0ƽƾ<ƾǀ4ƿǁ2ǀƿǀǁǁDŽǂDžǃDž\\/DŽǂDŽǃDž/džLj LJljÀaLjLJLjljljǎNJǎNjǎ€njǎǍdžǍNJǍNjǍnjǎ1Ǐǐ!ǐǑ<Ǒ3ǒǛtǓǛyǔǛvǕǛxǖǛzǗǛZ.ǘǛ,ǙǛÄcǚǒǚǓǚǔǚǕǚǖǚǗǚǘǚǙǛǞǜǚǜǝǝ5ǞǜǟǠ\"ǠǡÀaǡǣ@!ǢǤnǣǢǣǤǤǥǥǦǦ7ǧǨÀaǨ9ǩǪ#ǪǫÀaǫǭǬǮ8ǭǬǭǮǮdzǯǰǰDz8DZǯDzǵdzDZdzǴǴǶǵdzǶǷǷ;ǸȁǹǾ> Ǻǻǻǽ> ǼǺǽȀǾǼǾǿǿȂȀǾȁǹȁȂȂȃȃȄȄ=ȅȇJ&ȆȈX-ȇȆȇȈȈȊȉȋÀaȊȉȊȋȋ?ȌȕȍȒB\"ȎȏȏȑB\"ȐȎȑȔȒȐȒȓȓȖȔȒȕȍȕȖȖȗȗȘȘAșțJ&ȚȜuțȚțȜȜȞȝȟÀaȞȝȞȟȟCȠȩȡȦF$ȢȣȣȥF$ȤȢȥȨȦȤȦȧȧȪȨȦȩȡȩȪȪȫȫȬȬEȭȯJ&ȮȰX-ȯȮȯȰȰGȱȳJ&ȲȴX-ȳȲȳȴȴȵȵȶÀaȶIȷȸ\b&ȸȿˆEȹȿL'ȺȿP)ȻȿV,ȼȽ&ȽȿwȾȷȾȹȾȺȾȻȾȼȿɈɀɁ\fɁɃ$ɂɄŠFɃɂɃɄɄɅɅɇ%ɆɀɇɊɈɆɈɉɉKɊɈɋɐÀaɌɍ'ɍɏÀaɎɌɏɒɐɎɐɑɑMɒɐɓɖˆEɔɖL'ɕɓɕɔɖOɗɘ(ɘəəɛN(ɚɜR*ɛɚɛɜɜɝɝɞ)ɞɠJ&ɟɡT+ɠɟɠɡɡɢɢɣɣQɤɥÀaɥSɦɧÀaɧUɨɩ ɩɯD#ɪɮvɫɮtɬɮZ.ɭɪɭɫɭɬɮɱɯɭɯɰɰɴɱɯɲɳ!ɳɵD#ɴɲɴɵɵWɶɷ\tɷYɸɹ\tɹ[ɺɾɻɽ^0ɼɻɽʀɾɼɾɿɿʁʀɾʁʂʂ]ʃʓb2ʄʓd3ʅʓh5ʆʓn8ʇʓ\\/ʈʓp9ʉʓt;ʊʓv<ʋʓx=ʌʓz>ʍʓ|?ʎʓ~@ʏʓj6ʐʓl7ʑʓ€Aʒʃʒʄʒʅʒʆʒʇʒʈʒʉʒʊʒʋʒʌʒʍʒʎʒʏʒʐʒʑʓ_ʔʕŠFʕʖʖaʗʘ-ʘʙʙʚŠFʚʛʛʞ^0ʜʝ.ʝʟ^0ʞʜʞʟʟcʠʡ/ʡʣŠFʢʤ2ʣʢʣʤʤʥʥʧ\\/ʦʨf4ʧʦʨʩʩʧʩʪʪeʫʰ0ʬʮÀaʭʬʭʮʮʯʯʱ<ʰʭʰʱʱʲʲʳ\\/ʳgʴʵ1ʵʶʶʷŠFʷʸʸʹ^0ʹiʺʽ‚Bʻʽ`1ʼʺʼʻʽkʾʿ2ʿˀ\\/ˀmˁ˂˂˅˃ˆj6˄ˆ˅˃˅˄ˆˉˇˊ`1ˈˊˉˇˉˈˊˌˋˍŠFˌˋˌˍˍˎˎˏˏː^0ːoˑ˓3˒˔ƒ˓˒˓˔˔˙˕˖˖˗r:˗˘˘˚˙˕˙˚˚˛˛˜˜M˜q˝˞Æd˞s˟ˠ4ˠˡ^0ˡˢ1ˢˣˣˤŠFˤ˥˥˦˦u˧˨r˨˩˩w˪˫o˫ˬˬy˭˯5ˮ˰ŠF˯ˮ˯˰˰˱˱˲˲{˳˴6˴˵˵}˶˷7˷˸–L˸˹˹˺˻8˻˼–L˼˽˽˾˿9˿̆†D̀̆H%́̂̂̃„C̃̄̄̆̅˾̅̀̅́̆̉̇̈\r̈̊ŠF̉̇̉̊̊̋̋̌̌ƒ̍̏H%̖̎̍̎̏̏̐̒̑̓H%̘̖̖̗̗̒̑̒̓̓̔̐̔̕̕…̘̖̙̠̜̚Àa̢̡̡̢̛̛̛̜̜̝̝̟̞̟̠̞̠̤̠̣̥̚Àa̧̧̤̣̤̥̥̦̦‡̨̩\t̩‰̪̫\bF̫̬?̬̽J&̭̮̮̯ŠF̯̰̰̱̲̽\t̲̽ŠF̴̳\t\b̴̽ŠF̵̶C̶̽ŠF̷̸D̸̽ŠF̹̺\b̺̽ŠF̻̽ŒG̵̷̼̪̼̭̼̱̼̳̼̼̼̹̼̻̽Έ̾̿\f̿̀È·ŠF́͂\f͂̓\t\t̓·ŠF̈́ͅ\f͆ͅ\t\b͆·ŠF͇͈\f\r͈͉\t\n͉·ŠF͊͋\f\f͋͌J͌·ŠF\r͍͎\f\v͎͏͏·ŠF\f͐͑\f\n͑͒K͒·ŠF\v͓͔\f\t͔͕\t\v͕·ŠF\n͖͗\f\b͗͘\t\f͘·ŠF\t͙͚\f͚͛N͛·ŠF\b͜͝\f͝͞͞·ŠF͟͠\f͠͡O͢͡ŠFͣ͢@ͣͤŠFͤ·ͥͦ\fͦͧ\t\rͧ·ŠFͨͩ\fͩ·\tͪͫ\fͫͬ$ͬͭŠFͭͮ%ͮ·ͯͰ\fͰͲ$ͱͳŠFͲͱͲͳͳʹʹͶ@͵ͷŠFͶ͵Ͷͷͷ͸͸·%͹ͺ\fͺͻ'ͻ·Àaͼͽ\fͽ;;ͿIͿ΀΀·΁΂\f΂΃΃΄”K΄΅΅·Ά̾Ά́Ά̈́Ά͇Ά͊Ά͍Ά͐Ά͓Ά͖Ά͙Ά͜Ά͟ΆͥΆͨΆͪΆͯΆ͹ΆͼΆ΁·ΊΈΆΈΉΉ‹ΊΈ΋ΕhΌΕ¾`΍ΕÂbΎΕÆdΏΕÀaΐΕ|ΑΕwΒΕ¼_ΓΕJ&Δ΋ΔΌΔ΍ΔΎΔΏΔΐΔΑΔΒΔΓōΖΛŠFΗΘΘΚŠFΙΗΚΝΛΙΛΜ̏ΝΛΞΣ’JΟΠΠ΢’JΡΟ΢ΥΣΡΣΤΤΧΥΣΦΨΧΦΧΨΨ‘ΩΪÀaΪΫ@ΫάŠFά“έίήΰIίήίΰΰααζβδŽHγβγδδζεέεγζ•ηθŠFθιικ”Kκλλ—μπνοšNξνοςπξπρρσςπσττ™υϗÀaφϗ˜MχϗœOψϗ¢Rωϗ¤SϊϗªVϋϗ¬Wόϗ®Xύϗ²Zώϗ¶\\Ϗϗ¸]ϐϗoϑϗrϒϗsϓϗ¾`ϔϗÆdϕϗÂbϖυϖφϖχϖψϖωϖϊϖϋϖόϖύϖώϖϏϖϐϖϑϖϒϖϓϖϔϖϕϗ›ϘϜ QϙϜº^ϚϜžPϛϘϛϙϛϚϜϝϞÀaϞϟ'ϟϠÀaϠŸϡϦ5ϢϦ&ϣϦ<ϤϦÀaϥϡϥϢϥϣϥϤϦϳϧϩϨϪœOϩϨϩϪϪϯϫϬϬϮœOϭϫϮϱϯϭϯϰϰϲϱϯϲϴϳϧϳϴϴ¡ϵ϶Z϶Ϲ¦TϷϸ[ϸϺœOϹϷϹϺϺ£ϻϼ¦TϼϽ[ϽϾœOϾ¥ϿЇÀaЀЇžPЁЇ¨UЂЃЃЄ¨UЄЅЅЇІϿІЀІЁІЂЇ§ЈЍÀaЉЊЊЌÀaЋЉЌЏЍЋЍЎЎ©ЏЍАБœOБВ\\ВГÀaГ«ДЕÀaЕЖ@Ж­ЗИ]ИМœOЙЛ°YКЙЛОМКМНН¯ОМПР^РСº^СТ˜MТЦУФ_ФЦ˜MХПХУЦ±ЧШ ШЩÀaЩЫЪЬ¨UЫЪЫЬЬЭЭЯЮа´[ЯЮЯааббв˜Mв³гд`де¨Uеµжйзк˜MикœOйзйикллоœOмп˜MнпœOомонпррс˜Mс·ту",li._serializedATNSegment2="-уфœOфх˜Mх¹цьÆdчьiшьjщьÂbъьhыцычышыщыъь»эяюѐŠFяюяѐѐїёѓђєŠFѓђѓєєіѕёіљїѕїјјњљїњѨћѤ$ќѡŠFѝўўѠŠFџѝѠѣѡџѡѢѢѥѣѡѤќѤѥѥѦѦѨ%ѧэѧћѨ½ѩѫ\tѪѬkѫѪѫѬѬ¿ѭѮ\tѮÁѯѱlѰѯѱѲѲѰѲѳѳÃѴҀbѵѶѶѻL'ѷѸѸѺL'ѹѷѺѽѻѹѻѼѼѾѽѻѾѿѿҁҀѵҀҁҁÅ҂҄ƒ҃҂҄҅҅҃҅҆҆ǃÒÔãçìòöùþĄċďĜĤĩijĶļńŇŒśŝţžƁƌƑƝƠƧƫƭƲƷƺǀDŽLjǍǚǜǣǭdzǾȁȇȊȒȕțȞȦȩȯȳȾɃɈɐɕɛɠɭɯɴɾʒʞʣʩʭʰʼ˅ˉˌ˓˙˯̛̖̠̤̼̅̉̎̒ͲͶΆΈΔΛΣΧίγεπϖϛϥϩϯϳϹІЍМХЫЯйоыяѓїѡѤѧѫѲѻҀ҅",li._serializedATN=oi.join([ai._serializedATNSegment0,ai._serializedATNSegment1,ai._serializedATNSegment2],"");var ci=class extends ei.ParserRuleContext{EOF(){return this.getToken(li.EOF,0)}pragmaDirective(t){return void 0===t?this.getRuleContexts(ui):this.getRuleContext(t,ui)}importDirective(t){return void 0===t?this.getRuleContexts(gi):this.getRuleContext(t,gi)}contractDefinition(t){return void 0===t?this.getRuleContexts(xi):this.getRuleContext(t,xi)}enumDefinition(t){return void 0===t?this.getRuleContexts(Mi):this.getRuleContext(t,Mi)}structDefinition(t){return void 0===t?this.getRuleContexts(Ci):this.getRuleContext(t,Ci)}functionDefinition(t){return void 0===t?this.getRuleContexts(wi):this.getRuleContext(t,wi)}fileLevelConstant(t){return void 0===t?this.getRuleContexts(bi):this.getRuleContext(t,bi)}customErrorDefinition(t){return void 0===t?this.getRuleContexts(Ei):this.getRuleContext(t,Ei)}typeDefinition(t){return void 0===t?this.getRuleContexts(Ni):this.getRuleContext(t,Ni)}usingForDeclaration(t){return void 0===t?this.getRuleContexts(Ai):this.getRuleContext(t,Ai)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},ui=class extends ei.ParserRuleContext{pragmaName(){return this.getRuleContext(0,hi)}pragmaValue(){return this.getRuleContext(0,pi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},hi=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},pi=class extends ei.ParserRuleContext{version(){return this.tryGetRuleContext(0,di)}expression(){return this.tryGetRuleContext(0,bs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},di=class extends ei.ParserRuleContext{versionConstraint(t){return void 0===t?this.getRuleContexts(_i):this.getRuleContext(t,_i)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},fi=class extends ei.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},_i=class extends ei.ParserRuleContext{VersionLiteral(){return this.tryGetToken(li.VersionLiteral,0)}versionOperator(){return this.tryGetRuleContext(0,fi)}DecimalNumber(){return this.tryGetToken(li.DecimalNumber,0)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},yi=class extends ei.ParserRuleContext{identifier(t){return void 0===t?this.getRuleContexts(Xs):this.getRuleContext(t,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},gi=class extends ei.ParserRuleContext{importPath(){return this.getRuleContext(0,mi)}identifier(t){return void 0===t?this.getRuleContexts(Xs):this.getRuleContext(t,Xs)}importDeclaration(t){return void 0===t?this.getRuleContexts(yi):this.getRuleContext(t,yi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},mi=class extends ei.ParserRuleContext{StringLiteralFragment(){return this.getToken(li.StringLiteralFragment,0)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},xi=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}inheritanceSpecifier(t){return void 0===t?this.getRuleContexts(Ti):this.getRuleContext(t,Ti)}contractPart(t){return void 0===t?this.getRuleContexts(vi):this.getRuleContext(t,vi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ti=class extends ei.ParserRuleContext{userDefinedTypeName(){return this.getRuleContext(0,qi)}expressionList(){return this.tryGetRuleContext(0,Ns)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},vi=class extends ei.ParserRuleContext{stateVariableDeclaration(){return this.tryGetRuleContext(0,Si)}usingForDeclaration(){return this.tryGetRuleContext(0,Ai)}structDefinition(){return this.tryGetRuleContext(0,Ci)}modifierDefinition(){return this.tryGetRuleContext(0,Oi)}functionDefinition(){return this.tryGetRuleContext(0,wi)}eventDefinition(){return this.tryGetRuleContext(0,Di)}enumDefinition(){return this.tryGetRuleContext(0,Mi)}customErrorDefinition(){return this.tryGetRuleContext(0,Ei)}typeDefinition(){return this.tryGetRuleContext(0,Ni)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Si=class extends ei.ParserRuleContext{typeName(){return this.getRuleContext(0,Gi)}identifier(){return this.getRuleContext(0,Xs)}PublicKeyword(t){return void 0===t?this.getTokens(li.PublicKeyword):this.getToken(li.PublicKeyword,t)}InternalKeyword(t){return void 0===t?this.getTokens(li.InternalKeyword):this.getToken(li.InternalKeyword,t)}PrivateKeyword(t){return void 0===t?this.getTokens(li.PrivateKeyword):this.getToken(li.PrivateKeyword,t)}ConstantKeyword(t){return void 0===t?this.getTokens(li.ConstantKeyword):this.getToken(li.ConstantKeyword,t)}ImmutableKeyword(t){return void 0===t?this.getTokens(li.ImmutableKeyword):this.getToken(li.ImmutableKeyword,t)}overrideSpecifier(t){return void 0===t?this.getRuleContexts(Qs):this.getRuleContext(t,Qs)}expression(){return this.tryGetRuleContext(0,bs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},bi=class extends ei.ParserRuleContext{typeName(){return this.getRuleContext(0,Gi)}ConstantKeyword(){return this.getToken(li.ConstantKeyword,0)}identifier(){return this.getRuleContext(0,Xs)}expression(){return this.getRuleContext(0,bs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ei=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}parameterList(){return this.getRuleContext(0,Ui)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ni=class extends ei.ParserRuleContext{TypeKeyword(){return this.getToken(li.TypeKeyword,0)}identifier(){return this.getRuleContext(0,Xs)}elementaryTypeName(){return this.getRuleContext(0,Ss)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ai=class extends ei.ParserRuleContext{usingForObject(){return this.getRuleContext(0,Ri)}typeName(){return this.tryGetRuleContext(0,Gi)}GlobalKeyword(){return this.tryGetToken(li.GlobalKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ri=class extends ei.ParserRuleContext{userDefinedTypeName(t){return void 0===t?this.getRuleContexts(qi):this.getRuleContext(t,qi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ci=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}variableDeclaration(t){return void 0===t?this.getRuleContexts(Vi):this.getRuleContext(t,Vi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Oi=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}block(){return this.tryGetRuleContext(0,ts)}parameterList(){return this.tryGetRuleContext(0,Ui)}VirtualKeyword(t){return void 0===t?this.getTokens(li.VirtualKeyword):this.getToken(li.VirtualKeyword,t)}overrideSpecifier(t){return void 0===t?this.getRuleContexts(Qs):this.getRuleContext(t,Qs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Li=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}expressionList(){return this.tryGetRuleContext(0,Ns)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},wi=class extends ei.ParserRuleContext{functionDescriptor(){return this.getRuleContext(0,Ii)}parameterList(){return this.getRuleContext(0,Ui)}modifierList(){return this.getRuleContext(0,ki)}block(){return this.tryGetRuleContext(0,ts)}returnParameters(){return this.tryGetRuleContext(0,Pi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ii=class extends ei.ParserRuleContext{identifier(){return this.tryGetRuleContext(0,Xs)}ConstructorKeyword(){return this.tryGetToken(li.ConstructorKeyword,0)}FallbackKeyword(){return this.tryGetToken(li.FallbackKeyword,0)}ReceiveKeyword(){return this.tryGetToken(li.ReceiveKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Pi=class extends ei.ParserRuleContext{parameterList(){return this.getRuleContext(0,Ui)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},ki=class extends ei.ParserRuleContext{ExternalKeyword(t){return void 0===t?this.getTokens(li.ExternalKeyword):this.getToken(li.ExternalKeyword,t)}PublicKeyword(t){return void 0===t?this.getTokens(li.PublicKeyword):this.getToken(li.PublicKeyword,t)}InternalKeyword(t){return void 0===t?this.getTokens(li.InternalKeyword):this.getToken(li.InternalKeyword,t)}PrivateKeyword(t){return void 0===t?this.getTokens(li.PrivateKeyword):this.getToken(li.PrivateKeyword,t)}VirtualKeyword(t){return void 0===t?this.getTokens(li.VirtualKeyword):this.getToken(li.VirtualKeyword,t)}stateMutability(t){return void 0===t?this.getRuleContexts(Zi):this.getRuleContext(t,Zi)}modifierInvocation(t){return void 0===t?this.getRuleContexts(Li):this.getRuleContext(t,Li)}overrideSpecifier(t){return void 0===t?this.getRuleContexts(Qs):this.getRuleContext(t,Qs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Di=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}eventParameterList(){return this.getRuleContext(0,Hi)}AnonymousKeyword(){return this.tryGetToken(li.AnonymousKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Fi=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Mi=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}enumValue(t){return void 0===t?this.getRuleContexts(Fi):this.getRuleContext(t,Fi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ui=class extends ei.ParserRuleContext{parameter(t){return void 0===t?this.getRuleContexts(ji):this.getRuleContext(t,ji)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},ji=class extends ei.ParserRuleContext{typeName(){return this.getRuleContext(0,Gi)}storageLocation(){return this.tryGetRuleContext(0,Qi)}identifier(){return this.tryGetRuleContext(0,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Hi=class extends ei.ParserRuleContext{eventParameter(t){return void 0===t?this.getRuleContexts(Bi):this.getRuleContext(t,Bi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Bi=class extends ei.ParserRuleContext{typeName(){return this.getRuleContext(0,Gi)}IndexedKeyword(){return this.tryGetToken(li.IndexedKeyword,0)}identifier(){return this.tryGetRuleContext(0,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ki=class extends ei.ParserRuleContext{functionTypeParameter(t){return void 0===t?this.getRuleContexts(zi):this.getRuleContext(t,zi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},zi=class extends ei.ParserRuleContext{typeName(){return this.getRuleContext(0,Gi)}storageLocation(){return this.tryGetRuleContext(0,Qi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Vi=class extends ei.ParserRuleContext{typeName(){return this.getRuleContext(0,Gi)}identifier(){return this.getRuleContext(0,Xs)}storageLocation(){return this.tryGetRuleContext(0,Qi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Gi=class extends ei.ParserRuleContext{elementaryTypeName(){return this.tryGetRuleContext(0,Ss)}userDefinedTypeName(){return this.tryGetRuleContext(0,qi)}mapping(){return this.tryGetRuleContext(0,Yi)}typeName(){return this.tryGetRuleContext(0,Gi)}expression(){return this.tryGetRuleContext(0,bs)}functionTypeName(){return this.tryGetRuleContext(0,Ji)}PayableKeyword(){return this.tryGetToken(li.PayableKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},qi=class extends ei.ParserRuleContext{identifier(t){return void 0===t?this.getRuleContexts(Xs):this.getRuleContext(t,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},$i=class extends ei.ParserRuleContext{elementaryTypeName(){return this.tryGetRuleContext(0,Ss)}userDefinedTypeName(){return this.tryGetRuleContext(0,qi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Yi=class extends ei.ParserRuleContext{mappingKey(){return this.getRuleContext(0,$i)}typeName(){return this.getRuleContext(0,Gi)}mappingKeyName(){return this.tryGetRuleContext(0,Wi)}mappingValueName(){return this.tryGetRuleContext(0,Xi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Wi=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Xi=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ji=class extends ei.ParserRuleContext{functionTypeParameterList(t){return void 0===t?this.getRuleContexts(Ki):this.getRuleContext(t,Ki)}InternalKeyword(t){return void 0===t?this.getTokens(li.InternalKeyword):this.getToken(li.InternalKeyword,t)}ExternalKeyword(t){return void 0===t?this.getTokens(li.ExternalKeyword):this.getToken(li.ExternalKeyword,t)}stateMutability(t){return void 0===t?this.getRuleContexts(Zi):this.getRuleContext(t,Zi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Qi=class extends ei.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Zi=class extends ei.ParserRuleContext{PureKeyword(){return this.tryGetToken(li.PureKeyword,0)}ConstantKeyword(){return this.tryGetToken(li.ConstantKeyword,0)}ViewKeyword(){return this.tryGetToken(li.ViewKeyword,0)}PayableKeyword(){return this.tryGetToken(li.PayableKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},ts=class extends ei.ParserRuleContext{statement(t){return void 0===t?this.getRuleContexts(es):this.getRuleContext(t,es)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},es=class extends ei.ParserRuleContext{ifStatement(){return this.tryGetRuleContext(0,ns)}tryStatement(){return this.tryGetRuleContext(0,is)}whileStatement(){return this.tryGetRuleContext(0,os)}forStatement(){return this.tryGetRuleContext(0,cs)}block(){return this.tryGetRuleContext(0,ts)}inlineAssemblyStatement(){return this.tryGetRuleContext(0,us)}doWhileStatement(){return this.tryGetRuleContext(0,ps)}continueStatement(){return this.tryGetRuleContext(0,ds)}breakStatement(){return this.tryGetRuleContext(0,fs)}returnStatement(){return this.tryGetRuleContext(0,_s)}throwStatement(){return this.tryGetRuleContext(0,ys)}emitStatement(){return this.tryGetRuleContext(0,gs)}simpleStatement(){return this.tryGetRuleContext(0,as)}uncheckedStatement(){return this.tryGetRuleContext(0,ls)}revertStatement(){return this.tryGetRuleContext(0,ms)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},rs=class extends ei.ParserRuleContext{expression(){return this.getRuleContext(0,bs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},ns=class extends ei.ParserRuleContext{expression(){return this.getRuleContext(0,bs)}statement(t){return void 0===t?this.getRuleContexts(es):this.getRuleContext(t,es)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},is=class extends ei.ParserRuleContext{expression(){return this.getRuleContext(0,bs)}block(){return this.getRuleContext(0,ts)}returnParameters(){return this.tryGetRuleContext(0,Pi)}catchClause(t){return void 0===t?this.getRuleContexts(ss):this.getRuleContext(t,ss)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},ss=class extends ei.ParserRuleContext{block(){return this.getRuleContext(0,ts)}parameterList(){return this.tryGetRuleContext(0,Ui)}identifier(){return this.tryGetRuleContext(0,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},os=class extends ei.ParserRuleContext{expression(){return this.getRuleContext(0,bs)}statement(){return this.getRuleContext(0,es)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},as=class extends ei.ParserRuleContext{variableDeclarationStatement(){return this.tryGetRuleContext(0,xs)}expressionStatement(){return this.tryGetRuleContext(0,rs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},ls=class extends ei.ParserRuleContext{block(){return this.getRuleContext(0,ts)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},cs=class extends ei.ParserRuleContext{statement(){return this.getRuleContext(0,es)}simpleStatement(){return this.tryGetRuleContext(0,as)}expressionStatement(){return this.tryGetRuleContext(0,rs)}expression(){return this.tryGetRuleContext(0,bs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},us=class extends ei.ParserRuleContext{assemblyBlock(){return this.getRuleContext(0,Ls)}StringLiteralFragment(){return this.tryGetToken(li.StringLiteralFragment,0)}inlineAssemblyStatementFlag(){return this.tryGetRuleContext(0,hs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},hs=class extends ei.ParserRuleContext{stringLiteral(){return this.getRuleContext(0,Zs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},ps=class extends ei.ParserRuleContext{statement(){return this.getRuleContext(0,es)}expression(){return this.getRuleContext(0,bs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},ds=class extends ei.ParserRuleContext{ContinueKeyword(){return this.getToken(li.ContinueKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},fs=class extends ei.ParserRuleContext{BreakKeyword(){return this.getToken(li.BreakKeyword,0)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},_s=class extends ei.ParserRuleContext{expression(){return this.tryGetRuleContext(0,bs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},ys=class extends ei.ParserRuleContext{constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},gs=class extends ei.ParserRuleContext{functionCall(){return this.getRuleContext(0,Os)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},ms=class extends ei.ParserRuleContext{functionCall(){return this.getRuleContext(0,Os)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},xs=class extends ei.ParserRuleContext{identifierList(){return this.tryGetRuleContext(0,vs)}variableDeclaration(){return this.tryGetRuleContext(0,Vi)}variableDeclarationList(){return this.tryGetRuleContext(0,Ts)}expression(){return this.tryGetRuleContext(0,bs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ts=class extends ei.ParserRuleContext{variableDeclaration(t){return void 0===t?this.getRuleContexts(Vi):this.getRuleContext(t,Vi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},vs=class extends ei.ParserRuleContext{identifier(t){return void 0===t?this.getRuleContexts(Xs):this.getRuleContext(t,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ss=class extends ei.ParserRuleContext{Int(){return this.tryGetToken(li.Int,0)}Uint(){return this.tryGetToken(li.Uint,0)}Byte(){return this.tryGetToken(li.Byte,0)}Fixed(){return this.tryGetToken(li.Fixed,0)}Ufixed(){return this.tryGetToken(li.Ufixed,0)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},bs=class extends ei.ParserRuleContext{expression(t){return void 0===t?this.getRuleContexts(bs):this.getRuleContext(t,bs)}typeName(){return this.tryGetRuleContext(0,Gi)}identifier(){return this.tryGetRuleContext(0,Xs)}nameValueList(){return this.tryGetRuleContext(0,As)}functionCallArguments(){return this.tryGetRuleContext(0,Cs)}primaryExpression(){return this.tryGetRuleContext(0,Es)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Es=class extends ei.ParserRuleContext{BooleanLiteral(){return this.tryGetToken(li.BooleanLiteral,0)}numberLiteral(){return this.tryGetRuleContext(0,Ws)}hexLiteral(){return this.tryGetRuleContext(0,Js)}stringLiteral(){return this.tryGetRuleContext(0,Zs)}identifier(){return this.tryGetRuleContext(0,Xs)}TypeKeyword(){return this.tryGetToken(li.TypeKeyword,0)}PayableKeyword(){return this.tryGetToken(li.PayableKeyword,0)}tupleExpression(){return this.tryGetRuleContext(0,Ys)}typeName(){return this.tryGetRuleContext(0,Gi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ns=class extends ei.ParserRuleContext{expression(t){return void 0===t?this.getRuleContexts(bs):this.getRuleContext(t,bs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},As=class extends ei.ParserRuleContext{nameValue(t){return void 0===t?this.getRuleContexts(Rs):this.getRuleContext(t,Rs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Rs=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}expression(){return this.getRuleContext(0,bs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Cs=class extends ei.ParserRuleContext{nameValueList(){return this.tryGetRuleContext(0,As)}expressionList(){return this.tryGetRuleContext(0,Ns)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Os=class extends ei.ParserRuleContext{expression(){return this.getRuleContext(0,bs)}functionCallArguments(){return this.getRuleContext(0,Cs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ls=class extends ei.ParserRuleContext{assemblyItem(t){return void 0===t?this.getRuleContexts(ws):this.getRuleContext(t,ws)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},ws=class extends ei.ParserRuleContext{identifier(){return this.tryGetRuleContext(0,Xs)}assemblyBlock(){return this.tryGetRuleContext(0,Ls)}assemblyExpression(){return this.tryGetRuleContext(0,Is)}assemblyLocalDefinition(){return this.tryGetRuleContext(0,Ds)}assemblyAssignment(){return this.tryGetRuleContext(0,Fs)}assemblyStackAssignment(){return this.tryGetRuleContext(0,js)}labelDefinition(){return this.tryGetRuleContext(0,Hs)}assemblySwitch(){return this.tryGetRuleContext(0,Bs)}assemblyFunctionDefinition(){return this.tryGetRuleContext(0,zs)}assemblyFor(){return this.tryGetRuleContext(0,Gs)}assemblyIf(){return this.tryGetRuleContext(0,qs)}BreakKeyword(){return this.tryGetToken(li.BreakKeyword,0)}ContinueKeyword(){return this.tryGetToken(li.ContinueKeyword,0)}LeaveKeyword(){return this.tryGetToken(li.LeaveKeyword,0)}numberLiteral(){return this.tryGetRuleContext(0,Ws)}stringLiteral(){return this.tryGetRuleContext(0,Zs)}hexLiteral(){return this.tryGetRuleContext(0,Js)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Is=class extends ei.ParserRuleContext{assemblyCall(){return this.tryGetRuleContext(0,ks)}assemblyLiteral(){return this.tryGetRuleContext(0,$s)}assemblyMember(){return this.tryGetRuleContext(0,Ps)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ps=class extends ei.ParserRuleContext{identifier(t){return void 0===t?this.getRuleContexts(Xs):this.getRuleContext(t,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},ks=class extends ei.ParserRuleContext{identifier(){return this.tryGetRuleContext(0,Xs)}assemblyExpression(t){return void 0===t?this.getRuleContexts(Is):this.getRuleContext(t,Is)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ds=class extends ei.ParserRuleContext{assemblyIdentifierOrList(){return this.getRuleContext(0,Ms)}assemblyExpression(){return this.tryGetRuleContext(0,Is)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Fs=class extends ei.ParserRuleContext{assemblyIdentifierOrList(){return this.getRuleContext(0,Ms)}assemblyExpression(){return this.getRuleContext(0,Is)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ms=class extends ei.ParserRuleContext{identifier(){return this.tryGetRuleContext(0,Xs)}assemblyMember(){return this.tryGetRuleContext(0,Ps)}assemblyIdentifierList(){return this.tryGetRuleContext(0,Us)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Us=class extends ei.ParserRuleContext{identifier(t){return void 0===t?this.getRuleContexts(Xs):this.getRuleContext(t,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},js=class extends ei.ParserRuleContext{assemblyExpression(){return this.getRuleContext(0,Is)}identifier(){return this.getRuleContext(0,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Hs=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Bs=class extends ei.ParserRuleContext{assemblyExpression(){return this.getRuleContext(0,Is)}assemblyCase(t){return void 0===t?this.getRuleContexts(Ks):this.getRuleContext(t,Ks)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ks=class extends ei.ParserRuleContext{assemblyLiteral(){return this.tryGetRuleContext(0,$s)}assemblyBlock(){return this.getRuleContext(0,Ls)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},zs=class extends ei.ParserRuleContext{identifier(){return this.getRuleContext(0,Xs)}assemblyBlock(){return this.getRuleContext(0,Ls)}assemblyIdentifierList(){return this.tryGetRuleContext(0,Us)}assemblyFunctionReturns(){return this.tryGetRuleContext(0,Vs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Vs=class extends ei.ParserRuleContext{assemblyIdentifierList(){return this.tryGetRuleContext(0,Us)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Gs=class extends ei.ParserRuleContext{assemblyExpression(t){return void 0===t?this.getRuleContexts(Is):this.getRuleContext(t,Is)}assemblyBlock(t){return void 0===t?this.getRuleContexts(Ls):this.getRuleContext(t,Ls)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},qs=class extends ei.ParserRuleContext{assemblyExpression(){return this.getRuleContext(0,Is)}assemblyBlock(){return this.getRuleContext(0,Ls)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},$s=class extends ei.ParserRuleContext{stringLiteral(){return this.tryGetRuleContext(0,Zs)}DecimalNumber(){return this.tryGetToken(li.DecimalNumber,0)}HexNumber(){return this.tryGetToken(li.HexNumber,0)}hexLiteral(){return this.tryGetRuleContext(0,Js)}BooleanLiteral(){return this.tryGetToken(li.BooleanLiteral,0)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ys=class extends ei.ParserRuleContext{expression(t){return void 0===t?this.getRuleContexts(bs):this.getRuleContext(t,bs)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Ws=class extends ei.ParserRuleContext{DecimalNumber(){return this.tryGetToken(li.DecimalNumber,0)}HexNumber(){return this.tryGetToken(li.HexNumber,0)}NumberUnit(){return this.tryGetToken(li.NumberUnit,0)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Xs=class extends ei.ParserRuleContext{ReceiveKeyword(){return this.tryGetToken(li.ReceiveKeyword,0)}ConstructorKeyword(){return this.tryGetToken(li.ConstructorKeyword,0)}PayableKeyword(){return this.tryGetToken(li.PayableKeyword,0)}LeaveKeyword(){return this.tryGetToken(li.LeaveKeyword,0)}Identifier(){return this.tryGetToken(li.Identifier,0)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Js=class extends ei.ParserRuleContext{HexLiteralFragment(t){return void 0===t?this.getTokens(li.HexLiteralFragment):this.getToken(li.HexLiteralFragment,t)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Qs=class extends ei.ParserRuleContext{userDefinedTypeName(t){return void 0===t?this.getRuleContexts(qi):this.getRuleContext(t,qi)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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)}},Zs=class extends ei.ParserRuleContext{StringLiteralFragment(t){return void 0===t?this.getTokens(li.StringLiteralFragment):this.getToken(li.StringLiteralFragment,t)}constructor(t,e){super(t,e)}get ruleIndex(){return li.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 to=["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"],eo=["+","-","*","/","**","%","<<",">>","&&","||",",,","&",",","^","<",">","<=",">=","==","!=","=",",=","^=","&=","<<=",">>=","+=","-=","*=","/=","%=","|","|="],ro=["-","+","++","--","~","after","delete","!"];p();var no=h(zr()),io=h(ve()),so=class extends no.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 io.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 n={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(n,t)}visitStateVariableDeclaration(t){const e=this.visitTypeName(t.typeName()),r=t.identifier(),n=this._toText(r);let i=null;const s=t.expression();s&&(i=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:n,identifier:this.visitIdentifier(r),expression:i,visibility:o,isStateVar:!0,isDeclaredConst:l,isIndexed:!1,isImmutable:u,override:a,storageLocation:null},p={type:"StateVariableDeclaration",variables:[this._addMeta(h,t)],initialValue:i};return this._addMeta(p,t)}visitVariableDeclaration(t){let e=null;const r=t.storageLocation();r&&(e=this._toText(r));const n=t.identifier(),i={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:this._toText(n),identifier:this.visitIdentifier(n),storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(i,t)}visitVariableDeclarationStatement(t){let e=[];const r=t.variableDeclaration(),n=t.identifierList(),i=t.variableDeclarationList();void 0!==r?e=[this.visitVariableDeclaration(r)]:void 0!==n?e=this.buildIdentifierList(n):i&&(e=this.buildVariableDeclarationList(i));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 n=t.identifier();n&&(r=this._toText(n));const i={type:"VariableDeclaration",typeName:e,name:r,identifier:void 0!==n?this.visitIdentifier(n):null,isStateVar:!1,isIndexed:void 0!==t.IndexedKeyword(),storageLocation:null,expression:null};return this._addMeta(i,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 n=null;const i=t.identifier();void 0!==i&&(n=this._toText(i));const s={type:"VariableDeclaration",typeName:this.visitTypeName(t.typeName()),name:n,identifier:void 0!==i?this.visitIdentifier(i):null,storageLocation:e,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(s,t)}visitFunctionDefinition(t){let e=!1,r=!1,n=!1,i=!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",n=!0;break;case"function":{const n=t.functionDescriptor().identifier();s=void 0!==n?this._toText(n):"",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&&(i=!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:n,isFallback:r,isVirtual:i,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(),n={type:"ArrayTypeName",baseTypeName:this.visitTypeName(r),length:e};return this._addMeta(n,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 n=void 0!==t.GlobalKeyword();let i;const s=t.usingForObject();return i="{"===this._toText(s.getChild(0))?{type:"UsingForDeclaration",isGlobal:n,typeName:e,libraryName:null,functions:s.userDefinedTypeName().map((t=>this._toText(t)))}:{type:"UsingForDeclaration",isGlobal:n,typeName:e,libraryName:this._toText(s.userDefinedTypeName(0)),functions:[]},this._addMeta(i,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 n={type:"PragmaDirective",name:this._toText(t.pragmaName()),value:r};return this._addMeta(n,t)}visitInheritanceSpecifier(t){const e=t.expressionList(),r=void 0!==e?e.expression().map((t=>this.visitExpression(t))):[],n={type:"InheritanceSpecifier",baseName:this.visitUserDefinedTypeName(t.userDefinedTypeName()),arguments:r};return this._addMeta(n,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 n={type:"ModifierInvocation",name:this._toText(t.identifier()),arguments:r};return this._addMeta(n,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 n="default";t.InternalKeyword().length>0?n="internal":t.ExternalKeyword().length>0&&(n="external");let i=null;t.stateMutability().length>0&&(i=this._toText(t.stateMutability(0)));const s={type:"FunctionTypeName",parameterTypes:e,returnTypes:r,visibility:n,stateMutability:i};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 n={type:"ReturnStatement",expression:e};return this._addMeta(n,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=[],n=[],i=t.functionCallArguments(),s=i.expressionList(),o=i.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())),n.push(this.visitIdentifier(t.identifier()));const a={type:"FunctionCall",expression:this.visitExpression(t.expression()),arguments:e,names:r,identifiers:n};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 n={type:"IfStatement",condition:this.visitExpression(t.expression()),trueBody:e,falseBody:r};return this._addMeta(n,t)}visitTryStatement(t){let e=null;const r=t.returnParameters();void 0!==r&&(e=this.visitReturnParameters(r));const n=t.catchClause().map((t=>this.visitCatchClause(t))),i={type:"TryStatement",expression:this.visitExpression(t.expression()),returnParameters:e,body:this.visitBlock(t.block()),catchClauses:n};return this._addMeta(i,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 n=t.identifier();void 0!==n&&(r=this._toText(n));const i={type:"CatchClause",isReasonStringType:"Error"===r,kind:r,parameters:e,body:this.visitBlock(t.block())};return this._addMeta(i,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 n={type:"NumberLiteral",number:e,subdenomination:r};return this._addMeta(n,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(),n={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(n,t)}visitModifierDefinition(t){let e=null;t.parameterList()&&(e=this.visitParameterList(t.parameterList()));let r,n=!1;t.VirtualKeyword().length>0&&(n=!0);const i=t.overrideSpecifier();r=0===i.length?null:i[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:n,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,Es);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(ro.includes(e)){const r={type:"UnaryOperation",operator:e,subExpression:this.visitExpression(t.getRuleContext(0,bs)),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,bs)),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,bs))],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 eo.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=[],n=[],i=t.functionCallArguments();if(i.expressionList())e=i.expressionList().expression().map((t=>this.visitExpression(t)));else if(i.nameValueList())for(const t of i.nameValueList().nameValue())e.push(this.visitExpression(t.expression())),r.push(this._toText(t.identifier())),n.push(this.visitIdentifier(t.identifier()));const s={type:"FunctionCall",expression:this.visitExpression(t.expression(0)),arguments:e,names:r,identifiers:n};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=[],n=[];for(const i of t.nameValue())e.push(this._toText(i.identifier())),r.push(this.visitIdentifier(i.identifier())),n.push(this.visitExpression(i.expression()));const i={type:"NameValueList",names:e,identifiers:r,arguments:n};return this._addMeta(i,t)}visitFileLevelConstant(t){const e=this.visitTypeName(t.typeName()),r=t.identifier(),n={type:"FileLevelConstant",typeName:e,name:this._toText(r),initialValue:this.visitExpression(t.expression()),isDeclaredConst:!0,isImmutable:!1};return this._addMeta(n,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 n="'"===e[0],i=e.substring(1,e.length-1);return{value:n?i.replace(new RegExp("\\\\'","g"),"'"):i.replace(new RegExp('\\\\"',"g"),'"'),isUnicode:r}})),r=e.map((t=>t.value)),n={type:"StringLiteral",value:r.join(""),parts:r,isUnicode:e.map((t=>t.isUnicode))};return this._addMeta(n,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 n=0;return this._mapCommasToNulls(e).map((t=>{if(!t)return null;const e=r[n];n++;const i={type:"VariableDeclaration",name:this._toText(e),identifier:this.visitIdentifier(e),isStateVar:!1,isIndexed:!1,typeName:null,storageLocation:null,expression:null};return this._addMeta(i,e)}))}buildVariableDeclarationList(t){const e=t.variableDeclaration();let r=0;return this._mapCommasToNulls(t.children??[]).map((t=>{if(!t)return null;const n=e[r];r++;let i=null;n.storageLocation()&&(i=this._toText(n.storageLocation()));const s=n.identifier(),o={type:"VariableDeclaration",name:this._toText(s),identifier:this.visitIdentifier(s),typeName:this.visitTypeName(n.typeName()),storageLocation:i,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(o,n)}))}visitImportDirective(t){const e=this._toText(t.importPath());let r=null,n=null,i=null,s=null;if(t.importDeclaration().length>0)i=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),n=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),n=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:n,symbolAliases:i,symbolAliasesIdentifiers:s};return this._addMeta(l,t)}buildEventParameterList(t){return t.eventParameter().map((t=>{const e=this.visit(t.typeName());let r=null;return t.identifier()&&(r=this._toText(t.identifier())),{type:"VariableDeclaration",typeName:e,name:r,isStateVar:!1,isIndexed:!!t.IndexedKeyword(0)}}))}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=[],n=t.inlineAssemblyStatementFlag();if(void 0!==n){const t=this._toText(n.stringLiteral());r.push(t.slice(1,t.length-1))}const i={type:"InlineAssemblyStatement",language:e,flags:r,body:this.visitAssemblyBlock(t.assemblyBlock())};return this._addMeta(i,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),n={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(n,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),n={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(n,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 n=null;void 0!==t.assemblyExpression()&&(n=this.visitAssemblyExpression(t.assemblyExpression()));const i={type:"AssemblyLocalDefinition",names:r,expression:n};return this._addMeta(i,t)}visitAssemblyFunctionDefinition(t){const e=t.assemblyIdentifierList(),r=void 0!==e?e.identifier().map((t=>this.visitIdentifier(t))):[],n=t.assemblyFunctionReturns(),i=n?n.assemblyIdentifierList().identifier().map((t=>this.visitIdentifier(t))):[],s={type:"AssemblyFunctionDefinition",name:this._toText(t.identifier()),arguments:r,returnArguments:i,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 n={type:"AssemblyAssignment",names:r,expression:this.visitAssemblyExpression(t.assemblyExpression())};return this._addMeta(n,t)}visitAssemblyMember(t){const[e,r]=t.identifier(),n={type:"AssemblyMemberAccess",expression:this.visitIdentifier(e),memberName:this.visitIdentifier(r)};return this._addMeta(n,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 n of t)if(r)","===this._toText(n)?e.push(null):(e.push(n),r=!1);else{if(","!==this._toText(n))throw new Error("expected comma");r=!0}return r&&e.push(null),e}};p();var oo=h(Un()),ao=class extends oo.default.error.ErrorListener{constructor(){super(),this._errors=[]}syntaxError(t,e,r,n,i){this._errors.push({message:i,line:r,column:n})}getErrors(){return this._errors}hasErrors(){return this._errors.length>0}};p();var lo=h(Hn()).default,co=["var","bool","address","string","Int","Uint","Byte","Fixed","UFixed"];function uo(t,e){const r=lo.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 n;const i={type:"Identifier"===(n=r[t.type])||"from"===n?"Identifier":"TrueLiteral"===n||"FalseLiteral"===n?"Boolean":"VersionLiteral"===n?"Version":"StringLiteral"===n?"String":co.includes(n)?"Type":"NumberUnit"===n?"Subdenomination":"DecimalNumber"===n?"Numeric":"HexLiteral"===n?"Hex":"ReservedKeyword"===n?"Reserved":/^\W+$/.test(n)?"Punctuator":"Keyword",value:t.text};return!0===e.range&&(i.range=[t.startIndex,t.stopIndex+1]),!0===e.loc&&(i.loc={start:{line:t.line,column:t.charPositionInLine},end:{line:t.line,column:t.charPositionInLine+(t.text?.length??0)}}),i}))}var ho=class extends Error{constructor(t){super();const{message:e,line:r,column:n}=t.errors[0];this.message=`${e} (${r}:${n})`,this.errors=t.errors,void 0!==Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack}};function po(t,e={}){const r=new Kn.ANTLRInputStream(t);return uo(new Wn(r).getAllTokens(),e)}function fo(t,e={}){const r=new Kn.ANTLRInputStream(t),n=new Wn(r),i=new Kn.CommonTokenStream(n),s=new li(i),o=new ao;n.removeErrorListeners(),n.addErrorListener(o),s.removeErrorListeners(),s.addErrorListener(o),s.buildParseTree=!0;const a=s.sourceUnit(),l=new so(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=uo(i.getTokens(),e)),!0!==e.tolerant&&o.hasErrors())throw new ho({errors:o.getErrors()});return!0===e.tolerant&&o.hasErrors()&&(c.errors=o.getErrors()),!0===e.tokens&&(c.tokens=u),c}function _o(t,e,r){if(Array.isArray(t)&&t.forEach((t=>_o(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)&&to.includes(e.type)}(t))return;let n=!0;if(void 0!==e[t.type]&&(n=e[t.type](t,r)),!1===n)return;for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&_o(t[r],e,t);const i=t.type+":exit";void 0!==e[i]&&e[i](t,r)}return Bn})();t.exports=e},2257:function(t,e,r){const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(t,e){if(e=s(e),t instanceof i){if(t.loose===!!e.loose)return t;t=t.value}c("comparator",t,e),this.options=e,this.loose=!!e.loose,this.parse(t),this.semver===n?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=n}toString(){return this.value}test(t){if(c("Comparator.test",t,this.options.loose),this.semver===n||t===n)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 i))throw new TypeError("a Comparator is required");if(e&&"object"==typeof e||(e={loose:!!e,includePrerelease:!1}),""===this.operator)return""===this.value||new h(t.value,e).test(this.value);if(""===t.operator)return""===t.value||new h(this.value,e).test(t.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==t.operator&&">"!==t.operator),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==t.operator&&"<"!==t.operator),s=this.semver.version===t.semver.version,o=!(">="!==this.operator&&"<="!==this.operator||">="!==t.operator&&"<="!==t.operator),a=l(this.semver,"<",t.semver,e)&&(">="===this.operator||">"===this.operator)&&("<="===t.operator||"<"===t.operator),c=l(this.semver,">",t.semver,e)&&("<="===this.operator||"<"===this.operator)&&(">="===t.operator||">"===t.operator);return r||n||s&&o||a||c}}t.exports=i;const s=r(2893),{re:o,t:a}=r(5765),l=r(7539),c=r(4225),u=r(6376),h=r(6902)},6902:function(t,e,r){class n{constructor(t,e){if(e=s(e),t instanceof n)return t.loose===!!e.loose&&t.includePrerelease===!!e.includePrerelease?t:new n(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,this.set=t.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${t}`);if(this.set.length>1){const t=this.set[0];if(this.set=this.set.filter((t=>!f(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&&_(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){t=t.trim();const e=`parseRange:${Object.keys(this.options).join(",")}:${t}`,r=i.get(e);if(r)return r;const n=this.options.loose,s=n?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];t=t.replace(s,R(this.options.includePrerelease)),a("hyphen replace",t),t=t.replace(c[u.COMPARATORTRIM],h),a("comparator trim",t);let l=(t=(t=(t=t.replace(c[u.TILDETRIM],p)).replace(c[u.CARETTRIM],d)).split(/\s+/).join(" ")).split(" ").map((t=>g(t,this.options))).join(" ").split(/\s+/).map((t=>A(t,this.options)));n&&(l=l.filter((t=>(a("loose invalid filter",t,this.options),!!t.match(c[u.COMPARATORLOOSE]))))),a("range list",l);const _=new Map,y=l.map((t=>new o(t,this.options)));for(const t of y){if(f(t))return[t];_.set(t.value,t)}_.size>1&&_.has("")&&_.delete("");const m=[..._.values()];return i.set(e,m),m}intersects(t,e){if(!(t instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>y(r,e)&&t.set.some((t=>y(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(C(this.set[e],t,this.options))return!0;return!1}}t.exports=n;const i=new(r(6062))({max:1e3}),s=r(2893),o=r(2257),a=r(4225),l=r(6376),{re:c,t:u,comparatorTrimReplace:h,tildeTrimReplace:p,caretTrimReplace:d}=r(5765),f=t=>"<0.0.0-0"===t.value,_=t=>""===t.value,y=(t,e)=>{let r=!0;const n=t.slice();let i=n.pop();for(;r&&n.length;)r=n.every((t=>i.intersects(t,e))),i=n.pop();return r},g=(t,e)=>(a("comp",t,e),t=v(t,e),a("caret",t),t=x(t,e),a("tildes",t),t=b(t,e),a("xrange",t),t=N(t,e),a("stars",t),t),m=t=>!t||"x"===t.toLowerCase()||"*"===t,x=(t,e)=>t.trim().split(/\s+/).map((t=>T(t,e))).join(" "),T=(t,e)=>{const r=e.loose?c[u.TILDELOOSE]:c[u.TILDE];return t.replace(r,((e,r,n,i,s)=>{let o;return a("tilde",t,e,r,n,i,s),m(r)?o="":m(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:m(i)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(a("replaceTilde pr",s),o=`>=${r}.${n}.${i}-${s} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",o),o}))},v=(t,e)=>t.trim().split(/\s+/).map((t=>S(t,e))).join(" "),S=(t,e)=>{a("caret",t,e);const r=e.loose?c[u.CARETLOOSE]:c[u.CARET],n=e.includePrerelease?"-0":"";return t.replace(r,((e,r,i,s,o)=>{let l;return a("caret",t,e,r,i,s,o),m(r)?l="":m(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:m(s)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:o?(a("replaceCaret pr",o),l="0"===r?"0"===i?`>=${r}.${i}.${s}-${o} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}-${o} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s}-${o} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${s}${n} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s} <${+r+1}.0.0-0`),a("caret return",l),l}))},b=(t,e)=>(a("replaceXRanges",t,e),t.split(/\s+/).map((t=>E(t,e))).join(" ")),E=(t,e)=>{t=t.trim();const r=e.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return t.replace(r,((r,n,i,s,o,l)=>{a("xRange",t,r,n,i,s,o,l);const c=m(i),u=c||m(s),h=u||m(o),p=h;return"="===n&&p&&(n=""),l=e.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(s=0),o=0,">"===n?(n=">=",u?(i=+i+1,s=0,o=0):(s=+s+1,o=0)):"<="===n&&(n="<",u?i=+i+1:s=+s+1),"<"===n&&(l="-0"),r=`${n+i}.${s}.${o}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:h&&(r=`>=${i}.${s}.0${l} <${i}.${+s+1}.0-0`),a("xRange return",r),r}))},N=(t,e)=>(a("replaceStars",t,e),t.trim().replace(c[u.STAR],"")),A=(t,e)=>(a("replaceGTE0",t,e),t.trim().replace(c[e.includePrerelease?u.GTE0PRE:u.GTE0],"")),R=t=>(e,r,n,i,s,o,a,l,c,u,h,p,d)=>`${r=m(n)?"":m(i)?`>=${n}.0.0${t?"-0":""}`:m(s)?`>=${n}.${i}.0${t?"-0":""}`:o?`>=${r}`:`>=${r}${t?"-0":""}`} ${l=m(c)?"":m(u)?`<${+c+1}.0.0-0`:m(h)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${h}-${p}`:t?`<${c}.${u}.${+h+1}-0`:`<=${l}`}`.trim(),C=(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 n=t[r].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0}},6376:function(t,e,r){const n=r(4225),{MAX_LENGTH:i,MAX_SAFE_INTEGER:s}=r(3295),{re:o,t:a}=r(5765),l=r(2893),{compareIdentifiers:c}=r(6742);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: ${t}`);if(t.length>i)throw new TypeError(`version is longer than ${i} characters`);n("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(n("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],i=t.prerelease[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return c(r,i)}while(++e)}compareBuild(t){t instanceof u||(t=new u(t,this.options));let e=0;do{const r=this.build[e],i=t.build[e];if(n("prerelease compare",e,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return c(r,i)}while(++e)}inc(t,e){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e),this.inc("pre",e);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e),this.inc("pre",e);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":if(0===this.prerelease.length)this.prerelease=[0];else{let t=this.prerelease.length;for(;--t>=0;)"number"==typeof this.prerelease[t]&&(this.prerelease[t]++,t=-2);-1===t&&this.prerelease.push(0)}e&&(0===c(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=[e,0]):this.prerelease=[e,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}}t.exports=u},7539:function(t,e,r){const n=r(8718),i=r(1194),s=r(1312),o=r(5903),a=r(1544),l=r(2056);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 n(t,r,c);case"!=":return i(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}`)}}},9038:function(t,e,r){const n=r(6376),i=r(3959),{re:s,t:o}=r(5765);t.exports=(t,e)=>{if(t instanceof n)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:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,e)}},6269:function(t,e,r){const n=r(6376);t.exports=(t,e,r)=>new n(t,r).compare(new n(e,r))},8718:function(t,e,r){const n=r(6269);t.exports=(t,e,r)=>0===n(t,e,r)},1312:function(t,e,r){const n=r(6269);t.exports=(t,e,r)=>n(t,e,r)>0},5903:function(t,e,r){const n=r(6269);t.exports=(t,e,r)=>n(t,e,r)>=0},1544:function(t,e,r){const n=r(6269);t.exports=(t,e,r)=>n(t,e,r)<0},2056:function(t,e,r){const n=r(6269);t.exports=(t,e,r)=>n(t,e,r)<=0},1194:function(t,e,r){const n=r(6269);t.exports=(t,e,r)=>0!==n(t,e,r)},3959:function(t,e,r){const{MAX_LENGTH:n}=r(3295),{re:i,t:s}=r(5765),o=r(6376),a=r(2893);t.exports=(t,e)=>{if(e=a(e),t instanceof o)return t;if("string"!=typeof t)return null;if(t.length>n)return null;if(!(e.loose?i[s.LOOSE]:i[s.FULL]).test(t))return null;try{return new o(t,e)}catch(t){return null}}},5712:function(t,e,r){const n=r(6902);t.exports=(t,e,r)=>{try{e=new n(e,r)}catch(t){return!1}return e.test(t)}},3295:function(t){const e=Number.MAX_SAFE_INTEGER||9007199254740991;t.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:e,MAX_SAFE_COMPONENT_LENGTH:16}},4225:function(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},6742:function(t){const e=/^[0-9]+$/,r=(t,r)=>{const n=e.test(t),i=e.test(r);return n&&i&&(t=+t,r=+r),t===r?0:n&&!i?-1:i&&!n?1:t<r?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(t,e)=>r(e,t)}},2893:function(t){const e=["includePrerelease","loose","rtl"];t.exports=t=>t?"object"!=typeof t?{loose:!0}:e.filter((e=>t[e])).reduce(((t,e)=>(t[e]=!0,t)),{}):{}},5765:function(t,e,r){const{MAX_SAFE_COMPONENT_LENGTH:n}=r(3295),i=r(4225),s=(e=t.exports={}).re=[],o=e.src=[],a=e.t={};let l=0;const c=(t,e,r)=>{const n=l++;i(t,n,e),a[t]=n,o[n]=e,s[n]=new RegExp(e,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})\\.(${o[a.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})\\.(${o[a.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`),c("FULL",`^${o[a.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`),c("LOOSE",`^${o[a.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${o[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${o[a.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:\\.(${o[a.XRANGEIDENTIFIER]})(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?)?)?`),c("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),c("COERCERTL",o[a.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",c("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",c("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})\\s+-\\s+(${o[a.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[a.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},6062:function(t,e,r){"use strict";const n=r(4411),i=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 n=t[p].get(e);if(n){const e=n.value;if(y(t,e)){if(m(t,n),!t[a])return}else r&&(t[d]&&(n.value.now=Date.now()),t[h].unshiftNode(n));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[i])for(let e=t[h].tail;t[s]>t[i]&&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,n,i){this.key=t,this.value=e,this.length=r,this.now=n,this.maxAge=i||0}}const T=(t,e,r,n)=>{let i=r.value;y(t,i)&&(m(t,r),t[a]||(i=void 0)),i&&e.call(n,i.value,i.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[i]=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[i]=t||1/0,g(this)}get max(){return this[i]}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 n=r.prev;T(this,t,r,e),r=n}}forEach(t,e){e=e||this;for(let r=this[h].head;null!==r;){const n=r.next;T(this,t,r,e),r=n}}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 n,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 n=r?Date.now():0,a=this[o](e,t);if(this[p].has(t)){if(a>this[i])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=n,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,n,r);return d.length>this[i]?(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 n=t[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const t=i-e;t>0&&this.set(n.k,n.v,t)}}}prune(){this[p].forEach(((t,e)=>_(this,e,!1)))}}},2167:function(t){const e="double-quote-string-state",r="single-quote-string-state",n="line-comment-state",i="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!==n||"\n"!==t[a]?o!==s||"/"!==t[a]||"*"!==t[a+1]?o!==i||"*"!==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=i,c={type:"BlockComment",range:[a]},a+=2):(o=s,c.range.push(a),l.push(c),c=null,a+=1):(o=n,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,n="LineComment"===e.type?e.range[1]:e.range[1]-2,i=t.slice(r,n);let s=i;return"BlockComment"===e.type&&(s=s.split("\n").map((t=>t.replace(/^\s*\*/,""))).join("\n").trimRight()),{...e,raw:i,value:s}}))}},9602:function(t){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},4411:function(t,e,r){"use strict";function n(t){var e=this;if(e instanceof n||(e=new n),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,i=arguments.length;r<i;r++)e.push(arguments[r]);return e}function i(t,e,r){var n=e===t.head?new a(r,null,e,t):new a(r,e,e.next,t);return null===n.next&&(t.tail=n),null===n.prev&&(t.head=n),t.length++,n}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,n){if(!(this instanceof a))return new a(t,e,r,n);this.list=n,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=n,n.Node=a,n.create=n,n.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},n.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++}},n.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++}},n.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)s(this,arguments[t]);return this.length},n.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)o(this,arguments[t]);return this.length},n.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}},n.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}},n.prototype.forEach=function(t,e){e=e||this;for(var r=this.head,n=0;null!==r;n++)t.call(e,r.value,n,this),r=r.next},n.prototype.forEachReverse=function(t,e){e=e||this;for(var r=this.tail,n=this.length-1;null!==r;n--)t.call(e,r.value,n,this),r=r.prev},n.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},n.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},n.prototype.map=function(t,e){e=e||this;for(var r=new n,i=this.head;null!==i;)r.push(t.call(e,i.value,this)),i=i.next;return r},n.prototype.mapReverse=function(t,e){e=e||this;for(var r=new n,i=this.tail;null!==i;)r.push(t.call(e,i.value,this)),i=i.prev;return r},n.prototype.reduce=function(t,e){var r,n=this.head;if(arguments.length>1)r=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=t(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(t,e){var r,n=this.tail;if(arguments.length>1)r=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=t(r,n.value,i),n=n.prev;return r},n.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},n.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},n.prototype.slice=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,s=this.head;null!==s&&i<t;i++)s=s.next;for(;null!==s&&i<e;i++,s=s.next)r.push(s.value);return r},n.prototype.sliceReverse=function(t,e){(e=e||this.length)<0&&(e+=this.length),(t=t||0)<0&&(t+=this.length);var r=new n;if(e<t||e<0)return r;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,s=this.tail;null!==s&&i>e;i--)s=s.prev;for(;null!==s&&i>t;i--,s=s.prev)r.push(s.value);return r},n.prototype.splice=function(t,e,...r){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,s=this.head;null!==s&&n<t;n++)s=s.next;var o=[];for(n=0;s&&n<e;n++)o.push(s.value),s=this.removeNode(s);for(null===s&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev),n=0;n<r.length;n++)s=i(this,s,r[n]);return o},n.prototype.reverse=function(){for(var t=this.head,e=this.tail,r=t;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=e,this.tail=t,this};try{r(9602)(n)}catch(t){}},5325:function(t,e,r){const{doc:{builders:{group:n,line:i,indent:s}}}=r(3130),o=r(2870);t.exports={match:t=>["+","-","*","/","%"].includes(t),print:(t,e,r)=>{const a=(t=>e=>{const r=t.getParentNode();return"BinaryOperation"!==r.type||o.match(r.operator)?n(e):e})(e),l=(t=>e=>{let r=t.getNode();for(let n=0;;n+=1){const i=t.getParentNode(n);if("ReturnStatement"===i.type)return e;if("BinaryOperation"!==i.type||o.match(i.operator))return s(e);if(r===i.right)return e;r=i}})(e),c=[t.operator,i,e.call(r,"right")],u="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return a([e.call(r,"left")," ",l(u?n(c):c)])}}},7793:function(t,e,r){const{doc:{builders:{group:n,line:i,indent:s}}}=r(3130);t.exports={match:t=>["=","|=","^=","&=","<<=",">>=","+=","-=","*=","/=","%="].includes(t),print:(t,e,r)=>[e.call(r,"left")," ",t.operator,"BinaryOperation"===t.right.type?n(s([i,e.call(r,"right")])):[" ",e.call(r,"right")]]}},7169:function(t,e,r){const n=r(5325);t.exports={match:t=>["&","|","^"].includes(t),print:n.print}},2870:function(t,e,r){const{doc:{builders:{group:n,line:i,indent:s}}}=r(3130);t.exports={match:t=>["<",">","<=",">=","==","!="].includes(t),print:(t,e,r)=>{const o=(t=>e=>{let r=t.getNode();for(let n=0;;n+=1){const i=t.getParentNode(n);if("ReturnStatement"===i.type)return e;if("IfStatement"===i.type)return e;if("ForStatement"===i.type)return e;if("WhileStatement"===i.type)return e;if("BinaryOperation"!==i.type)return s(e);if(r===i.right)return e;r=i}})(e),a=[t.operator,i,e.call(r,"right")],l="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return n([e.call(r,"left")," ",o(l?n(a):a)])}}},4886:function(t,e,r){const{doc:{builders:{group:n,indent:i,line:s}}}=r(3130);t.exports={match:t=>"**"===t,print:(t,e,r)=>{const o=[" ",t.operator,s,e.call(r,"right")],a="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return n([e.call(r,"left"),i(a?n(o):o)])}}},8896:function(t,e,r){t.exports={arithmetic:r(5325),assignment:r(7793),bit:r(7169),comparison:r(2870),exponentiation:r(4886),logical:r(3359),shift:r(4485)}},3359:function(t,e,r){const{doc:{builders:{group:n,line:i,indent:s}}}=r(3130);t.exports={match:t=>["&&","||"].includes(t),print:(t,e,r)=>{const o=(t=>e=>"BinaryOperation"===t.getParentNode().type?e:n(e))(e),a=(t=>e=>{let r=t.getNode();for(let n=0;;n+=1){const i=t.getParentNode(n);if("ReturnStatement"===i.type)return e;if("IfStatement"===i.type)return e;if("WhileStatement"===i.type)return e;if("BinaryOperation"!==i.type)return s(e);if(r===i.right)return e;r=i}})(e),l=[t.operator,i,e.call(r,"right")],c="BinaryOperation"!==t.left.type&&"BinaryOperation"!==e.getParentNode().type;return o([e.call(r,"left")," ",a(c?n(l):l)])}}},4485:function(t,e,r){const n=r(5325);t.exports={match:t=>["<<",">>"].includes(t),print:n.print}},3556:function(t){const e=new Set(["loc","range","comments"]);function r(){}r.ignoredProperties=e,t.exports=r},7977:function(t,e,r){const{handleOwnLineComment:n,handleEndOfLineComment:i,handleRemainingComment:s}=r(8),o=r(8296);t.exports={handleOwnLineComment:function(t,e,r,i,s){const{precedingNode:a,enclosingNode:l,followingNode:c}=t,u={text:e,precedingNode:a,enclosingNode:l,followingNode:c,comment:t,options:r};return!(!o.some((t=>t(u)))&&!n(t,e,r,i,s))},handleEndOfLineComment:function(t,e,r,n,s){const{precedingNode:a,enclosingNode:l,followingNode:c}=t,u={text:e,precedingNode:a,enclosingNode:l,followingNode:c,comment:t,options:r};return!(!o.some((t=>t(u)))&&!i(t,e,r,n,s))},handleRemainingComment:function(t,e,r,n,i){const{precedingNode:a,enclosingNode:l,followingNode:c}=t,u={text:e,precedingNode:a,enclosingNode:l,followingNode:c,comment:t,options:r};return!(!o.some((t=>t(u)))&&!s(t,e,r,n,i))},isBlockComment:function(t){return"BlockComment"===t.type}}},9950:function(t,e,r){const{util:{addLeadingComment:n,addTrailingComment:i,addDanglingComment:s,getNextNonSpaceNonCommentCharacterIndex:o}}=r(3130);t.exports=function({text:t,precedingNode:e,enclosingNode:r,followingNode:a,comment:l,options:c}){if(!r||"ContractDefinition"!==r.type)return!1;const u=t.charAt(o(t,l,c.locEnd));return a&&"InheritanceSpecifier"===a.type||"{"===u?e&&"InheritanceSpecifier"===e.type?(i(e,l),!0):(n(r,l),!0):0===r.subNodes.length&&(s(r,l),!0)}},2733:function(t,e,r){const{util:{addLeadingComment:n,addTrailingComment:i,addDanglingComment:s,getNextNonSpaceNonCommentCharacterIndex:o}}=r(3130);t.exports=function({text:t,precedingNode:e,enclosingNode:r,comment:a,options:l}){if(!r||"ModifierInvocation"!==r.type)return!1;const c=t.charAt(o(t,a,l.locEnd));return"("===c?(n(r,a),!0):")"===c&&(e?(i(e,a),!0):"LineComment"===a.type?(n(r,a),!0):(s(r,a),!0))}},8296:function(t,e,r){t.exports=[r(9950),r(2733)]},9857:function(t){t.exports=function t(e){const r=e.getValue();null!==r&&"object"==typeof r&&Object.keys(r).forEach((n=>{switch(n){case"loc":case"range":break;case"comments":e.each((t=>{t.getValue().printed=!0}),"comments");break;default:if("object"==typeof r[n]){if(Array.isArray(r[n]))return void e.each(t,n);e.call(t,n)}}}))}},9018:function(t,e,r){const n=r(7977),i=r(4461);t.exports={handleComments:n,printComment:i}},4461:function(t,e,r){const{doc:{builders:{hardline:n,join:i}},util:{hasNewline:s}}=r(3130);t.exports=function(t,e){const r=t.getValue();switch(r.type){case"BlockComment":if(function(t){const e=`*${t.raw}*`.split("\n");return e.length>1&&e.every((t=>"*"===t.trim()[0]))}(r)){const t=function(t){const e=t.raw.split("\n");return["/*",i(n,e.map(((t,r)=>0===r?t.trimEnd():` ${r<e.length-1?t.trim():t.trimStart()}`))),"*/"]}(r);return r.trailing&&!s(e.originalText,e.locStart(r),{backwards:!0})?[n,t]:t}return`/*${r.raw}*/`;case"LineComment":return`//${r.raw.trimEnd()}`;default:throw new Error(`Not a comment: ${JSON.stringify(r)}`)}}},3671:function(t,e,r){const{doc:{builders:{group:n,indent:i,join:s,line:o,softline:a,hardline:l}},util:{isNextLineEmptyAfterIndex:c}}=r(3130),{prettierVersionSatisfies:u}=r(212),h=(t,{firstSeparator:e=a,lastSeparator:r=e,grouped:s=!0}={})=>{const o=[i([e,t]),r];return s?n(o):o};t.exports={printComments:(t,e,r,n=(()=>!0))=>{if(!t.comments)return"";const i=s(o,e.map((t=>{const e=t.getValue();return e.trailing||e.leading||e.printed?null:n(e)?(e.printed=!0,r.printer.printComment(t)):null}),"comments").filter(Boolean));return u("^2.3.0")?i.parts:i},printPreservingEmptyLines:function(t,e,r,n){const i=[];return t.each(((t,e)=>{const s=t.getValue(),o=s.type;0!==i.length&&"LabelDefinition"!==o&&i.push(l),e>0&&["ContractDefinition","FunctionDefinition"].includes(o)&&i[i.length-2]!==l&&i.push(l),i.push(n(t)),(c(r.originalText,r.locEnd(s)+1)||"FunctionDefinition"===o)&&i.push(l)}),e),i.length>1&&i[i.length-1]===l&&i.pop(),i},printSeparatedList:(t,{firstSeparator:e,separator:r=[",",o],lastSeparator:n,grouped:i}={})=>h(s(r,t),{firstSeparator:e,lastSeparator:n,grouped:i}),printSeparatedItem:h}},212:function(t,e,r){const{util:{getNextNonSpaceNonCommentCharacterIndex:n,makeString:i},version:s}=r(3130),o=r(5712);t.exports={getNextNonSpaceNonCommentCharacter:function(t,e,r){return t.charAt(n(t,e,r))},printString:function(t,e){const r={quote:'"',regex:/"/g},n={quote:"'",regex:/'/g},s=e.singleQuote?n:r,o=s===n?r:n;let a=!1;return(t.includes(s.quote)||t.includes(o.quote))&&(a=(t.match(s.regex)||[]).length>(t.match(o.regex)||[]).length),i(t,a?o.quote:s.quote)},prettierVersionSatisfies:t=>o(s,t),hasNodeIgnoreComment:function(t){return t&&t.comments&&t.comments.length>0&&t.comments.some((t=>"prettier-ignore"===t.value.trim()))}}},8138:function(t,e,r){const{handleComments:n,printComment:i}=r(9018),s=r(3556),o=r(9207),a=r(7766),l=r(2477),c=r(8617),u={"solidity-parse":{astFormat:"solidity-ast",parse:l,...o}},h={"solidity-ast":{canAttachComment:t=>t.type&&"BlockComment"!==t.type&&"LineComment"!==t.type,handleComments:{ownLine:n.handleOwnLineComment,endOfLine:n.handleEndOfLineComment,remaining:n.handleRemainingComment},isBlockComment:n.isBlockComment,massageAstNode:s,print:c,printComment:i}};t.exports={languages:[{linguistLanguageId:237469032,name:"Solidity",type:"programming",color:"#AA6746",aceMode:"text",tmScope:"source.solidity",extensions:[".sol"],parsers:["solidity-parse"],vscodeLanguageIds:["solidity"]}],parsers:u,printers:h,options:a,defaultOptions:{bracketSpacing:!1,tabWidth:4}}},9207:function(t){function e(t,e){return e.range?e.range[t]:e.expression&&e.expression.range?e.expression.range[t]:null}t.exports={locEnd:t=>e(1,t),locStart:t=>e(0,t)}},8073:function(t){t.exports={print:({node:t,path:e,print:r})=>[e.call(r,"baseTypeName"),"[",t.length?e.call(r,"length"):"","]"]}},7719:function(t,e,r){const{doc:{builders:{join:n}}}=r(3130),i={print:({path:t,print:e})=>[n(", ",t.map(e,"names"))," := ",t.call(e,"expression")]};t.exports=i},4601:function(t,e,r){const{doc:{builders:{hardline:n}}}=r(3130),{printComments:i,printPreservingEmptyLines:s,printSeparatedItem:o}=r(3671),a={print:({node:t,options:e,path:r,print:a})=>["{",o([s(r,"operations",e,a),i(t,r,e)],{firstSeparator:n,grouped:!1}),"}"]};t.exports=a},399:function(t,e,r){const{printSeparatedList:n}=r(3671),i={print:({node:t,path:e,print:r,options:i})=>0===t.arguments.length&&")"!==i.originalText.charAt(i.locEnd(t))?t.functionName:[t.functionName,"(",n(e.map(r,"arguments")),")"]};t.exports=i},3243:function(t){t.exports={print:({node:t,path:e,print:r})=>[t.default?"default":["case ",e.call(r,"value")]," ",e.call(r,"block")]}},706:function(t,e,r){const{doc:{builders:{join:n}}}=r(3130),i={print:({path:t,print:e})=>n(" ",["for",t.call(e,"pre"),t.call(e,"condition"),t.call(e,"post"),t.call(e,"body")])};t.exports=i},5193:function(t,e,r){const{doc:{builders:{line:n}}}=r(3130),{printSeparatedItem:i,printSeparatedList:s}=r(3671),o={print:({node:t,path:e,print:r})=>["function ",t.name,"(",s(e.map(r,"arguments")),")",0===t.returnArguments.length?" ":i(["->",s(e.map(r,"returnArguments"),{firstSeparator:n,lastSeparator:""})],{firstSeparator:n}),e.call(r,"body")]};t.exports=o},5979:function(t){t.exports={print:({path:t,print:e})=>["if ",t.call(e,"condition")," ",t.call(e,"body")]}},124:function(t,e,r){const{doc:{builders:{line:n}}}=r(3130),{printSeparatedList:i}=r(3671),s={print:({node:t,path:e,print:r})=>{const s=["let",i(e.map(r,"names"),{firstSeparator:n})];return null!==t.expression&&(s.push(":= "),s.push(e.call(r,"expression"))),s}};t.exports=s},8277:function(t){t.exports={print:({path:t,print:e})=>[t.call(e,"expression"),".",t.call(e,"memberName")]}},9130:function(t){t.exports={print:({node:t,path:e,print:r})=>[e.call(r,"expression")," =: ",t.name]}},2170:function(t,e,r){const{doc:{builders:{hardline:n,join:i}}}=r(3130),s={print:({path:t,print:e})=>["switch ",t.call(e,"expression"),n,i(n,t.map(e,"cases"))]};t.exports=s},5073:function(t,e,r){const n=r(8896),i={print:({node:t,path:e,print:r,options:i})=>{const s=Object.values(n).find((e=>e.match(t.operator)));if(void 0===s)throw new Error(`Assertion error: no printer found for operator ${JSON.stringify(t.operator)}`);return s.print(t,e,r,i)}};t.exports=i},6291:function(t,e,r){const{doc:{builders:{hardline:n,indent:i}}}=r(3130),{printComments:s,printPreservingEmptyLines:o}=r(3671),a={print:({node:t,options:e,path:r,print:a})=>0!==t.statements.length||t.comments?["{",i([n,o(r,"statements",e,a),s(t,r,e)]),n,"}"]:"{}"};t.exports=a},7446:function(t){t.exports={print:({node:t})=>t.value?"true":"false"}},595:function(t){t.exports={print:()=>"break"}},5171:function(t){t.exports={print:()=>"break;"}},7492:function(t,e,r){const{printSeparatedList:n}=r(3671),i=(t,e,r)=>t.parameters?[t.kind||"","(",n(e.map(r,"parameters")),") "]:"",s={print:({node:t,path:e,print:r})=>["catch ",i(t,e,r),e.call(r,"body")]};t.exports=s},3982:function(t,e,r){const{doc:{builders:{group:n,indent:i,line:s}}}=r(3130),o={print:({path:t,print:e})=>n([t.call(e,"condition"),i([s,"? ",t.call(e,"trueExpression"),s,": ",t.call(e,"falseExpression")])])};t.exports=o},7488:function(t){t.exports={print:()=>"continue"}},9471:function(t){t.exports={print:()=>"continue;"}},737:function(t,e,r){const{doc:{builders:{group:n,line:i,hardline:s}}}=r(3130),{printComments:o,printPreservingEmptyLines:a,printSeparatedItem:l,printSeparatedList:c}=r(3671),u=(t,e,r)=>t.baseContracts.length>0?[" is",c(e.map(r,"baseContracts"),{firstSeparator:i})]:i,h=(t,e,r,n)=>t.subNodes.length>0||t.comments?l([a(e,"subNodes",r,n),o(t,e,r)],{firstSeparator:s,grouped:!1}):"",p={print:({node:t,options:e,path:r,print:i})=>[n(["abstract"===t.kind?"abstract contract":t.kind," ",t.name,u(t,r,i),"{"]),h(t,r,e,i),"}"]};t.exports=p},8260:function(t,e,r){const{printSeparatedList:n}=r(3671),i=(t,e,r)=>t.parameters&&t.parameters.length>0?n(e.map(r,"parameters")):"",s={print:({node:t,path:e,print:r})=>["error ",t.name,"(",i(t,e,r),");"]};t.exports=s},4905:function(t){t.exports={print:({node:t})=>t.value}},4890:function(t,e,r){const{doc:{builders:{group:n,indent:i,line:s}}}=r(3130),{printSeparatedItem:o}=r(3671),a=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")," "]:n([i([s,e.call(r,"body")]),s]),l={print:({node:t,path:e,print:r})=>["do",a(t,e,r),"while (",o(e.call(r,"condition")),");"]};t.exports=l},7278:function(t){const e=t=>t.stateMutability&&t.stateMutability.length>0?[" ",t.stateMutability]:"",r={print:({node:t})=>[t.name,e(t)]};t.exports=r},8733:function(t){t.exports={print:({path:t,print:e})=>["emit ",t.call(e,"eventCall"),";"]}},2062:function(t,e,r){const{doc:{builders:{group:n,hardline:i}}}=r(3130),{printSeparatedList:s}=r(3671),o={print:({node:t,path:e,print:r})=>n(["enum ",t.name," {",s(e.map(r,"members"),{firstSeparator:i}),"}"])};t.exports=o},2454:function(t){t.exports={print:({node:t})=>t.name}},2032:function(t,e,r){const{printSeparatedList:n}=r(3671),i=(t,e,r)=>t.parameters&&t.parameters.length>0?n(e.map(r,"parameters")):"",s={print:({node:t,path:e,print:r})=>["event ",t.name,"(",i(t,e,r),")",t.isAnonymous?" anonymous":"",";"]};t.exports=s},4025:function(t,e,r){const{doc:{builders:{hardline:n}}}=r(3130),{printComments:i}=r(3671),s={print:({node:t,options:e,path:r,print:s})=>{const o=[];if("IfStatement"===r.getParentNode().type&&t.comments&&t.comments.length){const s=i(t,r,e);s&&s.length&&(o.push(s),o.push(n))}return o.push(r.call(s,"expression")),o.push(t.omitSemicolon?"":";"),o}};t.exports=s},2487:function(t){t.exports={print:({node:t,path:e,print:r})=>[e.call(r,"typeName")," constant ",t.name," = ",e.call(r,"initialValue"),";"]}},5777:function(t,e,r){const{doc:{builders:{group:n,indent:i,line:s}}}=r(3130),{printSeparatedList:o}=r(3671),a=(t,e,r)=>t.initExpression?e.call(r,"initExpression"):"",l=(t,e,r)=>t.conditionExpression?e.call(r,"conditionExpression"):"",c=(t,e,r)=>t.loopExpression.expression?e.call(r,"loopExpression"):"",u=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:n(i([s,e.call(r,"body")])),h={print:({node:t,path:e,print:r})=>["for (",o([a(t,e,r),l(t,e,r),c(t,e,r)],{separator:t.initExpression||t.conditionExpression||t.loopExpression.expression?[";",s]:";"}),")",u(t,e,r)]};t.exports=h},3582:function(t,e,r){const{doc:{builders:{group:n,indentIfBreak:i,label:s,line:o,softline:a}}}=r(3130),{printSeparatedList:l}=r(3671);let c=0;const u={print:({node:t,path:e,print:r,options:u})=>{let h=e.call(r,"expression"),p=")";return t.arguments&&t.arguments.length>0&&(p=t.identifiers&&t.identifiers.length>0?((t,e,r)=>{const n=t.map(e,"identifiers");return["{",l(t.map(e,"arguments").map(((t,e)=>[n[e],": ",t])),{firstSeparator:r.bracketSpacing?o:a,lastSeparator:[r.bracketSpacing?o:a,"})"]})]})(e,r,u):((t,e)=>l(t.map(e,"arguments"),{lastSeparator:[a,")"]}))(e,r)),"MemberAccessChain"===h.label?(h=n(h.contents,{id:`FunctionCall.expression-${c}`}),c+=1,p=i(p,{groupId:h.id}),s("MemberAccessChain",[h,"(",p])):[h,"(",p]}};t.exports=u},4354:function(t,e,r){const{doc:{builders:{dedent:n,group:i,indent:s,join:o,line:a}},util:{getNextNonSpaceNonCommentCharacterIndex:l}}=r(3130),{printComments:c,printSeparatedItem:u,printSeparatedList:h}=r(3671),p=(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)],d=(t,e,r,n,i)=>{if(e[t]&&e[t].length>0)return h(r.map(n,t),{grouped:!1});if(e.comments&&e.comments.length>0){const t=c(e,r,i,(t=>")"===i.originalText.charAt(l(i.originalText,t,i.locEnd))));return t.length>0?u(t):""}return""},f=t=>t.visibility&&"default"!==t.visibility?[a,t.visibility]:"",_=t=>t.isVirtual?[a,"virtual"]:"",y=(t,e,r)=>t.override?0===t.override.length?[a,"override"]:[a,"override(",h(e.map(r,"override")),")"]:"",g=t=>t.stateMutability?[a,t.stateMutability]:"",m=(t,e,r)=>t.modifiers.length>0?[a,o(a,e.map(r,"modifiers"))]:"",x=(t,e,r,n)=>t.returnParameters?[a,"returns (",i(d("returnParameters",t,e,r,n)),")"]:"",T=t=>t.body?n(a):";",v=(t,e,r)=>t.body?e.call(r,"body"):"",S={print:({node:t,path:e,print:r,options:n})=>[i([p(t,n),"(",d("parameters",t,e,r,n),")",s(i([c(t,e,n),f(t),g(t),_(t),y(t,e,r),m(t,e,r),x(t,e,r,n),T(t)]))]),v(t,e,r)]};t.exports=S},4350:function(t,e,r){const{doc:{builders:{group:n,indent:i,line:s}}}=r(3130),{printSeparatedList:o}=r(3671),a=(t,e,r)=>t.returnTypes.length>0?[s,"returns (",o(e.map(r,"returnTypes")),")"]:"",l=t=>t.visibility&&"default"!==t.visibility?[s,t.visibility]:"",c=t=>t.stateMutability&&"default"!==t.stateMutability?[s,t.stateMutability]:"",u={print:({node:t,path:e,print:r})=>["function(",o(e.map(r,"parameterTypes")),")",i(n([l(t),c(t),a(t,e,r)]))]};t.exports=u},690:function(t,e,r){const{doc:{builders:{join:n,line:i}}}=r(3130),{printString:s}=r(212),o={print:({node:t,options:e})=>{const r=t.parts.map((t=>`hex${s(t,e)}`));return n(i,r)}};t.exports=o},6660:function(t){t.exports={print:({node:t})=>t.value}},6464:function(t){t.exports={print:({node:t})=>t.name}},2758:function(t,e,r){const{doc:{builders:{group:n,hardline:i,indent:s,line:o}}}=r(3130),{printComments:a,printSeparatedItem:l}=r(3671),c=(t,e,r)=>"Block"===t.falseBody.type||"IfStatement"===t.falseBody.type?[" ",e.call(r,"falseBody")]:n(s([o,e.call(r,"falseBody")])),u={print:({node:t,options:e,path:r,print:u})=>{const h=(t.comments||[]).filter((t=>!t.leading&&!t.trailing)),p=[];return p.push("if (",l(r.call(u,"condition")),")"),p.push(((t,e,r)=>{if("Block"===t.trueBody.type)return[" ",e.call(r,"trueBody")];const a="IfStatement"===t.trueBody.type;return n(s([a?i:o,e.call(r,"trueBody")]))})(t,r,u)),h.length&&t.falseBody&&(p.push(i),p.push(a(t,r,e))),p.push(((t,e,r,n)=>t.falseBody?["Block"===t.trueBody.type&&0===n.length?" ":i,"else",c(t,e,r)]:"")(t,r,u,h)),p}};t.exports=u},3315:function(t,e,r){const{doc:{builders:{group:n,line:i,softline:s}}}=r(3130),o=r(9038),a=r(5712),{printSeparatedList:l}=r(3671),{printString:c}=r(212),u={print:({node:t,options:e})=>{const r=c(t.path,e);let u;if(t.unitAlias)u=[r," as ",t.unitAlias];else if(t.symbolAliases){const n=o(e.compiler),c=t.symbolAliases.map((([t,e])=>e?`${t} as ${e}`:t));let h,p;n&&a(n,">=0.7.4")?(h=e.bracketSpacing?i:s,p=[",",i]):(h=e.bracketSpacing?" ":"",p=", "),u=["{",l(c,{firstSeparator:h,separator:p}),"} from ",r]}else u=r;return n(["import ",u,";"])}};t.exports=u},5421:function(t,e,r){const{doc:{builders:{group:n,indent:i,indentIfBreak:s,label:o,softline:a}}}=r(3130);let l=0;const c={print:({path:t,print:e})=>{let r=t.call(e,"base"),c=n([i([a,t.call(e,"index")]),a,"]"]);return"MemberAccessChain"===r.label?(r=n(r.contents,{id:`IndexAccess.base-${l}`}),l+=1,c=s(c,{groupId:r.id}),o("MemberAccessChain",[r,"[",c])):[r,"[",c]}};t.exports=c},4954:function(t){t.exports={print:({node:t,path:e,print:r})=>[e.call(r,"base"),"[",t.indexStart?e.call(r,"indexStart"):"",":",t.indexEnd?e.call(r,"indexEnd"):"","]"]}},9487:function(t,e,r){const{printSeparatedList:n}=r(3671),i=(t,e,r)=>t.arguments&&t.arguments.length?["(",n(e.map(r,"arguments")),")"]:"",s={print:({node:t,path:e,print:r})=>[e.call(r,"baseName"),i(t,e,r)]};t.exports=s},3884:function(t,e,r){const{printString:n}=r(212),{printSeparatedList:i}=r(3671),s={print:({node:t,path:e,print:r,options:s})=>["assembly ",t.language?`${n(t.language,s)} `:"",t.flags&&t.flags.length>0?["(",i(t.flags.map((t=>n(t,s)))),") "]:"",e.call(r,"body")]};t.exports=s},7117:function(t,e,r){const{doc:{builders:{dedent:n,line:i}}}=r(3130),s={print:({node:t})=>[n(i),t.name,":"]};t.exports=s},8109:function(t){t.exports={print:({path:t,print:e})=>{const r=t.call(e,"keyType"),n=t.call(e,"keyName"),i=t.call(e,"valueType"),s=t.call(e,"valueName");return["mapping(",r,n?` ${n}`:""," => ",i,s?` ${s}`:"",")"]}}},8426:function(t,e,r){const{doc:{builders:{group:n,indent:i,label:s,softline:o}}}=r(3130),a={print:({node:t,path:e,print:r})=>{let a=e.call(r,"expression");Array.isArray(a)&&(a=a.flat());const l=[a,s("separator",[o,"."]),t.memberName].flat();return((t,e)=>{let r=0,n=t,i=e.getParentNode(r);for(;i&&["FunctionCall","IndexAccess","NameValueExpression","MemberAccess"].includes(i.type);){switch(i.type){case"MemberAccess":return!1;case"IndexAccess":if(n!==i.base)return!0;break;case"FunctionCall":if(n!==i.expression)return!0}r+=1,n=i,i=e.getParentNode(r)}return!0})(t,e)?(t=>{const e=t.findIndex((t=>"separator"===t.label)),r=t.slice(0,e),o=n(i(t.slice(e)));return s("MemberAccessChain",n([r,o]))})(l):l}};t.exports=a},1110:function(t,e,r){const{doc:{builders:{group:n,hardline:i,indent:s,line:o}}}=r(3130),{printSeparatedList:a}=r(3671),l=(t,e,r)=>t.parameters&&t.parameters.length>0?["(",a(e.map(r,"parameters"),{separator:[",",t.parameters.length>2?i:o]}),")"]:"()",c=t=>t.isVirtual?[o,"virtual"]:"",u=(t,e,r)=>t.override?0===t.override.length?[o,"override"]:[o,"override(",a(e.map(r,"override")),")"]:"",h=(t,e,r)=>t.body?t.isVirtual?n([" ",e.call(r,"body")]):[" ",e.call(r,"body")]:";",p={print:({node:t,path:e,print:r})=>["modifier ",t.name,l(t,e,r),n(s([c(t),u(t,e,r)])),h(t,e,r)]};t.exports=p},6965:function(t,e,r){const{printComments:n,printSeparatedList:i}=r(3671),s=(t,e,r,s)=>t.arguments?t.arguments.length>0?["(",i(e.map(r,"arguments")),")"]:"()":t.comments&&t.comments.some((t=>!t.leading&&!t.trailing&&!t.printed))?["(",n(t,e,s),")"]:"",o={print:({node:t,path:e,print:r,options:n})=>[t.name,s(t,e,r,n)]};t.exports=o},4676:function(t){t.exports={print:({path:t,print:e})=>[t.call(e,"expression"),"{",t.call(e,"arguments"),"}"]}},920:function(t,e,r){const{doc:{builders:{line:n,softline:i}}}=r(3130),{printSeparatedList:s}=r(3671),o={print:({node:t,path:e,print:r,options:o})=>s(e.map(r,"arguments").map(((e,r)=>[t.names[r],": ",e])),{firstSeparator:o.bracketSpacing?n:i})};t.exports=o},1454:function(t){t.exports={print:({path:t,print:e})=>["new ",t.call(e,"typeName")]}},4681:function(t){t.exports={print:({node:t})=>t.subdenomination?[t.number," ",t.subdenomination]:t.number}},5627:function(t){t.exports={print:({node:t})=>["pragma ",t.name," ",t.value,";"]}},9147:function(t,e,r){const{doc:{builders:{group:n,indent:i,line:s}}}=r(3130),o=(t,e,r)=>t.expression?"TupleExpression"===t.expression.type?[" ",e.call(r,"expression")]:n(i([s,e.call(r,"expression")])):"",a={print:({node:t,path:e,print:r})=>["return",o(t,e,r),";"]};t.exports=a},4089:function(t){t.exports={print:({path:t,print:e})=>["revert ",t.call(e,"revertCall"),";"]}},7233:function(t,e,r){const{doc:{builders:{line:n}}}=r(3130),{printPreservingEmptyLines:i}=r(3671),s={print:({options:t,path:e,print:r})=>[i(e,"children",t,r),t.parentParser?"":n]};t.exports=s},6577:function(t,e,r){const{doc:{builders:{group:n,indent:i,line:s}}}=r(3130),o=(t,e,r)=>t.initialValue?"TupleExpression"===t.initialValue.type?[" = ",e.call(r,"initialValue")]:n([" =",i([s,e.call(r,"initialValue")])]):"",a={print:({node:t,path:e,print:r})=>[...e.map(r,"variables"),o(t,e,r),";"]};t.exports=a},9692:function(t,e,r){const{doc:{builders:{join:n,hardline:i}}}=r(3130),{printString:s}=r(212),o={print:({node:t,options:e})=>{const r=t.parts.map(((r,n)=>(t.isUnicode[n]?"unicode":"")+s(r,e)));return n(i,r)}};t.exports=o},6280:function(t,e,r){const{doc:{builders:{hardline:n}}}=r(3130),{printSeparatedList:i}=r(3671),s={print:({node:t,path:e,print:r})=>["struct ",t.name," {",i(e.map(r,"members"),{firstSeparator:n,separator:[";",n],lastSeparator:[";",n]}),"}"]};t.exports=s},1075:function(t){t.exports={print:()=>"throw;"}},6610:function(t,e,r){const{doc:{builders:{join:n,line:i}}}=r(3130),{printSeparatedItem:s,printSeparatedList:o}=r(3671),a={print:({node:t,path:e,print:r})=>{let a=["try",s(e.call(r,"expression"),{firstSeparator:i})];const l=((t,e,r)=>t.returnParameters?["returns (",o(e.map(r,"returnParameters")),")"]:"")(t,e,r);return l&&(a=a.concat([l," "])),a=a.concat([e.call(r,"body")," ",n(" ",e.map(r,"catchClauses"))]),a}};t.exports=a},3377:function(t,e,r){const{doc:{builders:{group:n}}}=r(3130),{printSeparatedList:i}=r(3671),s=(t,e,r)=>t.components&&1===t.components.length&&"BinaryOperation"===t.components[0].type?e.map(r,"components"):[i(e.map(r,"components"))],o={print:({node:t,path:e,print:r})=>n([t.isArray?"[":"(",...s(t,e,r),t.isArray?"]":")"])};t.exports=o},9466:function(t){t.exports={print:({node:t})=>["type ",t.name," is ",t.definition.name,";"]}},334:function(t){t.exports={print:({node:t,path:e,print:r})=>t.isPrefix?[t.operator,"delete"===t.operator?" ":"",e.call(r,"subExpression")]:[e.call(r,"subExpression"),t.operator]}},2002:function(t,e,r){const{doc:{builders:{group:n}}}=r(3130),i={print:({path:t,print:e})=>n(["unchecked ",t.call(e,"block")])};t.exports=i},6724:function(t){t.exports={print:({node:t})=>t.namePath}},4904:function(t,e,r){const{doc:{builders:{line:n,softline:i}}}=r(3130),{printSeparatedList:s}=r(3671),o={print:({node:t,path:e,print:r,options:o})=>["using ",t.functions&&t.functions.length?["{",s(t.functions,{firstSeparator:o.bracketSpacing?n:i}),"}"]:t.libraryName," for ",t.typeName?e.call(r,"typeName"):"*",t.isGlobal?" global;":";"]};t.exports=o},5768:function(t,e,r){const{doc:{builders:{group:n,indent:i,line:s}}}=r(3130),{printSeparatedList:o}=r(3671),a=t=>t.isIndexed?" indexed":"",l=t=>t.visibility&&"default"!==t.visibility?[s,t.visibility]:"",c=t=>t.isDeclaredConst?" constant":"",u=t=>t.storageLocation&&"default"!==t.visibility?[s,t.storageLocation]:"",h=t=>t.isImmutable?" immutable":"",p=(t,e,r)=>t.override?0===t.override.length?[s,"override"]:[s,"override(",o(e.map(r,"override")),")"]:"",d=t=>t.name?[" ",t.name]:"",f={print:({node:t,path:e,print:r})=>t.typeName?n([e.call(r,"typeName"),i([a(t),l(t),c(t),u(t),h(t),p(t,e,r),d(t)])]):t.name};t.exports=f},7529:function(t,e,r){const{doc:{builders:{group:n,indentIfBreak:i}}}=r(3130),{printSeparatedList:s}=r(3671);let o=0;const a={print:({node:t,path:e,print:r})=>{const a=0===t.variables.filter((t=>t&&t.typeName)).length,l=n([a?"var ":"",(c=e.map(r,"variables"),u=t.variables.length>1||a,u?["(",s(c),")"]:c)],{id:`VariableDeclarationStatement.variables-${o}`});var c,u;o+=1;const h=((t,e,r)=>t.initialValue?[" = ",e.call(r,"initialValue")]:"")(t,e,r);return n([l,i(h,{groupId:l.id}),t.omitSemicolon?"":";"])}};t.exports=a},8149:function(t,e,r){const{doc:{builders:{group:n,indent:i,line:s}}}=r(3130),{printSeparatedItem:o}=r(3671),a=(t,e,r)=>"Block"===t.body.type?[" ",e.call(r,"body")]:n(i([s,e.call(r,"body")])),l={print:({node:t,path:e,print:r})=>["while (",o(e.call(r,"condition")),")",a(t,e,r)]};t.exports=l},6780:function(t,e,r){t.exports={ArrayTypeName:r(8073),AssemblyAssignment:r(7719),AssemblyBlock:r(4601),AssemblyCall:r(399),AssemblyCase:r(3243),AssemblyFor:r(706),AssemblyFunctionDefinition:r(5193),AssemblyIf:r(5979),AssemblyLocalDefinition:r(124),AssemblyMemberAccess:r(8277),AssemblyStackAssignment:r(9130),AssemblySwitch:r(2170),BinaryOperation:r(5073),Block:r(6291),BooleanLiteral:r(7446),Break:r(595),BreakStatement:r(5171),CatchClause:r(7492),Conditional:r(3982),Continue:r(7488),ContinueStatement:r(9471),ContractDefinition:r(737),CustomErrorDefinition:r(8260),DecimalNumber:r(4905),DoWhileStatement:r(4890),ElementaryTypeName:r(7278),EmitStatement:r(8733),EnumDefinition:r(2062),EnumValue:r(2454),EventDefinition:r(2032),ExpressionStatement:r(4025),FileLevelConstant:r(2487),ForStatement:r(5777),FunctionCall:r(3582),FunctionDefinition:r(4354),FunctionTypeName:r(4350),HexLiteral:r(690),HexNumber:r(6660),Identifier:r(6464),IfStatement:r(2758),ImportDirective:r(3315),IndexAccess:r(5421),IndexRangeAccess:r(4954),InheritanceSpecifier:r(9487),InlineAssemblyStatement:r(3884),LabelDefinition:r(7117),Mapping:r(8109),MemberAccess:r(8426),ModifierDefinition:r(1110),ModifierInvocation:r(6965),NameValueExpression:r(4676),NameValueList:r(920),NewExpression:r(1454),NumberLiteral:r(4681),PragmaDirective:r(5627),ReturnStatement:r(9147),RevertStatement:r(4089),SourceUnit:r(7233),StateVariableDeclaration:r(6577),StringLiteral:r(9692),StructDefinition:r(6280),ThrowStatement:r(1075),TryStatement:r(6610),TupleExpression:r(3377),TypeDefinition:r(9466),UnaryOperation:r(334),UncheckedStatement:r(2002),UserDefinedTypeName:r(6724),UsingForDeclaration:r(4904),VariableDeclaration:r(5768),VariableDeclarationStatement:r(7529),WhileStatement:r(8149)}},7766:function(t){const e="Global",r="Common",n={printWidth:{since:"0.0.0",category:e,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:e,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:e,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},bracketSpacing:{since:"0.0.0",category:r,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:r,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."}};t.exports=n},2477:function(t,e,r){const n=r(2167),i=r(9298),s=r(9038),o=r(5712),a=(t,e)=>"BinaryOperation"===t.type&&e.includes(t.operator)?{type:"TupleExpression",components:[t],isArray:!1}:t;t.exports=function(t,e,r=e){const l=s(r.compiler),c=i.parse(t,{loc:!0,range:!0});return c.comments=n(t),i.visit(c,{PragmaDirective(t){"solidity"===t.name&&l&&(o(l,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)}"`},ElementaryTypeName(t){l&&o(l,"<0.8.0")||"byte"!==t.name||(t.name="bytes1")},BinaryOperation(t){switch(t.operator){case"+":case"-":t.left=a(t.left,["%"]),t.right=a(t.right,["%"]);break;case"*":t.left=a(t.left,["/","%"]);break;case"/":t.left=a(t.left,["*","%"]);break;case"%":t.left=a(t.left,["*","/","%"]);break;case"**":if(!l)break;if(o(l,"<0.8.0")){t.left=a(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=a(t.left,["+","-","*","/","**","<<",">>"]),t.right=a(t.right,["+","-","*","/","**"]);break;case"&":t.left=a(t.left,["+","-","*","/","**","<<",">>"]),t.right=a(t.right,["+","-","*","/","**","<<",">>"]);break;case"|":t.left=a(t.left,["+","-","*","/","**","<<",">>","&","^"]),t.right=a(t.right,["+","-","*","/","**","<<",">>","&","^"]);break;case"^":t.left=a(t.left,["+","-","*","/","**","<<",">>","&"]),t.right=a(t.right,["+","-","*","/","**","<<",">>","&"]);break;case"||":t.left=a(t.left,["&&"]),t.right=a(t.right,["&&"])}}}),c}},8:function(t,e,r){"use strict";const{util:{addLeadingComment:n,addTrailingComment:i,addDanglingComment:s,getNextNonSpaceNonCommentCharacterIndex:o,hasNewline:a,hasNewlineInRange:l}}=r(3130),{getNextNonSpaceNonCommentCharacter:c}=r(212);function u(t,e){if(!t.body)return void s(t,e);const r=t.body.filter((t=>"EmptyStatement"!==t.type));0===r.length?s(t,e):n(r[0],e)}function h(t,e){"BlockStatement"===t.type?u(t,e):n(t,e)}function p(t,e,r,o,a,l){return!(!r||"IfStatement"!==r.type||!o||(")"===c(t,a,l.locEnd)?(i(e,a),0):e===r.trueBody&&o===r.falseBody?("ExpressionStatement"===e.type?i(e,a):s(r,a),0):"ExpressionStatement"===o.type?(u(o,a),0):"IfStatement"===o.type?(h(o.trueBody,a),0):r.trueBody!==o||(n(o,a),0)))}function d(t,e,r,n,s,o){return!(!r||"WhileStatement"!==r.type||!n||(")"===c(t,s,o.locEnd)?(i(e,s),0):"BlockStatement"!==n.type||(u(n,s),0)))}function f(t,e,r,n){return!(!t||"TryStatement"!==t.type&&"CatchClause"!==t.type||!r||("CatchClause"===t.type&&e?(i(e,n),0):"BlockStatement"===r.type?(u(r,n),0):"TryStatement"===r.type?(h(r.finalizer,n),0):"CatchClause"!==r.type||(h(r.body,n),0)))}function _(t,e,r,s){return!(!(t&&("ClassDeclaration"===t.type||"ClassExpression"===t.type)&&t.decorators&&t.decorators.length>0)||r&&"Decorator"===r.type||(t.decorators&&0!==t.decorators.length?i(t.decorators[t.decorators.length-1],s):n(t,s),0))}function y(t,e,r,n,s){return(e&&r&&("Property"===e.type||"MethodDefinition"===e.type)&&"Identifier"===r.type&&e.key===r&&":"!==c(t,r,s.locEnd)||!(!r||!e||"Decorator"!==r.type||"ClassMethod"!==e.type&&"ClassProperty"!==e.type&&"TSAbstractClassProperty"!==e.type&&"TSAbstractMethodDefinition"!==e.type&&"MethodDefinition"!==e.type))&&(i(r,n),!0)}function g(t,e,r,n,s,o){return(e&&"FunctionTypeParam"===e.type&&r&&"FunctionTypeAnnotation"===r.type&&n&&"FunctionTypeParam"!==n.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,s,o.locEnd)))&&(i(e,s),!0)}function m(t,e){return!(!t||"ImportSpecifier"!==t.type||(n(t,e),0))}function x(t,e,r,i){return e&&e.body&&0===e.body.length?(i?s(e,r):n(e,r),!0):!(!t||"Program"!==t.type||0!==t.body.length||!t.directives||0!==t.directives.length||(i?s(t,r):n(t,r),0))}t.exports={handleOwnLineComment:function(t,e,r,s,o){const{precedingNode:l,enclosingNode:c,followingNode:u}=t;return!!(g(e,l,c,u,t,r)||function(t,e,r){return!(!t||"MemberExpression"!==t.type||!e||"Identifier"!==e.type||(n(t,r),0))}(c,u,t)||p(e,l,c,u,t,r)||d(e,l,c,u,t,r)||f(c,l,u,t)||_(c,0,u,t)||m(c,t)||function(t,e,r){return!(!t||"ForInStatement"!==t.type&&"ForOfStatement"!==t.type||(n(t,r),0))}(c,0,t)||function(t,e,r,n){return!(!e||"UnionTypeAnnotation"!==e.type&&"TSUnionType"!==e.type||(i(t,n),0))}(l,c,0,t)||x(c,s,t,o)||function(t,e,r,n,s){return!!(r&&"ImportSpecifier"===r.type&&e&&"ImportDeclaration"===e.type&&a(t,s.locEnd(n)))&&(i(r,n),!0)}(e,c,l,t,r)||function(t,e){return!(!t||"AssignmentPattern"!==t.type||(n(t,e),0))}(c,t)||y(e,c,l,t,r))},handleEndOfLineComment:function(t,e,r,i,s){const{precedingNode:o,enclosingNode:a,followingNode:c}=t;return!!(g(e,o,a,c,t,r)||function(t,e,r,i,s,o){const a=e&&!l(s,o.locEnd(e),o.locStart(i));return!(e&&a||!t||"ConditionalExpression"!==t.type||!r||(n(r,i),0))}(a,o,c,t,e,r)||m(a,t)||p(e,o,a,c,t,r)||d(e,o,a,c,t,r)||f(a,o,c,t)||_(a,0,c,t)||function(t,e){return!(!t||"LabeledStatement"!==t.type||(n(t,e),0))}(a,t)||function(t,e,r){return!!(e&&"CallExpression"===e.type&&t&&e.callee===t&&e.arguments.length>0)&&(n(e.arguments[0],r),!0)}(o,a,t)||function(t,e){return!(!t||"Property"!==t.type&&"ObjectProperty"!==t.type||(n(t,e),0))}(a,t)||x(a,i,t,s)||function(t,e,r){return!(!t||"TypeAlias"!==t.type||(n(t,r),0))}(a,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||(n(e,r),0))}(a,c,t))},handleRemainingComment:function(t,e,r,a,l){const{precedingNode:u,enclosingNode:h,followingNode:f}=t;return!!(p(e,u,h,f,t,r)||d(e,u,h,f,t,r)||function(t,e,r){return!(!t||"ObjectProperty"!==t.type&&"Property"!==t.type||!t.shorthand||t.key!==e||"AssignmentPattern"!==t.value.type||(i(t.value.left,r),0))}(h,u,t)||function(t,e,r,n){return!(")"!==c(t,r,n.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||(s(e.value,r),0):(s(e,r),0)))}(e,h,t,r)||y(e,h,u,t,r)||x(h,a,t,l)||function(t,e,r,n){if(!e||"ArrowFunctionExpression"!==e.type)return!1;const i=o(t,r,n);return"=>"===t.substr(i,2)&&(s(e,r),!0)}(e,h,t,r)||function(t,e,r,n,s){return!("("!==c(t,n,s.locEnd)||!r||!e||"FunctionDeclaration"!==e.type&&"FunctionExpression"!==e.type&&"ClassMethod"!==e.type&&"MethodDefinition"!==e.type&&"ObjectMethod"!==e.type||(i(r,n),0))}(e,h,u,t,r)||function(t,e,r,s,o){return!(!e||"TSMappedType"!==e.type||(s&&"TSTypeParameter"===s.type&&s.name?(n(s.name,o),0):!r||"TSTypeParameter"!==r.type||!r.constraint||(i(r.constraint,o),0)))}(0,h,u,f,t)||function(t,e){return!(!t||"ContinueStatement"!==t.type&&"BreakStatement"!==t.type||t.label||(i(t,e),0))}(h,t))},isBlockComment:function(t){return"Block"===t.type||"CommentBlock"===t.type}}},8617:function(t,e,r){const n=r(6780),{hasNodeIgnoreComment:i,prettierVersionSatisfies:s}=r(212),o=r(9857);let a=!1;t.exports=function(t,e,r){!function(){if(!a){if(!s(">=2.3.0 || >=3.0.0-alpha.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.');a=!0}}();const l=t.getValue();if(null===l)return"";if(!(l.type in n))throw new Error(`Unknown type: ${JSON.stringify(l.type)}`);return i(l)?(o(t),e.originalText.slice(e.locStart(l),e.locEnd(l)+1)):n[l.type].print({node:l,options:e,path:t,print:r})}},3130:function(e){"use strict";e.exports=t}},r={},function t(n){var i=r[n];if(void 0!==i)return i.exports;var s=r[n]={exports:{}};return e[n](s,s.exports,t),s.exports}(8138);var e,r}));
3
- //# sourceMappingURL=standalone.js.map