prettier-plugin-solidity 2.4.0 → 2.5.0

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 (839) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +16 -15
  3. package/dist/0808af9bee8157de6fd8.wasm +0 -0
  4. package/dist/9e1048905777a9eb184a.wasm +0 -0
  5. package/dist/binary-operator-printers/assignment.js +0 -2
  6. package/dist/binary-operator-printers/assignment.js.map +1 -1
  7. package/dist/clean.js +4 -2
  8. package/dist/clean.js.map +1 -1
  9. package/dist/common/printer-helpers.js +1 -1
  10. package/dist/common/printer-helpers.js.map +1 -1
  11. package/dist/d7389a6652c8528e2873.wasm +0 -0
  12. package/dist/index.js +9 -9
  13. package/dist/nodes/Conditional.js +1 -1
  14. package/dist/nodes/Conditional.js.map +1 -1
  15. package/dist/nodes/VariableDeclarationStatement.js +1 -1
  16. package/dist/nodes/VariableDeclarationStatement.js.map +1 -1
  17. package/dist/slang-comments/handler.js +1 -1
  18. package/dist/slang-comments/handlers/add-collection-adjacent-comment.js +17 -0
  19. package/dist/slang-comments/handlers/add-collection-adjacent-comment.js.map +1 -0
  20. package/dist/slang-comments/handlers/add-collection-first-comment.js +1 -2
  21. package/dist/slang-comments/handlers/add-collection-first-comment.js.map +1 -1
  22. package/dist/slang-comments/handlers/add-collection-last-comment.js +1 -2
  23. package/dist/slang-comments/handlers/add-collection-last-comment.js.map +1 -1
  24. package/dist/slang-comments/handlers/handle-block-comments.js +4 -13
  25. package/dist/slang-comments/handlers/handle-block-comments.js.map +1 -1
  26. package/dist/slang-comments/handlers/handle-contract-definition-comments.js +22 -24
  27. package/dist/slang-comments/handlers/handle-contract-definition-comments.js.map +1 -1
  28. package/dist/slang-comments/handlers/handle-contract-specifiers-comments.js +2 -3
  29. package/dist/slang-comments/handlers/handle-contract-specifiers-comments.js.map +1 -1
  30. package/dist/slang-comments/handlers/handle-else-branch-comments.js +2 -3
  31. package/dist/slang-comments/handlers/handle-else-branch-comments.js.map +1 -1
  32. package/dist/slang-comments/handlers/handle-if-statement-comments.js +4 -5
  33. package/dist/slang-comments/handlers/handle-if-statement-comments.js.map +1 -1
  34. package/dist/slang-comments/handlers/handle-interface-definition-comments.js +5 -5
  35. package/dist/slang-comments/handlers/handle-interface-definition-comments.js.map +1 -1
  36. package/dist/slang-comments/handlers/handle-library-definition-comments.js +5 -5
  37. package/dist/slang-comments/handlers/handle-library-definition-comments.js.map +1 -1
  38. package/dist/slang-comments/handlers/handle-member-access-expression-comments.js +1 -2
  39. package/dist/slang-comments/handlers/handle-member-access-expression-comments.js.map +1 -1
  40. package/dist/slang-comments/handlers/handle-modifier-invocation-comments.js +4 -5
  41. package/dist/slang-comments/handlers/handle-modifier-invocation-comments.js.map +1 -1
  42. package/dist/slang-comments/handlers/handle-parameters-declaration-comments.js +4 -13
  43. package/dist/slang-comments/handlers/handle-parameters-declaration-comments.js.map +1 -1
  44. package/dist/slang-comments/handlers/handle-positional-arguments-declaration-comments.js +5 -13
  45. package/dist/slang-comments/handlers/handle-positional-arguments-declaration-comments.js.map +1 -1
  46. package/dist/slang-comments/handlers/handle-source-unit-members-comments.js +3 -14
  47. package/dist/slang-comments/handlers/handle-source-unit-members-comments.js.map +1 -1
  48. package/dist/slang-comments/handlers/handle-struct-definition-comments.js +4 -17
  49. package/dist/slang-comments/handlers/handle-struct-definition-comments.js.map +1 -1
  50. package/dist/slang-comments/handlers/handle-tuple-deconstruction-elements-comments.js +29 -0
  51. package/dist/slang-comments/handlers/handle-tuple-deconstruction-elements-comments.js.map +1 -0
  52. package/dist/slang-comments/handlers/handle-tuple-deconstruction-statement-comments.js +33 -0
  53. package/dist/slang-comments/handlers/handle-tuple-deconstruction-statement-comments.js.map +1 -0
  54. package/dist/slang-comments/handlers/handle-while-statement-comments.js +5 -6
  55. package/dist/slang-comments/handlers/handle-while-statement-comments.js.map +1 -1
  56. package/dist/slang-comments/handlers/handle-yul-block-comments.js +4 -15
  57. package/dist/slang-comments/handlers/handle-yul-block-comments.js.map +1 -1
  58. package/dist/slang-comments/handlers/index.js +19 -15
  59. package/dist/slang-comments/handlers/index.js.map +1 -1
  60. package/dist/slang-comments/index.js +2 -2
  61. package/dist/slang-comments/printer.js +1 -1
  62. package/dist/slang-nodes/AbicoderPragma.js +2 -3
  63. package/dist/slang-nodes/AbicoderPragma.js.map +1 -1
  64. package/dist/slang-nodes/AbicoderVersion.js +1 -1
  65. package/dist/slang-nodes/AdditiveExpression.js +6 -7
  66. package/dist/slang-nodes/AdditiveExpression.js.map +1 -1
  67. package/dist/slang-nodes/AddressType.js +1 -1
  68. package/dist/slang-nodes/AndExpression.js +4 -5
  69. package/dist/slang-nodes/AndExpression.js.map +1 -1
  70. package/dist/slang-nodes/ArgumentsDeclaration.js +5 -6
  71. package/dist/slang-nodes/ArgumentsDeclaration.js.map +1 -1
  72. package/dist/slang-nodes/ArrayExpression.js +2 -3
  73. package/dist/slang-nodes/ArrayExpression.js.map +1 -1
  74. package/dist/slang-nodes/ArrayTypeName.js +4 -5
  75. package/dist/slang-nodes/ArrayTypeName.js.map +1 -1
  76. package/dist/slang-nodes/ArrayValues.js +5 -5
  77. package/dist/slang-nodes/ArrayValues.js.map +1 -1
  78. package/dist/slang-nodes/AssemblyFlags.js +4 -4
  79. package/dist/slang-nodes/AssemblyFlags.js.map +1 -1
  80. package/dist/slang-nodes/AssemblyFlagsDeclaration.js +2 -3
  81. package/dist/slang-nodes/AssemblyFlagsDeclaration.js.map +1 -1
  82. package/dist/slang-nodes/AssemblyStatement.js +4 -5
  83. package/dist/slang-nodes/AssemblyStatement.js.map +1 -1
  84. package/dist/slang-nodes/AssignmentExpression.js +4 -5
  85. package/dist/slang-nodes/AssignmentExpression.js.map +1 -1
  86. package/dist/slang-nodes/BitwiseAndExpression.js +6 -7
  87. package/dist/slang-nodes/BitwiseAndExpression.js.map +1 -1
  88. package/dist/slang-nodes/BitwiseOrExpression.js +6 -7
  89. package/dist/slang-nodes/BitwiseOrExpression.js.map +1 -1
  90. package/dist/slang-nodes/BitwiseXorExpression.js +6 -7
  91. package/dist/slang-nodes/BitwiseXorExpression.js.map +1 -1
  92. package/dist/slang-nodes/Block.js +2 -3
  93. package/dist/slang-nodes/Block.js.map +1 -1
  94. package/dist/slang-nodes/BreakStatement.js +1 -1
  95. package/dist/slang-nodes/CallOptions.js +5 -6
  96. package/dist/slang-nodes/CallOptions.js.map +1 -1
  97. package/dist/slang-nodes/CallOptionsExpression.js +4 -5
  98. package/dist/slang-nodes/CallOptionsExpression.js.map +1 -1
  99. package/dist/slang-nodes/CatchClause.js +3 -4
  100. package/dist/slang-nodes/CatchClause.js.map +1 -1
  101. package/dist/slang-nodes/CatchClauseError.js +4 -6
  102. package/dist/slang-nodes/CatchClauseError.js.map +1 -1
  103. package/dist/slang-nodes/CatchClauses.js +4 -6
  104. package/dist/slang-nodes/CatchClauses.js.map +1 -1
  105. package/dist/slang-nodes/CommentNode.js +4 -5
  106. package/dist/slang-nodes/CommentNode.js.map +1 -1
  107. package/dist/slang-nodes/ConditionalExpression.js +10 -8
  108. package/dist/slang-nodes/ConditionalExpression.js.map +1 -1
  109. package/dist/slang-nodes/ConstantDefinition.js +6 -7
  110. package/dist/slang-nodes/ConstantDefinition.js.map +1 -1
  111. package/dist/slang-nodes/ConstructorAttribute.js +3 -4
  112. package/dist/slang-nodes/ConstructorAttribute.js.map +1 -1
  113. package/dist/slang-nodes/ConstructorAttributes.js +6 -7
  114. package/dist/slang-nodes/ConstructorAttributes.js.map +1 -1
  115. package/dist/slang-nodes/ConstructorDefinition.js +5 -6
  116. package/dist/slang-nodes/ConstructorDefinition.js.map +1 -1
  117. package/dist/slang-nodes/ContinueStatement.js +1 -1
  118. package/dist/slang-nodes/ContractDefinition.js +7 -9
  119. package/dist/slang-nodes/ContractDefinition.js.map +1 -1
  120. package/dist/slang-nodes/ContractMember.js +16 -17
  121. package/dist/slang-nodes/ContractMember.js.map +1 -1
  122. package/dist/slang-nodes/ContractMembers.js +5 -5
  123. package/dist/slang-nodes/ContractMembers.js.map +1 -1
  124. package/dist/slang-nodes/ContractSpecifier.js +5 -6
  125. package/dist/slang-nodes/ContractSpecifier.js.map +1 -1
  126. package/dist/slang-nodes/ContractSpecifiers.js +6 -7
  127. package/dist/slang-nodes/ContractSpecifiers.js.map +1 -1
  128. package/dist/slang-nodes/DecimalNumberExpression.js +2 -3
  129. package/dist/slang-nodes/DecimalNumberExpression.js.map +1 -1
  130. package/dist/slang-nodes/DoWhileStatement.js +6 -8
  131. package/dist/slang-nodes/DoWhileStatement.js.map +1 -1
  132. package/dist/slang-nodes/ElementaryType.js +3 -4
  133. package/dist/slang-nodes/ElementaryType.js.map +1 -1
  134. package/dist/slang-nodes/ElseBranch.js +5 -6
  135. package/dist/slang-nodes/ElseBranch.js.map +1 -1
  136. package/dist/slang-nodes/EmitStatement.js +4 -5
  137. package/dist/slang-nodes/EmitStatement.js.map +1 -1
  138. package/dist/slang-nodes/EnumDefinition.js +3 -4
  139. package/dist/slang-nodes/EnumDefinition.js.map +1 -1
  140. package/dist/slang-nodes/EnumMembers.js +5 -6
  141. package/dist/slang-nodes/EnumMembers.js.map +1 -1
  142. package/dist/slang-nodes/EqualityExpression.js +6 -7
  143. package/dist/slang-nodes/EqualityExpression.js.map +1 -1
  144. package/dist/slang-nodes/ErrorDefinition.js +3 -4
  145. package/dist/slang-nodes/ErrorDefinition.js.map +1 -1
  146. package/dist/slang-nodes/ErrorParameter.js +4 -5
  147. package/dist/slang-nodes/ErrorParameter.js.map +1 -1
  148. package/dist/slang-nodes/ErrorParameters.js +4 -4
  149. package/dist/slang-nodes/ErrorParameters.js.map +1 -1
  150. package/dist/slang-nodes/ErrorParametersDeclaration.js +2 -3
  151. package/dist/slang-nodes/ErrorParametersDeclaration.js.map +1 -1
  152. package/dist/slang-nodes/EventDefinition.js +3 -4
  153. package/dist/slang-nodes/EventDefinition.js.map +1 -1
  154. package/dist/slang-nodes/EventParameter.js +4 -5
  155. package/dist/slang-nodes/EventParameter.js.map +1 -1
  156. package/dist/slang-nodes/EventParameters.js +4 -4
  157. package/dist/slang-nodes/EventParameters.js.map +1 -1
  158. package/dist/slang-nodes/EventParametersDeclaration.js +2 -3
  159. package/dist/slang-nodes/EventParametersDeclaration.js.map +1 -1
  160. package/dist/slang-nodes/ExperimentalFeature.js +3 -4
  161. package/dist/slang-nodes/ExperimentalFeature.js.map +1 -1
  162. package/dist/slang-nodes/ExperimentalPragma.js +3 -4
  163. package/dist/slang-nodes/ExperimentalPragma.js.map +1 -1
  164. package/dist/slang-nodes/ExponentiationExpression.js +8 -10
  165. package/dist/slang-nodes/ExponentiationExpression.js.map +1 -1
  166. package/dist/slang-nodes/Expression.js +30 -31
  167. package/dist/slang-nodes/Expression.js.map +1 -1
  168. package/dist/slang-nodes/ExpressionStatement.js +3 -4
  169. package/dist/slang-nodes/ExpressionStatement.js.map +1 -1
  170. package/dist/slang-nodes/FallbackFunctionAttribute.js +6 -7
  171. package/dist/slang-nodes/FallbackFunctionAttribute.js.map +1 -1
  172. package/dist/slang-nodes/FallbackFunctionAttributes.js +6 -7
  173. package/dist/slang-nodes/FallbackFunctionAttributes.js.map +1 -1
  174. package/dist/slang-nodes/FallbackFunctionDefinition.js +7 -8
  175. package/dist/slang-nodes/FallbackFunctionDefinition.js.map +1 -1
  176. package/dist/slang-nodes/ForStatement.js +9 -11
  177. package/dist/slang-nodes/ForStatement.js.map +1 -1
  178. package/dist/slang-nodes/ForStatementCondition.js +3 -4
  179. package/dist/slang-nodes/ForStatementCondition.js.map +1 -1
  180. package/dist/slang-nodes/ForStatementInitialization.js +7 -8
  181. package/dist/slang-nodes/ForStatementInitialization.js.map +1 -1
  182. package/dist/slang-nodes/FunctionAttribute.js +6 -7
  183. package/dist/slang-nodes/FunctionAttribute.js.map +1 -1
  184. package/dist/slang-nodes/FunctionAttributes.js +6 -7
  185. package/dist/slang-nodes/FunctionAttributes.js.map +1 -1
  186. package/dist/slang-nodes/FunctionBody.js +3 -4
  187. package/dist/slang-nodes/FunctionBody.js.map +1 -1
  188. package/dist/slang-nodes/FunctionCallExpression.js +5 -6
  189. package/dist/slang-nodes/FunctionCallExpression.js.map +1 -1
  190. package/dist/slang-nodes/FunctionDefinition.js +10 -11
  191. package/dist/slang-nodes/FunctionDefinition.js.map +1 -1
  192. package/dist/slang-nodes/FunctionName.js +2 -2
  193. package/dist/slang-nodes/FunctionType.js +5 -6
  194. package/dist/slang-nodes/FunctionType.js.map +1 -1
  195. package/dist/slang-nodes/FunctionTypeAttribute.js +2 -2
  196. package/dist/slang-nodes/FunctionTypeAttributes.js +6 -7
  197. package/dist/slang-nodes/FunctionTypeAttributes.js.map +1 -1
  198. package/dist/slang-nodes/HexNumberExpression.js +2 -3
  199. package/dist/slang-nodes/HexNumberExpression.js.map +1 -1
  200. package/dist/slang-nodes/HexStringLiteral.js +2 -2
  201. package/dist/slang-nodes/HexStringLiterals.js +4 -5
  202. package/dist/slang-nodes/HexStringLiterals.js.map +1 -1
  203. package/dist/slang-nodes/IdentifierPath.js +3 -4
  204. package/dist/slang-nodes/IdentifierPath.js.map +1 -1
  205. package/dist/slang-nodes/IfStatement.js +9 -11
  206. package/dist/slang-nodes/IfStatement.js.map +1 -1
  207. package/dist/slang-nodes/ImportAlias.js +2 -2
  208. package/dist/slang-nodes/ImportClause.js +6 -7
  209. package/dist/slang-nodes/ImportClause.js.map +1 -1
  210. package/dist/slang-nodes/ImportDeconstruction.js +3 -4
  211. package/dist/slang-nodes/ImportDeconstruction.js.map +1 -1
  212. package/dist/slang-nodes/ImportDeconstructionSymbol.js +3 -4
  213. package/dist/slang-nodes/ImportDeconstructionSymbol.js.map +1 -1
  214. package/dist/slang-nodes/ImportDeconstructionSymbols.js +13 -14
  215. package/dist/slang-nodes/ImportDeconstructionSymbols.js.map +1 -1
  216. package/dist/slang-nodes/ImportDirective.js +3 -4
  217. package/dist/slang-nodes/ImportDirective.js.map +1 -1
  218. package/dist/slang-nodes/IndexAccessEnd.js +3 -4
  219. package/dist/slang-nodes/IndexAccessEnd.js.map +1 -1
  220. package/dist/slang-nodes/IndexAccessExpression.js +6 -7
  221. package/dist/slang-nodes/IndexAccessExpression.js.map +1 -1
  222. package/dist/slang-nodes/InequalityExpression.js +5 -6
  223. package/dist/slang-nodes/InequalityExpression.js.map +1 -1
  224. package/dist/slang-nodes/InheritanceSpecifier.js +2 -3
  225. package/dist/slang-nodes/InheritanceSpecifier.js.map +1 -1
  226. package/dist/slang-nodes/InheritanceType.js +4 -5
  227. package/dist/slang-nodes/InheritanceType.js.map +1 -1
  228. package/dist/slang-nodes/InheritanceTypes.js +5 -6
  229. package/dist/slang-nodes/InheritanceTypes.js.map +1 -1
  230. package/dist/slang-nodes/InterfaceDefinition.js +5 -7
  231. package/dist/slang-nodes/InterfaceDefinition.js.map +1 -1
  232. package/dist/slang-nodes/InterfaceMembers.js +5 -5
  233. package/dist/slang-nodes/InterfaceMembers.js.map +1 -1
  234. package/dist/slang-nodes/LibraryDefinition.js +6 -8
  235. package/dist/slang-nodes/LibraryDefinition.js.map +1 -1
  236. package/dist/slang-nodes/LibraryMembers.js +5 -5
  237. package/dist/slang-nodes/LibraryMembers.js.map +1 -1
  238. package/dist/slang-nodes/MappingKey.js +4 -5
  239. package/dist/slang-nodes/MappingKey.js.map +1 -1
  240. package/dist/slang-nodes/MappingKeyType.js +4 -5
  241. package/dist/slang-nodes/MappingKeyType.js.map +1 -1
  242. package/dist/slang-nodes/MappingType.js +3 -4
  243. package/dist/slang-nodes/MappingType.js.map +1 -1
  244. package/dist/slang-nodes/MappingValue.js +4 -5
  245. package/dist/slang-nodes/MappingValue.js.map +1 -1
  246. package/dist/slang-nodes/MemberAccessExpression.js +11 -10
  247. package/dist/slang-nodes/MemberAccessExpression.js.map +1 -1
  248. package/dist/slang-nodes/ModifierAttribute.js +3 -4
  249. package/dist/slang-nodes/ModifierAttribute.js.map +1 -1
  250. package/dist/slang-nodes/ModifierAttributes.js +6 -7
  251. package/dist/slang-nodes/ModifierAttributes.js.map +1 -1
  252. package/dist/slang-nodes/ModifierDefinition.js +13 -14
  253. package/dist/slang-nodes/ModifierDefinition.js.map +1 -1
  254. package/dist/slang-nodes/ModifierInvocation.js +4 -5
  255. package/dist/slang-nodes/ModifierInvocation.js.map +1 -1
  256. package/dist/slang-nodes/MultiLineComment.js +4 -6
  257. package/dist/slang-nodes/MultiLineComment.js.map +1 -1
  258. package/dist/slang-nodes/MultiLineNatSpecComment.js +4 -6
  259. package/dist/slang-nodes/MultiLineNatSpecComment.js.map +1 -1
  260. package/dist/slang-nodes/MultiplicativeExpression.js +6 -7
  261. package/dist/slang-nodes/MultiplicativeExpression.js.map +1 -1
  262. package/dist/slang-nodes/NamedArgument.js +4 -5
  263. package/dist/slang-nodes/NamedArgument.js.map +1 -1
  264. package/dist/slang-nodes/NamedArgumentGroup.js +2 -3
  265. package/dist/slang-nodes/NamedArgumentGroup.js.map +1 -1
  266. package/dist/slang-nodes/NamedArguments.js +5 -6
  267. package/dist/slang-nodes/NamedArguments.js.map +1 -1
  268. package/dist/slang-nodes/NamedArgumentsDeclaration.js +2 -3
  269. package/dist/slang-nodes/NamedArgumentsDeclaration.js.map +1 -1
  270. package/dist/slang-nodes/NamedImport.js +3 -4
  271. package/dist/slang-nodes/NamedImport.js.map +1 -1
  272. package/dist/slang-nodes/NewExpression.js +3 -4
  273. package/dist/slang-nodes/NewExpression.js.map +1 -1
  274. package/dist/slang-nodes/NumberUnit.js +1 -1
  275. package/dist/slang-nodes/OrExpression.js +5 -6
  276. package/dist/slang-nodes/OrExpression.js.map +1 -1
  277. package/dist/slang-nodes/OverridePaths.js +4 -4
  278. package/dist/slang-nodes/OverridePaths.js.map +1 -1
  279. package/dist/slang-nodes/OverridePathsDeclaration.js +2 -3
  280. package/dist/slang-nodes/OverridePathsDeclaration.js.map +1 -1
  281. package/dist/slang-nodes/OverrideSpecifier.js +2 -3
  282. package/dist/slang-nodes/OverrideSpecifier.js.map +1 -1
  283. package/dist/slang-nodes/Parameter.js +6 -8
  284. package/dist/slang-nodes/Parameter.js.map +1 -1
  285. package/dist/slang-nodes/Parameters.js +6 -6
  286. package/dist/slang-nodes/Parameters.js.map +1 -1
  287. package/dist/slang-nodes/ParametersDeclaration.js +2 -3
  288. package/dist/slang-nodes/ParametersDeclaration.js.map +1 -1
  289. package/dist/slang-nodes/PathImport.js +3 -4
  290. package/dist/slang-nodes/PathImport.js.map +1 -1
  291. package/dist/slang-nodes/PositionalArguments.js +7 -7
  292. package/dist/slang-nodes/PositionalArguments.js.map +1 -1
  293. package/dist/slang-nodes/PositionalArgumentsDeclaration.js +4 -5
  294. package/dist/slang-nodes/PositionalArgumentsDeclaration.js.map +1 -1
  295. package/dist/slang-nodes/PostfixExpression.js +3 -4
  296. package/dist/slang-nodes/PostfixExpression.js.map +1 -1
  297. package/dist/slang-nodes/Pragma.js +6 -7
  298. package/dist/slang-nodes/Pragma.js.map +1 -1
  299. package/dist/slang-nodes/PragmaDirective.js +3 -4
  300. package/dist/slang-nodes/PragmaDirective.js.map +1 -1
  301. package/dist/slang-nodes/PrefixExpression.js +3 -4
  302. package/dist/slang-nodes/PrefixExpression.js.map +1 -1
  303. package/dist/slang-nodes/ReceiveFunctionAttribute.js +6 -7
  304. package/dist/slang-nodes/ReceiveFunctionAttribute.js.map +1 -1
  305. package/dist/slang-nodes/ReceiveFunctionAttributes.js +6 -7
  306. package/dist/slang-nodes/ReceiveFunctionAttributes.js.map +1 -1
  307. package/dist/slang-nodes/ReceiveFunctionDefinition.js +6 -7
  308. package/dist/slang-nodes/ReceiveFunctionDefinition.js.map +1 -1
  309. package/dist/slang-nodes/ReturnStatement.js +4 -5
  310. package/dist/slang-nodes/ReturnStatement.js.map +1 -1
  311. package/dist/slang-nodes/ReturnsDeclaration.js +3 -5
  312. package/dist/slang-nodes/ReturnsDeclaration.js.map +1 -1
  313. package/dist/slang-nodes/RevertStatement.js +4 -5
  314. package/dist/slang-nodes/RevertStatement.js.map +1 -1
  315. package/dist/slang-nodes/ShiftExpression.js +6 -7
  316. package/dist/slang-nodes/ShiftExpression.js.map +1 -1
  317. package/dist/slang-nodes/SimpleVersionLiteral.js +7 -5
  318. package/dist/slang-nodes/SimpleVersionLiteral.js.map +1 -1
  319. package/dist/slang-nodes/SingleLineComment.js +3 -5
  320. package/dist/slang-nodes/SingleLineComment.js.map +1 -1
  321. package/dist/slang-nodes/SingleLineNatSpecComment.js +3 -5
  322. package/dist/slang-nodes/SingleLineNatSpecComment.js.map +1 -1
  323. package/dist/slang-nodes/SlangNode.js +11 -113
  324. package/dist/slang-nodes/SlangNode.js.map +1 -1
  325. package/dist/slang-nodes/SourceUnit.js +3 -5
  326. package/dist/slang-nodes/SourceUnit.js.map +1 -1
  327. package/dist/slang-nodes/SourceUnitMember.js +16 -17
  328. package/dist/slang-nodes/SourceUnitMember.js.map +1 -1
  329. package/dist/slang-nodes/SourceUnitMembers.js +5 -5
  330. package/dist/slang-nodes/SourceUnitMembers.js.map +1 -1
  331. package/dist/slang-nodes/StateVariableAttribute.js +3 -4
  332. package/dist/slang-nodes/StateVariableAttribute.js.map +1 -1
  333. package/dist/slang-nodes/StateVariableAttributes.js +6 -7
  334. package/dist/slang-nodes/StateVariableAttributes.js.map +1 -1
  335. package/dist/slang-nodes/StateVariableDefinition.js +8 -10
  336. package/dist/slang-nodes/StateVariableDefinition.js.map +1 -1
  337. package/dist/slang-nodes/StateVariableDefinitionValue.js +4 -5
  338. package/dist/slang-nodes/StateVariableDefinitionValue.js.map +1 -1
  339. package/dist/slang-nodes/Statement.js +20 -21
  340. package/dist/slang-nodes/Statement.js.map +1 -1
  341. package/dist/slang-nodes/Statements.js +5 -5
  342. package/dist/slang-nodes/Statements.js.map +1 -1
  343. package/dist/slang-nodes/StorageLayoutSpecifier.js +5 -7
  344. package/dist/slang-nodes/StorageLayoutSpecifier.js.map +1 -1
  345. package/dist/slang-nodes/StorageLocation.js +1 -1
  346. package/dist/slang-nodes/StringExpression.js +8 -9
  347. package/dist/slang-nodes/StringExpression.js.map +1 -1
  348. package/dist/slang-nodes/StringLiteral.js +2 -2
  349. package/dist/slang-nodes/StringLiterals.js +4 -5
  350. package/dist/slang-nodes/StringLiterals.js.map +1 -1
  351. package/dist/slang-nodes/StructDefinition.js +3 -4
  352. package/dist/slang-nodes/StructDefinition.js.map +1 -1
  353. package/dist/slang-nodes/StructMember.js +4 -5
  354. package/dist/slang-nodes/StructMember.js.map +1 -1
  355. package/dist/slang-nodes/StructMembers.js +14 -11
  356. package/dist/slang-nodes/StructMembers.js.map +1 -1
  357. package/dist/slang-nodes/TerminalNode.js +1 -1
  358. package/dist/slang-nodes/ThrowStatement.js +1 -1
  359. package/dist/slang-nodes/TryStatement.js +8 -10
  360. package/dist/slang-nodes/TryStatement.js.map +1 -1
  361. package/dist/slang-nodes/TupleDeconstructionElement.js +18 -6
  362. package/dist/slang-nodes/TupleDeconstructionElement.js.map +1 -1
  363. package/dist/slang-nodes/TupleDeconstructionElements.js +16 -5
  364. package/dist/slang-nodes/TupleDeconstructionElements.js.map +1 -1
  365. package/dist/slang-nodes/TupleDeconstructionStatement.js +5 -6
  366. package/dist/slang-nodes/TupleDeconstructionStatement.js.map +1 -1
  367. package/dist/slang-nodes/TupleExpression.js +2 -3
  368. package/dist/slang-nodes/TupleExpression.js.map +1 -1
  369. package/dist/slang-nodes/TupleMember.js +5 -6
  370. package/dist/slang-nodes/TupleMember.js.map +1 -1
  371. package/dist/slang-nodes/TupleValue.js +3 -4
  372. package/dist/slang-nodes/TupleValue.js.map +1 -1
  373. package/dist/slang-nodes/TupleValues.js +5 -5
  374. package/dist/slang-nodes/TupleValues.js.map +1 -1
  375. package/dist/slang-nodes/TypeExpression.js +3 -4
  376. package/dist/slang-nodes/TypeExpression.js.map +1 -1
  377. package/dist/slang-nodes/TypeName.js +7 -8
  378. package/dist/slang-nodes/TypeName.js.map +1 -1
  379. package/dist/slang-nodes/TypedTupleMember.js +5 -6
  380. package/dist/slang-nodes/TypedTupleMember.js.map +1 -1
  381. package/dist/slang-nodes/UncheckedBlock.js +2 -3
  382. package/dist/slang-nodes/UncheckedBlock.js.map +1 -1
  383. package/dist/slang-nodes/UnicodeStringLiteral.js +2 -2
  384. package/dist/slang-nodes/UnicodeStringLiterals.js +4 -5
  385. package/dist/slang-nodes/UnicodeStringLiterals.js.map +1 -1
  386. package/dist/slang-nodes/UnnamedFunctionAttribute.js +3 -4
  387. package/dist/slang-nodes/UnnamedFunctionAttribute.js.map +1 -1
  388. package/dist/slang-nodes/UnnamedFunctionAttributes.js +6 -7
  389. package/dist/slang-nodes/UnnamedFunctionAttributes.js.map +1 -1
  390. package/dist/slang-nodes/UnnamedFunctionDefinition.js +6 -7
  391. package/dist/slang-nodes/UnnamedFunctionDefinition.js.map +1 -1
  392. package/dist/slang-nodes/UntypedTupleMember.js +3 -4
  393. package/dist/slang-nodes/UntypedTupleMember.js.map +1 -1
  394. package/dist/slang-nodes/UserDefinedValueTypeDefinition.js +4 -5
  395. package/dist/slang-nodes/UserDefinedValueTypeDefinition.js.map +1 -1
  396. package/dist/slang-nodes/UsingAlias.js +2 -3
  397. package/dist/slang-nodes/UsingAlias.js.map +1 -1
  398. package/dist/slang-nodes/UsingClause.js +5 -6
  399. package/dist/slang-nodes/UsingClause.js.map +1 -1
  400. package/dist/slang-nodes/UsingDeconstruction.js +2 -3
  401. package/dist/slang-nodes/UsingDeconstruction.js.map +1 -1
  402. package/dist/slang-nodes/UsingDeconstructionSymbol.js +3 -4
  403. package/dist/slang-nodes/UsingDeconstructionSymbol.js.map +1 -1
  404. package/dist/slang-nodes/UsingDeconstructionSymbols.js +5 -6
  405. package/dist/slang-nodes/UsingDeconstructionSymbols.js.map +1 -1
  406. package/dist/slang-nodes/UsingDirective.js +4 -5
  407. package/dist/slang-nodes/UsingDirective.js.map +1 -1
  408. package/dist/slang-nodes/UsingOperator.js +1 -1
  409. package/dist/slang-nodes/UsingTarget.js +4 -5
  410. package/dist/slang-nodes/UsingTarget.js.map +1 -1
  411. package/dist/slang-nodes/VariableDeclarationStatement.js +8 -10
  412. package/dist/slang-nodes/VariableDeclarationStatement.js.map +1 -1
  413. package/dist/slang-nodes/VariableDeclarationType.js +4 -5
  414. package/dist/slang-nodes/VariableDeclarationType.js.map +1 -1
  415. package/dist/slang-nodes/VariableDeclarationValue.js +4 -5
  416. package/dist/slang-nodes/VariableDeclarationValue.js.map +1 -1
  417. package/dist/slang-nodes/VersionExpression.js +5 -6
  418. package/dist/slang-nodes/VersionExpression.js.map +1 -1
  419. package/dist/slang-nodes/VersionExpressionSet.js +5 -6
  420. package/dist/slang-nodes/VersionExpressionSet.js.map +1 -1
  421. package/dist/slang-nodes/VersionExpressionSets.js +11 -7
  422. package/dist/slang-nodes/VersionExpressionSets.js.map +1 -1
  423. package/dist/slang-nodes/VersionLiteral.js +3 -4
  424. package/dist/slang-nodes/VersionLiteral.js.map +1 -1
  425. package/dist/slang-nodes/VersionOperator.js +1 -1
  426. package/dist/slang-nodes/VersionPragma.js +2 -3
  427. package/dist/slang-nodes/VersionPragma.js.map +1 -1
  428. package/dist/slang-nodes/VersionRange.js +3 -4
  429. package/dist/slang-nodes/VersionRange.js.map +1 -1
  430. package/dist/slang-nodes/VersionTerm.js +4 -5
  431. package/dist/slang-nodes/VersionTerm.js.map +1 -1
  432. package/dist/slang-nodes/WhileStatement.js +6 -7
  433. package/dist/slang-nodes/WhileStatement.js.map +1 -1
  434. package/dist/slang-nodes/YulArguments.js +5 -5
  435. package/dist/slang-nodes/YulArguments.js.map +1 -1
  436. package/dist/slang-nodes/YulAssignmentOperator.js +3 -4
  437. package/dist/slang-nodes/YulAssignmentOperator.js.map +1 -1
  438. package/dist/slang-nodes/YulBlock.js +2 -3
  439. package/dist/slang-nodes/YulBlock.js.map +1 -1
  440. package/dist/slang-nodes/YulBreakStatement.js +1 -1
  441. package/dist/slang-nodes/YulColonAndEqual.js +1 -1
  442. package/dist/slang-nodes/YulContinueStatement.js +1 -1
  443. package/dist/slang-nodes/YulDefaultCase.js +2 -3
  444. package/dist/slang-nodes/YulDefaultCase.js.map +1 -1
  445. package/dist/slang-nodes/YulEqualAndColon.js +1 -1
  446. package/dist/slang-nodes/YulExpression.js +5 -6
  447. package/dist/slang-nodes/YulExpression.js.map +1 -1
  448. package/dist/slang-nodes/YulForStatement.js +5 -7
  449. package/dist/slang-nodes/YulForStatement.js.map +1 -1
  450. package/dist/slang-nodes/YulFunctionCallExpression.js +4 -5
  451. package/dist/slang-nodes/YulFunctionCallExpression.js.map +1 -1
  452. package/dist/slang-nodes/YulFunctionDefinition.js +5 -6
  453. package/dist/slang-nodes/YulFunctionDefinition.js.map +1 -1
  454. package/dist/slang-nodes/YulIfStatement.js +4 -5
  455. package/dist/slang-nodes/YulIfStatement.js.map +1 -1
  456. package/dist/slang-nodes/YulLabel.js +3 -4
  457. package/dist/slang-nodes/YulLabel.js.map +1 -1
  458. package/dist/slang-nodes/YulLeaveStatement.js +1 -1
  459. package/dist/slang-nodes/YulLiteral.js +6 -7
  460. package/dist/slang-nodes/YulLiteral.js.map +1 -1
  461. package/dist/slang-nodes/YulParameters.js +4 -4
  462. package/dist/slang-nodes/YulParameters.js.map +1 -1
  463. package/dist/slang-nodes/YulParametersDeclaration.js +2 -3
  464. package/dist/slang-nodes/YulParametersDeclaration.js.map +1 -1
  465. package/dist/slang-nodes/YulPath.js +4 -5
  466. package/dist/slang-nodes/YulPath.js.map +1 -1
  467. package/dist/slang-nodes/YulPaths.js +4 -5
  468. package/dist/slang-nodes/YulPaths.js.map +1 -1
  469. package/dist/slang-nodes/YulReturnsDeclaration.js +4 -6
  470. package/dist/slang-nodes/YulReturnsDeclaration.js.map +1 -1
  471. package/dist/slang-nodes/YulStackAssignmentOperator.js +3 -4
  472. package/dist/slang-nodes/YulStackAssignmentOperator.js.map +1 -1
  473. package/dist/slang-nodes/YulStackAssignmentStatement.js +6 -8
  474. package/dist/slang-nodes/YulStackAssignmentStatement.js.map +1 -1
  475. package/dist/slang-nodes/YulStatement.js +15 -16
  476. package/dist/slang-nodes/YulStatement.js.map +1 -1
  477. package/dist/slang-nodes/YulStatements.js +5 -5
  478. package/dist/slang-nodes/YulStatements.js.map +1 -1
  479. package/dist/slang-nodes/YulSwitchCase.js +5 -6
  480. package/dist/slang-nodes/YulSwitchCase.js.map +1 -1
  481. package/dist/slang-nodes/YulSwitchCases.js +5 -6
  482. package/dist/slang-nodes/YulSwitchCases.js.map +1 -1
  483. package/dist/slang-nodes/YulSwitchStatement.js +5 -7
  484. package/dist/slang-nodes/YulSwitchStatement.js.map +1 -1
  485. package/dist/slang-nodes/YulValueCase.js +4 -5
  486. package/dist/slang-nodes/YulValueCase.js.map +1 -1
  487. package/dist/slang-nodes/YulVariableAssignmentStatement.js +6 -8
  488. package/dist/slang-nodes/YulVariableAssignmentStatement.js.map +1 -1
  489. package/dist/slang-nodes/YulVariableDeclarationStatement.js +3 -4
  490. package/dist/slang-nodes/YulVariableDeclarationStatement.js.map +1 -1
  491. package/dist/slang-nodes/YulVariableDeclarationValue.js +4 -5
  492. package/dist/slang-nodes/YulVariableDeclarationValue.js.map +1 -1
  493. package/dist/slang-nodes/YulVariableNames.js +5 -6
  494. package/dist/slang-nodes/YulVariableNames.js.map +1 -1
  495. package/dist/slang-printers/create-binary-operation-printer.js +4 -3
  496. package/dist/slang-printers/create-binary-operation-printer.js.map +1 -1
  497. package/dist/slang-printers/prettier-builders.js +3 -0
  498. package/dist/slang-printers/prettier-builders.js.map +1 -0
  499. package/dist/slang-printers/print-assignment-right-side.js +2 -2
  500. package/dist/slang-printers/print-binary-operation.js +12 -5
  501. package/dist/slang-printers/print-binary-operation.js.map +1 -1
  502. package/dist/slang-printers/print-block-comment.js +10 -11
  503. package/dist/slang-printers/print-block-comment.js.map +1 -1
  504. package/dist/slang-printers/print-comments.js +12 -12
  505. package/dist/slang-printers/print-comments.js.map +1 -1
  506. package/dist/slang-printers/print-function.js +2 -3
  507. package/dist/slang-printers/print-function.js.map +1 -1
  508. package/dist/slang-printers/print-group-and-indent-if-break-pair.js +1 -2
  509. package/dist/slang-printers/print-group-and-indent-if-break-pair.js.map +1 -1
  510. package/dist/slang-printers/print-indented-group-or-spaced-document.js +1 -2
  511. package/dist/slang-printers/print-indented-group-or-spaced-document.js.map +1 -1
  512. package/dist/slang-printers/print-logical-operation.js +7 -5
  513. package/dist/slang-printers/print-logical-operation.js.map +1 -1
  514. package/dist/slang-printers/print-member-access-chain-item.js +2 -2
  515. package/dist/slang-printers/print-preserving-empty-lines.js +6 -6
  516. package/dist/slang-printers/print-preserving-empty-lines.js.map +1 -1
  517. package/dist/slang-printers/print-separated-item.js +1 -2
  518. package/dist/slang-printers/print-separated-item.js.map +1 -1
  519. package/dist/slang-printers/print-separated-list.js +2 -3
  520. package/dist/slang-printers/print-separated-list.js.map +1 -1
  521. package/dist/slang-printers/print-string.js +2 -2
  522. package/dist/slang-printers/print-string.js.map +1 -1
  523. package/dist/slang-utils/collect-metadata.js +114 -0
  524. package/dist/slang-utils/collect-metadata.js.map +1 -0
  525. package/dist/slang-utils/create-hug-function.js +7 -7
  526. package/dist/slang-utils/create-hug-function.js.map +1 -1
  527. package/dist/slang-utils/create-nonterminal-variant-creator.js +12 -14
  528. package/dist/slang-utils/create-nonterminal-variant-creator.js.map +1 -1
  529. package/dist/slang-utils/get-visitor-keys.js +0 -1
  530. package/dist/slang-utils/get-visitor-keys.js.map +1 -1
  531. package/dist/slang-utils/has-prettier-ignore.js +1 -1
  532. package/dist/slang-utils/infer-and-parse.js +46 -0
  533. package/dist/slang-utils/infer-and-parse.js.map +1 -0
  534. package/dist/slang-utils/is-binary-operation.js +1 -1
  535. package/dist/slang-utils/is-chainable-expression.js +1 -1
  536. package/dist/slang-utils/is-comment.js +1 -1
  537. package/dist/slang-utils/prettier-utils.js +3 -0
  538. package/dist/slang-utils/prettier-utils.js.map +1 -0
  539. package/dist/slang-utils/sort-function-attributes.js +1 -1
  540. package/dist/slangSolidityParser.js +7 -10
  541. package/dist/slangSolidityParser.js.map +1 -1
  542. package/dist/standalone.js +48 -2
  543. package/dist/standalone.js.map +7 -1
  544. package/package.json +37 -44
  545. package/src/binary-operator-printers/assignment.js +0 -3
  546. package/src/browser.ts +24 -0
  547. package/src/clean.ts +4 -2
  548. package/src/common/printer-helpers.js +1 -1
  549. package/src/index.ts +9 -9
  550. package/src/nodes/Conditional.js +1 -1
  551. package/src/nodes/VariableDeclarationStatement.js +1 -1
  552. package/src/slang-comments/handler.ts +1 -1
  553. package/src/slang-comments/handlers/add-collection-adjacent-comment.ts +25 -0
  554. package/src/slang-comments/handlers/add-collection-first-comment.ts +4 -3
  555. package/src/slang-comments/handlers/add-collection-last-comment.ts +4 -3
  556. package/src/slang-comments/handlers/handle-block-comments.ts +4 -20
  557. package/src/slang-comments/handlers/handle-contract-definition-comments.ts +29 -28
  558. package/src/slang-comments/handlers/handle-contract-specifiers-comments.ts +2 -4
  559. package/src/slang-comments/handlers/handle-else-branch-comments.ts +2 -4
  560. package/src/slang-comments/handlers/handle-if-statement-comments.ts +8 -6
  561. package/src/slang-comments/handlers/handle-interface-definition-comments.ts +5 -5
  562. package/src/slang-comments/handlers/handle-library-definition-comments.ts +5 -5
  563. package/src/slang-comments/handlers/handle-member-access-expression-comments.ts +4 -3
  564. package/src/slang-comments/handlers/handle-modifier-invocation-comments.ts +7 -6
  565. package/src/slang-comments/handlers/handle-parameters-declaration-comments.ts +6 -20
  566. package/src/slang-comments/handlers/handle-positional-arguments-declaration-comments.ts +12 -20
  567. package/src/slang-comments/handlers/handle-source-unit-members-comments.ts +8 -23
  568. package/src/slang-comments/handlers/handle-struct-definition-comments.ts +6 -32
  569. package/src/slang-comments/handlers/handle-tuple-deconstruction-elements-comments.ts +48 -0
  570. package/src/slang-comments/handlers/handle-tuple-deconstruction-statement-comments.ts +52 -0
  571. package/src/slang-comments/handlers/handle-while-statement-comments.ts +9 -7
  572. package/src/slang-comments/handlers/handle-yul-block-comments.ts +4 -27
  573. package/src/slang-comments/handlers/index.ts +19 -15
  574. package/src/slang-comments/index.ts +2 -2
  575. package/src/slang-comments/printer.ts +1 -1
  576. package/src/slang-nodes/AbicoderPragma.ts +2 -4
  577. package/src/slang-nodes/AbicoderVersion.ts +1 -1
  578. package/src/slang-nodes/AdditiveExpression.ts +6 -8
  579. package/src/slang-nodes/AddressType.ts +1 -1
  580. package/src/slang-nodes/AndExpression.ts +4 -6
  581. package/src/slang-nodes/ArgumentsDeclaration.ts +6 -8
  582. package/src/slang-nodes/ArrayExpression.ts +2 -4
  583. package/src/slang-nodes/ArrayTypeName.ts +4 -6
  584. package/src/slang-nodes/ArrayValues.ts +5 -5
  585. package/src/slang-nodes/AssemblyFlags.ts +4 -4
  586. package/src/slang-nodes/AssemblyFlagsDeclaration.ts +2 -4
  587. package/src/slang-nodes/AssemblyStatement.ts +4 -6
  588. package/src/slang-nodes/AssignmentExpression.ts +4 -6
  589. package/src/slang-nodes/BitwiseAndExpression.ts +6 -8
  590. package/src/slang-nodes/BitwiseOrExpression.ts +6 -8
  591. package/src/slang-nodes/BitwiseXorExpression.ts +6 -8
  592. package/src/slang-nodes/Block.ts +2 -4
  593. package/src/slang-nodes/BreakStatement.ts +1 -1
  594. package/src/slang-nodes/CallOptions.ts +5 -7
  595. package/src/slang-nodes/CallOptionsExpression.ts +4 -6
  596. package/src/slang-nodes/CatchClause.ts +3 -5
  597. package/src/slang-nodes/CatchClauseError.ts +4 -8
  598. package/src/slang-nodes/CatchClauses.ts +4 -8
  599. package/src/slang-nodes/CommentNode.ts +6 -6
  600. package/src/slang-nodes/ConditionalExpression.ts +16 -14
  601. package/src/slang-nodes/ConstantDefinition.ts +6 -8
  602. package/src/slang-nodes/ConstructorAttribute.ts +3 -5
  603. package/src/slang-nodes/ConstructorAttributes.ts +6 -8
  604. package/src/slang-nodes/ConstructorDefinition.ts +5 -7
  605. package/src/slang-nodes/ContinueStatement.ts +1 -1
  606. package/src/slang-nodes/ContractDefinition.ts +7 -11
  607. package/src/slang-nodes/ContractMember.ts +17 -19
  608. package/src/slang-nodes/ContractMembers.ts +5 -5
  609. package/src/slang-nodes/ContractSpecifier.ts +6 -8
  610. package/src/slang-nodes/ContractSpecifiers.ts +11 -8
  611. package/src/slang-nodes/DecimalNumberExpression.ts +2 -4
  612. package/src/slang-nodes/DoWhileStatement.ts +6 -10
  613. package/src/slang-nodes/ElementaryType.ts +3 -5
  614. package/src/slang-nodes/ElseBranch.ts +5 -7
  615. package/src/slang-nodes/EmitStatement.ts +4 -6
  616. package/src/slang-nodes/EnumDefinition.ts +3 -5
  617. package/src/slang-nodes/EnumMembers.ts +5 -7
  618. package/src/slang-nodes/EqualityExpression.ts +6 -8
  619. package/src/slang-nodes/ErrorDefinition.ts +3 -5
  620. package/src/slang-nodes/ErrorParameter.ts +4 -6
  621. package/src/slang-nodes/ErrorParameters.ts +4 -4
  622. package/src/slang-nodes/ErrorParametersDeclaration.ts +2 -4
  623. package/src/slang-nodes/EventDefinition.ts +3 -5
  624. package/src/slang-nodes/EventParameter.ts +4 -6
  625. package/src/slang-nodes/EventParameters.ts +4 -4
  626. package/src/slang-nodes/EventParametersDeclaration.ts +2 -4
  627. package/src/slang-nodes/ExperimentalFeature.ts +3 -5
  628. package/src/slang-nodes/ExperimentalPragma.ts +3 -5
  629. package/src/slang-nodes/ExponentiationExpression.ts +8 -12
  630. package/src/slang-nodes/Expression.ts +31 -33
  631. package/src/slang-nodes/ExpressionStatement.ts +3 -5
  632. package/src/slang-nodes/FallbackFunctionAttribute.ts +7 -9
  633. package/src/slang-nodes/FallbackFunctionAttributes.ts +6 -8
  634. package/src/slang-nodes/FallbackFunctionDefinition.ts +7 -14
  635. package/src/slang-nodes/ForStatement.ts +9 -18
  636. package/src/slang-nodes/ForStatementCondition.ts +3 -5
  637. package/src/slang-nodes/ForStatementInitialization.ts +8 -10
  638. package/src/slang-nodes/FunctionAttribute.ts +7 -9
  639. package/src/slang-nodes/FunctionAttributes.ts +6 -8
  640. package/src/slang-nodes/FunctionBody.ts +3 -5
  641. package/src/slang-nodes/FunctionCallExpression.ts +5 -7
  642. package/src/slang-nodes/FunctionDefinition.ts +10 -18
  643. package/src/slang-nodes/FunctionName.ts +2 -2
  644. package/src/slang-nodes/FunctionType.ts +5 -7
  645. package/src/slang-nodes/FunctionTypeAttribute.ts +2 -2
  646. package/src/slang-nodes/FunctionTypeAttributes.ts +6 -8
  647. package/src/slang-nodes/HexNumberExpression.ts +2 -4
  648. package/src/slang-nodes/HexStringLiteral.ts +2 -2
  649. package/src/slang-nodes/HexStringLiterals.ts +4 -6
  650. package/src/slang-nodes/IdentifierPath.ts +3 -5
  651. package/src/slang-nodes/IfStatement.ts +9 -13
  652. package/src/slang-nodes/ImportAlias.ts +2 -2
  653. package/src/slang-nodes/ImportClause.ts +7 -9
  654. package/src/slang-nodes/ImportDeconstruction.ts +3 -5
  655. package/src/slang-nodes/ImportDeconstructionSymbol.ts +3 -5
  656. package/src/slang-nodes/ImportDeconstructionSymbols.ts +16 -16
  657. package/src/slang-nodes/ImportDirective.ts +3 -5
  658. package/src/slang-nodes/IndexAccessEnd.ts +3 -5
  659. package/src/slang-nodes/IndexAccessExpression.ts +6 -8
  660. package/src/slang-nodes/InequalityExpression.ts +5 -7
  661. package/src/slang-nodes/InheritanceSpecifier.ts +2 -4
  662. package/src/slang-nodes/InheritanceType.ts +4 -6
  663. package/src/slang-nodes/InheritanceTypes.ts +5 -7
  664. package/src/slang-nodes/InterfaceDefinition.ts +5 -9
  665. package/src/slang-nodes/InterfaceMembers.ts +5 -5
  666. package/src/slang-nodes/LibraryDefinition.ts +6 -10
  667. package/src/slang-nodes/LibraryMembers.ts +5 -5
  668. package/src/slang-nodes/MappingKey.ts +4 -6
  669. package/src/slang-nodes/MappingKeyType.ts +5 -7
  670. package/src/slang-nodes/MappingType.ts +3 -5
  671. package/src/slang-nodes/MappingValue.ts +4 -6
  672. package/src/slang-nodes/MemberAccessExpression.ts +16 -12
  673. package/src/slang-nodes/ModifierAttribute.ts +3 -5
  674. package/src/slang-nodes/ModifierAttributes.ts +6 -8
  675. package/src/slang-nodes/ModifierDefinition.ts +22 -34
  676. package/src/slang-nodes/ModifierInvocation.ts +4 -6
  677. package/src/slang-nodes/MultiLineComment.ts +4 -9
  678. package/src/slang-nodes/MultiLineNatSpecComment.ts +4 -9
  679. package/src/slang-nodes/MultiplicativeExpression.ts +6 -8
  680. package/src/slang-nodes/NamedArgument.ts +4 -6
  681. package/src/slang-nodes/NamedArgumentGroup.ts +2 -4
  682. package/src/slang-nodes/NamedArguments.ts +5 -7
  683. package/src/slang-nodes/NamedArgumentsDeclaration.ts +2 -4
  684. package/src/slang-nodes/NamedImport.ts +3 -5
  685. package/src/slang-nodes/NewExpression.ts +3 -5
  686. package/src/slang-nodes/NumberUnit.ts +1 -1
  687. package/src/slang-nodes/OrExpression.ts +5 -7
  688. package/src/slang-nodes/OverridePaths.ts +4 -4
  689. package/src/slang-nodes/OverridePathsDeclaration.ts +2 -4
  690. package/src/slang-nodes/OverrideSpecifier.ts +2 -4
  691. package/src/slang-nodes/Parameter.ts +6 -10
  692. package/src/slang-nodes/Parameters.ts +6 -6
  693. package/src/slang-nodes/ParametersDeclaration.ts +2 -4
  694. package/src/slang-nodes/PathImport.ts +3 -5
  695. package/src/slang-nodes/PositionalArguments.ts +7 -7
  696. package/src/slang-nodes/PositionalArgumentsDeclaration.ts +4 -6
  697. package/src/slang-nodes/PostfixExpression.ts +3 -5
  698. package/src/slang-nodes/Pragma.ts +7 -9
  699. package/src/slang-nodes/PragmaDirective.ts +3 -5
  700. package/src/slang-nodes/PrefixExpression.ts +3 -5
  701. package/src/slang-nodes/ReceiveFunctionAttribute.ts +7 -9
  702. package/src/slang-nodes/ReceiveFunctionAttributes.ts +6 -8
  703. package/src/slang-nodes/ReceiveFunctionDefinition.ts +6 -8
  704. package/src/slang-nodes/ReturnStatement.ts +4 -6
  705. package/src/slang-nodes/ReturnsDeclaration.ts +3 -7
  706. package/src/slang-nodes/RevertStatement.ts +4 -6
  707. package/src/slang-nodes/ShiftExpression.ts +6 -8
  708. package/src/slang-nodes/SimpleVersionLiteral.ts +10 -8
  709. package/src/slang-nodes/SingleLineComment.ts +3 -8
  710. package/src/slang-nodes/SingleLineNatSpecComment.ts +3 -8
  711. package/src/slang-nodes/SlangNode.ts +25 -137
  712. package/src/slang-nodes/SourceUnit.ts +3 -7
  713. package/src/slang-nodes/SourceUnitMember.ts +17 -19
  714. package/src/slang-nodes/SourceUnitMembers.ts +5 -5
  715. package/src/slang-nodes/StateVariableAttribute.ts +3 -5
  716. package/src/slang-nodes/StateVariableAttributes.ts +6 -8
  717. package/src/slang-nodes/StateVariableDefinition.ts +8 -12
  718. package/src/slang-nodes/StateVariableDefinitionValue.ts +4 -6
  719. package/src/slang-nodes/Statement.ts +21 -23
  720. package/src/slang-nodes/Statements.ts +5 -5
  721. package/src/slang-nodes/StorageLayoutSpecifier.ts +5 -9
  722. package/src/slang-nodes/StorageLocation.ts +1 -1
  723. package/src/slang-nodes/StringExpression.ts +9 -11
  724. package/src/slang-nodes/StringLiteral.ts +2 -2
  725. package/src/slang-nodes/StringLiterals.ts +4 -6
  726. package/src/slang-nodes/StructDefinition.ts +3 -5
  727. package/src/slang-nodes/StructMember.ts +4 -6
  728. package/src/slang-nodes/StructMembers.ts +24 -15
  729. package/src/slang-nodes/TerminalNode.ts +1 -1
  730. package/src/slang-nodes/ThrowStatement.ts +1 -1
  731. package/src/slang-nodes/TryStatement.ts +8 -17
  732. package/src/slang-nodes/TupleDeconstructionElement.ts +25 -8
  733. package/src/slang-nodes/TupleDeconstructionElements.ts +18 -5
  734. package/src/slang-nodes/TupleDeconstructionStatement.ts +5 -7
  735. package/src/slang-nodes/TupleExpression.ts +2 -4
  736. package/src/slang-nodes/TupleMember.ts +6 -8
  737. package/src/slang-nodes/TupleValue.ts +3 -5
  738. package/src/slang-nodes/TupleValues.ts +5 -5
  739. package/src/slang-nodes/TypeExpression.ts +3 -5
  740. package/src/slang-nodes/TypeName.ts +8 -10
  741. package/src/slang-nodes/TypedTupleMember.ts +5 -7
  742. package/src/slang-nodes/UncheckedBlock.ts +2 -4
  743. package/src/slang-nodes/UnicodeStringLiteral.ts +2 -2
  744. package/src/slang-nodes/UnicodeStringLiterals.ts +4 -6
  745. package/src/slang-nodes/UnnamedFunctionAttribute.ts +3 -5
  746. package/src/slang-nodes/UnnamedFunctionAttributes.ts +6 -8
  747. package/src/slang-nodes/UnnamedFunctionDefinition.ts +6 -8
  748. package/src/slang-nodes/UntypedTupleMember.ts +3 -5
  749. package/src/slang-nodes/UserDefinedValueTypeDefinition.ts +4 -6
  750. package/src/slang-nodes/UsingAlias.ts +2 -4
  751. package/src/slang-nodes/UsingClause.ts +6 -8
  752. package/src/slang-nodes/UsingDeconstruction.ts +2 -4
  753. package/src/slang-nodes/UsingDeconstructionSymbol.ts +3 -5
  754. package/src/slang-nodes/UsingDeconstructionSymbols.ts +5 -7
  755. package/src/slang-nodes/UsingDirective.ts +4 -6
  756. package/src/slang-nodes/UsingOperator.ts +1 -1
  757. package/src/slang-nodes/UsingTarget.ts +4 -6
  758. package/src/slang-nodes/VariableDeclarationStatement.ts +8 -12
  759. package/src/slang-nodes/VariableDeclarationType.ts +4 -6
  760. package/src/slang-nodes/VariableDeclarationValue.ts +4 -6
  761. package/src/slang-nodes/VersionExpression.ts +6 -8
  762. package/src/slang-nodes/VersionExpressionSet.ts +5 -7
  763. package/src/slang-nodes/VersionExpressionSets.ts +18 -9
  764. package/src/slang-nodes/VersionLiteral.ts +3 -5
  765. package/src/slang-nodes/VersionOperator.ts +1 -1
  766. package/src/slang-nodes/VersionPragma.ts +2 -4
  767. package/src/slang-nodes/VersionRange.ts +3 -5
  768. package/src/slang-nodes/VersionTerm.ts +4 -6
  769. package/src/slang-nodes/WhileStatement.ts +6 -8
  770. package/src/slang-nodes/YulArguments.ts +5 -5
  771. package/src/slang-nodes/YulAssignmentOperator.ts +3 -5
  772. package/src/slang-nodes/YulBlock.ts +2 -4
  773. package/src/slang-nodes/YulBreakStatement.ts +1 -1
  774. package/src/slang-nodes/YulColonAndEqual.ts +1 -1
  775. package/src/slang-nodes/YulContinueStatement.ts +1 -1
  776. package/src/slang-nodes/YulDefaultCase.ts +2 -4
  777. package/src/slang-nodes/YulEqualAndColon.ts +1 -1
  778. package/src/slang-nodes/YulExpression.ts +6 -8
  779. package/src/slang-nodes/YulForStatement.ts +5 -14
  780. package/src/slang-nodes/YulFunctionCallExpression.ts +4 -6
  781. package/src/slang-nodes/YulFunctionDefinition.ts +5 -7
  782. package/src/slang-nodes/YulIfStatement.ts +4 -6
  783. package/src/slang-nodes/YulLabel.ts +3 -5
  784. package/src/slang-nodes/YulLeaveStatement.ts +1 -1
  785. package/src/slang-nodes/YulLiteral.ts +7 -9
  786. package/src/slang-nodes/YulParameters.ts +4 -4
  787. package/src/slang-nodes/YulParametersDeclaration.ts +2 -4
  788. package/src/slang-nodes/YulPath.ts +4 -6
  789. package/src/slang-nodes/YulPaths.ts +4 -6
  790. package/src/slang-nodes/YulReturnsDeclaration.ts +4 -8
  791. package/src/slang-nodes/YulStackAssignmentOperator.ts +3 -5
  792. package/src/slang-nodes/YulStackAssignmentStatement.ts +6 -10
  793. package/src/slang-nodes/YulStatement.ts +16 -18
  794. package/src/slang-nodes/YulStatements.ts +5 -5
  795. package/src/slang-nodes/YulSwitchCase.ts +6 -8
  796. package/src/slang-nodes/YulSwitchCases.ts +5 -7
  797. package/src/slang-nodes/YulSwitchStatement.ts +5 -9
  798. package/src/slang-nodes/YulValueCase.ts +4 -6
  799. package/src/slang-nodes/YulVariableAssignmentStatement.ts +6 -10
  800. package/src/slang-nodes/YulVariableDeclarationStatement.ts +3 -5
  801. package/src/slang-nodes/YulVariableDeclarationValue.ts +4 -6
  802. package/src/slang-nodes/YulVariableNames.ts +5 -7
  803. package/src/slang-nodes/types.d.ts +22 -9
  804. package/src/slang-printers/create-binary-operation-printer.ts +4 -4
  805. package/src/slang-printers/prettier-builders.ts +16 -0
  806. package/src/slang-printers/print-assignment-right-side.ts +2 -2
  807. package/src/slang-printers/print-binary-operation.ts +12 -6
  808. package/src/slang-printers/print-block-comment.ts +10 -12
  809. package/src/slang-printers/print-comments.ts +12 -13
  810. package/src/slang-printers/print-function.ts +3 -5
  811. package/src/slang-printers/print-group-and-indent-if-break-pair.ts +2 -4
  812. package/src/slang-printers/print-indented-group-or-spaced-document.ts +2 -4
  813. package/src/slang-printers/print-logical-operation.ts +7 -6
  814. package/src/slang-printers/print-member-access-chain-item.ts +2 -2
  815. package/src/slang-printers/print-preserving-empty-lines.ts +6 -7
  816. package/src/slang-printers/print-separated-item.ts +2 -4
  817. package/src/slang-printers/print-separated-list.ts +3 -5
  818. package/src/slang-printers/print-string.ts +3 -3
  819. package/src/slang-utils/collect-metadata.ts +141 -0
  820. package/src/slang-utils/create-hug-function.ts +18 -27
  821. package/src/slang-utils/create-nonterminal-variant-creator.ts +45 -35
  822. package/src/slang-utils/get-visitor-keys.ts +0 -1
  823. package/src/slang-utils/has-prettier-ignore.ts +1 -1
  824. package/src/slang-utils/infer-and-parse.ts +90 -0
  825. package/src/slang-utils/is-binary-operation.ts +1 -1
  826. package/src/slang-utils/is-chainable-expression.ts +1 -1
  827. package/src/slang-utils/is-comment.ts +1 -1
  828. package/src/slang-utils/prettier-utils.ts +10 -0
  829. package/src/slang-utils/sort-function-attributes.ts +1 -1
  830. package/src/slang-utils/types.d.ts +10 -10
  831. package/src/slangSolidityParser.ts +11 -11
  832. package/src/types.d.ts +4 -9
  833. package/dist/1bd393b18828da92fe7e.wasm +0 -0
  834. package/dist/591f276013d241f7a687.wasm +0 -0
  835. package/dist/95c706811bfc300bf7ed.wasm +0 -0
  836. package/dist/d64a7cadbeb47f3131fc.wasm +0 -0
  837. package/dist/slang-utils/create-parser.js +0 -28
  838. package/dist/slang-utils/create-parser.js.map +0 -1
  839. package/src/slang-utils/create-parser.ts +0 -60
@@ -1,2 +1,48 @@
1
- var e={3904(e,t,r){const s=Symbol("SemVer ANY");class i{static get ANY(){return s}constructor(e,t){if(t=n(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===s?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?a[o.COMPARATORLOOSE]:a[o.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new h(r[2],this.options.loose):this.semver=s}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===s||e===s)return!0;if("string"==typeof e)try{e=new h(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(e.value,t).test(this.value):""===e.operator?""===e.value||new u(this.value,t).test(e.semver):!((t=n(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=i;const n=r(8587),{safeRe:a,t:o}=r(9718),c=r(2111),l=r(7272),h=r(3908),u=r(8311)},8311(e,t,r){const s=/\s+/g;class i{constructor(e,t){if(t=a(t),e instanceof i)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new i(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(s," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!x(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&v(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(w,"");const t=((this.options.includePrerelease&&f)|(this.options.loose&&g))+":"+e,r=n.get(t);if(r)return r;const s=this.options.loose,i=s?h[d.HYPHENRANGELOOSE]:h[d.HYPHENRANGE];e=e.replace(i,I(this.options.includePrerelease)),c("hyphen replace",e),e=e.replace(h[d.COMPARATORTRIM],p),c("comparator trim",e),e=e.replace(h[d.TILDETRIM],m),c("tilde trim",e),e=e.replace(h[d.CARETTRIM],y),c("caret trim",e);let a=e.split(" ").map(e=>_(e,this.options)).join(" ").split(/\s+/).map(e=>K(e,this.options));s&&(a=a.filter(e=>(c("loose invalid filter",e,this.options),!!e.match(h[d.COMPARATORLOOSE])))),c("range list",a);const l=new Map,u=a.map(e=>new o(e,this.options));for(const e of u){if(x(e))return[e];l.set(e.value,e)}l.size>1&&l.has("")&&l.delete("");const v=[...l.values()];return n.set(t,v),v}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Range is required");return this.set.some(r=>b(r,t)&&e.set.some(e=>b(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(N(this.set[t],e,this.options))return!0;return!1}}e.exports=i;const n=new(r(8794)),a=r(8587),o=r(3904),c=r(7272),l=r(3908),{safeRe:h,src:u,t:d,comparatorTrimReplace:p,tildeTrimReplace:m,caretTrimReplace:y}=r(9718),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:g}=r(6874),w=new RegExp(u[d.BUILD],"g"),x=e=>"<0.0.0-0"===e.value,v=e=>""===e.value,b=(e,t)=>{let r=!0;const s=e.slice();let i=s.pop();for(;r&&s.length;)r=s.every(e=>i.intersects(e,t)),i=s.pop();return r},_=(e,t)=>(e=e.replace(h[d.BUILD],""),c("comp",e,t),e=k(e,t),c("caret",e),e=T(e,t),c("tildes",e),e=A(e,t),c("xrange",e),e=L(e,t),c("stars",e),e),E=e=>!e||"x"===e.toLowerCase()||"*"===e,T=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{const r=t.loose?h[d.TILDELOOSE]:h[d.TILDE],s=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,n,a)=>{let o;return c("tilde",e,t,r,i,n,a),E(r)?o="":E(i)?o=`>=${r}.0.0${s} <${+r+1}.0.0-0`:E(n)?o=`>=${r}.${i}.0${s} <${r}.${+i+1}.0-0`:a?(c("replaceTilde pr",a),o=`>=${r}.${i}.${n}-${a} <${r}.${+i+1}.0-0`):o=`>=${r}.${i}.${n} <${r}.${+i+1}.0-0`,c("tilde return",o),o})},k=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(e,t)=>{c("caret",e,t);const r=t.loose?h[d.CARETLOOSE]:h[d.CARET],s=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,n,a)=>{let o;return c("caret",e,t,r,i,n,a),E(r)?o="":E(i)?o=`>=${r}.0.0${s} <${+r+1}.0.0-0`:E(n)?o="0"===r?`>=${r}.${i}.0${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${s} <${+r+1}.0.0-0`:a?(c("replaceCaret pr",a),o="0"===r?"0"===i?`>=${r}.${i}.${n}-${a} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n}-${a} <${+r+1}.0.0-0`):(c("no pr"),o="0"===r?"0"===i?`>=${r}.${i}.${n} <${r}.${i}.${+n+1}-0`:`>=${r}.${i}.${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${n} <${+r+1}.0.0-0`),c("caret return",o),o})},A=(e,t)=>(c("replaceXRanges",e,t),e.split(/\s+/).map(e=>C(e,t)).join(" ")),C=(e,t)=>{e=e.trim();const r=t.loose?h[d.XRANGELOOSE]:h[d.XRANGE];return e.replace(r,(r,s,i,n,a,o)=>{if(c("xRange",e,r,s,i,n,a,o),((e,t,r)=>E(e)&&!E(t)||E(t)&&r&&!E(r))(i,n,a))return e;const l=E(i),h=l||E(n),u=h||E(a),d=u;return"="===s&&d&&(s=""),o=t.includePrerelease?"-0":"",l?r=">"===s||"<"===s?"<0.0.0-0":"*":s&&d?(h&&(n=0),a=0,">"===s?(s=">=",h?(i=+i+1,n=0,a=0):(n=+n+1,a=0)):"<="===s&&(s="<",h?i=+i+1:n=+n+1),"<"===s&&(o="-0"),r=`${s+i}.${n}.${a}${o}`):h?r=`>=${i}.0.0${o} <${+i+1}.0.0-0`:u&&(r=`>=${i}.${n}.0${o} <${i}.${+n+1}.0-0`),c("xRange return",r),r})},L=(e,t)=>(c("replaceStars",e,t),e.trim().replace(h[d.STAR],"")),K=(e,t)=>(c("replaceGTE0",e,t),e.trim().replace(h[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),I=e=>(t,r,s,i,n,a,o,c,l,h,u,d)=>`${r=E(s)?"":E(i)?`>=${s}.0.0${e?"-0":""}`:E(n)?`>=${s}.${i}.0${e?"-0":""}`:a?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=E(l)?"":E(h)?`<${+l+1}.0.0-0`:E(u)?`<${l}.${+h+1}.0-0`:d?`<=${l}.${h}.${u}-${d}`:e?`<${l}.${h}.${+u+1}-0`:`<=${c}`}`.trim(),N=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(c(e[r].semver),e[r].semver!==o.ANY&&e[r].semver.prerelease.length>0){const s=e[r].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}},3908(e,t,r){const s=r(7272),{MAX_LENGTH:i,MAX_SAFE_INTEGER:n}=r(6874),{safeRe:a,t:o}=r(9718),c=r(8587),{compareIdentifiers:l}=r(1123);class h{constructor(e,t){if(t=c(t),e instanceof h){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);s("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?a[o.LOOSE]:a[o.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e}):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(e){if(s("SemVer.compare",this.version,this.options,e),!(e instanceof h)){if("string"==typeof e&&e===this.version)return 0;e=new h(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof h||(e=new h(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof h||(e=new h(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],i=e.prerelease[t];if(s("prerelease compare",t,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 l(r,i)}while(++t)}compareBuild(e){e instanceof h||(e=new h(e,this.options));let t=0;do{const r=this.build[t],i=e.build[t];if(s("build compare",t,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 l(r,i)}while(++t)}inc(e,t,r){if(e.startsWith("pre")){if(!t&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(r)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let s=this.prerelease.length;for(;--s>=0;)"number"==typeof this.prerelease[s]&&(this.prerelease[s]++,s=-2);if(-1===s){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let s=[t,e];if(!1===r&&(s=[t]),((e,t)=>{const r=t.split(".");if(r.length>e.length)return!1;for(let t=0;t<r.length;t++)if(0!==l(e[t],r[t]))return!1;return!0})(this.prerelease,t)){const e=this.prerelease[t.split(".").length];isNaN(e)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=h},7414(e,t,r){const s=r(144);e.exports=(e,t)=>{const r=s(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},2111(e,t,r){const s=r(4641),i=r(3999),n=r(5580),a=r(4089),o=r(7059),c=r(5200);e.exports=(e,t,r,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return s(e,r,l);case"!=":return i(e,r,l);case">":return n(e,r,l);case">=":return a(e,r,l);case"<":return o(e,r,l);case"<=":return c(e,r,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},6170(e,t,r){const s=r(3908),i=r(144),{safeRe:n,t:a}=r(9718);e.exports=(e,t)=>{if(e instanceof s)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){const s=t.includePrerelease?n[a.COERCERTLFULL]:n[a.COERCERTL];let i;for(;(i=s.exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&i.index+i[0].length===r.index+r[0].length||(r=i),s.lastIndex=i.index+i[1].length+i[2].length;s.lastIndex=-1}else r=e.match(t.includePrerelease?n[a.COERCEFULL]:n[a.COERCE]);if(null===r)return null;const o=r[2],c=r[3]||"0",l=r[4]||"0",h=t.includePrerelease&&r[5]?`-${r[5]}`:"",u=t.includePrerelease&&r[6]?`+${r[6]}`:"";return i(`${o}.${c}.${l}${h}${u}`,t)}},909(e,t,r){const s=r(3908);e.exports=(e,t,r)=>{const i=new s(e,r),n=new s(t,r);return i.compare(n)||i.compareBuild(n)}},1763(e,t,r){const s=r(560);e.exports=(e,t)=>s(e,t,!0)},560(e,t,r){const s=r(3908);e.exports=(e,t,r)=>new s(e,r).compare(new s(t,r))},1832(e,t,r){const s=r(144);e.exports=(e,t)=>{const r=s(e,null,!0),i=s(t,null,!0),n=r.compare(i);if(0===n)return null;const a=n>0,o=a?r:i,c=a?i:r,l=!!o.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return"major";if(0===c.compareMain(o))return c.minor&&!c.patch?"minor":"patch"}const h=l?"pre":"";return r.major!==i.major?h+"major":r.minor!==i.minor?h+"minor":r.patch!==i.patch?h+"patch":"prerelease"}},4641(e,t,r){const s=r(560);e.exports=(e,t,r)=>0===s(e,t,r)},5580(e,t,r){const s=r(560);e.exports=(e,t,r)=>s(e,t,r)>0},4089(e,t,r){const s=r(560);e.exports=(e,t,r)=>s(e,t,r)>=0},3007(e,t,r){const s=r(3908);e.exports=(e,t,r,i,n)=>{"string"==typeof r&&(n=i,i=r,r=void 0);try{return new s(e instanceof s?e.version:e,r).inc(t,i,n).version}catch(e){return null}}},7059(e,t,r){const s=r(560);e.exports=(e,t,r)=>s(e,t,r)<0},5200(e,t,r){const s=r(560);e.exports=(e,t,r)=>s(e,t,r)<=0},2938(e,t,r){const s=r(3908);e.exports=(e,t)=>new s(e,t).major},6254(e,t,r){const s=r(3908);e.exports=(e,t)=>new s(e,t).minor},3999(e,t,r){const s=r(560);e.exports=(e,t,r)=>0!==s(e,t,r)},144(e,t,r){const s=r(3908);e.exports=(e,t,r=!1)=>{if(e instanceof s)return e;try{return new s(e,t)}catch(e){if(!r)return null;throw e}}},4493(e,t,r){const s=r(3908);e.exports=(e,t)=>new s(e,t).patch},1729(e,t,r){const s=r(144);e.exports=(e,t)=>{const r=s(e,t);return r&&r.prerelease.length?r.prerelease:null}},9970(e,t,r){const s=r(560);e.exports=(e,t,r)=>s(t,e,r)},4277(e,t,r){const s=r(909);e.exports=(e,t)=>e.sort((e,r)=>s(r,e,t))},7638(e,t,r){const s=r(8311);e.exports=(e,t,r)=>{try{t=new s(t,r)}catch(e){return!1}return t.test(e)}},6308(e,t,r){const s=r(909);e.exports=(e,t)=>e.sort((e,r)=>s(e,r,t))},417(e,t,r){const s=r(144),i=r(6874),n=r(3908),a=e=>e.startsWith("pre");e.exports=(e,t,r)=>{if(!i.RELEASE_TYPES.includes(t))return null;const o=((e,t)=>{const r=e instanceof n?e.version:e;return s(r,t)})(e,r);return o&&((e,t)=>{if(a(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0}return e.format()})(o,t)}},6953(e,t,r){const s=r(144);e.exports=(e,t)=>{const r=s(e,t);return r?r.version:null}},9589(e,t,r){const s=r(9718),i=r(6874),n=r(3908),a=r(1123),o=r(144),c=r(6953),l=r(7414),h=r(3007),u=r(1832),d=r(2938),p=r(6254),m=r(4493),y=r(1729),f=r(560),g=r(9970),w=r(1763),x=r(909),v=r(6308),b=r(4277),_=r(5580),E=r(7059),T=r(4641),S=r(3999),k=r(4089),R=r(5200),A=r(2111),C=r(6170),L=r(417),K=r(3904),I=r(8311),N=r(7638),O=r(7631),D=r(9628),P=r(270),q=r(1261),M=r(3874),F=r(7075),U=r(5571),Y=r(5342),V=r(6780),j=r(2525),B=r(5032);e.exports={parse:o,valid:c,clean:l,inc:h,diff:u,major:d,minor:p,patch:m,prerelease:y,compare:f,rcompare:g,compareLoose:w,compareBuild:x,sort:v,rsort:b,gt:_,lt:E,eq:T,neq:S,gte:k,lte:R,cmp:A,coerce:C,truncate:L,Comparator:K,Range:I,satisfies:N,toComparators:O,maxSatisfying:D,minSatisfying:P,minVersion:q,validRange:M,outside:F,gtr:U,ltr:Y,intersects:V,simplifyRange:j,subset:B,SemVer:n,re:s.re,src:s.src,tokens:s.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},6874(e){const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7272(e){const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},1123(e){const t=/^[0-9]+$/,r=(e,r)=>{if("number"==typeof e&&"number"==typeof r)return e===r?0:e<r?-1:1;const s=t.test(e),i=t.test(r);return s&&i&&(e=+e,r=+r),e===r?0:s&&!i?-1:i&&!s?1:e<r?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},8794(e){e.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},8587(e){const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},9718(e,t,r){const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:n}=r(6874),a=r(7272),o=(t=e.exports={}).re=[],c=t.safeRe=[],l=t.src=[],h=t.safeSrc=[],u=t.t={};let d=0;const p="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",n],[p,i]],y=(e,t,r)=>{const s=(e=>{for(const[t,r]of m)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),i=d++;a(e,i,t),u[e]=i,l[i]=t,h[i]=s,o[i]=new RegExp(t,r?"g":void 0),c[i]=new RegExp(s,r?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),y("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NONNUMERICIDENTIFIER]}|${l[u.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${p}+`),y("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),y("FULL",`^${l[u.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),y("LOOSE",`^${l[u.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),y("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),y("COERCE",`${l[u.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",l[u.COERCEPLAIN]+`(?:${l[u.PRERELEASE]})?`+`(?:${l[u.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",l[u.COERCE],!0),y("COERCERTLFULL",l[u.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",y("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",y("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5571(e,t,r){const s=r(7075);e.exports=(e,t,r)=>s(e,t,">",r)},6780(e,t,r){const s=r(8311);e.exports=(e,t,r)=>(e=new s(e,r),t=new s(t,r),e.intersects(t,r))},5342(e,t,r){const s=r(7075);e.exports=(e,t,r)=>s(e,t,"<",r)},9628(e,t,r){const s=r(3908),i=r(8311);e.exports=(e,t,r)=>{let n=null,a=null,o=null;try{o=new i(t,r)}catch(e){return null}return e.forEach(e=>{o.test(e)&&(n&&-1!==a.compare(e)||(n=e,a=new s(n,r)))}),n}},270(e,t,r){const s=r(3908),i=r(8311);e.exports=(e,t,r)=>{let n=null,a=null,o=null;try{o=new i(t,r)}catch(e){return null}return e.forEach(e=>{o.test(e)&&(n&&1!==a.compare(e)||(n=e,a=new s(n,r)))}),n}},1261(e,t,r){const s=r(3908),i=r(8311),n=r(5580);e.exports=(e,t)=>{e=new i(e,t);let r=new s("0.0.0");if(e.test(r))return r;if(r=new s("0.0.0-0"),e.test(r))return r;r=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let a=null;i.forEach(e=>{const t=new s(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!n(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}),!a||r&&!n(r,a)||(r=a)}return r&&e.test(r)?r:null}},7075(e,t,r){const s=r(3908),i=r(3904),{ANY:n}=i,a=r(8311),o=r(7638),c=r(5580),l=r(7059),h=r(5200),u=r(4089);e.exports=(e,t,r,d)=>{let p,m,y,f,g;switch(e=new s(e,d),t=new a(t,d),r){case">":p=c,m=h,y=l,f=">",g=">=";break;case"<":p=l,m=u,y=c,f="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,d))return!1;for(let r=0;r<t.set.length;++r){const s=t.set[r];let a=null,o=null;if(s.forEach(e=>{e.semver===n&&(e=new i(">=0.0.0")),a=a||e,o=o||e,p(e.semver,a.semver,d)?a=e:y(e.semver,o.semver,d)&&(o=e)}),a.operator===f||a.operator===g)return!1;if((!o.operator||o.operator===f)&&m(e,o.semver))return!1;if(o.operator===g&&y(e,o.semver))return!1}return!0}},2525(e,t,r){const s=r(7638),i=r(560);e.exports=(e,t,r)=>{const n=[];let a=null,o=null;const c=e.sort((e,t)=>i(e,t,r));for(const e of c)s(e,t,r)?(o=e,a||(a=e)):(o&&n.push([a,o]),o=null,a=null);a&&n.push([a,null]);const l=[];for(const[e,t]of n)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const h=l.join(" || "),u="string"==typeof t.raw?t.raw:String(t);return h.length<u.length?h:t}},5032(e,t,r){const s=r(8311),i=r(3904),{ANY:n}=i,a=r(7638),o=r(560),c=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],h=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=r.includePrerelease?c:l}if(1===t.length&&t[0].semver===n){if(r.includePrerelease)return!0;t=l}const s=new Set;let i,h,p,m,y,f,g;for(const t of e)">"===t.operator||">="===t.operator?i=u(i,t,r):"<"===t.operator||"<="===t.operator?h=d(h,t,r):s.add(t.semver);if(s.size>1)return null;if(i&&h){if(p=o(i.semver,h.semver,r),p>0)return null;if(0===p&&(">="!==i.operator||"<="!==h.operator))return null}for(const e of s){if(i&&!a(e,String(i),r))return null;if(h&&!a(e,String(h),r))return null;for(const s of t)if(!a(e,String(s),r))return!1;return!0}let w=!(!h||r.includePrerelease||!h.semver.prerelease.length)&&h.semver,x=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;w&&1===w.prerelease.length&&"<"===h.operator&&0===w.prerelease[0]&&(w=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,f=f||"<"===e.operator||"<="===e.operator,i)if(x&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===x.major&&e.semver.minor===x.minor&&e.semver.patch===x.patch&&(x=!1),">"===e.operator||">="===e.operator){if(m=u(i,e,r),m===e&&m!==i)return!1}else if(">="===i.operator&&!e.test(i.semver))return!1;if(h)if(w&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===w.major&&e.semver.minor===w.minor&&e.semver.patch===w.patch&&(w=!1),"<"===e.operator||"<="===e.operator){if(y=d(h,e,r),y===e&&y!==h)return!1}else if("<="===h.operator&&!e.test(h.semver))return!1;if(!e.operator&&(h||i)&&0!==p)return!1}return!(i&&f&&!h&&0!==p||h&&g&&!i&&0!==p||x||w)},u=(e,t,r)=>{if(!e)return t;const s=o(e.semver,t.semver,r);return s>0?e:s<0||">"===t.operator&&">="===e.operator?t:e},d=(e,t,r)=>{if(!e)return t;const s=o(e.semver,t.semver,r);return s<0?e:s>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new s(e,r),t=new s(t,r);let i=!1;e:for(const s of e.set){for(const e of t.set){const t=h(s,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},7631(e,t,r){const s=r(8311);e.exports=(e,t)=>new s(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},3874(e,t,r){const s=r(8311);e.exports=(e,t)=>{try{return new s(e,t).range||"*"}catch(e){return null}}},8965(e,t,r){const s=new Set(["loc","range","comments"]);function i(){}i.ignoredProperties=s;const n=i;r.d(t,["A",0,n])},8156(e,t,r){r.a(e,async(e,s)=>{try{var i=r(4687),n=r(1815),a=r(8965),o=r(7671),c=r(1410),l=r(5767),h=r(2680),u=r(3927),d=r(466),p=r(7540),m=r(9060),y=r(8679),f=r(5266),g=e([n,u,p,y]);[n,u,p,y]=g.then?(await g)():g;const w="slang",x="antlr",v="slang-ast",b="antlr-ast",_=[{linguistLanguageId:237469032,name:"Solidity",aceMode:"text",tmScope:"source.solidity",extensions:[".sol"],parsers:[w,x],vscodeLanguageIds:["solidity"]}],E={astFormat:b,parse:l.A,...o.A},T={astFormat:v,parse:u.A,locStart:m.z,locEnd:m.I},S={[w]:T,[x]:E},k=e=>e.kind&&!(0,p.C)(e),R={canAttachComment:({type:e})=>"string"==typeof e&&"BlockComment"!==e&&"LineComment"!==e,handleComments:{ownLine:i.bd,endOfLine:i.rN,remaining:i.F7},isBlockComment:i.tN,massageAstNode:a.A,print:h.A,printComment:i.X5},A={canAttachComment:k,handleComments:n.X,isBlockComment:p.t,massageAstNode:a.A,print:d.A,hasPrettierIgnore:y.m,getVisitorKeys:f.H,printComment:n.o},C={bracketSpacing:!1,tabWidth:4},L={languages:_,parsers:S,printers:{[v]:A,[b]:R},options:c.A,defaultOptions:C};r.d(t,["A",0,L]),s()}catch(e){s(e)}})},1410(e,t,r){const s="Common",i="JavaScript",n={bracketSpacing:{category:s,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:s,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},experimentalTernaries:{category:i,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},experimentalOperatorPosition:{category:i,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},compiler:{category:"Solidity",type:"string",description:"The Solidity compiler version to help us avoid critical errors in format for the wrong version."}};r.d(t,["A",0,n])},7611(e,t,r){r.a(e,async(e,s)=>{try{var i=r(769),n=e([i]),a=n.then?(await n)():n;function o(e,t){const{precedingNode:r,enclosingNode:s,followingNode:n}=e,a={text:t,precedingNode:r,enclosingNode:s,followingNode:n,comment:e};return i.A.some(e=>e(a))}i=a[0];const c={ownLine:o,endOfLine:o,remaining:o};r.d(t,["X",0,c]),s()}catch(l){s(l)}})},4796(e,t,r){r.d(t,{A:()=>a});var s=r(838);const{addDanglingComment:i,addLeadingComment:n}=s.util;function a(e,t){0===e.items.length?i(e,t,!1):n(e.items[0],t)}},876(e,t,r){r.d(t,{A:()=>a});var s=r(838);const{addDanglingComment:i,addTrailingComment:n}=s.util;function a(e,t){0===e.items.length?i(e,t,!1):n(e.items[e.items.length-1],t)}},2038(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>l});var i=r(8269),n=r(4796),a=r(876),o=e([i]),c=o.then?(await o)():o;function l({precedingNode:e,enclosingNode:t,followingNode:r,comment:s}){return t?.kind===i.q3.Block&&(e?.kind===i.q3.Statements?((0,a.A)(e,s),!0):r?.kind===i.q3.Statements&&((0,n.A)(r,s),!0))}i=c[0],s()}catch(h){s(h)}})},4597(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>d});var i=r(8269),n=r(838),a=r(9060),o=r(876),c=e([i]),l=c.then?(await c)():c;i=l[0];const{addLeadingComment:h,addTrailingComment:u}=n.util;function d({text:e,precedingNode:t,enclosingNode:r,followingNode:s,comment:c}){if(r?.kind!==i.q3.ContractDefinition)return!1;const l=n.util.getNextNonSpaceNonCommentCharacter(e,(0,a.I)(c));if(s?.kind===i.q3.ContractSpecifiers||s?.kind===i.q3.ContractMembers&&"{"!==l)return h(r,c),!0;if(t?.kind===i.q3.ContractMembers)return(0,o.A)(t,c),!0;if("{"===l&&t?.kind===i.q3.ContractSpecifiers){if(0===t.items.length)return u(t,c),!0;const e=t.items[t.items.length-1];if(e.kind===i.q3.InheritanceSpecifier)return(0,o.A)(e.types,c),!0;if(e.kind===i.q3.StorageLayoutSpecifier)return u(e.expression,c),!0}return!1}s()}catch(p){s(p)}})},3449(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>h});var i=r(8269),n=r(838),a=r(876),o=e([i]),c=o.then?(await o)():o;i=c[0];const{addTrailingComment:l}=n.util;function h({precedingNode:e,enclosingNode:t,comment:r}){if(t?.kind!==i.q3.ContractSpecifiers)return!1;if(e){if(e.kind===i.q3.InheritanceSpecifier)return(0,a.A)(e.types,r),!0;if(e.kind===i.q3.StorageLayoutSpecifier)return l(e.expression,r),!0}return!1}s()}catch(u){s(u)}})},7265(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>h});var i=r(8269),n=r(838),a=r(4796),o=e([i]),c=o.then?(await o)():o;i=c[0];const{addLeadingComment:l}=n.util;function h({enclosingNode:e,followingNode:t,comment:r}){return e?.kind===i.q3.ElseBranch&&t===e.body&&t.kind===i.q3.IfStatement&&(t.body.kind===i.q3.Block?(0,a.A)(t.body.statements,r):l(t.body,r),!0)}s()}catch(u){s(u)}})},8534(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>d});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=e([i]),l=c.then?(await c)():c;i=l[0];const{addLeadingComment:h,addTrailingComment:u}=n.util;function d({text:e,precedingNode:t,enclosingNode:r,followingNode:s,comment:c}){return r?.kind===i.q3.IfStatement&&(")"===n.util.getNextNonSpaceNonCommentCharacter(e,(0,a.I)(c))||t===r.body&&s===r.elseBranch?(u(t,c),!0):s?.kind===i.q3.IfStatement?(s.body.kind===i.q3.Block?(0,o.A)(s.body.statements,c):h(s.body,c),!0):r.body===s&&(s.kind===i.q3.Block?(0,o.A)(s.statements,c):h(s,c),!0))}s()}catch(p){s(p)}})},6318(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>u});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=r(876),l=e([i]),h=l.then?(await l)():l;function u({text:e,precedingNode:t,enclosingNode:r,followingNode:s,comment:l}){if(r?.kind!==i.q3.InterfaceDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(e,(0,a.I)(l));return t?.kind===i.q3.InterfaceMembers?((0,c.A)(t,l),!0):"{"===h&&s?.kind===i.q3.InterfaceMembers&&((0,o.A)(s,l),!0)}i=h[0],s()}catch(d){s(d)}})},6718(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>u});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=r(876),l=e([i]),h=l.then?(await l)():l;function u({text:e,precedingNode:t,enclosingNode:r,followingNode:s,comment:l}){if(r?.kind!==i.q3.LibraryDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(e,(0,a.I)(l));return t?.kind===i.q3.LibraryMembers?((0,c.A)(t,l),!0):"{"===h&&s?.kind===i.q3.LibraryMembers&&((0,o.A)(s,l),!0)}i=h[0],s()}catch(d){s(d)}})},1635(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>h});var i=r(8269),n=r(838),a=e([i]),o=a.then?(await a)():a;i=o[0];const{addLeadingComment:c,addTrailingComment:l}=n.util;function h({precedingNode:e,enclosingNode:t,followingNode:r,comment:s}){return t?.kind===i.q3.MemberAccessExpression&&(r===t.operand?(c(r,s),!0):(e===t.operand&&r===t.member||e===t.member)&&(l(e,s),!0))}s()}catch(u){s(u)}})},4923(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>u});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=e([i]),l=c.then?(await c)():c;i=l[0];const{addTrailingComment:h}=n.util;function u({text:e,precedingNode:t,enclosingNode:r,followingNode:s,comment:c}){if(r?.kind!==i.q3.ModifierInvocation)return!1;const l=n.util.getNextNonSpaceNonCommentCharacter(e,(0,a.I)(c));return t?.kind===i.q3.IdentifierPath&&"("===l&&s?.kind===i.q3.PositionalArgumentsDeclaration&&(0===s.arguments.items.length?h(r,c):(0,o.A)(s.arguments,c),!0)}s()}catch(d){s(d)}})},2120(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>l});var i=r(8269),n=r(4796),a=r(876),o=e([i]),c=o.then?(await o)():o;function l({precedingNode:e,enclosingNode:t,followingNode:r,comment:s}){return t?.kind===i.q3.ParametersDeclaration&&(e?.kind===i.q3.Parameters?((0,a.A)(e,s),!0):r?.kind===i.q3.Parameters&&((0,n.A)(r,s),!0))}i=c[0],s()}catch(h){s(h)}})},3273(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>l});var i=r(8269),n=r(4796),a=r(876),o=e([i]),c=o.then?(await o)():o;function l({precedingNode:e,enclosingNode:t,followingNode:r,comment:s}){return t?.kind===i.q3.PositionalArgumentsDeclaration&&(e?.kind===i.q3.PositionalArguments?((0,a.A)(e,s),!0):r?.kind===i.q3.PositionalArguments&&((0,n.A)(r,s),!0))}i=c[0],s()}catch(h){s(h)}})},9981(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>l});var i=r(8269),n=r(4796),a=r(876),o=e([i]),c=o.then?(await o)():o;function l({precedingNode:e,followingNode:t,comment:r}){return t&&t.kind===i.q3.SourceUnitMembers?((0,n.A)(t,r),!0):!(!e||e.kind!==i.q3.SourceUnitMembers||((0,a.A)(e,r),0))}i=c[0],s()}catch(h){s(h)}})},2878(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>u});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=r(876),l=e([i]),h=l.then?(await l)():l;function u({text:e,precedingNode:t,enclosingNode:r,followingNode:s,comment:l}){if(r?.kind!==i.q3.StructDefinition)return!1;const h=n.util.getNextNonSpaceNonCommentCharacter(e,(0,a.I)(l));return t?.kind===i.q3.StructMembers&&"}"===h?((0,c.A)(t,l),!0):s?.kind===i.q3.StructMembers&&((0,o.A)(s,l),!0)}i=h[0],s()}catch(d){s(d)}})},5710(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>d});var i=r(8269),n=r(838),a=r(9060),o=r(4796),c=e([i]),l=c.then?(await c)():c;i=l[0];const{addLeadingComment:h,addTrailingComment:u}=n.util;function d({text:e,precedingNode:t,enclosingNode:r,followingNode:s,comment:c}){return r?.kind===i.q3.WhileStatement&&(")"===n.util.getNextNonSpaceNonCommentCharacter(e,(0,a.I)(c))||r.condition===t?(u(t,c),!0):r.body===s&&(s.kind===i.q3.Block?(0,o.A)(s.statements,c):h(s,c),!0))}s()}catch(p){s(p)}})},543(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>h});var i=r(8269),n=r(838),a=e([i]),o=a.then?(await a)():a;i=o[0];const{addLeadingComment:c,addDanglingComment:l}=n.util;function h({precedingNode:e,enclosingNode:t,followingNode:r,comment:s}){return t?.kind===i.q3.YulBlock&&(e?.kind===i.q3.YulStatements&&0===e.items.length?(l(e,s,!1),!0):r?.kind===i.q3.YulStatements&&r.items.length>0&&(c(r.items[0],s),!0))}s()}catch(u){s(u)}})},769(e,t,r){r.a(e,async(e,s)=>{try{var i=r(2038),n=r(4597),a=r(3449),o=r(7265),c=r(8534),l=r(6318),h=r(6718),u=r(1635),d=r(4923),p=r(2120),m=r(3273),y=r(9981),f=r(2878),g=r(5710),w=r(543),x=e([i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]);[i,n,a,o,c,l,h,u,d,p,m,y,f,g,w]=x.then?(await x)():x;const v=[i.A,n.A,a.A,o.A,c.A,l.A,h.A,u.A,d.A,p.A,m.A,y.A,f.A,g.A,w.A];r.d(t,["A",0,v]),s()}catch(e){s(e)}})},1815(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{X:()=>i.X,o:()=>n.X});var i=r(7611),n=r(7431),a=e([i,n]);[i,n]=a.then?(await a)():a,s()}catch(e){s(e)}})},7431(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{X:()=>o});var i=r(7540),n=e([i]),a=n.then?(await n)():n;function o({node:e}){if((0,i.C)(e))return e.print();throw new Error(`Not a comment: ${JSON.stringify(e)}`)}i=a[0],s()}catch(c){s(c)}})},1475(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Y:()=>c});var i=r(8269),n=r(6095),a=r(9455),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.AbicoderPragma;version;constructor(e,t){super(e,t),this.version=new a.G(e.version,t),this.updateMetadata(this.version)}print(e){return["abicoder ",e("version")]}}s()}catch(e){s(e)}})},9455(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{G:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.AbicoderVersion;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse()}print(){return this.variant}}s()}catch(e){s(e)}})},2054(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{z:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=e([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["%"]),p=(0,n.WV)((0,o.n)([i.q3.ShiftExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{kind=i.q3.AdditiveExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=(0,c.f)(new h.r(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(e.rightOperand,t)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=d(this.rightOperand)}print(e,t,r){return p(this,t,e,r)}}s()}catch(e){s(e)}})},7614(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{R:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.AddressType;payableKeyword;constructor(e,t){super(e,t),this.payableKeyword=e.payableKeyword?.unparse()}print(){return"address"+(this.payableKeyword?" payable":"")}}s()}catch(e){s(e)}})},2745(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{g:()=>h});var i=r(8269),n=r(8409),a=r(4003),o=r(6095),c=r(8926),l=e([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.AndExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=(0,a.f)(new c.r(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=(0,a.f)(new c.r(e.rightOperand,t)),this.updateMetadata(this.leftOperand,this.rightOperand)}print(e,t,r){return(0,n.a)(this,t,e,r)}}s()}catch(e){s(e)}})},5756(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(9182),l=r(7832),h=e([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.V34,c.V],[i.Qy6,l.Q]]);class d extends o.w{kind=n.q3.ArgumentsDeclaration;variant;constructor(e,t){super(e,t),this.variant=u(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},6233(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{g:()=>c});var i=r(8269),n=r(6095),a=r(3857),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.ArrayExpression;items;constructor(e,t){super(e,t),this.items=new a.A(e.items,t),this.updateMetadata(this.items)}print(e){return["[",e("items"),"]"]}}s()}catch(e){s(e)}})},4968(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{f:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8926),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.ArrayTypeName;operand;index;constructor(e,t){super(e,t),this.operand=(0,n.f)(new o.C(e.operand,t)),e.index&&(this.index=(0,n.f)(new c.r(e.index,t))),this.updateMetadata(this.operand,this.index)}print(e){return[e("operand"),"[",e("index"),"]"]}}s()}catch(e){s(e)}})},3857(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>h});var i=r(8269),n=r(7578),a=r(4003),o=r(6095),c=r(8926),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.ArrayValues;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,a.f)(new c.r(e,t)))}print(e,t){return(0,n.J)(t.map(e,"items"))}}s()}catch(e){s(e)}})},7041(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Y:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(3562),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.AssemblyFlags;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new o.L(e,t))}print(e,t){return(0,n.J)(t.map(e,"items"))}}s()}catch(e){s(e)}})},8085(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{e:()=>c});var i=r(8269),n=r(6095),a=r(7041),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.AssemblyFlagsDeclaration;flags;constructor(e,t){super(e,t),this.flags=new a.Y(e.flags,t),this.updateMetadata(this.flags)}print(e){return["(",e("flags"),")"]}}s()}catch(e){s(e)}})},7299(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{I:()=>h});var i=r(8269),n=r(6095),a=r(3562),o=r(8085),c=r(2319),l=e([i,n,a,o,c]);[i,n,a,o,c]=l.then?(await l)():l;class h extends n.w{kind=i.q3.AssemblyStatement;label;flags;body;constructor(e,t){super(e,t),e.label&&(this.label=new a.L(e.label,t)),e.flags&&(this.flags=new o.e(e.flags,t)),this.body=new c.M(e.body,t),this.updateMetadata(this.label,this.flags,this.body)}print(e){const t=e("label"),r=e("flags");return["assembly ",t?[t," "]:t,r?[r," "]:r,e("body")]}}s()}catch(e){s(e)}})},5287(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{k:()=>h});var i=r(8269),n=r(4003),a=r(5536),o=r(6095),c=r(8926),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.AssignmentExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=(0,n.f)(new c.r(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=(0,n.f)(new c.r(e.rightOperand,t)),this.updateMetadata(this.leftOperand,this.rightOperand)}print(e){return[e("leftOperand"),` ${this.operator}`,(0,a.U)(e("rightOperand"),this.rightOperand)]}}s()}catch(e){s(e)}})},7162(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{J:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=e([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["+","-","*","/","**","<<",">>"]),p=(0,n.WV)((0,o.n)([i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{kind=i.q3.BitwiseAndExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=(0,c.f)(new h.r(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(e.rightOperand,t)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=d(this.rightOperand)}print(e,t,r){return p(this,t,e,r)}}s()}catch(e){s(e)}})},7438(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{J:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=e([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["+","-","*","/","**","<<",">>","&","^"]),p=(0,n.WV)((0,o.n)([i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{kind=i.q3.BitwiseOrExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=(0,c.f)(new h.r(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(e.rightOperand,t)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=d(this.rightOperand)}print(e,t,r){return p(this,t,e,r)}}s()}catch(e){s(e)}})},4654(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{R:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=e([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["+","-","*","/","**","<<",">>","&"]),p=(0,n.WV)((0,o.n)([i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{kind=i.q3.BitwiseXorExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=(0,c.f)(new h.r(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(e.rightOperand,t)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=d(this.rightOperand)}print(e,t,r){return p(this,t,e,r)}}s()}catch(e){s(e)}})},6511(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{e:()=>c});var i=r(8269),n=r(6095),a=r(1322),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.Block;statements;constructor(e,t){super(e,t),this.statements=new a.$(e.statements,t),this.updateMetadata(this.statements)}print(e){return["{",e("statements"),"}"]}}s()}catch(e){s(e)}})},3144(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{V:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.BreakStatement;constructor(e,t){super(e,t)}print(){return"break;"}}s()}catch(e){s(e)}})},6380(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{p:()=>d});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(316),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h,softline:u}=n.doc.builders;class d extends o.w{kind=i.q3.CallOptions;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new c.j(e,t))}print(e,t,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(e){s(e)}})},2514(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{X:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=r(6380),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.CallOptionsExpression;operand;options;constructor(e,t){super(e,t),this.operand=(0,n.f)(new o.r(e.operand,t)),this.options=new c.p(e.options,t),this.updateMetadata(this.operand,this.options)}print(e){return[e("operand"),"{",e("options"),"}"]}}s()}catch(e){s(e)}})},1292(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{D:()=>l});var i=r(8269),n=r(6095),a=r(8152),o=r(6511),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.CatchClause;error;body;constructor(e,t){super(e,t),e.error&&(this.error=new a.$(e.error,t)),this.body=new o.e(e.body,t),this.updateMetadata(this.error,this.body)}print(e){return["catch ",e("error"),e("body")]}}s()}catch(e){s(e)}})},8152(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{$:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=r(9002),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{group:h}=n.doc.builders;class u extends a.w{kind=i.q3.CatchClauseError;name;parameters;constructor(e,t){super(e,t),e.name&&(this.name=new o.x(e.name,t)),this.parameters=new c.Z(e.parameters,t),this.updateMetadata(this.parameters)}print(e){return[e("name"),h(e("parameters"))," "]}}s()}catch(e){s(e)}})},7259(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{m:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(1292),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{kind=i.q3.CatchClauses;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new o.D(e,t)),this.updateMetadata(...this.items)}print(e,t){return l(" ",t.map(e,"items"))}}s()}catch(e){s(e)}})},8567(e,t,r){r.d(t,{A:()=>s});class s{loc;leading;trailing;printed;placement;precedingNode;enclosingNode;followingNode;constructor(e,t){this.loc={start:t,end:t+e.textLength.utf16}}}},6312(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{T:()=>x});var i=r(8269),n=r(838),a=r(8941),o=r(4003),c=r(6095),l=r(8926),h=e([i,c,l]);[i,c,l]=h.then?(await h)():h;const{group:u,hardline:d,ifBreak:p,indent:m,line:y}=n.doc.builders;function f(e,t,r,{useTabs:s,tabWidth:n}){const o=r.parent,c=o.kind===i.q3.ConditionalExpression,l=c&&o.trueExpression===e,h=e.falseExpression.kind,f=h===i.q3.TupleExpression||h===i.q3.ConditionalExpression,g=t("operand"),w=u([e.operand.kind===i.q3.TupleExpression?g:p(["(",(0,a.K)(g),")"],g)," ?"]),x=m([l?d:y,t("trueExpression")]),v=Symbol("Slang.ConditionalExpression.trueExpression"),b=u([w,x],{id:v}),_=s?"\t":n>2?" ".repeat(n-1):" ",E=t("falseExpression"),T=[c?d:y,":",f?[" ",E]:p([_,m(E)],[" ",E],{groupId:v})];return u([b,T])}function g(e,t){return u([e("operand"),m([t.parent.kind===i.q3.ConditionalExpression?d:y,"? ",e("trueExpression"),y,": ",e("falseExpression")])])}function w(e){return e.kind===i.q3.TupleExpression?e.items.getSingleExpression():void 0}class x extends c.w{kind=i.q3.ConditionalExpression;operand;trueExpression;falseExpression;constructor(e,t){if(super(e,t),this.operand=(0,o.f)(new l.r(e.operand,t)),this.trueExpression=(0,o.f)(new l.r(e.trueExpression,t)),this.falseExpression=(0,o.f)(new l.r(e.falseExpression,t)),this.updateMetadata(this.operand,this.trueExpression,this.falseExpression),t.options.experimentalTernaries){const e=this.operand.loc;for(let e;e=w(this.operand),void 0!==e&&e.kind!==i.q3.ConditionalExpression;)this.operand=e;this.operand.loc=e}}print(e,t,r){return r.experimentalTernaries?f(this,e,t,r):g(e,t)}}s()}catch(v){s(v)}})},9885(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{y:()=>d});var i=r(8269),n=r(4003),a=r(5536),o=r(6095),c=r(9979),l=r(8388),h=r(8926),u=e([i,a,o,c,l,h]);[i,a,o,c,l,h]=u.then?(await u)():u;class d extends o.w{kind=i.q3.ConstantDefinition;typeName;name;value;constructor(e,t){super(e,t),this.typeName=(0,n.f)(new c.C(e.typeName,t)),this.name=new l.x(e.name,t),this.value=(0,n.f)(new h.r(e.value,t)),this.updateMetadata(this.typeName,this.value)}print(e){return[e("typeName")," constant ",e("name")," =",(0,a.U)(e("value"),this.value),";"]}}s()}catch(e){s(e)}})},4192(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{F:()=>l});var i=r(8269),n=r(6095),a=r(1699),o=r(8388),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.ConstructorAttribute;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof i.xo?this.variant=new o.x(r,t):(this.variant=new a.u(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},2567(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{O:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(4192),h=e([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{kind=i.q3.ConstructorAttributes;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,o.f)(new l.F(e,t))),this.items.sort(a.k)}print(e,t){return t.map(()=>[u,e()],"items")}}s()}catch(e){s(e)}})},5959(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{s:()=>u});var i=r(8269),n=r(304),a=r(6095),o=r(9002),c=r(2567),l=r(6511),h=e([i,n,a,o,c,l]);[i,n,a,o,c,l]=h.then?(await h)():h;class u extends a.w{kind=i.q3.ConstructorDefinition;parameters;attributes;body;constructor(e,t){super(e,t),this.parameters=new o.Z(e.parameters,t),this.attributes=new c.O(e.attributes,t),this.body=new l.e(e.body,t),this.updateMetadata(this.parameters,this.attributes,this.body)}print(e){return(0,n.c)("constructor",this,e)}}s()}catch(e){s(e)}})},9892(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{H:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.ContinueStatement;constructor(e,t){super(e,t)}print(){return"continue;"}}s()}catch(e){s(e)}})},2795(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{e:()=>m});var i=r(8269),n=r(838),a=r(9589),o=r(6095),c=r(8388),l=r(5451),h=r(5907),u=e([i,o,c,l,h]);[i,o,c,l,h]=u.then?(await u)():u;const{group:d,line:p}=n.doc.builders;class m extends o.w{kind=i.q3.ContractDefinition;abstractKeyword;name;specifiers;members;constructor(e,t){if(super(e,t),this.abstractKeyword=e.abstractKeyword?.unparse(),this.name=new c.x(e.name,t),this.specifiers=new l.o(e.specifiers,t),this.members=new h.I(e.members,t),this.updateMetadata(this.specifiers,this.members),!(0,a.satisfies)(t.options.compiler,">=0.5.0"))for(const e of this.members.items)e.kind===i.q3.FunctionDefinition&&e.name.value!==this.name.value&&e.cleanModifierInvocationArguments()}print(e){return[(this.abstractKeyword?"abstract ":"")+"contract ",d([e("name"),e("specifiers"),this.specifiers.items.length>0?"":p,"{"]),e("members"),"}"]}}s()}catch(e){s(e)}})},4468(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{B:()=>E});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(33),l=r(7281),h=r(5959),u=r(9394),d=r(9640),p=r(6871),m=r(1204),y=r(8324),f=r(3820),g=r(4351),w=r(918),x=r(897),v=r(7260),b=e([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]=b.then?(await b)():b;const _=(0,a.R)([[i.Ke0,c.K],[i.Wgi,l.W],[i.s2A,h.s],[i.pT,u.p],[i.oMV,d.o],[i.ulb,p.u],[i.zxr,m.z],[i.ZOq,y.Z],[i.P3w,f.P],[i.wyV,g.w],[i.zac,w.z],[i.em6,x.e],[i.zFc,v.z]]);class E extends o.w{kind=n.q3.ContractMember;variant;constructor(e,t){super(e,t),this.variant=_(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},5907(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{I:()=>h});var i=r(8269),n=r(1041),a=r(4003),o=r(6095),c=r(4468),l=e([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.ContractMembers;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,a.f)(new c.B(e,t)))}print(e,t,r){return(0,n.o)(this,t,e,r)}}s()}catch(e){s(e)}})},3868(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3892),l=r(4557),h=e([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.RCX,c.R],[i.oVh,l.o]]);class d extends o.w{kind=n.q3.ContractSpecifier;variant;constructor(e,t){super(e,t),this.variant=u(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},5451(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{o:()=>f});var i=r(8269),n=r(838),a=r(7578),o=r(4003),c=r(6095),l=r(3868),h=e([i,c,l]);[i,c,l]=h.then?(await h)():h;const{group:u,ifBreak:d,line:p,softline:m}=n.doc.builders;function y({kind:e},{kind:t}){return e===i.q3.InheritanceSpecifier&&t===i.q3.StorageLayoutSpecifier?-1:t===i.q3.InheritanceSpecifier&&e===i.q3.StorageLayoutSpecifier?1:0}class f extends c.w{kind=i.q3.ContractSpecifiers;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,o.f)(new l.Z(e,t))),this.items.sort(y)}print(e,t){const[r,s]=t.map(e,"items");if(void 0===r)return"";if(void 0===s)return[" ",r];const i=Symbol("Slang.ContractSpecifiers.inheritance");return(0,a.J)([u(r,{id:i}),s],{firstSeparator:p,separator:d("",m,{groupId:i})})}}s()}catch(g){s(g)}})},1390(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{j:()=>c});var i=r(8269),n=r(6095),a=r(6603),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.DecimalNumberExpression;literal;unit;constructor(e,t){super(e,t),this.literal=e.literal.unparse(),e.unit&&(this.unit=new a.c(e.unit,t)),this.updateMetadata(this.unit)}print(e){const t=e("unit");return[this.literal,t?[" ",t]:t]}}s()}catch(e){s(e)}})},8943(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{I:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(4003),c=r(6095),l=r(5211),h=r(8926),u=e([i,c,l,h]);[i,c,l,h]=u.then?(await u)():u;const{line:d}=n.doc.builders;class p extends c.w{kind=i.q3.DoWhileStatement;body;condition;constructor(e,t){super(e,t),this.body=(0,o.f)(new l.W(e.body,t)),this.condition=(0,o.f)(new h.r(e.condition,t)),this.updateMetadata(this.body,this.condition)}print(e){const t=e("body");return["do",this.body.kind===i.q3.Block?[" ",t," "]:(0,a.K)(t,{firstSeparator:d}),"while (",(0,a.K)(e("condition")),");"]}}s()}catch(e){s(e)}})},3198(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{$:()=>l});var i=r(8269),n=r(6095),a=r(7614),o=r(8388),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.ElementaryType;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof i.xo?this.variant=new o.x(r,t):(this.variant=new a.R(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},3117(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{O:()=>d});var i=r(8269),n=r(6563),a=r(4374),o=r(4003),c=r(6095),l=r(5211),h=e([i,c,l]);[i,c,l]=h.then?(await h)():h;const u=(0,n.n)([i.q3.Block,i.q3.IfStatement]);class d extends c.w{kind=i.q3.ElseBranch;body;constructor(e,t){super(e,t),this.body=(0,o.f)(new l.W(e.body,t)),this.updateMetadata(this.body)}print(e){return["else",(0,a.w)(e("body"),!u(this.body))]}}s()}catch(e){s(e)}})},3406(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{x:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2912),c=r(5756),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.EmitStatement;event;arguments;constructor(e,t){super(e,t),this.event=new o.D(e.event,t),this.arguments=(0,n.f)(new c.Z(e.arguments,t)),this.updateMetadata(this.event,this.arguments)}print(e){return["emit ",e("event"),e("arguments"),";"]}}s()}catch(e){s(e)}})},3820(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{P:()=>l});var i=r(8269),n=r(6095),a=r(8388),o=r(2238),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.EnumDefinition;name;members;constructor(e,t){super(e,t),this.name=new a.x(e.name,t),this.members=new o.P(e.members,t),this.updateMetadata(this.members)}print(e){return["enum ",e("name")," {",e("members"),"}"]}}s()}catch(e){s(e)}})},2238(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{P:()=>u});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(8388),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;const{hardline:h}=n.doc.builders;class u extends o.w{kind=i.q3.EnumMembers;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new c.x(e,t))}print(e,t){return(0,a.J)(t.map(e,"items"),{firstSeparator:h})}}s()}catch(e){s(e)}})},6442(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{t:()=>m});var i=r(8269),n=r(142),a=r(6563),o=r(4209),c=r(4003),l=r(6095),h=r(8926),u=e([i,n,o,l,h]);[i,n,o,l,h]=u.then?(await u)():u;const d=(0,n.H)(["==","!="]),p=(0,o.WV)((0,a.n)([i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{kind=i.q3.EqualityExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=(0,c.f)(new h.r(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(e.rightOperand,t)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand)}print(e,t,r){return p(this,t,e,r)}}s()}catch(e){s(e)}})},897(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{e:()=>l});var i=r(8269),n=r(6095),a=r(8388),o=r(1142),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.ErrorDefinition;name;members;constructor(e,t){super(e,t),this.name=new a.x(e.name,t),this.members=new o.$(e.members,t),this.updateMetadata(this.members)}print(e){return["error ",e("name"),e("members"),";"]}}s()}catch(e){s(e)}})},7105(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{m:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8388),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.ErrorParameter;typeName;name;constructor(e,t){super(e,t),this.typeName=(0,n.f)(new o.C(e.typeName,t)),e.name&&(this.name=new c.x(e.name,t)),this.updateMetadata(this.typeName)}print(e){const t=e("name");return[e("typeName"),t?[" ",t]:t]}}s()}catch(e){s(e)}})},2048(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{h:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(7105),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.ErrorParameters;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new o.m(e,t))}print(e,t){return this.items.length>0?(0,n.J)(t.map(e,"items")):""}}s()}catch(e){s(e)}})},1142(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{$:()=>c});var i=r(8269),n=r(6095),a=r(2048),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.ErrorParametersDeclaration;parameters;constructor(e,t){super(e,t),this.parameters=new a.h(e.parameters,t),this.updateMetadata(this.parameters)}print(e){return["(",e("parameters"),")"]}}s()}catch(e){s(e)}})},4351(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{w:()=>l});var i=r(8269),n=r(6095),a=r(2828),o=r(8388),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.EventDefinition;name;parameters;anonymousKeyword;constructor(e,t){super(e,t),this.name=new o.x(e.name,t),this.parameters=new a.$(e.parameters,t),this.anonymousKeyword=e.anonymousKeyword?.unparse(),this.updateMetadata(this.parameters)}print(e){return["event ",e("name"),e("parameters"),this.anonymousKeyword?" anonymous;":";"]}}s()}catch(e){s(e)}})},4027(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Q:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8388),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.EventParameter;typeName;indexedKeyword;name;constructor(e,t){super(e,t),this.typeName=(0,n.f)(new o.C(e.typeName,t)),this.indexedKeyword=e.indexedKeyword?.unparse(),e.name&&(this.name=new c.x(e.name,t)),this.updateMetadata(this.typeName)}print(e){const t=e("name");return[e("typeName"),this.indexedKeyword?" indexed":"",t?[" ",t]:t]}}s()}catch(e){s(e)}})},170(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{p:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(4027),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.EventParameters;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new o.Q(e,t))}print(e,t){return this.items.length>0?(0,n.J)(t.map(e,"items")):""}}s()}catch(e){s(e)}})},2828(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{$:()=>c});var i=r(8269),n=r(6095),a=r(170),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.EventParametersDeclaration;parameters;constructor(e,t){super(e,t),this.parameters=new a.p(e.parameters,t),this.updateMetadata(this.parameters)}print(e){return["(",e("parameters"),")"]}}s()}catch(e){s(e)}})},2254(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{R:()=>l});var i=r(8269),n=r(6095),a=r(3562),o=r(8388),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.ExperimentalFeature;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof i.xo?this.variant=new o.x(r,t):(this.variant=new a.L(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},6162(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{j:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(2254),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.ExperimentalPragma;feature;constructor(e,t){super(e,t),this.feature=(0,n.f)(new o.R(e.feature,t)),this.updateMetadata(this.feature)}print(e){return["experimental ",e("feature")]}}s()}catch(e){s(e)}})},6121(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{g:()=>w});var i=r(8269),n=r(838),a=r(1059),o=r(4209),c=r(142),l=r(6563),h=r(4003),u=r(6095),d=r(8926),p=e([i,a,o,c,u,d]);[i,a,o,c,u,d]=p.then?(await p)():p;const{group:m}=n.doc.builders,y=(0,c.H)(["**"]),f=(0,l.n)([i.q3.MultiplicativeExpression,i.q3.AdditiveExpression,i.q3.ShiftExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]),g=(0,a.f)(()=>e=>m(e),(0,o.Wu)(f));class w extends u.w{kind=i.q3.ExponentiationExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=(0,h.f)(new d.r(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=(0,h.f)(new d.r(e.rightOperand,t)),this.updateMetadata(this.leftOperand,this.rightOperand),this.rightOperand=y(this.rightOperand),this.leftOperand=y(this.leftOperand)}print(e,t,r){return g(this,t,e,r)}}s()}catch(e){s(e)}})},8926(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{r:()=>M});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(5287),l=r(6312),h=r(8947),u=r(2745),d=r(6442),p=r(6405),m=r(7438),y=r(4654),f=r(7162),g=r(4852),w=r(2054),x=r(8968),v=r(6121),b=r(4109),_=r(8802),E=r(9894),T=r(2514),S=r(4138),k=r(4882),R=r(6010),A=r(4274),C=r(86),L=r(6233),K=r(9804),I=r(1390),N=r(9511),O=r(3198),D=r(8388),P=e([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T,S,k,R,A,C,L,K,I,N,O,D]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T,S,k,R,A,C,L,K,I,N,O,D]=P.then?(await P)():P;const q=(0,a.$)([[i.kAK,c.k],[i.TZT,l.T],[i.KfV,h.K],[i.gHf,u.g],[i.tt2,d.t],[i.u6S,p.u],[i.JXG,m.J],[i.Rbz,y.R],[i.Jxp,f.J],[i.Zm3,g.Z],[i.zSR,w.z],[i.dst,x.d],[i.grs,v.g],[i._Y1,b._],[i.BdE,_.B],[i.jy0,E.j],[i.XwB,T.X],[i.nWe,S.n],[i.zc0,k.z],[i.Zd1,R.Z],[i.bUO,A.b],[i.jy1,C.j],[i.gH0,L.g],[i.$rk,K.$],[i.jqW,I.j]],[[i.OXe,N.O],[i.$ge,O.$]]);class M extends o.w{kind=n.q3.Expression;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof n.xo?this.variant=new D.x(r,t):(this.variant=q(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},6157(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Q:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.ExpressionStatement;expression;constructor(e,t){super(e,t),this.expression=(0,n.f)(new o.r(e.expression,t)),this.updateMetadata(this.expression)}print(e){return[e("expression"),";"]}}s()}catch(e){s(e)}})},7532(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{h:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(1699),l=r(7178),h=r(8388),u=e([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.unr,c.u],[i.lBC,l.l]]);class p extends o.w{kind=n.q3.FallbackFunctionAttribute;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof n.xo?this.variant=new h.x(r,t):(this.variant=d(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},7435(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{i:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(7532),h=e([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{kind=i.q3.FallbackFunctionAttributes;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,o.f)(new l.h(e,t))),this.items.sort(a.k)}print(e,t){return t.map(()=>[u,e()],"items")}}s()}catch(e){s(e)}})},9640(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{o:()=>p});var i=r(8269),n=r(304),a=r(4003),o=r(6095),c=r(9002),l=r(7435),h=r(7181),u=r(1580),d=e([i,n,o,c,l,h,u]);[i,n,o,c,l,h,u]=d.then?(await d)():d;class p extends o.w{kind=i.q3.FallbackFunctionDefinition;parameters;attributes;returns;body;constructor(e,t){super(e,t),this.parameters=new c.Z(e.parameters,t),this.attributes=new l.i(e.attributes,t),e.returns&&(this.returns=new h.I(e.returns,t)),this.body=(0,a.f)(new u.r(e.body,t)),this.updateMetadata(this.parameters,this.attributes,this.returns,this.body);for(const e of this.attributes.items)e.kind===i.q3.ModifierInvocation&&e.cleanModifierInvocationArguments()}print(e){return(0,n.c)("fallback",this,e)}}s()}catch(e){s(e)}})},3816(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{p:()=>f});var i=r(8269),n=r(838),a=r(8941),o=r(4374),c=r(4003),l=r(6095),h=r(6716),u=r(91),d=r(8926),p=r(5211),m=e([i,l,h,u,d,p]);[i,l,h,u,d,p]=m.then?(await m)():m;const{line:y}=n.doc.builders;class f extends l.w{kind=i.q3.ForStatement;initialization;condition;iterator;body;constructor(e,t){super(e,t),this.initialization=(0,c.f)(new h.n(e.initialization,t)),this.condition=(0,c.f)(new u.Q(e.condition,t)),e.iterator&&(this.iterator=(0,c.f)(new d.r(e.iterator,t))),this.body=(0,c.f)(new p.W(e.body,t)),this.updateMetadata(this.initialization,this.condition,this.iterator,this.body)}print(e){const t=e("initialization"),r=e("condition"),s=e("iterator");return["for (",(0,a.K)(""===s?[t,";"===t&&";"===r?"":y,r]:[t,y,r,y,s]),")",(0,o.w)(e("body"),this.body.kind!==i.q3.Block)]}}s()}catch(e){s(e)}})},91(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Q:()=>l});var i=r(8269),n=r(6095),a=r(6157),o=r(8388),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.ForStatementCondition;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof i.xo?this.variant=new o.x(r,t):(this.variant=new a.Q(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},6716(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{n:()=>m});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(6157),l=r(2421),h=r(6773),u=r(8388),d=e([i,n,o,c,l,h,u]);[i,n,o,c,l,h,u]=d.then?(await d)():d;const p=(0,a.R)([[i.Qrp,c.Q],[i._U4,l._],[i.aez,h.a]]);class m extends o.w{kind=n.q3.ForStatementInitialization;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof n.xo?this.variant=new u.x(r,t):(this.variant=p(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},5798(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{V:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(1699),l=r(7178),h=r(8388),u=e([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.unr,c.u],[i.lBC,l.l]]);class p extends o.w{kind=n.q3.FunctionAttribute;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof n.xo?this.variant=new h.x(r,t):(this.variant=d(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},3685(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{S:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(5798),h=e([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{kind=i.q3.FunctionAttributes;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,o.f)(new l.V(e,t))),this.items.sort(a.k)}print(e,t){return t.map(()=>[u,e()],"items")}}s()}catch(e){s(e)}})},1580(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{r:()=>l});var i=r(8269),n=r(6095),a=r(6511),o=r(8388),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.FunctionBody;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof i.xo?this.variant=new o.x(r,t):(this.variant=new a.e(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},9894(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{j:()=>u});var i=r(8269),n=r(4003),a=r(7609),o=r(6095),c=r(8926),l=r(5756),h=e([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends o.w{kind=i.q3.FunctionCallExpression;operand;arguments;constructor(e,t){super(e,t),this.operand=(0,n.f)(new c.r(e.operand,t)),this.arguments=(0,n.f)(new l.Z(e.arguments,t)),this.updateMetadata(this.operand,this.arguments)}print(e){return(0,a.p)(e("operand"),e("arguments"))}}s()}catch(e){s(e)}})},7281(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{W:()=>y});var i=r(8269),n=r(9589),a=r(304),o=r(4003),c=r(6095),l=r(1615),h=r(9002),u=r(3685),d=r(7181),p=r(1580),m=e([i,a,c,l,h,u,d,p]);[i,a,c,l,h,u,d,p]=m.then?(await m)():m;class y extends c.w{kind=i.q3.FunctionDefinition;name;parameters;attributes;returns;body;constructor(e,t){super(e,t),this.name=(0,o.f)(new l.s(e.name,t)),this.parameters=new h.Z(e.parameters,t),this.attributes=new u.S(e.attributes,t),e.returns&&(this.returns=new d.I(e.returns,t)),this.body=(0,o.f)(new p.r(e.body,t)),this.updateMetadata(this.name,this.parameters,this.attributes,this.returns,this.body),(0,n.satisfies)(t.options.compiler,">=0.5.0")&&this.cleanModifierInvocationArguments()}cleanModifierInvocationArguments(){for(const e of this.attributes.items)e.kind===i.q3.ModifierInvocation&&e.cleanModifierInvocationArguments()}print(e){return(0,a.c)(["function ",e("name")],this,e)}}s()}catch(e){s(e)}})},1615(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{s:()=>c});var i=r(8269),n=r(6095),a=r(8388),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.FunctionName;variant;constructor(e,t){super(e,t),this.variant=new a.x(e.variant,t)}}s()}catch(e){s(e)}})},3476(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{R:()=>u});var i=r(8269),n=r(304),a=r(6095),o=r(9002),c=r(221),l=r(7181),h=e([i,n,a,o,c,l]);[i,n,a,o,c,l]=h.then?(await h)():h;class u extends a.w{kind=i.q3.FunctionType;parameters;attributes;returns;constructor(e,t){super(e,t),this.parameters=new o.Z(e.parameters,t),this.attributes=new c.C(e.attributes,t),e.returns&&(this.returns=new l.I(e.returns,t)),this.updateMetadata(this.parameters,this.attributes,this.returns)}print(e){return(0,n.c)("function",this,e)}}s()}catch(e){s(e)}})},6222(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{l:()=>c});var i=r(8269),n=r(6095),a=r(8388),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.FunctionTypeAttribute;variant;constructor(e,t){super(e,t),this.variant=new a.x(e.variant,t)}}s()}catch(e){s(e)}})},221(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{C:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(6222),h=e([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{kind=i.q3.FunctionTypeAttributes;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,o.f)(new l.l(e,t))),this.items.sort(a.k)}print(e,t){return t.map(()=>[u,e()],"items")}}s()}catch(e){s(e)}})},9804(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{$:()=>c});var i=r(8269),n=r(6095),a=r(6603),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.HexNumberExpression;literal;unit;constructor(e,t){super(e,t),this.literal=e.literal.unparse(),e.unit&&(this.unit=new a.c(e.unit,t)),this.updateMetadata(this.unit)}print(e){const t=e("unit");return[this.literal,t?[" ",t]:t]}}s()}catch(e){s(e)}})},5191(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{C:()=>c});var i=r(8269),n=r(1529),a=r(6095),o=e([i,a]);[i,a]=o.then?(await o)():o;class c extends a.w{kind=i.q3.HexStringLiteral;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse(),this.variant=`hex${(0,n.T)(this.variant.slice(4,-1),t.options)}`}print(){return this.variant}}s()}catch(e){s(e)}})},7598(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{P:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(5191),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=n.doc.builders;class u extends a.w{kind=i.q3.HexStringLiterals;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new o.C(e,t))}print(e,t){return l(h,t.map(e,"items"))}}s()}catch(e){s(e)}})},2912(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{D:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{kind=i.q3.IdentifierPath;items;constructor(e,t){super(e,t),this.items=e.items.map(e=>new o.x(e,t))}print(e,t){return l(".",t.map(e,"items"))}}s()}catch(e){s(e)}})},7978(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{v:()=>f});var i=r(8269),n=r(838),a=r(8941),o=r(4374),c=r(7540),l=r(4003),h=r(6095),u=r(8926),d=r(5211),p=r(3117),m=e([i,c,h,u,d,p]);[i,c,h,u,d,p]=m.then?(await m)():m;const{hardline:y}=n.doc.builders;class f extends h.w{kind=i.q3.IfStatement;condition;body;elseBranch;constructor(e,t){super(e,t),this.condition=(0,l.f)(new u.r(e.condition,t)),this.body=(0,l.f)(new d.W(e.body,t)),e.elseBranch&&(this.elseBranch=new p.O(e.elseBranch,t)),this.updateMetadata(this.condition,this.body,this.elseBranch)}print(e){const{kind:t,comments:r}=this.body;return["if (",(0,a.K)(e("condition")),")",(0,o.w)(e("body"),t!==i.q3.Block,{shouldBreak:t===i.q3.IfStatement}),this.elseBranch?[t!==i.q3.Block||r?.some(e=>!(0,c.t)(e)||"ownLine"===e.placement)?y:" ",e("elseBranch")]:""]}}s()}catch(e){s(e)}})},6485(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{G:()=>c});var i=r(8269),n=r(6095),a=r(8388),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.ImportAlias;identifier;constructor(e,t){super(e,t),this.identifier=new a.x(e.identifier,t)}print(e){return[" as ",e("identifier")]}}s()}catch(e){s(e)}})},5996(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{r:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(9150),l=r(3534),h=r(979),u=e([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.N$9,c.N],[i.RrN,l.R],[i.qV6,h.q]]);class p extends o.w{kind=n.q3.ImportClause;variant;constructor(e,t){super(e,t),this.variant=d(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},979(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{q:()=>l});var i=r(8269),n=r(6095),a=r(2386),o=r(3562),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.ImportDeconstruction;symbols;path;constructor(e,t){super(e,t),this.symbols=new a.z(e.symbols,t),this.path=new o.L(e.path,t),this.updateMetadata(this.symbols,this.path)}print(e){return["{",e("symbols"),"} from ",e("path")]}}s()}catch(e){s(e)}})},4163(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{g:()=>l});var i=r(8269),n=r(6095),a=r(8388),o=r(6485),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.ImportDeconstructionSymbol;name;alias;constructor(e,t){super(e,t),this.name=new a.x(e.name,t),e.alias&&(this.alias=new o.G(e.alias,t)),this.updateMetadata(this.alias)}print(e){return[e("name"),e("alias")]}}s()}catch(e){s(e)}})},2386(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{z:()=>p});var i=r(8269),n=r(838),a=r(9589),o=r(7578),c=r(6095),l=r(4163),h=e([i,c,l]);[i,c,l]=h.then?(await h)():h;const{line:u,softline:d}=n.doc.builders;class p extends c.w{kind=i.q3.ImportDeconstructionSymbols;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new l.g(e,t))}print(e,t,{compiler:r,bracketSpacing:s}){const i=t.map(e,"items");return(0,o.J)(i,i.length>1&&(0,a.satisfies)(r,">=0.7.4")?{firstSeparator:s?u:d}:{firstSeparator:s?" ":"",separator:", "})}}s()}catch(e){s(e)}})},8668(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{p:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(5996),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.ImportDirective;clause;constructor(e,t){super(e,t),this.clause=(0,n.f)(new o.r(e.clause,t)),this.updateMetadata(this.clause)}print(e){return["import ",e("clause"),";"]}}s()}catch(e){s(e)}})},4899(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Q:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.IndexAccessEnd;end;constructor(e,t){super(e,t),e.end&&(this.end=(0,n.f)(new o.r(e.end,t))),this.updateMetadata(this.end)}print(e){return[":",e("end")]}}s()}catch(e){s(e)}})},4882(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{z:()=>d});var i=r(8269),n=r(8941),a=r(4003),o=r(7609),c=r(6095),l=r(8926),h=r(4899),u=e([i,c,l,h]);[i,c,l,h]=u.then?(await u)():u;class d extends c.w{kind=i.q3.IndexAccessExpression;operand;start;end;constructor(e,t){super(e,t),this.operand=(0,a.f)(new l.r(e.operand,t)),e.start&&(this.start=(0,a.f)(new l.r(e.start,t))),e.end&&(this.end=new h.Q(e.end,t)),this.updateMetadata(this.operand,this.start,this.end)}print(e){return(0,o.p)(e("operand"),["[",(0,n.K)([e("start"),e("end")]),"]"])}}s()}catch(e){s(e)}})},6405(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{u:()=>d});var i=r(8269),n=r(6563),a=r(4209),o=r(4003),c=r(6095),l=r(8926),h=e([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const u=(0,a.WV)((0,n.n)([i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class d extends c.w{kind=i.q3.InequalityExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=(0,o.f)(new l.r(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=(0,o.f)(new l.r(e.rightOperand,t)),this.updateMetadata(this.leftOperand,this.rightOperand)}print(e,t,r){return u(this,t,e,r)}}s()}catch(e){s(e)}})},3892(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{R:()=>c});var i=r(8269),n=r(6095),a=r(3717),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.InheritanceSpecifier;types;constructor(e,t){super(e,t),this.types=new a.W(e.types,t),this.updateMetadata(this.types)}print(e){return["is",e("types")]}}s()}catch(e){s(e)}})},3990(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{H:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2912),c=r(5756),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.InheritanceType;typeName;arguments;constructor(e,t){super(e,t),this.typeName=new o.D(e.typeName,t),e.arguments&&(this.arguments=(0,n.f)(new c.Z(e.arguments,t))),this.updateMetadata(this.typeName,this.arguments)}print(e){return[e("typeName"),e("arguments")]}}s()}catch(e){s(e)}})},3717(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{W:()=>u});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(3990),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h}=n.doc.builders;class u extends o.w{kind=i.q3.InheritanceTypes;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new c.H(e,t))}print(e,t){return(0,a.J)(t.map(e,"items"),{firstSeparator:h})}}s()}catch(e){s(e)}})},3692(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{J:()=>p});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=r(3892),l=r(7646),h=e([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;const{group:u,line:d}=n.doc.builders;class p extends a.w{kind=i.q3.InterfaceDefinition;name;inheritance;members;constructor(e,t){super(e,t),this.name=new o.x(e.name,t),e.inheritance&&(this.inheritance=new c.R(e.inheritance,t)),this.members=new l.l(e.members,t),this.updateMetadata(this.inheritance,this.members)}print(e){return["interface ",u([e("name"),this.inheritance?[" ",e("inheritance")]:d,"{"]),e("members"),"}"]}}s()}catch(e){s(e)}})},7646(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{l:()=>h});var i=r(8269),n=r(1041),a=r(4003),o=r(6095),c=r(4468),l=e([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.InterfaceMembers;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,a.f)(new c.B(e,t)))}print(e,t,r){return(0,n.o)(this,t,e,r)}}s()}catch(e){s(e)}})},1132(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{J:()=>p});var i=r(8269),n=r(838),a=r(9589),o=r(6095),c=r(8388),l=r(910),h=e([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;const{group:u,line:d}=n.doc.builders;class p extends o.w{kind=i.q3.LibraryDefinition;name;members;constructor(e,t){if(super(e,t),this.name=new c.x(e.name,t),this.members=new l.r(e.members,t),this.updateMetadata(this.members),!(0,a.satisfies)(t.options.compiler,">=0.5.0"))for(const e of this.members.items)e.kind===i.q3.FunctionDefinition&&e.cleanModifierInvocationArguments()}print(e){return["library ",u([e("name"),d,"{"]),e("members"),"}"]}}s()}catch(e){s(e)}})},910(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{r:()=>h});var i=r(8269),n=r(1041),a=r(4003),o=r(6095),c=r(4468),l=e([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.LibraryMembers;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,a.f)(new c.B(e,t)))}print(e,t,r){return(0,n.o)(this,t,e,r)}}s()}catch(e){s(e)}})},2585(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{a:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(305),c=r(8388),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.MappingKey;keyType;name;constructor(e,t){super(e,t),this.keyType=(0,n.f)(new o.o(e.keyType,t)),e.name&&(this.name=new c.x(e.name,t)),this.updateMetadata(this.keyType)}print(e){const t=e("name");return[e("keyType"),t?[" ",t]:t]}}s()}catch(e){s(e)}})},305(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{o:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3198),l=r(2912),h=e([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.$)([[i.Ddx,l.D]],[[i.$ge,c.$]]);class d extends o.w{kind=n.q3.MappingKeyType;variant;constructor(e,t){super(e,t),this.variant=u(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},9184(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{d:()=>l});var i=r(8269),n=r(6095),a=r(2585),o=r(8615),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.MappingType;keyType;valueType;constructor(e,t){super(e,t),this.keyType=new a.a(e.keyType,t),this.valueType=new o.k(e.valueType,t),this.updateMetadata(this.keyType,this.valueType)}print(e){return["mapping(",e("keyType")," => ",e("valueType"),")"]}}s()}catch(e){s(e)}})},8615(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{k:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8388),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.MappingValue;typeName;name;constructor(e,t){super(e,t),this.typeName=(0,n.f)(new o.C(e.typeName,t)),e.name&&(this.name=new c.x(e.name,t)),this.updateMetadata(this.typeName)}print(e){const t=e("name");return[e("typeName"),t?[" ",t]:t]}}s()}catch(e){s(e)}})},4138(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{n:()=>b});var i=r(8269),n=r(838),a=r(4079),o=r(4003),c=r(6543),l=r(7609),h=r(6095),u=r(8926),d=r(8388),p=e([i,c,h,u,d]);[i,c,h,u,d]=p.then?(await p)():p;const{group:m,indent:y,label:f,softline:g}=n.doc.builders,w=Symbol("separator");function x(e,t){for(let r,s=1,n=e;r=t.getNode(s),(0,c.Y)(r);s++,n=r)switch(r.kind){case i.q3.MemberAccessExpression:return!1;case i.q3.IndexAccessExpression:case i.q3.FunctionCallExpression:if(n!==r.operand)return!0}return!0}function v(e){const t=e.findIndex(e=>(0,a.J)(e,w));return f(l.u,[e.slice(0,t),m(y(e.slice(t)))])}class b extends h.w{kind=i.q3.MemberAccessExpression;operand;member;constructor(e,t){super(e,t),this.operand=(0,o.f)(new u.r(e.operand,t)),this.member=new d.x(e.member,t),this.updateMetadata(this.operand)}print(e,t){let r=e("operand");Array.isArray(r)&&(r=r.flat());const s=[r,f(w,[g,"."]),e("member")].flat();return x(this,t)?v(s):s}}s()}catch(_){s(_)}})},2085(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{K:()=>l});var i=r(8269),n=r(6095),a=r(7178),o=r(8388),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.ModifierAttribute;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof i.xo?this.variant=new o.x(r,t):(this.variant=new a.l(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},4652(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{r:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(2085),h=e([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{kind=i.q3.ModifierAttributes;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,o.f)(new l.K(e,t))),this.items.sort(a.k)}print(e,t){return t.map(()=>[u,e()],"items")}}s()}catch(e){s(e)}})},1204(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{z:()=>m});var i=r(8269),n=r(304),a=r(4003),o=r(6095),c=r(8388),l=r(9002),h=r(4716),u=r(4652),d=r(1580),p=e([i,n,o,c,l,h,u,d]);[i,n,o,c,l,h,u,d]=p.then?(await p)():p;class m extends o.w{kind=i.q3.ModifierDefinition;name;parameters;attributes;body;constructor(e,t){if(super(e,t),this.name=new c.x(e.name,t),e.parameters&&(this.parameters=new l.Z(e.parameters,t)),this.attributes=new u.r(e.attributes,t),this.body=(0,a.f)(new d.r(e.body,t)),this.updateMetadata(this.parameters,this.attributes,this.body),!this.parameters){const e=this.attributes.loc.outerStart,t={outerStart:e,outerEnd:e,start:e,end:e};this.parameters=Object.assign(Object.create(l.Z.prototype),{kind:i.q3.ParametersDeclaration,loc:{...t},comments:void 0,parameters:Object.assign(Object.create(h.H.prototype),{kind:i.q3.Parameters,loc:{...t},comments:void 0,items:[]})})}}print(e){return(0,n.c)(["modifier ",e("name")],this,e)}}s()}catch(e){s(e)}})},1699(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{u:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2912),c=r(5756),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.ModifierInvocation;name;arguments;constructor(e,t){super(e,t),this.name=new o.D(e.name,t),e.arguments&&(this.arguments=(0,n.f)(new c.Z(e.arguments,t))),this.updateMetadata(this.name,this.arguments)}cleanModifierInvocationArguments(){this.arguments?.kind===i.q3.PositionalArgumentsDeclaration&&this.arguments.isEmpty&&(this.arguments=void 0)}print(e){return[e("name"),e("arguments")]}}s()}catch(e){s(e)}})},7088(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{j:()=>l});var i=r(8269),n=r(5215),a=r(8567),o=e([i]),c=o.then?(await o)():o;i=c[0];class l extends a.A{kind=i.hP.MultiLineComment;value;constructor(e,t){super(e,t),this.value=e.unparse()}print(){return(0,n.A)(this)}}s()}catch(e){s(e)}})},7576(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{H:()=>l});var i=r(8269),n=r(5215),a=r(8567),o=e([i]),c=o.then?(await o)():o;i=c[0];class l extends a.A{kind=i.hP.MultiLineNatSpecComment;value;constructor(e,t){super(e,t),this.value=e.unparse()}print(){return(0,n.A)(this)}}s()}catch(e){s(e)}})},8968(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{d:()=>m});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=e([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d={"*":(0,a.H)(["/","%"]),"/":(0,a.H)(["*","%"]),"%":(0,a.H)(["*","/","%"])},p=(0,n.WV)((0,o.n)([i.q3.AdditiveExpression,i.q3.ShiftExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class m extends l.w{kind=i.q3.MultiplicativeExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=(0,c.f)(new h.r(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(e.rightOperand,t)),this.updateMetadata(this.leftOperand,this.rightOperand);const r=d[this.operator];if(void 0===r)throw new Error(`Unexpected operator: ${this.operator}`);this.leftOperand=r(this.leftOperand)}print(e,t,r){return p(this,t,e,r)}}s()}catch(e){s(e)}})},316(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{j:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(8388),c=r(8926),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.NamedArgument;name;value;constructor(e,t){super(e,t),this.name=new o.x(e.name,t),this.value=(0,n.f)(new c.r(e.value,t)),this.updateMetadata(this.value)}print(e){return[e("name"),": ",e("value")]}}s()}catch(e){s(e)}})},4797(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{S:()=>c});var i=r(8269),n=r(6095),a=r(2603),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.NamedArgumentGroup;arguments;constructor(e,t){super(e,t),this.arguments=new a.q(e.arguments,t),this.updateMetadata(this.arguments)}print(e){return["{",e("arguments"),"}"]}}s()}catch(e){s(e)}})},2603(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{q:()=>d});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(316),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h,softline:u}=n.doc.builders;class d extends o.w{kind=i.q3.NamedArguments;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new c.j(e,t))}print(e,t,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(e){s(e)}})},7832(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Q:()=>c});var i=r(8269),n=r(6095),a=r(4797),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.NamedArgumentsDeclaration;arguments;constructor(e,t){super(e,t),e.arguments&&(this.arguments=new a.S(e.arguments,t)),this.updateMetadata(this.arguments)}print(e){return["(",e("arguments"),")"]}}s()}catch(e){s(e)}})},3534(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{R:()=>l});var i=r(8269),n=r(6095),a=r(6485),o=r(3562),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.NamedImport;alias;path;constructor(e,t){super(e,t),this.alias=new a.G(e.alias,t),this.path=new o.L(e.path,t),this.updateMetadata(this.alias,this.path)}print(e){return["*",e("alias")," from ",e("path")]}}s()}catch(e){s(e)}})},6010(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.NewExpression;typeName;constructor(e,t){super(e,t),this.typeName=(0,n.f)(new o.C(e.typeName,t)),this.updateMetadata(this.typeName)}print(e){return["new ",e("typeName")]}}s()}catch(e){s(e)}})},6603(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{c:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.NumberUnit;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse()}print(){return this.variant}}s()}catch(e){s(e)}})},8947(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{K:()=>d});var i=r(8269),n=r(8409),a=r(142),o=r(4003),c=r(6095),l=r(8926),h=e([i,n,a,c,l]);[i,n,a,c,l]=h.then?(await h)():h;const u=(0,a.H)(["&&"]);class d extends c.w{kind=i.q3.OrExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=(0,o.f)(new l.r(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=(0,o.f)(new l.r(e.rightOperand,t)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=u(this.leftOperand),this.rightOperand=u(this.rightOperand)}print(e,t,r){return(0,n.a)(this,t,e,r)}}s()}catch(e){s(e)}})},2818(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{r:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(2912),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.OverridePaths;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new o.D(e,t))}print(e,t){return(0,n.J)(t.map(e,"items"))}}s()}catch(e){s(e)}})},6004(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{v:()=>c});var i=r(8269),n=r(6095),a=r(2818),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.OverridePathsDeclaration;paths;constructor(e,t){super(e,t),this.paths=new a.r(e.paths,t),this.updateMetadata(this.paths)}print(e){return["(",e("paths"),")"]}}s()}catch(e){s(e)}})},7178(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{l:()=>c});var i=r(8269),n=r(6095),a=r(6004),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.OverrideSpecifier;overridden;constructor(e,t){super(e,t),e.overridden&&(this.overridden=new a.v(e.overridden,t)),this.updateMetadata(this.overridden)}print(e){return["override",e("overridden")]}}s()}catch(e){s(e)}})},3541(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{k:()=>p});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(9979),l=r(1616),h=r(8388),u=e([i,o,c,l,h]);[i,o,c,l,h]=u.then?(await u)():u;const{group:d}=n.doc.builders;class p extends o.w{kind=i.q3.Parameter;typeName;storageLocation;name;constructor(e,t){super(e,t),this.typeName=(0,a.f)(new c.C(e.typeName,t)),e.storageLocation&&(this.storageLocation=new l.$(e.storageLocation,t)),e.name&&(this.name=new h.x(e.name,t)),this.updateMetadata(this.typeName,this.storageLocation)}print(e){const t=e("storageLocation"),r=e("name");return d([e("typeName"),t?[" ",t]:t,r?[" ",r]:r])}}s()}catch(e){s(e)}})},4716(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{H:()=>u});var i=r(8269),n=r(7578),a=r(8941),o=r(7134),c=r(6095),l=r(3541),h=e([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends c.w{kind=i.q3.Parameters;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new l.k(e,t))}print(e,t,r){if(this.items.length>0)return(0,n.J)(t.map(e,"items"),{grouped:!1});const s=(0,o.i)(this,t,r);return s.length>0?(0,a.K)(s):""}}s()}catch(e){s(e)}})},9002(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>c});var i=r(8269),n=r(6095),a=r(4716),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.ParametersDeclaration;parameters;constructor(e,t){super(e,t),this.parameters=new a.H(e.parameters,t),this.updateMetadata(this.parameters)}print(e){return["(",e("parameters"),")"]}}s()}catch(e){s(e)}})},9150(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{N:()=>l});var i=r(8269),n=r(6095),a=r(3562),o=r(6485),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.PathImport;path;alias;constructor(e,t){super(e,t),this.path=new a.L(e.path,t),e.alias&&(this.alias=new o.G(e.alias,t)),this.updateMetadata(this.path,this.alias)}print(e){return[e("path"),e("alias")]}}s()}catch(e){s(e)}})},4872(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{T:()=>d});var i=r(8269),n=r(7134),a=r(8941),o=r(7578),c=r(4003),l=r(6095),h=r(8926),u=e([i,n,l,h]);[i,n,l,h]=u.then?(await u)():u;class d extends l.w{kind=i.q3.PositionalArguments;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,c.f)(new h.r(e,t)))}print(e,t,r){if(this.items.length>0)return(0,o.J)(t.map(e,"items"));const s=(0,n.i)(this,t,r);return s.length>0?(0,a.K)(s):""}}s()}catch(e){s(e)}})},9182(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{V:()=>l});var i=r(8269),n=r(7540),a=r(6095),o=r(4872),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.PositionalArgumentsDeclaration;isEmpty;arguments;constructor(e,t){super(e,t),this.arguments=new o.T(e.arguments,t),this.updateMetadata(this.arguments),this.isEmpty=0===this.arguments.items.length&&!e.cst.children().some(({node:e})=>(0,n.t)(e))}print(e){return["(",e("arguments"),")"]}}s()}catch(e){s(e)}})},4109(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{_:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.PostfixExpression;operand;operator;constructor(e,t){super(e,t),this.operand=(0,n.f)(new o.r(e.operand,t)),this.operator=e.operator.unparse(),this.updateMetadata(this.operand)}print(e){return[e("operand"),this.operator]}}s()}catch(e){s(e)}})},2440(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{n:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(1475),l=r(6162),h=r(8234),u=e([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.Ya3,c.Y],[i.jAT,l.j],[i.hXl,h.h]]);class p extends o.w{kind=n.q3.Pragma;variant;constructor(e,t){super(e,t),this.variant=d(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},5887(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{K:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(2440),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.PragmaDirective;pragma;constructor(e,t){super(e,t),this.pragma=(0,n.f)(new o.n(e.pragma,t)),this.updateMetadata(this.pragma)}print(e){return["pragma ",e("pragma"),";"]}}s()}catch(e){s(e)}})},8802(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{B:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.PrefixExpression;operator;operand;constructor(e,t){super(e,t),this.operator=e.operator.unparse(),this.operand=(0,n.f)(new o.r(e.operand,t)),this.updateMetadata(this.operand),"delete"===this.operator&&(this.operator="delete ")}print(e){return[this.operator,e("operand")]}}s()}catch(e){s(e)}})},4700(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Y:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(1699),l=r(7178),h=r(8388),u=e([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.unr,c.u],[i.lBC,l.l]]);class p extends o.w{kind=n.q3.ReceiveFunctionAttribute;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof n.xo?this.variant=new h.x(r,t):(this.variant=d(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},694(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{P:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(4700),h=e([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{kind=i.q3.ReceiveFunctionAttributes;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,o.f)(new l.Y(e,t))),this.items.sort(a.k)}print(e,t){return t.map(()=>[u,e()],"items")}}s()}catch(e){s(e)}})},9394(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{p:()=>d});var i=r(8269),n=r(304),a=r(4003),o=r(6095),c=r(9002),l=r(694),h=r(1580),u=e([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;class d extends o.w{kind=i.q3.ReceiveFunctionDefinition;parameters;attributes;body;constructor(e,t){super(e,t),this.parameters=new c.Z(e.parameters,t),this.attributes=new l.P(e.attributes,t),this.body=(0,a.f)(new h.r(e.body,t)),this.updateMetadata(this.parameters,this.attributes,this.body);for(const e of this.attributes.items)e.kind===i.q3.ModifierInvocation&&e.cleanModifierInvocationArguments()}print(e){return(0,n.c)("receive",this,e)}}s()}catch(e){s(e)}})},2993(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{c:()=>h});var i=r(8269),n=r(4374),a=r(4003),o=r(6095),c=r(8926),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.ReturnStatement;expression;constructor(e,t){super(e,t),e.expression&&(this.expression=(0,a.f)(new c.r(e.expression,t))),this.updateMetadata(this.expression)}print(e,t,r){const s=this.expression?.kind;return["return",s?(0,n.w)(e("expression"),s!==i.q3.TupleExpression&&(!r.experimentalTernaries||s!==i.q3.ConditionalExpression)):"",";"]}}s()}catch(e){s(e)}})},7181(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{I:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(9002),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;const{group:l}=n.doc.builders;class h extends a.w{kind=i.q3.ReturnsDeclaration;variables;constructor(e,t){super(e,t),this.variables=new o.Z(e.variables,t),this.updateMetadata(this.variables)}print(e){return["returns ",l(e("variables"))]}}s()}catch(e){s(e)}})},6133(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{i:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2912),c=r(5756),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.RevertStatement;error;arguments;constructor(e,t){super(e,t),this.error=new o.D(e.error,t),this.arguments=(0,n.f)(new c.Z(e.arguments,t)),this.updateMetadata(this.error,this.arguments)}print(e){return["revert ",e("error"),e("arguments"),";"]}}s()}catch(e){s(e)}})},4852(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>y});var i=r(8269),n=r(4209),a=r(142),o=r(6563),c=r(4003),l=r(6095),h=r(8926),u=e([i,n,a,l,h]);[i,n,a,l,h]=u.then?(await u)():u;const d=(0,a.H)(["+","-","*","/","**","<<",">>"]),p=(0,a.H)(["+","-","*","/","**"]),m=(0,n.WV)((0,o.n)([i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.InequalityExpression,i.q3.EqualityExpression,i.q3.AndExpression,i.q3.OrExpression]));class y extends l.w{kind=i.q3.ShiftExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=(0,c.f)(new h.r(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=(0,c.f)(new h.r(e.rightOperand,t)),this.updateMetadata(this.leftOperand,this.rightOperand),this.leftOperand=d(this.leftOperand),this.rightOperand=p(this.rightOperand)}print(e,t,r){return m(this,t,e,r)}}s()}catch(e){s(e)}})},717(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{i:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.SimpleVersionLiteral;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>e.unparse())}print(){return this.items.join(".")}}s()}catch(e){s(e)}})},9441(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{a:()=>c});var i=r(8269),n=r(8567),a=e([i]),o=a.then?(await a)():a;i=o[0];class c extends n.A{kind=i.hP.SingleLineComment;value;constructor(e,t){super(e,t),this.value=e.unparse()}print(){return this.value.trimEnd()}}s()}catch(e){s(e)}})},4867(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{c:()=>c});var i=r(8269),n=r(8567),a=e([i]),o=a.then?(await a)():a;i=o[0];class c extends n.A{kind=i.hP.SingleLineNatSpecComment;value;constructor(e,t){super(e,t),this.value=e.unparse()}print(){return this.value.trimEnd()}}s()}catch(e){s(e)}})},6095(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{w:()=>u});var i=r(8269),n=r(7088),a=r(7576),o=r(9441),c=r(4867),l=e([i,n,a,o,c]);function h(e){return{[Symbol.iterator](){let t=e.length;return{next:function(){return t--,{done:t<0,value:e[t]}}}}}}[i,n,a,o,c]=l.then?(await l)():l;class u{comments;loc;constructor(e,t,r=!1){if(e instanceof i.xo){const r=t.offsets.get(e.id)??0,s=r+e.textLength.utf16;return void(this.loc={outerStart:r,outerEnd:s,start:r,end:s})}const s=e.cst,l=t.offsets.get(s.id)??0;let h,u,d=l,p=0;r&&(h=0,u=0);for(const{node:e}of s.children()){const r=e.textLength.utf16;if(e.isNonterminalNode()||!i.di.isTrivia(e.kind))t.offsets.set(e.id,d),h??=p,p=0;else{switch(e.kind){case i.hP.MultiLineComment:t.comments.push(new n.j(e,d));break;case i.hP.MultiLineNatSpecComment:t.comments.push(new a.H(e,d));break;case i.hP.SingleLineComment:t.comments.push(new o.a(e,d));break;case i.hP.SingleLineNatSpecComment:t.comments.push(new c.c(e,d))}p+=r}d+=r}h??=0,u??=p,this.loc={outerStart:l,outerEnd:d,start:l+h,end:d-u}}updateMetadata(...e){const{loc:t}=this;if(t.outerStart===t.start)for(const r of e){if(void 0===r)continue;const{outerStart:e,start:s}=r.loc;if(e===t.start){t.start=s;break}}if(t.outerEnd===t.end)for(const r of h(e)){if(void 0===r)continue;const{outerEnd:e,end:s}=r.loc;if(e===t.end){t.end=s;break}}this.loc=t}}s()}catch(d){s(d)}})},6811(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{M:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(6404),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;const{line:l}=n.doc.builders;class h extends a.w{kind=i.q3.SourceUnit;members;constructor(e,t){super(e,t),this.members=new o.d(e.members,t),this.updateMetadata(this.members)}print(e,t,r){return[e("members"),r.parentParser?"":l]}}s()}catch(e){s(e)}})},3357(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>E});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(5887),l=r(8668),h=r(2795),u=r(3692),d=r(1132),p=r(8324),m=r(3820),y=r(7281),f=r(9885),g=r(897),w=r(7260),x=r(33),v=r(4351),b=e([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]=b.then?(await b)():b;const _=(0,a.R)([[i.Kx2,c.K],[i.pMj,l.p],[i.ePz,h.e],[i.JOu,u.J],[i.J4F,d.J],[i.ZOq,p.Z],[i.P3w,m.P],[i.Wgi,y.W],[i.yuy,f.y],[i.em6,g.e],[i.zFc,w.z],[i.Ke0,x.K],[i.wyV,v.w]]);class E extends o.w{kind=n.q3.SourceUnitMember;variant;constructor(e,t){super(e,t),this.variant=_(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},6404(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{d:()=>h});var i=r(8269),n=r(1041),a=r(4003),o=r(6095),c=r(3357),l=e([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.SourceUnitMembers;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,a.f)(new c.A(e,t)))}print(e,t,r){return(0,n.V)(this,t,e,r)}}s()}catch(e){s(e)}})},2203(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{c:()=>l});var i=r(8269),n=r(6095),a=r(7178),o=r(8388),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.StateVariableAttribute;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof i.xo?this.variant=new o.x(r,t):(this.variant=new a.l(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},3002(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{T:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(2203),h=e([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{kind=i.q3.StateVariableAttributes;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,o.f)(new l.c(e,t))),this.items.sort(a.k)}print(e,t){return t.map(()=>[u,e()],"items")}}s()}catch(e){s(e)}})},918(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{z:()=>y});var i=r(8269),n=r(838),a=r(9857),o=r(4003),c=r(6095),l=r(9979),h=r(3002),u=r(8388),d=r(4965),p=e([i,c,l,h,u,d]);[i,c,l,h,u,d]=p.then?(await p)():p;const{indent:m}=n.doc.builders;class y extends c.w{kind=i.q3.StateVariableDefinition;typeName;attributes;name;value;constructor(e,t){super(e,t),this.typeName=(0,o.f)(new l.C(e.typeName,t)),this.attributes=new h.T(e.attributes,t),this.name=new u.x(e.name,t),e.value&&(this.value=new d.S(e.value,t)),this.updateMetadata(this.typeName,this.attributes,this.value)}print(e){return(0,a.u)([e("typeName"),m(e("attributes"))," ",e("name")],[e("value"),";"])}}s()}catch(e){s(e)}})},4965(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{S:()=>h});var i=r(8269),n=r(5536),a=r(4003),o=r(6095),c=r(8926),l=e([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.StateVariableDefinitionValue;value;constructor(e,t){super(e,t),this.value=(0,a.f)(new c.r(e.value,t)),this.updateMetadata(this.value)}print(e){return[" =",(0,n.U)(e("value"),this.value)]}}s()}catch(e){s(e)}})},5211(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{W:()=>R});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(6157),l=r(2421),h=r(6773),u=r(7978),d=r(3816),p=r(826),m=r(8943),y=r(9892),f=r(3144),g=r(2993),w=r(1553),x=r(3406),v=r(698),b=r(6133),_=r(7299),E=r(6511),T=r(6470),S=e([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v,b,_,E,T]=S.then?(await S)():S;const k=(0,a.R)([[i.Qrp,c.Q],[i._U4,l._],[i.aez,h.a],[i.vSB,u.v],[i.peC,d.p],[i.xvE,p.x],[i.IAp,m.I],[i.HdO,y.H],[i.VG,f.V],[i.chs,g.c],[i.emu,w.e],[i.x7K,x.x],[i.HwF,v.H],[i.iiK,b.i],[i.Iy0,_.I],[i.Evn,T.E]]);class R extends o.w{kind=n.q3.Statement;variant;constructor(e,t){super(e,t);const r=e.variant;this.variant=r instanceof i.eBw?new E.e(r,t):k(r,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},1322(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{$:()=>h});var i=r(8269),n=r(1041),a=r(4003),o=r(6095),c=r(5211),l=e([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.Statements;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,a.f)(new c.W(e,t)))}print(e,t,r){return(0,n.o)(this,t,e,r)}}s()}catch(e){s(e)}})},4557(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{o:()=>d});var i=r(8269),n=r(838),a=r(8941),o=r(4003),c=r(6095),l=r(8926),h=e([i,c,l]);[i,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{kind=i.q3.StorageLayoutSpecifier;expression;constructor(e,t){super(e,t),this.expression=(0,o.f)(new l.r(e.expression,t)),this.updateMetadata(this.expression)}print(e,t){return["layout at",(0,a.K)(e("expression"),{firstSeparator:u,lastSeparator:t.isFirst?u:""})]}}s()}catch(e){s(e)}})},1616(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{$:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.StorageLocation;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse()}print(){return this.variant}}s()}catch(e){s(e)}})},9511(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{O:()=>y});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3562),l=r(1073),h=r(5191),u=r(7598),d=r(8580),p=e([i,n,o,c,l,h,u,d]);[i,n,o,c,l,h,u,d]=p.then?(await p)():p;const m=(0,a.R)([[i.LWj,c.L],[i.Kyi,l.K],[i.Cp,h.C],[i.P4c,u.P],[i.Zeo,d.Z]]);class y extends o.w{kind=n.q3.StringExpression;variant;constructor(e,t){super(e,t),this.variant=m(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},3562(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{L:()=>c});var i=r(8269),n=r(1529),a=r(6095),o=e([i,a]);[i,a]=o.then?(await o)():o;class c extends a.w{kind=i.q3.StringLiteral;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse(),this.variant=(0,n.T)(this.variant.slice(1,-1),t.options)}print(){return this.variant}}s()}catch(e){s(e)}})},1073(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{K:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(3562),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=n.doc.builders;class u extends a.w{kind=i.q3.StringLiterals;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new o.L(e,t))}print(e,t){return l(h,t.map(e,"items"))}}s()}catch(e){s(e)}})},8324(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>l});var i=r(8269),n=r(6095),a=r(8388),o=r(7462),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.StructDefinition;name;members;constructor(e,t){super(e,t),this.name=new a.x(e.name,t),this.members=new o.N(e.members,t),this.updateMetadata(this.members)}print(e){return["struct ",e("name")," {",e("members"),"}"]}}s()}catch(e){s(e)}})},5839(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Y:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8388),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.StructMember;typeName;name;constructor(e,t){super(e,t),this.typeName=(0,n.f)(new o.C(e.typeName,t)),this.name=new c.x(e.name,t),this.updateMetadata(this.typeName)}print(e){return[e("typeName")," ",e("name"),";"]}}s()}catch(e){s(e)}})},7462(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{N:()=>u});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(5839),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;const{hardline:h}=n.doc.builders;class u extends o.w{kind=i.q3.StructMembers;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new c.Y(e,t))}print(e,t){return this.items.length>0?(0,a.J)(t.map(e,"items"),{firstSeparator:h,separator:h}):""}}s()}catch(e){s(e)}})},8388(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{x:()=>o});var i=r(6095),n=e([i]),a=n.then?(await n)():n;i=a[0];class o extends i.w{kind;value;constructor(e,t){super(e,t),this.kind=e.kind,this.value=e.unparse()}print(){return this.value}}s()}catch(e){s(e)}})},1553(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{e:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.ThrowStatement;constructor(e,t){super(e,t)}print(){return"throw;"}}s()}catch(e){s(e)}})},698(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{H:()=>y});var i=r(8269),n=r(838),a=r(8941),o=r(4003),c=r(6095),l=r(8926),h=r(7181),u=r(6511),d=r(7259),p=e([i,c,l,h,u,d]);[i,c,l,h,u,d]=p.then?(await p)():p;const{line:m}=n.doc.builders;class y extends c.w{kind=i.q3.TryStatement;expression;returns;body;catchClauses;constructor(e,t){super(e,t),this.expression=(0,o.f)(new l.r(e.expression,t)),e.returns&&(this.returns=new h.I(e.returns,t)),this.body=new u.e(e.body,t),this.catchClauses=new d.m(e.catchClauses,t),this.updateMetadata(this.expression,this.returns,this.body,this.catchClauses)}print(e){const t=e("returns");return["try",(0,a.K)(e("expression"),{firstSeparator:m}),[t?[t," "]:t,e("body")," ",e("catchClauses")]]}}s()}catch(e){s(e)}})},9400(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{r:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(7562),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.TupleDeconstructionElement;member;constructor(e,t){super(e,t),e.member&&(this.member=(0,n.f)(new o.n(e.member,t))),this.updateMetadata(this.member)}print(e){return e("member")}}s()}catch(e){s(e)}})},9839(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Y:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(9400),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.TupleDeconstructionElements;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new o.r(e,t))}print(e,t){return(0,n.J)(t.map(e,"items"))}}s()}catch(e){s(e)}})},6773(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{a:()=>u});var i=r(8269),n=r(9857),a=r(4003),o=r(6095),c=r(9839),l=r(8926),h=e([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;class u extends o.w{kind=i.q3.TupleDeconstructionStatement;varKeyword;elements;expression;constructor(e,t){super(e,t),this.varKeyword=e.varKeyword?.unparse(),this.elements=new c.Y(e.elements,t),this.expression=(0,a.f)(new l.r(e.expression,t)),this.updateMetadata(this.elements,this.expression)}print(e){return(0,n.u)([this.varKeyword?"var (":"(",e("elements"),") = "],[e("expression"),";"])}}s()}catch(e){s(e)}})},4274(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{b:()=>c});var i=r(8269),n=r(6095),a=r(1634),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.TupleExpression;items;constructor(e,t){super(e,t),this.items=new a.X(e.items,t),this.updateMetadata(this.items)}print(e){return["(",e("items"),")"]}}s()}catch(e){s(e)}})},7562(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{n:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3700),l=r(539),h=e([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.ZCC,c.Z],[i.iRq,l.i]]);class d extends o.w{kind=n.q3.TupleMember;variant;constructor(e,t){super(e,t),this.variant=u(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},7651(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{E:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(8926),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.TupleValue;expression;constructor(e,t){super(e,t),e.expression&&(this.expression=(0,n.f)(new o.r(e.expression,t))),this.updateMetadata(this.expression)}print(e){return e("expression")}}s()}catch(e){s(e)}})},1634(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{X:()=>h});var i=r(8269),n=r(7578),a=r(1376),o=r(6095),c=r(7651),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.TupleValues;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new c.E(e,t))}getSingleExpression(){const e=this.items;return 1===e.length?e[0].expression:void 0}print(e,t){const r=this.getSingleExpression(),s=t.map(e,"items");return r&&(0,a.D)(r)?s:(0,n.J)(s)}}s()}catch(e){s(e)}})},86(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{j:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.TypeExpression;typeName;constructor(e,t){super(e,t),this.typeName=(0,n.f)(new o.C(e.typeName,t)),this.updateMetadata(this.typeName)}print(e){return["type(",e("typeName"),")"]}}s()}catch(e){s(e)}})},9979(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{C:()=>y});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(4968),l=r(3476),h=r(9184),u=r(3198),d=r(2912),p=e([i,n,o,c,l,h,u,d]);[i,n,o,c,l,h,u,d]=p.then?(await p)():p;const m=(0,a.$)([[i.fhq,c.f],[i.RKz,l.R],[i.dMb,h.d],[i.Ddx,d.D]],[[i.$ge,u.$]]);class y extends o.w{kind=n.q3.TypeName;variant;constructor(e,t){super(e,t),this.variant=m(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},3700(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>u});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(1616),l=r(8388),h=e([i,a,o,c,l]);[i,a,o,c,l]=h.then?(await h)():h;class u extends a.w{kind=i.q3.TypedTupleMember;typeName;storageLocation;name;constructor(e,t){super(e,t),this.typeName=(0,n.f)(new o.C(e.typeName,t)),e.storageLocation&&(this.storageLocation=new c.$(e.storageLocation,t)),this.name=new l.x(e.name,t),this.updateMetadata(this.typeName,this.storageLocation)}print(e){const t=e("storageLocation");return[e("typeName"),t?[" ",t]:t," ",e("name")]}}s()}catch(e){s(e)}})},6470(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{E:()=>c});var i=r(8269),n=r(6095),a=r(6511),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.UncheckedBlock;block;constructor(e,t){super(e,t),this.block=new a.e(e.block,t),this.updateMetadata(this.block)}print(e){return["unchecked ",e("block")]}}s()}catch(e){s(e)}})},1309(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{G:()=>c});var i=r(8269),n=r(1529),a=r(6095),o=e([i,a]);[i,a]=o.then?(await o)():o;class c extends a.w{kind=i.q3.UnicodeStringLiteral;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse(),this.variant=`unicode${(0,n.T)(this.variant.slice(8,-1),t.options)}`}print(){return this.variant}}s()}catch(e){s(e)}})},8580(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(1309),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l,hardline:h}=n.doc.builders;class u extends a.w{kind=i.q3.UnicodeStringLiterals;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new o.G(e,t))}print(e,t){return l(h,t.map(e,"items"))}}s()}catch(e){s(e)}})},2080(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{L:()=>l});var i=r(8269),n=r(6095),a=r(1699),o=r(8388),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.UnnamedFunctionAttribute;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof i.xo?this.variant=new o.x(r,t):(this.variant=new a.u(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},2263(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{q:()=>d});var i=r(8269),n=r(838),a=r(3111),o=r(4003),c=r(6095),l=r(2080),h=e([i,a,c,l]);[i,a,c,l]=h.then?(await h)():h;const{line:u}=n.doc.builders;class d extends c.w{kind=i.q3.UnnamedFunctionAttributes;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,o.f)(new l.L(e,t))),this.items.sort(a.k)}print(e,t){return t.map(()=>[u,e()],"items")}}s()}catch(e){s(e)}})},6871(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{u:()=>d});var i=r(8269),n=r(304),a=r(4003),o=r(6095),c=r(9002),l=r(2263),h=r(1580),u=e([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;class d extends o.w{kind=i.q3.UnnamedFunctionDefinition;parameters;attributes;body;constructor(e,t){super(e,t),this.parameters=new c.Z(e.parameters,t),this.attributes=new l.q(e.attributes,t),this.body=(0,a.f)(new h.r(e.body,t)),this.updateMetadata(this.parameters,this.attributes,this.body);for(const e of this.attributes.items)e.kind===i.q3.ModifierInvocation&&e.cleanModifierInvocationArguments()}print(e){return(0,n.c)("function",this,e)}}s()}catch(e){s(e)}})},539(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{i:()=>l});var i=r(8269),n=r(6095),a=r(1616),o=r(8388),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.UntypedTupleMember;storageLocation;name;constructor(e,t){super(e,t),e.storageLocation&&(this.storageLocation=new a.$(e.storageLocation,t)),this.name=new o.x(e.name,t),this.updateMetadata(this.storageLocation)}print(e){const t=e("storageLocation");return[t?[t," "]:t,e("name")]}}s()}catch(e){s(e)}})},7260(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{z:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(8388),c=r(3198),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.UserDefinedValueTypeDefinition;name;valueType;constructor(e,t){super(e,t),this.name=new o.x(e.name,t),this.valueType=(0,n.f)(new c.$(e.valueType,t)),this.updateMetadata(this.valueType)}print(e){return["type ",e("name")," is ",e("valueType"),";"]}}s()}catch(e){s(e)}})},4916(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{j:()=>c});var i=r(8269),n=r(6095),a=r(7818),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.UsingAlias;operator;constructor(e,t){super(e,t),this.operator=new a.Z(e.operator,t),this.updateMetadata(this.operator)}print(e){return[" as ",e("operator")]}}s()}catch(e){s(e)}})},6575(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{g:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(2912),l=r(7972),h=e([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.Ddx,c.D],[i.rNJ,l.r]]);class d extends o.w{kind=n.q3.UsingClause;variant;constructor(e,t){super(e,t),this.variant=u(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},7972(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{r:()=>c});var i=r(8269),n=r(6095),a=r(983),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.UsingDeconstruction;symbols;constructor(e,t){super(e,t),this.symbols=new a.e(e.symbols,t),this.updateMetadata(this.symbols)}print(e){return["{",e("symbols"),"}"]}}s()}catch(e){s(e)}})},4288(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{B:()=>l});var i=r(8269),n=r(6095),a=r(2912),o=r(4916),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.UsingDeconstructionSymbol;name;alias;constructor(e,t){super(e,t),this.name=new a.D(e.name,t),e.alias&&(this.alias=new o.j(e.alias,t)),this.updateMetadata(this.name,this.alias)}print(e){return[e("name"),e("alias")]}}s()}catch(e){s(e)}})},983(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{e:()=>d});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(4288),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h,softline:u}=n.doc.builders;class d extends o.w{kind=i.q3.UsingDeconstructionSymbols;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new c.B(e,t))}print(e,t,r){return(0,a.J)(t.map(e,"items"),{firstSeparator:r.bracketSpacing?h:u})}}s()}catch(e){s(e)}})},33(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{K:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(6575),c=r(2399),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.UsingDirective;clause;target;globalKeyword;constructor(e,t){super(e,t),this.clause=(0,n.f)(new o.g(e.clause,t)),this.target=(0,n.f)(new c.A(e.target,t)),this.globalKeyword=e.globalKeyword?.unparse(),this.updateMetadata(this.clause,this.target)}print(e){return["using ",e("clause")," for ",e("target"),this.globalKeyword?" global;":";"]}}s()}catch(e){s(e)}})},7818(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Z:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.UsingOperator;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse()}print(){return this.variant}}s()}catch(e){s(e)}})},2399(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8388),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.UsingTarget;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof i.xo?this.variant=new c.x(r,t):(this.variant=(0,n.f)(new o.C(r,t)),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},2421(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{_:()=>f});var i=r(8269),n=r(838),a=r(9857),o=r(4003),c=r(6095),l=r(6030),h=r(1616),u=r(8388),d=r(1829),p=e([i,c,l,h,u,d]);[i,c,l,h,u,d]=p.then?(await p)():p;const{indent:m,line:y}=n.doc.builders;class f extends c.w{kind=i.q3.VariableDeclarationStatement;variableType;storageLocation;name;value;constructor(e,t){super(e,t),this.variableType=(0,o.f)(new l.L(e.variableType,t)),e.storageLocation&&(this.storageLocation=new h.$(e.storageLocation,t)),this.name=new u.x(e.name,t),e.value&&(this.value=new d.y(e.value,t)),this.updateMetadata(this.variableType,this.storageLocation,this.value)}print(e){return(0,a.u)([e("variableType"),this.storageLocation?m([y,e("storageLocation")]):""," ",e("name")],[e("value"),";"])}}s()}catch(e){s(e)}})},6030(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{L:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9979),c=r(8388),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.VariableDeclarationType;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof i.xo?this.variant=new c.x(r,t):(this.variant=(0,n.f)(new o.C(r,t)),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},1829(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{y:()=>h});var i=r(8269),n=r(5536),a=r(4003),o=r(6095),c=r(8926),l=e([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.VariableDeclarationValue;expression;constructor(e,t){super(e,t),this.expression=(0,a.f)(new c.r(e.expression,t)),this.updateMetadata(this.expression)}print(e){return[" =",(0,n.U)(e("expression"),this.expression)]}}s()}catch(e){s(e)}})},852(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{L:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(8225),l=r(6336),h=e([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.GoE,c.G],[i.BIR,l.B]]);class d extends o.w{kind=n.q3.VersionExpression;variant;constructor(e,t){super(e,t),this.variant=u(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},3586(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{T:()=>u});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(852),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;const{join:h}=n.doc.builders;class u extends o.w{kind=i.q3.VersionExpressionSet;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,a.f)(new c.L(e,t)))}print(e,t){return h(" ",t.map(e,"items"))}}s()}catch(e){s(e)}})},4313(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{k:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(3586),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{kind=i.q3.VersionExpressionSets;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new o.T(e,t))}print(e,t){return l(" || ",t.map(e,"items"))}}s()}catch(e){s(e)}})},3091(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{w:()=>l});var i=r(8269),n=r(6095),a=r(717),o=r(8388),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.VersionLiteral;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof i.xo?this.variant=new o.x(r,t):(this.variant=new a.i(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},2754(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{X:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.VersionOperator;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse()}print(){return this.variant}}s()}catch(e){s(e)}})},8234(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{h:()=>c});var i=r(8269),n=r(6095),a=r(4313),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.VersionPragma;sets;constructor(e,t){super(e,t),this.sets=new a.k(e.sets,t),this.updateMetadata(this.sets)}print(e){return["solidity ",e("sets")]}}s()}catch(e){s(e)}})},8225(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{G:()=>l});var i=r(8269),n=r(4003),a=r(6095),o=r(3091),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.VersionRange;start;end;constructor(e,t){super(e,t),this.start=(0,n.f)(new o.w(e.start,t)),this.end=(0,n.f)(new o.w(e.end,t)),this.updateMetadata(this.start,this.end)}print(e){return[e("start")," - ",e("end")]}}s()}catch(e){s(e)}})},6336(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{B:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(2754),c=r(3091),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.VersionTerm;operator;literal;constructor(e,t){super(e,t),e.operator&&(this.operator=new o.X(e.operator,t)),this.literal=(0,n.f)(new c.w(e.literal,t)),this.updateMetadata(this.operator,this.literal)}print(e){return[e("operator"),e("literal")]}}s()}catch(e){s(e)}})},826(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{x:()=>d});var i=r(8269),n=r(8941),a=r(4374),o=r(4003),c=r(6095),l=r(8926),h=r(5211),u=e([i,c,l,h]);[i,c,l,h]=u.then?(await u)():u;class d extends c.w{kind=i.q3.WhileStatement;condition;body;constructor(e,t){super(e,t),this.condition=(0,o.f)(new l.r(e.condition,t)),this.body=(0,o.f)(new h.W(e.body,t)),this.updateMetadata(this.condition,this.body)}print(e){return["while (",(0,n.K)(e("condition")),")",(0,a.w)(e("body"),this.body.kind!==i.q3.Block)]}}s()}catch(e){s(e)}})},9466(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{H:()=>h});var i=r(8269),n=r(7578),a=r(4003),o=r(6095),c=r(9838),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.YulArguments;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,a.f)(new c.h(e,t)))}print(e,t){return(0,n.J)(t.map(e,"items"))}}s()}catch(e){s(e)}})},5101(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{W:()=>l});var i=r(8269),n=r(6095),a=r(8906),o=r(8388),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.YulAssignmentOperator;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof i.xo?this.variant=new o.x(r,t):(this.variant=new a.d(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},2319(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{M:()=>c});var i=r(8269),n=r(6095),a=r(1514),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.YulBlock;statements;constructor(e,t){super(e,t),this.statements=new a.f(e.statements,t),this.updateMetadata(this.statements)}print(e){return["{",e("statements"),"}"]}}s()}catch(e){s(e)}})},2888(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{b:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.YulBreakStatement;constructor(e,t){super(e,t)}print(){return"break"}}s()}catch(e){s(e)}})},8906(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{d:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.YulColonAndEqual;constructor(e,t){super(e,t)}print(){return":="}}s()}catch(e){s(e)}})},900(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{N:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.YulContinueStatement;constructor(e,t){super(e,t)}print(){return"continue"}}s()}catch(e){s(e)}})},3495(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{a:()=>c});var i=r(8269),n=r(6095),a=r(2319),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.YulDefaultCase;body;constructor(e,t){super(e,t),this.body=new a.M(e.body,t),this.updateMetadata(this.body)}print(e){return["default ",e("body")]}}s()}catch(e){s(e)}})},2830(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{T:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.YulEqualAndColon;constructor(e,t){super(e,t)}print(){return"=:"}}s()}catch(e){s(e)}})},9838(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{h:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(9878),l=r(7769),h=r(3859),u=e([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.$)([[i.VZT,c.V],[i.i7X,h.i]],[[i.KO$,l.K]]);class p extends o.w{kind=n.q3.YulExpression;variant;constructor(e,t){super(e,t),this.variant=d(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},9192(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{D:()=>d});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(2319),l=r(9838),h=e([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;const{join:u}=n.doc.builders;class d extends o.w{kind=i.q3.YulForStatement;initialization;condition;iterator;body;constructor(e,t){super(e,t),this.initialization=new c.M(e.initialization,t),this.condition=(0,a.f)(new l.h(e.condition,t)),this.iterator=new c.M(e.iterator,t),this.body=new c.M(e.body,t),this.updateMetadata(this.initialization,this.condition,this.iterator,this.body)}print(e){return u(" ",["for",e("initialization"),e("condition"),e("iterator"),e("body")])}}s()}catch(e){s(e)}})},9878(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{V:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9838),c=r(9466),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.YulFunctionCallExpression;operand;arguments;constructor(e,t){super(e,t),this.operand=(0,n.f)(new o.h(e.operand,t)),this.arguments=new c.H(e.arguments,t),this.updateMetadata(this.operand,this.arguments)}print(e){return[e("operand"),"(",e("arguments"),")"]}}s()}catch(e){s(e)}})},3457(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{g:()=>u});var i=r(8269),n=r(6095),a=r(8388),o=r(8026),c=r(3437),l=r(2319),h=e([i,n,a,o,c,l]);[i,n,a,o,c,l]=h.then?(await h)():h;class u extends n.w{kind=i.q3.YulFunctionDefinition;name;parameters;returns;body;constructor(e,t){super(e,t),this.name=new a.x(e.name,t),this.parameters=new o.f(e.parameters,t),e.returns&&(this.returns=new c.c(e.returns,t)),this.body=new l.M(e.body,t),this.updateMetadata(this.parameters,this.returns,this.body)}print(e){return["function ",e("name"),e("parameters"),e("returns")||" ",e("body")]}}s()}catch(e){s(e)}})},6570(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{N:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(9838),c=r(2319),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.YulIfStatement;condition;body;constructor(e,t){super(e,t),this.condition=(0,n.f)(new o.h(e.condition,t)),this.body=new c.M(e.body,t),this.updateMetadata(this.condition,this.body)}print(e){return["if ",e("condition")," ",e("body")]}}s()}catch(e){s(e)}})},672(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{p:()=>u});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;const{dedent:l,line:h}=n.doc.builders;class u extends a.w{kind=i.q3.YulLabel;label;constructor(e,t){super(e,t),this.label=new o.x(e.label,t)}print(e){return[l(h),e("label"),":"]}}s()}catch(e){s(e)}})},9976(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{d:()=>o});var i=r(8269),n=r(6095),a=e([i,n]);[i,n]=a.then?(await a)():a;class o extends n.w{kind=i.q3.YulLeaveStatement;constructor(e,t){super(e,t)}print(){return"leave"}}s()}catch(e){s(e)}})},7769(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{K:()=>p});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(5191),l=r(3562),h=r(8388),u=e([i,n,o,c,l,h]);[i,n,o,c,l,h]=u.then?(await u)():u;const d=(0,a.R)([[i.Cp,c.C],[i.LWj,l.L]]);class p extends o.w{kind=n.q3.YulLiteral;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof n.xo?this.variant=new h.x(r,t):(this.variant=d(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},9388(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{j:()=>l});var i=r(8269),n=r(7578),a=r(6095),o=r(8388),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;class l extends a.w{kind=i.q3.YulParameters;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new o.x(e,t))}print(e,t){return(0,n.J)(t.map(e,"items"))}}s()}catch(e){s(e)}})},8026(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{f:()=>c});var i=r(8269),n=r(6095),a=r(9388),o=e([i,n,a]);[i,n,a]=o.then?(await o)():o;class c extends n.w{kind=i.q3.YulParametersDeclaration;parameters;constructor(e,t){super(e,t),this.parameters=new a.j(e.parameters,t),this.updateMetadata(this.parameters)}print(e){return["(",e("parameters"),")"]}}s()}catch(e){s(e)}})},3859(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{i:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(8388),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{kind=i.q3.YulPath;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new o.x(e,t))}print(e,t){return l(".",t.map(e,"items"))}}s()}catch(e){s(e)}})},8578(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{F:()=>h});var i=r(8269),n=r(838),a=r(6095),o=r(3859),c=e([i,a,o]);[i,a,o]=c.then?(await c)():c;const{join:l}=n.doc.builders;class h extends a.w{kind=i.q3.YulPaths;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new o.i(e,t))}print(e,t){return l(", ",t.map(e,"items"))}}s()}catch(e){s(e)}})},3437(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{c:()=>u});var i=r(8269),n=r(838),a=r(8941),o=r(6095),c=r(8634),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h}=n.doc.builders;class u extends o.w{kind=i.q3.YulReturnsDeclaration;variables;constructor(e,t){super(e,t),this.variables=new c.b(e.variables,t),this.updateMetadata(this.variables)}print(e){return(0,a.K)(["->",e("variables")],{firstSeparator:h})}}s()}catch(e){s(e)}})},5003(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{g:()=>l});var i=r(8269),n=r(6095),a=r(2830),o=r(8388),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.YulStackAssignmentOperator;variant;constructor(e,t){super(e,t);const r=e.variant;r instanceof i.xo?this.variant=new o.x(r,t):(this.variant=new a.T(r,t),this.updateMetadata(this.variant))}}s()}catch(e){s(e)}})},5394(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{f:()=>p});var i=r(8269),n=r(838),a=r(8941),o=r(4003),c=r(6095),l=r(5003),h=r(8388),u=e([i,c,l,h]);[i,c,l,h]=u.then?(await u)():u;const{line:d}=n.doc.builders;class p extends c.w{kind=i.q3.YulStackAssignmentStatement;assignment;variable;constructor(e,t){super(e,t),this.assignment=(0,o.f)(new l.g(e.assignment,t)),this.variable=new h.x(e.variable,t),this.updateMetadata(this.assignment)}print(e){return[e("assignment"),(0,a.K)(e("variable"),{firstSeparator:d,lastSeparator:""})]}}s()}catch(e){s(e)}})},6155(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{C:()=>E});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(2319),l=r(3457),h=r(8453),u=r(3752),d=r(5394),p=r(6570),m=r(9192),y=r(1335),f=r(9976),g=r(2888),w=r(900),x=r(672),v=r(9838),b=e([i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]);[i,n,o,c,l,h,u,d,p,m,y,f,g,w,x,v]=b.then?(await b)():b;const _=(0,a.$)([[i.gPA,l.g],[i.OKT,h.O],[i.xu3,u.x],[i.fOI,d.f],[i.Nv1,p.N],[i.D7j,m.D],[i.Q2m,y.Q],[i.d6v,f.d],[i.bbA,g.b],[i.NM3,w.N],[i.pOL,x.p]],[[i.h7v,v.h]]);class E extends o.w{kind=n.q3.YulStatement;variant;constructor(e,t){super(e,t);const r=e.variant;this.variant=r instanceof i.Mmb?new c.M(r,t):_(r,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},1514(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{f:()=>h});var i=r(8269),n=r(1041),a=r(4003),o=r(6095),c=r(6155),l=e([i,n,o,c]);[i,n,o,c]=l.then?(await l)():l;class h extends o.w{kind=i.q3.YulStatements;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,a.f)(new c.C(e,t)))}print(e,t,r){return(0,n.o)(this,t,e,r)}}s()}catch(e){s(e)}})},2688(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{p:()=>d});var i=r(8683),n=r(8269),a=r(7427),o=r(6095),c=r(3495),l=r(3211),h=e([i,n,o,c,l]);[i,n,o,c,l]=h.then?(await h)():h;const u=(0,a.R)([[i.a1h,c.a],[i.Gpj,l.G]]);class d extends o.w{kind=n.q3.YulSwitchCase;variant;constructor(e,t){super(e,t),this.variant=u(e.variant,t),this.updateMetadata(this.variant)}}s()}catch(e){s(e)}})},9543(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{q:()=>d});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(2688),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;const{hardline:h,join:u}=n.doc.builders;class d extends o.w{kind=i.q3.YulSwitchCases;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>(0,a.f)(new c.p(e,t)))}print(e,t){return u(h,t.map(e,"items"))}}s()}catch(e){s(e)}})},1335(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{Q:()=>d});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(9838),l=r(9543),h=e([i,o,c,l]);[i,o,c,l]=h.then?(await h)():h;const{hardline:u}=n.doc.builders;class d extends o.w{kind=i.q3.YulSwitchStatement;expression;cases;constructor(e,t){super(e,t),this.expression=(0,a.f)(new c.h(e.expression,t)),this.cases=new l.q(e.cases,t),this.updateMetadata(this.expression,this.cases)}print(e){return["switch ",e("expression"),u,e("cases")]}}s()}catch(e){s(e)}})},3211(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{G:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(7769),c=r(2319),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.YulValueCase;value;body;constructor(e,t){super(e,t),this.value=(0,n.f)(new o.K(e.value,t)),this.body=new c.M(e.body,t),this.updateMetadata(this.value,this.body)}print(e){return["case ",e("value")," ",e("body")]}}s()}catch(e){s(e)}})},3752(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{x:()=>p});var i=r(8269),n=r(838),a=r(4003),o=r(6095),c=r(8578),l=r(5101),h=r(9838),u=e([i,o,c,l,h]);[i,o,c,l,h]=u.then?(await u)():u;const{join:d}=n.doc.builders;class p extends o.w{kind=i.q3.YulVariableAssignmentStatement;variables;assignment;expression;constructor(e,t){super(e,t),this.variables=new c.F(e.variables,t),this.assignment=(0,a.f)(new l.W(e.assignment,t)),this.expression=(0,a.f)(new h.h(e.expression,t)),this.updateMetadata(this.variables,this.assignment,this.expression)}print(e){return d(" ",[e("variables"),e("assignment"),e("expression")])}}s()}catch(e){s(e)}})},8453(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{O:()=>l});var i=r(8269),n=r(6095),a=r(9861),o=r(8634),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;class l extends n.w{kind=i.q3.YulVariableDeclarationStatement;variables;value;constructor(e,t){super(e,t),this.variables=new o.b(e.variables,t),e.value&&(this.value=new a.S(e.value,t)),this.updateMetadata(this.value)}print(e){const t=e("value");return["let",e("variables"),t?[" ",t]:t]}}s()}catch(e){s(e)}})},9861(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{S:()=>h});var i=r(8269),n=r(4003),a=r(6095),o=r(5101),c=r(9838),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;class h extends a.w{kind=i.q3.YulVariableDeclarationValue;assignment;expression;constructor(e,t){super(e,t),this.assignment=(0,n.f)(new o.W(e.assignment,t)),this.expression=(0,n.f)(new c.h(e.expression,t)),this.updateMetadata(this.assignment,this.expression)}print(e){return[e("assignment")," ",e("expression")]}}s()}catch(e){s(e)}})},8634(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{b:()=>u});var i=r(8269),n=r(838),a=r(7578),o=r(6095),c=r(8388),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;const{line:h}=n.doc.builders;class u extends o.w{kind=i.q3.YulVariableNames;items;constructor(e,t){super(e,t,!0),this.items=e.items.map(e=>new c.x(e,t))}print(e,t){return(0,a.J)(t.map(e,"items"),{firstSeparator:h,lastSeparator:""})}}s()}catch(e){s(e)}})},1059(e,t,r){r.a(e,async(e,s)=>{try{var i=r(8269),n=r(838),a=r(1376),o=e([i,a]);[i,a]=o.then?(await o)():o;const{group:c,line:l}=n.doc.builders;function h({operator:e,leftOperand:t},r,s,n){const o=r("rightOperand"),h="end"===n.experimentalOperatorPosition?[` ${e}`,l,o]:[l,`${e} `,o],u=s.parent;return(0,a.D)(t)||(0,a.D)(u)&&u.kind!==i.q3.AssignmentExpression?h:c(h)}const u=(e,t)=>(r,s,i,n)=>{const a=e(s),o=t(r,s);return a([i("leftOperand"),o(h(r,i,s,n))])};r.d(t,["f",0,u]),s()}catch(d){s(d)}})},5536(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{U:()=>c});var i=r(8269),n=r(6543),a=r(4374),o=e([i,n]);function c(e,t){return(0,a.w)(e,t.kind!==i.q3.ArrayExpression&&t.kind!==i.q3.TupleExpression&&!(0,n.Y)(t))}[i,n]=o.then?(await o)():o,s()}catch(l){s(l)}})},4209(e,t,r){r.a(e,async(e,s)=>{try{var i=r(8269),n=r(838),a=r(6563),o=r(1376),c=r(1059),l=e([i,o,c]);[i,o,c]=l.then?(await l)():l;const{group:h,indent:u}=n.doc.builders,d=e=>t=>r=>{const s=t.parent;return(0,o.D)(s)?e(s)?h(r):r:h(r)},p=(0,a.n)([i.q3.ReturnStatement,i.q3.IfStatement,i.q3.WhileStatement]),m=(e,t,r)=>p(e)||e.kind===i.q3.ExpressionStatement&&t.getNode(r+1).kind===i.q3.ForStatement,y=e=>(t,r)=>s=>{for(let i,n=1,a=t;i=r.getNode(n),!m(i,r,n);n++,a=i){if(!(0,o.D)(i))return u(s);if(e(i))return u(s);if(a===i.rightOperand)break}return s},f=e=>(0,c.f)(d(e),y(e));r.d(t,["WV",0,f,"Wu",0,y,"xM",0,d,"z9",0,m]),s()}catch(e){s(e)}})},5215(e,t,r){r.d(t,{A:()=>c});var s=r(838);const{hardline:i,join:n,literalline:a}=s.doc.builders;function o(e){return n(i,e.map((e,t)=>`${0===t?"":" "}${e.trimEnd()}`))}function c(e){const t=e.value.slice(1).split("\n"),r=function(e){if(e.length>1){const t=[];for(let r of e){if(r=r.trimStart(),!r.startsWith("*"))return;t.push(r)}return t}}(t);return["/",r?o(r):n(a,t)]}},7134(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{i:()=>u});var i=r(838),n=r(7431),a=r(9060),o=e([n]),c=o.then?(await o)():o;n=c[0];const{hardline:l}=i.doc.builders;function h(e){return!e.trailing&&!e.leading&&!e.printed}function u(e,t,r){const s=e.comments?.findLastIndex(h)??-1;return-1===s?[]:t.map(({node:e},o)=>h(e)?(e.printed=!0,[(0,n.X)(t),o!==s?[l,i.util.isNextLineEmpty(r.originalText,(0,a.I)(e))?l:""]:""]):"","comments")}s()}catch(d){s(d)}})},304(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{c:()=>d});var i=r(8269),n=r(838),a=e([i]),o=a.then?(await a)():a;i=o[0];const{dedent:c,group:l,indent:h,line:u}=n.doc.builders;function d(e,t,r){const s=r("returns");return[l([e,r("parameters"),h(l([r("attributes"),s?[u,s]:s,t.body?.kind===i.q3.Block?c(u):""]))]),r("body")]}s()}catch(p){s(p)}})},9857(e,t,r){r.d(t,{u:()=>a});var s=r(838);const{group:i,indentIfBreak:n}=s.doc.builders;function a(e,t){const r=Symbol("Slang.GroupAndIndentIfBreakPair");return[i(e,{id:r}),n(t,{groupId:r})]}},4374(e,t,r){r.d(t,{w:()=>o});var s=r(838);const{group:i,indent:n,line:a}=s.doc.builders;function o(e,t=!0,r={}){return t?i(n([a,e]),r):[" ",e]}},8409(e,t,r){r.a(e,async(e,s)=>{try{var i=r(8269),n=r(838),a=r(1376),o=r(1059),c=r(4209),l=e([i,a,o,c]);[i,a,o,c]=l.then?(await l)():l;const{indent:h}=n.doc.builders,u=(0,c.xM)(()=>!1),d=(e,t)=>r=>{for(let s,n=1,o=e;!(s=t.getNode(n),(0,c.z9)(s,t,n)||s.kind===i.q3.ConditionalExpression&&s.operand===o);n++,o=s){if(!(0,a.D)(s))return h(r);if(o===s.rightOperand)break}return r},p=(0,o.f)(u,d);r.d(t,["a",0,p]),s()}catch(e){s(e)}})},7609(e,t,r){r.d(t,{p:()=>a});var s=r(4079),i=r(9857);const n=Symbol("MemberAccessChain");function a(e,t){return(0,s.J)(e,n)?{...e,contents:(0,i.u)(e.contents,t)}:[e,t].flat()}r.d(t,["u",0,n])},1041(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{V:()=>u,o:()=>d});var i=r(8269),n=r(838),a=r(9060),o=r(7134),c=r(8941),l=e([i,o]);[i,o]=l.then?(await l)():l;const{hardline:h}=n.doc.builders;function u(e,t,r,s){return e.items.length>0?t.map(({node:e,isFirst:t,isLast:o})=>[t||e.kind===i.q3.YulLabel?"":h,r(),!o&&n.util.isNextLineEmpty(s.originalText,(0,a.I)(e))?h:""],"items"):(0,o.i)(e,t,s)}function d(e,t,r,s){return e.items.length>0||(e.comments?.length??0)>0?(0,c.K)(u(e,t,r,s),{firstSeparator:h}):""}s()}catch(p){s(p)}})},8941(e,t,r){r.d(t,{K:()=>c});var s=r(838);const{group:i,hardline:n,indent:a,softline:o}=s.doc.builders;function c(e,{firstSeparator:t=o,lastSeparator:r=t,grouped:s=t!==n}={}){const c=[a([t,e]),r];return s?i(c):c}},7578(e,t,r){r.d(t,{J:()=>o});var s=r(838),i=r(8941);const{join:n,line:a}=s.doc.builders;function o(e,{firstSeparator:t,separator:r=[",",a],lastSeparator:s,grouped:o}={}){return(0,i.K)(n(r,e),{firstSeparator:t,lastSeparator:s,grouped:o})}},1529(e,t,r){r.d(t,{T:()=>i});var s=r(838);function i(e,t){const r=t.singleQuote?"'":'"',i="'"===r?'"':"'";let n=0,a=0;for(const t of e)t===r?n++:t===i&&a++;const o=n>a?i:r;return s.util.makeString(e,o)}},142(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{H:()=>h});var i=r(8269),n=r(4274),a=r(1634),o=r(7651),c=r(1376),l=e([i,n,a,o,c]);function h(e){const t=new Set(e);return e=>{if((0,c.D)(e)&&t.has(e.operator)){const t=e.loc;return Object.assign(Object.create(n.b.prototype),{kind:i.q3.TupleExpression,loc:{...t},comments:void 0,items:Object.assign(Object.create(a.X.prototype),{kind:i.q3.TupleValues,loc:{...t},comments:void 0,items:[Object.assign(Object.create(o.E.prototype),{kind:i.q3.TupleValue,loc:{...t},comments:void 0,expression:e})]})})}return e}}[i,n,a,o,c]=l.then?(await l)():l,s()}catch(u){s(u)}})},6563(e,t,r){function s(e){const t=new Set(e);return e=>t.has(e.kind)}r.d(t,{n:()=>s})},7427(e,t,r){r.d(t,{$:()=>n,R:()=>i});var s=r(4003);function i(e){return(t,r)=>{for(const[s,i]of e)if(t instanceof s)return new i(t,r);throw new Error(`Unexpected variant: ${JSON.stringify(t)}`)}}function n(e,t){const r=i(e);return(e,i)=>{for(const[r,n]of t)if(e instanceof r)return(0,s.f)(new n(e,i));return r(e,i)}}},4254(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{C:()=>p});var i=r(8269),n=r(5130),a=r(3704),o=r(9589),c=e([i,n,a]);[i,n,a]=c.then?(await c)():c;const l=a.g.allVersions(),h=l.length,u=a.g.latestVersion();function d(e,t,r){const s=n.i.create(t),a=s.parseNonterminal(i.q3.SourceUnit,e);if(!a.isValid())throw new Error(`We encountered the following syntax error:\n\n\t${a.errors()[0].message}\n\n${r}`);return{parser:s,parseOutput:a}}function p(e,t){const r=(0,o.maxSatisfying)(l,t.compiler);if(r)return d(e,r,`Based on the compiler option provided, we inferred your code to be using Solidity version ${r}. If you would like to change that, specify a different version in your \`.prettierrc\` file.`);const s=a.g.inferLanguageVersions(e),i=s.length;if(0===i||i===h)return d(e,u,`We couldn't infer a Solidity version based on the pragma statements in your code so we defaulted to ${u}. You might be attempting to use a syntax not yet supported by Slang or you might want to specify a version in your \`.prettierrc\` file.`);const n=s[i-1];return d(e,n,`Based on the pragma statements, we inferred your code to be using Solidity version ${n}. If you would like to change that, update the pragmas in your source file, or specify a version in your \`.prettierrc\` file.`)}s()}catch(m){s(m)}})},4003(e,t,r){function s({variant:e,loc:t}){return e.loc=t,e}r.d(t,{f:()=>s})},5266(e,t,r){r.d(t,{H:()=>i});const s=new Set(["kind","loc","comments","print","isEmpty","updateMetadata","cleanModifierInvocationArguments","getSingleExpression"]);function i(e,t){return Object.keys(e).filter(e=>!t.has(e)&&!s.has(e))}},8679(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{m:()=>o});var i=r(7540),n=e([i]),a=n.then?(await n)():n;function o({node:e}){return!(0,i.C)(e)&&Boolean(e.comments?.some(e=>"prettier-ignore"===e.value.slice(2,(0,i.t)(e)?-2:void 0).trim()))}i=a[0],s()}catch(c){s(c)}})},1376(e,t,r){r.a(e,async(e,s)=>{try{var i=r(8269),n=r(6563),a=e([i]);i=(a.then?(await a)():a)[0];const o=(0,n.n)([i.q3.AdditiveExpression,i.q3.MultiplicativeExpression,i.q3.ExponentiationExpression,i.q3.AssignmentExpression,i.q3.BitwiseAndExpression,i.q3.BitwiseOrExpression,i.q3.BitwiseXorExpression,i.q3.EqualityExpression,i.q3.InequalityExpression,i.q3.AndExpression,i.q3.OrExpression,i.q3.ShiftExpression]);r.d(t,["D",0,o]),s()}catch(e){s(e)}})},6543(e,t,r){r.a(e,async(e,s)=>{try{var i=r(8269),n=r(6563),a=e([i]);i=(a.then?(await a)():a)[0];const o=(0,n.n)([i.q3.FunctionCallExpression,i.q3.IndexAccessExpression,i.q3.MemberAccessExpression]);r.d(t,["Y",0,o]),s()}catch(e){s(e)}})},7540(e,t,r){r.a(e,async(e,s)=>{try{var i=r(8269),n=r(6563),a=e([i]);i=(a.then?(await a)():a)[0];const o=(0,n.n)([i.hP.MultiLineComment,i.hP.MultiLineNatSpecComment]),c=(0,n.n)([i.hP.MultiLineComment,i.hP.MultiLineNatSpecComment,i.hP.SingleLineComment,i.hP.SingleLineNatSpecComment]);r.d(t,["C",0,c,"t",0,o]),s()}catch(e){s(e)}})},4079(e,t,r){function s(e,t){return"label"===e.type&&e.label===t}r.d(t,{J:()=>s})},9060(e,t,r){function s(e){return e.loc.start}function i(e){return e.loc.end}r.d(t,{I:()=>i,z:()=>s})},3111(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{k:()=>l});var i=r(8269),n=r(8388),a=e([i,n]);[i,n]=a.then?(await a)():a;const o=new Set(["external","internal","public","private"]),c=new Set(["pure","constant","payable","view"]);function l(e,t){const r=e instanceof n.x,s=t instanceof n.x;return r&&s?o.has(e.value)?-1:o.has(t.value)?1:c.has(e.value)?-1:c.has(t.value)?1:0:r?-1:s?1:e.kind===i.q3.OverrideSpecifier&&t.kind===i.q3.ModifierInvocation?-1:t.kind===i.q3.OverrideSpecifier&&e.kind===i.q3.ModifierInvocation?1:0}s()}catch(h){s(h)}})},466(e,t,r){r.d(t,["A",0,function(e,t,r){return e.node.print(r,e,t)}])},3927(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{A:()=>l});var i=r(8683),n=r(4254),a=r(9060),o=r(6811),c=e([i,n,o]);function l(e,t){const{parser:r,parseOutput:s}=(0,n.C)(e,t);t.compiler=r.languageVersion;const c=[],l=new o.M(new i.Mk(s.tree.asNonterminalNode()),{offsets:new Map,comments:c,options:t});return l.comments=c.sort((e,t)=>(0,a.z)(e)-(0,a.z)(t)),l}[i,n,o]=c.then?(await c)():c,s()}catch(h){s(h)}})},7870(e,t,r){e.exports=r.p+"95c706811bfc300bf7ed.wasm"},1112(e,t,r){e.exports=r.p+"591f276013d241f7a687.wasm"},9719(e,t,r){e.exports=r.p+"d64a7cadbeb47f3131fc.wasm"},450(e,t,r){e.exports=r.p+"1bd393b18828da92fe7e.wasm"},838(e){e.exports=Object("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{}).prettier},9031(e){e.exports=import("fs/promises")},2242(e,t,r){r.d(t,{cA:()=>a,NS:()=>l,vF:()=>f,bX:()=>m,Uo:()=>y});var s=r(5593);let i=[],n=[];const a={getEnvironment:()=>i,getArguments:()=>n,initialCwd:()=>"/"},o=Symbol.dispose??Symbol.for("dispose");class c extends Error{exitError=!0;code;constructor(e){super("Component exited "+(0===e?"successfully":"with error")),this.code=e}}const l={exit(e){throw new c("err"===e.tag?1:0)},exitWithCode(e){throw new c(e)}},h=(0,s.XK)({blockingRead:e=>new Uint8Array(0),subscribe:()=>(0,s._K)(),[o](){}}),u=new TextDecoder,d=(0,s.Cs)({write(e){10==e.at(-1)&&(e=e.subarray(0,-1)),console.log(u.decode(e))},blockingFlush(){},[o](){}}),p=(0,s.Cs)({write(e){10==e.at(-1)&&(e=e.subarray(0,-1)),console.error(u.decode(e))},blockingFlush(){},[o](){}}),m={getStdin:()=>h},y={getStdout:()=>d},f={getStderr:()=>p};class g{}new g,new g,new class{}},3305(e,t,r){r.d(t,{jw:()=>y,gK:()=>f});var s=r(5593);const i={seconds:0n,nanoseconds:0};function n(e){let t;if("number"==typeof e)t=e;else{if("bigint"!=typeof e)throw new TypeError(`unexpected non-numeric type: ${e}`);t=Number(e)}if(t>Number.MAX_SAFE_INTEGER)throw new TypeError(`excessively large number: ${t}`);return t}function a(e,t,r){"."===t&&m&&u(m[0])===e&&(t="/").startsWith("/")&&"/"!==t&&(t=t.slice(1));let s,i=e;do{if(!i?.dir)throw"not-directory";s=t.indexOf("/");const e=-1===s?t:t.slice(0,s);if(".."===e)throw"no-entry";"."===e||""===e||(i=!i.dir[e]&&r.create?i.dir[e]=r.directory?{dir:{}}:{source:new Uint8Array([])}:i.dir[e]),t=t.slice(s+1)}while(-1!==s);if(!i)throw"no-entry";return i}function o(e){return"string"==typeof e.source&&(e.source=(new TextEncoder).encode(e.source)),e.source}class c{idx=0;entries=[];static _create(e){const t=new c;return t.entries=e,t}readDirectoryEntry(){if(this.idx===this.entries.length)return;const[e,t]=this.entries[this.idx];return this.idx+=1,{name:e,type:t.dir?"directory":"regular-file"}}}const l=c._create;delete c._create;class h{#e;#t;#r=0;_getEntry(e){return e.#t}static _create(e,t){const r=new h;return t?r.#e=e:r.#t=e,r}readViaStream(e){const t=o(this.#t);let r=Number(e);return(0,s.XK)({blockingRead(e){if(r===t.byteLength)throw{tag:"closed"};const s=t.slice(r,r+Number(e));return r+=s.byteLength,s}})}writeViaStream(e){const t=this.#t;let r=Number(e);return(0,s.Cs)({write(e){const s=t.source,i=new Uint8Array(e.byteLength+s.byteLength);i.set(s,0),i.set(e,r),r+=e.byteLength,t.source=i}})}appendViaStream(){return console.log("[filesystem] APPEND STREAM"),{}}advise(e,t,r){console.log("[filesystem] ADVISE",e,t,r)}syncData(){console.log("[filesystem] SYNC DATA")}getFlags(){return console.log("[filesystem] FLAGS FOR"),{}}getType(){return this.#e?"fifo":this.#t.dir?"directory":this.#t.source?"regular-file":"unknown"}setSize(e){console.log("[filesystem] SET SIZE",e)}setTimes(e,t){console.log("[filesystem] SET TIMES",e,t)}read(e,t){const r=o(this.#t),s=n(t),i=n(e);return[r.slice(s,s+i),s+i>=r.byteLength]}write(e,t){if(0n!==t)throw"invalid-seek";return this.#t.source=e,BigInt(e.byteLength)}readDirectory(){if(!this.#t?.dir)throw"bad-descriptor";return l(Object.entries(this.#t.dir).sort(([e],[t])=>e>t?1:-1))}sync(){console.log("[filesystem] SYNC")}createDirectoryAt(e){if(a(this.#t,e,{create:!0,directory:!0}).source)throw"exist"}stat(){let e="unknown",t=0n;if(this.#t.source){e="regular-file";const r=o(this.#t);t=BigInt(r.byteLength)}else this.#t.dir&&(e="directory");return{type:e,linkCount:0n,size:t,dataAccessTimestamp:i,dataModificationTimestamp:i,statusChangeTimestamp:i}}statAt(e,t){const r=a(this.#t,t,{create:!1,directory:!1});let s="unknown",n=0n;if(r.source){s="regular-file";const e=o(r);n=BigInt(e.byteLength)}else r.dir&&(s="directory");return{type:s,linkCount:0n,size:n,dataAccessTimestamp:i,dataModificationTimestamp:i,statusChangeTimestamp:i}}setTimesAt(){console.log("[filesystem] SET TIMES AT")}linkAt(){console.log("[filesystem] LINK AT")}openAt(e,t,r,s){const i=a(this.#t,t,r);return d(i)}readlinkAt(e){return console.log("[filesystem] READLINK AT"),""}removeDirectoryAt(){console.log("[filesystem] REMOVE DIR AT")}renameAt(){console.log("[filesystem] RENAME AT")}symlinkAt(){console.log("[filesystem] SYMLINK AT")}unlinkFileAt(){console.log("[filesystem] UNLINK FILE AT")}isSameObject(e){return e===this}metadataHash(){let e=0n;return e+=BigInt(this.#r),{upper:e,lower:0n}}metadataHashAt(e,t){return this.metadataHash()}}const u=h.prototype._getEntry;delete h.prototype._getEntry;const d=h._create;delete h._create;let p=[[d({dir:{}}),"/"]],m=p[0];const y={getDirectories:()=>p},f={Descriptor:h,DirectoryEntryStream:c,filesystemErrorCode:e=>{let t;return"payload"in e?t=e.payload:"message"in e&&(t=e.message),function(e){switch(e.code){case"EACCES":return"access";case"EAGAIN":case"EWOULDBLOCK":return"would-block";case"EALREADY":return"already";case"EBADF":return"bad-descriptor";case"EBUSY":return"busy";case"EDEADLK":return"deadlock";case"EDQUOT":return"quota";case"EEXIST":return"exist";case"EFBIG":return"file-too-large";case"EILSEQ":return"illegal-byte-sequence";case"EINPROGRESS":return"in-progress";case"EINTR":return"interrupted";case"EINVAL":return"invalid";case"EIO":return"io";case"EISDIR":return"is-directory";case"ELOOP":return"loop";case"EMLINK":return"too-many-links";case"EMSGSIZE":return"message-size";case"ENAMETOOLONG":return"name-too-long";case"ENODEV":return"no-device";case"ENOENT":return"no-entry";case"ENOLCK":return"no-lock";case"ENOMEM":return"insufficient-memory";case"ENOSPC":return"insufficient-space";case"ENOTDIR":case"ERR_FS_EISDIR":return"not-directory";case"ENOTEMPTY":return"not-empty";case"ENOTRECOVERABLE":return"not-recoverable";case"ENOTSUP":return"unsupported";case"ENOTTY":return"no-tty";case-4094:case"ENXIO":return"no-such-device";case"EOVERFLOW":return"overflow";case"EPERM":return"not-permitted";case"EPIPE":return"pipe";case"EROFS":return"read-only";case"ESPIPE":return"invalid-seek";case"ETXTBSY":return"text-file-busy";case"EXDEV":return"cross-device";case"UNKNOWN":if(-4094===e.errno)return"no-such-device";throw e;default:throw e}}(t)}}},5593(e,t,r){let s=0;const i=Symbol.dispose||Symbol.for("dispose");class n extends Error{toDebugString(){return this.message}}class a{id;handler;static _create(e){const t=new a;return e||console.trace("no handler"),t.id=++s,t.handler=e,t}read(e){return this.handler.read?this.handler.read(e):this.handler.blockingRead.call(this,e)}blockingRead(e){return this.handler.blockingRead.call(this,e)}skip(e){if(this.handler.skip)return this.handler.skip.call(this,e);if(this.handler.read){const t=this.handler.read.call(this,e);return BigInt(t.byteLength)}return this.blockingSkip.call(this,e)}blockingSkip(e){if(this.handler.blockingSkip)return this.handler.blockingSkip.call(this,e);const t=this.handler.blockingRead.call(this,e);return BigInt(t.byteLength)}subscribe(){return this.handler.subscribe?this.handler.subscribe():new d}[i](){this.handler.drop&&this.handler.drop.call(this)}}const o=a._create;delete a._create;class c{id;open;handler;static _create(e){const t=new c;return e||console.trace("no handler"),t.id=++s,t.open=!0,t.handler=e,t}checkWrite(){return this.open?this.handler.checkWrite?this.handler.checkWrite.call(this):1000000n:0n}write(e){this.handler.write.call(this,e)}blockingWriteAndFlush(e){if(this.handler.blockingWriteAndFlush)return this.handler.blockingWriteAndFlush.call(this,e);this.handler.write.call(this,e)}flush(){this.handler.flush&&this.handler.flush.call(this)}blockingFlush(){this.open=!0,this.handler.blockingFlush&&this.handler.blockingFlush.call(this)}writeZeroes(e){this.write.call(this,new Uint8Array(Number(e)))}blockingWriteZeroesAndFlush(e){this.blockingWriteAndFlush.call(this,new Uint8Array(Number(e)))}splice(e,t){const r=Math.min(Number(t),Number(this.checkWrite.call(this))),s=e.read(BigInt(r));return this.write.call(this,s),BigInt(s.byteLength)}blockingSplice(e,t){return console.log(`[streams] Blocking splice ${this.id}`),0n}subscribe(){return this.handler.subscribe?this.handler.subscribe():new d}[i](){}}const l=c._create;delete c._create;const h={Error:n},u={InputStream:a,OutputStream:c};class d{#s=!1;#i=null;static _create(e){const t=new d;return e?t.#i=e.then(()=>{t.#s=!0},()=>{t.#s=!0}):t.#s=!0,t}ready(){return this.#s}block(){return this.#s?Promise.resolve():this.#i||Promise.resolve()}[i](){this.#i=null}}const p=d._create;delete d._create,r.d(t,["Cs",0,l,"XK",0,o,"_K",0,p,"oS",0,u,"z3",0,h])},1290(e,t,r){const s=65536;let i,n;const a={getRandomBytes(e){const t=new Uint8Array(Number(e));if(e>s)for(var r=0;r<e;r+=s)crypto.getRandomValues(t.subarray(r,r+s));else crypto.getRandomValues(t);return t},getRandomU64:()=>crypto.getRandomValues(new BigUint64Array(1))[0],insecureRandom:()=>(void 0!==i&&void 0!==n||(i=a.getRandomU64(),n=a.getRandomU64()),[i,n])};r.d(t,["yT",0,a])},8683(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{$ge:()=>i.$ge,$rk:()=>i.$rk,BIR:()=>i.BIR,BdE:()=>i.BdE,Cp:()=>i.Cp,D7j:()=>i.D7j,Ddx:()=>i.Ddx,Evn:()=>i.Evn,GoE:()=>i.GoE,Gpj:()=>i.Gpj,HdO:()=>i.HdO,HwF:()=>i.HwF,IAp:()=>i.IAp,Iy0:()=>i.Iy0,J4F:()=>i.J4F,JOu:()=>i.JOu,JXG:()=>i.JXG,Jxp:()=>i.Jxp,KO$:()=>i.KO$,Ke0:()=>i.Ke0,KfV:()=>i.KfV,Kx2:()=>i.Kx2,Kyi:()=>i.Kyi,LWj:()=>i.LWj,Mk:()=>i.Mk,Mmb:()=>i.Mmb,N$9:()=>i.N$9,NM3:()=>i.NM3,Nv1:()=>i.Nv1,OKT:()=>i.OKT,OXe:()=>i.OXe,P3w:()=>i.P3w,P4c:()=>i.P4c,Q2m:()=>i.Q2m,Qrp:()=>i.Qrp,Qy6:()=>i.Qy6,RCX:()=>i.RCX,RKz:()=>i.RKz,Rbz:()=>i.Rbz,RrN:()=>i.RrN,TZT:()=>i.TZT,V34:()=>i.V34,VG:()=>i.VG,VZT:()=>i.VZT,Wgi:()=>i.Wgi,XwB:()=>i.XwB,Ya3:()=>i.Ya3,ZCC:()=>i.ZCC,ZOq:()=>i.ZOq,Zd1:()=>i.Zd1,Zeo:()=>i.Zeo,Zm3:()=>i.Zm3,_U4:()=>i._U4,_Y1:()=>i._Y1,a1h:()=>i.a1h,aez:()=>i.aez,bUO:()=>i.bUO,bbA:()=>i.bbA,chs:()=>i.chs,d6v:()=>i.d6v,dMb:()=>i.dMb,dst:()=>i.dst,eBw:()=>i.eBw,ePz:()=>i.ePz,em6:()=>i.em6,emu:()=>i.emu,fOI:()=>i.fOI,fhq:()=>i.fhq,gH0:()=>i.gH0,gHf:()=>i.gHf,gPA:()=>i.gPA,grs:()=>i.grs,h7v:()=>i.h7v,hXl:()=>i.hXl,i7X:()=>i.i7X,iRq:()=>i.iRq,iiK:()=>i.iiK,jAT:()=>i.jAT,jqW:()=>i.jqW,jy0:()=>i.jy0,jy1:()=>i.jy1,kAK:()=>i.kAK,lBC:()=>i.lBC,nWe:()=>i.nWe,oMV:()=>i.oMV,oVh:()=>i.oVh,pMj:()=>i.pMj,pOL:()=>i.pOL,pT:()=>i.pT,peC:()=>i.peC,qV6:()=>i.qV6,rNJ:()=>i.rNJ,s2A:()=>i.s2A,tt2:()=>i.tt2,u6S:()=>i.u6S,ulb:()=>i.ulb,unr:()=>i.unr,vSB:()=>i.vSB,wyV:()=>i.wyV,x7K:()=>i.x7K,xu3:()=>i.xu3,xvE:()=>i.xvE,yuy:()=>i.yuy,zFc:()=>i.zFc,zSR:()=>i.zSR,zac:()=>i.zac,zc0:()=>i.zc0,zxr:()=>i.zxr});var i=r(6045),n=e([i]),a=n.then?(await n)():n;i=a[0],s()}catch(e){s(e)}})},6045(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{$ge:()=>er,$rk:()=>ot,BIR:()=>p,BdE:()=>$e,Cp:()=>dr,D7j:()=>vt,Ddx:()=>ns,Evn:()=>ce,GoE:()=>d,Gpj:()=>Et,HdO:()=>Ee,HwF:()=>Re,IAp:()=>_e,Iy0:()=>he,J4F:()=>C,JOu:()=>A,JXG:()=>Me,Jxp:()=>Ue,KO$:()=>xr,Ke0:()=>v,KfV:()=>Oe,Kx2:()=>c,Kyi:()=>qr,LWj:()=>ur,Mk:()=>o,Mmb:()=>lt,N$9:()=>y,NM3:()=>kt,Nv1:()=>xt,OKT:()=>pt,OXe:()=>hr,P3w:()=>I,P4c:()=>Mr,Q2m:()=>bt,Qrp:()=>le,Qy6:()=>Ze,RCX:()=>S,RKz:()=>re,Rbz:()=>Fe,RrN:()=>f,TZT:()=>Ne,V34:()=>Je,VG:()=>Te,VZT:()=>At,Wgi:()=>P,XwB:()=>ze,Ya3:()=>l,ZCC:()=>me,ZOq:()=>L,Zd1:()=>st,Zeo:()=>Fr,Zm3:()=>Ye,_U4:()=>fe,_Y1:()=>He,a1h:()=>_t,aez:()=>de,bUO:()=>it,bbA:()=>St,chs:()=>Se,d6v:()=>Tt,dMb:()=>se,dst:()=>je,eBw:()=>oe,ePz:()=>T,em6:()=>J,emu:()=>Ke,fOI:()=>gt,fhq:()=>te,gH0:()=>at,gHf:()=>De,gPA:()=>ht,grs:()=>Be,h7v:()=>wr,hXl:()=>u,i7X:()=>hs,iRq:()=>ye,iiK:()=>Le,jAT:()=>h,jqW:()=>ct,jy0:()=>Ge,jy1:()=>rt,kAK:()=>Ie,lBC:()=>F,nWe:()=>We,oMV:()=>B,oVh:()=>R,pMj:()=>m,pOL:()=>Rt,pT:()=>H,peC:()=>ve,qV6:()=>g,rNJ:()=>b,s2A:()=>V,tt2:()=>Pe,u6S:()=>qe,ulb:()=>j,unr:()=>G,vSB:()=>we,wyV:()=>z,x7K:()=>ke,xu3:()=>yt,xvE:()=>be,yuy:()=>N,zFc:()=>Q,zSR:()=>Ve,zac:()=>O,zc0:()=>Xe,zxr:()=>$});var i=r(1901),n=r(8269),a=e([i,n]);[i,n]=a.then?(await a)():a;class o{constructor(e){this.cst=e,this.fetch=us(()=>{const[e]=i.Rj.Selectors.sequence(this.cst);return{members:new vr(e)}}),ds(this.cst.kind,n.q3.SourceUnit)}get members(){return this.fetch().members}}class c{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{pragmaKeyword:e,pragma:new Lt(t),semicolon:r}}),ds(this.cst.kind,n.q3.PragmaDirective)}get pragmaKeyword(){return this.fetch().pragmaKeyword}get pragma(){return this.fetch().pragma}get semicolon(){return this.fetch().semicolon}}class l{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{abicoderKeyword:e,version:new Kt(t)}}),ds(this.cst.kind,n.q3.AbicoderPragma)}get abicoderKeyword(){return this.fetch().abicoderKeyword}get version(){return this.fetch().version}}class h{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{experimentalKeyword:e,feature:new It(t)}}),ds(this.cst.kind,n.q3.ExperimentalPragma)}get experimentalKeyword(){return this.fetch().experimentalKeyword}get feature(){return this.fetch().feature}}class u{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{solidityKeyword:e,sets:new Vr(t)}}),ds(this.cst.kind,n.q3.VersionPragma)}get solidityKeyword(){return this.fetch().solidityKeyword}get sets(){return this.fetch().sets}}class d{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{start:new Dt(e),minus:t,end:new Dt(r)}}),ds(this.cst.kind,n.q3.VersionRange)}get start(){return this.fetch().start}get minus(){return this.fetch().minus}get end(){return this.fetch().end}}class p{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{operator:void 0===e?void 0:new Ot(e),literal:new Dt(t)}}),ds(this.cst.kind,n.q3.VersionTerm)}get operator(){return this.fetch().operator}get literal(){return this.fetch().literal}}class m{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{importKeyword:e,clause:new Pt(t),semicolon:r}}),ds(this.cst.kind,n.q3.ImportDirective)}get importKeyword(){return this.fetch().importKeyword}get clause(){return this.fetch().clause}get semicolon(){return this.fetch().semicolon}}class y{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{path:new ur(e),alias:void 0===t?void 0:new x(t)}}),ds(this.cst.kind,n.q3.PathImport)}get path(){return this.fetch().path}get alias(){return this.fetch().alias}}class f{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s]=i.Rj.Selectors.sequence(this.cst);return{asterisk:e,alias:new x(t),fromKeyword:r,path:new ur(s)}}),ds(this.cst.kind,n.q3.NamedImport)}get asterisk(){return this.fetch().asterisk}get alias(){return this.fetch().alias}get fromKeyword(){return this.fetch().fromKeyword}get path(){return this.fetch().path}}class g{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{openBrace:e,symbols:new Br(t),closeBrace:r,fromKeyword:s,path:new ur(n)}}),ds(this.cst.kind,n.q3.ImportDeconstruction)}get openBrace(){return this.fetch().openBrace}get symbols(){return this.fetch().symbols}get closeBrace(){return this.fetch().closeBrace}get fromKeyword(){return this.fetch().fromKeyword}get path(){return this.fetch().path}}class w{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{name:e,alias:void 0===t?void 0:new x(t)}}),ds(this.cst.kind,n.q3.ImportDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}}class x{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:e,identifier:t}}),ds(this.cst.kind,n.q3.ImportAlias)}get asKeyword(){return this.fetch().asKeyword}get identifier(){return this.fetch().identifier}}class v{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{usingKeyword:e,clause:new qt(t),forKeyword:r,target:new Ft(s),globalKeyword:void 0===n?void 0:n,semicolon:a}}),ds(this.cst.kind,n.q3.UsingDirective)}get usingKeyword(){return this.fetch().usingKeyword}get clause(){return this.fetch().clause}get forKeyword(){return this.fetch().forKeyword}get target(){return this.fetch().target}get globalKeyword(){return this.fetch().globalKeyword}get semicolon(){return this.fetch().semicolon}}class b{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:e,symbols:new Hr(t),closeBrace:r}}),ds(this.cst.kind,n.q3.UsingDeconstruction)}get openBrace(){return this.fetch().openBrace}get symbols(){return this.fetch().symbols}get closeBrace(){return this.fetch().closeBrace}}class _{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{name:new ns(e),alias:void 0===t?void 0:new E(t)}}),ds(this.cst.kind,n.q3.UsingDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}}class E{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{asKeyword:e,operator:new Mt(t)}}),ds(this.cst.kind,n.q3.UsingAlias)}get asKeyword(){return this.fetch().asKeyword}get operator(){return this.fetch().operator}}class T{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{abstractKeyword:void 0===e?void 0:e,contractKeyword:t,name:r,specifiers:new _r(s),openBrace:n,members:new Er(a),closeBrace:o}}),ds(this.cst.kind,n.q3.ContractDefinition)}get abstractKeyword(){return this.fetch().abstractKeyword}get contractKeyword(){return this.fetch().contractKeyword}get name(){return this.fetch().name}get specifiers(){return this.fetch().specifiers}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class S{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{isKeyword:e,types:new $r(t)}}),ds(this.cst.kind,n.q3.InheritanceSpecifier)}get isKeyword(){return this.fetch().isKeyword}get types(){return this.fetch().types}}class k{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{typeName:new ns(e),arguments:void 0===t?void 0:new cr(t)}}),ds(this.cst.kind,n.q3.InheritanceType)}get typeName(){return this.fetch().typeName}get arguments(){return this.fetch().arguments}}class R{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{layoutKeyword:e,atKeyword:t,expression:new or(r)}}),ds(this.cst.kind,n.q3.StorageLayoutSpecifier)}get layoutKeyword(){return this.fetch().layoutKeyword}get atKeyword(){return this.fetch().atKeyword}get expression(){return this.fetch().expression}}class A{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{interfaceKeyword:e,name:t,inheritance:void 0===r?void 0:new S(r),openBrace:s,members:new Tr(n),closeBrace:a}}),ds(this.cst.kind,n.q3.InterfaceDefinition)}get interfaceKeyword(){return this.fetch().interfaceKeyword}get name(){return this.fetch().name}get inheritance(){return this.fetch().inheritance}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class C{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{libraryKeyword:e,name:t,openBrace:r,members:new Sr(s),closeBrace:n}}),ds(this.cst.kind,n.q3.LibraryDefinition)}get libraryKeyword(){return this.fetch().libraryKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class L{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{structKeyword:e,name:t,openBrace:r,members:new kr(s),closeBrace:n}}),ds(this.cst.kind,n.q3.StructDefinition)}get structKeyword(){return this.fetch().structKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class K{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qt(e),name:t,semicolon:r}}),ds(this.cst.kind,n.q3.StructMember)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}get semicolon(){return this.fetch().semicolon}}class I{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{enumKeyword:e,name:t,openBrace:r,members:new Gr(s),closeBrace:n}}),ds(this.cst.kind,n.q3.EnumDefinition)}get enumKeyword(){return this.fetch().enumKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}}class N{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qt(e),constantKeyword:t,name:r,equal:s,value:new or(n),semicolon:a}}),ds(this.cst.kind,n.q3.ConstantDefinition)}get typeName(){return this.fetch().typeName}get constantKeyword(){return this.fetch().constantKeyword}get name(){return this.fetch().name}get equal(){return this.fetch().equal}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class O{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qt(e),attributes:new Rr(t),name:r,value:void 0===s?void 0:new D(s),semicolon:n}}),ds(this.cst.kind,n.q3.StateVariableDefinition)}get typeName(){return this.fetch().typeName}get attributes(){return this.fetch().attributes}get name(){return this.fetch().name}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class D{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{equal:e,value:new or(t)}}),ds(this.cst.kind,n.q3.StateVariableDefinitionValue)}get equal(){return this.fetch().equal}get value(){return this.fetch().value}}class P{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:e,name:new jt(t),parameters:new q(r),attributes:new Ar(s),returns:void 0===n?void 0:new Y(n),body:new Ht(a)}}),ds(this.cst.kind,n.q3.FunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class q{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:e,parameters:new zr(t),closeParen:r}}),ds(this.cst.kind,n.q3.ParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class M{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qt(e),storageLocation:void 0===t?void 0:new ir(t),name:void 0===r?void 0:r}}),ds(this.cst.kind,n.q3.Parameter)}get typeName(){return this.fetch().typeName}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class F{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{overrideKeyword:e,overridden:void 0===t?void 0:new U(t)}}),ds(this.cst.kind,n.q3.OverrideSpecifier)}get overrideKeyword(){return this.fetch().overrideKeyword}get overridden(){return this.fetch().overridden}}class U{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:e,paths:new Wr(t),closeParen:r}}),ds(this.cst.kind,n.q3.OverridePathsDeclaration)}get openParen(){return this.fetch().openParen}get paths(){return this.fetch().paths}get closeParen(){return this.fetch().closeParen}}class Y{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{returnsKeyword:e,variables:new q(t)}}),ds(this.cst.kind,n.q3.ReturnsDeclaration)}get returnsKeyword(){return this.fetch().returnsKeyword}get variables(){return this.fetch().variables}}class V{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s]=i.Rj.Selectors.sequence(this.cst);return{constructorKeyword:e,parameters:new q(t),attributes:new Cr(r),body:new oe(s)}}),ds(this.cst.kind,n.q3.ConstructorDefinition)}get constructorKeyword(){return this.fetch().constructorKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class j{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:e,parameters:new q(t),attributes:new Lr(r),body:new Ht(s)}}),ds(this.cst.kind,n.q3.UnnamedFunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class B{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{fallbackKeyword:e,parameters:new q(t),attributes:new Kr(r),returns:void 0===s?void 0:new Y(s),body:new Ht(n)}}),ds(this.cst.kind,n.q3.FallbackFunctionDefinition)}get fallbackKeyword(){return this.fetch().fallbackKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class H{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s]=i.Rj.Selectors.sequence(this.cst);return{receiveKeyword:e,parameters:new q(t),attributes:new Ir(r),body:new Ht(s)}}),ds(this.cst.kind,n.q3.ReceiveFunctionDefinition)}get receiveKeyword(){return this.fetch().receiveKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class ${constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{modifierKeyword:e,name:t,parameters:void 0===r?void 0:new q(r),attributes:new Nr(s),body:new Ht(n)}}),ds(this.cst.kind,n.q3.ModifierDefinition)}get modifierKeyword(){return this.fetch().modifierKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}}class G{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{name:new ns(e),arguments:void 0===t?void 0:new cr(t)}}),ds(this.cst.kind,n.q3.ModifierInvocation)}get name(){return this.fetch().name}get arguments(){return this.fetch().arguments}}class z{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{eventKeyword:e,name:t,parameters:new W(r),anonymousKeyword:void 0===s?void 0:s,semicolon:n}}),ds(this.cst.kind,n.q3.EventDefinition)}get eventKeyword(){return this.fetch().eventKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get anonymousKeyword(){return this.fetch().anonymousKeyword}get semicolon(){return this.fetch().semicolon}}class W{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:e,parameters:new Xr(t),closeParen:r}}),ds(this.cst.kind,n.q3.EventParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class X{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qt(e),indexedKeyword:void 0===t?void 0:t,name:void 0===r?void 0:r}}),ds(this.cst.kind,n.q3.EventParameter)}get typeName(){return this.fetch().typeName}get indexedKeyword(){return this.fetch().indexedKeyword}get name(){return this.fetch().name}}class Q{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{typeKeyword:e,name:t,isKeyword:r,valueType:new er(s),semicolon:n}}),ds(this.cst.kind,n.q3.UserDefinedValueTypeDefinition)}get typeKeyword(){return this.fetch().typeKeyword}get name(){return this.fetch().name}get isKeyword(){return this.fetch().isKeyword}get valueType(){return this.fetch().valueType}get semicolon(){return this.fetch().semicolon}}class J{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s]=i.Rj.Selectors.sequence(this.cst);return{errorKeyword:e,name:t,members:new Z(r),semicolon:s}}),ds(this.cst.kind,n.q3.ErrorDefinition)}get errorKeyword(){return this.fetch().errorKeyword}get name(){return this.fetch().name}get members(){return this.fetch().members}get semicolon(){return this.fetch().semicolon}}class Z{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:e,parameters:new Qr(t),closeParen:r}}),ds(this.cst.kind,n.q3.ErrorParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class ee{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qt(e),name:void 0===t?void 0:t}}),ds(this.cst.kind,n.q3.ErrorParameter)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}}class te{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new Qt(e),openBracket:t,index:void 0===r?void 0:new or(r),closeBracket:s}}),ds(this.cst.kind,n.q3.ArrayTypeName)}get operand(){return this.fetch().operand}get openBracket(){return this.fetch().openBracket}get index(){return this.fetch().index}get closeBracket(){return this.fetch().closeBracket}}class re{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:e,parameters:new q(t),attributes:new Or(r),returns:void 0===s?void 0:new Y(s)}}),ds(this.cst.kind,n.q3.FunctionType)}get functionKeyword(){return this.fetch().functionKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}}class se{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{mappingKeyword:e,openParen:t,keyType:new ie(r),equalGreaterThan:s,valueType:new ne(n),closeParen:a}}),ds(this.cst.kind,n.q3.MappingType)}get mappingKeyword(){return this.fetch().mappingKeyword}get openParen(){return this.fetch().openParen}get keyType(){return this.fetch().keyType}get equalGreaterThan(){return this.fetch().equalGreaterThan}get valueType(){return this.fetch().valueType}get closeParen(){return this.fetch().closeParen}}class ie{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{keyType:new Zt(e),name:void 0===t?void 0:t}}),ds(this.cst.kind,n.q3.MappingKey)}get keyType(){return this.fetch().keyType}get name(){return this.fetch().name}}class ne{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qt(e),name:void 0===t?void 0:t}}),ds(this.cst.kind,n.q3.MappingValue)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}}class ae{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{addressKeyword:e,payableKeyword:void 0===t?void 0:t}}),ds(this.cst.kind,n.q3.AddressType)}get addressKeyword(){return this.fetch().addressKeyword}get payableKeyword(){return this.fetch().payableKeyword}}class oe{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:e,statements:new Dr(t),closeBrace:r}}),ds(this.cst.kind,n.q3.Block)}get openBrace(){return this.fetch().openBrace}get statements(){return this.fetch().statements}get closeBrace(){return this.fetch().closeBrace}}class ce{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{uncheckedKeyword:e,block:new oe(t)}}),ds(this.cst.kind,n.q3.UncheckedBlock)}get uncheckedKeyword(){return this.fetch().uncheckedKeyword}get block(){return this.fetch().block}}class le{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{expression:new or(e),semicolon:t}}),ds(this.cst.kind,n.q3.ExpressionStatement)}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class he{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s]=i.Rj.Selectors.sequence(this.cst);return{assemblyKeyword:e,label:void 0===t?void 0:new ur(t),flags:void 0===r?void 0:new ue(r),body:new lt(s)}}),ds(this.cst.kind,n.q3.AssemblyStatement)}get assemblyKeyword(){return this.fetch().assemblyKeyword}get label(){return this.fetch().label}get flags(){return this.fetch().flags}get body(){return this.fetch().body}}class ue{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:e,flags:new Jr(t),closeParen:r}}),ds(this.cst.kind,n.q3.AssemblyFlagsDeclaration)}get openParen(){return this.fetch().openParen}get flags(){return this.fetch().flags}get closeParen(){return this.fetch().closeParen}}class de{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{varKeyword:void 0===e?void 0:e,openParen:t,elements:new Zr(r),closeParen:s,equal:n,expression:new or(a),semicolon:o}}),ds(this.cst.kind,n.q3.TupleDeconstructionStatement)}get varKeyword(){return this.fetch().varKeyword}get openParen(){return this.fetch().openParen}get elements(){return this.fetch().elements}get closeParen(){return this.fetch().closeParen}get equal(){return this.fetch().equal}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class pe{constructor(e){this.cst=e,this.fetch=us(()=>{const[e]=i.Rj.Selectors.sequence(this.cst);return{member:void 0===e?void 0:new rr(e)}}),ds(this.cst.kind,n.q3.TupleDeconstructionElement)}get member(){return this.fetch().member}}class me{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{typeName:new Qt(e),storageLocation:void 0===t?void 0:new ir(t),name:r}}),ds(this.cst.kind,n.q3.TypedTupleMember)}get typeName(){return this.fetch().typeName}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class ye{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{storageLocation:void 0===e?void 0:new ir(e),name:t}}),ds(this.cst.kind,n.q3.UntypedTupleMember)}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}}class fe{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{variableType:new sr(e),storageLocation:void 0===t?void 0:new ir(t),name:r,value:void 0===s?void 0:new ge(s),semicolon:n}}),ds(this.cst.kind,n.q3.VariableDeclarationStatement)}get variableType(){return this.fetch().variableType}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}}class ge{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{equal:e,expression:new or(t)}}),ds(this.cst.kind,n.q3.VariableDeclarationValue)}get equal(){return this.fetch().equal}get expression(){return this.fetch().expression}}class we{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n,a]=i.Rj.Selectors.sequence(this.cst);return{ifKeyword:e,openParen:t,condition:new or(r),closeParen:s,body:new tr(n),elseBranch:void 0===a?void 0:new xe(a)}}),ds(this.cst.kind,n.q3.IfStatement)}get ifKeyword(){return this.fetch().ifKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}get elseBranch(){return this.fetch().elseBranch}}class xe{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{elseKeyword:e,body:new tr(t)}}),ds(this.cst.kind,n.q3.ElseBranch)}get elseKeyword(){return this.fetch().elseKeyword}get body(){return this.fetch().body}}class ve{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{forKeyword:e,openParen:t,initialization:new nr(r),condition:new ar(s),iterator:void 0===n?void 0:new or(n),closeParen:a,body:new tr(o)}}),ds(this.cst.kind,n.q3.ForStatement)}get forKeyword(){return this.fetch().forKeyword}get openParen(){return this.fetch().openParen}get initialization(){return this.fetch().initialization}get condition(){return this.fetch().condition}get iterator(){return this.fetch().iterator}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}}class be{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{whileKeyword:e,openParen:t,condition:new or(r),closeParen:s,body:new tr(n)}}),ds(this.cst.kind,n.q3.WhileStatement)}get whileKeyword(){return this.fetch().whileKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}}class _e{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n,a,o]=i.Rj.Selectors.sequence(this.cst);return{doKeyword:e,body:new tr(t),whileKeyword:r,openParen:s,condition:new or(n),closeParen:a,semicolon:o}}),ds(this.cst.kind,n.q3.DoWhileStatement)}get doKeyword(){return this.fetch().doKeyword}get body(){return this.fetch().body}get whileKeyword(){return this.fetch().whileKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get semicolon(){return this.fetch().semicolon}}class Ee{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:e,semicolon:t}}),ds(this.cst.kind,n.q3.ContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}get semicolon(){return this.fetch().semicolon}}class Te{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:e,semicolon:t}}),ds(this.cst.kind,n.q3.BreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}get semicolon(){return this.fetch().semicolon}}class Se{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{returnKeyword:e,expression:void 0===t?void 0:new or(t),semicolon:r}}),ds(this.cst.kind,n.q3.ReturnStatement)}get returnKeyword(){return this.fetch().returnKeyword}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}}class ke{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s]=i.Rj.Selectors.sequence(this.cst);return{emitKeyword:e,event:new ns(t),arguments:new cr(r),semicolon:s}}),ds(this.cst.kind,n.q3.EmitStatement)}get emitKeyword(){return this.fetch().emitKeyword}get event(){return this.fetch().event}get arguments(){return this.fetch().arguments}get semicolon(){return this.fetch().semicolon}}class Re{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{tryKeyword:e,expression:new or(t),returns:void 0===r?void 0:new Y(r),body:new oe(s),catchClauses:new Pr(n)}}),ds(this.cst.kind,n.q3.TryStatement)}get tryKeyword(){return this.fetch().tryKeyword}get expression(){return this.fetch().expression}get returns(){return this.fetch().returns}get body(){return this.fetch().body}get catchClauses(){return this.fetch().catchClauses}}class Ae{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{catchKeyword:e,error:void 0===t?void 0:new Ce(t),body:new oe(r)}}),ds(this.cst.kind,n.q3.CatchClause)}get catchKeyword(){return this.fetch().catchKeyword}get error(){return this.fetch().error}get body(){return this.fetch().body}}class Ce{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{name:void 0===e?void 0:e,parameters:new q(t)}}),ds(this.cst.kind,n.q3.CatchClauseError)}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}}class Le{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s]=i.Rj.Selectors.sequence(this.cst);return{revertKeyword:e,error:new ns(t),arguments:new cr(r),semicolon:s}}),ds(this.cst.kind,n.q3.RevertStatement)}get revertKeyword(){return this.fetch().revertKeyword}get error(){return this.fetch().error}get arguments(){return this.fetch().arguments}get semicolon(){return this.fetch().semicolon}}class Ke{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{throwKeyword:e,semicolon:t}}),ds(this.cst.kind,n.q3.ThrowStatement)}get throwKeyword(){return this.fetch().throwKeyword}get semicolon(){return this.fetch().semicolon}}class Ie{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(e),operator:t,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.AssignmentExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ne{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(e),questionMark:t,trueExpression:new or(r),colon:s,falseExpression:new or(n)}}),ds(this.cst.kind,n.q3.ConditionalExpression)}get operand(){return this.fetch().operand}get questionMark(){return this.fetch().questionMark}get trueExpression(){return this.fetch().trueExpression}get colon(){return this.fetch().colon}get falseExpression(){return this.fetch().falseExpression}}class Oe{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(e),operator:t,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.OrExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class De{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(e),operator:t,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.AndExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Pe{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(e),operator:t,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.EqualityExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class qe{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(e),operator:t,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.InequalityExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Me{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(e),operator:t,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.BitwiseOrExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Fe{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(e),operator:t,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.BitwiseXorExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ue{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(e),operator:t,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.BitwiseAndExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ye{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(e),operator:t,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.ShiftExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Ve{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(e),operator:t,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.AdditiveExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class je{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(e),operator:t,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.MultiplicativeExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class Be{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{leftOperand:new or(e),operator:t,rightOperand:new or(r)}}),ds(this.cst.kind,n.q3.ExponentiationExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}}class He{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(e),operator:t}}),ds(this.cst.kind,n.q3.PostfixExpression)}get operand(){return this.fetch().operand}get operator(){return this.fetch().operator}}class $e{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{operator:e,operand:new or(t)}}),ds(this.cst.kind,n.q3.PrefixExpression)}get operator(){return this.fetch().operator}get operand(){return this.fetch().operand}}class Ge{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(e),arguments:new cr(t)}}),ds(this.cst.kind,n.q3.FunctionCallExpression)}get operand(){return this.fetch().operand}get arguments(){return this.fetch().arguments}}class ze{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(e),openBrace:t,options:new rs(r),closeBrace:s}}),ds(this.cst.kind,n.q3.CallOptionsExpression)}get operand(){return this.fetch().operand}get openBrace(){return this.fetch().openBrace}get options(){return this.fetch().options}get closeBrace(){return this.fetch().closeBrace}}class We{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(e),period:t,member:r}}),ds(this.cst.kind,n.q3.MemberAccessExpression)}get operand(){return this.fetch().operand}get period(){return this.fetch().period}get member(){return this.fetch().member}}class Xe{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{operand:new or(e),openBracket:t,start:void 0===r?void 0:new or(r),end:void 0===s?void 0:new Qe(s),closeBracket:n}}),ds(this.cst.kind,n.q3.IndexAccessExpression)}get operand(){return this.fetch().operand}get openBracket(){return this.fetch().openBracket}get start(){return this.fetch().start}get end(){return this.fetch().end}get closeBracket(){return this.fetch().closeBracket}}class Qe{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{colon:e,end:void 0===t?void 0:new or(t)}}),ds(this.cst.kind,n.q3.IndexAccessEnd)}get colon(){return this.fetch().colon}get end(){return this.fetch().end}}class Je{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:e,arguments:new es(t),closeParen:r}}),ds(this.cst.kind,n.q3.PositionalArgumentsDeclaration)}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class Ze{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:e,arguments:void 0===t?void 0:new et(t),closeParen:r}}),ds(this.cst.kind,n.q3.NamedArgumentsDeclaration)}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class et{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:e,arguments:new ts(t),closeBrace:r}}),ds(this.cst.kind,n.q3.NamedArgumentGroup)}get openBrace(){return this.fetch().openBrace}get arguments(){return this.fetch().arguments}get closeBrace(){return this.fetch().closeBrace}}class tt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{name:e,colon:t,value:new or(r)}}),ds(this.cst.kind,n.q3.NamedArgument)}get name(){return this.fetch().name}get colon(){return this.fetch().colon}get value(){return this.fetch().value}}class rt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s]=i.Rj.Selectors.sequence(this.cst);return{typeKeyword:e,openParen:t,typeName:new Qt(r),closeParen:s}}),ds(this.cst.kind,n.q3.TypeExpression)}get typeKeyword(){return this.fetch().typeKeyword}get openParen(){return this.fetch().openParen}get typeName(){return this.fetch().typeName}get closeParen(){return this.fetch().closeParen}}class st{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{newKeyword:e,typeName:new Qt(t)}}),ds(this.cst.kind,n.q3.NewExpression)}get newKeyword(){return this.fetch().newKeyword}get typeName(){return this.fetch().typeName}}class it{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:e,items:new ss(t),closeParen:r}}),ds(this.cst.kind,n.q3.TupleExpression)}get openParen(){return this.fetch().openParen}get items(){return this.fetch().items}get closeParen(){return this.fetch().closeParen}}class nt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e]=i.Rj.Selectors.sequence(this.cst);return{expression:void 0===e?void 0:new or(e)}}),ds(this.cst.kind,n.q3.TupleValue)}get expression(){return this.fetch().expression}}class at{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openBracket:e,items:new is(t),closeBracket:r}}),ds(this.cst.kind,n.q3.ArrayExpression)}get openBracket(){return this.fetch().openBracket}get items(){return this.fetch().items}get closeBracket(){return this.fetch().closeBracket}}class ot{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{literal:e,unit:void 0===t?void 0:new lr(t)}}),ds(this.cst.kind,n.q3.HexNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}}class ct{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{literal:e,unit:void 0===t?void 0:new lr(t)}}),ds(this.cst.kind,n.q3.DecimalNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}}class lt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openBrace:e,statements:new Ur(t),closeBrace:r}}),ds(this.cst.kind,n.q3.YulBlock)}get openBrace(){return this.fetch().openBrace}get statements(){return this.fetch().statements}get closeBrace(){return this.fetch().closeBrace}}class ht{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{functionKeyword:e,name:t,parameters:new ut(r),returns:void 0===s?void 0:new dt(s),body:new lt(n)}}),ds(this.cst.kind,n.q3.YulFunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get returns(){return this.fetch().returns}get body(){return this.fetch().body}}class ut{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{openParen:e,parameters:new as(t),closeParen:r}}),ds(this.cst.kind,n.q3.YulParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}}class dt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{minusGreaterThan:e,variables:new os(t)}}),ds(this.cst.kind,n.q3.YulReturnsDeclaration)}get minusGreaterThan(){return this.fetch().minusGreaterThan}get variables(){return this.fetch().variables}}class pt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{letKeyword:e,variables:new os(t),value:void 0===r?void 0:new mt(r)}}),ds(this.cst.kind,n.q3.YulVariableDeclarationStatement)}get letKeyword(){return this.fetch().letKeyword}get variables(){return this.fetch().variables}get value(){return this.fetch().value}}class mt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{assignment:new yr(e),expression:new wr(t)}}),ds(this.cst.kind,n.q3.YulVariableDeclarationValue)}get assignment(){return this.fetch().assignment}get expression(){return this.fetch().expression}}class yt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{variables:new ls(e),assignment:new yr(t),expression:new wr(r)}}),ds(this.cst.kind,n.q3.YulVariableAssignmentStatement)}get variables(){return this.fetch().variables}get assignment(){return this.fetch().assignment}get expression(){return this.fetch().expression}}class ft{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{colon:e,equal:t}}),ds(this.cst.kind,n.q3.YulColonAndEqual)}get colon(){return this.fetch().colon}get equal(){return this.fetch().equal}}class gt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{assignment:new fr(e),variable:t}}),ds(this.cst.kind,n.q3.YulStackAssignmentStatement)}get assignment(){return this.fetch().assignment}get variable(){return this.fetch().variable}}class wt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{equal:e,colon:t}}),ds(this.cst.kind,n.q3.YulEqualAndColon)}get equal(){return this.fetch().equal}get colon(){return this.fetch().colon}}class xt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{ifKeyword:e,condition:new wr(t),body:new lt(r)}}),ds(this.cst.kind,n.q3.YulIfStatement)}get ifKeyword(){return this.fetch().ifKeyword}get condition(){return this.fetch().condition}get body(){return this.fetch().body}}class vt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s,n]=i.Rj.Selectors.sequence(this.cst);return{forKeyword:e,initialization:new lt(t),condition:new wr(r),iterator:new lt(s),body:new lt(n)}}),ds(this.cst.kind,n.q3.YulForStatement)}get forKeyword(){return this.fetch().forKeyword}get initialization(){return this.fetch().initialization}get condition(){return this.fetch().condition}get iterator(){return this.fetch().iterator}get body(){return this.fetch().body}}class bt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{switchKeyword:e,expression:new wr(t),cases:new Yr(r)}}),ds(this.cst.kind,n.q3.YulSwitchStatement)}get switchKeyword(){return this.fetch().switchKeyword}get expression(){return this.fetch().expression}get cases(){return this.fetch().cases}}class _t{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{defaultKeyword:e,body:new lt(t)}}),ds(this.cst.kind,n.q3.YulDefaultCase)}get defaultKeyword(){return this.fetch().defaultKeyword}get body(){return this.fetch().body}}class Et{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r]=i.Rj.Selectors.sequence(this.cst);return{caseKeyword:e,value:new xr(t),body:new lt(r)}}),ds(this.cst.kind,n.q3.YulValueCase)}get caseKeyword(){return this.fetch().caseKeyword}get value(){return this.fetch().value}get body(){return this.fetch().body}}class Tt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e]=i.Rj.Selectors.sequence(this.cst);return{leaveKeyword:e}}),ds(this.cst.kind,n.q3.YulLeaveStatement)}get leaveKeyword(){return this.fetch().leaveKeyword}}class St{constructor(e){this.cst=e,this.fetch=us(()=>{const[e]=i.Rj.Selectors.sequence(this.cst);return{breakKeyword:e}}),ds(this.cst.kind,n.q3.YulBreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}}class kt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e]=i.Rj.Selectors.sequence(this.cst);return{continueKeyword:e}}),ds(this.cst.kind,n.q3.YulContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}}class Rt{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.sequence(this.cst);return{label:e,colon:t}}),ds(this.cst.kind,n.q3.YulLabel)}get label(){return this.fetch().label}get colon(){return this.fetch().colon}}class At{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t,r,s]=i.Rj.Selectors.sequence(this.cst);return{operand:new wr(e),openParen:t,arguments:new cs(r),closeParen:s}}),ds(this.cst.kind,n.q3.YulFunctionCallExpression)}get operand(){return this.fetch().operand}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}}class Ct{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.PragmaDirective:return new c(e);case n.q3.ImportDirective:return new m(e);case n.q3.ContractDefinition:return new T(e);case n.q3.InterfaceDefinition:return new A(e);case n.q3.LibraryDefinition:return new C(e);case n.q3.StructDefinition:return new L(e);case n.q3.EnumDefinition:return new I(e);case n.q3.FunctionDefinition:return new P(e);case n.q3.ErrorDefinition:return new J(e);case n.q3.UserDefinedValueTypeDefinition:return new Q(e);case n.q3.UsingDirective:return new v(e);case n.q3.EventDefinition:return new z(e);case n.q3.ConstantDefinition:return new N(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.SourceUnitMember)}get variant(){return this.fetch()}}class Lt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.VersionPragma:return new u(e);case n.q3.AbicoderPragma:return new l(e);case n.q3.ExperimentalPragma:return new h(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.Pragma)}get variant(){return this.fetch()}}class Kt{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.AbicoderVersion)}get variant(){return this.fetch()}}class It{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;if(e.kind===n.q3.StringLiteral)return new ur(e);throw new Error(`Unexpected variant: '${e.kind}'.`)}),ds(this.cst.kind,n.q3.ExperimentalFeature)}get variant(){return this.fetch()}}class Nt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.VersionRange:return new d(e);case n.q3.VersionTerm:return new p(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.VersionExpression)}get variant(){return this.fetch()}}class Ot{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.VersionOperator)}get variant(){return this.fetch()}}class Dt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;if(e.kind===n.q3.SimpleVersionLiteral)return new jr(e);throw new Error(`Unexpected variant: '${e.kind}'.`)}),ds(this.cst.kind,n.q3.VersionLiteral)}get variant(){return this.fetch()}}class Pt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.PathImport:return new y(e);case n.q3.NamedImport:return new f(e);case n.q3.ImportDeconstruction:return new g(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.ImportClause)}get variant(){return this.fetch()}}class qt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.IdentifierPath:return new ns(e);case n.q3.UsingDeconstruction:return new b(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.UsingClause)}get variant(){return this.fetch()}}class Mt{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.UsingOperator)}get variant(){return this.fetch()}}class Ft{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;if(e.kind===n.q3.TypeName)return new Qt(e);throw new Error(`Unexpected variant: '${e.kind}'.`)}),ds(this.cst.kind,n.q3.UsingTarget)}get variant(){return this.fetch()}}class Ut{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.InheritanceSpecifier:return new S(e);case n.q3.StorageLayoutSpecifier:return new R(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.ContractSpecifier)}get variant(){return this.fetch()}}class Yt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.UsingDirective:return new v(e);case n.q3.FunctionDefinition:return new P(e);case n.q3.ConstructorDefinition:return new V(e);case n.q3.ReceiveFunctionDefinition:return new H(e);case n.q3.FallbackFunctionDefinition:return new B(e);case n.q3.UnnamedFunctionDefinition:return new j(e);case n.q3.ModifierDefinition:return new $(e);case n.q3.StructDefinition:return new L(e);case n.q3.EnumDefinition:return new I(e);case n.q3.EventDefinition:return new z(e);case n.q3.ErrorDefinition:return new J(e);case n.q3.UserDefinedValueTypeDefinition:return new Q(e);case n.q3.StateVariableDefinition:return new O(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.ContractMember)}get variant(){return this.fetch()}}class Vt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;if(e.kind===n.q3.OverrideSpecifier)return new F(e);throw new Error(`Unexpected variant: '${e.kind}'.`)}),ds(this.cst.kind,n.q3.StateVariableAttribute)}get variant(){return this.fetch()}}class jt{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.FunctionName)}get variant(){return this.fetch()}}class Bt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;switch(e.kind){case n.q3.ModifierInvocation:return new G(e);case n.q3.OverrideSpecifier:return new F(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.FunctionAttribute)}get variant(){return this.fetch()}}class Ht{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;if(e.kind===n.q3.Block)return new oe(e);throw new Error(`Unexpected variant: '${e.kind}'.`)}),ds(this.cst.kind,n.q3.FunctionBody)}get variant(){return this.fetch()}}class $t{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;if(e.kind===n.q3.ModifierInvocation)return new G(e);throw new Error(`Unexpected variant: '${e.kind}'.`)}),ds(this.cst.kind,n.q3.ConstructorAttribute)}get variant(){return this.fetch()}}class Gt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;if(e.kind===n.q3.ModifierInvocation)return new G(e);throw new Error(`Unexpected variant: '${e.kind}'.`)}),ds(this.cst.kind,n.q3.UnnamedFunctionAttribute)}get variant(){return this.fetch()}}class zt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;switch(e.kind){case n.q3.ModifierInvocation:return new G(e);case n.q3.OverrideSpecifier:return new F(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.FallbackFunctionAttribute)}get variant(){return this.fetch()}}class Wt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;switch(e.kind){case n.q3.ModifierInvocation:return new G(e);case n.q3.OverrideSpecifier:return new F(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.ReceiveFunctionAttribute)}get variant(){return this.fetch()}}class Xt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;if(e.kind===n.q3.OverrideSpecifier)return new F(e);throw new Error(`Unexpected variant: '${e.kind}'.`)}),ds(this.cst.kind,n.q3.ModifierAttribute)}get variant(){return this.fetch()}}class Qt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.ArrayTypeName:return new te(e);case n.q3.FunctionType:return new re(e);case n.q3.MappingType:return new se(e);case n.q3.ElementaryType:return new er(e);case n.q3.IdentifierPath:return new ns(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.TypeName)}get variant(){return this.fetch()}}class Jt{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.FunctionTypeAttribute)}get variant(){return this.fetch()}}class Zt{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.ElementaryType:return new er(e);case n.q3.IdentifierPath:return new ns(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.MappingKeyType)}get variant(){return this.fetch()}}class er{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;if(e.kind===n.q3.AddressType)return new ae(e);throw new Error(`Unexpected variant: '${e.kind}'.`)}),ds(this.cst.kind,n.q3.ElementaryType)}get variant(){return this.fetch()}}class tr{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.IfStatement:return new we(e);case n.q3.ForStatement:return new ve(e);case n.q3.WhileStatement:return new be(e);case n.q3.DoWhileStatement:return new _e(e);case n.q3.ContinueStatement:return new Ee(e);case n.q3.BreakStatement:return new Te(e);case n.q3.ReturnStatement:return new Se(e);case n.q3.ThrowStatement:return new Ke(e);case n.q3.EmitStatement:return new ke(e);case n.q3.TryStatement:return new Re(e);case n.q3.RevertStatement:return new Le(e);case n.q3.AssemblyStatement:return new he(e);case n.q3.Block:return new oe(e);case n.q3.UncheckedBlock:return new ce(e);case n.q3.TupleDeconstructionStatement:return new de(e);case n.q3.VariableDeclarationStatement:return new fe(e);case n.q3.ExpressionStatement:return new le(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.Statement)}get variant(){return this.fetch()}}class rr{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.TypedTupleMember:return new me(e);case n.q3.UntypedTupleMember:return new ye(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.TupleMember)}get variant(){return this.fetch()}}class sr{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;if(e.kind===n.q3.TypeName)return new Qt(e);throw new Error(`Unexpected variant: '${e.kind}'.`)}),ds(this.cst.kind,n.q3.VariableDeclarationType)}get variant(){return this.fetch()}}class ir{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.StorageLocation)}get variant(){return this.fetch()}}class nr{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;switch(e.kind){case n.q3.TupleDeconstructionStatement:return new de(e);case n.q3.VariableDeclarationStatement:return new fe(e);case n.q3.ExpressionStatement:return new le(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.ForStatementInitialization)}get variant(){return this.fetch()}}class ar{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;if(e.kind===n.q3.ExpressionStatement)return new le(e);throw new Error(`Unexpected variant: '${e.kind}'.`)}),ds(this.cst.kind,n.q3.ForStatementCondition)}get variant(){return this.fetch()}}class or{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;switch(e.kind){case n.q3.AssignmentExpression:return new Ie(e);case n.q3.ConditionalExpression:return new Ne(e);case n.q3.OrExpression:return new Oe(e);case n.q3.AndExpression:return new De(e);case n.q3.EqualityExpression:return new Pe(e);case n.q3.InequalityExpression:return new qe(e);case n.q3.BitwiseOrExpression:return new Me(e);case n.q3.BitwiseXorExpression:return new Fe(e);case n.q3.BitwiseAndExpression:return new Ue(e);case n.q3.ShiftExpression:return new Ye(e);case n.q3.AdditiveExpression:return new Ve(e);case n.q3.MultiplicativeExpression:return new je(e);case n.q3.ExponentiationExpression:return new Be(e);case n.q3.PostfixExpression:return new He(e);case n.q3.PrefixExpression:return new $e(e);case n.q3.FunctionCallExpression:return new Ge(e);case n.q3.CallOptionsExpression:return new ze(e);case n.q3.MemberAccessExpression:return new We(e);case n.q3.IndexAccessExpression:return new Xe(e);case n.q3.NewExpression:return new st(e);case n.q3.TupleExpression:return new it(e);case n.q3.TypeExpression:return new rt(e);case n.q3.ArrayExpression:return new at(e);case n.q3.HexNumberExpression:return new ot(e);case n.q3.DecimalNumberExpression:return new ct(e);case n.q3.StringExpression:return new hr(e);case n.q3.ElementaryType:return new er(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.Expression)}get variant(){return this.fetch()}}class cr{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.PositionalArgumentsDeclaration:return new Je(e);case n.q3.NamedArgumentsDeclaration:return new Ze(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.ArgumentsDeclaration)}get variant(){return this.fetch()}}class lr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.NumberUnit)}get variant(){return this.fetch()}}class hr{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.StringLiteral:return new ur(e);case n.q3.StringLiterals:return new qr(e);case n.q3.HexStringLiteral:return new dr(e);case n.q3.HexStringLiterals:return new Mr(e);case n.q3.UnicodeStringLiterals:return new Fr(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.StringExpression)}get variant(){return this.fetch()}}class ur{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.StringLiteral)}get variant(){return this.fetch()}}class dr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.HexStringLiteral)}get variant(){return this.fetch()}}class pr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.choice(this.cst)),ds(this.cst.kind,n.q3.UnicodeStringLiteral)}get variant(){return this.fetch()}}class mr{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.YulBlock:return new lt(e);case n.q3.YulFunctionDefinition:return new ht(e);case n.q3.YulStackAssignmentStatement:return new gt(e);case n.q3.YulIfStatement:return new xt(e);case n.q3.YulForStatement:return new vt(e);case n.q3.YulSwitchStatement:return new bt(e);case n.q3.YulLeaveStatement:return new Tt(e);case n.q3.YulBreakStatement:return new St(e);case n.q3.YulContinueStatement:return new kt(e);case n.q3.YulVariableAssignmentStatement:return new yt(e);case n.q3.YulLabel:return new Rt(e);case n.q3.YulVariableDeclarationStatement:return new pt(e);case n.q3.YulExpression:return new wr(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.YulStatement)}get variant(){return this.fetch()}}class yr{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;if(e.kind===n.q3.YulColonAndEqual)return new ft(e);throw new Error(`Unexpected variant: '${e.kind}'.`)}),ds(this.cst.kind,n.q3.YulAssignmentOperator)}get variant(){return this.fetch()}}class fr{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;if(e.kind===n.q3.YulEqualAndColon)return new wt(e);throw new Error(`Unexpected variant: '${e.kind}'.`)}),ds(this.cst.kind,n.q3.YulStackAssignmentOperator)}get variant(){return this.fetch()}}class gr{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.YulDefaultCase:return new _t(e);case n.q3.YulValueCase:return new Et(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.YulSwitchCase)}get variant(){return this.fetch()}}class wr{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);switch(e.kind){case n.q3.YulFunctionCallExpression:return new At(e);case n.q3.YulLiteral:return new xr(e);case n.q3.YulPath:return new hs(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.YulExpression)}get variant(){return this.fetch()}}class xr{constructor(e){this.cst=e,this.fetch=us(()=>{const e=i.Rj.Selectors.choice(this.cst);if(e.isTerminalNode())return e;switch(e.kind){case n.q3.HexStringLiteral:return new dr(e);case n.q3.StringLiteral:return new ur(e);default:throw new Error(`Unexpected variant: '${e.kind}'.`)}}),ds(this.cst.kind,n.q3.YulLiteral)}get variant(){return this.fetch()}}class vr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new Ct(e))),ds(this.cst.kind,n.q3.SourceUnitMembers)}get items(){return this.fetch()}}class br{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new Nt(e))),ds(this.cst.kind,n.q3.VersionExpressionSet)}get items(){return this.fetch()}}class _r{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new Ut(e))),ds(this.cst.kind,n.q3.ContractSpecifiers)}get items(){return this.fetch()}}class Er{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new Yt(e))),ds(this.cst.kind,n.q3.ContractMembers)}get items(){return this.fetch()}}class Tr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new Yt(e))),ds(this.cst.kind,n.q3.InterfaceMembers)}get items(){return this.fetch()}}class Sr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new Yt(e))),ds(this.cst.kind,n.q3.LibraryMembers)}get items(){return this.fetch()}}class kr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new K(e))),ds(this.cst.kind,n.q3.StructMembers)}get items(){return this.fetch()}}class Rr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new Vt(e))),ds(this.cst.kind,n.q3.StateVariableAttributes)}get items(){return this.fetch()}}class Ar{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new Bt(e))),ds(this.cst.kind,n.q3.FunctionAttributes)}get items(){return this.fetch()}}class Cr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new $t(e))),ds(this.cst.kind,n.q3.ConstructorAttributes)}get items(){return this.fetch()}}class Lr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new Gt(e))),ds(this.cst.kind,n.q3.UnnamedFunctionAttributes)}get items(){return this.fetch()}}class Kr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new zt(e))),ds(this.cst.kind,n.q3.FallbackFunctionAttributes)}get items(){return this.fetch()}}class Ir{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new Wt(e))),ds(this.cst.kind,n.q3.ReceiveFunctionAttributes)}get items(){return this.fetch()}}class Nr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new Xt(e))),ds(this.cst.kind,n.q3.ModifierAttributes)}get items(){return this.fetch()}}class Or{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new Jt(e))),ds(this.cst.kind,n.q3.FunctionTypeAttributes)}get items(){return this.fetch()}}class Dr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new tr(e))),ds(this.cst.kind,n.q3.Statements)}get items(){return this.fetch()}}class Pr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new Ae(e))),ds(this.cst.kind,n.q3.CatchClauses)}get items(){return this.fetch()}}class qr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new ur(e))),ds(this.cst.kind,n.q3.StringLiterals)}get items(){return this.fetch()}}class Mr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new dr(e))),ds(this.cst.kind,n.q3.HexStringLiterals)}get items(){return this.fetch()}}class Fr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new pr(e))),ds(this.cst.kind,n.q3.UnicodeStringLiterals)}get items(){return this.fetch()}}class Ur{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new mr(e))),ds(this.cst.kind,n.q3.YulStatements)}get items(){return this.fetch()}}class Yr{constructor(e){this.cst=e,this.fetch=us(()=>i.Rj.Selectors.repeated(this.cst).map(e=>new gr(e))),ds(this.cst.kind,n.q3.YulSwitchCases)}get items(){return this.fetch()}}class Vr{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new br(e)),separators:t}}),ds(this.cst.kind,n.q3.VersionExpressionSets)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class jr{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e,separators:t}}),ds(this.cst.kind,n.q3.SimpleVersionLiteral)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Br{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new w(e)),separators:t}}),ds(this.cst.kind,n.q3.ImportDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Hr{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new _(e)),separators:t}}),ds(this.cst.kind,n.q3.UsingDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class $r{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new k(e)),separators:t}}),ds(this.cst.kind,n.q3.InheritanceTypes)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Gr{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e,separators:t}}),ds(this.cst.kind,n.q3.EnumMembers)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class zr{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new M(e)),separators:t}}),ds(this.cst.kind,n.q3.Parameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Wr{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new ns(e)),separators:t}}),ds(this.cst.kind,n.q3.OverridePaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Xr{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new X(e)),separators:t}}),ds(this.cst.kind,n.q3.EventParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Qr{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new ee(e)),separators:t}}),ds(this.cst.kind,n.q3.ErrorParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Jr{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new ur(e)),separators:t}}),ds(this.cst.kind,n.q3.AssemblyFlags)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class Zr{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new pe(e)),separators:t}}),ds(this.cst.kind,n.q3.TupleDeconstructionElements)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class es{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new or(e)),separators:t}}),ds(this.cst.kind,n.q3.PositionalArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ts{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new tt(e)),separators:t}}),ds(this.cst.kind,n.q3.NamedArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class rs{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new tt(e)),separators:t}}),ds(this.cst.kind,n.q3.CallOptions)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ss{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new nt(e)),separators:t}}),ds(this.cst.kind,n.q3.TupleValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class is{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new or(e)),separators:t}}),ds(this.cst.kind,n.q3.ArrayValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ns{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e,separators:t}}),ds(this.cst.kind,n.q3.IdentifierPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class as{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e,separators:t}}),ds(this.cst.kind,n.q3.YulParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class os{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e,separators:t}}),ds(this.cst.kind,n.q3.YulVariableNames)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class cs{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new wr(e)),separators:t}}),ds(this.cst.kind,n.q3.YulArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class ls{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e.map(e=>new hs(e)),separators:t}}),ds(this.cst.kind,n.q3.YulPaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}class hs{constructor(e){this.cst=e,this.fetch=us(()=>{const[e,t]=i.Rj.Selectors.separated(this.cst);return{items:e,separators:t}}),ds(this.cst.kind,n.q3.YulPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}}function us(e){let t;return()=>(void 0===t&&(t=e()),t)}function ds(e,t){if(e!==t)throw new Error(`AST node '${t}' can only be initialized with a CST node of the same kind. Received '${e}' instead.`)}s()}catch(ps){s(ps)}})},8520(e,t,r){r.a(e,async(e,t)=>{try{var s=r(8269),i=e([s]);s=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},5329(e,t,r){r.a(e,async(e,t)=>{try{var s=r(8269),i=e([s]);s=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},8269(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{di:()=>u,hP:()=>h,q3:()=>l,xo:()=>d});var i=r(1901),n=r(8520),a=r(5329),o=r(1596),c=e([i,n,a,o]);[i,n,a,o]=c.then?(await c)():c;const l=i.tQ.NonterminalKind,h=i.tQ.TerminalKind,u=i.tQ.TerminalKindExtensions,d=(i.tQ.EdgeLabel,i.tQ.NodeType,i.tQ.NonterminalNode,i.tQ.TerminalNode);i.tQ.Edge,i.tQ.Cursor,i.tQ.CursorIterator,i.tQ.AncestorsIterator,i.tQ.Query,i.tQ.QueryMatchIterator,i.tQ.TextIndexExtensions,s()}catch(e){s(e)}})},1596(e,t,r){r.a(e,async(e,t)=>{try{var s=r(8269),i=e([s]);s=(i.then?(await i)():i)[0],t()}catch(e){t(e)}})},5130(e,t,r){r.a(e,async(e,s)=>{try{var i=r(1901),n=e([i]);const a=(i=(n.then?(await n)():n)[0]).K3.Parser;i.K3.ParseOutput,r.d(t,["i",0,a]),s()}catch(e){s(e)}})},3704(e,t,r){r.a(e,async(e,s)=>{try{var i=r(1901),n=e([i]);const a=(i=(n.then?(await n)():n)[0]).Wp.LanguageFacts;r.d(t,["g",0,a]),s()}catch(e){s(e)}})},1406(e,t,r){r.a(e,async(e,s)=>{try{var i=r(2242),n=r(3305),a=r(5593),o=r(1290);const{getEnvironment:p}=i.cA,{exit:m}=i.NS,{getStderr:y}=i.vF,{getStdin:f}=i.bX,{getStdout:g}=i.Uo,{getDirectories:w}=n.jw,{Descriptor:x,filesystemErrorCode:v}=n.gK,{Error:b}=a.z3,{InputStream:_,OutputStream:E}=a.oS,{getRandomBytes:T}=o.yT;let S=[],k=new DataView(new ArrayBuffer);const R=e=>k.buffer===e.buffer?k:k=new DataView(e.buffer),A=()=>{},C="undefined"!=typeof process&&process.versions&&process.versions.node;let L;async function K(e){return C?(L=L||await Promise.resolve().then(r.bind(r,9031)),WebAssembly.compile(await L.readFile(e))):fetch(e).then(WebAssembly.compileStreaming)}function I(e){return"undefined"==typeof FinalizationRegistry?{unregister(){}}:new FinalizationRegistry(e)}function N(e){if(e&&D.call(e,"payload"))return e.payload;if(e instanceof Error)throw e;return e}const O=[],D=Object.prototype.hasOwnProperty,P=WebAssembly.instantiate,q=1<<30;function M(e,t){const r=e[0]&~q;return 0===r?(e.push(0),e.push(t|q),(e.length>>1)-1):(e[0]=e[r<<1],e[r<<1]=0,e[1+(r<<1)]=t|q,r)}function F(e,t){const r=e[t<<1],s=e[1+(t<<1)],i=0!==(s&q),n=s&~q;if(0===s||0!==(r&q))throw new TypeError("Invalid handle");return e[t<<1]=e[0]|q,e[0]=t|q,{rep:n,scope:r,own:i}}const U=Symbol.for("cabiDispose"),Y=Symbol("handle"),V=Symbol.for("cabiRep"),j=Symbol.dispose||Symbol.for("dispose"),B=e=>BigInt.asUintN(64,BigInt(e));function H(e){return e>>>0}const $=new TextDecoder,G=new TextEncoder;let z=0;function W(e,t,r){if("string"!=typeof e)throw new TypeError("expected a string");if(0===e.length)return z=0,1;let s=G.encode(e),i=t(0,0,1,s.length);return new Uint8Array(r.buffer).set(s,i),z=s.length,i}const X=Symbol.for("nodejs.util.inspect.custom");let Q,J;const Z=[q,0],ee=new Map;let te=0;function re(){const e=y();if(!(e instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var t=e[Y];if(!t){const r=e[V]||++te;ee.set(r,e),t=M(Z,r)}return t}O[1]=Z;const se=[q,0],ie=new Map;let ne,ae,oe,ce=0;function le(){const e=f();if(!(e instanceof _))throw new TypeError('Resource error: Not a valid "InputStream" resource.');var t=e[Y];if(!t){const r=e[V]||++ce;ie.set(r,e),t=M(se,r)}return t}function he(){const e=g();if(!(e instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var t=e[Y];if(!t){const r=e[V]||++te;ee.set(r,e),t=M(Z,r)}return t}function ue(e){let t;t=e?{tag:"err",val:void 0}:{tag:"ok",val:void 0},m(t)}function de(e){var t=p(),r=t.length,s=oe(0,0,4,16*r);for(let e=0;e<t.length;e++){const r=t[e],h=s+16*e;var[i,n]=r,a=W(i,oe,ae),o=z;R(ae).setInt32(h+4,o,!0),R(ae).setInt32(h+0,a,!0);var c=W(n,oe,ae),l=z;R(ae).setInt32(h+12,l,!0),R(ae).setInt32(h+8,c,!0)}R(ae).setInt32(e+4,r,!0),R(ae).setInt32(e+0,s,!0)}O[2]=se;const pe=[q,0],me=new Map;let ye=0;function fe(e,t,r){var s=e,i=pe[1+(s<<1)]&~q,n=me.get(i);let a;n||(n=Object.create(x.prototype),Object.defineProperty(n,Y,{writable:!0,value:s}),Object.defineProperty(n,V,{writable:!0,value:i})),S.push(n);try{a={tag:"ok",val:n.writeViaStream(BigInt.asUintN(64,t))}}catch(e){a={tag:"err",val:N(e)}}for(const e of S)e[Y]=void 0;S=[];var o=a;switch(o.tag){case"ok":{const e=o.val;if(R(ae).setInt8(r+0,0,!0),!(e instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var c=e[Y];if(!c){const t=e[V]||++te;ee.set(t,e),c=M(Z,t)}R(ae).setInt32(r+4,c,!0);break}case"err":{const e=o.val;R(ae).setInt8(r+0,1,!0);var l=e;let t;switch(l){case"access":t=0;break;case"would-block":t=1;break;case"already":t=2;break;case"bad-descriptor":t=3;break;case"busy":t=4;break;case"deadlock":t=5;break;case"quota":t=6;break;case"exist":t=7;break;case"file-too-large":t=8;break;case"illegal-byte-sequence":t=9;break;case"in-progress":t=10;break;case"interrupted":t=11;break;case"invalid":t=12;break;case"io":t=13;break;case"is-directory":t=14;break;case"loop":t=15;break;case"too-many-links":t=16;break;case"message-size":t=17;break;case"name-too-long":t=18;break;case"no-device":t=19;break;case"no-entry":t=20;break;case"no-lock":t=21;break;case"insufficient-memory":t=22;break;case"insufficient-space":t=23;break;case"not-directory":t=24;break;case"not-empty":t=25;break;case"not-recoverable":t=26;break;case"unsupported":t=27;break;case"no-tty":t=28;break;case"no-such-device":t=29;break;case"overflow":t=30;break;case"not-permitted":t=31;break;case"pipe":t=32;break;case"read-only":t=33;break;case"invalid-seek":t=34;break;case"text-file-busy":t=35;break;case"cross-device":t=36;break;default:throw new TypeError(`"${l}" is not one of the cases of error-code`)}R(ae).setInt8(r+4,t,!0);break}default:throw new TypeError("invalid variant specified for result")}}function ge(e,t){var r=e,s=pe[1+(r<<1)]&~q,i=me.get(s);let n;i||(i=Object.create(x.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.appendViaStream()}}catch(e){n={tag:"err",val:N(e)}}for(const e of S)e[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const e=a.val;if(R(ae).setInt8(t+0,0,!0),!(e instanceof E))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var o=e[Y];if(!o){const t=e[V]||++te;ee.set(t,e),o=M(Z,t)}R(ae).setInt32(t+4,o,!0);break}case"err":{const e=a.val;R(ae).setInt8(t+0,1,!0);var c=e;let r;switch(c){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${c}" is not one of the cases of error-code`)}R(ae).setInt8(t+4,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function we(e,t){var r=e,s=pe[1+(r<<1)]&~q,i=me.get(s);let n;i||(i=Object.create(x.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.getType()}}catch(e){n={tag:"err",val:N(e)}}for(const e of S)e[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const e=a.val;R(ae).setInt8(t+0,0,!0);var o=e;let r;switch(o){case"unknown":r=0;break;case"block-device":r=1;break;case"character-device":r=2;break;case"directory":r=3;break;case"fifo":r=4;break;case"symbolic-link":r=5;break;case"regular-file":r=6;break;case"socket":r=7;break;default:throw new TypeError(`"${o}" is not one of the cases of descriptor-type`)}R(ae).setInt8(t+1,r,!0);break}case"err":{const e=a.val;R(ae).setInt8(t+0,1,!0);var c=e;let r;switch(c){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${c}" is not one of the cases of error-code`)}R(ae).setInt8(t+1,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}function xe(e,t){var r=e,s=pe[1+(r<<1)]&~q,i=me.get(s);let n;i||(i=Object.create(x.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.stat()}}catch(e){n={tag:"err",val:N(e)}}for(const e of S)e[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const e=a.val;R(ae).setInt8(t+0,0,!0);var{type:o,linkCount:c,size:l,dataAccessTimestamp:h,dataModificationTimestamp:u,statusChangeTimestamp:d}=e,p=o;let r;switch(p){case"unknown":r=0;break;case"block-device":r=1;break;case"character-device":r=2;break;case"directory":r=3;break;case"fifo":r=4;break;case"symbolic-link":r=5;break;case"regular-file":r=6;break;case"socket":r=7;break;default:throw new TypeError(`"${p}" is not one of the cases of descriptor-type`)}R(ae).setInt8(t+8,r,!0),R(ae).setBigInt64(t+16,B(c),!0),R(ae).setBigInt64(t+24,B(l),!0);var m=h;if(null==m)R(ae).setInt8(t+32,0,!0);else{const e=m;R(ae).setInt8(t+32,1,!0);var{seconds:y,nanoseconds:f}=e;R(ae).setBigInt64(t+40,B(y),!0),R(ae).setInt32(t+48,H(f),!0)}var g=u;if(null==g)R(ae).setInt8(t+56,0,!0);else{const e=g;R(ae).setInt8(t+56,1,!0);var{seconds:w,nanoseconds:v}=e;R(ae).setBigInt64(t+64,B(w),!0),R(ae).setInt32(t+72,H(v),!0)}var b=d;if(null==b)R(ae).setInt8(t+80,0,!0);else{const e=b;R(ae).setInt8(t+80,1,!0);var{seconds:_,nanoseconds:E}=e;R(ae).setBigInt64(t+88,B(_),!0),R(ae).setInt32(t+96,H(E),!0)}break}case"err":{const e=a.val;R(ae).setInt8(t+0,1,!0);var T=e;let r;switch(T){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${T}" is not one of the cases of error-code`)}R(ae).setInt8(t+8,r,!0);break}default:throw new TypeError("invalid variant specified for result")}}O[3]=pe;const ve=[q,0],be=new Map;let _e,Ee,Te,Se,ke,Re,Ae,Ce,Le,Ke,Ie,Ne,Oe,De,Pe=0;function qe(e,t){var r=e,s=ve[1+(r<<1)]&~q,i=be.get(s);i||(i=Object.create(b.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);const n=v(i);for(const e of S)e[Y]=void 0;S=[];var a=n;if(null==a)R(ae).setInt8(t+0,0,!0);else{const e=a;R(ae).setInt8(t+0,1,!0);var o=e;let r;switch(o){case"access":r=0;break;case"would-block":r=1;break;case"already":r=2;break;case"bad-descriptor":r=3;break;case"busy":r=4;break;case"deadlock":r=5;break;case"quota":r=6;break;case"exist":r=7;break;case"file-too-large":r=8;break;case"illegal-byte-sequence":r=9;break;case"in-progress":r=10;break;case"interrupted":r=11;break;case"invalid":r=12;break;case"io":r=13;break;case"is-directory":r=14;break;case"loop":r=15;break;case"too-many-links":r=16;break;case"message-size":r=17;break;case"name-too-long":r=18;break;case"no-device":r=19;break;case"no-entry":r=20;break;case"no-lock":r=21;break;case"insufficient-memory":r=22;break;case"insufficient-space":r=23;break;case"not-directory":r=24;break;case"not-empty":r=25;break;case"not-recoverable":r=26;break;case"unsupported":r=27;break;case"no-tty":r=28;break;case"no-such-device":r=29;break;case"overflow":r=30;break;case"not-permitted":r=31;break;case"pipe":r=32;break;case"read-only":r=33;break;case"invalid-seek":r=34;break;case"text-file-busy":r=35;break;case"cross-device":r=36;break;default:throw new TypeError(`"${o}" is not one of the cases of error-code`)}R(ae).setInt8(t+1,r,!0)}}function Me(e,t){var r=e,s=Z[1+(r<<1)]&~q,i=ee.get(s);let n;i||(i=Object.create(E.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.checkWrite()}}catch(e){n={tag:"err",val:N(e)}}for(const e of S)e[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":{const e=a.val;R(ae).setInt8(t+0,0,!0),R(ae).setBigInt64(t+8,B(e),!0);break}case"err":{const e=a.val;R(ae).setInt8(t+0,1,!0);var o=e;switch(o.tag){case"last-operation-failed":{const e=o.val;if(R(ae).setInt8(t+8,0,!0),!(e instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=e[Y];if(!c){const t=e[V]||++Pe;be.set(t,e),c=M(ve,t)}R(ae).setInt32(t+12,c,!0);break}case"closed":R(ae).setInt8(t+8,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(o.tag)}\` (received \`${o}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Fe(e,t,r,s){var i=e,n=Z[1+(i<<1)]&~q,a=ee.get(n);a||(a=Object.create(E.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,V,{writable:!0,value:n})),S.push(a);var o=t,c=r,l=new Uint8Array(ae.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.write(l)}}catch(e){h={tag:"err",val:N(e)}}for(const e of S)e[Y]=void 0;S=[];var u=h;switch(u.tag){case"ok":u.val,R(ae).setInt8(s+0,0,!0);break;case"err":{const e=u.val;R(ae).setInt8(s+0,1,!0);var d=e;switch(d.tag){case"last-operation-failed":{const e=d.val;if(R(ae).setInt8(s+4,0,!0),!(e instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=e[Y];if(!p){const t=e[V]||++Pe;be.set(t,e),p=M(ve,t)}R(ae).setInt32(s+8,p,!0);break}case"closed":R(ae).setInt8(s+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(d.tag)}\` (received \`${d}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Ue(e,t,r,s){var i=e,n=Z[1+(i<<1)]&~q,a=ee.get(n);a||(a=Object.create(E.prototype),Object.defineProperty(a,Y,{writable:!0,value:i}),Object.defineProperty(a,V,{writable:!0,value:n})),S.push(a);var o=t,c=r,l=new Uint8Array(ae.buffer.slice(o,o+1*c));let h;try{h={tag:"ok",val:a.blockingWriteAndFlush(l)}}catch(e){h={tag:"err",val:N(e)}}for(const e of S)e[Y]=void 0;S=[];var u=h;switch(u.tag){case"ok":u.val,R(ae).setInt8(s+0,0,!0);break;case"err":{const e=u.val;R(ae).setInt8(s+0,1,!0);var d=e;switch(d.tag){case"last-operation-failed":{const e=d.val;if(R(ae).setInt8(s+4,0,!0),!(e instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var p=e[Y];if(!p){const t=e[V]||++Pe;be.set(t,e),p=M(ve,t)}R(ae).setInt32(s+8,p,!0);break}case"closed":R(ae).setInt8(s+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(d.tag)}\` (received \`${d}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Ye(e,t){var r=e,s=Z[1+(r<<1)]&~q,i=ee.get(s);let n;i||(i=Object.create(E.prototype),Object.defineProperty(i,Y,{writable:!0,value:r}),Object.defineProperty(i,V,{writable:!0,value:s})),S.push(i);try{n={tag:"ok",val:i.blockingFlush()}}catch(e){n={tag:"err",val:N(e)}}for(const e of S)e[Y]=void 0;S=[];var a=n;switch(a.tag){case"ok":a.val,R(ae).setInt8(t+0,0,!0);break;case"err":{const e=a.val;R(ae).setInt8(t+0,1,!0);var o=e;switch(o.tag){case"last-operation-failed":{const e=o.val;if(R(ae).setInt8(t+4,0,!0),!(e instanceof b))throw new TypeError('Resource error: Not a valid "Error" resource.');var c=e[Y];if(!c){const t=e[V]||++Pe;be.set(t,e),c=M(ve,t)}R(ae).setInt32(t+8,c,!0);break}case"closed":R(ae).setInt8(t+4,1,!0);break;default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(o.tag)}\` (received \`${o}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function Ve(e,t){var r=T(BigInt.asUintN(64,e)),s=r.byteLength,i=oe(0,0,1,1*s),n=new Uint8Array(r.buffer||r,r.byteOffset,1*s);new Uint8Array(ae.buffer,i,1*s).set(n),R(ae).setInt32(t+4,s,!0),R(ae).setInt32(t+0,i,!0)}function je(e){var t=w(),r=t.length,s=oe(0,0,4,12*r);for(let e=0;e<t.length;e++){const r=t[e],l=s+12*e;var[i,n]=r;if(!(i instanceof x))throw new TypeError('Resource error: Not a valid "Descriptor" resource.');var a=i[Y];if(!a){const e=i[V]||++ye;me.set(e,i),a=M(pe,e)}R(ae).setInt32(l+0,a,!0);var o=W(n,oe,ae),c=z;R(ae).setInt32(l+8,c,!0),R(ae).setInt32(l+4,o,!0)}R(ae).setInt32(e+4,r,!0),R(ae).setInt32(e+0,s,!0)}O[0]=ve;class Be{constructor(){throw new Error('"TerminalKindExtensions" resource does not define a constructor')}}Be.isIdentifier=function(e){return!!Ne(l[e])},Be.isTrivia=function(e){return!!Oe(l[e])},Be.isValid=function(e){return!!De(l[e])};const He=[q,0],$e=I(e=>{const{rep:t}=F(He,e);Q[20](t)});O[6]=He;const Ge=[q,0],ze=I(e=>{const{rep:t}=F(Ge,e);Q[18](t)});let We,Xe,Qe,Je,Ze;O[4]=Ge;class et{constructor(){throw new Error('"NonterminalNode" resource does not define a constructor')}}et.prototype[X]=function(e,t,r){const s=Object.getPrototypeOf(this)[X];try{return delete Object.getPrototypeOf(this)[X],r(this,{...t,depth:e,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[X]=s}},et.create=function(e,t){var r=t,s=r.length,i=Ee(0,0,4,4*s);for(let e=0;e<r.length;e++){const t=r[e],s=i+4*e;var n=t[Y];if(!n)throw new TypeError('Resource error: Not a valid "Edge" resource.');$e.unregister(t),t[j]=A,t[Y]=void 0,R(ae).setInt32(s+0,n,!0)}var a=We(c[e],i,s),o=new.target===et?this:Object.create(et.prototype);return Object.defineProperty(o,Y,{writable:!0,value:a}),ze.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){ze.unregister(o),F(Ge,a),o[j]=A,o[Y]=void 0,Q[18](Ge[1+(a<<1)]&~q)}}),o},Object.defineProperty(et.prototype,"id",{get:function(){var e=this[Y];if(!e||0===(Ge[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var t=Ge[1+(e<<1)]&~q;return Xe(t)>>>0}}),Object.defineProperty(et.prototype,"kind",{get:function(){var e=this[Y];if(!e||0===(Ge[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var t=Ge[1+(e<<1)]&~q;const r=Qe(t);return c[r]}}),Object.defineProperty(et.prototype,"textLength",{get:function(){var e=this[Y];if(!e||0===(Ge[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var t=Ge[1+(e<<1)]&~q;const r=Je(t);return{utf8:R(ae).getInt32(r+0,!0)>>>0,utf16:R(ae).getInt32(r+4,!0)>>>0,line:R(ae).getInt32(r+8,!0)>>>0,column:R(ae).getInt32(r+12,!0)>>>0}}}),et.prototype.children=function(){var e=this[Y];if(!e||0===(Ge[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var t=Ge[1+(e<<1)]&~q;const r=Ze(t);var s=R(ae).getInt32(r+4,!0),i=R(ae).getInt32(r+0,!0),n=[];for(let e=0;e<s;e++){const t=i+4*e;var a=R(ae).getInt32(t+0,!0),o=new.target===qt?this:Object.create(qt.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),$e.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){$e.unregister(o),F(He,a),o[j]=A,o[Y]=void 0,Q[20](He[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Te(r),c};const tt=[q,0],rt=I(e=>{const{rep:t}=F(tt,e);Q[22](t)});let st,it,nt;O[8]=tt,et.prototype.descendants=function(){var e=this[Y];if(!e||0===(Ge[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var t=Ge[1+(e<<1)]&~q,r=st(t),s=new.target===pr?this:Object.create(pr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),rt.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){rt.unregister(s),F(tt,r),s[j]=A,s[Y]=void 0,Q[22](tt[1+(r<<1)]&~q)}}),s},et.prototype.unparse=function(){var e=this[Y];if(!e||0===(Ge[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var t=Ge[1+(e<<1)]&~q;const r=it(t);var s=R(ae).getInt32(r+0,!0),i=R(ae).getInt32(r+4,!0);const n=$.decode(new Uint8Array(ae.buffer,s,i));return Se(r),n},et.prototype.toJson=function(){var e=this[Y];if(!e||0===(Ge[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var t=Ge[1+(e<<1)]&~q;const r=nt(t);var s=R(ae).getInt32(r+0,!0),i=R(ae).getInt32(r+4,!0);const n=$.decode(new Uint8Array(ae.buffer,s,i));return Se(r),n};const at=[q,0],ot=I(e=>{const{rep:t}=F(at,e);Q[21](t)});let ct;O[7]=at,et.prototype.createCursor=function(e){var t=this[Y];if(!t||0===(Ge[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Ge[1+(t<<1)]&~q,{utf8:s,utf16:i,line:n,column:a}=e,o=ct(r,H(s),H(i),H(n),H(a)),c=new.target===Mt?this:Object.create(Mt.prototype);return Object.defineProperty(c,Y,{writable:!0,value:o}),ot.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){ot.unregister(c),F(at,o),c[j]=A,c[Y]=void 0,Q[21](at[1+(o<<1)]&~q)}}),c};const lt=[q,0],ht=I(e=>{const{rep:t}=F(lt,e);Q[19](t)});let ut,dt,pt,mt,yt,ft,gt,wt,xt,vt,bt,_t,Et,Tt,St,kt,Rt,At,Ct,Lt,Kt,It,Nt,Ot,Dt;O[5]=lt;class Pt{constructor(){throw new Error('"TerminalNode" resource does not define a constructor')}}Pt.prototype[X]=function(e,t,r){const s=Object.getPrototypeOf(this)[X];try{return delete Object.getPrototypeOf(this)[X],r(this,{...t,depth:e,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[X]=s}},Pt.create=function(e,t){var r=W(t,Ee,ae),s=z,i=ut(l[e],r,s),n=new.target===Pt?this:Object.create(Pt.prototype);return Object.defineProperty(n,Y,{writable:!0,value:i}),ht.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){ht.unregister(n),F(lt,i),n[j]=A,n[Y]=void 0,Q[19](lt[1+(i<<1)]&~q)}}),n},Object.defineProperty(Pt.prototype,"id",{get:function(){var e=this[Y];if(!e||0===(lt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var t=lt[1+(e<<1)]&~q;return dt(t)>>>0}}),Object.defineProperty(Pt.prototype,"kind",{get:function(){var e=this[Y];if(!e||0===(lt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var t=lt[1+(e<<1)]&~q;const r=pt(t);return l[r]}}),Object.defineProperty(Pt.prototype,"textLength",{get:function(){var e=this[Y];if(!e||0===(lt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var t=lt[1+(e<<1)]&~q;const r=mt(t);return{utf8:R(ae).getInt32(r+0,!0)>>>0,utf16:R(ae).getInt32(r+4,!0)>>>0,line:R(ae).getInt32(r+8,!0)>>>0,column:R(ae).getInt32(r+12,!0)>>>0}}}),Pt.prototype.children=function(){var e=this[Y];if(!e||0===(lt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var t=lt[1+(e<<1)]&~q;const r=yt(t);var s=R(ae).getInt32(r+4,!0),i=R(ae).getInt32(r+0,!0),n=[];for(let e=0;e<s;e++){const t=i+4*e;var a=R(ae).getInt32(t+0,!0),o=new.target===qt?this:Object.create(qt.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),$e.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){$e.unregister(o),F(He,a),o[j]=A,o[Y]=void 0,Q[20](He[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Te(r),c},Pt.prototype.descendants=function(){var e=this[Y];if(!e||0===(lt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var t=lt[1+(e<<1)]&~q,r=ft(t),s=new.target===pr?this:Object.create(pr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),rt.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){rt.unregister(s),F(tt,r),s[j]=A,s[Y]=void 0,Q[22](tt[1+(r<<1)]&~q)}}),s},Pt.prototype.unparse=function(){var e=this[Y];if(!e||0===(lt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var t=lt[1+(e<<1)]&~q;const r=gt(t);var s=R(ae).getInt32(r+0,!0),i=R(ae).getInt32(r+4,!0);const n=$.decode(new Uint8Array(ae.buffer,s,i));return Se(r),n},Pt.prototype.toJson=function(){var e=this[Y];if(!e||0===(lt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var t=lt[1+(e<<1)]&~q;const r=wt(t);var s=R(ae).getInt32(r+0,!0),i=R(ae).getInt32(r+4,!0);const n=$.decode(new Uint8Array(ae.buffer,s,i));return Se(r),n};class qt{constructor(){throw new Error('"Edge" resource does not define a constructor')}}qt.createWithTerminal=function(e,t){var r=t[Y];if(!r)throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');ht.unregister(t),t[j]=A,t[Y]=void 0;var s=xt(h[e],r),i=new.target===qt?this:Object.create(qt.prototype);return Object.defineProperty(i,Y,{writable:!0,value:s}),$e.register(i,s,i),Object.defineProperty(i,j,{writable:!0,value:function(){$e.unregister(i),F(He,s),i[j]=A,i[Y]=void 0,Q[20](He[1+(s<<1)]&~q)}}),i},qt.createWithNonterminal=function(e,t){var r=t[Y];if(!r)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');ze.unregister(t),t[j]=A,t[Y]=void 0;var s=vt(h[e],r),i=new.target===qt?this:Object.create(qt.prototype);return Object.defineProperty(i,Y,{writable:!0,value:s}),$e.register(i,s,i),Object.defineProperty(i,j,{writable:!0,value:function(){$e.unregister(i),F(He,s),i[j]=A,i[Y]=void 0,Q[20](He[1+(s<<1)]&~q)}}),i},Object.defineProperty(qt.prototype,"label",{get:function(){var e=this[Y];if(!e||0===(He[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Edge" resource.');var t=He[1+(e<<1)]&~q;const r=bt(t);return h[r]}}),Object.defineProperty(qt.prototype,"node",{get:function(){var e=this[Y];if(!e||0===(He[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Edge" resource.');var t=He[1+(e<<1)]&~q;const r=_t(t);let s;switch(R(ae).getUint8(r+0,!0)){case 0:var i=R(ae).getInt32(r+4,!0),n=new.target===et?this:Object.create(et.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),ze.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){ze.unregister(n),F(Ge,i),n[j]=A,n[Y]=void 0,Q[18](Ge[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(ae).getInt32(r+4,!0),o=new.target===Pt?this:Object.create(Pt.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),ht.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){ht.unregister(o),F(lt,a),o[j]=A,o[Y]=void 0,Q[19](lt[1+(a<<1)]&~q)}}),s=o}return s}});class Mt{constructor(){throw new Error('"Cursor" resource does not define a constructor')}}Mt.prototype.reset=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;Et(t)},Mt.prototype.complete=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;Tt(t)},Mt.prototype.isCompleted=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;return!!St(t)},Mt.prototype.clone=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q,r=kt(t),s=new.target===Mt?this:Object.create(Mt.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),ot.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){ot.unregister(s),F(at,r),s[j]=A,s[Y]=void 0,Q[21](at[1+(r<<1)]&~q)}}),s},Mt.prototype.spawn=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q,r=Rt(t),s=new.target===Mt?this:Object.create(Mt.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),ot.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){ot.unregister(s),F(at,r),s[j]=A,s[Y]=void 0,Q[21](at[1+(r<<1)]&~q)}}),s},Object.defineProperty(Mt.prototype,"node",{get:function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;const r=At(t);let s;switch(R(ae).getUint8(r+0,!0)){case 0:var i=R(ae).getInt32(r+4,!0),n=new.target===et?this:Object.create(et.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),ze.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){ze.unregister(n),F(Ge,i),n[j]=A,n[Y]=void 0,Q[18](Ge[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(ae).getInt32(r+4,!0),o=new.target===Pt?this:Object.create(Pt.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),ht.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){ht.unregister(o),F(lt,a),o[j]=A,o[Y]=void 0,Q[19](lt[1+(a<<1)]&~q)}}),s=o}return s}}),Object.defineProperty(Mt.prototype,"label",{get:function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;const r=Ct(t);return h[r]}}),Object.defineProperty(Mt.prototype,"textOffset",{get:function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;const r=Lt(t);return{utf8:R(ae).getInt32(r+0,!0)>>>0,utf16:R(ae).getInt32(r+4,!0)>>>0,line:R(ae).getInt32(r+8,!0)>>>0,column:R(ae).getInt32(r+12,!0)>>>0}}}),Object.defineProperty(Mt.prototype,"textRange",{get:function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;const r=Kt(t);return{start:{utf8:R(ae).getInt32(r+0,!0)>>>0,utf16:R(ae).getInt32(r+4,!0)>>>0,line:R(ae).getInt32(r+8,!0)>>>0,column:R(ae).getInt32(r+12,!0)>>>0},end:{utf8:R(ae).getInt32(r+16,!0)>>>0,utf16:R(ae).getInt32(r+20,!0)>>>0,line:R(ae).getInt32(r+24,!0)>>>0,column:R(ae).getInt32(r+28,!0)>>>0}}}}),Object.defineProperty(Mt.prototype,"depth",{get:function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;return It(t)>>>0}}),Mt.prototype.children=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;const r=Nt(t);var s=R(ae).getInt32(r+4,!0),i=R(ae).getInt32(r+0,!0),n=[];for(let e=0;e<s;e++){const t=i+4*e;var a=R(ae).getInt32(t+0,!0),o=new.target===qt?this:Object.create(qt.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),$e.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){$e.unregister(o),F(He,a),o[j]=A,o[Y]=void 0,Q[20](He[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Te(r),c},Mt.prototype.descendants=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q,r=Ot(t),s=new.target===pr?this:Object.create(pr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),rt.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){rt.unregister(s),F(tt,r),s[j]=A,s[Y]=void 0,Q[22](tt[1+(r<<1)]&~q)}}),s},Mt.prototype.remainingNodes=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q,r=Dt(t),s=new.target===pr?this:Object.create(pr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),rt.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){rt.unregister(s),F(tt,r),s[j]=A,s[Y]=void 0,Q[22](tt[1+(r<<1)]&~q)}}),s};const Ft=[q,0],Ut=I(e=>{const{rep:t}=F(Ft,e);Q[23](t)});let Yt,Vt,jt,Bt,Ht,$t,Gt,zt,Wt,Xt,Qt,Jt,Zt,er,tr,rr;O[9]=Ft,Mt.prototype.ancestors=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q,r=Yt(t),s=new.target===mr?this:Object.create(mr.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Ut.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){Ut.unregister(s),F(Ft,r),s[j]=A,s[Y]=void 0,Q[23](Ft[1+(r<<1)]&~q)}}),s},Mt.prototype.goToNext=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;return!!Vt(t)},Mt.prototype.goToNextNonDescendant=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;return!!jt(t)},Mt.prototype.goToPrevious=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;return!!Bt(t)},Mt.prototype.goToParent=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;return!!Ht(t)},Mt.prototype.goToFirstChild=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;return!!$t(t)},Mt.prototype.goToLastChild=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;return!!Gt(t)},Mt.prototype.goToNthChild=function(e){var t=this[Y];if(!t||0===(at[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=at[1+(t<<1)]&~q;return!!zt(r,H(e))},Mt.prototype.goToNextSibling=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;return!!Wt(t)},Mt.prototype.goToPreviousSibling=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;return!!Xt(t)},Mt.prototype.goToNextTerminal=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;return!!Qt(t)},Mt.prototype.goToNextTerminalWithKind=function(e){var t=this[Y];if(!t||0===(at[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=at[1+(t<<1)]&~q;return!!Jt(r,l[e])},Mt.prototype.goToNextTerminalWithKinds=function(e){var t=this[Y];if(!t||0===(at[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=at[1+(t<<1)]&~q,s=e,i=s.length,n=Ee(0,0,2,2*i);for(let e=0;e<s.length;e++){const t=s[e],r=n+2*e;R(ae).setInt16(r+0,l[t],!0)}return!!Zt(r,n,i)},Mt.prototype.goToNextNonterminal=function(){var e=this[Y];if(!e||0===(at[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=at[1+(e<<1)]&~q;return!!er(t)},Mt.prototype.goToNextNonterminalWithKind=function(e){var t=this[Y];if(!t||0===(at[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=at[1+(t<<1)]&~q;return!!tr(r,c[e])},Mt.prototype.goToNextNonterminalWithKinds=function(e){var t=this[Y];if(!t||0===(at[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=at[1+(t<<1)]&~q,s=e,i=s.length,n=Ee(0,0,1,1*i);for(let e=0;e<s.length;e++){const t=s[e],r=n+1*e;R(ae).setInt8(r+0,c[t],!0)}return!!rr(r,n,i)};const sr=[q,0],ir=I(e=>{const{rep:t}=F(sr,e);Q[24](t)});O[10]=sr;const nr=[q,0],ar=I(e=>{const{rep:t}=F(nr,e);Q[25](t)});let or,cr,lr,hr,ur,dr;O[11]=nr,Mt.prototype.query=function(e){var t=this[Y];if(!t||0===(at[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var r=at[1+(t<<1)]&~q,s=e,i=s.length,n=Ee(0,0,4,4*i);for(let e=0;e<s.length;e++){const t=n+4*e;var a=s[e][Y];if(!a||0===(sr[1+(a<<1)]&q))throw new TypeError('Resource error: Not a valid "Query" resource.');var o=sr[1+(a<<1)]&~q;R(ae).setInt32(t+0,o,!0)}var c=or(r,n,i),l=new.target===fr?this:Object.create(fr.prototype);return Object.defineProperty(l,Y,{writable:!0,value:c}),ar.register(l,c,l),Object.defineProperty(l,j,{writable:!0,value:function(){ar.unregister(l),F(nr,c),l[j]=A,l[Y]=void 0,Q[25](nr[1+(c<<1)]&~q)}}),l};class pr{constructor(){throw new Error('"CursorIterator" resource does not define a constructor')}}pr.prototype[Symbol.iterator]=function(){return{next:()=>{const e=this.next();return{done:null==e,value:e}}}},pr.prototype.next=function(){var e=this[Y];if(!e||0===(tt[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "CursorIterator" resource.');var t=tt[1+(e<<1)]&~q;const r=cr(t);let s;if(R(ae).getUint8(r+0,!0)){var i=R(ae).getInt32(r+4,!0),n=new.target===qt?this:Object.create(qt.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),$e.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){$e.unregister(n),F(He,i),n[j]=A,n[Y]=void 0,Q[20](He[1+(i<<1)]&~q)}}),s=n}else s=void 0;return s};class mr{constructor(){throw new Error('"AncestorsIterator" resource does not define a constructor')}}mr.prototype[Symbol.iterator]=function(){return{next:()=>{const e=this.next();return{done:null==e,value:e}}}},mr.prototype.next=function(){var e=this[Y];if(!e||0===(Ft[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "AncestorsIterator" resource.');var t=Ft[1+(e<<1)]&~q;const r=lr(t);let s;if(R(ae).getUint8(r+0,!0)){var i=R(ae).getInt32(r+4,!0),n=new.target===et?this:Object.create(et.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),ze.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){ze.unregister(n),F(Ge,i),n[j]=A,n[Y]=void 0,Q[18](Ge[1+(i<<1)]&~q)}}),s=n}else s=void 0;return s};class yr{constructor(){throw new Error('"Query" resource does not define a constructor')}}yr.create=function(e){var t=W(e,Ee,ae);const r=hr(t,z);let s;if(R(ae).getUint8(r+0,!0)){var i=R(ae).getInt32(r+4,!0),n=R(ae).getInt32(r+8,!0);s={tag:"err",val:{message:$.decode(new Uint8Array(ae.buffer,i,n)),textRange:{start:{utf8:R(ae).getInt32(r+12,!0)>>>0,utf16:R(ae).getInt32(r+16,!0)>>>0,line:R(ae).getInt32(r+20,!0)>>>0,column:R(ae).getInt32(r+24,!0)>>>0},end:{utf8:R(ae).getInt32(r+28,!0)>>>0,utf16:R(ae).getInt32(r+32,!0)>>>0,line:R(ae).getInt32(r+36,!0)>>>0,column:R(ae).getInt32(r+40,!0)>>>0}}}}}else{var a=R(ae).getInt32(r+4,!0),o=new.target===yr?this:Object.create(yr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),ir.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){ir.unregister(o),F(sr,a),o[j]=A,o[Y]=void 0,Q[24](sr[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(ke(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val};class fr{constructor(){throw new Error('"QueryMatchIterator" resource does not define a constructor')}}fr.prototype[Symbol.iterator]=function(){return{next:()=>{const e=this.next();return{done:null==e,value:e}}}},fr.prototype.next=function(){var e=this[Y];if(!e||0===(nr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "QueryMatchIterator" resource.');var t=nr[1+(e<<1)]&~q;const r=ur(t);let s;if(R(ae).getUint8(r+0,!0)){var i=R(ae).getInt32(r+8,!0),n=new.target===Mt?this:Object.create(Mt.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),ot.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){ot.unregister(n),F(at,i),n[j]=A,n[Y]=void 0,Q[21](at[1+(i<<1)]&~q)}});var a=R(ae).getInt32(r+16,!0),o=R(ae).getInt32(r+12,!0),c=[];for(let e=0;e<a;e++){const t=o+16*e;var l=R(ae).getInt32(t+0,!0),h=R(ae).getInt32(t+4,!0),u=$.decode(new Uint8Array(ae.buffer,l,h)),d=R(ae).getInt32(t+12,!0),p=R(ae).getInt32(t+8,!0),m=[];for(let e=0;e<d;e++){const t=p+4*e;var y=R(ae).getInt32(t+0,!0),f=new.target===Mt?this:Object.create(Mt.prototype);Object.defineProperty(f,Y,{writable:!0,value:y}),ot.register(f,y,f),Object.defineProperty(f,j,{writable:!0,value:function(){ot.unregister(f),F(at,y),f[j]=A,f[Y]=void 0,Q[21](at[1+(y<<1)]&~q)}}),m.push(f)}c.push([u,m])}s={queryIndex:R(ae).getInt32(r+4,!0)>>>0,root:n,captures:c.reduce((e,t)=>(e[t[0]]=t[1],e),{})}}else s=void 0;const g=s;return Re(r),g};class gr{constructor(){throw new Error('"TextIndexExtensions" resource does not define a constructor')}}gr.zero=function(){const e=dr();return{utf8:R(ae).getInt32(e+0,!0)>>>0,utf16:R(ae).getInt32(e+4,!0)>>>0,line:R(ae).getInt32(e+8,!0)>>>0,column:R(ae).getInt32(e+12,!0)>>>0}};var c={};c[c.AbicoderPragma=0]="AbicoderPragma",c[c.AbicoderVersion=1]="AbicoderVersion",c[c.AdditiveExpression=2]="AdditiveExpression",c[c.AddressType=3]="AddressType",c[c.AndExpression=4]="AndExpression",c[c.ArgumentsDeclaration=5]="ArgumentsDeclaration",c[c.ArrayExpression=6]="ArrayExpression",c[c.ArrayTypeName=7]="ArrayTypeName",c[c.ArrayValues=8]="ArrayValues",c[c.AssemblyFlags=9]="AssemblyFlags",c[c.AssemblyFlagsDeclaration=10]="AssemblyFlagsDeclaration",c[c.AssemblyStatement=11]="AssemblyStatement",c[c.AssignmentExpression=12]="AssignmentExpression",c[c.BitwiseAndExpression=13]="BitwiseAndExpression",c[c.BitwiseOrExpression=14]="BitwiseOrExpression",c[c.BitwiseXorExpression=15]="BitwiseXorExpression",c[c.Block=16]="Block",c[c.BreakStatement=17]="BreakStatement",c[c.CallOptions=18]="CallOptions",c[c.CallOptionsExpression=19]="CallOptionsExpression",c[c.CatchClause=20]="CatchClause",c[c.CatchClauseError=21]="CatchClauseError",c[c.CatchClauses=22]="CatchClauses",c[c.ConditionalExpression=23]="ConditionalExpression",c[c.ConstantDefinition=24]="ConstantDefinition",c[c.ConstructorAttribute=25]="ConstructorAttribute",c[c.ConstructorAttributes=26]="ConstructorAttributes",c[c.ConstructorDefinition=27]="ConstructorDefinition",c[c.ContinueStatement=28]="ContinueStatement",c[c.ContractDefinition=29]="ContractDefinition",c[c.ContractMember=30]="ContractMember",c[c.ContractMembers=31]="ContractMembers",c[c.ContractSpecifier=32]="ContractSpecifier",c[c.ContractSpecifiers=33]="ContractSpecifiers",c[c.DecimalNumberExpression=34]="DecimalNumberExpression",c[c.DoWhileStatement=35]="DoWhileStatement",c[c.ElementaryType=36]="ElementaryType",c[c.ElseBranch=37]="ElseBranch",c[c.EmitStatement=38]="EmitStatement",c[c.EnumDefinition=39]="EnumDefinition",c[c.EnumMembers=40]="EnumMembers",c[c.EqualityExpression=41]="EqualityExpression",c[c.ErrorDefinition=42]="ErrorDefinition",c[c.ErrorParameter=43]="ErrorParameter",c[c.ErrorParameters=44]="ErrorParameters",c[c.ErrorParametersDeclaration=45]="ErrorParametersDeclaration",c[c.EventDefinition=46]="EventDefinition",c[c.EventParameter=47]="EventParameter",c[c.EventParameters=48]="EventParameters",c[c.EventParametersDeclaration=49]="EventParametersDeclaration",c[c.ExperimentalFeature=50]="ExperimentalFeature",c[c.ExperimentalPragma=51]="ExperimentalPragma",c[c.ExponentiationExpression=52]="ExponentiationExpression",c[c.Expression=53]="Expression",c[c.ExpressionStatement=54]="ExpressionStatement",c[c.FallbackFunctionAttribute=55]="FallbackFunctionAttribute",c[c.FallbackFunctionAttributes=56]="FallbackFunctionAttributes",c[c.FallbackFunctionDefinition=57]="FallbackFunctionDefinition",c[c.ForStatement=58]="ForStatement",c[c.ForStatementCondition=59]="ForStatementCondition",c[c.ForStatementInitialization=60]="ForStatementInitialization",c[c.FunctionAttribute=61]="FunctionAttribute",c[c.FunctionAttributes=62]="FunctionAttributes",c[c.FunctionBody=63]="FunctionBody",c[c.FunctionCallExpression=64]="FunctionCallExpression",c[c.FunctionDefinition=65]="FunctionDefinition",c[c.FunctionName=66]="FunctionName",c[c.FunctionType=67]="FunctionType",c[c.FunctionTypeAttribute=68]="FunctionTypeAttribute",c[c.FunctionTypeAttributes=69]="FunctionTypeAttributes",c[c.HexNumberExpression=70]="HexNumberExpression",c[c.HexStringLiteral=71]="HexStringLiteral",c[c.HexStringLiterals=72]="HexStringLiterals",c[c.IdentifierPath=73]="IdentifierPath",c[c.IfStatement=74]="IfStatement",c[c.ImportAlias=75]="ImportAlias",c[c.ImportClause=76]="ImportClause",c[c.ImportDeconstruction=77]="ImportDeconstruction",c[c.ImportDeconstructionSymbol=78]="ImportDeconstructionSymbol",c[c.ImportDeconstructionSymbols=79]="ImportDeconstructionSymbols",c[c.ImportDirective=80]="ImportDirective",c[c.IndexAccessEnd=81]="IndexAccessEnd",c[c.IndexAccessExpression=82]="IndexAccessExpression",c[c.InequalityExpression=83]="InequalityExpression",c[c.InheritanceSpecifier=84]="InheritanceSpecifier",c[c.InheritanceType=85]="InheritanceType",c[c.InheritanceTypes=86]="InheritanceTypes",c[c.InterfaceDefinition=87]="InterfaceDefinition",c[c.InterfaceMembers=88]="InterfaceMembers",c[c.LibraryDefinition=89]="LibraryDefinition",c[c.LibraryMembers=90]="LibraryMembers",c[c.MappingKey=91]="MappingKey",c[c.MappingKeyType=92]="MappingKeyType",c[c.MappingType=93]="MappingType",c[c.MappingValue=94]="MappingValue",c[c.MemberAccessExpression=95]="MemberAccessExpression",c[c.ModifierAttribute=96]="ModifierAttribute",c[c.ModifierAttributes=97]="ModifierAttributes",c[c.ModifierDefinition=98]="ModifierDefinition",c[c.ModifierInvocation=99]="ModifierInvocation",c[c.MultiplicativeExpression=100]="MultiplicativeExpression",c[c.NamedArgument=101]="NamedArgument",c[c.NamedArgumentGroup=102]="NamedArgumentGroup",c[c.NamedArguments=103]="NamedArguments",c[c.NamedArgumentsDeclaration=104]="NamedArgumentsDeclaration",c[c.NamedImport=105]="NamedImport",c[c.NewExpression=106]="NewExpression",c[c.NumberUnit=107]="NumberUnit",c[c.OrExpression=108]="OrExpression",c[c.OverridePaths=109]="OverridePaths",c[c.OverridePathsDeclaration=110]="OverridePathsDeclaration",c[c.OverrideSpecifier=111]="OverrideSpecifier",c[c.Parameter=112]="Parameter",c[c.Parameters=113]="Parameters",c[c.ParametersDeclaration=114]="ParametersDeclaration",c[c.PathImport=115]="PathImport",c[c.PositionalArguments=116]="PositionalArguments",c[c.PositionalArgumentsDeclaration=117]="PositionalArgumentsDeclaration",c[c.PostfixExpression=118]="PostfixExpression",c[c.Pragma=119]="Pragma",c[c.PragmaDirective=120]="PragmaDirective",c[c.PrefixExpression=121]="PrefixExpression",c[c.ReceiveFunctionAttribute=122]="ReceiveFunctionAttribute",c[c.ReceiveFunctionAttributes=123]="ReceiveFunctionAttributes",c[c.ReceiveFunctionDefinition=124]="ReceiveFunctionDefinition",c[c.ReturnStatement=125]="ReturnStatement",c[c.ReturnsDeclaration=126]="ReturnsDeclaration",c[c.RevertStatement=127]="RevertStatement",c[c.ShiftExpression=128]="ShiftExpression",c[c.SimpleVersionLiteral=129]="SimpleVersionLiteral",c[c.SourceUnit=130]="SourceUnit",c[c.SourceUnitMember=131]="SourceUnitMember",c[c.SourceUnitMembers=132]="SourceUnitMembers",c[c.StateVariableAttribute=133]="StateVariableAttribute",c[c.StateVariableAttributes=134]="StateVariableAttributes",c[c.StateVariableDefinition=135]="StateVariableDefinition",c[c.StateVariableDefinitionValue=136]="StateVariableDefinitionValue",c[c.Statement=137]="Statement",c[c.Statements=138]="Statements",c[c.StorageLayoutSpecifier=139]="StorageLayoutSpecifier",c[c.StorageLocation=140]="StorageLocation",c[c.StringExpression=141]="StringExpression",c[c.StringLiteral=142]="StringLiteral",c[c.StringLiterals=143]="StringLiterals",c[c.StructDefinition=144]="StructDefinition",c[c.StructMember=145]="StructMember",c[c.StructMembers=146]="StructMembers",c[c.ThrowStatement=147]="ThrowStatement",c[c.TryStatement=148]="TryStatement",c[c.TupleDeconstructionElement=149]="TupleDeconstructionElement",c[c.TupleDeconstructionElements=150]="TupleDeconstructionElements",c[c.TupleDeconstructionStatement=151]="TupleDeconstructionStatement",c[c.TupleExpression=152]="TupleExpression",c[c.TupleMember=153]="TupleMember",c[c.TupleValue=154]="TupleValue",c[c.TupleValues=155]="TupleValues",c[c.TypeExpression=156]="TypeExpression",c[c.TypeName=157]="TypeName",c[c.TypedTupleMember=158]="TypedTupleMember",c[c.UncheckedBlock=159]="UncheckedBlock",c[c.UnicodeStringLiteral=160]="UnicodeStringLiteral",c[c.UnicodeStringLiterals=161]="UnicodeStringLiterals",c[c.UnnamedFunctionAttribute=162]="UnnamedFunctionAttribute",c[c.UnnamedFunctionAttributes=163]="UnnamedFunctionAttributes",c[c.UnnamedFunctionDefinition=164]="UnnamedFunctionDefinition",c[c.UntypedTupleMember=165]="UntypedTupleMember",c[c.UserDefinedValueTypeDefinition=166]="UserDefinedValueTypeDefinition",c[c.UsingAlias=167]="UsingAlias",c[c.UsingClause=168]="UsingClause",c[c.UsingDeconstruction=169]="UsingDeconstruction",c[c.UsingDeconstructionSymbol=170]="UsingDeconstructionSymbol",c[c.UsingDeconstructionSymbols=171]="UsingDeconstructionSymbols",c[c.UsingDirective=172]="UsingDirective",c[c.UsingOperator=173]="UsingOperator",c[c.UsingTarget=174]="UsingTarget",c[c.VariableDeclarationStatement=175]="VariableDeclarationStatement",c[c.VariableDeclarationType=176]="VariableDeclarationType",c[c.VariableDeclarationValue=177]="VariableDeclarationValue",c[c.VersionExpression=178]="VersionExpression",c[c.VersionExpressionSet=179]="VersionExpressionSet",c[c.VersionExpressionSets=180]="VersionExpressionSets",c[c.VersionLiteral=181]="VersionLiteral",c[c.VersionOperator=182]="VersionOperator",c[c.VersionPragma=183]="VersionPragma",c[c.VersionRange=184]="VersionRange",c[c.VersionTerm=185]="VersionTerm",c[c.WhileStatement=186]="WhileStatement",c[c.YulArguments=187]="YulArguments",c[c.YulAssignmentOperator=188]="YulAssignmentOperator",c[c.YulBlock=189]="YulBlock",c[c.YulBreakStatement=190]="YulBreakStatement",c[c.YulColonAndEqual=191]="YulColonAndEqual",c[c.YulContinueStatement=192]="YulContinueStatement",c[c.YulDefaultCase=193]="YulDefaultCase",c[c.YulEqualAndColon=194]="YulEqualAndColon",c[c.YulExpression=195]="YulExpression",c[c.YulForStatement=196]="YulForStatement",c[c.YulFunctionCallExpression=197]="YulFunctionCallExpression",c[c.YulFunctionDefinition=198]="YulFunctionDefinition",c[c.YulIfStatement=199]="YulIfStatement",c[c.YulLabel=200]="YulLabel",c[c.YulLeaveStatement=201]="YulLeaveStatement",c[c.YulLiteral=202]="YulLiteral",c[c.YulParameters=203]="YulParameters",c[c.YulParametersDeclaration=204]="YulParametersDeclaration",c[c.YulPath=205]="YulPath",c[c.YulPaths=206]="YulPaths",c[c.YulReturnsDeclaration=207]="YulReturnsDeclaration",c[c.YulStackAssignmentOperator=208]="YulStackAssignmentOperator",c[c.YulStackAssignmentStatement=209]="YulStackAssignmentStatement",c[c.YulStatement=210]="YulStatement",c[c.YulStatements=211]="YulStatements",c[c.YulSwitchCase=212]="YulSwitchCase",c[c.YulSwitchCases=213]="YulSwitchCases",c[c.YulSwitchStatement=214]="YulSwitchStatement",c[c.YulValueCase=215]="YulValueCase",c[c.YulVariableAssignmentStatement=216]="YulVariableAssignmentStatement",c[c.YulVariableDeclarationStatement=217]="YulVariableDeclarationStatement",c[c.YulVariableDeclarationValue=218]="YulVariableDeclarationValue",c[c.YulVariableNames=219]="YulVariableNames";var l={};l[l.Unrecognized=0]="Unrecognized",l[l.Missing=1]="Missing",l[l.ABIEncoderV2Keyword=2]="ABIEncoderV2Keyword",l[l.AbicoderKeyword=3]="AbicoderKeyword",l[l.AbicoderV1Keyword=4]="AbicoderV1Keyword",l[l.AbicoderV2Keyword=5]="AbicoderV2Keyword",l[l.AbstractKeyword=6]="AbstractKeyword",l[l.AddressKeyword=7]="AddressKeyword",l[l.AfterKeyword=8]="AfterKeyword",l[l.AliasKeyword=9]="AliasKeyword",l[l.Ampersand=10]="Ampersand",l[l.AmpersandAmpersand=11]="AmpersandAmpersand",l[l.AmpersandEqual=12]="AmpersandEqual",l[l.AnonymousKeyword=13]="AnonymousKeyword",l[l.ApplyKeyword=14]="ApplyKeyword",l[l.AsKeyword=15]="AsKeyword",l[l.AssemblyKeyword=16]="AssemblyKeyword",l[l.Asterisk=17]="Asterisk",l[l.AsteriskAsterisk=18]="AsteriskAsterisk",l[l.AsteriskEqual=19]="AsteriskEqual",l[l.AtKeyword=20]="AtKeyword",l[l.AutoKeyword=21]="AutoKeyword",l[l.Bang=22]="Bang",l[l.BangEqual=23]="BangEqual",l[l.Bar=24]="Bar",l[l.BarBar=25]="BarBar",l[l.BarEqual=26]="BarEqual",l[l.BoolKeyword=27]="BoolKeyword",l[l.BreakKeyword=28]="BreakKeyword",l[l.ByteKeyword=29]="ByteKeyword",l[l.BytesKeyword=30]="BytesKeyword",l[l.CallDataKeyword=31]="CallDataKeyword",l[l.Caret=32]="Caret",l[l.CaretEqual=33]="CaretEqual",l[l.CaseKeyword=34]="CaseKeyword",l[l.CatchKeyword=35]="CatchKeyword",l[l.CloseBrace=36]="CloseBrace",l[l.CloseBracket=37]="CloseBracket",l[l.CloseParen=38]="CloseParen",l[l.Colon=39]="Colon",l[l.ColonEqual=40]="ColonEqual",l[l.Comma=41]="Comma",l[l.ConstantKeyword=42]="ConstantKeyword",l[l.ConstructorKeyword=43]="ConstructorKeyword",l[l.ContinueKeyword=44]="ContinueKeyword",l[l.ContractKeyword=45]="ContractKeyword",l[l.CopyOfKeyword=46]="CopyOfKeyword",l[l.DaysKeyword=47]="DaysKeyword",l[l.DecimalLiteral=48]="DecimalLiteral",l[l.DefaultKeyword=49]="DefaultKeyword",l[l.DefineKeyword=50]="DefineKeyword",l[l.DeleteKeyword=51]="DeleteKeyword",l[l.DoKeyword=52]="DoKeyword",l[l.DoubleQuotedHexStringLiteral=53]="DoubleQuotedHexStringLiteral",l[l.DoubleQuotedStringLiteral=54]="DoubleQuotedStringLiteral",l[l.DoubleQuotedUnicodeStringLiteral=55]="DoubleQuotedUnicodeStringLiteral",l[l.DoubleQuotedVersionLiteral=56]="DoubleQuotedVersionLiteral",l[l.ElseKeyword=57]="ElseKeyword",l[l.EmitKeyword=58]="EmitKeyword",l[l.EndOfLine=59]="EndOfLine",l[l.EnumKeyword=60]="EnumKeyword",l[l.Equal=61]="Equal",l[l.EqualColon=62]="EqualColon",l[l.EqualEqual=63]="EqualEqual",l[l.EqualGreaterThan=64]="EqualGreaterThan",l[l.ErrorKeyword=65]="ErrorKeyword",l[l.EtherKeyword=66]="EtherKeyword",l[l.EventKeyword=67]="EventKeyword",l[l.ExperimentalKeyword=68]="ExperimentalKeyword",l[l.ExternalKeyword=69]="ExternalKeyword",l[l.FallbackKeyword=70]="FallbackKeyword",l[l.FalseKeyword=71]="FalseKeyword",l[l.FinalKeyword=72]="FinalKeyword",l[l.FinneyKeyword=73]="FinneyKeyword",l[l.FixedKeyword=74]="FixedKeyword",l[l.ForKeyword=75]="ForKeyword",l[l.FromKeyword=76]="FromKeyword",l[l.FunctionKeyword=77]="FunctionKeyword",l[l.GlobalKeyword=78]="GlobalKeyword",l[l.GreaterThan=79]="GreaterThan",l[l.GreaterThanEqual=80]="GreaterThanEqual",l[l.GreaterThanGreaterThan=81]="GreaterThanGreaterThan",l[l.GreaterThanGreaterThanEqual=82]="GreaterThanGreaterThanEqual",l[l.GreaterThanGreaterThanGreaterThan=83]="GreaterThanGreaterThanGreaterThan",l[l.GreaterThanGreaterThanGreaterThanEqual=84]="GreaterThanGreaterThanGreaterThanEqual",l[l.GweiKeyword=85]="GweiKeyword",l[l.HexKeyword=86]="HexKeyword",l[l.HexLiteral=87]="HexLiteral",l[l.HoursKeyword=88]="HoursKeyword",l[l.Identifier=89]="Identifier",l[l.IfKeyword=90]="IfKeyword",l[l.ImmutableKeyword=91]="ImmutableKeyword",l[l.ImplementsKeyword=92]="ImplementsKeyword",l[l.ImportKeyword=93]="ImportKeyword",l[l.InKeyword=94]="InKeyword",l[l.IndexedKeyword=95]="IndexedKeyword",l[l.InlineKeyword=96]="InlineKeyword",l[l.IntKeyword=97]="IntKeyword",l[l.InterfaceKeyword=98]="InterfaceKeyword",l[l.InternalKeyword=99]="InternalKeyword",l[l.IsKeyword=100]="IsKeyword",l[l.LayoutKeyword=101]="LayoutKeyword",l[l.LessThan=102]="LessThan",l[l.LessThanEqual=103]="LessThanEqual",l[l.LessThanLessThan=104]="LessThanLessThan",l[l.LessThanLessThanEqual=105]="LessThanLessThanEqual",l[l.LetKeyword=106]="LetKeyword",l[l.LibraryKeyword=107]="LibraryKeyword",l[l.MacroKeyword=108]="MacroKeyword",l[l.MappingKeyword=109]="MappingKeyword",l[l.MatchKeyword=110]="MatchKeyword",l[l.MemoryKeyword=111]="MemoryKeyword",l[l.Minus=112]="Minus",l[l.MinusEqual=113]="MinusEqual",l[l.MinusGreaterThan=114]="MinusGreaterThan",l[l.MinusMinus=115]="MinusMinus",l[l.MinutesKeyword=116]="MinutesKeyword",l[l.ModifierKeyword=117]="ModifierKeyword",l[l.MultiLineComment=118]="MultiLineComment",l[l.MultiLineNatSpecComment=119]="MultiLineNatSpecComment",l[l.MutableKeyword=120]="MutableKeyword",l[l.NewKeyword=121]="NewKeyword",l[l.NullKeyword=122]="NullKeyword",l[l.OfKeyword=123]="OfKeyword",l[l.OpenBrace=124]="OpenBrace",l[l.OpenBracket=125]="OpenBracket",l[l.OpenParen=126]="OpenParen",l[l.OverrideKeyword=127]="OverrideKeyword",l[l.PartialKeyword=128]="PartialKeyword",l[l.PayableKeyword=129]="PayableKeyword",l[l.Percent=130]="Percent",l[l.PercentEqual=131]="PercentEqual",l[l.Period=132]="Period",l[l.Plus=133]="Plus",l[l.PlusEqual=134]="PlusEqual",l[l.PlusPlus=135]="PlusPlus",l[l.PragmaKeyword=136]="PragmaKeyword",l[l.PrivateKeyword=137]="PrivateKeyword",l[l.PromiseKeyword=138]="PromiseKeyword",l[l.PublicKeyword=139]="PublicKeyword",l[l.PureKeyword=140]="PureKeyword",l[l.QuestionMark=141]="QuestionMark",l[l.ReceiveKeyword=142]="ReceiveKeyword",l[l.ReferenceKeyword=143]="ReferenceKeyword",l[l.RelocatableKeyword=144]="RelocatableKeyword",l[l.ReturnKeyword=145]="ReturnKeyword",l[l.ReturnsKeyword=146]="ReturnsKeyword",l[l.RevertKeyword=147]="RevertKeyword",l[l.SMTCheckerKeyword=148]="SMTCheckerKeyword",l[l.SealedKeyword=149]="SealedKeyword",l[l.SecondsKeyword=150]="SecondsKeyword",l[l.Semicolon=151]="Semicolon",l[l.SingleLineComment=152]="SingleLineComment",l[l.SingleLineNatSpecComment=153]="SingleLineNatSpecComment",l[l.SingleQuotedHexStringLiteral=154]="SingleQuotedHexStringLiteral",l[l.SingleQuotedStringLiteral=155]="SingleQuotedStringLiteral",l[l.SingleQuotedUnicodeStringLiteral=156]="SingleQuotedUnicodeStringLiteral",l[l.SingleQuotedVersionLiteral=157]="SingleQuotedVersionLiteral",l[l.SizeOfKeyword=158]="SizeOfKeyword",l[l.Slash=159]="Slash",l[l.SlashEqual=160]="SlashEqual",l[l.SolidityKeyword=161]="SolidityKeyword",l[l.StaticKeyword=162]="StaticKeyword",l[l.StorageKeyword=163]="StorageKeyword",l[l.StringKeyword=164]="StringKeyword",l[l.StructKeyword=165]="StructKeyword",l[l.SuperKeyword=166]="SuperKeyword",l[l.SupportsKeyword=167]="SupportsKeyword",l[l.SwitchKeyword=168]="SwitchKeyword",l[l.SzaboKeyword=169]="SzaboKeyword",l[l.ThisKeyword=170]="ThisKeyword",l[l.ThrowKeyword=171]="ThrowKeyword",l[l.Tilde=172]="Tilde",l[l.TransientKeyword=173]="TransientKeyword",l[l.TrueKeyword=174]="TrueKeyword",l[l.TryKeyword=175]="TryKeyword",l[l.TypeDefKeyword=176]="TypeDefKeyword",l[l.TypeKeyword=177]="TypeKeyword",l[l.TypeOfKeyword=178]="TypeOfKeyword",l[l.UfixedKeyword=179]="UfixedKeyword",l[l.UintKeyword=180]="UintKeyword",l[l.UncheckedKeyword=181]="UncheckedKeyword",l[l.UsingKeyword=182]="UsingKeyword",l[l.VarKeyword=183]="VarKeyword",l[l.VersionSpecifier=184]="VersionSpecifier",l[l.ViewKeyword=185]="ViewKeyword",l[l.VirtualKeyword=186]="VirtualKeyword",l[l.WeeksKeyword=187]="WeeksKeyword",l[l.WeiKeyword=188]="WeiKeyword",l[l.WhileKeyword=189]="WhileKeyword",l[l.Whitespace=190]="Whitespace",l[l.YearsKeyword=191]="YearsKeyword",l[l.YulAbstractKeyword=192]="YulAbstractKeyword",l[l.YulAfterKeyword=193]="YulAfterKeyword",l[l.YulAliasKeyword=194]="YulAliasKeyword",l[l.YulAnonymousKeyword=195]="YulAnonymousKeyword",l[l.YulApplyKeyword=196]="YulApplyKeyword",l[l.YulAsKeyword=197]="YulAsKeyword",l[l.YulAssemblyKeyword=198]="YulAssemblyKeyword",l[l.YulAutoKeyword=199]="YulAutoKeyword",l[l.YulBoolKeyword=200]="YulBoolKeyword",l[l.YulBreakKeyword=201]="YulBreakKeyword",l[l.YulBytesKeyword=202]="YulBytesKeyword",l[l.YulCallDataKeyword=203]="YulCallDataKeyword",l[l.YulCaseKeyword=204]="YulCaseKeyword",l[l.YulCatchKeyword=205]="YulCatchKeyword",l[l.YulConstantKeyword=206]="YulConstantKeyword",l[l.YulConstructorKeyword=207]="YulConstructorKeyword",l[l.YulContinueKeyword=208]="YulContinueKeyword",l[l.YulContractKeyword=209]="YulContractKeyword",l[l.YulCopyOfKeyword=210]="YulCopyOfKeyword",l[l.YulDaysKeyword=211]="YulDaysKeyword",l[l.YulDecimalLiteral=212]="YulDecimalLiteral",l[l.YulDefaultKeyword=213]="YulDefaultKeyword",l[l.YulDefineKeyword=214]="YulDefineKeyword",l[l.YulDeleteKeyword=215]="YulDeleteKeyword",l[l.YulDoKeyword=216]="YulDoKeyword",l[l.YulElseKeyword=217]="YulElseKeyword",l[l.YulEmitKeyword=218]="YulEmitKeyword",l[l.YulEnumKeyword=219]="YulEnumKeyword",l[l.YulEtherKeyword=220]="YulEtherKeyword",l[l.YulEventKeyword=221]="YulEventKeyword",l[l.YulExternalKeyword=222]="YulExternalKeyword",l[l.YulFallbackKeyword=223]="YulFallbackKeyword",l[l.YulFalseKeyword=224]="YulFalseKeyword",l[l.YulFinalKeyword=225]="YulFinalKeyword",l[l.YulFinneyKeyword=226]="YulFinneyKeyword",l[l.YulFixedKeyword=227]="YulFixedKeyword",l[l.YulForKeyword=228]="YulForKeyword",l[l.YulFunctionKeyword=229]="YulFunctionKeyword",l[l.YulGweiKeyword=230]="YulGweiKeyword",l[l.YulHexKeyword=231]="YulHexKeyword",l[l.YulHexLiteral=232]="YulHexLiteral",l[l.YulHoursKeyword=233]="YulHoursKeyword",l[l.YulIdentifier=234]="YulIdentifier",l[l.YulIfKeyword=235]="YulIfKeyword",l[l.YulImmutableKeyword=236]="YulImmutableKeyword",l[l.YulImplementsKeyword=237]="YulImplementsKeyword",l[l.YulImportKeyword=238]="YulImportKeyword",l[l.YulInKeyword=239]="YulInKeyword",l[l.YulIndexedKeyword=240]="YulIndexedKeyword",l[l.YulInlineKeyword=241]="YulInlineKeyword",l[l.YulIntKeyword=242]="YulIntKeyword",l[l.YulInterfaceKeyword=243]="YulInterfaceKeyword",l[l.YulInternalKeyword=244]="YulInternalKeyword",l[l.YulIsKeyword=245]="YulIsKeyword",l[l.YulLeaveKeyword=246]="YulLeaveKeyword",l[l.YulLetKeyword=247]="YulLetKeyword",l[l.YulLibraryKeyword=248]="YulLibraryKeyword",l[l.YulMacroKeyword=249]="YulMacroKeyword",l[l.YulMappingKeyword=250]="YulMappingKeyword",l[l.YulMatchKeyword=251]="YulMatchKeyword",l[l.YulMemoryKeyword=252]="YulMemoryKeyword",l[l.YulMinutesKeyword=253]="YulMinutesKeyword",l[l.YulModifierKeyword=254]="YulModifierKeyword",l[l.YulMutableKeyword=255]="YulMutableKeyword",l[l.YulNewKeyword=256]="YulNewKeyword",l[l.YulNullKeyword=257]="YulNullKeyword",l[l.YulOfKeyword=258]="YulOfKeyword",l[l.YulOverrideKeyword=259]="YulOverrideKeyword",l[l.YulPartialKeyword=260]="YulPartialKeyword",l[l.YulPayableKeyword=261]="YulPayableKeyword",l[l.YulPragmaKeyword=262]="YulPragmaKeyword",l[l.YulPrivateKeyword=263]="YulPrivateKeyword",l[l.YulPromiseKeyword=264]="YulPromiseKeyword",l[l.YulPublicKeyword=265]="YulPublicKeyword",l[l.YulPureKeyword=266]="YulPureKeyword",l[l.YulReceiveKeyword=267]="YulReceiveKeyword",l[l.YulReferenceKeyword=268]="YulReferenceKeyword",l[l.YulRelocatableKeyword=269]="YulRelocatableKeyword",l[l.YulReturnsKeyword=270]="YulReturnsKeyword",l[l.YulSealedKeyword=271]="YulSealedKeyword",l[l.YulSecondsKeyword=272]="YulSecondsKeyword",l[l.YulSizeOfKeyword=273]="YulSizeOfKeyword",l[l.YulStaticKeyword=274]="YulStaticKeyword",l[l.YulStorageKeyword=275]="YulStorageKeyword",l[l.YulStringKeyword=276]="YulStringKeyword",l[l.YulStructKeyword=277]="YulStructKeyword",l[l.YulSuperKeyword=278]="YulSuperKeyword",l[l.YulSupportsKeyword=279]="YulSupportsKeyword",l[l.YulSwitchKeyword=280]="YulSwitchKeyword",l[l.YulSzaboKeyword=281]="YulSzaboKeyword",l[l.YulThisKeyword=282]="YulThisKeyword",l[l.YulThrowKeyword=283]="YulThrowKeyword",l[l.YulTrueKeyword=284]="YulTrueKeyword",l[l.YulTryKeyword=285]="YulTryKeyword",l[l.YulTypeDefKeyword=286]="YulTypeDefKeyword",l[l.YulTypeKeyword=287]="YulTypeKeyword",l[l.YulTypeOfKeyword=288]="YulTypeOfKeyword",l[l.YulUfixedKeyword=289]="YulUfixedKeyword",l[l.YulUintKeyword=290]="YulUintKeyword",l[l.YulUncheckedKeyword=291]="YulUncheckedKeyword",l[l.YulUsingKeyword=292]="YulUsingKeyword",l[l.YulVarKeyword=293]="YulVarKeyword",l[l.YulViewKeyword=294]="YulViewKeyword",l[l.YulVirtualKeyword=295]="YulVirtualKeyword",l[l.YulWeeksKeyword=296]="YulWeeksKeyword",l[l.YulWeiKeyword=297]="YulWeiKeyword",l[l.YulWhileKeyword=298]="YulWhileKeyword",l[l.YulYearsKeyword=299]="YulYearsKeyword";var h={};h[h.Root=0]="Root",h[h.Unrecognized=1]="Unrecognized",h[h.Missing=2]="Missing",h[h.Item=3]="Item",h[h.Variant=4]="Variant",h[h.Separator=5]="Separator",h[h.Operand=6]="Operand",h[h.LeftOperand=7]="LeftOperand",h[h.RightOperand=8]="RightOperand",h[h.LeadingTrivia=9]="LeadingTrivia",h[h.TrailingTrivia=10]="TrailingTrivia",h[h.AbicoderKeyword=11]="AbicoderKeyword",h[h.AbstractKeyword=12]="AbstractKeyword",h[h.AddressKeyword=13]="AddressKeyword",h[h.Alias=14]="Alias",h[h.AnonymousKeyword=15]="AnonymousKeyword",h[h.Arguments=16]="Arguments",h[h.AsKeyword=17]="AsKeyword",h[h.AssemblyKeyword=18]="AssemblyKeyword",h[h.Assignment=19]="Assignment",h[h.Asterisk=20]="Asterisk",h[h.AtKeyword=21]="AtKeyword",h[h.Attributes=22]="Attributes",h[h.Block=23]="Block",h[h.Body=24]="Body",h[h.BreakKeyword=25]="BreakKeyword",h[h.CaseKeyword=26]="CaseKeyword",h[h.Cases=27]="Cases",h[h.CatchClauses=28]="CatchClauses",h[h.CatchKeyword=29]="CatchKeyword",h[h.Clause=30]="Clause",h[h.CloseBrace=31]="CloseBrace",h[h.CloseBracket=32]="CloseBracket",h[h.CloseParen=33]="CloseParen",h[h.Colon=34]="Colon",h[h.Condition=35]="Condition",h[h.ConstantKeyword=36]="ConstantKeyword",h[h.ConstructorKeyword=37]="ConstructorKeyword",h[h.ContinueKeyword=38]="ContinueKeyword",h[h.ContractKeyword=39]="ContractKeyword",h[h.DefaultKeyword=40]="DefaultKeyword",h[h.DoKeyword=41]="DoKeyword",h[h.Elements=42]="Elements",h[h.ElseBranch=43]="ElseBranch",h[h.ElseKeyword=44]="ElseKeyword",h[h.EmitKeyword=45]="EmitKeyword",h[h.End=46]="End",h[h.EnumKeyword=47]="EnumKeyword",h[h.Equal=48]="Equal",h[h.EqualGreaterThan=49]="EqualGreaterThan",h[h.Error=50]="Error",h[h.ErrorKeyword=51]="ErrorKeyword",h[h.Event=52]="Event",h[h.EventKeyword=53]="EventKeyword",h[h.ExperimentalKeyword=54]="ExperimentalKeyword",h[h.Expression=55]="Expression",h[h.FallbackKeyword=56]="FallbackKeyword",h[h.FalseExpression=57]="FalseExpression",h[h.Feature=58]="Feature",h[h.Flags=59]="Flags",h[h.ForKeyword=60]="ForKeyword",h[h.FromKeyword=61]="FromKeyword",h[h.FunctionKeyword=62]="FunctionKeyword",h[h.GlobalKeyword=63]="GlobalKeyword",h[h.Identifier=64]="Identifier",h[h.IfKeyword=65]="IfKeyword",h[h.ImportKeyword=66]="ImportKeyword",h[h.Index=67]="Index",h[h.IndexedKeyword=68]="IndexedKeyword",h[h.Inheritance=69]="Inheritance",h[h.Initialization=70]="Initialization",h[h.InterfaceKeyword=71]="InterfaceKeyword",h[h.IsKeyword=72]="IsKeyword",h[h.Items=73]="Items",h[h.Iterator=74]="Iterator",h[h.KeyType=75]="KeyType",h[h.Label=76]="Label",h[h.LayoutKeyword=77]="LayoutKeyword",h[h.LeaveKeyword=78]="LeaveKeyword",h[h.LetKeyword=79]="LetKeyword",h[h.LibraryKeyword=80]="LibraryKeyword",h[h.Literal=81]="Literal",h[h.MappingKeyword=82]="MappingKeyword",h[h.Member=83]="Member",h[h.Members=84]="Members",h[h.Minus=85]="Minus",h[h.MinusGreaterThan=86]="MinusGreaterThan",h[h.ModifierKeyword=87]="ModifierKeyword",h[h.Name=88]="Name",h[h.NewKeyword=89]="NewKeyword",h[h.OpenBrace=90]="OpenBrace",h[h.OpenBracket=91]="OpenBracket",h[h.OpenParen=92]="OpenParen",h[h.Operator=93]="Operator",h[h.Options=94]="Options",h[h.Overridden=95]="Overridden",h[h.OverrideKeyword=96]="OverrideKeyword",h[h.Parameters=97]="Parameters",h[h.Path=98]="Path",h[h.Paths=99]="Paths",h[h.PayableKeyword=100]="PayableKeyword",h[h.Period=101]="Period",h[h.Pragma=102]="Pragma",h[h.PragmaKeyword=103]="PragmaKeyword",h[h.QuestionMark=104]="QuestionMark",h[h.ReceiveKeyword=105]="ReceiveKeyword",h[h.ReturnKeyword=106]="ReturnKeyword",h[h.Returns=107]="Returns",h[h.ReturnsKeyword=108]="ReturnsKeyword",h[h.RevertKeyword=109]="RevertKeyword",h[h.Semicolon=110]="Semicolon",h[h.Sets=111]="Sets",h[h.SolidityKeyword=112]="SolidityKeyword",h[h.Specifiers=113]="Specifiers",h[h.Start=114]="Start",h[h.Statements=115]="Statements",h[h.StorageLocation=116]="StorageLocation",h[h.StructKeyword=117]="StructKeyword",h[h.SwitchKeyword=118]="SwitchKeyword",h[h.Symbols=119]="Symbols",h[h.Target=120]="Target",h[h.ThrowKeyword=121]="ThrowKeyword",h[h.TrueExpression=122]="TrueExpression",h[h.TryKeyword=123]="TryKeyword",h[h.TypeKeyword=124]="TypeKeyword",h[h.TypeName=125]="TypeName",h[h.Types=126]="Types",h[h.UncheckedKeyword=127]="UncheckedKeyword",h[h.Unit=128]="Unit",h[h.UsingKeyword=129]="UsingKeyword",h[h.Value=130]="Value",h[h.ValueType=131]="ValueType",h[h.VarKeyword=132]="VarKeyword",h[h.Variable=133]="Variable",h[h.VariableType=134]="VariableType",h[h.Variables=135]="Variables",h[h.Version=136]="Version",h[h.WhileKeyword=137]="WhileKeyword";var u={};let wr,xr,vr,br;u.NonterminalNode="NonterminalNode",Object.defineProperty(et.prototype,"type",{get:function(){return u.NonterminalNode}}),et.prototype.asNonterminalNode=function(){return this},et.prototype.isNonterminalNode=function(){return!0},et.prototype.asTerminalNode=function(){},et.prototype.isTerminalNode=function(){return!1},u.TerminalNode="TerminalNode",Object.defineProperty(Pt.prototype,"type",{get:function(){return u.TerminalNode}}),Pt.prototype.asTerminalNode=function(){return this},Pt.prototype.isTerminalNode=function(){return!0},Pt.prototype.asNonterminalNode=function(){},Pt.prototype.isNonterminalNode=function(){return!1};class _r{constructor(){throw new Error('"Selectors" resource does not define a constructor')}}_r.sequence=function(e){var t=e[Y];if(!t||0===(Ge[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Ge[1+(t<<1)]&~q;const s=wr(r);let i;if(R(ae).getUint8(s+0,!0)){var n=R(ae).getInt32(s+4,!0),a=R(ae).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(ae.buffer,n,a))}}else{var o=R(ae).getInt32(s+8,!0),c=R(ae).getInt32(s+4,!0),l=[];for(let e=0;e<o;e++){const t=c+12*e;let r;if(R(ae).getUint8(t+0,!0)){let e;switch(R(ae).getUint8(t+4,!0)){case 0:var h=R(ae).getInt32(t+8,!0),u=new.target===et?this:Object.create(et.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),ze.register(u,h,u),Object.defineProperty(u,j,{writable:!0,value:function(){ze.unregister(u),F(Ge,h),u[j]=A,u[Y]=void 0,Q[18](Ge[1+(h<<1)]&~q)}}),e=u;break;case 1:var d=R(ae).getInt32(t+8,!0),p=new.target===Pt?this:Object.create(Pt.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),ht.register(p,d,p),Object.defineProperty(p,j,{writable:!0,value:function(){ht.unregister(p),F(lt,d),p[j]=A,p[Y]=void 0,Q[19](lt[1+(d<<1)]&~q)}}),e=p}r=e}else r=void 0;l.push(r)}i={tag:"ok",val:l}}const m=i;if(Ae(s),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val},_r.choice=function(e){var t=e[Y];if(!t||0===(Ge[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Ge[1+(t<<1)]&~q;const s=xr(r);let i;if(R(ae).getUint8(s+0,!0)){var n=R(ae).getInt32(s+4,!0),a=R(ae).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(ae.buffer,n,a))}}else{let e;switch(R(ae).getUint8(s+4,!0)){case 0:var o=R(ae).getInt32(s+8,!0),c=new.target===et?this:Object.create(et.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),ze.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){ze.unregister(c),F(Ge,o),c[j]=A,c[Y]=void 0,Q[18](Ge[1+(o<<1)]&~q)}}),e=c;break;case 1:var l=R(ae).getInt32(s+8,!0),h=new.target===Pt?this:Object.create(Pt.prototype);Object.defineProperty(h,Y,{writable:!0,value:l}),ht.register(h,l,h),Object.defineProperty(h,j,{writable:!0,value:function(){ht.unregister(h),F(lt,l),h[j]=A,h[Y]=void 0,Q[19](lt[1+(l<<1)]&~q)}}),e=h}i={tag:"ok",val:e}}const u=i;if(ke(s),"object"==typeof u&&"err"===u.tag)throw u.val;return u.val},_r.repeated=function(e){var t=e[Y];if(!t||0===(Ge[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Ge[1+(t<<1)]&~q;const s=vr(r);let i;if(R(ae).getUint8(s+0,!0)){var n=R(ae).getInt32(s+4,!0),a=R(ae).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(ae.buffer,n,a))}}else{var o=R(ae).getInt32(s+8,!0),c=R(ae).getInt32(s+4,!0),l=[];for(let e=0;e<o;e++){const t=c+8*e;let r;switch(R(ae).getUint8(t+0,!0)){case 0:var h=R(ae).getInt32(t+4,!0),u=new.target===et?this:Object.create(et.prototype);Object.defineProperty(u,Y,{writable:!0,value:h}),ze.register(u,h,u),Object.defineProperty(u,j,{writable:!0,value:function(){ze.unregister(u),F(Ge,h),u[j]=A,u[Y]=void 0,Q[18](Ge[1+(h<<1)]&~q)}}),r=u;break;case 1:var d=R(ae).getInt32(t+4,!0),p=new.target===Pt?this:Object.create(Pt.prototype);Object.defineProperty(p,Y,{writable:!0,value:d}),ht.register(p,d,p),Object.defineProperty(p,j,{writable:!0,value:function(){ht.unregister(p),F(lt,d),p[j]=A,p[Y]=void 0,Q[19](lt[1+(d<<1)]&~q)}}),r=p}l.push(r)}i={tag:"ok",val:l}}const m=i;if(Ce(s),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val},_r.separated=function(e){var t=e[Y];if(!t||0===(Ge[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var r=Ge[1+(t<<1)]&~q;const s=br(r);let i;if(R(ae).getUint8(s+0,!0)){var n=R(ae).getInt32(s+4,!0),a=R(ae).getInt32(s+8,!0);i={tag:"err",val:$.decode(new Uint8Array(ae.buffer,n,a))}}else{var o=R(ae).getInt32(s+8,!0),c=R(ae).getInt32(s+4,!0),l=[];for(let e=0;e<o;e++){const t=c+8*e;var h=R(ae).getInt32(t+4,!0),u=R(ae).getInt32(t+0,!0),d=[];for(let e=0;e<h;e++){const t=u+8*e;let r;switch(R(ae).getUint8(t+0,!0)){case 0:var p=R(ae).getInt32(t+4,!0),m=new.target===et?this:Object.create(et.prototype);Object.defineProperty(m,Y,{writable:!0,value:p}),ze.register(m,p,m),Object.defineProperty(m,j,{writable:!0,value:function(){ze.unregister(m),F(Ge,p),m[j]=A,m[Y]=void 0,Q[18](Ge[1+(p<<1)]&~q)}}),r=m;break;case 1:var y=R(ae).getInt32(t+4,!0),f=new.target===Pt?this:Object.create(Pt.prototype);Object.defineProperty(f,Y,{writable:!0,value:y}),ht.register(f,y,f),Object.defineProperty(f,j,{writable:!0,value:function(){ht.unregister(f),F(lt,y),f[j]=A,f[Y]=void 0,Q[19](lt[1+(y<<1)]&~q)}}),r=f}d.push(r)}l.push(d)}i={tag:"ok",val:l}}const g=i;if(Le(s),"object"==typeof g&&"err"===g.tag)throw g.val;return g.val};const Er=[q,0],Tr=I(e=>{const{rep:t}=F(Er,e);Q[28](t)});O[12]=Er;const Sr=[q,0],kr=I(e=>{const{rep:t}=F(Sr,e);Q[29](t)});let Rr;O[13]=Sr;class Ar{constructor(){throw new Error('"BindingGraph" resource does not define a constructor')}}Ar.prototype.definitionAt=function(e){var t=this[Y];if(!t||0===(Er[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "BindingGraph" resource.');var r=Er[1+(t<<1)]&~q,s=e[Y];if(!s||0===(at[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var i=at[1+(s<<1)]&~q;const n=Rr(r,i);let a;if(R(ae).getUint8(n+0,!0)){var o=R(ae).getInt32(n+4,!0),c=new.target===Nr?this:Object.create(Nr.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),kr.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){kr.unregister(c),F(Sr,o),c[j]=A,c[Y]=void 0,Q[29](Sr[1+(o<<1)]&~q)}}),a=c}else a=void 0;return a};const Cr=[q,0],Lr=I(e=>{const{rep:t}=F(Cr,e);Q[30](t)});let Kr,Ir;O[14]=Cr,Ar.prototype.referenceAt=function(e){var t=this[Y];if(!t||0===(Er[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "BindingGraph" resource.');var r=Er[1+(t<<1)]&~q,s=e[Y];if(!s||0===(at[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var i=at[1+(s<<1)]&~q;const n=Kr(r,i);let a;if(R(ae).getUint8(n+0,!0)){var o=R(ae).getInt32(n+4,!0),c=new.target===$r?this:Object.create($r.prototype);Object.defineProperty(c,Y,{writable:!0,value:o}),Lr.register(c,o,c),Object.defineProperty(c,j,{writable:!0,value:function(){Lr.unregister(c),F(Cr,o),c[j]=A,c[Y]=void 0,Q[30](Cr[1+(o<<1)]&~q)}}),a=c}else a=void 0;return a};class Nr{constructor(){throw new Error('"Definition" resource does not define a constructor')}}Object.defineProperty(Nr.prototype,"id",{get:function(){var e=this[Y];if(!e||0===(Sr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var t=Sr[1+(e<<1)]&~q;return Ir(t)>>>0}});const Or=[q,0],Dr=I(e=>{const{rep:t}=F(Or,e);Q[31](t)});O[15]=Or;const Pr=[q,0],qr=I(e=>{const{rep:t}=F(Pr,e);Q[32](t)});let Mr,Fr,Ur,Yr,Vr,jr,Br,Hr;O[16]=Pr,Object.defineProperty(Nr.prototype,"nameLocation",{get:function(){var e=this[Y];if(!e||0===(Sr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var t=Sr[1+(e<<1)]&~q;const r=Mr(t);let s;switch(R(ae).getUint8(r+0,!0)){case 0:var i=R(ae).getInt32(r+4,!0),n=new.target===Gr?this:Object.create(Gr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Dr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Dr.unregister(n),F(Or,i),n[j]=A,n[Y]=void 0,Q[31](Or[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(ae).getInt32(r+4,!0),o=new.target===zr?this:Object.create(zr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),qr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){qr.unregister(o),F(Pr,a),o[j]=A,o[Y]=void 0,Q[32](Pr[1+(a<<1)]&~q)}}),s=o}return s}}),Object.defineProperty(Nr.prototype,"definiensLocation",{get:function(){var e=this[Y];if(!e||0===(Sr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var t=Sr[1+(e<<1)]&~q;const r=Fr(t);let s;switch(R(ae).getUint8(r+0,!0)){case 0:var i=R(ae).getInt32(r+4,!0),n=new.target===Gr?this:Object.create(Gr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Dr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Dr.unregister(n),F(Or,i),n[j]=A,n[Y]=void 0,Q[31](Or[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(ae).getInt32(r+4,!0),o=new.target===zr?this:Object.create(zr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),qr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){qr.unregister(o),F(Pr,a),o[j]=A,o[Y]=void 0,Q[32](Pr[1+(a<<1)]&~q)}}),s=o}return s}}),Nr.prototype.references=function(){var e=this[Y];if(!e||0===(Sr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Definition" resource.');var t=Sr[1+(e<<1)]&~q;const r=Ur(t);var s=R(ae).getInt32(r+4,!0),i=R(ae).getInt32(r+0,!0),n=[];for(let e=0;e<s;e++){const t=i+4*e;var a=R(ae).getInt32(t+0,!0),o=new.target===$r?this:Object.create($r.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Lr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Lr.unregister(o),F(Cr,a),o[j]=A,o[Y]=void 0,Q[30](Cr[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Te(r),c};class $r{constructor(){throw new Error('"Reference" resource does not define a constructor')}}Object.defineProperty($r.prototype,"id",{get:function(){var e=this[Y];if(!e||0===(Cr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var t=Cr[1+(e<<1)]&~q;return Yr(t)>>>0}}),Object.defineProperty($r.prototype,"location",{get:function(){var e=this[Y];if(!e||0===(Cr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var t=Cr[1+(e<<1)]&~q;const r=Vr(t);let s;switch(R(ae).getUint8(r+0,!0)){case 0:var i=R(ae).getInt32(r+4,!0),n=new.target===Gr?this:Object.create(Gr.prototype);Object.defineProperty(n,Y,{writable:!0,value:i}),Dr.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){Dr.unregister(n),F(Or,i),n[j]=A,n[Y]=void 0,Q[31](Or[1+(i<<1)]&~q)}}),s=n;break;case 1:var a=R(ae).getInt32(r+4,!0),o=new.target===zr?this:Object.create(zr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),qr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){qr.unregister(o),F(Pr,a),o[j]=A,o[Y]=void 0,Q[32](Pr[1+(a<<1)]&~q)}}),s=o}return s}}),$r.prototype.definitions=function(){var e=this[Y];if(!e||0===(Cr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Reference" resource.');var t=Cr[1+(e<<1)]&~q;const r=jr(t);var s=R(ae).getInt32(r+4,!0),i=R(ae).getInt32(r+0,!0),n=[];for(let e=0;e<s;e++){const t=i+4*e;var a=R(ae).getInt32(t+0,!0),o=new.target===Nr?this:Object.create(Nr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),kr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){kr.unregister(o),F(Sr,a),o[j]=A,o[Y]=void 0,Q[29](Sr[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Te(r),c};class Gr{constructor(){throw new Error('"UserFileLocation" resource does not define a constructor')}}Object.defineProperty(Gr.prototype,"fileId",{get:function(){var e=this[Y];if(!e||0===(Or[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "UserFileLocation" resource.');var t=Or[1+(e<<1)]&~q;const r=Br(t);var s=R(ae).getInt32(r+0,!0),i=R(ae).getInt32(r+4,!0);const n=$.decode(new Uint8Array(ae.buffer,s,i));return Se(r),n}}),Object.defineProperty(Gr.prototype,"cursor",{get:function(){var e=this[Y];if(!e||0===(Or[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "UserFileLocation" resource.');var t=Or[1+(e<<1)]&~q,r=Hr(t),s=new.target===Mt?this:Object.create(Mt.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),ot.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){ot.unregister(s),F(at,r),s[j]=A,s[Y]=void 0,Q[21](at[1+(r<<1)]&~q)}}),s}});var d={UserFileLocation:"UserFileLocation"};Object.defineProperty(Gr.prototype,"type",{get:function(){return d.UserFileLocation}}),Gr.prototype.asUserFileLocation=function(){return this},Gr.prototype.isUserFileLocation=function(){return!0},Gr.prototype.asBuiltInLocation=function(){},Gr.prototype.isBuiltInLocation=function(){return!1};class zr{constructor(){throw new Error('"BuiltInLocation" resource does not define a constructor')}}d.BuiltInLocation="BuiltInLocation",Object.defineProperty(zr.prototype,"type",{get:function(){return d.BuiltInLocation}}),zr.prototype.asBuiltInLocation=function(){return this},zr.prototype.isBuiltInLocation=function(){return!0},zr.prototype.asUserFileLocation=function(){},zr.prototype.isUserFileLocation=function(){return!1};const Wr=[q,0],Xr=I(e=>{const{rep:t}=F(Wr,e);Q[33](t)});let Qr,Jr;O[17]=Wr;class Zr{constructor(){throw new Error('"Parser" resource does not define a constructor')}}Zr.create=function(e){var t=W(e,Ee,ae);const r=Qr(t,z);let s;if(R(ae).getUint8(r+0,!0)){var i=R(ae).getInt32(r+4,!0),n=R(ae).getInt32(r+8,!0);s={tag:"err",val:$.decode(new Uint8Array(ae.buffer,i,n))}}else{var a=R(ae).getInt32(r+4,!0),o=new.target===Zr?this:Object.create(Zr.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),Xr.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){Xr.unregister(o),F(Wr,a),o[j]=A,o[Y]=void 0,Q[33](Wr[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(ke(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val},Object.defineProperty(Zr.prototype,"languageVersion",{get:function(){var e=this[Y];if(!e||0===(Wr[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var t=Wr[1+(e<<1)]&~q;const r=Jr(t);var s=R(ae).getInt32(r+0,!0),i=R(ae).getInt32(r+4,!0);const n=$.decode(new Uint8Array(ae.buffer,s,i));return Se(r),n}});const es=[q,0],ts=I(e=>{const{rep:t}=F(es,e);Q[34](t)});let rs,ss,is,ns,as,os;O[18]=es,Zr.prototype.parseFileContents=function(e){var t=this[Y];if(!t||0===(Wr[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var r=Wr[1+(t<<1)]&~q,s=W(e,Ee,ae),i=rs(r,s,z),n=new.target===cs?this:Object.create(cs.prototype);return Object.defineProperty(n,Y,{writable:!0,value:i}),ts.register(n,i,n),Object.defineProperty(n,j,{writable:!0,value:function(){ts.unregister(n),F(es,i),n[j]=A,n[Y]=void 0,Q[34](es[1+(i<<1)]&~q)}}),n},Zr.prototype.parseNonterminal=function(e,t){var r=this[Y];if(!r||0===(Wr[1+(r<<1)]&q))throw new TypeError('Resource error: Not a valid "Parser" resource.');var s=Wr[1+(r<<1)]&~q,i=W(t,Ee,ae),n=z,a=ss(s,c[e],i,n),o=new.target===cs?this:Object.create(cs.prototype);return Object.defineProperty(o,Y,{writable:!0,value:a}),ts.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){ts.unregister(o),F(es,a),o[j]=A,o[Y]=void 0,Q[34](es[1+(a<<1)]&~q)}}),o};class cs{constructor(){throw new Error('"ParseOutput" resource does not define a constructor')}}Object.defineProperty(cs.prototype,"tree",{get:function(){var e=this[Y];if(!e||0===(es[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var t=es[1+(e<<1)]&~q,r=is(t),s=new.target===et?this:Object.create(et.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),ze.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){ze.unregister(s),F(Ge,r),s[j]=A,s[Y]=void 0,Q[18](Ge[1+(r<<1)]&~q)}}),s}}),cs.prototype.errors=function(){var e=this[Y];if(!e||0===(es[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var t=es[1+(e<<1)]&~q;const r=ns(t);var s=R(ae).getInt32(r+4,!0),i=R(ae).getInt32(r+0,!0),n=[];for(let e=0;e<s;e++){const t=i+40*e;var a=R(ae).getInt32(t+0,!0),o=R(ae).getInt32(t+4,!0),c=$.decode(new Uint8Array(ae.buffer,a,o));n.push({message:c,textRange:{start:{utf8:R(ae).getInt32(t+8,!0)>>>0,utf16:R(ae).getInt32(t+12,!0)>>>0,line:R(ae).getInt32(t+16,!0)>>>0,column:R(ae).getInt32(t+20,!0)>>>0},end:{utf8:R(ae).getInt32(t+24,!0)>>>0,utf16:R(ae).getInt32(t+28,!0)>>>0,line:R(ae).getInt32(t+32,!0)>>>0,column:R(ae).getInt32(t+36,!0)>>>0}}})}const l=n;return Ke(r),l},cs.prototype.isValid=function(){var e=this[Y];if(!e||0===(es[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var t=es[1+(e<<1)]&~q;return!!as(t)},cs.prototype.createTreeCursor=function(){var e=this[Y];if(!e||0===(es[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var t=es[1+(e<<1)]&~q,r=os(t),s=new.target===Mt?this:Object.create(Mt.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),ot.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){ot.unregister(s),F(at,r),s[j]=A,s[Y]=void 0,Q[21](at[1+(r<<1)]&~q)}}),s};const ls=[q,0],hs=I(e=>{const{rep:t}=F(ls,e);Q[35](t)});let us,ds,ps;O[19]=ls;class ms{constructor(){throw new Error('"InternalCompilationBuilder" resource does not define a constructor')}}ms.create=function(e){var t=W(e,Ee,ae);const r=us(t,z);let s;if(R(ae).getUint8(r+0,!0)){var i=R(ae).getInt32(r+4,!0),n=R(ae).getInt32(r+8,!0);s={tag:"err",val:$.decode(new Uint8Array(ae.buffer,i,n))}}else{var a=R(ae).getInt32(r+4,!0),o=new.target===ms?this:Object.create(ms.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),hs.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){hs.unregister(o),F(ls,a),o[j]=A,o[Y]=void 0,Q[35](ls[1+(a<<1)]&~q)}}),s={tag:"ok",val:o}}const c=s;if(ke(r),"object"==typeof c&&"err"===c.tag)throw c.val;return c.val},ms.prototype.addFile=function(e,t){var r=this[Y];if(!r||0===(ls[1+(r<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var s=ls[1+(r<<1)]&~q,i=W(e,Ee,ae),n=z,a=W(t,Ee,ae);const o=ds(s,i,n,a,z);var c=R(ae).getInt32(o+4,!0),l=R(ae).getInt32(o+0,!0),h=[];for(let e=0;e<c;e++){const t=l+4*e;var u=R(ae).getInt32(t+0,!0),d=new.target===Mt?this:Object.create(Mt.prototype);Object.defineProperty(d,Y,{writable:!0,value:u}),ot.register(d,u,d),Object.defineProperty(d,j,{writable:!0,value:function(){ot.unregister(d),F(at,u),d[j]=A,d[Y]=void 0,Q[21](at[1+(u<<1)]&~q)}}),h.push(d)}const p={importPaths:h};return Te(o),p},ms.prototype.resolveImport=function(e,t,r){var s=this[Y];if(!s||0===(ls[1+(s<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var i=ls[1+(s<<1)]&~q,n=W(e,Ee,ae),a=z,o=t[Y];if(!o||0===(at[1+(o<<1)]&q))throw new TypeError('Resource error: Not a valid "Cursor" resource.');var c=at[1+(o<<1)]&~q,l=W(r,Ee,ae);const h=ps(i,n,a,c,l,z);let u;if(R(ae).getUint8(h+0,!0)){var d=R(ae).getInt32(h+4,!0),p=R(ae).getInt32(h+8,!0);u={tag:"err",val:$.decode(new Uint8Array(ae.buffer,d,p))}}else u={tag:"ok",val:void 0};const m=u;if(ke(h),"object"==typeof m&&"err"===m.tag)throw m.val;return m.val};const ys=[q,0],fs=I(e=>{const{rep:t}=F(ys,e);Q[36](t)});let gs,ws;O[20]=ys,ms.prototype.build=function(){var e=this[Y];if(!e||0===(ls[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var t=ls[1+(e<<1)]&~q,r=gs(t),s=new.target===xs?this:Object.create(xs.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),fs.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){fs.unregister(s),F(ys,r),s[j]=A,s[Y]=void 0,Q[36](ys[1+(r<<1)]&~q)}}),s};class xs{constructor(){throw new Error('"CompilationUnit" resource does not define a constructor')}}Object.defineProperty(xs.prototype,"languageVersion",{get:function(){var e=this[Y];if(!e||0===(ys[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var t=ys[1+(e<<1)]&~q;const r=ws(t);var s=R(ae).getInt32(r+0,!0),i=R(ae).getInt32(r+4,!0);const n=$.decode(new Uint8Array(ae.buffer,s,i));return Se(r),n}});const vs=[q,0],bs=I(e=>{const{rep:t}=F(vs,e);Q[37](t)});let _s,Es,Ts,Ss,ks,Rs,As,Cs,Ls,Ks,Is;O[21]=vs,xs.prototype.files=function(){var e=this[Y];if(!e||0===(ys[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var t=ys[1+(e<<1)]&~q;const r=_s(t);var s=R(ae).getInt32(r+4,!0),i=R(ae).getInt32(r+0,!0),n=[];for(let e=0;e<s;e++){const t=i+4*e;var a=R(ae).getInt32(t+0,!0),o=new.target===Ns?this:Object.create(Ns.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),bs.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){bs.unregister(o),F(vs,a),o[j]=A,o[Y]=void 0,Q[37](vs[1+(a<<1)]&~q)}}),n.push(o)}const c=n;return Te(r),c},xs.prototype.file=function(e){var t=this[Y];if(!t||0===(ys[1+(t<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var r=ys[1+(t<<1)]&~q,s=W(e,Ee,ae);const i=Es(r,s,z);let n;if(R(ae).getUint8(i+0,!0)){var a=R(ae).getInt32(i+4,!0),o=new.target===Ns?this:Object.create(Ns.prototype);Object.defineProperty(o,Y,{writable:!0,value:a}),bs.register(o,a,o),Object.defineProperty(o,j,{writable:!0,value:function(){bs.unregister(o),F(vs,a),o[j]=A,o[Y]=void 0,Q[37](vs[1+(a<<1)]&~q)}}),n=o}else n=void 0;return n},Object.defineProperty(xs.prototype,"bindingGraph",{get:function(){var e=this[Y];if(!e||0===(ys[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var t=ys[1+(e<<1)]&~q,r=Ts(t),s=new.target===Ar?this:Object.create(Ar.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),Tr.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){Tr.unregister(s),F(Er,r),s[j]=A,s[Y]=void 0,Q[28](Er[1+(r<<1)]&~q)}}),s}});class Ns{constructor(){throw new Error('"File" resource does not define a constructor')}}Object.defineProperty(Ns.prototype,"id",{get:function(){var e=this[Y];if(!e||0===(vs[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var t=vs[1+(e<<1)]&~q;const r=Ss(t);var s=R(ae).getInt32(r+0,!0),i=R(ae).getInt32(r+4,!0);const n=$.decode(new Uint8Array(ae.buffer,s,i));return Se(r),n}}),Object.defineProperty(Ns.prototype,"tree",{get:function(){var e=this[Y];if(!e||0===(vs[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var t=vs[1+(e<<1)]&~q,r=ks(t),s=new.target===et?this:Object.create(et.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),ze.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){ze.unregister(s),F(Ge,r),s[j]=A,s[Y]=void 0,Q[18](Ge[1+(r<<1)]&~q)}}),s}}),Ns.prototype.errors=function(){var e=this[Y];if(!e||0===(vs[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var t=vs[1+(e<<1)]&~q;const r=Rs(t);var s=R(ae).getInt32(r+4,!0),i=R(ae).getInt32(r+0,!0),n=[];for(let e=0;e<s;e++){const t=i+40*e;var a=R(ae).getInt32(t+0,!0),o=R(ae).getInt32(t+4,!0),c=$.decode(new Uint8Array(ae.buffer,a,o));n.push({message:c,textRange:{start:{utf8:R(ae).getInt32(t+8,!0)>>>0,utf16:R(ae).getInt32(t+12,!0)>>>0,line:R(ae).getInt32(t+16,!0)>>>0,column:R(ae).getInt32(t+20,!0)>>>0},end:{utf8:R(ae).getInt32(t+24,!0)>>>0,utf16:R(ae).getInt32(t+28,!0)>>>0,line:R(ae).getInt32(t+32,!0)>>>0,column:R(ae).getInt32(t+36,!0)>>>0}}})}const l=n;return Ke(r),l},Ns.prototype.createTreeCursor=function(){var e=this[Y];if(!e||0===(vs[1+(e<<1)]&q))throw new TypeError('Resource error: Not a valid "File" resource.');var t=vs[1+(e<<1)]&~q,r=As(t),s=new.target===Mt?this:Object.create(Mt.prototype);return Object.defineProperty(s,Y,{writable:!0,value:r}),ot.register(s,r,s),Object.defineProperty(s,j,{writable:!0,value:function(){ot.unregister(s),F(at,r),s[j]=A,s[Y]=void 0,Q[21](at[1+(r<<1)]&~q)}}),s};class Os{constructor(){throw new Error('"LanguageFacts" resource does not define a constructor')}}Os.allVersions=function(){const e=Cs();var t=R(ae).getInt32(e+4,!0),r=R(ae).getInt32(e+0,!0),s=[];for(let e=0;e<t;e++){const t=r+8*e;var i=R(ae).getInt32(t+0,!0),n=R(ae).getInt32(t+4,!0),a=$.decode(new Uint8Array(ae.buffer,i,n));s.push(a)}const o=s;return Ie(e),o},Os.earliestVersion=function(){const e=Ls();var t=R(ae).getInt32(e+0,!0),r=R(ae).getInt32(e+4,!0);const s=$.decode(new Uint8Array(ae.buffer,t,r));return Se(e),s},Os.latestVersion=function(){const e=Ks();var t=R(ae).getInt32(e+0,!0),r=R(ae).getInt32(e+4,!0);const s=$.decode(new Uint8Array(ae.buffer,t,r));return Se(e),s},Os.inferLanguageVersions=function(e){var t=W(e,Ee,ae);const r=Is(t,z);var s=R(ae).getInt32(r+4,!0),i=R(ae).getInt32(r+0,!0),n=[];for(let e=0;e<s;e++){const t=i+8*e;var a=R(ae).getInt32(t+0,!0),o=R(ae).getInt32(t+4,!0),c=$.decode(new Uint8Array(ae.buffer,a,o));n.push(c)}const l=n;return Ie(r),l};const Ds=M.bind(null,Ge);function Ps(e){const t=F(Ge,e);t.own&&Q[18](t.rep)}const qs=M.bind(null,lt);function Ms(e){const t=F(lt,e);t.own&&Q[19](t.rep)}const Fs=M.bind(null,Sr);function Us(e){const t=F(Sr,e);t.own&&Q[29](t.rep)}const Ys=M.bind(null,Cr);function Vs(e){const t=F(Cr,e);t.own&&Q[30](t.rep)}const js=M.bind(null,Pr);function Bs(e){const t=F(Pr,e);t.own&&Q[32](t.rep)}const Hs=M.bind(null,Or);function $s(e){const t=F(Or,e);t.own&&Q[31](t.rep)}const Gs=M.bind(null,at);function zs(e){const t=F(at,e);t.own&&Q[21](t.rep)}const Ws=M.bind(null,Er);function Xs(e){const t=F(Er,e);t.own&&Q[28](t.rep)}const Qs=M.bind(null,vs);function Js(e){const t=F(vs,e);t.own&&Q[37](t.rep)}const Zs=M.bind(null,ys);function ei(e){const t=F(ys,e);t.own&&Q[36](t.rep)}const ti=M.bind(null,ls);function ri(e){const t=F(ls,e);t.own&&Q[35](t.rep)}const si=M.bind(null,He);function ii(e){const t=F(He,e);t.own&&Q[20](t.rep)}const ni=M.bind(null,Ft);function ai(e){const t=F(Ft,e);t.own&&Q[23](t.rep)}const oi=M.bind(null,tt);function ci(e){const t=F(tt,e);t.own&&Q[22](t.rep)}const li=M.bind(null,nr);function hi(e){const t=F(nr,e);t.own&&Q[25](t.rep)}function ui(e){return Ge[1+(e<<1)]&~q}function di(e){return lt[1+(e<<1)]&~q}function pi(e){return He[1+(e<<1)]&~q}const mi=M.bind(null,sr);function yi(e){const t=F(sr,e);t.own&&Q[24](t.rep)}const fi=M.bind(null,es);function gi(e){const t=F(es,e);t.own&&Q[34](t.rep)}const wi=M.bind(null,Wr);function xi(e){const t=F(Wr,e);t.own&&Q[33](t.rep)}function vi(e){const t=F(Z,e);if(t.own){const e=ee.get(t.rep);e?(e[j]&&e[j](),ee.delete(t.rep)):E[U]&&E[U](t.rep)}}function bi(e){const t=F(ve,e);if(t.own){const e=be.get(t.rep);e?(e[j]&&e[j](),be.delete(t.rep)):b[U]&&b[U](t.rep)}}function _i(e){const t=F(se,e);if(t.own){const e=ie.get(t.rep);e?(e[j]&&e[j](),ie.delete(t.rep)):_[U]&&_[U](t.rep)}}function Ei(e){const t=F(pe,e);if(t.own){const e=me.get(t.rep);e?(e[j]&&e[j](),me.delete(t.rep)):x[U]&&x[U](t.rep)}}const Ti=(()=>{let e,t,r,s=function*(){const e=K(new URL("./95c706811bfc300bf7ed.wasm",import.meta.url)),t=K(new URL("./591f276013d241f7a687.wasm",import.meta.url)),r=K(new URL("./d64a7cadbeb47f3131fc.wasm",import.meta.url)),s=K(new URL("./1bd393b18828da92fe7e.wasm",import.meta.url));({exports:Q}=yield P(yield r)),({exports:J}=yield P(yield e,{"[export]nomic-foundation:slang/bindings":{"[resource-drop]binding-graph":Xs,"[resource-drop]built-in-location":Bs,"[resource-drop]definition":Us,"[resource-drop]reference":Vs,"[resource-drop]user-file-location":$s,"[resource-new]binding-graph":Ws,"[resource-new]built-in-location":js,"[resource-new]definition":Fs,"[resource-new]reference":Ys,"[resource-new]user-file-location":Hs},"[export]nomic-foundation:slang/compilation":{"[resource-drop]compilation-unit":ei,"[resource-drop]file":Js,"[resource-drop]internal-compilation-builder":ri,"[resource-new]compilation-unit":Zs,"[resource-new]file":Qs,"[resource-new]internal-compilation-builder":ti},"[export]nomic-foundation:slang/cst":{"[resource-drop]ancestors-iterator":ai,"[resource-drop]cursor":zs,"[resource-drop]cursor-iterator":ci,"[resource-drop]edge":ii,"[resource-drop]nonterminal-node":Ps,"[resource-drop]query":yi,"[resource-drop]query-match-iterator":hi,"[resource-drop]terminal-node":Ms,"[resource-new]ancestors-iterator":ni,"[resource-new]cursor":Gs,"[resource-new]cursor-iterator":oi,"[resource-new]edge":si,"[resource-new]nonterminal-node":Ds,"[resource-new]query":mi,"[resource-new]query-match-iterator":li,"[resource-new]terminal-node":qs,"[resource-rep]edge":pi,"[resource-rep]nonterminal-node":ui,"[resource-rep]terminal-node":di},"[export]nomic-foundation:slang/parser":{"[resource-drop]parse-output":gi,"[resource-drop]parser":xi,"[resource-new]parse-output":fi,"[resource-new]parser":wi},wasi_snapshot_preview1:{environ_get:Q[13],environ_sizes_get:Q[14],fd_write:Q[15],proc_exit:Q[16],random_get:Q[12]}})),({exports:ne}=yield P(yield t,{__main_module__:{cabi_realloc:J.cabi_realloc},env:{memory:J.memory},"wasi:cli/environment@0.2.3":{"get-environment":Q[0]},"wasi:cli/exit@0.2.3":{exit:ue},"wasi:cli/stderr@0.2.3":{"get-stderr":re},"wasi:cli/stdin@0.2.3":{"get-stdin":le},"wasi:cli/stdout@0.2.3":{"get-stdout":he},"wasi:filesystem/preopens@0.2.3":{"get-directories":Q[11]},"wasi:filesystem/types@0.2.3":{"[method]descriptor.append-via-stream":Q[2],"[method]descriptor.get-type":Q[3],"[method]descriptor.stat":Q[4],"[method]descriptor.write-via-stream":Q[1],"[resource-drop]descriptor":Ei,"filesystem-error-code":Q[5]},"wasi:io/error@0.2.3":{"[resource-drop]error":bi},"wasi:io/streams@0.2.3":{"[method]output-stream.blocking-flush":Q[9],"[method]output-stream.blocking-write-and-flush":Q[8],"[method]output-stream.check-write":Q[6],"[method]output-stream.write":Q[7],"[resource-drop]input-stream":_i,"[resource-drop]output-stream":vi},"wasi:random/random@0.2.3":{"get-random-bytes":Q[10]}})),ae=J.memory,oe=ne.cabi_import_realloc,({exports:_e}=yield P(yield s,{"":{$imports:Q.$imports,0:de,1:fe,10:Ve,11:je,12:ne.random_get,13:ne.environ_get,14:ne.environ_sizes_get,15:ne.fd_write,16:ne.proc_exit,17:J["nomic-foundation:slang/cst#[dtor]terminal-kind-extensions"],18:J["nomic-foundation:slang/cst#[dtor]nonterminal-node"],19:J["nomic-foundation:slang/cst#[dtor]terminal-node"],2:ge,20:J["nomic-foundation:slang/cst#[dtor]edge"],21:J["nomic-foundation:slang/cst#[dtor]cursor"],22:J["nomic-foundation:slang/cst#[dtor]cursor-iterator"],23:J["nomic-foundation:slang/cst#[dtor]ancestors-iterator"],24:J["nomic-foundation:slang/cst#[dtor]query"],25:J["nomic-foundation:slang/cst#[dtor]query-match-iterator"],26:J["nomic-foundation:slang/cst#[dtor]text-index-extensions"],27:J["nomic-foundation:slang/ast#[dtor]selectors"],28:J["nomic-foundation:slang/bindings#[dtor]binding-graph"],29:J["nomic-foundation:slang/bindings#[dtor]definition"],3:we,30:J["nomic-foundation:slang/bindings#[dtor]reference"],31:J["nomic-foundation:slang/bindings#[dtor]user-file-location"],32:J["nomic-foundation:slang/bindings#[dtor]built-in-location"],33:J["nomic-foundation:slang/parser#[dtor]parser"],34:J["nomic-foundation:slang/parser#[dtor]parse-output"],35:J["nomic-foundation:slang/compilation#[dtor]internal-compilation-builder"],36:J["nomic-foundation:slang/compilation#[dtor]compilation-unit"],37:J["nomic-foundation:slang/compilation#[dtor]file"],38:J["nomic-foundation:slang/utils#[dtor]language-facts"],4:xe,5:qe,6:Me,7:Fe,8:Ue,9:Ye}})),Ee=J.cabi_realloc,Te=J["cabi_post_nomic-foundation:slang/bindings#[method]definition.references"],Se=J["cabi_post_nomic-foundation:slang/bindings#[method]user-file-location.file-id"],ke=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.choice"],Re=J["cabi_post_nomic-foundation:slang/cst#[method]query-match-iterator.next"],Ae=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.sequence"],Ce=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.repeated"],Le=J["cabi_post_nomic-foundation:slang/ast#[static]selectors.separated"],Ke=J["cabi_post_nomic-foundation:slang/compilation#[method]file.errors"],Ie=J["cabi_post_nomic-foundation:slang/utils#[static]language-facts.all-versions"],Ne=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-identifier"],Oe=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-trivia"],De=J["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-valid"],We=J["nomic-foundation:slang/cst#[static]nonterminal-node.create"],Xe=J["nomic-foundation:slang/cst#[method]nonterminal-node.id"],Qe=J["nomic-foundation:slang/cst#[method]nonterminal-node.kind"],Je=J["nomic-foundation:slang/cst#[method]nonterminal-node.text-length"],Ze=J["nomic-foundation:slang/cst#[method]nonterminal-node.children"],st=J["nomic-foundation:slang/cst#[method]nonterminal-node.descendants"],it=J["nomic-foundation:slang/cst#[method]nonterminal-node.unparse"],nt=J["nomic-foundation:slang/cst#[method]nonterminal-node.to-json"],ct=J["nomic-foundation:slang/cst#[method]nonterminal-node.create-cursor"],ut=J["nomic-foundation:slang/cst#[static]terminal-node.create"],dt=J["nomic-foundation:slang/cst#[method]terminal-node.id"],pt=J["nomic-foundation:slang/cst#[method]terminal-node.kind"],mt=J["nomic-foundation:slang/cst#[method]terminal-node.text-length"],yt=J["nomic-foundation:slang/cst#[method]terminal-node.children"],ft=J["nomic-foundation:slang/cst#[method]terminal-node.descendants"],gt=J["nomic-foundation:slang/cst#[method]terminal-node.unparse"],wt=J["nomic-foundation:slang/cst#[method]terminal-node.to-json"],xt=J["nomic-foundation:slang/cst#[static]edge.create-with-terminal"],vt=J["nomic-foundation:slang/cst#[static]edge.create-with-nonterminal"],bt=J["nomic-foundation:slang/cst#[method]edge.label"],_t=J["nomic-foundation:slang/cst#[method]edge.node"],Et=J["nomic-foundation:slang/cst#[method]cursor.reset"],Tt=J["nomic-foundation:slang/cst#[method]cursor.complete"],St=J["nomic-foundation:slang/cst#[method]cursor.is-completed"],kt=J["nomic-foundation:slang/cst#[method]cursor.clone"],Rt=J["nomic-foundation:slang/cst#[method]cursor.spawn"],At=J["nomic-foundation:slang/cst#[method]cursor.node"],Ct=J["nomic-foundation:slang/cst#[method]cursor.label"],Lt=J["nomic-foundation:slang/cst#[method]cursor.text-offset"],Kt=J["nomic-foundation:slang/cst#[method]cursor.text-range"],It=J["nomic-foundation:slang/cst#[method]cursor.depth"],Nt=J["nomic-foundation:slang/cst#[method]cursor.children"],Ot=J["nomic-foundation:slang/cst#[method]cursor.descendants"],Dt=J["nomic-foundation:slang/cst#[method]cursor.remaining-nodes"],Yt=J["nomic-foundation:slang/cst#[method]cursor.ancestors"],Vt=J["nomic-foundation:slang/cst#[method]cursor.go-to-next"],jt=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-non-descendant"],Bt=J["nomic-foundation:slang/cst#[method]cursor.go-to-previous"],Ht=J["nomic-foundation:slang/cst#[method]cursor.go-to-parent"],$t=J["nomic-foundation:slang/cst#[method]cursor.go-to-first-child"],Gt=J["nomic-foundation:slang/cst#[method]cursor.go-to-last-child"],zt=J["nomic-foundation:slang/cst#[method]cursor.go-to-nth-child"],Wt=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-sibling"],Xt=J["nomic-foundation:slang/cst#[method]cursor.go-to-previous-sibling"],Qt=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal"],Jt=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kind"],Zt=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kinds"],er=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal"],tr=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kind"],rr=J["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kinds"],or=J["nomic-foundation:slang/cst#[method]cursor.query"],cr=J["nomic-foundation:slang/cst#[method]cursor-iterator.next"],lr=J["nomic-foundation:slang/cst#[method]ancestors-iterator.next"],hr=J["nomic-foundation:slang/cst#[static]query.create"],ur=J["nomic-foundation:slang/cst#[method]query-match-iterator.next"],dr=J["nomic-foundation:slang/cst#[static]text-index-extensions.zero"],wr=J["nomic-foundation:slang/ast#[static]selectors.sequence"],xr=J["nomic-foundation:slang/ast#[static]selectors.choice"],vr=J["nomic-foundation:slang/ast#[static]selectors.repeated"],br=J["nomic-foundation:slang/ast#[static]selectors.separated"],Rr=J["nomic-foundation:slang/bindings#[method]binding-graph.definition-at"],Kr=J["nomic-foundation:slang/bindings#[method]binding-graph.reference-at"],Ir=J["nomic-foundation:slang/bindings#[method]definition.id"],Mr=J["nomic-foundation:slang/bindings#[method]definition.name-location"],Fr=J["nomic-foundation:slang/bindings#[method]definition.definiens-location"],Ur=J["nomic-foundation:slang/bindings#[method]definition.references"],Yr=J["nomic-foundation:slang/bindings#[method]reference.id"],Vr=J["nomic-foundation:slang/bindings#[method]reference.location"],jr=J["nomic-foundation:slang/bindings#[method]reference.definitions"],Br=J["nomic-foundation:slang/bindings#[method]user-file-location.file-id"],Hr=J["nomic-foundation:slang/bindings#[method]user-file-location.cursor"],Qr=J["nomic-foundation:slang/parser#[static]parser.create"],Jr=J["nomic-foundation:slang/parser#[method]parser.language-version"],rs=J["nomic-foundation:slang/parser#[method]parser.parse-file-contents"],ss=J["nomic-foundation:slang/parser#[method]parser.parse-nonterminal"],is=J["nomic-foundation:slang/parser#[method]parse-output.tree"],ns=J["nomic-foundation:slang/parser#[method]parse-output.errors"],as=J["nomic-foundation:slang/parser#[method]parse-output.is-valid"],os=J["nomic-foundation:slang/parser#[method]parse-output.create-tree-cursor"],us=J["nomic-foundation:slang/compilation#[static]internal-compilation-builder.create"],ds=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.add-file"],ps=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.resolve-import"],gs=J["nomic-foundation:slang/compilation#[method]internal-compilation-builder.build"],ws=J["nomic-foundation:slang/compilation#[method]compilation-unit.language-version"],_s=J["nomic-foundation:slang/compilation#[method]compilation-unit.files"],Es=J["nomic-foundation:slang/compilation#[method]compilation-unit.file"],Ts=J["nomic-foundation:slang/compilation#[method]compilation-unit.binding-graph"],Ss=J["nomic-foundation:slang/compilation#[method]file.id"],ks=J["nomic-foundation:slang/compilation#[method]file.tree"],Rs=J["nomic-foundation:slang/compilation#[method]file.errors"],As=J["nomic-foundation:slang/compilation#[method]file.create-tree-cursor"],Cs=J["nomic-foundation:slang/utils#[static]language-facts.all-versions"],Ls=J["nomic-foundation:slang/utils#[static]language-facts.earliest-version"],Ks=J["nomic-foundation:slang/utils#[static]language-facts.latest-version"],Is=J["nomic-foundation:slang/utils#[static]language-facts.infer-language-versions"]}();const i=function i(n){try{let a;do{({value:n,done:a}=s.next(n))}while(!(n instanceof Promise||a));if(a){if(!t)return n;t(n)}e||(e=new Promise((e,s)=>(t=e,r=s))),n.then(i,r)}catch(e){if(!r)throw e;r(e)}}(null);return e||i})();await Ti;const Si={Selectors:_r},ki={AncestorsIterator:mr,Cursor:Mt,CursorIterator:pr,Edge:qt,EdgeLabel:{Root:"Root",Unrecognized:"Unrecognized",Missing:"Missing",Item:"Item",Variant:"Variant",Separator:"Separator",Operand:"Operand",LeftOperand:"LeftOperand",RightOperand:"RightOperand",LeadingTrivia:"LeadingTrivia",TrailingTrivia:"TrailingTrivia",AbicoderKeyword:"AbicoderKeyword",AbstractKeyword:"AbstractKeyword",AddressKeyword:"AddressKeyword",Alias:"Alias",AnonymousKeyword:"AnonymousKeyword",Arguments:"Arguments",AsKeyword:"AsKeyword",AssemblyKeyword:"AssemblyKeyword",Assignment:"Assignment",Asterisk:"Asterisk",AtKeyword:"AtKeyword",Attributes:"Attributes",Block:"Block",Body:"Body",BreakKeyword:"BreakKeyword",CaseKeyword:"CaseKeyword",Cases:"Cases",CatchClauses:"CatchClauses",CatchKeyword:"CatchKeyword",Clause:"Clause",CloseBrace:"CloseBrace",CloseBracket:"CloseBracket",CloseParen:"CloseParen",Colon:"Colon",Condition:"Condition",ConstantKeyword:"ConstantKeyword",ConstructorKeyword:"ConstructorKeyword",ContinueKeyword:"ContinueKeyword",ContractKeyword:"ContractKeyword",DefaultKeyword:"DefaultKeyword",DoKeyword:"DoKeyword",Elements:"Elements",ElseBranch:"ElseBranch",ElseKeyword:"ElseKeyword",EmitKeyword:"EmitKeyword",End:"End",EnumKeyword:"EnumKeyword",Equal:"Equal",EqualGreaterThan:"EqualGreaterThan",Error:"Error",ErrorKeyword:"ErrorKeyword",Event:"Event",EventKeyword:"EventKeyword",ExperimentalKeyword:"ExperimentalKeyword",Expression:"Expression",FallbackKeyword:"FallbackKeyword",FalseExpression:"FalseExpression",Feature:"Feature",Flags:"Flags",ForKeyword:"ForKeyword",FromKeyword:"FromKeyword",FunctionKeyword:"FunctionKeyword",GlobalKeyword:"GlobalKeyword",Identifier:"Identifier",IfKeyword:"IfKeyword",ImportKeyword:"ImportKeyword",Index:"Index",IndexedKeyword:"IndexedKeyword",Inheritance:"Inheritance",Initialization:"Initialization",InterfaceKeyword:"InterfaceKeyword",IsKeyword:"IsKeyword",Items:"Items",Iterator:"Iterator",KeyType:"KeyType",Label:"Label",LayoutKeyword:"LayoutKeyword",LeaveKeyword:"LeaveKeyword",LetKeyword:"LetKeyword",LibraryKeyword:"LibraryKeyword",Literal:"Literal",MappingKeyword:"MappingKeyword",Member:"Member",Members:"Members",Minus:"Minus",MinusGreaterThan:"MinusGreaterThan",ModifierKeyword:"ModifierKeyword",Name:"Name",NewKeyword:"NewKeyword",OpenBrace:"OpenBrace",OpenBracket:"OpenBracket",OpenParen:"OpenParen",Operator:"Operator",Options:"Options",Overridden:"Overridden",OverrideKeyword:"OverrideKeyword",Parameters:"Parameters",Path:"Path",Paths:"Paths",PayableKeyword:"PayableKeyword",Period:"Period",Pragma:"Pragma",PragmaKeyword:"PragmaKeyword",QuestionMark:"QuestionMark",ReceiveKeyword:"ReceiveKeyword",ReturnKeyword:"ReturnKeyword",Returns:"Returns",ReturnsKeyword:"ReturnsKeyword",RevertKeyword:"RevertKeyword",Semicolon:"Semicolon",Sets:"Sets",SolidityKeyword:"SolidityKeyword",Specifiers:"Specifiers",Start:"Start",Statements:"Statements",StorageLocation:"StorageLocation",StructKeyword:"StructKeyword",SwitchKeyword:"SwitchKeyword",Symbols:"Symbols",Target:"Target",ThrowKeyword:"ThrowKeyword",TrueExpression:"TrueExpression",TryKeyword:"TryKeyword",TypeKeyword:"TypeKeyword",TypeName:"TypeName",Types:"Types",UncheckedKeyword:"UncheckedKeyword",Unit:"Unit",UsingKeyword:"UsingKeyword",Value:"Value",ValueType:"ValueType",VarKeyword:"VarKeyword",Variable:"Variable",VariableType:"VariableType",Variables:"Variables",Version:"Version",WhileKeyword:"WhileKeyword"},NodeType:u,NonterminalKind:{AbicoderPragma:"AbicoderPragma",AbicoderVersion:"AbicoderVersion",AdditiveExpression:"AdditiveExpression",AddressType:"AddressType",AndExpression:"AndExpression",ArgumentsDeclaration:"ArgumentsDeclaration",ArrayExpression:"ArrayExpression",ArrayTypeName:"ArrayTypeName",ArrayValues:"ArrayValues",AssemblyFlags:"AssemblyFlags",AssemblyFlagsDeclaration:"AssemblyFlagsDeclaration",AssemblyStatement:"AssemblyStatement",AssignmentExpression:"AssignmentExpression",BitwiseAndExpression:"BitwiseAndExpression",BitwiseOrExpression:"BitwiseOrExpression",BitwiseXorExpression:"BitwiseXorExpression",Block:"Block",BreakStatement:"BreakStatement",CallOptions:"CallOptions",CallOptionsExpression:"CallOptionsExpression",CatchClause:"CatchClause",CatchClauseError:"CatchClauseError",CatchClauses:"CatchClauses",ConditionalExpression:"ConditionalExpression",ConstantDefinition:"ConstantDefinition",ConstructorAttribute:"ConstructorAttribute",ConstructorAttributes:"ConstructorAttributes",ConstructorDefinition:"ConstructorDefinition",ContinueStatement:"ContinueStatement",ContractDefinition:"ContractDefinition",ContractMember:"ContractMember",ContractMembers:"ContractMembers",ContractSpecifier:"ContractSpecifier",ContractSpecifiers:"ContractSpecifiers",DecimalNumberExpression:"DecimalNumberExpression",DoWhileStatement:"DoWhileStatement",ElementaryType:"ElementaryType",ElseBranch:"ElseBranch",EmitStatement:"EmitStatement",EnumDefinition:"EnumDefinition",EnumMembers:"EnumMembers",EqualityExpression:"EqualityExpression",ErrorDefinition:"ErrorDefinition",ErrorParameter:"ErrorParameter",ErrorParameters:"ErrorParameters",ErrorParametersDeclaration:"ErrorParametersDeclaration",EventDefinition:"EventDefinition",EventParameter:"EventParameter",EventParameters:"EventParameters",EventParametersDeclaration:"EventParametersDeclaration",ExperimentalFeature:"ExperimentalFeature",ExperimentalPragma:"ExperimentalPragma",ExponentiationExpression:"ExponentiationExpression",Expression:"Expression",ExpressionStatement:"ExpressionStatement",FallbackFunctionAttribute:"FallbackFunctionAttribute",FallbackFunctionAttributes:"FallbackFunctionAttributes",FallbackFunctionDefinition:"FallbackFunctionDefinition",ForStatement:"ForStatement",ForStatementCondition:"ForStatementCondition",ForStatementInitialization:"ForStatementInitialization",FunctionAttribute:"FunctionAttribute",FunctionAttributes:"FunctionAttributes",FunctionBody:"FunctionBody",FunctionCallExpression:"FunctionCallExpression",FunctionDefinition:"FunctionDefinition",FunctionName:"FunctionName",FunctionType:"FunctionType",FunctionTypeAttribute:"FunctionTypeAttribute",FunctionTypeAttributes:"FunctionTypeAttributes",HexNumberExpression:"HexNumberExpression",HexStringLiteral:"HexStringLiteral",HexStringLiterals:"HexStringLiterals",IdentifierPath:"IdentifierPath",IfStatement:"IfStatement",ImportAlias:"ImportAlias",ImportClause:"ImportClause",ImportDeconstruction:"ImportDeconstruction",ImportDeconstructionSymbol:"ImportDeconstructionSymbol",ImportDeconstructionSymbols:"ImportDeconstructionSymbols",ImportDirective:"ImportDirective",IndexAccessEnd:"IndexAccessEnd",IndexAccessExpression:"IndexAccessExpression",InequalityExpression:"InequalityExpression",InheritanceSpecifier:"InheritanceSpecifier",InheritanceType:"InheritanceType",InheritanceTypes:"InheritanceTypes",InterfaceDefinition:"InterfaceDefinition",InterfaceMembers:"InterfaceMembers",LibraryDefinition:"LibraryDefinition",LibraryMembers:"LibraryMembers",MappingKey:"MappingKey",MappingKeyType:"MappingKeyType",MappingType:"MappingType",MappingValue:"MappingValue",MemberAccessExpression:"MemberAccessExpression",ModifierAttribute:"ModifierAttribute",ModifierAttributes:"ModifierAttributes",ModifierDefinition:"ModifierDefinition",ModifierInvocation:"ModifierInvocation",MultiplicativeExpression:"MultiplicativeExpression",NamedArgument:"NamedArgument",NamedArgumentGroup:"NamedArgumentGroup",NamedArguments:"NamedArguments",NamedArgumentsDeclaration:"NamedArgumentsDeclaration",NamedImport:"NamedImport",NewExpression:"NewExpression",NumberUnit:"NumberUnit",OrExpression:"OrExpression",OverridePaths:"OverridePaths",OverridePathsDeclaration:"OverridePathsDeclaration",OverrideSpecifier:"OverrideSpecifier",Parameter:"Parameter",Parameters:"Parameters",ParametersDeclaration:"ParametersDeclaration",PathImport:"PathImport",PositionalArguments:"PositionalArguments",PositionalArgumentsDeclaration:"PositionalArgumentsDeclaration",PostfixExpression:"PostfixExpression",Pragma:"Pragma",PragmaDirective:"PragmaDirective",PrefixExpression:"PrefixExpression",ReceiveFunctionAttribute:"ReceiveFunctionAttribute",ReceiveFunctionAttributes:"ReceiveFunctionAttributes",ReceiveFunctionDefinition:"ReceiveFunctionDefinition",ReturnStatement:"ReturnStatement",ReturnsDeclaration:"ReturnsDeclaration",RevertStatement:"RevertStatement",ShiftExpression:"ShiftExpression",SimpleVersionLiteral:"SimpleVersionLiteral",SourceUnit:"SourceUnit",SourceUnitMember:"SourceUnitMember",SourceUnitMembers:"SourceUnitMembers",StateVariableAttribute:"StateVariableAttribute",StateVariableAttributes:"StateVariableAttributes",StateVariableDefinition:"StateVariableDefinition",StateVariableDefinitionValue:"StateVariableDefinitionValue",Statement:"Statement",Statements:"Statements",StorageLayoutSpecifier:"StorageLayoutSpecifier",StorageLocation:"StorageLocation",StringExpression:"StringExpression",StringLiteral:"StringLiteral",StringLiterals:"StringLiterals",StructDefinition:"StructDefinition",StructMember:"StructMember",StructMembers:"StructMembers",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",TupleDeconstructionElement:"TupleDeconstructionElement",TupleDeconstructionElements:"TupleDeconstructionElements",TupleDeconstructionStatement:"TupleDeconstructionStatement",TupleExpression:"TupleExpression",TupleMember:"TupleMember",TupleValue:"TupleValue",TupleValues:"TupleValues",TypeExpression:"TypeExpression",TypeName:"TypeName",TypedTupleMember:"TypedTupleMember",UncheckedBlock:"UncheckedBlock",UnicodeStringLiteral:"UnicodeStringLiteral",UnicodeStringLiterals:"UnicodeStringLiterals",UnnamedFunctionAttribute:"UnnamedFunctionAttribute",UnnamedFunctionAttributes:"UnnamedFunctionAttributes",UnnamedFunctionDefinition:"UnnamedFunctionDefinition",UntypedTupleMember:"UntypedTupleMember",UserDefinedValueTypeDefinition:"UserDefinedValueTypeDefinition",UsingAlias:"UsingAlias",UsingClause:"UsingClause",UsingDeconstruction:"UsingDeconstruction",UsingDeconstructionSymbol:"UsingDeconstructionSymbol",UsingDeconstructionSymbols:"UsingDeconstructionSymbols",UsingDirective:"UsingDirective",UsingOperator:"UsingOperator",UsingTarget:"UsingTarget",VariableDeclarationStatement:"VariableDeclarationStatement",VariableDeclarationType:"VariableDeclarationType",VariableDeclarationValue:"VariableDeclarationValue",VersionExpression:"VersionExpression",VersionExpressionSet:"VersionExpressionSet",VersionExpressionSets:"VersionExpressionSets",VersionLiteral:"VersionLiteral",VersionOperator:"VersionOperator",VersionPragma:"VersionPragma",VersionRange:"VersionRange",VersionTerm:"VersionTerm",WhileStatement:"WhileStatement",YulArguments:"YulArguments",YulAssignmentOperator:"YulAssignmentOperator",YulBlock:"YulBlock",YulBreakStatement:"YulBreakStatement",YulColonAndEqual:"YulColonAndEqual",YulContinueStatement:"YulContinueStatement",YulDefaultCase:"YulDefaultCase",YulEqualAndColon:"YulEqualAndColon",YulExpression:"YulExpression",YulForStatement:"YulForStatement",YulFunctionCallExpression:"YulFunctionCallExpression",YulFunctionDefinition:"YulFunctionDefinition",YulIfStatement:"YulIfStatement",YulLabel:"YulLabel",YulLeaveStatement:"YulLeaveStatement",YulLiteral:"YulLiteral",YulParameters:"YulParameters",YulParametersDeclaration:"YulParametersDeclaration",YulPath:"YulPath",YulPaths:"YulPaths",YulReturnsDeclaration:"YulReturnsDeclaration",YulStackAssignmentOperator:"YulStackAssignmentOperator",YulStackAssignmentStatement:"YulStackAssignmentStatement",YulStatement:"YulStatement",YulStatements:"YulStatements",YulSwitchCase:"YulSwitchCase",YulSwitchCases:"YulSwitchCases",YulSwitchStatement:"YulSwitchStatement",YulValueCase:"YulValueCase",YulVariableAssignmentStatement:"YulVariableAssignmentStatement",YulVariableDeclarationStatement:"YulVariableDeclarationStatement",YulVariableDeclarationValue:"YulVariableDeclarationValue",YulVariableNames:"YulVariableNames"},NonterminalNode:et,Query:yr,QueryMatchIterator:fr,TerminalKind:{Unrecognized:"Unrecognized",Missing:"Missing",ABIEncoderV2Keyword:"ABIEncoderV2Keyword",AbicoderKeyword:"AbicoderKeyword",AbicoderV1Keyword:"AbicoderV1Keyword",AbicoderV2Keyword:"AbicoderV2Keyword",AbstractKeyword:"AbstractKeyword",AddressKeyword:"AddressKeyword",AfterKeyword:"AfterKeyword",AliasKeyword:"AliasKeyword",Ampersand:"Ampersand",AmpersandAmpersand:"AmpersandAmpersand",AmpersandEqual:"AmpersandEqual",AnonymousKeyword:"AnonymousKeyword",ApplyKeyword:"ApplyKeyword",AsKeyword:"AsKeyword",AssemblyKeyword:"AssemblyKeyword",Asterisk:"Asterisk",AsteriskAsterisk:"AsteriskAsterisk",AsteriskEqual:"AsteriskEqual",AtKeyword:"AtKeyword",AutoKeyword:"AutoKeyword",Bang:"Bang",BangEqual:"BangEqual",Bar:"Bar",BarBar:"BarBar",BarEqual:"BarEqual",BoolKeyword:"BoolKeyword",BreakKeyword:"BreakKeyword",ByteKeyword:"ByteKeyword",BytesKeyword:"BytesKeyword",CallDataKeyword:"CallDataKeyword",Caret:"Caret",CaretEqual:"CaretEqual",CaseKeyword:"CaseKeyword",CatchKeyword:"CatchKeyword",CloseBrace:"CloseBrace",CloseBracket:"CloseBracket",CloseParen:"CloseParen",Colon:"Colon",ColonEqual:"ColonEqual",Comma:"Comma",ConstantKeyword:"ConstantKeyword",ConstructorKeyword:"ConstructorKeyword",ContinueKeyword:"ContinueKeyword",ContractKeyword:"ContractKeyword",CopyOfKeyword:"CopyOfKeyword",DaysKeyword:"DaysKeyword",DecimalLiteral:"DecimalLiteral",DefaultKeyword:"DefaultKeyword",DefineKeyword:"DefineKeyword",DeleteKeyword:"DeleteKeyword",DoKeyword:"DoKeyword",DoubleQuotedHexStringLiteral:"DoubleQuotedHexStringLiteral",DoubleQuotedStringLiteral:"DoubleQuotedStringLiteral",DoubleQuotedUnicodeStringLiteral:"DoubleQuotedUnicodeStringLiteral",DoubleQuotedVersionLiteral:"DoubleQuotedVersionLiteral",ElseKeyword:"ElseKeyword",EmitKeyword:"EmitKeyword",EndOfLine:"EndOfLine",EnumKeyword:"EnumKeyword",Equal:"Equal",EqualColon:"EqualColon",EqualEqual:"EqualEqual",EqualGreaterThan:"EqualGreaterThan",ErrorKeyword:"ErrorKeyword",EtherKeyword:"EtherKeyword",EventKeyword:"EventKeyword",ExperimentalKeyword:"ExperimentalKeyword",ExternalKeyword:"ExternalKeyword",FallbackKeyword:"FallbackKeyword",FalseKeyword:"FalseKeyword",FinalKeyword:"FinalKeyword",FinneyKeyword:"FinneyKeyword",FixedKeyword:"FixedKeyword",ForKeyword:"ForKeyword",FromKeyword:"FromKeyword",FunctionKeyword:"FunctionKeyword",GlobalKeyword:"GlobalKeyword",GreaterThan:"GreaterThan",GreaterThanEqual:"GreaterThanEqual",GreaterThanGreaterThan:"GreaterThanGreaterThan",GreaterThanGreaterThanEqual:"GreaterThanGreaterThanEqual",GreaterThanGreaterThanGreaterThan:"GreaterThanGreaterThanGreaterThan",GreaterThanGreaterThanGreaterThanEqual:"GreaterThanGreaterThanGreaterThanEqual",GweiKeyword:"GweiKeyword",HexKeyword:"HexKeyword",HexLiteral:"HexLiteral",HoursKeyword:"HoursKeyword",Identifier:"Identifier",IfKeyword:"IfKeyword",ImmutableKeyword:"ImmutableKeyword",ImplementsKeyword:"ImplementsKeyword",ImportKeyword:"ImportKeyword",InKeyword:"InKeyword",IndexedKeyword:"IndexedKeyword",InlineKeyword:"InlineKeyword",IntKeyword:"IntKeyword",InterfaceKeyword:"InterfaceKeyword",InternalKeyword:"InternalKeyword",IsKeyword:"IsKeyword",LayoutKeyword:"LayoutKeyword",LessThan:"LessThan",LessThanEqual:"LessThanEqual",LessThanLessThan:"LessThanLessThan",LessThanLessThanEqual:"LessThanLessThanEqual",LetKeyword:"LetKeyword",LibraryKeyword:"LibraryKeyword",MacroKeyword:"MacroKeyword",MappingKeyword:"MappingKeyword",MatchKeyword:"MatchKeyword",MemoryKeyword:"MemoryKeyword",Minus:"Minus",MinusEqual:"MinusEqual",MinusGreaterThan:"MinusGreaterThan",MinusMinus:"MinusMinus",MinutesKeyword:"MinutesKeyword",ModifierKeyword:"ModifierKeyword",MultiLineComment:"MultiLineComment",MultiLineNatSpecComment:"MultiLineNatSpecComment",MutableKeyword:"MutableKeyword",NewKeyword:"NewKeyword",NullKeyword:"NullKeyword",OfKeyword:"OfKeyword",OpenBrace:"OpenBrace",OpenBracket:"OpenBracket",OpenParen:"OpenParen",OverrideKeyword:"OverrideKeyword",PartialKeyword:"PartialKeyword",PayableKeyword:"PayableKeyword",Percent:"Percent",PercentEqual:"PercentEqual",Period:"Period",Plus:"Plus",PlusEqual:"PlusEqual",PlusPlus:"PlusPlus",PragmaKeyword:"PragmaKeyword",PrivateKeyword:"PrivateKeyword",PromiseKeyword:"PromiseKeyword",PublicKeyword:"PublicKeyword",PureKeyword:"PureKeyword",QuestionMark:"QuestionMark",ReceiveKeyword:"ReceiveKeyword",ReferenceKeyword:"ReferenceKeyword",RelocatableKeyword:"RelocatableKeyword",ReturnKeyword:"ReturnKeyword",ReturnsKeyword:"ReturnsKeyword",RevertKeyword:"RevertKeyword",SMTCheckerKeyword:"SMTCheckerKeyword",SealedKeyword:"SealedKeyword",SecondsKeyword:"SecondsKeyword",Semicolon:"Semicolon",SingleLineComment:"SingleLineComment",SingleLineNatSpecComment:"SingleLineNatSpecComment",SingleQuotedHexStringLiteral:"SingleQuotedHexStringLiteral",SingleQuotedStringLiteral:"SingleQuotedStringLiteral",SingleQuotedUnicodeStringLiteral:"SingleQuotedUnicodeStringLiteral",SingleQuotedVersionLiteral:"SingleQuotedVersionLiteral",SizeOfKeyword:"SizeOfKeyword",Slash:"Slash",SlashEqual:"SlashEqual",SolidityKeyword:"SolidityKeyword",StaticKeyword:"StaticKeyword",StorageKeyword:"StorageKeyword",StringKeyword:"StringKeyword",StructKeyword:"StructKeyword",SuperKeyword:"SuperKeyword",SupportsKeyword:"SupportsKeyword",SwitchKeyword:"SwitchKeyword",SzaboKeyword:"SzaboKeyword",ThisKeyword:"ThisKeyword",ThrowKeyword:"ThrowKeyword",Tilde:"Tilde",TransientKeyword:"TransientKeyword",TrueKeyword:"TrueKeyword",TryKeyword:"TryKeyword",TypeDefKeyword:"TypeDefKeyword",TypeKeyword:"TypeKeyword",TypeOfKeyword:"TypeOfKeyword",UfixedKeyword:"UfixedKeyword",UintKeyword:"UintKeyword",UncheckedKeyword:"UncheckedKeyword",UsingKeyword:"UsingKeyword",VarKeyword:"VarKeyword",VersionSpecifier:"VersionSpecifier",ViewKeyword:"ViewKeyword",VirtualKeyword:"VirtualKeyword",WeeksKeyword:"WeeksKeyword",WeiKeyword:"WeiKeyword",WhileKeyword:"WhileKeyword",Whitespace:"Whitespace",YearsKeyword:"YearsKeyword",YulAbstractKeyword:"YulAbstractKeyword",YulAfterKeyword:"YulAfterKeyword",YulAliasKeyword:"YulAliasKeyword",YulAnonymousKeyword:"YulAnonymousKeyword",YulApplyKeyword:"YulApplyKeyword",YulAsKeyword:"YulAsKeyword",YulAssemblyKeyword:"YulAssemblyKeyword",YulAutoKeyword:"YulAutoKeyword",YulBoolKeyword:"YulBoolKeyword",YulBreakKeyword:"YulBreakKeyword",YulBytesKeyword:"YulBytesKeyword",YulCallDataKeyword:"YulCallDataKeyword",YulCaseKeyword:"YulCaseKeyword",YulCatchKeyword:"YulCatchKeyword",YulConstantKeyword:"YulConstantKeyword",YulConstructorKeyword:"YulConstructorKeyword",YulContinueKeyword:"YulContinueKeyword",YulContractKeyword:"YulContractKeyword",YulCopyOfKeyword:"YulCopyOfKeyword",YulDaysKeyword:"YulDaysKeyword",YulDecimalLiteral:"YulDecimalLiteral",YulDefaultKeyword:"YulDefaultKeyword",YulDefineKeyword:"YulDefineKeyword",YulDeleteKeyword:"YulDeleteKeyword",YulDoKeyword:"YulDoKeyword",YulElseKeyword:"YulElseKeyword",YulEmitKeyword:"YulEmitKeyword",YulEnumKeyword:"YulEnumKeyword",YulEtherKeyword:"YulEtherKeyword",YulEventKeyword:"YulEventKeyword",YulExternalKeyword:"YulExternalKeyword",YulFallbackKeyword:"YulFallbackKeyword",YulFalseKeyword:"YulFalseKeyword",YulFinalKeyword:"YulFinalKeyword",YulFinneyKeyword:"YulFinneyKeyword",YulFixedKeyword:"YulFixedKeyword",YulForKeyword:"YulForKeyword",YulFunctionKeyword:"YulFunctionKeyword",YulGweiKeyword:"YulGweiKeyword",YulHexKeyword:"YulHexKeyword",YulHexLiteral:"YulHexLiteral",YulHoursKeyword:"YulHoursKeyword",YulIdentifier:"YulIdentifier",YulIfKeyword:"YulIfKeyword",YulImmutableKeyword:"YulImmutableKeyword",YulImplementsKeyword:"YulImplementsKeyword",YulImportKeyword:"YulImportKeyword",YulInKeyword:"YulInKeyword",YulIndexedKeyword:"YulIndexedKeyword",YulInlineKeyword:"YulInlineKeyword",YulIntKeyword:"YulIntKeyword",YulInterfaceKeyword:"YulInterfaceKeyword",YulInternalKeyword:"YulInternalKeyword",YulIsKeyword:"YulIsKeyword",YulLeaveKeyword:"YulLeaveKeyword",YulLetKeyword:"YulLetKeyword",YulLibraryKeyword:"YulLibraryKeyword",YulMacroKeyword:"YulMacroKeyword",YulMappingKeyword:"YulMappingKeyword",YulMatchKeyword:"YulMatchKeyword",YulMemoryKeyword:"YulMemoryKeyword",YulMinutesKeyword:"YulMinutesKeyword",YulModifierKeyword:"YulModifierKeyword",YulMutableKeyword:"YulMutableKeyword",YulNewKeyword:"YulNewKeyword",YulNullKeyword:"YulNullKeyword",YulOfKeyword:"YulOfKeyword",YulOverrideKeyword:"YulOverrideKeyword",YulPartialKeyword:"YulPartialKeyword",YulPayableKeyword:"YulPayableKeyword",YulPragmaKeyword:"YulPragmaKeyword",YulPrivateKeyword:"YulPrivateKeyword",YulPromiseKeyword:"YulPromiseKeyword",YulPublicKeyword:"YulPublicKeyword",YulPureKeyword:"YulPureKeyword",YulReceiveKeyword:"YulReceiveKeyword",YulReferenceKeyword:"YulReferenceKeyword",YulRelocatableKeyword:"YulRelocatableKeyword",YulReturnsKeyword:"YulReturnsKeyword",YulSealedKeyword:"YulSealedKeyword",YulSecondsKeyword:"YulSecondsKeyword",YulSizeOfKeyword:"YulSizeOfKeyword",YulStaticKeyword:"YulStaticKeyword",YulStorageKeyword:"YulStorageKeyword",YulStringKeyword:"YulStringKeyword",YulStructKeyword:"YulStructKeyword",YulSuperKeyword:"YulSuperKeyword",YulSupportsKeyword:"YulSupportsKeyword",YulSwitchKeyword:"YulSwitchKeyword",YulSzaboKeyword:"YulSzaboKeyword",YulThisKeyword:"YulThisKeyword",YulThrowKeyword:"YulThrowKeyword",YulTrueKeyword:"YulTrueKeyword",YulTryKeyword:"YulTryKeyword",YulTypeDefKeyword:"YulTypeDefKeyword",YulTypeKeyword:"YulTypeKeyword",YulTypeOfKeyword:"YulTypeOfKeyword",YulUfixedKeyword:"YulUfixedKeyword",YulUintKeyword:"YulUintKeyword",YulUncheckedKeyword:"YulUncheckedKeyword",YulUsingKeyword:"YulUsingKeyword",YulVarKeyword:"YulVarKeyword",YulViewKeyword:"YulViewKeyword",YulVirtualKeyword:"YulVirtualKeyword",YulWeeksKeyword:"YulWeeksKeyword",YulWeiKeyword:"YulWeiKeyword",YulWhileKeyword:"YulWhileKeyword",YulYearsKeyword:"YulYearsKeyword"},TerminalKindExtensions:Be,TerminalNode:Pt,TextIndexExtensions:gr},Ri={ParseOutput:cs,Parser:Zr},Ai={LanguageFacts:Os};r.d(t,["K3",0,Ri,"Rj",0,Si,"Wp",0,Ai,"tQ",0,ki]),s()}catch(Ci){s(Ci)}},1)},1901(e,t,r){r.a(e,async(e,s)=>{try{r.d(t,{K3:()=>i.K3,Rj:()=>i.Rj,Wp:()=>i.Wp,tQ:()=>i.tQ});var i=r(1406),n=e([i]),a=n.then?(await n)():n;i=a[0],s()}catch(e){s(e)}})},4687(e,t,r){r.d(t,{tN:()=>N,X5:()=>P,rN:()=>K,bd:()=>L,F7:()=>I});var s=r(838);const{addLeadingComment:i,addTrailingComment:n,addDanglingComment:a,hasNewline:o,hasNewlineInRange:c,getNextNonSpaceNonCommentCharacter:l,getNextNonSpaceNonCommentCharacterIndex:h}=s.util;function u(e,t){if(!e.body)return void a(e,t);const r=e.body.filter(e=>"EmptyStatement"!==e.type);0===r.length?a(e,t):i(r[0],t)}function d(e,t){"BlockStatement"===e.type?u(e,t):i(e,t)}function p(e,t,r,s,o,c){return!(!r||"IfStatement"!==r.type||!s)&&(")"===l(e,c.locEnd(o))?(n(t,o),!0):t===r.trueBody&&s===r.falseBody?("ExpressionStatement"===t.type?n(t,o):a(r,o),!0):"ExpressionStatement"===s.type?(u(s,o),!0):"IfStatement"===s.type?(d(s.trueBody,o),!0):r.trueBody===s&&(i(s,o),!0))}function m(e,t,r,s,i,a){return!(!r||"WhileStatement"!==r.type||!s)&&(")"===l(e,a.locEnd(i))?(n(t,i),!0):"BlockStatement"===s.type&&(u(s,i),!0))}function y(e,t,r,s){return!(!e||"TryStatement"!==e.type&&"CatchClause"!==e.type||!r||("CatchClause"===e.type&&t?(n(t,s),0):"BlockStatement"===r.type?(u(r,s),0):"TryStatement"===r.type?(d(r.finalizer,s),0):"CatchClause"!==r.type||(d(r.body,s),0)))}function f(e,t,r,s){return!(!(e&&("ClassDeclaration"===e.type||"ClassExpression"===e.type)&&e.decorators&&e.decorators.length>0)||r&&"Decorator"===r.type||(e.decorators&&0!==e.decorators.length?n(e.decorators[e.decorators.length-1],s):i(e,s),0))}function g(e,t,r,s,i){return(t&&r&&("Property"===t.type||"MethodDefinition"===t.type)&&"Identifier"===r.type&&t.key===r&&":"!==l(e,i.locEnd(r))||!(!r||!t||"Decorator"!==r.type||"ClassMethod"!==t.type&&"ClassProperty"!==t.type&&"TSAbstractClassProperty"!==t.type&&"TSAbstractMethodDefinition"!==t.type&&"MethodDefinition"!==t.type))&&(n(r,s),!0)}function w(e,t,r,s,i,a){return(t&&"FunctionTypeParam"===t.type&&r&&"FunctionTypeAnnotation"===r.type&&s&&"FunctionTypeParam"!==s.type||!(!t||"Identifier"!==t.type&&"AssignmentPattern"!==t.type||!r||"ArrowFunctionExpression"!==r.type&&"FunctionExpression"!==r.type&&"FunctionDeclaration"!==r.type&&"ObjectMethod"!==r.type&&"ClassMethod"!==r.type||")"!==l(e,a.locEnd(i))))&&(n(t,i),!0)}function x(e,t){return!(!e||"ImportSpecifier"!==e.type||(i(e,t),0))}function v(e,t,r,s){return t&&t.body&&0===t.body.length?(s?a(t,r):i(t,r),!0):!(!e||"Program"!==e.type||0!==e.body.length||!e.directives||0!==e.directives.length||(s?a(e,r):i(e,r),0))}const{addLeadingComment:b,addTrailingComment:_,addDanglingComment:E,getNextNonSpaceNonCommentCharacter:T}=s.util,{addLeadingComment:S,addTrailingComment:k,addDanglingComment:R,getNextNonSpaceNonCommentCharacter:A}=s.util,C=[function({text:e,precedingNode:t,enclosingNode:r,followingNode:s,comment:i,options:n}){if(!r||"ContractDefinition"!==r.type)return!1;const a=T(e,n.locEnd(i));return s&&("InheritanceSpecifier"===s.type||s===r.storageLayout)||"{"===a?!t||"InheritanceSpecifier"!==t.type&&t!==r.storageLayout?(b(r,i),!0):(_(t,i),!0):0===r.subNodes.length&&(E(r,i),!0)},function({text:e,precedingNode:t,enclosingNode:r,comment:s,options:i}){if(!r||"ModifierInvocation"!==r.type)return!1;const n=A(e,i.locEnd(s));return"("===n?(S(r,s),!0):")"===n&&(t?(k(t,s),!0):"LineComment"===s.type?(S(r,s),!0):(R(r,s),!0))}];function L(e,t,r,s,a){const{precedingNode:c,enclosingNode:l,followingNode:h}=e,u={text:t,precedingNode:c,enclosingNode:l,followingNode:h,comment:e,options:r};return!(!C.some(e=>e(u))&&!function(e,t,r,s,a){const{precedingNode:c,enclosingNode:l,followingNode:h}=e;return!!(w(t,c,l,h,e,r)||function(e,t,r){return!(!e||"MemberExpression"!==e.type||!t||"Identifier"!==t.type||(i(e,r),0))}(l,h,e)||p(t,c,l,h,e,r)||m(t,c,l,h,e,r)||y(l,c,h,e)||f(l,0,h,e)||x(l,e)||function(e,t,r){return!(!e||"ForInStatement"!==e.type&&"ForOfStatement"!==e.type||(i(e,r),0))}(l,0,e)||function(e,t,r,s){return!(!t||"UnionTypeAnnotation"!==t.type&&"TSUnionType"!==t.type||(n(e,s),0))}(c,l,0,e)||v(l,s,e,a)||function(e,t,r,s,i){return!!(r&&"ImportSpecifier"===r.type&&t&&"ImportDeclaration"===t.type&&o(e,i.locEnd(s)))&&(n(r,s),!0)}(t,l,c,e,r)||function(e,t){return!(!e||"AssignmentPattern"!==e.type||(i(e,t),0))}(l,e)||g(t,l,c,e,r))}(e,t,r,s,a))}function K(e,t,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:l}=e,h={text:t,precedingNode:a,enclosingNode:o,followingNode:l,comment:e,options:r};return!(!C.some(e=>e(h))&&!function(e,t,r,s,n){const{precedingNode:a,enclosingNode:o,followingNode:l}=e;return!!(w(t,a,o,l,e,r)||function(e,t,r,s,n,a){const o=t&&!c(n,a.locEnd(t),a.locStart(s));return!(t&&o||!e||"ConditionalExpression"!==e.type||!r||(i(r,s),0))}(o,a,l,e,t,r)||x(o,e)||p(t,a,o,l,e,r)||m(t,a,o,l,e,r)||y(o,a,l,e)||f(o,0,l,e)||function(e,t){return!(!e||"LabeledStatement"!==e.type||(i(e,t),0))}(o,e)||function(e,t,r){return!!(t&&"CallExpression"===t.type&&e&&t.callee===e&&t.arguments.length>0)&&(i(t.arguments[0],r),!0)}(a,o,e)||function(e,t){return!(!e||"Property"!==e.type&&"ObjectProperty"!==e.type||(i(e,t),0))}(o,e)||v(o,s,e,n)||function(e,t,r){return!(!e||"TypeAlias"!==e.type||(i(e,r),0))}(o,0,e)||function(e,t,r){return!(!e||"VariableDeclarator"!==e.type&&"AssignmentExpression"!==e.type||!t||"ObjectExpression"!==t.type&&"ArrayExpression"!==t.type&&"TemplateLiteral"!==t.type&&"TaggedTemplateExpression"!==t.type||(i(t,r),0))}(o,l,e))}(e,t,r,s,n))}function I(e,t,r,s,o){const{precedingNode:c,enclosingNode:u,followingNode:d}=e,y={text:t,precedingNode:c,enclosingNode:u,followingNode:d,comment:e,options:r};return!(!C.some(e=>e(y))&&!function(e,t,r,s,o){const{precedingNode:c,enclosingNode:u,followingNode:d}=e;return!!(p(t,c,u,d,e,r)||m(t,c,u,d,e,r)||function(e,t,r){return!(!e||"ObjectProperty"!==e.type&&"Property"!==e.type||!e.shorthand||e.key!==t||"AssignmentPattern"!==e.value.type||(n(e.value.left,r),0))}(u,c,e)||function(e,t,r,s){return!(")"!==l(e,s.locEnd(r))||(!t||("FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&("ArrowFunctionExpression"!==t.type||"CallExpression"===t.body.type&&0!==t.body.arguments.length)&&"ClassMethod"!==t.type&&"ObjectMethod"!==t.type||0!==t.params.length)&&("CallExpression"!==t.type&&"NewExpression"!==t.type||0!==t.arguments.length)?!t||"MethodDefinition"!==t.type||0!==t.value.params.length||(a(t.value,r),0):(a(t,r),0)))}(t,u,e,r)||g(t,u,c,e,r)||v(u,s,e,o)||function(e,t,r,s){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const i=h(e,s.locEnd(r));return"=>"===e.substr(i,2)&&(a(t,r),!0)}(t,u,e,r)||function(e,t,r,s,i){return!("("!==l(e,i.locEnd(s))||!r||!t||"FunctionDeclaration"!==t.type&&"FunctionExpression"!==t.type&&"ClassMethod"!==t.type&&"MethodDefinition"!==t.type&&"ObjectMethod"!==t.type||(n(r,s),0))}(t,u,c,e,r)||function(e,t,r,s,a){return!(!t||"TSMappedType"!==t.type||(s&&"TSTypeParameter"===s.type&&s.name?(i(s.name,a),0):!r||"TSTypeParameter"!==r.type||!r.constraint||(n(r.constraint,a),0)))}(0,u,c,d,e)||function(e,t){return!(!e||"ContinueStatement"!==e.type&&"BreakStatement"!==e.type||e.label||(n(e,t),0))}(u,e))}(e,t,r,s,o))}function N(e){return"BlockComment"===e.type}const{hardline:O,join:D}=s.doc.builders;function P(e,t){const r=e.getValue();switch(r.type){case"BlockComment":if(function(e){const t=`*${e.value}*`.split("\n");return t.length>1&&t.every(e=>"*"===e.trim()[0])}(r)){const e=function(e){const t=e.value.split("\n");return["/*",D(O,t.map((e,r)=>0===r?e.trimEnd():` ${r<t.length-1?e.trim():e.trimStart()}`)),"*/"]}(r);return r.trailing&&!s.util.hasNewline(t.originalText,t.locStart(r),{backwards:!0})?[O,e]:e}return`/*${r.value}*/`;case"LineComment":return`//${r.value.trimEnd()}`;default:throw new Error(`Not a comment: ${JSON.stringify(r)}`)}}},2101(e,t,r){function s(e){console.warn(`\r[prettier-solidity] ${e}`)}r.d(t,{o:()=>s})},7671(e,t,r){function s(e,t){return t.range?t.range[e]:t.expression?.range?t.expression.range[e]:null}const i={locEnd:e=>s(1,e),locStart:e=>s(0,e)};r.d(t,["A",0,i])},5767(e,t,r){r.d(t,{A:()=>c});var s=r.cjs(function(e,t){var r;"undefined"!=typeof globalThis||"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self&&self,r=()=>{var e=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,i={};((t,r)=>{for(var s in r)e(t,s,{get:r[s],enumerable:!0})})(i,{ParserError:()=>Ot,default:()=>Ft,parse:()=>Pt,tokenize:()=>Dt,visit:()=>qt});var n={92:()=>{}},a={};function o(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return n[e](r,r.exports,o),r.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var c={};(()=>{o.d(c,{dx:()=>W,q2:()=>Ae,FO:()=>Et,xf:()=>kt,Gy:()=>Lt,s4:()=>Ne,c7:()=>Ot,_7:()=>ct,tx:()=>_t,gp:()=>xt,cK:()=>Ce,zs:()=>gt,AV:()=>kt,Xp:()=>x,VS:()=>v,ul:()=>z,hW:()=>Me,x1:()=>Xe,z5:()=>tt,oN:()=>dt,TB:()=>pt,u1:()=>mt,_b:()=>Pt,$F:()=>st,_T:()=>Ft,db:()=>it,Zx:()=>et,_x:()=>Pe,r8:()=>q,JI:()=>I,TP:()=>N,WU:()=>e,Nj:()=>h,ZP:()=>Xt});class e{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(e){this._text=e}}function t(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!(e[r]===t[r]||e[r].equals&&e[r].equals(t[r])))return!1;return!0}e.INVALID_TYPE=0,e.EPSILON=-2,e.MIN_USER_TOKEN_TYPE=1,e.EOF=-1,e.DEFAULT_CHANNEL=0,e.HIDDEN_CHANNEL=1;const r=Math.round(Math.random()*Math.pow(2,32));function s(e){if(!e)return 0;const t=typeof e,s="string"===t?e:!("object"!==t||!e.toString)&&e.toString();if(!s)return 0;let i,n;const a=3&s.length,o=s.length-a;let c=r;const l=3432918353,h=461845907;let u=0;for(;u<o;)n=255&s.charCodeAt(u)|(255&s.charCodeAt(++u))<<8|(255&s.charCodeAt(++u))<<16|(255&s.charCodeAt(++u))<<24,++u,n=(65535&n)*l+(((n>>>16)*l&65535)<<16)&4294967295,n=n<<15|n>>>17,n=(65535&n)*h+(((n>>>16)*h&65535)<<16)&4294967295,c^=n,c=c<<13|c>>>19,i=5*(65535&c)+((5*(c>>>16)&65535)<<16)&4294967295,c=27492+(65535&i)+((58964+(i>>>16)&65535)<<16);switch(n=0,a){case 3:n^=(255&s.charCodeAt(u+2))<<16;case 2:n^=(255&s.charCodeAt(u+1))<<8;case 1:n^=255&s.charCodeAt(u),n=(65535&n)*l+(((n>>>16)*l&65535)<<16)&4294967295,n=n<<15|n>>>17,n=(65535&n)*h+(((n>>>16)*h&65535)<<16)&4294967295,c^=n}return c^=s.length,c^=c>>>16,c=2246822507*(65535&c)+((2246822507*(c>>>16)&65535)<<16)&4294967295,c^=c>>>13,c=3266489909*(65535&c)+((3266489909*(c>>>16)&65535)<<16)&4294967295,c^=c>>>16,c>>>0}class i{constructor(){this.count=0,this.hash=0}update(){for(let e=0;e<arguments.length;e++){const t=arguments[e];if(null!=t)if(Array.isArray(t))this.update.apply(this,t);else{let e=0;switch(typeof t){case"undefined":case"function":continue;case"number":case"boolean":e=t;break;case"string":e=s(t);break;default:t.updateHashCode?t.updateHashCode(this):console.log("No updateHashCode for "+t.toString());continue}e*=3432918353,e=e<<15|e>>>17,e*=461845907,this.count=this.count+1;let r=this.hash^e;r=r<<13|r>>>19,r=5*r+3864292196,this.hash=r}}}finish(){let e=this.hash^4*this.count;return e^=e>>>16,e*=2246822507,e^=e>>>13,e*=3266489909,e^=e>>>16,e}static hashStuff(){const e=new i;return e.update.apply(e,arguments),e.finish()}}function n(e){return e?"string"==typeof e?s(e):e.hashCode():-1}function a(e,t){return e?e.equals(t):e===t}function l(e){return null===e?"null":e}function h(e){return Array.isArray(e)?"["+e.map(l).join(", ")+"]":"null"}const u="h-";class d{constructor(e,t){this.data={},this.hashFunction=e||n,this.equalsFunction=t||a}add(e){const t=u+this.hashFunction(e);if(t in this.data){const r=this.data[t];for(let t=0;t<r.length;t++)if(this.equalsFunction(e,r[t]))return r[t];return r.push(e),e}return this.data[t]=[e],e}has(e){return null!=this.get(e)}get(e){const t=u+this.hashFunction(e);if(t in this.data){const r=this.data[t];for(let t=0;t<r.length;t++)if(this.equalsFunction(e,r[t]))return r[t]}return null}values(){return Object.keys(this.data).filter(e=>e.startsWith(u)).flatMap(e=>this.data[e],this)}toString(){return h(this.values())}get length(){return Object.keys(this.data).filter(e=>e.startsWith(u)).map(e=>this.data[e].length,this).reduce((e,t)=>e+t,0)}}class p{hashCode(){const e=new i;return this.updateHashCode(e),e.finish()}evaluate(e,t){}evalPrecedence(e,t){return this}static andContext(e,t){if(null===e||e===p.NONE)return t;if(null===t||t===p.NONE)return e;const r=new m(e,t);return 1===r.opnds.length?r.opnds[0]:r}static orContext(e,t){if(null===e)return t;if(null===t)return e;if(e===p.NONE||t===p.NONE)return p.NONE;const r=new y(e,t);return 1===r.opnds.length?r.opnds[0]:r}}class m extends p{constructor(e,t){super();const r=new d;e instanceof m?e.opnds.map(function(e){r.add(e)}):r.add(e),t instanceof m?t.opnds.map(function(e){r.add(e)}):r.add(t);const s=f(r);if(s.length>0){let e=null;s.map(function(t){(null===e||t.precedence<e.precedence)&&(e=t)}),r.add(e)}this.opnds=Array.from(r.values())}equals(e){return this===e||e instanceof m&&t(this.opnds,e.opnds)}updateHashCode(e){e.update(this.opnds,"AND")}evaluate(e,t){for(let r=0;r<this.opnds.length;r++)if(!this.opnds[r].evaluate(e,t))return!1;return!0}evalPrecedence(e,t){let r=!1;const s=[];for(let i=0;i<this.opnds.length;i++){const n=this.opnds[i],a=n.evalPrecedence(e,t);if(r|=a!==n,null===a)return null;a!==p.NONE&&s.push(a)}if(!r)return this;if(0===s.length)return p.NONE;let i=null;return s.map(function(e){i=null===i?e:p.andContext(i,e)}),i}toString(){const e=this.opnds.map(e=>e.toString());return(e.length>3?e.slice(3):e).join("&&")}}class y extends p{constructor(e,t){super();const r=new d;e instanceof y?e.opnds.map(function(e){r.add(e)}):r.add(e),t instanceof y?t.opnds.map(function(e){r.add(e)}):r.add(t);const s=f(r);if(s.length>0){const e=s.sort(function(e,t){return e.compareTo(t)}),t=e[e.length-1];r.add(t)}this.opnds=Array.from(r.values())}equals(e){return this===e||e instanceof y&&t(this.opnds,e.opnds)}updateHashCode(e){e.update(this.opnds,"OR")}evaluate(e,t){for(let r=0;r<this.opnds.length;r++)if(this.opnds[r].evaluate(e,t))return!0;return!1}evalPrecedence(e,t){let r=!1;const s=[];for(let i=0;i<this.opnds.length;i++){const n=this.opnds[i],a=n.evalPrecedence(e,t);if(r|=a!==n,a===p.NONE)return p.NONE;null!==a&&s.push(a)}return r?(0===s.length||s.map(function(e){return e}),null):this}toString(){const e=this.opnds.map(e=>e.toString());return(e.length>3?e.slice(3):e).join("||")}}function f(e){const t=[];return e.values().map(function(e){e instanceof p.PrecedencePredicate&&t.push(e)}),t}function g(e,t){if(null===e){const e={state:null,alt:null,context:null,semanticContext:null};return t&&(e.reachesIntoOuterContext=0),e}{const r={};return r.state=e.state||null,r.alt=void 0===e.alt?null:e.alt,r.context=e.context||null,r.semanticContext=e.semanticContext||null,t&&(r.reachesIntoOuterContext=e.reachesIntoOuterContext||0,r.precedenceFilterSuppressed=e.precedenceFilterSuppressed||!1),r}}class w{constructor(e,t){this.checkContext(e,t),e=g(e),t=g(t,!0),this.state=null!==e.state?e.state:t.state,this.alt=null!==e.alt?e.alt:t.alt,this.context=null!==e.context?e.context:t.context,this.semanticContext=null!==e.semanticContext?e.semanticContext:null!==t.semanticContext?t.semanticContext:p.NONE,this.reachesIntoOuterContext=t.reachesIntoOuterContext,this.precedenceFilterSuppressed=t.precedenceFilterSuppressed}checkContext(e,t){null!==e.context&&void 0!==e.context||null!==t&&null!==t.context&&void 0!==t.context||(this.context=null)}hashCode(){const e=new i;return this.updateHashCode(e),e.finish()}updateHashCode(e){e.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}equals(e){return this===e||e instanceof w&&this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&(null===this.context?null===e.context:this.context.equals(e.context))&&this.semanticContext.equals(e.semanticContext)&&this.precedenceFilterSuppressed===e.precedenceFilterSuppressed}hashCodeForConfigSet(){const e=new i;return e.update(this.state.stateNumber,this.alt,this.semanticContext),e.finish()}equalsForConfigSet(e){return this===e||e instanceof w&&this.state.stateNumber===e.state.stateNumber&&this.alt===e.alt&&this.semanticContext.equals(e.semanticContext)}toString(){return"("+this.state+","+this.alt+(null!==this.context?",["+this.context.toString()+"]":"")+(this.semanticContext!==p.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}class x{constructor(e,t){this.start=e,this.stop=t}clone(){return new x(this.start,this.stop)}contains(e){return e>=this.start&&e<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}}x.INVALID_INTERVAL=new x(-1,-2);class v{constructor(){this.intervals=null,this.readOnly=!1}first(t){return null===this.intervals||0===this.intervals.length?e.INVALID_TYPE:this.intervals[0].start}addOne(e){this.addInterval(new x(e,e+1))}addRange(e,t){this.addInterval(new x(e,t+1))}addInterval(e){if(null===this.intervals)this.intervals=[],this.intervals.push(e.clone());else{for(let t=0;t<this.intervals.length;t++){const r=this.intervals[t];if(e.stop<r.start)return void this.intervals.splice(t,0,e);if(e.stop===r.start)return void(this.intervals[t]=new x(e.start,r.stop));if(e.start<=r.stop)return this.intervals[t]=new x(Math.min(r.start,e.start),Math.max(r.stop,e.stop)),void this.reduce(t)}this.intervals.push(e.clone())}}addSet(e){return null!==e.intervals&&e.intervals.forEach(e=>this.addInterval(e),this),this}reduce(e){if(e<this.intervals.length-1){const t=this.intervals[e],r=this.intervals[e+1];t.stop>=r.stop?(this.intervals.splice(e+1,1),this.reduce(e)):t.stop>=r.start&&(this.intervals[e]=new x(t.start,r.stop),this.intervals.splice(e+1,1))}}complement(e,t){const r=new v;return r.addInterval(new x(e,t+1)),null!==this.intervals&&this.intervals.forEach(e=>r.removeRange(e)),r}contains(e){if(null===this.intervals)return!1;for(let t=0;t<this.intervals.length;t++)if(this.intervals[t].contains(e))return!0;return!1}removeRange(e){if(e.start===e.stop-1)this.removeOne(e.start);else if(null!==this.intervals){let t=0;for(let r=0;r<this.intervals.length;r++){const r=this.intervals[t];if(e.stop<=r.start)return;if(e.start>r.start&&e.stop<r.stop){this.intervals[t]=new x(r.start,e.start);const s=new x(e.stop,r.stop);return void this.intervals.splice(t,0,s)}e.start<=r.start&&e.stop>=r.stop?(this.intervals.splice(t,1),t-=1):e.start<r.stop?this.intervals[t]=new x(r.start,e.start):e.stop<r.stop&&(this.intervals[t]=new x(e.stop,r.stop)),t+=1}}}removeOne(e){if(null!==this.intervals)for(let t=0;t<this.intervals.length;t++){const r=this.intervals[t];if(e<r.start)return;if(e===r.start&&e===r.stop-1)return void this.intervals.splice(t,1);if(e===r.start)return void(this.intervals[t]=new x(r.start+1,r.stop));if(e===r.stop-1)return void(this.intervals[t]=new x(r.start,r.stop-1));if(e<r.stop-1){const s=new x(r.start,e);return r.start=e+1,void this.intervals.splice(t,0,s)}}}toString(e,t,r){return e=e||null,t=t||null,r=r||!1,null===this.intervals?"{}":null!==e||null!==t?this.toTokenString(e,t):r?this.toCharString():this.toIndexString()}toCharString(){const t=[];for(let r=0;r<this.intervals.length;r++){const s=this.intervals[r];s.stop===s.start+1?s.start===e.EOF?t.push("<EOF>"):t.push("'"+String.fromCharCode(s.start)+"'"):t.push("'"+String.fromCharCode(s.start)+"'..'"+String.fromCharCode(s.stop-1)+"'")}return t.length>1?"{"+t.join(", ")+"}":t[0]}toIndexString(){const t=[];for(let r=0;r<this.intervals.length;r++){const s=this.intervals[r];s.stop===s.start+1?s.start===e.EOF?t.push("<EOF>"):t.push(s.start.toString()):t.push(s.start.toString()+".."+(s.stop-1).toString())}return t.length>1?"{"+t.join(", ")+"}":t[0]}toTokenString(e,t){const r=[];for(let s=0;s<this.intervals.length;s++){const i=this.intervals[s];for(let s=i.start;s<i.stop;s++)r.push(this.elementName(e,t,s))}return r.length>1?"{"+r.join(", ")+"}":r[0]}elementName(t,r,s){return s===e.EOF?"<EOF>":s===e.EPSILON?"<EPSILON>":t[s]||r[s]}get length(){return this.intervals.map(e=>e.length).reduce((e,t)=>e+t)}}class b{constructor(){this.atn=null,this.stateNumber=b.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}toString(){return this.stateNumber}equals(e){return e instanceof b&&this.stateNumber===e.stateNumber}isNonGreedyExitState(){return!1}addTransition(e,t){void 0===t&&(t=-1),0===this.transitions.length?this.epsilonOnlyTransitions=e.isEpsilon:this.epsilonOnlyTransitions!==e.isEpsilon&&(this.epsilonOnlyTransitions=!1),-1===t?this.transitions.push(e):this.transitions.splice(t,1,e)}}b.INVALID_TYPE=0,b.BASIC=1,b.RULE_START=2,b.BLOCK_START=3,b.PLUS_BLOCK_START=4,b.STAR_BLOCK_START=5,b.TOKEN_START=6,b.RULE_STOP=7,b.BLOCK_END=8,b.STAR_LOOP_BACK=9,b.STAR_LOOP_ENTRY=10,b.PLUS_LOOP_BACK=11,b.LOOP_END=12,b.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"],b.INVALID_STATE_NUMBER=-1;class _ extends b{constructor(){return super(),this.stateType=b.RULE_STOP,this}}class E{constructor(e){if(null==e)throw"target cannot be null.";this.target=e,this.isEpsilon=!1,this.label=null}}E.EPSILON=1,E.RANGE=2,E.RULE=3,E.PREDICATE=4,E.ATOM=5,E.ACTION=6,E.SET=7,E.NOT_SET=8,E.WILDCARD=9,E.PRECEDENCE=10,E.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],E.serializationTypes={EpsilonTransition:E.EPSILON,RangeTransition:E.RANGE,RuleTransition:E.RULE,PredicateTransition:E.PREDICATE,AtomTransition:E.ATOM,ActionTransition:E.ACTION,SetTransition:E.SET,NotSetTransition:E.NOT_SET,WildcardTransition:E.WILDCARD,PrecedencePredicateTransition:E.PRECEDENCE};class T extends E{constructor(e,t,r,s){super(e),this.ruleIndex=t,this.precedence=r,this.followState=s,this.serializationType=E.RULE,this.isEpsilon=!0}matches(e,t,r){return!1}}class S extends E{constructor(t,r){super(t),this.serializationType=E.SET,null!=r?this.label=r:(this.label=new v,this.label.addOne(e.INVALID_TYPE))}matches(e,t,r){return this.label.contains(e)}toString(){return this.label.toString()}}class k extends S{constructor(e,t){super(e,t),this.serializationType=E.NOT_SET}matches(e,t,r){return e>=t&&e<=r&&!super.matches(e,t,r)}toString(){return"~"+super.toString()}}class R extends E{constructor(e){super(e),this.serializationType=E.WILDCARD}matches(e,t,r){return e>=t&&e<=r}toString(){return"."}}class A extends E{constructor(e){super(e)}}class C{}class L extends C{}class K extends L{}class I extends K{get ruleContext(){throw new Error("missing interface implementation")}}class N extends K{}class O extends N{}const D={toStringTree:function(e,t,r){t=t||null,null!==(r=r||null)&&(t=r.ruleNames);let s=D.getNodeText(e,t);s=s.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r");const i=e.getChildCount();if(0===i)return s;let n="("+s+" ";i>0&&(s=D.toStringTree(e.getChild(0),t),n=n.concat(s));for(let r=1;r<i;r++)s=D.toStringTree(e.getChild(r),t),n=n.concat(" "+s);return n=n.concat(")"),n},getNodeText:function(t,r,s){if(r=r||null,null!==(s=s||null)&&(r=s.ruleNames),null!==r){if(t instanceof I){const e=t.ruleContext.getAltNumber();return 0!=e?r[t.ruleIndex]+":"+e:r[t.ruleIndex]}if(t instanceof O)return t.toString();if(t instanceof N&&null!==t.symbol)return t.symbol.text}const i=t.getPayload();return i instanceof e?i.text:t.getPayload().toString()},getChildren:function(e){const t=[];for(let r=0;r<e.getChildCount();r++)t.push(e.getChild(r));return t},getAncestors:function(e){let t=[];for(e=e.getParent();null!==e;)t=[e].concat(t),e=e.getParent();return t},findAllTokenNodes:function(e,t){return D.findAllNodes(e,t,!0)},findAllRuleNodes:function(e,t){return D.findAllNodes(e,t,!1)},findAllNodes:function(e,t,r){const s=[];return D._findAllNodes(e,t,r,s),s},_findAllNodes:function(e,t,r,s){r&&e instanceof N?e.symbol.type===t&&s.push(e):!r&&e instanceof I&&e.ruleIndex===t&&s.push(e);for(let i=0;i<e.getChildCount();i++)D._findAllNodes(e.getChild(i),t,r,s)},descendants:function(e){let t=[e];for(let r=0;r<e.getChildCount();r++)t=t.concat(D.descendants(e.getChild(r)));return t}},P=D;class q extends I{constructor(e,t){super(),this.parentCtx=e||null,this.invokingState=t||-1}depth(){let e=0,t=this;for(;null!==t;)t=t.parentCtx,e+=1;return e}isEmpty(){return-1===this.invokingState}getSourceInterval(){return x.INVALID_INTERVAL}get ruleContext(){return this}getPayload(){return this}getText(){return 0===this.getChildCount()?"":this.children.map(function(e){return e.getText()}).join("")}getAltNumber(){return 0}setAltNumber(e){}getChild(e){return null}getChildCount(){return 0}accept(e){return e.visitChildren(this)}toStringTree(e,t){return P.toStringTree(this,e,t)}toString(e,t){e=e||null,t=t||null;let r=this,s="[";for(;null!==r&&r!==t;){if(null===e)r.isEmpty()||(s+=r.invokingState);else{const t=r.ruleIndex;s+=t>=0&&t<e.length?e[t]:""+t}null===r.parentCtx||null===e&&r.parentCtx.isEmpty()||(s+=" "),r=r.parentCtx}return s+="]",s}}class M{constructor(e){this.cachedHashCode=e}isEmpty(){return this===M.EMPTY}hasEmptyPath(){return this.getReturnState(this.length-1)===M.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}updateHashCode(e){e.update(this.cachedHashCode)}}M.EMPTY=null,M.EMPTY_RETURN_STATE=2147483647,M.globalNodeCount=1,M.id=M.globalNodeCount,M.trace_atn_sim=!1;class F extends M{constructor(e,t){const r=new i;return r.update(e,t),super(r.finish()),this.parents=e,this.returnStates=t,this}isEmpty(){return this.returnStates[0]===M.EMPTY_RETURN_STATE}getParent(e){return this.parents[e]}getReturnState(e){return this.returnStates[e]}equals(e){return this===e||e instanceof F&&this.hashCode()===e.hashCode()&&t(this.returnStates,e.returnStates)&&t(this.parents,e.parents)}toString(){if(this.isEmpty())return"[]";{let e="[";for(let t=0;t<this.returnStates.length;t++)t>0&&(e+=", "),this.returnStates[t]!==M.EMPTY_RETURN_STATE?(e+=this.returnStates[t],null!==this.parents[t]?e=e+" "+this.parents[t]:e+="null"):e+="$";return e+"]"}}get length(){return this.returnStates.length}}class U extends M{constructor(e,t){let r=0;const s=new i;null!==e?s.update(e,t):s.update(1),r=s.finish(),super(r),this.parentCtx=e,this.returnState=t}getParent(e){return this.parentCtx}getReturnState(e){return this.returnState}equals(e){return this===e||e instanceof U&&this.hashCode()===e.hashCode()&&this.returnState===e.returnState&&(null==this.parentCtx?null==e.parentCtx:this.parentCtx.equals(e.parentCtx))}toString(){const e=null===this.parentCtx?"":this.parentCtx.toString();return 0===e.length?this.returnState===M.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+e}get length(){return 1}static create(e,t){return t===M.EMPTY_RETURN_STATE&&null===e?M.EMPTY:new U(e,t)}}class Y extends U{constructor(){super(null,M.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(e){return null}getReturnState(e){return this.returnState}equals(e){return this===e}toString(){return"$"}}M.EMPTY=new Y;const V="h-";class j{constructor(e,t){this.data={},this.hashFunction=e||n,this.equalsFunction=t||a}set(e,t){const r=V+this.hashFunction(e);if(r in this.data){const s=this.data[r];for(let r=0;r<s.length;r++){const i=s[r];if(this.equalsFunction(e,i.key)){const e=i.value;return i.value=t,e}}return s.push({key:e,value:t}),t}return this.data[r]=[{key:e,value:t}],t}containsKey(e){const t=V+this.hashFunction(e);if(t in this.data){const r=this.data[t];for(let t=0;t<r.length;t++){const s=r[t];if(this.equalsFunction(e,s.key))return!0}}return!1}get(e){const t=V+this.hashFunction(e);if(t in this.data){const r=this.data[t];for(let t=0;t<r.length;t++){const s=r[t];if(this.equalsFunction(e,s.key))return s.value}}return null}entries(){return Object.keys(this.data).filter(e=>e.startsWith(V)).flatMap(e=>this.data[e],this)}getKeys(){return this.entries().map(e=>e.key)}getValues(){return this.entries().map(e=>e.value)}toString(){return"["+this.entries().map(e=>"{"+e.key+":"+e.value+"}").join(", ")+"]"}get length(){return Object.keys(this.data).filter(e=>e.startsWith(V)).map(e=>this.data[e].length,this).reduce((e,t)=>e+t,0)}}function B(e,t){if(null==t&&(t=q.EMPTY),null===t.parentCtx||t===q.EMPTY)return M.EMPTY;const r=B(e,t.parentCtx),s=e.states[t.invokingState].transitions[0];return U.create(r,s.followState.stateNumber)}function H(e,t,r){if(e.isEmpty())return e;let s=r.get(e)||null;if(null!==s)return s;if(s=t.get(e),null!==s)return r.set(e,s),s;let i=!1,n=[];for(let s=0;s<n.length;s++){const a=H(e.getParent(s),t,r);if(i||a!==e.getParent(s)){if(!i){n=[];for(let t=0;t<e.length;t++)n[t]=e.getParent(t);i=!0}n[s]=a}}if(!i)return t.add(e),r.set(e,e),e;let a=null;return a=0===n.length?M.EMPTY:1===n.length?U.create(n[0],e.getReturnState(0)):new F(n,e.returnStates),t.add(a),r.set(a,a),r.set(e,a),a}function $(e,t,r,s){if(e===t)return e;if(e instanceof U&&t instanceof U)return function(e,t,r,s){if(null!==s){let r=s.get(e,t);if(null!==r)return r;if(r=s.get(t,e),null!==r)return r}const i=function(e,t,r){if(r){if(e===M.EMPTY)return M.EMPTY;if(t===M.EMPTY)return M.EMPTY}else{if(e===M.EMPTY&&t===M.EMPTY)return M.EMPTY;if(e===M.EMPTY){const e=[t.returnState,M.EMPTY_RETURN_STATE],r=[t.parentCtx,null];return new F(r,e)}if(t===M.EMPTY){const t=[e.returnState,M.EMPTY_RETURN_STATE],r=[e.parentCtx,null];return new F(r,t)}}return null}(e,t,r);if(null!==i)return null!==s&&s.set(e,t,i),i;if(e.returnState===t.returnState){const i=$(e.parentCtx,t.parentCtx,r,s);if(i===e.parentCtx)return e;if(i===t.parentCtx)return t;const n=U.create(i,e.returnState);return null!==s&&s.set(e,t,n),n}{let r=null;if((e===t||null!==e.parentCtx&&e.parentCtx===t.parentCtx)&&(r=e.parentCtx),null!==r){const i=[e.returnState,t.returnState];e.returnState>t.returnState&&(i[0]=t.returnState,i[1]=e.returnState);const n=new F([r,r],i);return null!==s&&s.set(e,t,n),n}const i=[e.returnState,t.returnState];let n=[e.parentCtx,t.parentCtx];e.returnState>t.returnState&&(i[0]=t.returnState,i[1]=e.returnState,n=[t.parentCtx,e.parentCtx]);const a=new F(n,i);return null!==s&&s.set(e,t,a),a}}(e,t,r,s);if(r){if(e instanceof Y)return e;if(t instanceof Y)return t}return e instanceof U&&(e=new F([e.getParent()],[e.returnState])),t instanceof U&&(t=new F([t.getParent()],[t.returnState])),function(e,t,r,s){if(null!==s){let r=s.get(e,t);if(null!==r)return M.trace_atn_sim&&console.log("mergeArrays a="+e+",b="+t+" -> previous"),r;if(r=s.get(t,e),null!==r)return M.trace_atn_sim&&console.log("mergeArrays a="+e+",b="+t+" -> previous"),r}let i=0,n=0,a=0,o=new Array(e.returnStates.length+t.returnStates.length).fill(0),c=new Array(e.returnStates.length+t.returnStates.length).fill(null);for(;i<e.returnStates.length&&n<t.returnStates.length;){const l=e.parents[i],h=t.parents[n];if(e.returnStates[i]===t.returnStates[n]){const t=e.returnStates[i];t===M.EMPTY_RETURN_STATE&&null===l&&null===h||null!==l&&null!==h&&l===h?(c[a]=l,o[a]=t):(c[a]=$(l,h,r,s),o[a]=t),i+=1,n+=1}else e.returnStates[i]<t.returnStates[n]?(c[a]=l,o[a]=e.returnStates[i],i+=1):(c[a]=h,o[a]=t.returnStates[n],n+=1);a+=1}if(i<e.returnStates.length)for(let t=i;t<e.returnStates.length;t++)c[a]=e.parents[t],o[a]=e.returnStates[t],a+=1;else for(let e=n;e<t.returnStates.length;e++)c[a]=t.parents[e],o[a]=t.returnStates[e],a+=1;if(a<c.length){if(1===a){const r=U.create(c[0],o[0]);return null!==s&&s.set(e,t,r),r}c=c.slice(0,a),o=o.slice(0,a)}const l=new F(c,o);return l.equals(e)?(null!==s&&s.set(e,t,e),M.trace_atn_sim&&console.log("mergeArrays a="+e+",b="+t+" -> a"),e):l.equals(t)?(null!==s&&s.set(e,t,t),M.trace_atn_sim&&console.log("mergeArrays a="+e+",b="+t+" -> b"),t):(function(e){const t=new j;for(let r=0;r<e.length;r++){const s=e[r];t.containsKey(s)||t.set(s,s)}for(let r=0;r<e.length;r++)e[r]=t.get(e[r])}(c),null!==s&&s.set(e,t,l),M.trace_atn_sim&&console.log("mergeArrays a="+e+",b="+t+" -> "+l),l)}(e,t,r,s)}class G{constructor(){this.data=[]}add(e){this.data[e]=!0}or(e){Object.keys(e.data).map(e=>this.add(e),this)}remove(e){delete this.data[e]}has(e){return!0===this.data[e]}values(){return Object.keys(this.data)}minValue(){return Math.min.apply(null,this.values())}hashCode(){return i.hashStuff(this.values())}equals(e){return e instanceof G&&t(this.data,e.data)}toString(){return"{"+this.values().join(", ")+"}"}get length(){return this.values().length}}class z{constructor(e){this.atn=e}getDecisionLookahead(e){if(null===e)return null;const t=e.transitions.length,r=[];for(let s=0;s<t;s++){r[s]=new v;const t=new d,i=!1;this._LOOK(e.transition(s).target,null,M.EMPTY,r[s],t,new G,i,!1),(0===r[s].length||r[s].contains(z.HIT_PRED))&&(r[s]=null)}return r}LOOK(e,t,r){const s=new v,i=null!==(r=r||null)?B(e.atn,r):null;return this._LOOK(e,t,i,s,new d,new G,!0,!0),s}_LOOK(t,r,s,i,n,a,o,c){const l=new w({state:t,alt:0,context:s},null);if(!n.has(l)){if(n.add(l),t===r){if(null===s)return void i.addOne(e.EPSILON);if(s.isEmpty()&&c)return void i.addOne(e.EOF)}if(t instanceof _){if(null===s)return void i.addOne(e.EPSILON);if(s.isEmpty()&&c)return void i.addOne(e.EOF);if(s!==M.EMPTY){const e=a.has(t.ruleIndex);try{a.remove(t.ruleIndex);for(let e=0;e<s.length;e++){const t=this.atn.states[s.getReturnState(e)];this._LOOK(t,r,s.getParent(e),i,n,a,o,c)}}finally{e&&a.add(t.ruleIndex)}return}}for(let l=0;l<t.transitions.length;l++){const h=t.transitions[l];if(h.constructor===T){if(a.has(h.target.ruleIndex))continue;const e=U.create(s,h.followState.stateNumber);try{a.add(h.target.ruleIndex),this._LOOK(h.target,r,e,i,n,a,o,c)}finally{a.remove(h.target.ruleIndex)}}else if(h instanceof A)o?this._LOOK(h.target,r,s,i,n,a,o,c):i.addOne(z.HIT_PRED);else if(h.isEpsilon)this._LOOK(h.target,r,s,i,n,a,o,c);else if(h.constructor===R)i.addRange(e.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{let t=h.label;null!==t&&(h instanceof k&&(t=t.complement(e.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),i.addSet(t))}}}}}z.HIT_PRED=e.INVALID_TYPE;class W{constructor(e,t){this.grammarType=e,this.maxTokenType=t,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}nextTokensInContext(e,t){return new z(this).LOOK(e,null,t)}nextTokensNoContext(e){return null!==e.nextTokenWithinRule||(e.nextTokenWithinRule=this.nextTokensInContext(e,null),e.nextTokenWithinRule.readOnly=!0),e.nextTokenWithinRule}nextTokens(e,t){return void 0===t?this.nextTokensNoContext(e):this.nextTokensInContext(e,t)}addState(e){null!==e&&(e.atn=this,e.stateNumber=this.states.length),this.states.push(e)}removeState(e){this.states[e.stateNumber]=null}defineDecisionState(e){return this.decisionToState.push(e),e.decision=this.decisionToState.length-1,e.decision}getDecisionState(e){return 0===this.decisionToState.length?null:this.decisionToState[e]}getExpectedTokens(t,r){if(t<0||t>=this.states.length)throw"Invalid state number.";const s=this.states[t];let i=this.nextTokens(s);if(!i.contains(e.EPSILON))return i;const n=new v;for(n.addSet(i),n.removeOne(e.EPSILON);null!==r&&r.invokingState>=0&&i.contains(e.EPSILON);){const t=this.states[r.invokingState].transitions[0];i=this.nextTokens(t.followState),n.addSet(i),n.removeOne(e.EPSILON),r=r.parentCtx}return i.contains(e.EPSILON)&&n.addOne(e.EOF),n}}W.INVALID_ALT_NUMBER=0;class X extends b{constructor(){super(),this.stateType=b.BASIC}}class Q extends b{constructor(){return super(),this.decision=-1,this.nonGreedy=!1,this}}class J extends Q{constructor(){return super(),this.endState=null,this}}class Z extends b{constructor(){return super(),this.stateType=b.BLOCK_END,this.startState=null,this}}class ee extends b{constructor(){return super(),this.stateType=b.LOOP_END,this.loopBackState=null,this}}class te extends b{constructor(){return super(),this.stateType=b.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}}class re extends Q{constructor(){return super(),this.stateType=b.TOKEN_START,this}}class se extends Q{constructor(){return super(),this.stateType=b.PLUS_LOOP_BACK,this}}class ie extends b{constructor(){return super(),this.stateType=b.STAR_LOOP_BACK,this}}class ne extends Q{constructor(){return super(),this.stateType=b.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}}class ae extends J{constructor(){return super(),this.stateType=b.PLUS_BLOCK_START,this.loopBackState=null,this}}class oe extends J{constructor(){return super(),this.stateType=b.STAR_BLOCK_START,this}}class ce extends J{constructor(){return super(),this.stateType=b.BLOCK_START,this}}class le extends E{constructor(e,t){super(e),this.label_=t,this.label=this.makeLabel(),this.serializationType=E.ATOM}makeLabel(){const e=new v;return e.addOne(this.label_),e}matches(e,t,r){return this.label_===e}toString(){return this.label_}}class he extends E{constructor(e,t,r){super(e),this.serializationType=E.RANGE,this.start=t,this.stop=r,this.label=this.makeLabel()}makeLabel(){const e=new v;return e.addRange(this.start,this.stop),e}matches(e,t,r){return e>=this.start&&e<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}}class ue extends E{constructor(e,t,r,s){super(e),this.serializationType=E.ACTION,this.ruleIndex=t,this.actionIndex=void 0===r?-1:r,this.isCtxDependent=void 0!==s&&s,this.isEpsilon=!0}matches(e,t,r){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}}class de extends E{constructor(e,t){super(e),this.serializationType=E.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=t}matches(e,t,r){return!1}toString(){return"epsilon"}}class pe extends p{constructor(e,t,r){super(),this.ruleIndex=void 0===e?-1:e,this.predIndex=void 0===t?-1:t,this.isCtxDependent=void 0!==r&&r}evaluate(e,t){const r=this.isCtxDependent?t:null;return e.sempred(r,this.ruleIndex,this.predIndex)}updateHashCode(e){e.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}equals(e){return this===e||e instanceof pe&&this.ruleIndex===e.ruleIndex&&this.predIndex===e.predIndex&&this.isCtxDependent===e.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}p.NONE=new pe;class me extends A{constructor(e,t,r,s){super(e),this.serializationType=E.PREDICATE,this.ruleIndex=t,this.predIndex=r,this.isCtxDependent=s,this.isEpsilon=!0}matches(e,t,r){return!1}getPredicate(){return new pe(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}}class ye extends p{constructor(e){super(),this.precedence=void 0===e?0:e}evaluate(e,t){return e.precpred(t,this.precedence)}evalPrecedence(e,t){return e.precpred(t,this.precedence)?p.NONE:null}compareTo(e){return this.precedence-e.precedence}updateHashCode(e){e.update(this.precedence)}equals(e){return this===e||e instanceof ye&&this.precedence===e.precedence}toString(){return"{"+this.precedence+">=prec}?"}}p.PrecedencePredicate=ye;class fe extends A{constructor(e,t){super(e),this.serializationType=E.PRECEDENCE,this.precedence=t,this.isEpsilon=!0}matches(e,t,r){return!1}getPredicate(){return new ye(this.precedence)}toString(){return this.precedence+" >= _p"}}class ge{constructor(e){void 0===e&&(e=null),this.readOnly=!1,this.verifyATN=null===e||e.verifyATN,this.generateRuleBypassTransitions=null!==e&&e.generateRuleBypassTransitions}}ge.defaultOptions=new ge,ge.defaultOptions.readOnly=!0;class we{constructor(e){this.actionType=e,this.isPositionDependent=!1}hashCode(){const e=new i;return this.updateHashCode(e),e.finish()}updateHashCode(e){e.update(this.actionType)}equals(e){return this===e}}class xe extends we{constructor(){super(6)}execute(e){e.skip()}toString(){return"skip"}}xe.INSTANCE=new xe;class ve extends we{constructor(e){super(0),this.channel=e}execute(e){e._channel=this.channel}updateHashCode(e){e.update(this.actionType,this.channel)}equals(e){return this===e||e instanceof ve&&this.channel===e.channel}toString(){return"channel("+this.channel+")"}}class be extends we{constructor(e,t){super(1),this.ruleIndex=e,this.actionIndex=t,this.isPositionDependent=!0}execute(e){e.action(null,this.ruleIndex,this.actionIndex)}updateHashCode(e){e.update(this.actionType,this.ruleIndex,this.actionIndex)}equals(e){return this===e||e instanceof be&&this.ruleIndex===e.ruleIndex&&this.actionIndex===e.actionIndex}}class _e extends we{constructor(){super(3)}execute(e){e.more()}toString(){return"more"}}_e.INSTANCE=new _e;class Ee extends we{constructor(e){super(7),this.type=e}execute(e){e.type=this.type}updateHashCode(e){e.update(this.actionType,this.type)}equals(e){return this===e||e instanceof Ee&&this.type===e.type}toString(){return"type("+this.type+")"}}class Te extends we{constructor(e){super(5),this.mode=e}execute(e){e.pushMode(this.mode)}updateHashCode(e){e.update(this.actionType,this.mode)}equals(e){return this===e||e instanceof Te&&this.mode===e.mode}toString(){return"pushMode("+this.mode+")"}}class Se extends we{constructor(){super(4)}execute(e){e.popMode()}toString(){return"popMode"}}Se.INSTANCE=new Se;class ke extends we{constructor(e){super(2),this.mode=e}execute(e){e.mode(this.mode)}updateHashCode(e){e.update(this.actionType,this.mode)}equals(e){return this===e||e instanceof ke&&this.mode===e.mode}toString(){return"mode("+this.mode+")"}}function Re(e,t){const r=[];return r[e-1]=t,r.map(function(e){return t})}class Ae{constructor(e){null==e&&(e=ge.defaultOptions),this.deserializationOptions=e,this.stateFactories=null,this.actionFactories=null}deserialize(e){const t=this.reset(e);this.checkVersion(t),t&&this.skipUUID();const r=this.readATN();this.readStates(r,t),this.readRules(r,t),this.readModes(r);const s=[];return this.readSets(r,s,this.readInt.bind(this)),t&&this.readSets(r,s,this.readInt32.bind(this)),this.readEdges(r,s),this.readDecisions(r),this.readLexerActions(r,t),this.markPrecedenceDecisions(r),this.verifyATN(r),this.deserializationOptions.generateRuleBypassTransitions&&1===r.grammarType&&(this.generateRuleBypassTransitions(r),this.verifyATN(r)),r}reset(e){if(3===(e.charCodeAt?e.charCodeAt(0):e[0])){const t=function(e){const t=e.charCodeAt(0);return t>1?t-2:t+65534},r=e.split("").map(t);return r[0]=e.charCodeAt(0),this.data=r,this.pos=0,!0}return this.data=e,this.pos=0,!1}skipUUID(){let e=0;for(;e++<8;)this.readInt()}checkVersion(e){const t=this.readInt();if(!e&&4!==t)throw"Could not deserialize ATN with version "+t+" (expected 4)."}readATN(){const e=this.readInt(),t=this.readInt();return new W(e,t)}readStates(e,t){let r,s,i;const n=[],a=[],o=this.readInt();for(let r=0;r<o;r++){const r=this.readInt();if(r===b.INVALID_TYPE){e.addState(null);continue}let s=this.readInt();t&&65535===s&&(s=-1);const i=this.stateFactory(r,s);if(r===b.LOOP_END){const e=this.readInt();n.push([i,e])}else if(i instanceof J){const e=this.readInt();a.push([i,e])}e.addState(i)}for(r=0;r<n.length;r++)s=n[r],s[0].loopBackState=e.states[s[1]];for(r=0;r<a.length;r++)s=a[r],s[0].endState=e.states[s[1]];let c=this.readInt();for(r=0;r<c;r++)i=this.readInt(),e.states[i].nonGreedy=!0;let l=this.readInt();for(r=0;r<l;r++)i=this.readInt(),e.states[i].isPrecedenceRule=!0}readRules(t,r){let s;const i=this.readInt();for(0===t.grammarType&&(t.ruleToTokenType=Re(i,0)),t.ruleToStartState=Re(i,0),s=0;s<i;s++){const i=this.readInt();if(t.ruleToStartState[s]=t.states[i],0===t.grammarType){let i=this.readInt();r&&65535===i&&(i=e.EOF),t.ruleToTokenType[s]=i}}for(t.ruleToStopState=Re(i,0),s=0;s<t.states.length;s++){const e=t.states[s];e instanceof _&&(t.ruleToStopState[e.ruleIndex]=e,t.ruleToStartState[e.ruleIndex].stopState=e)}}readModes(e){const t=this.readInt();for(let r=0;r<t;r++){let t=this.readInt();e.modeToStartState.push(e.states[t])}}readSets(e,t,r){const s=this.readInt();for(let e=0;e<s;e++){const e=new v;t.push(e);const s=this.readInt();0!==this.readInt()&&e.addOne(-1);for(let t=0;t<s;t++){const t=r(),s=r();e.addRange(t,s)}}}readEdges(e,t){let r,s,i,n,a;const o=this.readInt();for(r=0;r<o;r++){const r=this.readInt(),s=this.readInt(),i=this.readInt(),a=this.readInt(),o=this.readInt(),c=this.readInt();n=this.edgeFactory(e,i,r,s,a,o,c,t),e.states[r].addTransition(n)}for(r=0;r<e.states.length;r++)for(i=e.states[r],s=0;s<i.transitions.length;s++){const t=i.transitions[s];if(!(t instanceof T))continue;let r=-1;e.ruleToStartState[t.target.ruleIndex].isPrecedenceRule&&0===t.precedence&&(r=t.target.ruleIndex),n=new de(t.followState,r),e.ruleToStopState[t.target.ruleIndex].addTransition(n)}for(r=0;r<e.states.length;r++){if(i=e.states[r],i instanceof J){if(null===i.endState)throw"IllegalState";if(null!==i.endState.startState)throw"IllegalState";i.endState.startState=i}if(i instanceof se)for(s=0;s<i.transitions.length;s++)a=i.transitions[s].target,a instanceof ae&&(a.loopBackState=i);else if(i instanceof ie)for(s=0;s<i.transitions.length;s++)a=i.transitions[s].target,a instanceof ne&&(a.loopBackState=i)}}readDecisions(e){const t=this.readInt();for(let r=0;r<t;r++){const t=this.readInt(),s=e.states[t];e.decisionToState.push(s),s.decision=r}}readLexerActions(e,t){if(0===e.grammarType){const r=this.readInt();e.lexerActions=Re(r,null);for(let s=0;s<r;s++){const r=this.readInt();let i=this.readInt();t&&65535===i&&(i=-1);let n=this.readInt();t&&65535===n&&(n=-1),e.lexerActions[s]=this.lexerActionFactory(r,i,n)}}}generateRuleBypassTransitions(e){let t;const r=e.ruleToStartState.length;for(t=0;t<r;t++)e.ruleToTokenType[t]=e.maxTokenType+t+1;for(t=0;t<r;t++)this.generateRuleBypassTransition(e,t)}generateRuleBypassTransition(e,t){let r,s;const i=new ce;i.ruleIndex=t,e.addState(i);const n=new Z;n.ruleIndex=t,e.addState(n),i.endState=n,e.defineDecisionState(i),n.startState=i;let a=null,o=null;if(e.ruleToStartState[t].isPrecedenceRule){for(o=null,r=0;r<e.states.length;r++)if(s=e.states[r],this.stateIsEndStateFor(s,t)){o=s,a=s.loopBackState.transitions[0];break}if(null===a)throw"Couldn't identify final state of the precedence rule prefix section."}else o=e.ruleToStopState[t];for(r=0;r<e.states.length;r++){s=e.states[r];for(let e=0;e<s.transitions.length;e++){const t=s.transitions[e];t!==a&&t.target===o&&(t.target=n)}}const c=e.ruleToStartState[t],l=c.transitions.length;for(;l>0;)i.addTransition(c.transitions[l-1]),c.transitions=c.transitions.slice(-1);e.ruleToStartState[t].addTransition(new de(i)),n.addTransition(new de(o));const h=new X;e.addState(h),h.addTransition(new le(n,e.ruleToTokenType[t])),i.addTransition(new de(h))}stateIsEndStateFor(e,t){if(e.ruleIndex!==t)return null;if(!(e instanceof ne))return null;const r=e.transitions[e.transitions.length-1].target;return r instanceof ee&&r.epsilonOnlyTransitions&&r.transitions[0].target instanceof _?e:null}markPrecedenceDecisions(e){for(let t=0;t<e.states.length;t++){const r=e.states[t];if(r instanceof ne&&e.ruleToStartState[r.ruleIndex].isPrecedenceRule){const e=r.transitions[r.transitions.length-1].target;e instanceof ee&&e.epsilonOnlyTransitions&&e.transitions[0].target instanceof _&&(r.isPrecedenceDecision=!0)}}}verifyATN(e){if(this.deserializationOptions.verifyATN)for(let t=0;t<e.states.length;t++){const r=e.states[t];if(null!==r)if(this.checkCondition(r.epsilonOnlyTransitions||r.transitions.length<=1),r instanceof ae)this.checkCondition(null!==r.loopBackState);else if(r instanceof ne)if(this.checkCondition(null!==r.loopBackState),this.checkCondition(2===r.transitions.length),r.transitions[0].target instanceof oe)this.checkCondition(r.transitions[1].target instanceof ee),this.checkCondition(!r.nonGreedy);else{if(!(r.transitions[0].target instanceof ee))throw"IllegalState";this.checkCondition(r.transitions[1].target instanceof oe),this.checkCondition(r.nonGreedy)}else r instanceof ie?(this.checkCondition(1===r.transitions.length),this.checkCondition(r.transitions[0].target instanceof ne)):r instanceof ee?this.checkCondition(null!==r.loopBackState):r instanceof te?this.checkCondition(null!==r.stopState):r instanceof J?this.checkCondition(null!==r.endState):r instanceof Z?this.checkCondition(null!==r.startState):r instanceof Q?this.checkCondition(r.transitions.length<=1||r.decision>=0):this.checkCondition(r.transitions.length<=1||r instanceof _)}}checkCondition(e,t){if(!e)throw null==t&&(t="IllegalState"),t}readInt(){return this.data[this.pos++]}readInt32(){return this.readInt()|this.readInt()<<16}edgeFactory(t,r,s,i,n,a,o,c){const l=t.states[i];switch(r){case E.EPSILON:return new de(l);case E.RANGE:return new he(l,0!==o?e.EOF:n,a);case E.RULE:return new T(t.states[n],a,o,l);case E.PREDICATE:return new me(l,n,a,0!==o);case E.PRECEDENCE:return new fe(l,n);case E.ATOM:return new le(l,0!==o?e.EOF:n);case E.ACTION:return new ue(l,n,a,0!==o);case E.SET:return new S(l,c[n]);case E.NOT_SET:return new k(l,c[n]);case E.WILDCARD:return new R(l);default:throw"The specified transition type: "+r+" is not valid."}}stateFactory(e,t){if(null===this.stateFactories){const e=[];e[b.INVALID_TYPE]=null,e[b.BASIC]=()=>new X,e[b.RULE_START]=()=>new te,e[b.BLOCK_START]=()=>new ce,e[b.PLUS_BLOCK_START]=()=>new ae,e[b.STAR_BLOCK_START]=()=>new oe,e[b.TOKEN_START]=()=>new re,e[b.RULE_STOP]=()=>new _,e[b.BLOCK_END]=()=>new Z,e[b.STAR_LOOP_BACK]=()=>new ie,e[b.STAR_LOOP_ENTRY]=()=>new ne,e[b.PLUS_LOOP_BACK]=()=>new se,e[b.LOOP_END]=()=>new ee,this.stateFactories=e}if(e>this.stateFactories.length||null===this.stateFactories[e])throw"The specified state type "+e+" is not valid.";{const r=this.stateFactories[e]();if(null!==r)return r.ruleIndex=t,r}}lexerActionFactory(e,t,r){if(null===this.actionFactories){const e=[];e[0]=(e,t)=>new ve(e),e[1]=(e,t)=>new be(e,t),e[2]=(e,t)=>new ke(e),e[3]=(e,t)=>_e.INSTANCE,e[4]=(e,t)=>Se.INSTANCE,e[5]=(e,t)=>new Te(e),e[6]=(e,t)=>xe.INSTANCE,e[7]=(e,t)=>new Ee(e),this.actionFactories=e}if(e>this.actionFactories.length||null===this.actionFactories[e])throw"The specified lexer action type "+e+" is not valid.";return this.actionFactories[e](t,r)}}class Ce{syntaxError(e,t,r,s,i,n){}reportAmbiguity(e,t,r,s,i,n,a){}reportAttemptingFullContext(e,t,r,s,i,n){}reportContextSensitivity(e,t,r,s,i,n){}}class Le extends Ce{constructor(){super()}syntaxError(e,t,r,s,i,n){console.error("line "+r+":"+s+" "+i)}}Le.INSTANCE=new Le;class Ke extends Ce{constructor(e){if(super(),null===e)throw"delegates";return this.delegates=e,this}syntaxError(e,t,r,s,i,n){this.delegates.map(a=>a.syntaxError(e,t,r,s,i,n))}reportAmbiguity(e,t,r,s,i,n,a){this.delegates.map(o=>o.reportAmbiguity(e,t,r,s,i,n,a))}reportAttemptingFullContext(e,t,r,s,i,n){this.delegates.map(a=>a.reportAttemptingFullContext(e,t,r,s,i,n))}reportContextSensitivity(e,t,r,s,i,n){this.delegates.map(a=>a.reportContextSensitivity(e,t,r,s,i,n))}}class Ie{constructor(){this._listeners=[Le.INSTANCE],this._interp=null,this._stateNumber=-1}checkVersion(e){const t="4.13.1";t!==e&&console.log("ANTLR runtime and generated code versions disagree: "+t+"!="+e)}addErrorListener(e){this._listeners.push(e)}removeErrorListeners(){this._listeners=[]}getLiteralNames(){return Object.getPrototypeOf(this).constructor.literalNames||[]}getSymbolicNames(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}getTokenNames(){if(!this.tokenNames){const e=this.getLiteralNames(),t=this.getSymbolicNames(),r=e.length>t.length?e.length:t.length;this.tokenNames=[];for(let s=0;s<r;s++)this.tokenNames[s]=e[s]||t[s]||"<INVALID"}return this.tokenNames}getTokenTypeMap(){const t=this.getTokenNames();if(null===t)throw"The current recognizer does not provide a list of token names.";let r=this.tokenTypeMapCache[t];return void 0===r&&(r=t.reduce(function(e,t,r){e[t]=r}),r.EOF=e.EOF,this.tokenTypeMapCache[t]=r),r}getRuleIndexMap(){const e=this.ruleNames;if(null===e)throw"The current recognizer does not provide a list of rule names.";let t=this.ruleIndexMapCache[e];return void 0===t&&(t=e.reduce(function(e,t,r){e[t]=r}),this.ruleIndexMapCache[e]=t),t}getTokenType(t){const r=this.getTokenTypeMap()[t];return void 0!==r?r:e.INVALID_TYPE}getErrorHeader(e){return"line "+e.getOffendingToken().line+":"+e.getOffendingToken().column}getTokenErrorDisplay(t){if(null===t)return"<no token>";let r=t.text;return null===r&&(r=t.type===e.EOF?"<EOF>":"<"+t.type+">"),r=r.replace("\n","\\n").replace("\r","\\r").replace("\t","\\t"),"'"+r+"'"}getErrorListenerDispatch(){return new Ke(this._listeners)}sempred(e,t,r){return!0}precpred(e,t){return!0}get atn(){return this._interp.atn}get state(){return this._stateNumber}set state(e){this._stateNumber=e}}Ie.tokenTypeMapCache={},Ie.ruleIndexMapCache={};class Ne extends e{constructor(t,r,s,i,n){super(),this.source=void 0!==t?t:Ne.EMPTY_SOURCE,this.type=void 0!==r?r:null,this.channel=void 0!==s?s:e.DEFAULT_CHANNEL,this.start=void 0!==i?i:-1,this.stop=void 0!==n?n:-1,this.tokenIndex=-1,null!==this.source[0]?(this.line=t[0].line,this.column=t[0].column):this.column=-1}clone(){const e=new Ne(this.source,this.type,this.channel,this.start,this.stop);return e.tokenIndex=this.tokenIndex,e.line=this.line,e.column=this.column,e.text=this.text,e}cloneWithType(t){const r=new Ne(this.source,t,this.channel,this.start,this.stop);return r.tokenIndex=this.tokenIndex,r.line=this.line,r.column=this.column,t===e.EOF&&(r.text=""),r}toString(){let e=this.text;return e=null!==e?e.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+e+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}get text(){if(null!==this._text)return this._text;const e=this.getInputStream();if(null===e)return null;const t=e.size;return this.start<t&&this.stop<t?e.getText(this.start,this.stop):"<EOF>"}set text(e){this._text=e}}Ne.EMPTY_SOURCE=[null,null];class Oe{}class De extends Oe{constructor(e){super(),this.copyText=void 0!==e&&e}create(e,t,r,s,i,n,a,o){const c=new Ne(e,t,s,i,n);return c.line=a,c.column=o,null!==r?c.text=r:this.copyText&&null!==e[1]&&(c.text=e[1].getText(i,n)),c}createThin(e,t){const r=new Ne(null,e);return r.text=t,r}}De.DEFAULT=new De;class Pe extends Error{constructor(e){super(e.message),Error.captureStackTrace&&Error.captureStackTrace(this,Pe),this.message=e.message,this.recognizer=e.recognizer,this.input=e.input,this.ctx=e.ctx,this.offendingToken=null,this.offendingState=-1,null!==this.recognizer&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return null!==this.recognizer?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}}class qe extends Pe{constructor(e,t,r,s){super({message:"",recognizer:e,input:t,ctx:null}),this.startIndex=r,this.deadEndConfigs=s}toString(){let e="";return this.startIndex>=0&&this.startIndex<this.input.size&&(e=this.input.getText(new x(this.startIndex,this.startIndex))),"LexerNoViableAltException"+e}}class Me extends Ie{constructor(t){super(),this._input=t,this._factory=De.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=e.DEFAULT_CHANNEL,this._type=e.INVALID_TYPE,this._modeStack=[],this._mode=Me.DEFAULT_MODE,this._text=null}reset(){null!==this._input&&this._input.seek(0),this._token=null,this._type=e.INVALID_TYPE,this._channel=e.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=Me.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=e.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=e.INVALID_TYPE;let r=Me.SKIP;try{r=this._interp.match(this._input,this._mode)}catch(e){if(!(e instanceof Pe))throw console.log(e.stack),e;this.notifyListeners(e),this.recover(e)}if(this._input.LA(1)===e.EOF&&(this._hitEOF=!0),this._type===e.INVALID_TYPE&&(this._type=r),this._type===Me.SKIP){t=!0;break}if(this._type!==Me.MORE)break}if(!t)return null===this._token&&this.emit(),this._token}}finally{this._input.release(t)}}skip(){this._type=Me.SKIP}more(){this._type=Me.MORE}mode(e){this._mode=e}pushMode(e){this._interp.debug&&console.log("pushMode "+e),this._modeStack.push(this._mode),this.mode(e)}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(e){this._token=e}emit(){const e=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(e),e}emitEOF(){const t=this.column,r=this.line,s=this._factory.create(this._tokenFactorySourcePair,e.EOF,null,e.DEFAULT_CHANNEL,this._input.index,this._input.index-1,r,t);return this.emitToken(s),s}getCharIndex(){return this._input.index}getAllTokens(){const t=[];let r=this.nextToken();for(;r.type!==e.EOF;)t.push(r),r=this.nextToken();return t}notifyListeners(e){const t=this._tokenStartCharIndex,r=this._input.index,s=this._input.getText(t,r),i="token recognition error at: '"+this.getErrorDisplay(s)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,i,e)}getErrorDisplay(e){const t=[];for(let r=0;r<e.length;r++)t.push(e[r]);return t.join("")}getErrorDisplayForChar(t){return t.charCodeAt(0)===e.EOF?"<EOF>":"\n"===t?"\\n":"\t"===t?"\\t":"\r"===t?"\\r":t}getCharErrorDisplay(e){return"'"+this.getErrorDisplayForChar(e)+"'"}recover(t){this._input.LA(1)!==e.EOF&&(t instanceof qe?this._interp.consume(this._input):this._input.consume())}get inputStream(){return this._input}set inputStream(e){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=e,this._tokenFactorySourcePair=[this,this._input]}get sourceName(){return this._input.sourceName}get type(){return this._type}set type(e){this._type=e}get line(){return this._interp.line}set line(e){this._interp.line=e}get column(){return this._interp.column}set column(e){this._interp.column=e}get text(){return null!==this._text?this._text:this._interp.getText(this._input)}set text(e){this._text=e}}function Fe(e){return e.hashCodeForConfigSet()}function Ue(e,t){return e===t||null!==e&&null!==t&&e.equalsForConfigSet(t)}Me.DEFAULT_MODE=0,Me.MORE=-2,Me.SKIP=-3,Me.DEFAULT_TOKEN_CHANNEL=e.DEFAULT_CHANNEL,Me.HIDDEN=e.HIDDEN_CHANNEL,Me.MIN_CHAR_VALUE=0,Me.MAX_CHAR_VALUE=1114111;class Ye{constructor(e){this.configLookup=new d(Fe,Ue),this.fullCtx=void 0===e||e,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}add(e,t){if(void 0===t&&(t=null),this.readOnly)throw"This set is readonly";e.semanticContext!==p.NONE&&(this.hasSemanticContext=!0),e.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);const r=this.configLookup.add(e);if(r===e)return this.cachedHashCode=-1,this.configs.push(e),!0;const s=!this.fullCtx,i=$(r.context,e.context,s,t);return r.reachesIntoOuterContext=Math.max(r.reachesIntoOuterContext,e.reachesIntoOuterContext),e.precedenceFilterSuppressed&&(r.precedenceFilterSuppressed=!0),r.context=i,!0}getStates(){const e=new d;for(let t=0;t<this.configs.length;t++)e.add(this.configs[t].state);return e}getPredicates(){const e=[];for(let t=0;t<this.configs.length;t++){const r=this.configs[t].semanticContext;r!==p.NONE&&e.push(r.semanticContext)}return e}optimizeConfigs(e){if(this.readOnly)throw"This set is readonly";if(0!==this.configLookup.length)for(let t=0;t<this.configs.length;t++){const r=this.configs[t];r.context=e.getCachedContext(r.context)}}addAll(e){for(let t=0;t<e.length;t++)this.add(e[t]);return!1}equals(e){return this===e||e instanceof Ye&&t(this.configs,e.configs)&&this.fullCtx===e.fullCtx&&this.uniqueAlt===e.uniqueAlt&&this.conflictingAlts===e.conflictingAlts&&this.hasSemanticContext===e.hasSemanticContext&&this.dipsIntoOuterContext===e.dipsIntoOuterContext}hashCode(){const e=new i;return e.update(this.configs),e.finish()}updateHashCode(e){this.readOnly?(-1===this.cachedHashCode&&(this.cachedHashCode=this.hashCode()),e.update(this.cachedHashCode)):e.update(this.hashCode())}isEmpty(){return 0===this.configs.length}contains(e){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(e)}containsFast(e){if(null===this.configLookup)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(e)}clear(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new d}setReadonly(e){this.readOnly=e,e&&(this.configLookup=null)}toString(){return h(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==W.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(null!==this.conflictingAlts?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}get items(){return this.configs}get length(){return this.configs.length}}class Ve{constructor(e,t){return null===e&&(e=-1),null===t&&(t=new Ye),this.stateNumber=e,this.configs=t,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}getAltSet(){const e=new d;if(null!==this.configs)for(let t=0;t<this.configs.length;t++){const r=this.configs[t];e.add(r.alt)}return 0===e.length?null:e}equals(e){return this===e||e instanceof Ve&&this.configs.equals(e.configs)}toString(){let e=this.stateNumber+":"+this.configs;return this.isAcceptState&&(e+="=>",null!==this.predicates?e+=this.predicates:e+=this.prediction),e}hashCode(){const e=new i;return e.update(this.configs),e.finish()}}class je{constructor(e,t){return this.atn=e,this.sharedContextCache=t,this}getCachedContext(e){if(null===this.sharedContextCache)return e;const t=new j;return H(e,this.sharedContextCache,t)}}je.ERROR=new Ve(2147483647,new Ye);class Be extends Ye{constructor(){super(),this.configLookup=new d}}class He extends w{constructor(e,t){super(e,t);const r=e.lexerActionExecutor||null;return this.lexerActionExecutor=r||(null!==t?t.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=null!==t&&this.checkNonGreedyDecision(t,this.state),this.hashCodeForConfigSet=He.prototype.hashCode,this.equalsForConfigSet=He.prototype.equals,this}updateHashCode(e){e.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}equals(e){return this===e||e instanceof He&&this.passedThroughNonGreedyDecision===e.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(e.lexerActionExecutor):!e.lexerActionExecutor)&&super.equals(e)}checkNonGreedyDecision(e,t){return e.passedThroughNonGreedyDecision||t instanceof Q&&t.nonGreedy}}class $e extends we{constructor(e,t){super(t.actionType),this.offset=e,this.action=t,this.isPositionDependent=!0}execute(e){this.action.execute(e)}updateHashCode(e){e.update(this.actionType,this.offset,this.action)}equals(e){return this===e||e instanceof $e&&this.offset===e.offset&&this.action===e.action}}class Ge{constructor(e){return this.lexerActions=null===e?[]:e,this.cachedHashCode=i.hashStuff(e),this}fixOffsetBeforeMatch(e){let t=null;for(let r=0;r<this.lexerActions.length;r++)!this.lexerActions[r].isPositionDependent||this.lexerActions[r]instanceof $e||(null===t&&(t=this.lexerActions.concat([])),t[r]=new $e(e,this.lexerActions[r]));return null===t?this:new Ge(t)}execute(e,t,r){let s=!1;const i=t.index;try{for(let n=0;n<this.lexerActions.length;n++){let a=this.lexerActions[n];if(a instanceof $e){const e=a.offset;t.seek(r+e),a=a.action,s=r+e!==i}else a.isPositionDependent&&(t.seek(i),s=!1);a.execute(e)}}finally{s&&t.seek(i)}}hashCode(){return this.cachedHashCode}updateHashCode(e){e.update(this.cachedHashCode)}equals(e){if(this===e)return!0;if(e instanceof Ge){if(this.cachedHashCode!=e.cachedHashCode)return!1;if(this.lexerActions.length!=e.lexerActions.length)return!1;{const t=this.lexerActions.length;for(let r=0;r<t;++r)if(!this.lexerActions[r].equals(e.lexerActions[r]))return!1;return!0}}return!1}static append(e,t){if(null===e)return new Ge([t]);const r=e.lexerActions.concat([t]);return new Ge(r)}}function ze(e){e.index=-1,e.line=0,e.column=-1,e.dfaState=null}class We{constructor(){ze(this)}reset(){ze(this)}}class Xe extends je{constructor(e,t,r,s){super(t,s),this.decisionToDFA=r,this.recog=e,this.startIndex=-1,this.line=1,this.column=0,this.mode=Me.DEFAULT_MODE,this.prevAccept=new We}copyState(e){this.column=e.column,this.line=e.line,this.mode=e.mode,this.startIndex=e.startIndex}match(e,t){this.mode=t;const r=e.mark();try{this.startIndex=e.index,this.prevAccept.reset();const r=this.decisionToDFA[t];return null===r.s0?this.matchATN(e):this.execATN(e,r.s0)}finally{e.release(r)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=Me.DEFAULT_MODE}matchATN(e){const t=this.atn.modeToStartState[this.mode];Xe.debug&&console.log("matchATN mode "+this.mode+" start: "+t);const r=this.mode,s=this.computeStartState(e,t),i=s.hasSemanticContext;s.hasSemanticContext=!1;const n=this.addDFAState(s);i||(this.decisionToDFA[this.mode].s0=n);const a=this.execATN(e,n);return Xe.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[r].toLexerString()),a}execATN(t,r){Xe.debug&&console.log("start state closure="+r.configs),r.isAcceptState&&this.captureSimState(this.prevAccept,t,r);let s=t.LA(1),i=r;for(;;){Xe.debug&&console.log("execATN loop starting closure: "+i.configs);let r=this.getExistingTargetState(i,s);if(null===r&&(r=this.computeTargetState(t,i,s)),r===je.ERROR)break;if(s!==e.EOF&&this.consume(t),r.isAcceptState&&(this.captureSimState(this.prevAccept,t,r),s===e.EOF))break;s=t.LA(1),i=r}return this.failOrAccept(this.prevAccept,t,i.configs,s)}getExistingTargetState(e,t){if(null===e.edges||t<Xe.MIN_DFA_EDGE||t>Xe.MAX_DFA_EDGE)return null;let r=e.edges[t-Xe.MIN_DFA_EDGE];return void 0===r&&(r=null),Xe.debug&&null!==r&&console.log("reuse state "+e.stateNumber+" edge to "+r.stateNumber),r}computeTargetState(e,t,r){const s=new Be;return this.getReachableConfigSet(e,t.configs,s,r),0===s.items.length?(s.hasSemanticContext||this.addDFAEdge(t,r,je.ERROR),je.ERROR):this.addDFAEdge(t,r,null,s)}failOrAccept(t,r,s,i){if(null!==this.prevAccept.dfaState){const e=t.dfaState.lexerActionExecutor;return this.accept(r,e,this.startIndex,t.index,t.line,t.column),t.dfaState.prediction}if(i===e.EOF&&r.index===this.startIndex)return e.EOF;throw new qe(this.recog,r,this.startIndex,s)}getReachableConfigSet(t,r,s,i){let n=W.INVALID_ALT_NUMBER;for(let a=0;a<r.items.length;a++){const o=r.items[a],c=o.alt===n;if(!c||!o.passedThroughNonGreedyDecision){Xe.debug&&console.log("testing %s at %s\n",this.getTokenName(i),o.toString(this.recog,!0));for(let r=0;r<o.state.transitions.length;r++){const a=o.state.transitions[r],l=this.getReachableTarget(a,i);if(null!==l){let r=o.lexerActionExecutor;null!==r&&(r=r.fixOffsetBeforeMatch(t.index-this.startIndex));const a=i===e.EOF,h=new He({state:l,lexerActionExecutor:r},o);this.closure(t,h,s,c,!0,a)&&(n=o.alt)}}}}}accept(e,t,r,s,i,n){Xe.debug&&console.log("ACTION %s\n",t),e.seek(s),this.line=i,this.column=n,null!==t&&null!==this.recog&&t.execute(this.recog,e,r)}getReachableTarget(e,t){return e.matches(t,0,Me.MAX_CHAR_VALUE)?e.target:null}computeStartState(e,t){const r=M.EMPTY,s=new Be;for(let i=0;i<t.transitions.length;i++){const n=t.transitions[i].target,a=new He({state:n,alt:i+1,context:r},null);this.closure(e,a,s,!1,!1,!1)}return s}closure(e,t,r,s,i,n){let a=null;if(Xe.debug&&console.log("closure("+t.toString(this.recog,!0)+")"),t.state instanceof _){if(Xe.debug&&(null!==this.recog?console.log("closure at %s rule stop %s\n",this.recog.ruleNames[t.state.ruleIndex],t):console.log("closure at rule stop %s\n",t)),null===t.context||t.context.hasEmptyPath()){if(null===t.context||t.context.isEmpty())return r.add(t),!0;r.add(new He({state:t.state,context:M.EMPTY},t)),s=!0}if(null!==t.context&&!t.context.isEmpty())for(let o=0;o<t.context.length;o++)if(t.context.getReturnState(o)!==M.EMPTY_RETURN_STATE){const c=t.context.getParent(o),l=this.atn.states[t.context.getReturnState(o)];a=new He({state:l,context:c},t),s=this.closure(e,a,r,s,i,n)}return s}t.state.epsilonOnlyTransitions||s&&t.passedThroughNonGreedyDecision||r.add(t);for(let o=0;o<t.state.transitions.length;o++){const c=t.state.transitions[o];a=this.getEpsilonTarget(e,t,c,r,i,n),null!==a&&(s=this.closure(e,a,r,s,i,n))}return s}getEpsilonTarget(t,r,s,i,n,a){let o=null;if(s.serializationType===E.RULE){const e=U.create(r.context,s.followState.stateNumber);o=new He({state:s.target,context:e},r)}else{if(s.serializationType===E.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(s.serializationType===E.PREDICATE)Xe.debug&&console.log("EVAL rule "+s.ruleIndex+":"+s.predIndex),i.hasSemanticContext=!0,this.evaluatePredicate(t,s.ruleIndex,s.predIndex,n)&&(o=new He({state:s.target},r));else if(s.serializationType===E.ACTION)if(null===r.context||r.context.hasEmptyPath()){const e=Ge.append(r.lexerActionExecutor,this.atn.lexerActions[s.actionIndex]);o=new He({state:s.target,lexerActionExecutor:e},r)}else o=new He({state:s.target},r);else s.serializationType===E.EPSILON?o=new He({state:s.target},r):s.serializationType!==E.ATOM&&s.serializationType!==E.RANGE&&s.serializationType!==E.SET||a&&s.matches(e.EOF,0,Me.MAX_CHAR_VALUE)&&(o=new He({state:s.target},r))}return o}evaluatePredicate(e,t,r,s){if(null===this.recog)return!0;if(!s)return this.recog.sempred(null,t,r);const i=this.column,n=this.line,a=e.index,o=e.mark();try{return this.consume(e),this.recog.sempred(null,t,r)}finally{this.column=i,this.line=n,e.seek(a),e.release(o)}}captureSimState(e,t,r){e.index=t.index,e.line=this.line,e.column=this.column,e.dfaState=r}addDFAEdge(e,t,r,s){if(void 0===r&&(r=null),void 0===s&&(s=null),null===r&&null!==s){const e=s.hasSemanticContext;if(s.hasSemanticContext=!1,r=this.addDFAState(s),e)return r}return t<Xe.MIN_DFA_EDGE||t>Xe.MAX_DFA_EDGE||(Xe.debug&&console.log("EDGE "+e+" -> "+r+" upon "+t),null===e.edges&&(e.edges=[]),e.edges[t-Xe.MIN_DFA_EDGE]=r),r}addDFAState(e){const t=new Ve(null,e);let r=null;for(let t=0;t<e.items.length;t++){const s=e.items[t];if(s.state instanceof _){r=s;break}}null!==r&&(t.isAcceptState=!0,t.lexerActionExecutor=r.lexerActionExecutor,t.prediction=this.atn.ruleToTokenType[r.state.ruleIndex]);const s=this.decisionToDFA[this.mode],i=s.states.get(t);if(null!==i)return i;const n=t;return n.stateNumber=s.states.length,e.setReadonly(!0),n.configs=e,s.states.add(n),n}getDFA(e){return this.decisionToDFA[e]}getText(e){return e.getText(this.startIndex,e.index-1)}consume(e){e.LA(1)==="\n".charCodeAt(0)?(this.line+=1,this.column=0):this.column+=1,e.consume()}getTokenName(e){return-1===e?"EOF":"'"+String.fromCharCode(e)+"'"}}Xe.debug=!1,Xe.dfa_debug=!1,Xe.MIN_DFA_EDGE=0,Xe.MAX_DFA_EDGE=127;class Qe{constructor(e,t){this.alt=t,this.pred=e}toString(){return"("+this.pred+", "+this.alt+")"}}class Je{constructor(){this.data={}}get(e){return this.data["k-"+e]||null}set(e,t){this.data["k-"+e]=t}values(){return Object.keys(this.data).filter(e=>e.startsWith("k-")).map(e=>this.data[e],this)}}const Ze={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(e,t){if(Ze.allConfigsInRuleStopStates(t))return!0;if(e===Ze.SLL&&t.hasSemanticContext){const e=new Ye;for(let r=0;r<t.items.length;r++){let s=t.items[r];s=new w({semanticContext:p.NONE},s),e.add(s)}t=e}const r=Ze.getConflictingAltSubsets(t);return Ze.hasConflictingAltSet(r)&&!Ze.hasStateAssociatedWithOneAlt(t)},hasConfigInRuleStopState:function(e){for(let t=0;t<e.items.length;t++)if(e.items[t].state instanceof _)return!0;return!1},allConfigsInRuleStopStates:function(e){for(let t=0;t<e.items.length;t++)if(!(e.items[t].state instanceof _))return!1;return!0},resolvesToJustOneViableAlt:function(e){return Ze.getSingleViableAlt(e)},allSubsetsConflict:function(e){return!Ze.hasNonConflictingAltSet(e)},hasNonConflictingAltSet:function(e){for(let t=0;t<e.length;t++)if(1===e[t].length)return!0;return!1},hasConflictingAltSet:function(e){for(let t=0;t<e.length;t++)if(e[t].length>1)return!0;return!1},allSubsetsEqual:function(e){let t=null;for(let r=0;r<e.length;r++){const s=e[r];if(null===t)t=s;else if(s!==t)return!1}return!0},getUniqueAlt:function(e){const t=Ze.getAlts(e);return 1===t.length?t.minValue():W.INVALID_ALT_NUMBER},getAlts:function(e){const t=new G;return e.map(function(e){t.or(e)}),t},getConflictingAltSubsets:function(e){const t=new j;return t.hashFunction=function(e){i.hashStuff(e.state.stateNumber,e.context)},t.equalsFunction=function(e,t){return e.state.stateNumber===t.state.stateNumber&&e.context.equals(t.context)},e.items.map(function(e){let r=t.get(e);null===r&&(r=new G,t.set(e,r)),r.add(e.alt)}),t.getValues()},getStateToAltMap:function(e){const t=new Je;return e.items.map(function(e){let r=t.get(e.state);null===r&&(r=new G,t.set(e.state,r)),r.add(e.alt)}),t},hasStateAssociatedWithOneAlt:function(e){const t=Ze.getStateToAltMap(e).values();for(let e=0;e<t.length;e++)if(1===t[e].length)return!0;return!1},getSingleViableAlt:function(e){let t=null;for(let r=0;r<e.length;r++){const s=e[r].minValue();if(null===t)t=s;else if(t!==s)return W.INVALID_ALT_NUMBER}return t}},et=Ze;class tt extends Pe{constructor(e,t,r,s,i,n){n=n||e._ctx,s=s||e.getCurrentToken(),r=r||e.getCurrentToken(),t=t||e.getInputStream(),super({message:"",recognizer:e,input:t,ctx:n}),this.deadEndConfigs=i,this.startToken=r,this.offendingToken=s}}class rt{constructor(e){this.defaultMapCtor=e||j,this.cacheMap=new this.defaultMapCtor}get(e,t){const r=this.cacheMap.get(e)||null;return null===r?null:r.get(t)||null}set(e,t,r){let s=this.cacheMap.get(e)||null;null===s&&(s=new this.defaultMapCtor,this.cacheMap.set(e,s)),s.set(t,r)}}class st extends je{constructor(e,t,r,s){super(t,s),this.parser=e,this.decisionToDFA=r,this.predictionMode=et.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this.debug=!1,this.debug_closure=!1,this.debug_add=!1,this.trace_atn_sim=!1,this.dfa_debug=!1,this.retry_debug=!1}reset(){}adaptivePredict(e,t,r){(this.debug||this.trace_atn_sim)&&console.log("adaptivePredict decision "+t+" exec LA(1)=="+this.getLookaheadName(e)+" line "+e.LT(1).line+":"+e.LT(1).column),this._input=e,this._startIndex=e.index,this._outerContext=r;const s=this.decisionToDFA[t];this._dfa=s;const i=e.mark(),n=e.index;try{let t;if(t=s.precedenceDfa?s.getPrecedenceStartState(this.parser.getPrecedence()):s.s0,null===t){null===r&&(r=q.EMPTY),this.debug&&console.log("predictATN decision "+s.decision+" exec LA(1)=="+this.getLookaheadName(e)+", outerContext="+r.toString(this.parser.ruleNames));const i=!1;let n=this.computeStartState(s.atnStartState,q.EMPTY,i);s.precedenceDfa?(s.s0.configs=n,n=this.applyPrecedenceFilter(n),t=this.addDFAState(s,new Ve(null,n)),s.setPrecedenceStartState(this.parser.getPrecedence(),t)):(t=this.addDFAState(s,new Ve(null,n)),s.s0=t)}const i=this.execATN(s,t,e,n,r);return this.debug&&console.log("DFA after predictATN: "+s.toString(this.parser.literalNames,this.parser.symbolicNames)),i}finally{this._dfa=null,this.mergeCache=null,e.seek(n),e.release(i)}}execATN(t,r,s,i,n){let a;(this.debug||this.trace_atn_sim)&&console.log("execATN decision "+t.decision+", DFA state "+r+", LA(1)=="+this.getLookaheadName(s)+" line "+s.LT(1).line+":"+s.LT(1).column);let o=r;this.debug&&console.log("s0 = "+r);let c=s.LA(1);for(;;){let r=this.getExistingTargetState(o,c);if(null===r&&(r=this.computeTargetState(t,o,c)),r===je.ERROR){const e=this.noViableAlt(s,n,o.configs,i);if(s.seek(i),a=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(o.configs,n),a!==W.INVALID_ALT_NUMBER)return a;throw e}if(r.requiresFullContext&&this.predictionMode!==et.SLL){let e=null;if(null!==r.predicates){this.debug&&console.log("DFA state has preds in DFA sim LL failover");const t=s.index;if(t!==i&&s.seek(i),e=this.evalSemanticContext(r.predicates,n,!0),1===e.length)return this.debug&&console.log("Full LL avoided"),e.minValue();t!==i&&s.seek(t)}this.dfa_debug&&console.log("ctx sensitive state "+n+" in "+r);const o=!0,c=this.computeStartState(t.atnStartState,n,o);return this.reportAttemptingFullContext(t,e,r.configs,i,s.index),a=this.execATNWithFullContext(t,r,c,s,i,n),a}if(r.isAcceptState){if(null===r.predicates)return r.prediction;const e=s.index;s.seek(i);const a=this.evalSemanticContext(r.predicates,n,!0);if(0===a.length)throw this.noViableAlt(s,n,r.configs,i);return 1===a.length||this.reportAmbiguity(t,r,i,e,!1,a,r.configs),a.minValue()}o=r,c!==e.EOF&&(s.consume(),c=s.LA(1))}}getExistingTargetState(e,t){const r=e.edges;return null===r?null:r[t+1]||null}computeTargetState(e,t,r){const s=this.computeReachSet(t.configs,r,!1);if(null===s)return this.addDFAEdge(e,t,r,je.ERROR),je.ERROR;let i=new Ve(null,s);const n=this.getUniqueAlt(s);if(this.debug){const e=et.getConflictingAltSubsets(s);console.log("SLL altSubSets="+h(e)+", configs="+s+", predict="+n+", allSubsetsConflict="+et.allSubsetsConflict(e)+", conflictingAlts="+this.getConflictingAlts(s))}return n!==W.INVALID_ALT_NUMBER?(i.isAcceptState=!0,i.configs.uniqueAlt=n,i.prediction=n):et.hasSLLConflictTerminatingPrediction(this.predictionMode,s)&&(i.configs.conflictingAlts=this.getConflictingAlts(s),i.requiresFullContext=!0,i.isAcceptState=!0,i.prediction=i.configs.conflictingAlts.minValue()),i.isAcceptState&&i.configs.hasSemanticContext&&(this.predicateDFAState(i,this.atn.getDecisionState(e.decision)),null!==i.predicates&&(i.prediction=W.INVALID_ALT_NUMBER)),i=this.addDFAEdge(e,t,r,i),i}predicateDFAState(e,t){const r=t.transitions.length,s=this.getConflictingAltsOrUniqueAlt(e.configs),i=this.getPredsForAmbigAlts(s,e.configs,r);null!==i?(e.predicates=this.getPredicatePredictions(s,i),e.prediction=W.INVALID_ALT_NUMBER):e.prediction=s.minValue()}execATNWithFullContext(t,r,s,i,n,a){(this.debug||this.trace_atn_sim)&&console.log("execATNWithFullContext "+s);let o,c=!1,l=s;i.seek(n);let h=i.LA(1),u=-1;for(;;){if(o=this.computeReachSet(l,h,!0),null===o){const e=this.noViableAlt(i,a,l,n);i.seek(n);const t=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(l,a);if(t!==W.INVALID_ALT_NUMBER)return t;throw e}const t=et.getConflictingAltSubsets(o);if(this.debug&&console.log("LL altSubSets="+t+", predict="+et.getUniqueAlt(t)+", resolvesToJustOneViableAlt="+et.resolvesToJustOneViableAlt(t)),o.uniqueAlt=this.getUniqueAlt(o),o.uniqueAlt!==W.INVALID_ALT_NUMBER){u=o.uniqueAlt;break}if(this.predictionMode!==et.LL_EXACT_AMBIG_DETECTION){if(u=et.resolvesToJustOneViableAlt(t),u!==W.INVALID_ALT_NUMBER)break}else if(et.allSubsetsConflict(t)&&et.allSubsetsEqual(t)){c=!0,u=et.getSingleViableAlt(t);break}l=o,h!==e.EOF&&(i.consume(),h=i.LA(1))}return o.uniqueAlt!==W.INVALID_ALT_NUMBER?(this.reportContextSensitivity(t,u,o,n,i.index),u):(this.reportAmbiguity(t,r,n,i.index,c,null,o),u)}computeReachSet(t,r,s){this.debug&&console.log("in computeReachSet, starting closure: "+t),null===this.mergeCache&&(this.mergeCache=new rt);const i=new Ye(s);let n=null;for(let a=0;a<t.items.length;a++){const o=t.items[a];if(this.debug&&console.log("testing "+this.getTokenName(r)+" at "+o),o.state instanceof _)(s||r===e.EOF)&&(null===n&&(n=[]),n.push(o),this.debug_add&&console.log("added "+o+" to skippedStopStates"));else for(let e=0;e<o.state.transitions.length;e++){const t=o.state.transitions[e],s=this.getReachableTarget(t,r);if(null!==s){const e=new w({state:s},o);i.add(e,this.mergeCache),this.debug_add&&console.log("added "+e+" to intermediate")}}}let a=null;if(null===n&&r!==e.EOF&&(1===i.items.length||this.getUniqueAlt(i)!==W.INVALID_ALT_NUMBER)&&(a=i),null===a){a=new Ye(s);const t=new d,n=r===e.EOF;for(let e=0;e<i.items.length;e++)this.closure(i.items[e],a,t,!1,s,n)}if(r===e.EOF&&(a=this.removeAllConfigsNotInRuleStopState(a,a===i)),!(null===n||s&&et.hasConfigInRuleStopState(a)))for(let e=0;e<n.length;e++)a.add(n[e],this.mergeCache);return this.trace_atn_sim&&console.log("computeReachSet "+t+" -> "+a),0===a.items.length?null:a}removeAllConfigsNotInRuleStopState(t,r){if(et.allConfigsInRuleStopStates(t))return t;const s=new Ye(t.fullCtx);for(let i=0;i<t.items.length;i++){const n=t.items[i];if(n.state instanceof _)s.add(n,this.mergeCache);else if(r&&n.state.epsilonOnlyTransitions&&this.atn.nextTokens(n.state).contains(e.EPSILON)){const e=this.atn.ruleToStopState[n.state.ruleIndex];s.add(new w({state:e},n),this.mergeCache)}}return s}computeStartState(e,t,r){const s=B(this.atn,t),i=new Ye(r);this.trace_atn_sim&&console.log("computeStartState from ATN state "+e+" initialContext="+s.toString(this.parser));for(let t=0;t<e.transitions.length;t++){const n=e.transitions[t].target,a=new w({state:n,alt:t+1,context:s},null),o=new d;this.closure(a,i,o,!0,r,!1)}return i}applyPrecedenceFilter(e){let t;const r=[],s=new Ye(e.fullCtx);for(let i=0;i<e.items.length;i++){if(t=e.items[i],1!==t.alt)continue;const n=t.semanticContext.evalPrecedence(this.parser,this._outerContext);null!==n&&(r[t.state.stateNumber]=t.context,n!==t.semanticContext?s.add(new w({semanticContext:n},t),this.mergeCache):s.add(t,this.mergeCache))}for(let i=0;i<e.items.length;i++)if(t=e.items[i],1!==t.alt){if(!t.precedenceFilterSuppressed){const e=r[t.state.stateNumber]||null;if(null!==e&&e.equals(t.context))continue}s.add(t,this.mergeCache)}return s}getReachableTarget(e,t){return e.matches(t,0,this.atn.maxTokenType)?e.target:null}getPredsForAmbigAlts(e,t,r){let s=[];for(let r=0;r<t.items.length;r++){const i=t.items[r];e.has(i.alt)&&(s[i.alt]=p.orContext(s[i.alt]||null,i.semanticContext))}let i=0;for(let e=1;e<r+1;e++){const t=s[e]||null;null===t?s[e]=p.NONE:t!==p.NONE&&(i+=1)}return 0===i&&(s=null),this.debug&&console.log("getPredsForAmbigAlts result "+h(s)),s}getPredicatePredictions(e,t){const r=[];let s=!1;for(let i=1;i<t.length;i++){const n=t[i];null!==e&&e.has(i)&&r.push(new Qe(n,i)),n!==p.NONE&&(s=!0)}return s?r:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(e,t){const r=this.splitAccordingToSemanticValidity(e,t),s=r[0],i=r[1];let n=this.getAltThatFinishedDecisionEntryRule(s);return n!==W.INVALID_ALT_NUMBER||i.items.length>0&&(n=this.getAltThatFinishedDecisionEntryRule(i),n!==W.INVALID_ALT_NUMBER)?n:W.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(e){const t=[];for(let r=0;r<e.items.length;r++){const s=e.items[r];(s.reachesIntoOuterContext>0||s.state instanceof _&&s.context.hasEmptyPath())&&t.indexOf(s.alt)<0&&t.push(s.alt)}return 0===t.length?W.INVALID_ALT_NUMBER:Math.min.apply(null,t)}splitAccordingToSemanticValidity(e,t){const r=new Ye(e.fullCtx),s=new Ye(e.fullCtx);for(let i=0;i<e.items.length;i++){const n=e.items[i];n.semanticContext!==p.NONE?n.semanticContext.evaluate(this.parser,t)?r.add(n):s.add(n):r.add(n)}return[r,s]}evalSemanticContext(e,t,r){const s=new G;for(let i=0;i<e.length;i++){const n=e[i];if(n.pred===p.NONE){if(s.add(n.alt),!r)break;continue}const a=n.pred.evaluate(this.parser,t);if((this.debug||this.dfa_debug)&&console.log("eval pred "+n+"="+a),a&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+n.alt),s.add(n.alt),!r))break}return s}closure(e,t,r,s,i,n){this.closureCheckingStopState(e,t,r,s,i,0,n)}closureCheckingStopState(e,t,r,s,i,n,a){if((this.trace_atn_sim||this.debug_closure)&&console.log("closure("+e.toString(this.parser,!0)+")"),e.state instanceof _){if(!e.context.isEmpty()){for(let o=0;o<e.context.length;o++){if(e.context.getReturnState(o)===M.EMPTY_RETURN_STATE){if(i){t.add(new w({state:e.state,context:M.EMPTY},e),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex)),this.closure_(e,t,r,s,i,n,a);continue}const c=this.atn.states[e.context.getReturnState(o)],l=e.context.getParent(o),h={state:c,alt:e.alt,context:l,semanticContext:e.semanticContext},u=new w(h,null);u.reachesIntoOuterContext=e.reachesIntoOuterContext,this.closureCheckingStopState(u,t,r,s,i,n-1,a)}return}if(i)return void t.add(e,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(e.state.ruleIndex))}this.closure_(e,t,r,s,i,n,a)}closure_(e,t,r,s,i,n,a){const o=e.state;o.epsilonOnlyTransitions||t.add(e,this.mergeCache);for(let c=0;c<o.transitions.length;c++){if(0===c&&this.canDropLoopEntryEdgeInLeftRecursiveRule(e))continue;const l=o.transitions[c],h=s&&!(l instanceof ue),u=this.getEpsilonTarget(e,l,h,0===n,i,a);if(null!==u){let s=n;if(e.state instanceof _){if(null!==this._dfa&&this._dfa.precedenceDfa&&l.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(u.precedenceFilterSuppressed=!0),u.reachesIntoOuterContext+=1,r.add(u)!==u)continue;t.dipsIntoOuterContext=!0,s-=1,this.debug&&console.log("dips into outer ctx: "+u)}else{if(!l.isEpsilon&&r.add(u)!==u)continue;l instanceof T&&s>=0&&(s+=1)}this.closureCheckingStopState(u,t,r,h,i,s,a)}}}canDropLoopEntryEdgeInLeftRecursiveRule(e){const t=e.state;if(t.stateType!==b.STAR_LOOP_ENTRY)return!1;if(t.stateType!==b.STAR_LOOP_ENTRY||!t.isPrecedenceDecision||e.context.isEmpty()||e.context.hasEmptyPath())return!1;const r=e.context.length;for(let s=0;s<r;s++)if(this.atn.states[e.context.getReturnState(s)].ruleIndex!==t.ruleIndex)return!1;const s=t.transitions[0].target.endState.stateNumber,i=this.atn.states[s];for(let s=0;s<r;s++){const r=e.context.getReturnState(s),n=this.atn.states[r];if(1!==n.transitions.length||!n.transitions[0].isEpsilon)return!1;const a=n.transitions[0].target;if(!(n.stateType===b.BLOCK_END&&a===t||n===i||a===i||a.stateType===b.BLOCK_END&&1===a.transitions.length&&a.transitions[0].isEpsilon&&a.transitions[0].target===t))return!1}return!0}getRuleName(e){return null!==this.parser&&e>=0?this.parser.ruleNames[e]:"<rule "+e+">"}getEpsilonTarget(t,r,s,i,n,a){switch(r.serializationType){case E.RULE:return this.ruleTransition(t,r);case E.PRECEDENCE:return this.precedenceTransition(t,r,s,i,n);case E.PREDICATE:return this.predTransition(t,r,s,i,n);case E.ACTION:return this.actionTransition(t,r);case E.EPSILON:return new w({state:r.target},t);case E.ATOM:case E.RANGE:case E.SET:return a&&r.matches(e.EOF,0,1)?new w({state:r.target},t):null;default:return null}}actionTransition(e,t){if(this.debug){const e=-1===t.actionIndex?65535:t.actionIndex;console.log("ACTION edge "+t.ruleIndex+":"+e)}return new w({state:t.target},e)}precedenceTransition(e,t,r,s,i){this.debug&&(console.log("PRED (collectPredicates="+r+") "+t.precedence+">=_p, ctx dependent=true"),null!==this.parser&&console.log("context surrounding pred is "+h(this.parser.getRuleInvocationStack())));let n=null;if(r&&s)if(i){const r=this._input.index;this._input.seek(this._startIndex);const s=t.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),s&&(n=new w({state:t.target},e))}else{const r=p.andContext(e.semanticContext,t.getPredicate());n=new w({state:t.target,semanticContext:r},e)}else n=new w({state:t.target},e);return this.debug&&console.log("config from pred transition="+n),n}predTransition(e,t,r,s,i){this.debug&&(console.log("PRED (collectPredicates="+r+") "+t.ruleIndex+":"+t.predIndex+", ctx dependent="+t.isCtxDependent),null!==this.parser&&console.log("context surrounding pred is "+h(this.parser.getRuleInvocationStack())));let n=null;if(r&&(t.isCtxDependent&&s||!t.isCtxDependent))if(i){const r=this._input.index;this._input.seek(this._startIndex);const s=t.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(r),s&&(n=new w({state:t.target},e))}else{const r=p.andContext(e.semanticContext,t.getPredicate());n=new w({state:t.target,semanticContext:r},e)}else n=new w({state:t.target},e);return this.debug&&console.log("config from pred transition="+n),n}ruleTransition(e,t){this.debug&&console.log("CALL rule "+this.getRuleName(t.target.ruleIndex)+", ctx="+e.context);const r=t.followState,s=U.create(e.context,r.stateNumber);return new w({state:t.target,context:s},e)}getConflictingAlts(e){const t=et.getConflictingAltSubsets(e);return et.getAlts(t)}getConflictingAltsOrUniqueAlt(e){let t=null;return e.uniqueAlt!==W.INVALID_ALT_NUMBER?(t=new G,t.add(e.uniqueAlt)):t=e.conflictingAlts,t}getTokenName(t){if(t===e.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(e){return this.getTokenName(e.LA(1))}dumpDeadEndConfigs(e){console.log("dead end configs: ");const t=e.getDeadEndConfigs();for(let e=0;e<t.length;e++){const r=t[e];let s="no edges";if(r.state.transitions.length>0){const e=r.state.transitions[0];e instanceof le?s="Atom "+this.getTokenName(e.label):e instanceof S&&(s=(e instanceof k?"~":"")+"Set "+e.set)}console.error(r.toString(this.parser,!0)+":"+s)}}noViableAlt(e,t,r,s){return new tt(this.parser,e,e.get(s),e.LT(1),r,t)}getUniqueAlt(e){let t=W.INVALID_ALT_NUMBER;for(let r=0;r<e.items.length;r++){const s=e.items[r];if(t===W.INVALID_ALT_NUMBER)t=s.alt;else if(s.alt!==t)return W.INVALID_ALT_NUMBER}return t}addDFAEdge(e,t,r,s){if(this.debug&&console.log("EDGE "+t+" -> "+s+" upon "+this.getTokenName(r)),null===s)return null;if(s=this.addDFAState(e,s),null===t||r<-1||r>this.atn.maxTokenType)return s;if(null===t.edges&&(t.edges=[]),t.edges[r+1]=s,this.debug){const t=null===this.parser?null:this.parser.literalNames,r=null===this.parser?null:this.parser.symbolicNames;console.log("DFA=\n"+e.toString(t,r))}return s}addDFAState(e,t){if(t===je.ERROR)return t;const r=e.states.get(t);return null!==r?(this.trace_atn_sim&&console.log("addDFAState "+t+" exists"),r):(t.stateNumber=e.states.length,t.configs.readOnly||(t.configs.optimizeConfigs(this),t.configs.setReadonly(!0)),this.trace_atn_sim&&console.log("addDFAState new "+t),e.states.add(t),this.debug&&console.log("adding new DFA state: "+t),t)}reportAttemptingFullContext(e,t,r,s,i){if(this.debug||this.retry_debug){const t=new x(s,i+1);console.log("reportAttemptingFullContext decision="+e.decision+":"+r+", input="+this.parser.getTokenStream().getText(t))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,e,s,i,t,r)}reportContextSensitivity(e,t,r,s,i){if(this.debug||this.retry_debug){const t=new x(s,i+1);console.log("reportContextSensitivity decision="+e.decision+":"+r+", input="+this.parser.getTokenStream().getText(t))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,e,s,i,t,r)}reportAmbiguity(e,t,r,s,i,n,a){if(this.debug||this.retry_debug){const e=new x(r,s+1);console.log("reportAmbiguity "+n+":"+a+", input="+this.parser.getTokenStream().getText(e))}null!==this.parser&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,e,r,s,i,n,a)}}class it{constructor(){this.cache=new j}add(e){if(e===M.EMPTY)return M.EMPTY;const t=this.cache.get(e)||null;return null!==t?t:(this.cache.set(e,e),e)}get(e){return this.cache.get(e)||null}get length(){return this.cache.length}}const nt={ATN:W,ATNDeserializer:Ae,LexerATNSimulator:Xe,ParserATNSimulator:st,PredictionMode:et,PredictionContextCache:it};class at{constructor(e,t,r){this.dfa=e,this.literalNames=t||[],this.symbolicNames=r||[]}toString(){if(null===this.dfa.s0)return null;let e="";const t=this.dfa.sortedStates();for(let r=0;r<t.length;r++){const s=t[r];if(null!==s.edges){const t=s.edges.length;for(let r=0;r<t;r++){const t=s.edges[r]||null;null!==t&&2147483647!==t.stateNumber&&(e=e.concat(this.getStateString(s)),e=e.concat("-"),e=e.concat(this.getEdgeLabel(r)),e=e.concat("->"),e=e.concat(this.getStateString(t)),e=e.concat("\n"))}}}return 0===e.length?null:e}getEdgeLabel(e){return 0===e?"EOF":null!==this.literalNames||null!==this.symbolicNames?this.literalNames[e-1]||this.symbolicNames[e-1]:String.fromCharCode(e-1)}getStateString(e){const t=(e.isAcceptState?":":"")+"s"+e.stateNumber+(e.requiresFullContext?"^":"");return e.isAcceptState?null!==e.predicates?t+"=>"+h(e.predicates):t+"=>"+e.prediction.toString():t}}class ot extends at{constructor(e){super(e,null)}getEdgeLabel(e){return"'"+String.fromCharCode(e)+"'"}}class ct{constructor(e,t){if(void 0===t&&(t=0),this.atnStartState=e,this.decision=t,this._states=new d,this.s0=null,this.precedenceDfa=!1,e instanceof ne&&e.isPrecedenceDecision){this.precedenceDfa=!0;const e=new Ve(null,new Ye);e.edges=[],e.isAcceptState=!1,e.requiresFullContext=!1,this.s0=e}}getPrecedenceStartState(e){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return e<0||e>=this.s0.edges.length?null:this.s0.edges[e]||null}setPrecedenceStartState(e,t){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";e<0||(this.s0.edges[e]=t)}setPrecedenceDfa(e){if(this.precedenceDfa!==e){if(this._states=new d,e){const e=new Ve(null,new Ye);e.edges=[],e.isAcceptState=!1,e.requiresFullContext=!1,this.s0=e}else this.s0=null;this.precedenceDfa=e}}sortedStates(){return this._states.values().sort(function(e,t){return e.stateNumber-t.stateNumber})}toString(e,t){return e=e||null,t=t||null,null===this.s0?"":new at(this,e,t).toString()}toLexerString(){return null===this.s0?"":new ot(this).toString()}get states(){return this._states}}const lt={DFA:ct,DFASerializer:at,LexerDFASerializer:ot,PredPrediction:Qe},ht={PredictionContext:M},ut={Interval:x,IntervalSet:v};class dt{visitTerminal(e){}visitErrorNode(e){}enterEveryRule(e){}exitEveryRule(e){}}class pt{visit(e){return Array.isArray(e)?e.map(function(e){return e.accept(this)},this):e.accept(this)}visitChildren(e){return e.children?this.visit(e.children):null}visitTerminal(e){}visitErrorNode(e){}}class mt{walk(e,t){if(t instanceof O||void 0!==t.isErrorNode&&t.isErrorNode())e.visitErrorNode(t);else if(t instanceof N)e.visitTerminal(t);else{this.enterRule(e,t);for(let r=0;r<t.getChildCount();r++){const s=t.getChild(r);this.walk(e,s)}this.exitRule(e,t)}}enterRule(e,t){const r=t.ruleContext;e.enterEveryRule(r),r.enterRule(e)}exitRule(e,t){const r=t.ruleContext;r.exitRule(e),e.exitEveryRule(r)}}mt.DEFAULT=new mt;const yt={Trees:P,RuleNode:I,ErrorNode:O,TerminalNode:N,ParseTreeListener:dt,ParseTreeVisitor:pt,ParseTreeWalker:mt};class ft extends Pe{constructor(e){super({message:"",recognizer:e,input:e.getInputStream(),ctx:e._ctx}),this.offendingToken=e.getCurrentToken()}}class gt extends Pe{constructor(e,t,r){super({message:wt(t,r||null),recognizer:e,input:e.getInputStream(),ctx:e._ctx});const s=e._interp.atn.states[e.state].transitions[0];s instanceof me?(this.ruleIndex=s.ruleIndex,this.predicateIndex=s.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=t,this.offendingToken=e.getCurrentToken()}}function wt(e,t){return null!==t?t:"failed predicate: {"+e+"}?"}class xt extends Ce{constructor(e){super(),e=e||!0,this.exactOnly=e}reportAmbiguity(e,t,r,s,i,n,a){if(this.exactOnly&&!i)return;const o="reportAmbiguity d="+this.getDecisionDescription(e,t)+": ambigAlts="+this.getConflictingAlts(n,a)+", input='"+e.getTokenStream().getText(new x(r,s))+"'";e.notifyErrorListeners(o)}reportAttemptingFullContext(e,t,r,s,i,n){const a="reportAttemptingFullContext d="+this.getDecisionDescription(e,t)+", input='"+e.getTokenStream().getText(new x(r,s))+"'";e.notifyErrorListeners(a)}reportContextSensitivity(e,t,r,s,i,n){const a="reportContextSensitivity d="+this.getDecisionDescription(e,t)+", input='"+e.getTokenStream().getText(new x(r,s))+"'";e.notifyErrorListeners(a)}getDecisionDescription(e,t){const r=t.decision,s=t.atnStartState.ruleIndex,i=e.ruleNames;if(s<0||s>=i.length)return""+r;const n=i[s]||null;return null===n||0===n.length?""+r:`${r} (${n})`}getConflictingAlts(e,t){if(null!==e)return e;const r=new G;for(let e=0;e<t.items.length;e++)r.add(t.items[e].alt);return`{${r.values().join(", ")}}`}}class vt extends Error{constructor(){super(),Error.captureStackTrace(this,vt)}}class bt{reset(e){}recoverInline(e){}recover(e,t){}sync(e){}inErrorRecoveryMode(e){}reportError(e){}}class _t extends bt{constructor(){super(),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this.nextTokensContext=null,this.nextTokenState=0}reset(e){this.endErrorCondition(e)}beginErrorCondition(e){this.errorRecoveryMode=!0}inErrorRecoveryMode(e){return this.errorRecoveryMode}endErrorCondition(e){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}reportMatch(e){this.endErrorCondition(e)}reportError(e,t){this.inErrorRecoveryMode(e)||(this.beginErrorCondition(e),t instanceof tt?this.reportNoViableAlternative(e,t):t instanceof ft?this.reportInputMismatch(e,t):t instanceof gt?this.reportFailedPredicate(e,t):(console.log("unknown recognition error type: "+t.constructor.name),console.log(t.stack),e.notifyErrorListeners(t.getOffendingToken(),t.getMessage(),t)))}recover(e,t){this.lastErrorIndex===e.getInputStream().index&&null!==this.lastErrorStates&&this.lastErrorStates.indexOf(e.state)>=0&&e.consume(),this.lastErrorIndex=e._input.index,null===this.lastErrorStates&&(this.lastErrorStates=[]),this.lastErrorStates.push(e.state);const r=this.getErrorRecoverySet(e);this.consumeUntil(e,r)}sync(t){if(this.inErrorRecoveryMode(t))return;const r=t._interp.atn.states[t.state],s=t.getTokenStream().LA(1),i=t.atn.nextTokens(r);if(i.contains(s))return this.nextTokensContext=null,void(this.nextTokenState=b.INVALID_STATE_NUMBER);if(i.contains(e.EPSILON))null===this.nextTokensContext&&(this.nextTokensContext=t._ctx,this.nextTokensState=t._stateNumber);else switch(r.stateType){case b.BLOCK_START:case b.STAR_BLOCK_START:case b.PLUS_BLOCK_START:case b.STAR_LOOP_ENTRY:if(null!==this.singleTokenDeletion(t))return;throw new ft(t);case b.PLUS_LOOP_BACK:case b.STAR_LOOP_BACK:{this.reportUnwantedToken(t);const e=new v;e.addSet(t.getExpectedTokens());const r=e.addSet(this.getErrorRecoverySet(t));this.consumeUntil(t,r)}}}reportNoViableAlternative(t,r){const s=t.getTokenStream();let i;i=null!==s?r.startToken.type===e.EOF?"<EOF>":s.getText(new x(r.startToken.tokenIndex,r.offendingToken.tokenIndex)):"<unknown input>";const n="no viable alternative at input "+this.escapeWSAndQuote(i);t.notifyErrorListeners(n,r.offendingToken,r)}reportInputMismatch(e,t){const r="mismatched input "+this.getTokenErrorDisplay(t.offendingToken)+" expecting "+t.getExpectedTokens().toString(e.literalNames,e.symbolicNames);e.notifyErrorListeners(r,t.offendingToken,t)}reportFailedPredicate(e,t){const r="rule "+e.ruleNames[e._ctx.ruleIndex]+" "+t.message;e.notifyErrorListeners(r,t.offendingToken,t)}reportUnwantedToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const t=e.getCurrentToken(),r="extraneous input "+this.getTokenErrorDisplay(t)+" expecting "+this.getExpectedTokens(e).toString(e.literalNames,e.symbolicNames);e.notifyErrorListeners(r,t,null)}reportMissingToken(e){if(this.inErrorRecoveryMode(e))return;this.beginErrorCondition(e);const t=e.getCurrentToken(),r="missing "+this.getExpectedTokens(e).toString(e.literalNames,e.symbolicNames)+" at "+this.getTokenErrorDisplay(t);e.notifyErrorListeners(r,t,null)}recoverInline(e){const t=this.singleTokenDeletion(e);if(null!==t)return e.consume(),t;if(this.singleTokenInsertion(e))return this.getMissingSymbol(e);throw new ft(e)}singleTokenInsertion(e){const t=e.getTokenStream().LA(1),r=e._interp.atn,s=r.states[e.state].transitions[0].target;return!!r.nextTokens(s,e._ctx).contains(t)&&(this.reportMissingToken(e),!0)}singleTokenDeletion(e){const t=e.getTokenStream().LA(2);if(this.getExpectedTokens(e).contains(t)){this.reportUnwantedToken(e),e.consume();const t=e.getCurrentToken();return this.reportMatch(e),t}return null}getMissingSymbol(t){const r=t.getCurrentToken(),s=this.getExpectedTokens(t).first();let i;i=s===e.EOF?"<missing EOF>":"<missing "+t.literalNames[s]+">";let n=r;const a=t.getTokenStream().LT(-1);return n.type===e.EOF&&null!==a&&(n=a),t.getTokenFactory().create(n.source,s,i,e.DEFAULT_CHANNEL,-1,-1,n.line,n.column)}getExpectedTokens(e){return e.getExpectedTokens()}getTokenErrorDisplay(t){if(null===t)return"<no token>";let r=t.text;return null===r&&(r=t.type===e.EOF?"<EOF>":"<"+t.type+">"),this.escapeWSAndQuote(r)}escapeWSAndQuote(e){return"'"+(e=(e=(e=e.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(t){const r=t._interp.atn;let s=t._ctx;const i=new v;for(;null!==s&&s.invokingState>=0;){const e=r.states[s.invokingState].transitions[0],t=r.nextTokens(e.followState);i.addSet(t),s=s.parentCtx}return i.removeOne(e.EPSILON),i}consumeUntil(t,r){let s=t.getTokenStream().LA(1);for(;s!==e.EOF&&!r.contains(s);)t.consume(),s=t.getTokenStream().LA(1)}}class Et extends _t{constructor(){super()}recover(e,t){let r=e._ctx;for(;null!==r;)r.exception=t,r=r.parentCtx;throw new vt(t)}recoverInline(e){this.recover(e,new ft(e))}sync(e){}}const Tt={RecognitionException:Pe,NoViableAltException:tt,LexerNoViableAltException:qe,InputMismatchException:ft,FailedPredicateException:gt,DiagnosticErrorListener:xt,BailErrorStrategy:Et,DefaultErrorStrategy:_t,ErrorListener:Ce};class St{constructor(e,t){if(this.name="<empty>",this.strdata=e,this.decodeToUnicodeCodePoints=t||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(let e=0;e<this.strdata.length;){const t=this.strdata.codePointAt(e);this.data.push(t),e+=t<=65535?1:2}else{this.data=new Array(this.strdata.length);for(let e=0;e<this.strdata.length;e++)this.data[e]=this.strdata.charCodeAt(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 r=this._index+t-1;return r<0||r>=this._size?e.EOF:this.data[r]}LT(e){return this.LA(e)}mark(){return-1}release(e){}seek(e){e<=this._index?this._index=e:this._index=Math.min(e,this._size)}getText(e,t){if(t>=this._size&&(t=this._size-1),e>=this._size)return"";if(this.decodeToUnicodeCodePoints){let r="";for(let s=e;s<=t;s++)r+=String.fromCodePoint(this.data[s]);return r}return this.strdata.slice(e,t+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}class kt extends St{constructor(e,t){super(e,t)}}var Rt=o(92);const At="undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node;class Ct extends kt{static fromPath(e,t,r){if(!At)throw new Error("FileStream is only available when running in Node!");Rt.readFile(e,t,function(e,t){let s=null;null!==t&&(s=new St(t,!0)),r(e,s)})}constructor(e,t,r){if(!At)throw new Error("FileStream is only available when running in Node!");super(Rt.readFileSync(e,t||"utf-8"),r),this.fileName=e}}const Lt={fromString:function(e){return new St(e,!0)},fromBlob:function(e,t,r,s){const i=new window.FileReader;i.onload=function(e){const t=new St(e.target.result,!0);r(t)},i.onerror=s,i.readAsText(e,t)},fromBuffer:function(e,t){return new St(e.toString(t),!0)},fromPath:function(e,t,r){Ct.fromPath(e,t,r)},fromPathSync:function(e,t){return new Ct(e,t)}},Kt={arrayToString:h,stringToCharArray:function(e){let t=new Uint16Array(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}};class It{}class Nt extends It{constructor(e){super(),this.tokenSource=e,this.tokens=[],this.index=-1,this.fetchedEOF=!1}mark(){return 0}release(e){}reset(){this.seek(0)}seek(e){this.lazyInit(),this.index=this.adjustSeekIndex(e)}get size(){return this.tokens.length}get(e){return this.lazyInit(),this.tokens[e]}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)===e.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}sync(e){const t=e-this.tokens.length+1;return!(t>0)||this.fetch(t)>=t}fetch(t){if(this.fetchedEOF)return 0;for(let r=0;r<t;r++){const t=this.tokenSource.nextToken();if(t.tokenIndex=this.tokens.length,this.tokens.push(t),t.type===e.EOF)return this.fetchedEOF=!0,r+1}return t}getTokens(t,r,s){if(void 0===s&&(s=null),t<0||r<0)return null;this.lazyInit();const i=[];r>=this.tokens.length&&(r=this.tokens.length-1);for(let n=t;n<r;n++){const t=this.tokens[n];if(t.type===e.EOF)break;(null===s||s.contains(t.type))&&i.push(t)}return i}LA(e){return this.LT(e).type}LB(e){return this.index-e<0?null:this.tokens[this.index-e]}LT(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);const t=this.index+e-1;return this.sync(t),t>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[t]}adjustSeekIndex(e){return e}lazyInit(){-1===this.index&&this.setup()}setup(){this.sync(0),this.index=this.adjustSeekIndex(0)}setTokenSource(e){this.tokenSource=e,this.tokens=[],this.index=-1,this.fetchedEOF=!1}nextTokenOnChannel(t,r){if(this.sync(t),t>=this.tokens.length)return-1;let s=this.tokens[t];for(;s.channel!==this.channel;){if(s.type===e.EOF)return-1;t+=1,this.sync(t),s=this.tokens[t]}return t}previousTokenOnChannel(e,t){for(;e>=0&&this.tokens[e].channel!==t;)e-=1;return e}getHiddenTokensToRight(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw e+" not in 0.."+this.tokens.length-1;const r=this.nextTokenOnChannel(e+1,Me.DEFAULT_TOKEN_CHANNEL),s=e+1,i=-1===r?this.tokens.length-1:r;return this.filterForChannel(s,i,t)}getHiddenTokensToLeft(e,t){if(void 0===t&&(t=-1),this.lazyInit(),e<0||e>=this.tokens.length)throw e+" not in 0.."+this.tokens.length-1;const r=this.previousTokenOnChannel(e-1,Me.DEFAULT_TOKEN_CHANNEL);if(r===e-1)return null;const s=r+1,i=e-1;return this.filterForChannel(s,i,t)}filterForChannel(e,t,r){const s=[];for(let i=e;i<t+1;i++){const e=this.tokens[i];-1===r?e.channel!==Me.DEFAULT_TOKEN_CHANNEL&&s.push(e):e.channel===r&&s.push(e)}return 0===s.length?null:s}getSourceName(){return this.tokenSource.getSourceName()}getText(t){this.lazyInit(),this.fill(),t||(t=new x(0,this.tokens.length-1));let r=t.start;r instanceof e&&(r=r.tokenIndex);let s=t.stop;if(s instanceof e&&(s=s.tokenIndex),null===r||null===s||r<0||s<0)return"";s>=this.tokens.length&&(s=this.tokens.length-1);let i="";for(let t=r;t<s+1;t++){const r=this.tokens[t];if(r.type===e.EOF)break;i+=r.text}return i}fill(){for(this.lazyInit();1e3===this.fetch(1e3););}}Object.defineProperty(Nt,"size",{get:function(){return this.tokens.length}});class Ot extends Nt{constructor(t,r){super(t),this.channel=void 0===r?e.DEFAULT_CHANNEL:r}adjustSeekIndex(e){return this.nextTokenOnChannel(e,this.channel)}LB(e){if(0===e||this.index-e<0)return null;let t=this.index,r=1;for(;r<=e;)t=this.previousTokenOnChannel(t-1,this.channel),r+=1;return t<0?null:this.tokens[t]}LT(e){if(this.lazyInit(),0===e)return null;if(e<0)return this.LB(-e);let t=this.index,r=1;for(;r<e;)this.sync(t+1)&&(t=this.nextTokenOnChannel(t+1,this.channel)),r+=1;return this.tokens[t]}getNumberOfOnChannelTokens(){let t=0;this.fill();for(let r=0;r<this.tokens.length;r++){const s=this.tokens[r];if(s.channel===this.channel&&(t+=1),s.type===e.EOF)break}return t}}class Dt extends dt{constructor(e){super(),this.parser=e}enterEveryRule(e){console.log("enter "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}visitTerminal(e){console.log("consume "+e.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}exitEveryRule(e){console.log("exit "+this.parser.ruleNames[e.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}class Pt extends Ie{constructor(e){super(),this._input=null,this._errHandler=new _t,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(e)}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(e){let t=this.getCurrentToken();return t.type===e?(this._errHandler.reportMatch(this),this.consume()):(t=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===t.tokenIndex&&this._ctx.addErrorNode(t)),t}matchWildcard(){let e=this.getCurrentToken();return e.type>0?(this._errHandler.reportMatch(this),this.consume()):(e=this._errHandler.recoverInline(this),this.buildParseTrees&&-1===e.tokenIndex&&this._ctx.addErrorNode(e)),e}getParseListeners(){return this._parseListeners||[]}addParseListener(e){if(null===e)throw"listener";null===this._parseListeners&&(this._parseListeners=[]),this._parseListeners.push(e)}removeParseListener(e){if(null!==this._parseListeners){const t=this._parseListeners.indexOf(e);t>=0&&this._parseListeners.splice(t,1),0===this._parseListeners.length&&(this._parseListeners=null)}}removeParseListeners(){this._parseListeners=null}triggerEnterRuleEvent(){if(null!==this._parseListeners){const e=this._ctx;this._parseListeners.forEach(function(t){t.enterEveryRule(e),e.enterRule(t)})}}triggerExitRuleEvent(){if(null!==this._parseListeners){const e=this._ctx;this._parseListeners.slice(0).reverse().forEach(function(t){e.exitRule(t),t.exitEveryRule(e)})}}getTokenFactory(){return this._input.tokenSource._factory}setTokenFactory(e){this._input.tokenSource._factory=e}getATNWithBypassAlts(){const e=this.getSerializedATN();if(null===e)throw"The current parser does not support an ATN with bypass alternatives.";let t=this.bypassAltsAtnCache[e];if(null===t){const r=new ge;r.generateRuleBypassTransitions=!0,t=new Ae(r).deserialize(e),this.bypassAltsAtnCache[e]=t}return t}getInputStream(){return this.getTokenStream()}setInputStream(e){this.setTokenStream(e)}getTokenStream(){return this._input}setTokenStream(e){this._input=null,this.reset(),this._input=e}get syntaxErrorsCount(){return this._syntaxErrors}getCurrentToken(){return this._input.LT(1)}notifyErrorListeners(e,t,r){r=r||null,null===(t=t||null)&&(t=this.getCurrentToken()),this._syntaxErrors+=1;const s=t.line,i=t.column;this.getErrorListenerDispatch().syntaxError(this,t,s,i,e,r)}consume(){const t=this.getCurrentToken();t.type!==e.EOF&&this.getInputStream().consume();const r=null!==this._parseListeners&&this._parseListeners.length>0;if(this.buildParseTrees||r){let e;e=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(t):this._ctx.addTokenNode(t),e.invokingState=this.state,r&&this._parseListeners.forEach(function(t){e instanceof O||void 0!==e.isErrorNode&&e.isErrorNode()?t.visitErrorNode(e):e instanceof N&&t.visitTerminal(e)})}return t}addContextToParseTree(){null!==this._ctx.parentCtx&&this._ctx.parentCtx.addChild(this._ctx)}enterRule(e,t,r){this.state=t,this._ctx=e,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}enterOuterAlt(e,t){e.setAltNumber(t),this.buildParseTrees&&this._ctx!==e&&null!==this._ctx.parentCtx&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(e)),this._ctx=e}getPrecedence(){return 0===this._precedenceStack.length?-1:this._precedenceStack[this._precedenceStack.length-1]}enterRecursionRule(e,t,r,s){this.state=t,this._precedenceStack.push(s),this._ctx=e,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(e,t,r){const s=this._ctx;s.parentCtx=e,s.invokingState=t,s.stop=this._input.LT(-1),this._ctx=e,this._ctx.start=s.start,this.buildParseTrees&&this._ctx.addChild(s),this.triggerEnterRuleEvent()}unrollRecursionContexts(e){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);const t=this._ctx,r=this.getParseListeners();if(null!==r&&r.length>0)for(;this._ctx!==e;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=e;t.parentCtx=e,this.buildParseTrees&&null!==e&&e.addChild(t)}getInvokingContext(e){let t=this._ctx;for(;null!==t;){if(t.ruleIndex===e)return t;t=t.parentCtx}return null}precpred(e,t){return t>=this._precedenceStack[this._precedenceStack.length-1]}inContext(e){return!1}isExpectedToken(t){const r=this._interp.atn;let s=this._ctx;const i=r.states[this.state];let n=r.nextTokens(i);if(n.contains(t))return!0;if(!n.contains(e.EPSILON))return!1;for(;null!==s&&s.invokingState>=0&&n.contains(e.EPSILON);){const e=r.states[s.invokingState].transitions[0];if(n=r.nextTokens(e.followState),n.contains(t))return!0;s=s.parentCtx}return!(!n.contains(e.EPSILON)||t!==e.EOF)}getExpectedTokens(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}getExpectedTokensWithinCurrentRule(){const e=this._interp.atn,t=e.states[this.state];return e.nextTokens(t)}getRuleIndex(e){const t=this.getRuleIndexMap()[e];return null!==t?t:-1}getRuleInvocationStack(e){null===(e=e||null)&&(e=this._ctx);const t=[];for(;null!==e;){const r=e.ruleIndex;r<0?t.push("n/a"):t.push(this.ruleNames[r]),e=e.parentCtx}return t}getDFAStrings(){return this._interp.decisionToDFA.toString()}dumpDFA(){let e=!1;for(let t=0;t<this._interp.decisionToDFA.length;t++){const r=this._interp.decisionToDFA[t];r.states.length>0&&(e&&console.log(),this.printer.println("Decision "+r.decision+":"),this.printer.print(r.toString(this.literalNames,this.symbolicNames)),e=!0)}}getSourceName(){return this._input.sourceName}setTrace(e){e?(null!==this._tracer&&this.removeParseListener(this._tracer),this._tracer=new Dt(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}Pt.bypassAltsAtnCache={};class qt extends N{constructor(e){super(),this.parentCtx=null,this.symbol=e}getChild(e){return null}getSymbol(){return this.symbol}getParent(){return this.parentCtx}getPayload(){return this.symbol}getSourceInterval(){if(null===this.symbol)return x.INVALID_INTERVAL;const e=this.symbol.tokenIndex;return new x(e,e)}getChildCount(){return 0}accept(e){return e.visitTerminal(this)}getText(){return this.symbol.text}toString(){return this.symbol.type===e.EOF?"<EOF>":this.symbol.text}}class Mt extends qt{constructor(e){super(e)}isErrorNode(){return!0}accept(e){return e.visitErrorNode(this)}}class Ft extends q{constructor(e,t){super(e,t),this.children=null,this.start=null,this.stop=null,this.exception=null}copyFrom(e){this.parentCtx=e.parentCtx,this.invokingState=e.invokingState,this.children=null,this.start=e.start,this.stop=e.stop,e.children&&(this.children=[],e.children.map(function(e){e instanceof Mt&&(this.children.push(e),e.parentCtx=this)},this))}enterRule(e){}exitRule(e){}addChild(e){return null===this.children&&(this.children=[]),this.children.push(e),e}removeLastChild(){null!==this.children&&this.children.pop()}addTokenNode(e){const t=new qt(e);return this.addChild(t),t.parentCtx=this,t}addErrorNode(e){const t=new Mt(e);return this.addChild(t),t.parentCtx=this,t}getChild(e,t){if(t=t||null,null===this.children||e<0||e>=this.children.length)return null;if(null===t)return this.children[e];for(let r=0;r<this.children.length;r++){const s=this.children[r];if(s instanceof t){if(0===e)return s;e-=1}}return null}getToken(e,t){if(null===this.children||t<0||t>=this.children.length)return null;for(let r=0;r<this.children.length;r++){const s=this.children[r];if(s instanceof N&&s.symbol.type===e){if(0===t)return s;t-=1}}return null}getTokens(e){if(null===this.children)return[];{const t=[];for(let r=0;r<this.children.length;r++){const s=this.children[r];s instanceof N&&s.symbol.type===e&&t.push(s)}return t}}getTypedRuleContext(e,t){return this.getChild(t,e)}getTypedRuleContexts(e){if(null===this.children)return[];{const t=[];for(let r=0;r<this.children.length;r++){const s=this.children[r];s instanceof e&&t.push(s)}return t}}getChildCount(){return null===this.children?0:this.children.length}getSourceInterval(){return null===this.start||null===this.stop?x.INVALID_INTERVAL:new x(this.start.tokenIndex,this.stop.tokenIndex)}}q.EMPTY=new Ft;class Ut{constructor(e){this.tokens=e,this.programs=new Map}getTokenStream(){return this.tokens}insertAfter(e,t){let r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ut.DEFAULT_PROGRAM_NAME;r="number"==typeof e?e:e.tokenIndex;let i=this.getProgram(s),n=new zt(this.tokens,r,i.length,t);i.push(n)}insertBefore(e,t){let r,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ut.DEFAULT_PROGRAM_NAME;r="number"==typeof e?e:e.tokenIndex;const i=this.getProgram(s),n=new Gt(this.tokens,r,i.length,t);i.push(n)}replaceSingle(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ut.DEFAULT_PROGRAM_NAME;this.replace(e,e,t,r)}replace(e,t,r){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ut.DEFAULT_PROGRAM_NAME;if("number"!=typeof e&&(e=e.tokenIndex),"number"!=typeof t&&(t=t.tokenIndex),e>t||e<0||t<0||t>=this.tokens.size)throw new RangeError(`replace: range invalid: ${e}..${t}(size=${this.tokens.size})`);let i=this.getProgram(s),n=new Wt(this.tokens,e,t,i.length,r);i.push(n)}delete(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ut.DEFAULT_PROGRAM_NAME;void 0===t&&(t=e),this.replace(e,t,null,r)}getProgram(e){let t=this.programs.get(e);return null==t&&(t=this.initializeProgram(e)),t}initializeProgram(e){const t=[];return this.programs.set(e,t),t}getText(t){let r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ut.DEFAULT_PROGRAM_NAME;r=t instanceof x?t:new x(0,this.tokens.size-1),"string"==typeof t&&(s=t);const i=this.programs.get(s);let n=r.start,a=r.stop;if(a>this.tokens.size-1&&(a=this.tokens.size-1),n<0&&(n=0),null==i||0===i.length)return this.tokens.getText(new x(n,a));let o=[],c=this.reduceToSingleOperationPerIndex(i),l=n;for(;l<=a&&l<this.tokens.size;){let t=c.get(l);c.delete(l);let r=this.tokens.get(l);null==t?(r.type!==e.EOF&&o.push(String(r.text)),l++):l=t.execute(o)}if(a===this.tokens.size-1)for(const e of c.values())e.index>=this.tokens.size-1&&o.push(e.text.toString());return o.join("")}reduceToSingleOperationPerIndex(e){for(let t=0;t<e.length;t++){let r=e[t];if(null==r)continue;if(!(r instanceof Wt))continue;let s=r,i=this.getKindOfOps(e,Gt,t);for(let t of i)t.index===s.index?(e[t.instructionIndex]=void 0,s.text=t.text.toString()+(null!=s.text?s.text.toString():"")):t.index>s.index&&t.index<=s.lastIndex&&(e[t.instructionIndex]=void 0);let n=this.getKindOfOps(e,Wt,t);for(let t of n){if(t.index>=s.index&&t.lastIndex<=s.lastIndex){e[t.instructionIndex]=void 0;continue}let r=t.lastIndex<s.index||t.index>s.lastIndex;if(null!=t.text||null!=s.text||r){if(!r)throw new Error(`replace op boundaries of ${s} overlap with previous ${t}`)}else e[t.instructionIndex]=void 0,s.index=Math.min(t.index,s.index),s.lastIndex=Math.max(t.lastIndex,s.lastIndex)}}for(let t=0;t<e.length;t++){let r=e[t];if(null==r)continue;if(!(r instanceof Gt))continue;let s=r,i=this.getKindOfOps(e,Gt,t);for(let t of i)t.index===s.index&&(t instanceof zt?(s.text=this.catOpText(t.text,s.text),e[t.instructionIndex]=void 0):t instanceof Gt&&(s.text=this.catOpText(s.text,t.text),e[t.instructionIndex]=void 0));let n=this.getKindOfOps(e,Wt,t);for(let r of n)if(s.index!==r.index){if(s.index>=r.index&&s.index<=r.lastIndex)throw new Error(`insert op ${s} within boundaries of previous ${r}`)}else r.text=this.catOpText(s.text,r.text),e[t]=void 0}let t=new Map;for(let r of e)if(null!=r){if(null!=t.get(r.index))throw new Error("should only be one op per index");t.set(r.index,r)}return t}catOpText(e,t){let r="",s="";return null!=e&&(r=e.toString()),null!=t&&(s=t.toString()),r+s}getKindOfOps(e,t,r){return e.slice(0,r).filter(e=>e&&e instanceof t)}}var Yt,Vt,jt,Bt,Ht;Yt=Ut,jt="default",Bt="DEFAULT_PROGRAM_NAME",(Vt="symbol"==typeof(Ht=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(Bt))?Ht:String(Ht))in Yt?Object.defineProperty(Yt,Vt,{value:jt,enumerable:!0,configurable:!0,writable:!0}):Yt[Vt]=jt;class $t{constructor(e,t,r,s){this.tokens=e,this.instructionIndex=r,this.index=t,this.text=void 0===s?"":s}toString(){let e=this.constructor.name;const t=e.indexOf("$");return e=e.substring(t+1,e.length),"<"+e+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}class Gt extends $t{constructor(e,t,r,s){super(e,t,r,s)}execute(t){return this.text&&t.push(this.text.toString()),this.tokens.get(this.index).type!==e.EOF&&t.push(String(this.tokens.get(this.index).text)),this.index+1}}class zt extends Gt{constructor(e,t,r,s){super(e,t+1,r,s)}}class Wt extends $t{constructor(e,t,r,s,i){super(e,t,s,i),this.lastIndex=r}execute(e){return this.text&&e.push(this.text.toString()),this.lastIndex+1}toString(){return null==this.text?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}const Xt={atn:nt,dfa:lt,context:ht,misc:ut,tree:yt,error:Tt,Token:e,CommonToken:Ne,CharStreams:Lt,CharStream:kt,InputStream:kt,CommonTokenStream:Ot,Lexer:Me,Parser:Pt,ParserRuleContext:Ft,Interval:x,IntervalSet:v,LL1Analyzer:z,Utils:Kt,TokenStreamRewriter:Ut}})();var l=c.dx,h=c.q2,u=c.xf,d=c.c7,p=c._7,m=c.cK,y=c.zs,f=c.hW,g=c.x1,w=c.z5,x=c.TB,v=c._b,b=c.$F,_=c._T,E=c.db,T=c._x,S=c.WU,k=class e extends f{constructor(t){super(t),this._interp=new g(this,e._ATN,e.DecisionsToDFA,new E)}get grammarFileName(){return"Solidity.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}get channelNames(){return e.channelNames}get modeNames(){return e.modeNames}static get _ATN(){return e.__ATN||(e.__ATN=(new h).deserialize(e._serializedATN)),e.__ATN}};k.T__0=1,k.T__1=2,k.T__2=3,k.T__3=4,k.T__4=5,k.T__5=6,k.T__6=7,k.T__7=8,k.T__8=9,k.T__9=10,k.T__10=11,k.T__11=12,k.T__12=13,k.T__13=14,k.T__14=15,k.T__15=16,k.T__16=17,k.T__17=18,k.T__18=19,k.T__19=20,k.T__20=21,k.T__21=22,k.T__22=23,k.T__23=24,k.T__24=25,k.T__25=26,k.T__26=27,k.T__27=28,k.T__28=29,k.T__29=30,k.T__30=31,k.T__31=32,k.T__32=33,k.T__33=34,k.T__34=35,k.T__35=36,k.T__36=37,k.T__37=38,k.T__38=39,k.T__39=40,k.T__40=41,k.T__41=42,k.T__42=43,k.T__43=44,k.T__44=45,k.T__45=46,k.T__46=47,k.T__47=48,k.T__48=49,k.T__49=50,k.T__50=51,k.T__51=52,k.T__52=53,k.T__53=54,k.T__54=55,k.T__55=56,k.T__56=57,k.T__57=58,k.T__58=59,k.T__59=60,k.T__60=61,k.T__61=62,k.T__62=63,k.T__63=64,k.T__64=65,k.T__65=66,k.T__66=67,k.T__67=68,k.T__68=69,k.T__69=70,k.T__70=71,k.T__71=72,k.T__72=73,k.T__73=74,k.T__74=75,k.T__75=76,k.T__76=77,k.T__77=78,k.T__78=79,k.T__79=80,k.T__80=81,k.T__81=82,k.T__82=83,k.T__83=84,k.T__84=85,k.T__85=86,k.T__86=87,k.T__87=88,k.T__88=89,k.T__89=90,k.T__90=91,k.T__91=92,k.T__92=93,k.T__93=94,k.T__94=95,k.T__95=96,k.T__96=97,k.T__97=98,k.Int=99,k.Uint=100,k.Byte=101,k.Fixed=102,k.Ufixed=103,k.BooleanLiteral=104,k.DecimalNumber=105,k.HexNumber=106,k.NumberUnit=107,k.HexLiteralFragment=108,k.ReservedKeyword=109,k.AnonymousKeyword=110,k.BreakKeyword=111,k.ConstantKeyword=112,k.TransientKeyword=113,k.ImmutableKeyword=114,k.ContinueKeyword=115,k.LeaveKeyword=116,k.ExternalKeyword=117,k.IndexedKeyword=118,k.InternalKeyword=119,k.PayableKeyword=120,k.PrivateKeyword=121,k.PublicKeyword=122,k.VirtualKeyword=123,k.PureKeyword=124,k.TypeKeyword=125,k.ViewKeyword=126,k.GlobalKeyword=127,k.ConstructorKeyword=128,k.FallbackKeyword=129,k.ReceiveKeyword=130,k.Identifier=131,k.StringLiteralFragment=132,k.VersionLiteral=133,k.WS=134,k.COMMENT=135,k.LINE_COMMENT=136,k.EOF=S.EOF,k.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],k.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'layout'","'at'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'transient'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],k.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],k.modeNames=["DEFAULT_MODE"],k.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","T__96","T__97","Int","Uint","Byte","Fixed","Ufixed","NumberOfBits","NumberOfBytes","BooleanLiteral","DecimalNumber","DecimalDigits","HexNumber","HexDigits","NumberUnit","HexLiteralFragment","HexCharacter","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","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"],k._serializedATN=[4,0,136,1444,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1,61,1,62,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,68,1,68,1,68,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,74,1,74,1,74,1,75,1,75,1,75,1,76,1,76,1,76,1,77,1,77,1,77,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,85,1,85,1,85,1,86,1,86,1,86,1,87,1,87,1,87,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,3,98,738,8,98,1,99,1,99,1,99,1,99,1,99,1,99,3,99,746,8,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,755,8,100,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,4,101,766,8,101,11,101,12,101,767,3,101,770,8,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,4,102,782,8,102,11,102,12,102,783,3,102,786,8,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,3,103,871,8,103,1,104,1,104,1,104,1,104,1,104,3,104,878,8,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,3,105,889,8,105,1,106,1,106,3,106,893,8,106,1,106,1,106,3,106,897,8,106,1,106,1,106,3,106,901,8,106,1,106,3,106,904,8,106,1,107,1,107,3,107,908,8,107,1,107,5,107,911,8,107,10,107,12,107,914,9,107,1,108,1,108,1,108,1,108,1,109,1,109,3,109,922,8,109,1,109,5,109,925,8,109,10,109,12,109,928,9,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,3,110,986,8,110,1,111,1,111,1,111,1,111,1,111,1,111,3,111,994,8,111,1,111,1,111,1,111,3,111,999,8,111,1,111,3,111,1002,8,111,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,3,113,1176,8,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,5,135,1348,8,135,10,135,12,135,1351,9,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,3,138,1364,8,138,1,138,1,138,5,138,1368,8,138,10,138,12,138,1371,9,138,1,138,1,138,1,138,5,138,1376,8,138,10,138,12,138,1379,9,138,1,138,3,138,1382,8,138,1,139,1,139,1,139,3,139,1387,8,139,1,140,1,140,1,140,3,140,1392,8,140,1,141,4,141,1395,8,141,11,141,12,141,1396,1,141,1,141,4,141,1401,8,141,11,141,12,141,1402,1,141,1,141,4,141,1407,8,141,11,141,12,141,1408,3,141,1411,8,141,1,142,4,142,1414,8,142,11,142,12,142,1415,1,142,1,142,1,143,1,143,1,143,1,143,5,143,1424,8,143,10,143,12,143,1427,9,143,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,5,144,1438,8,144,10,144,12,144,1441,9,144,1,144,1,144,1,1425,0,145,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59,119,60,121,61,123,62,125,63,127,64,129,65,131,66,133,67,135,68,137,69,139,70,141,71,143,72,145,73,147,74,149,75,151,76,153,77,155,78,157,79,159,80,161,81,163,82,165,83,167,84,169,85,171,86,173,87,175,88,177,89,179,90,181,91,183,92,185,93,187,94,189,95,191,96,193,97,195,98,197,99,199,100,201,101,203,102,205,103,207,0,209,0,211,104,213,105,215,0,217,106,219,0,221,107,223,108,225,0,227,109,229,110,231,111,233,112,235,113,237,114,239,115,241,116,243,117,245,118,247,119,249,120,251,121,253,122,255,123,257,124,259,125,261,126,263,127,265,128,267,129,269,130,271,131,273,0,275,0,277,132,279,0,281,0,283,133,285,134,287,135,289,136,1,0,13,1,0,48,57,1,0,49,57,1,0,49,50,1,0,48,50,2,0,69,69,101,101,2,0,88,88,120,120,3,0,48,57,65,70,97,102,4,0,36,36,65,90,95,95,97,122,5,0,36,36,48,57,65,90,95,95,97,122,4,0,10,10,13,13,34,34,92,92,4,0,10,10,13,13,39,39,92,92,3,0,9,10,12,13,32,32,2,0,10,10,13,13,1538,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,217,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,277,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,1,291,1,0,0,0,3,298,1,0,0,0,5,300,1,0,0,0,7,302,1,0,0,0,9,305,1,0,0,0,11,307,1,0,0,0,13,309,1,0,0,0,15,312,1,0,0,0,17,314,1,0,0,0,19,316,1,0,0,0,21,319,1,0,0,0,23,321,1,0,0,0,25,324,1,0,0,0,27,331,1,0,0,0,29,336,1,0,0,0,31,338,1,0,0,0,33,340,1,0,0,0,35,342,1,0,0,0,37,351,1,0,0,0,39,360,1,0,0,0,41,370,1,0,0,0,43,378,1,0,0,0,45,381,1,0,0,0,47,383,1,0,0,0,49,385,1,0,0,0,51,392,1,0,0,0,53,395,1,0,0,0,55,401,1,0,0,0,57,407,1,0,0,0,59,411,1,0,0,0,61,413,1,0,0,0,63,415,1,0,0,0,65,417,1,0,0,0,67,419,1,0,0,0,69,421,1,0,0,0,71,423,1,0,0,0,73,426,1,0,0,0,75,429,1,0,0,0,77,436,1,0,0,0,79,445,1,0,0,0,81,454,1,0,0,0,83,462,1,0,0,0,85,468,1,0,0,0,87,473,1,0,0,0,89,475,1,0,0,0,91,477,1,0,0,0,93,485,1,0,0,0,95,487,1,0,0,0,97,495,1,0,0,0,99,498,1,0,0,0,101,505,1,0,0,0,103,513,1,0,0,0,105,522,1,0,0,0,107,525,1,0,0,0,109,530,1,0,0,0,111,534,1,0,0,0,113,540,1,0,0,0,115,546,1,0,0,0,117,556,1,0,0,0,119,565,1,0,0,0,121,568,1,0,0,0,123,575,1,0,0,0,125,581,1,0,0,0,127,586,1,0,0,0,129,593,1,0,0,0,131,597,1,0,0,0,133,602,1,0,0,0,135,609,1,0,0,0,137,614,1,0,0,0,139,617,1,0,0,0,141,620,1,0,0,0,143,624,1,0,0,0,145,626,1,0,0,0,147,633,1,0,0,0,149,635,1,0,0,0,151,638,1,0,0,0,153,641,1,0,0,0,155,644,1,0,0,0,157,647,1,0,0,0,159,649,1,0,0,0,161,652,1,0,0,0,163,655,1,0,0,0,165,658,1,0,0,0,167,662,1,0,0,0,169,666,1,0,0,0,171,669,1,0,0,0,173,672,1,0,0,0,175,675,1,0,0,0,177,678,1,0,0,0,179,681,1,0,0,0,181,685,1,0,0,0,183,688,1,0,0,0,185,691,1,0,0,0,187,698,1,0,0,0,189,703,1,0,0,0,191,711,1,0,0,0,193,714,1,0,0,0,195,723,1,0,0,0,197,732,1,0,0,0,199,739,1,0,0,0,201,747,1,0,0,0,203,756,1,0,0,0,205,771,1,0,0,0,207,870,1,0,0,0,209,877,1,0,0,0,211,888,1,0,0,0,213,896,1,0,0,0,215,905,1,0,0,0,217,915,1,0,0,0,219,919,1,0,0,0,221,985,1,0,0,0,223,987,1,0,0,0,225,1003,1,0,0,0,227,1175,1,0,0,0,229,1177,1,0,0,0,231,1187,1,0,0,0,233,1193,1,0,0,0,235,1202,1,0,0,0,237,1212,1,0,0,0,239,1222,1,0,0,0,241,1231,1,0,0,0,243,1237,1,0,0,0,245,1246,1,0,0,0,247,1254,1,0,0,0,249,1263,1,0,0,0,251,1271,1,0,0,0,253,1279,1,0,0,0,255,1286,1,0,0,0,257,1294,1,0,0,0,259,1299,1,0,0,0,261,1304,1,0,0,0,263,1309,1,0,0,0,265,1316,1,0,0,0,267,1328,1,0,0,0,269,1337,1,0,0,0,271,1345,1,0,0,0,273,1352,1,0,0,0,275,1354,1,0,0,0,277,1363,1,0,0,0,279,1386,1,0,0,0,281,1391,1,0,0,0,283,1394,1,0,0,0,285,1413,1,0,0,0,287,1419,1,0,0,0,289,1433,1,0,0,0,291,292,5,112,0,0,292,293,5,114,0,0,293,294,5,97,0,0,294,295,5,103,0,0,295,296,5,109,0,0,296,297,5,97,0,0,297,2,1,0,0,0,298,299,5,59,0,0,299,4,1,0,0,0,300,301,5,42,0,0,301,6,1,0,0,0,302,303,5,124,0,0,303,304,5,124,0,0,304,8,1,0,0,0,305,306,5,94,0,0,306,10,1,0,0,0,307,308,5,126,0,0,308,12,1,0,0,0,309,310,5,62,0,0,310,311,5,61,0,0,311,14,1,0,0,0,312,313,5,62,0,0,313,16,1,0,0,0,314,315,5,60,0,0,315,18,1,0,0,0,316,317,5,60,0,0,317,318,5,61,0,0,318,20,1,0,0,0,319,320,5,61,0,0,320,22,1,0,0,0,321,322,5,97,0,0,322,323,5,115,0,0,323,24,1,0,0,0,324,325,5,105,0,0,325,326,5,109,0,0,326,327,5,112,0,0,327,328,5,111,0,0,328,329,5,114,0,0,329,330,5,116,0,0,330,26,1,0,0,0,331,332,5,102,0,0,332,333,5,114,0,0,333,334,5,111,0,0,334,335,5,109,0,0,335,28,1,0,0,0,336,337,5,123,0,0,337,30,1,0,0,0,338,339,5,44,0,0,339,32,1,0,0,0,340,341,5,125,0,0,341,34,1,0,0,0,342,343,5,97,0,0,343,344,5,98,0,0,344,345,5,115,0,0,345,346,5,116,0,0,346,347,5,114,0,0,347,348,5,97,0,0,348,349,5,99,0,0,349,350,5,116,0,0,350,36,1,0,0,0,351,352,5,99,0,0,352,353,5,111,0,0,353,354,5,110,0,0,354,355,5,116,0,0,355,356,5,114,0,0,356,357,5,97,0,0,357,358,5,99,0,0,358,359,5,116,0,0,359,38,1,0,0,0,360,361,5,105,0,0,361,362,5,110,0,0,362,363,5,116,0,0,363,364,5,101,0,0,364,365,5,114,0,0,365,366,5,102,0,0,366,367,5,97,0,0,367,368,5,99,0,0,368,369,5,101,0,0,369,40,1,0,0,0,370,371,5,108,0,0,371,372,5,105,0,0,372,373,5,98,0,0,373,374,5,114,0,0,374,375,5,97,0,0,375,376,5,114,0,0,376,377,5,121,0,0,377,42,1,0,0,0,378,379,5,105,0,0,379,380,5,115,0,0,380,44,1,0,0,0,381,382,5,40,0,0,382,46,1,0,0,0,383,384,5,41,0,0,384,48,1,0,0,0,385,386,5,108,0,0,386,387,5,97,0,0,387,388,5,121,0,0,388,389,5,111,0,0,389,390,5,117,0,0,390,391,5,116,0,0,391,50,1,0,0,0,392,393,5,97,0,0,393,394,5,116,0,0,394,52,1,0,0,0,395,396,5,101,0,0,396,397,5,114,0,0,397,398,5,114,0,0,398,399,5,111,0,0,399,400,5,114,0,0,400,54,1,0,0,0,401,402,5,117,0,0,402,403,5,115,0,0,403,404,5,105,0,0,404,405,5,110,0,0,405,406,5,103,0,0,406,56,1,0,0,0,407,408,5,102,0,0,408,409,5,111,0,0,409,410,5,114,0,0,410,58,1,0,0,0,411,412,5,124,0,0,412,60,1,0,0,0,413,414,5,38,0,0,414,62,1,0,0,0,415,416,5,43,0,0,416,64,1,0,0,0,417,418,5,45,0,0,418,66,1,0,0,0,419,420,5,47,0,0,420,68,1,0,0,0,421,422,5,37,0,0,422,70,1,0,0,0,423,424,5,61,0,0,424,425,5,61,0,0,425,72,1,0,0,0,426,427,5,33,0,0,427,428,5,61,0,0,428,74,1,0,0,0,429,430,5,115,0,0,430,431,5,116,0,0,431,432,5,114,0,0,432,433,5,117,0,0,433,434,5,99,0,0,434,435,5,116,0,0,435,76,1,0,0,0,436,437,5,109,0,0,437,438,5,111,0,0,438,439,5,100,0,0,439,440,5,105,0,0,440,441,5,102,0,0,441,442,5,105,0,0,442,443,5,101,0,0,443,444,5,114,0,0,444,78,1,0,0,0,445,446,5,102,0,0,446,447,5,117,0,0,447,448,5,110,0,0,448,449,5,99,0,0,449,450,5,116,0,0,450,451,5,105,0,0,451,452,5,111,0,0,452,453,5,110,0,0,453,80,1,0,0,0,454,455,5,114,0,0,455,456,5,101,0,0,456,457,5,116,0,0,457,458,5,117,0,0,458,459,5,114,0,0,459,460,5,110,0,0,460,461,5,115,0,0,461,82,1,0,0,0,462,463,5,101,0,0,463,464,5,118,0,0,464,465,5,101,0,0,465,466,5,110,0,0,466,467,5,116,0,0,467,84,1,0,0,0,468,469,5,101,0,0,469,470,5,110,0,0,470,471,5,117,0,0,471,472,5,109,0,0,472,86,1,0,0,0,473,474,5,91,0,0,474,88,1,0,0,0,475,476,5,93,0,0,476,90,1,0,0,0,477,478,5,97,0,0,478,479,5,100,0,0,479,480,5,100,0,0,480,481,5,114,0,0,481,482,5,101,0,0,482,483,5,115,0,0,483,484,5,115,0,0,484,92,1,0,0,0,485,486,5,46,0,0,486,94,1,0,0,0,487,488,5,109,0,0,488,489,5,97,0,0,489,490,5,112,0,0,490,491,5,112,0,0,491,492,5,105,0,0,492,493,5,110,0,0,493,494,5,103,0,0,494,96,1,0,0,0,495,496,5,61,0,0,496,497,5,62,0,0,497,98,1,0,0,0,498,499,5,109,0,0,499,500,5,101,0,0,500,501,5,109,0,0,501,502,5,111,0,0,502,503,5,114,0,0,503,504,5,121,0,0,504,100,1,0,0,0,505,506,5,115,0,0,506,507,5,116,0,0,507,508,5,111,0,0,508,509,5,114,0,0,509,510,5,97,0,0,510,511,5,103,0,0,511,512,5,101,0,0,512,102,1,0,0,0,513,514,5,99,0,0,514,515,5,97,0,0,515,516,5,108,0,0,516,517,5,108,0,0,517,518,5,100,0,0,518,519,5,97,0,0,519,520,5,116,0,0,520,521,5,97,0,0,521,104,1,0,0,0,522,523,5,105,0,0,523,524,5,102,0,0,524,106,1,0,0,0,525,526,5,101,0,0,526,527,5,108,0,0,527,528,5,115,0,0,528,529,5,101,0,0,529,108,1,0,0,0,530,531,5,116,0,0,531,532,5,114,0,0,532,533,5,121,0,0,533,110,1,0,0,0,534,535,5,99,0,0,535,536,5,97,0,0,536,537,5,116,0,0,537,538,5,99,0,0,538,539,5,104,0,0,539,112,1,0,0,0,540,541,5,119,0,0,541,542,5,104,0,0,542,543,5,105,0,0,543,544,5,108,0,0,544,545,5,101,0,0,545,114,1,0,0,0,546,547,5,117,0,0,547,548,5,110,0,0,548,549,5,99,0,0,549,550,5,104,0,0,550,551,5,101,0,0,551,552,5,99,0,0,552,553,5,107,0,0,553,554,5,101,0,0,554,555,5,100,0,0,555,116,1,0,0,0,556,557,5,97,0,0,557,558,5,115,0,0,558,559,5,115,0,0,559,560,5,101,0,0,560,561,5,109,0,0,561,562,5,98,0,0,562,563,5,108,0,0,563,564,5,121,0,0,564,118,1,0,0,0,565,566,5,100,0,0,566,567,5,111,0,0,567,120,1,0,0,0,568,569,5,114,0,0,569,570,5,101,0,0,570,571,5,116,0,0,571,572,5,117,0,0,572,573,5,114,0,0,573,574,5,110,0,0,574,122,1,0,0,0,575,576,5,116,0,0,576,577,5,104,0,0,577,578,5,114,0,0,578,579,5,111,0,0,579,580,5,119,0,0,580,124,1,0,0,0,581,582,5,101,0,0,582,583,5,109,0,0,583,584,5,105,0,0,584,585,5,116,0,0,585,126,1,0,0,0,586,587,5,114,0,0,587,588,5,101,0,0,588,589,5,118,0,0,589,590,5,101,0,0,590,591,5,114,0,0,591,592,5,116,0,0,592,128,1,0,0,0,593,594,5,118,0,0,594,595,5,97,0,0,595,596,5,114,0,0,596,130,1,0,0,0,597,598,5,98,0,0,598,599,5,111,0,0,599,600,5,111,0,0,600,601,5,108,0,0,601,132,1,0,0,0,602,603,5,115,0,0,603,604,5,116,0,0,604,605,5,114,0,0,605,606,5,105,0,0,606,607,5,110,0,0,607,608,5,103,0,0,608,134,1,0,0,0,609,610,5,98,0,0,610,611,5,121,0,0,611,612,5,116,0,0,612,613,5,101,0,0,613,136,1,0,0,0,614,615,5,43,0,0,615,616,5,43,0,0,616,138,1,0,0,0,617,618,5,45,0,0,618,619,5,45,0,0,619,140,1,0,0,0,620,621,5,110,0,0,621,622,5,101,0,0,622,623,5,119,0,0,623,142,1,0,0,0,624,625,5,58,0,0,625,144,1,0,0,0,626,627,5,100,0,0,627,628,5,101,0,0,628,629,5,108,0,0,629,630,5,101,0,0,630,631,5,116,0,0,631,632,5,101,0,0,632,146,1,0,0,0,633,634,5,33,0,0,634,148,1,0,0,0,635,636,5,42,0,0,636,637,5,42,0,0,637,150,1,0,0,0,638,639,5,60,0,0,639,640,5,60,0,0,640,152,1,0,0,0,641,642,5,62,0,0,642,643,5,62,0,0,643,154,1,0,0,0,644,645,5,38,0,0,645,646,5,38,0,0,646,156,1,0,0,0,647,648,5,63,0,0,648,158,1,0,0,0,649,650,5,124,0,0,650,651,5,61,0,0,651,160,1,0,0,0,652,653,5,94,0,0,653,654,5,61,0,0,654,162,1,0,0,0,655,656,5,38,0,0,656,657,5,61,0,0,657,164,1,0,0,0,658,659,5,60,0,0,659,660,5,60,0,0,660,661,5,61,0,0,661,166,1,0,0,0,662,663,5,62,0,0,663,664,5,62,0,0,664,665,5,61,0,0,665,168,1,0,0,0,666,667,5,43,0,0,667,668,5,61,0,0,668,170,1,0,0,0,669,670,5,45,0,0,670,671,5,61,0,0,671,172,1,0,0,0,672,673,5,42,0,0,673,674,5,61,0,0,674,174,1,0,0,0,675,676,5,47,0,0,676,677,5,61,0,0,677,176,1,0,0,0,678,679,5,37,0,0,679,680,5,61,0,0,680,178,1,0,0,0,681,682,5,108,0,0,682,683,5,101,0,0,683,684,5,116,0,0,684,180,1,0,0,0,685,686,5,58,0,0,686,687,5,61,0,0,687,182,1,0,0,0,688,689,5,61,0,0,689,690,5,58,0,0,690,184,1,0,0,0,691,692,5,115,0,0,692,693,5,119,0,0,693,694,5,105,0,0,694,695,5,116,0,0,695,696,5,99,0,0,696,697,5,104,0,0,697,186,1,0,0,0,698,699,5,99,0,0,699,700,5,97,0,0,700,701,5,115,0,0,701,702,5,101,0,0,702,188,1,0,0,0,703,704,5,100,0,0,704,705,5,101,0,0,705,706,5,102,0,0,706,707,5,97,0,0,707,708,5,117,0,0,708,709,5,108,0,0,709,710,5,116,0,0,710,190,1,0,0,0,711,712,5,45,0,0,712,713,5,62,0,0,713,192,1,0,0,0,714,715,5,99,0,0,715,716,5,97,0,0,716,717,5,108,0,0,717,718,5,108,0,0,718,719,5,98,0,0,719,720,5,97,0,0,720,721,5,99,0,0,721,722,5,107,0,0,722,194,1,0,0,0,723,724,5,111,0,0,724,725,5,118,0,0,725,726,5,101,0,0,726,727,5,114,0,0,727,728,5,114,0,0,728,729,5,105,0,0,729,730,5,100,0,0,730,731,5,101,0,0,731,196,1,0,0,0,732,733,5,105,0,0,733,734,5,110,0,0,734,735,5,116,0,0,735,737,1,0,0,0,736,738,3,207,103,0,737,736,1,0,0,0,737,738,1,0,0,0,738,198,1,0,0,0,739,740,5,117,0,0,740,741,5,105,0,0,741,742,5,110,0,0,742,743,5,116,0,0,743,745,1,0,0,0,744,746,3,207,103,0,745,744,1,0,0,0,745,746,1,0,0,0,746,200,1,0,0,0,747,748,5,98,0,0,748,749,5,121,0,0,749,750,5,116,0,0,750,751,5,101,0,0,751,752,5,115,0,0,752,754,1,0,0,0,753,755,3,209,104,0,754,753,1,0,0,0,754,755,1,0,0,0,755,202,1,0,0,0,756,757,5,102,0,0,757,758,5,105,0,0,758,759,5,120,0,0,759,760,5,101,0,0,760,761,5,100,0,0,761,769,1,0,0,0,762,763,3,207,103,0,763,765,5,120,0,0,764,766,7,0,0,0,765,764,1,0,0,0,766,767,1,0,0,0,767,765,1,0,0,0,767,768,1,0,0,0,768,770,1,0,0,0,769,762,1,0,0,0,769,770,1,0,0,0,770,204,1,0,0,0,771,772,5,117,0,0,772,773,5,102,0,0,773,774,5,105,0,0,774,775,5,120,0,0,775,776,5,101,0,0,776,777,5,100,0,0,777,785,1,0,0,0,778,779,3,207,103,0,779,781,5,120,0,0,780,782,7,0,0,0,781,780,1,0,0,0,782,783,1,0,0,0,783,781,1,0,0,0,783,784,1,0,0,0,784,786,1,0,0,0,785,778,1,0,0,0,785,786,1,0,0,0,786,206,1,0,0,0,787,871,5,56,0,0,788,789,5,49,0,0,789,871,5,54,0,0,790,791,5,50,0,0,791,871,5,52,0,0,792,793,5,51,0,0,793,871,5,50,0,0,794,795,5,52,0,0,795,871,5,48,0,0,796,797,5,52,0,0,797,871,5,56,0,0,798,799,5,53,0,0,799,871,5,54,0,0,800,801,5,54,0,0,801,871,5,52,0,0,802,803,5,55,0,0,803,871,5,50,0,0,804,805,5,56,0,0,805,871,5,48,0,0,806,807,5,56,0,0,807,871,5,56,0,0,808,809,5,57,0,0,809,871,5,54,0,0,810,811,5,49,0,0,811,812,5,48,0,0,812,871,5,52,0,0,813,814,5,49,0,0,814,815,5,49,0,0,815,871,5,50,0,0,816,817,5,49,0,0,817,818,5,50,0,0,818,871,5,48,0,0,819,820,5,49,0,0,820,821,5,50,0,0,821,871,5,56,0,0,822,823,5,49,0,0,823,824,5,51,0,0,824,871,5,54,0,0,825,826,5,49,0,0,826,827,5,52,0,0,827,871,5,52,0,0,828,829,5,49,0,0,829,830,5,53,0,0,830,871,5,50,0,0,831,832,5,49,0,0,832,833,5,54,0,0,833,871,5,48,0,0,834,835,5,49,0,0,835,836,5,54,0,0,836,871,5,56,0,0,837,838,5,49,0,0,838,839,5,55,0,0,839,871,5,54,0,0,840,841,5,49,0,0,841,842,5,56,0,0,842,871,5,52,0,0,843,844,5,49,0,0,844,845,5,57,0,0,845,871,5,50,0,0,846,847,5,50,0,0,847,848,5,48,0,0,848,871,5,48,0,0,849,850,5,50,0,0,850,851,5,48,0,0,851,871,5,56,0,0,852,853,5,50,0,0,853,854,5,49,0,0,854,871,5,54,0,0,855,856,5,50,0,0,856,857,5,50,0,0,857,871,5,52,0,0,858,859,5,50,0,0,859,860,5,51,0,0,860,871,5,50,0,0,861,862,5,50,0,0,862,863,5,52,0,0,863,871,5,48,0,0,864,865,5,50,0,0,865,866,5,52,0,0,866,871,5,56,0,0,867,868,5,50,0,0,868,869,5,53,0,0,869,871,5,54,0,0,870,787,1,0,0,0,870,788,1,0,0,0,870,790,1,0,0,0,870,792,1,0,0,0,870,794,1,0,0,0,870,796,1,0,0,0,870,798,1,0,0,0,870,800,1,0,0,0,870,802,1,0,0,0,870,804,1,0,0,0,870,806,1,0,0,0,870,808,1,0,0,0,870,810,1,0,0,0,870,813,1,0,0,0,870,816,1,0,0,0,870,819,1,0,0,0,870,822,1,0,0,0,870,825,1,0,0,0,870,828,1,0,0,0,870,831,1,0,0,0,870,834,1,0,0,0,870,837,1,0,0,0,870,840,1,0,0,0,870,843,1,0,0,0,870,846,1,0,0,0,870,849,1,0,0,0,870,852,1,0,0,0,870,855,1,0,0,0,870,858,1,0,0,0,870,861,1,0,0,0,870,864,1,0,0,0,870,867,1,0,0,0,871,208,1,0,0,0,872,878,7,1,0,0,873,874,7,2,0,0,874,878,7,0,0,0,875,876,5,51,0,0,876,878,7,3,0,0,877,872,1,0,0,0,877,873,1,0,0,0,877,875,1,0,0,0,878,210,1,0,0,0,879,880,5,116,0,0,880,881,5,114,0,0,881,882,5,117,0,0,882,889,5,101,0,0,883,884,5,102,0,0,884,885,5,97,0,0,885,886,5,108,0,0,886,887,5,115,0,0,887,889,5,101,0,0,888,879,1,0,0,0,888,883,1,0,0,0,889,212,1,0,0,0,890,897,3,215,107,0,891,893,3,215,107,0,892,891,1,0,0,0,892,893,1,0,0,0,893,894,1,0,0,0,894,895,5,46,0,0,895,897,3,215,107,0,896,890,1,0,0,0,896,892,1,0,0,0,897,903,1,0,0,0,898,900,7,4,0,0,899,901,5,45,0,0,900,899,1,0,0,0,900,901,1,0,0,0,901,902,1,0,0,0,902,904,3,215,107,0,903,898,1,0,0,0,903,904,1,0,0,0,904,214,1,0,0,0,905,912,7,0,0,0,906,908,5,95,0,0,907,906,1,0,0,0,907,908,1,0,0,0,908,909,1,0,0,0,909,911,7,0,0,0,910,907,1,0,0,0,911,914,1,0,0,0,912,910,1,0,0,0,912,913,1,0,0,0,913,216,1,0,0,0,914,912,1,0,0,0,915,916,5,48,0,0,916,917,7,5,0,0,917,918,3,219,109,0,918,218,1,0,0,0,919,926,3,225,112,0,920,922,5,95,0,0,921,920,1,0,0,0,921,922,1,0,0,0,922,923,1,0,0,0,923,925,3,225,112,0,924,921,1,0,0,0,925,928,1,0,0,0,926,924,1,0,0,0,926,927,1,0,0,0,927,220,1,0,0,0,928,926,1,0,0,0,929,930,5,119,0,0,930,931,5,101,0,0,931,986,5,105,0,0,932,933,5,103,0,0,933,934,5,119,0,0,934,935,5,101,0,0,935,986,5,105,0,0,936,937,5,115,0,0,937,938,5,122,0,0,938,939,5,97,0,0,939,940,5,98,0,0,940,986,5,111,0,0,941,942,5,102,0,0,942,943,5,105,0,0,943,944,5,110,0,0,944,945,5,110,0,0,945,946,5,101,0,0,946,986,5,121,0,0,947,948,5,101,0,0,948,949,5,116,0,0,949,950,5,104,0,0,950,951,5,101,0,0,951,986,5,114,0,0,952,953,5,115,0,0,953,954,5,101,0,0,954,955,5,99,0,0,955,956,5,111,0,0,956,957,5,110,0,0,957,958,5,100,0,0,958,986,5,115,0,0,959,960,5,109,0,0,960,961,5,105,0,0,961,962,5,110,0,0,962,963,5,117,0,0,963,964,5,116,0,0,964,965,5,101,0,0,965,986,5,115,0,0,966,967,5,104,0,0,967,968,5,111,0,0,968,969,5,117,0,0,969,970,5,114,0,0,970,986,5,115,0,0,971,972,5,100,0,0,972,973,5,97,0,0,973,974,5,121,0,0,974,986,5,115,0,0,975,976,5,119,0,0,976,977,5,101,0,0,977,978,5,101,0,0,978,979,5,107,0,0,979,986,5,115,0,0,980,981,5,121,0,0,981,982,5,101,0,0,982,983,5,97,0,0,983,984,5,114,0,0,984,986,5,115,0,0,985,929,1,0,0,0,985,932,1,0,0,0,985,936,1,0,0,0,985,941,1,0,0,0,985,947,1,0,0,0,985,952,1,0,0,0,985,959,1,0,0,0,985,966,1,0,0,0,985,971,1,0,0,0,985,975,1,0,0,0,985,980,1,0,0,0,986,222,1,0,0,0,987,988,5,104,0,0,988,989,5,101,0,0,989,990,5,120,0,0,990,1001,1,0,0,0,991,993,5,34,0,0,992,994,3,219,109,0,993,992,1,0,0,0,993,994,1,0,0,0,994,995,1,0,0,0,995,1002,5,34,0,0,996,998,5,39,0,0,997,999,3,219,109,0,998,997,1,0,0,0,998,999,1,0,0,0,999,1e3,1,0,0,0,1e3,1002,5,39,0,0,1001,991,1,0,0,0,1001,996,1,0,0,0,1002,224,1,0,0,0,1003,1004,7,6,0,0,1004,226,1,0,0,0,1005,1006,5,97,0,0,1006,1007,5,102,0,0,1007,1008,5,116,0,0,1008,1009,5,101,0,0,1009,1176,5,114,0,0,1010,1011,5,97,0,0,1011,1012,5,108,0,0,1012,1013,5,105,0,0,1013,1014,5,97,0,0,1014,1176,5,115,0,0,1015,1016,5,97,0,0,1016,1017,5,112,0,0,1017,1018,5,112,0,0,1018,1019,5,108,0,0,1019,1176,5,121,0,0,1020,1021,5,97,0,0,1021,1022,5,117,0,0,1022,1023,5,116,0,0,1023,1176,5,111,0,0,1024,1025,5,99,0,0,1025,1026,5,97,0,0,1026,1027,5,115,0,0,1027,1176,5,101,0,0,1028,1029,5,99,0,0,1029,1030,5,111,0,0,1030,1031,5,112,0,0,1031,1032,5,121,0,0,1032,1033,5,111,0,0,1033,1176,5,102,0,0,1034,1035,5,100,0,0,1035,1036,5,101,0,0,1036,1037,5,102,0,0,1037,1038,5,97,0,0,1038,1039,5,117,0,0,1039,1040,5,108,0,0,1040,1176,5,116,0,0,1041,1042,5,100,0,0,1042,1043,5,101,0,0,1043,1044,5,102,0,0,1044,1045,5,105,0,0,1045,1046,5,110,0,0,1046,1176,5,101,0,0,1047,1048,5,102,0,0,1048,1049,5,105,0,0,1049,1050,5,110,0,0,1050,1051,5,97,0,0,1051,1176,5,108,0,0,1052,1053,5,105,0,0,1053,1054,5,109,0,0,1054,1055,5,112,0,0,1055,1056,5,108,0,0,1056,1057,5,101,0,0,1057,1058,5,109,0,0,1058,1059,5,101,0,0,1059,1060,5,110,0,0,1060,1061,5,116,0,0,1061,1176,5,115,0,0,1062,1063,5,105,0,0,1063,1176,5,110,0,0,1064,1065,5,105,0,0,1065,1066,5,110,0,0,1066,1067,5,108,0,0,1067,1068,5,105,0,0,1068,1069,5,110,0,0,1069,1176,5,101,0,0,1070,1071,5,108,0,0,1071,1072,5,101,0,0,1072,1176,5,116,0,0,1073,1074,5,109,0,0,1074,1075,5,97,0,0,1075,1076,5,99,0,0,1076,1077,5,114,0,0,1077,1176,5,111,0,0,1078,1079,5,109,0,0,1079,1080,5,97,0,0,1080,1081,5,116,0,0,1081,1082,5,99,0,0,1082,1176,5,104,0,0,1083,1084,5,109,0,0,1084,1085,5,117,0,0,1085,1086,5,116,0,0,1086,1087,5,97,0,0,1087,1088,5,98,0,0,1088,1089,5,108,0,0,1089,1176,5,101,0,0,1090,1091,5,110,0,0,1091,1092,5,117,0,0,1092,1093,5,108,0,0,1093,1176,5,108,0,0,1094,1095,5,111,0,0,1095,1176,5,102,0,0,1096,1097,5,112,0,0,1097,1098,5,97,0,0,1098,1099,5,114,0,0,1099,1100,5,116,0,0,1100,1101,5,105,0,0,1101,1102,5,97,0,0,1102,1176,5,108,0,0,1103,1104,5,112,0,0,1104,1105,5,114,0,0,1105,1106,5,111,0,0,1106,1107,5,109,0,0,1107,1108,5,105,0,0,1108,1109,5,115,0,0,1109,1176,5,101,0,0,1110,1111,5,114,0,0,1111,1112,5,101,0,0,1112,1113,5,102,0,0,1113,1114,5,101,0,0,1114,1115,5,114,0,0,1115,1116,5,101,0,0,1116,1117,5,110,0,0,1117,1118,5,99,0,0,1118,1176,5,101,0,0,1119,1120,5,114,0,0,1120,1121,5,101,0,0,1121,1122,5,108,0,0,1122,1123,5,111,0,0,1123,1124,5,99,0,0,1124,1125,5,97,0,0,1125,1126,5,116,0,0,1126,1127,5,97,0,0,1127,1128,5,98,0,0,1128,1129,5,108,0,0,1129,1176,5,101,0,0,1130,1131,5,115,0,0,1131,1132,5,101,0,0,1132,1133,5,97,0,0,1133,1134,5,108,0,0,1134,1135,5,101,0,0,1135,1176,5,100,0,0,1136,1137,5,115,0,0,1137,1138,5,105,0,0,1138,1139,5,122,0,0,1139,1140,5,101,0,0,1140,1141,5,111,0,0,1141,1176,5,102,0,0,1142,1143,5,115,0,0,1143,1144,5,116,0,0,1144,1145,5,97,0,0,1145,1146,5,116,0,0,1146,1147,5,105,0,0,1147,1176,5,99,0,0,1148,1149,5,115,0,0,1149,1150,5,117,0,0,1150,1151,5,112,0,0,1151,1152,5,112,0,0,1152,1153,5,111,0,0,1153,1154,5,114,0,0,1154,1155,5,116,0,0,1155,1176,5,115,0,0,1156,1157,5,115,0,0,1157,1158,5,119,0,0,1158,1159,5,105,0,0,1159,1160,5,116,0,0,1160,1161,5,99,0,0,1161,1176,5,104,0,0,1162,1163,5,116,0,0,1163,1164,5,121,0,0,1164,1165,5,112,0,0,1165,1166,5,101,0,0,1166,1167,5,100,0,0,1167,1168,5,101,0,0,1168,1176,5,102,0,0,1169,1170,5,116,0,0,1170,1171,5,121,0,0,1171,1172,5,112,0,0,1172,1173,5,101,0,0,1173,1174,5,111,0,0,1174,1176,5,102,0,0,1175,1005,1,0,0,0,1175,1010,1,0,0,0,1175,1015,1,0,0,0,1175,1020,1,0,0,0,1175,1024,1,0,0,0,1175,1028,1,0,0,0,1175,1034,1,0,0,0,1175,1041,1,0,0,0,1175,1047,1,0,0,0,1175,1052,1,0,0,0,1175,1062,1,0,0,0,1175,1064,1,0,0,0,1175,1070,1,0,0,0,1175,1073,1,0,0,0,1175,1078,1,0,0,0,1175,1083,1,0,0,0,1175,1090,1,0,0,0,1175,1094,1,0,0,0,1175,1096,1,0,0,0,1175,1103,1,0,0,0,1175,1110,1,0,0,0,1175,1119,1,0,0,0,1175,1130,1,0,0,0,1175,1136,1,0,0,0,1175,1142,1,0,0,0,1175,1148,1,0,0,0,1175,1156,1,0,0,0,1175,1162,1,0,0,0,1175,1169,1,0,0,0,1176,228,1,0,0,0,1177,1178,5,97,0,0,1178,1179,5,110,0,0,1179,1180,5,111,0,0,1180,1181,5,110,0,0,1181,1182,5,121,0,0,1182,1183,5,109,0,0,1183,1184,5,111,0,0,1184,1185,5,117,0,0,1185,1186,5,115,0,0,1186,230,1,0,0,0,1187,1188,5,98,0,0,1188,1189,5,114,0,0,1189,1190,5,101,0,0,1190,1191,5,97,0,0,1191,1192,5,107,0,0,1192,232,1,0,0,0,1193,1194,5,99,0,0,1194,1195,5,111,0,0,1195,1196,5,110,0,0,1196,1197,5,115,0,0,1197,1198,5,116,0,0,1198,1199,5,97,0,0,1199,1200,5,110,0,0,1200,1201,5,116,0,0,1201,234,1,0,0,0,1202,1203,5,116,0,0,1203,1204,5,114,0,0,1204,1205,5,97,0,0,1205,1206,5,110,0,0,1206,1207,5,115,0,0,1207,1208,5,105,0,0,1208,1209,5,101,0,0,1209,1210,5,110,0,0,1210,1211,5,116,0,0,1211,236,1,0,0,0,1212,1213,5,105,0,0,1213,1214,5,109,0,0,1214,1215,5,109,0,0,1215,1216,5,117,0,0,1216,1217,5,116,0,0,1217,1218,5,97,0,0,1218,1219,5,98,0,0,1219,1220,5,108,0,0,1220,1221,5,101,0,0,1221,238,1,0,0,0,1222,1223,5,99,0,0,1223,1224,5,111,0,0,1224,1225,5,110,0,0,1225,1226,5,116,0,0,1226,1227,5,105,0,0,1227,1228,5,110,0,0,1228,1229,5,117,0,0,1229,1230,5,101,0,0,1230,240,1,0,0,0,1231,1232,5,108,0,0,1232,1233,5,101,0,0,1233,1234,5,97,0,0,1234,1235,5,118,0,0,1235,1236,5,101,0,0,1236,242,1,0,0,0,1237,1238,5,101,0,0,1238,1239,5,120,0,0,1239,1240,5,116,0,0,1240,1241,5,101,0,0,1241,1242,5,114,0,0,1242,1243,5,110,0,0,1243,1244,5,97,0,0,1244,1245,5,108,0,0,1245,244,1,0,0,0,1246,1247,5,105,0,0,1247,1248,5,110,0,0,1248,1249,5,100,0,0,1249,1250,5,101,0,0,1250,1251,5,120,0,0,1251,1252,5,101,0,0,1252,1253,5,100,0,0,1253,246,1,0,0,0,1254,1255,5,105,0,0,1255,1256,5,110,0,0,1256,1257,5,116,0,0,1257,1258,5,101,0,0,1258,1259,5,114,0,0,1259,1260,5,110,0,0,1260,1261,5,97,0,0,1261,1262,5,108,0,0,1262,248,1,0,0,0,1263,1264,5,112,0,0,1264,1265,5,97,0,0,1265,1266,5,121,0,0,1266,1267,5,97,0,0,1267,1268,5,98,0,0,1268,1269,5,108,0,0,1269,1270,5,101,0,0,1270,250,1,0,0,0,1271,1272,5,112,0,0,1272,1273,5,114,0,0,1273,1274,5,105,0,0,1274,1275,5,118,0,0,1275,1276,5,97,0,0,1276,1277,5,116,0,0,1277,1278,5,101,0,0,1278,252,1,0,0,0,1279,1280,5,112,0,0,1280,1281,5,117,0,0,1281,1282,5,98,0,0,1282,1283,5,108,0,0,1283,1284,5,105,0,0,1284,1285,5,99,0,0,1285,254,1,0,0,0,1286,1287,5,118,0,0,1287,1288,5,105,0,0,1288,1289,5,114,0,0,1289,1290,5,116,0,0,1290,1291,5,117,0,0,1291,1292,5,97,0,0,1292,1293,5,108,0,0,1293,256,1,0,0,0,1294,1295,5,112,0,0,1295,1296,5,117,0,0,1296,1297,5,114,0,0,1297,1298,5,101,0,0,1298,258,1,0,0,0,1299,1300,5,116,0,0,1300,1301,5,121,0,0,1301,1302,5,112,0,0,1302,1303,5,101,0,0,1303,260,1,0,0,0,1304,1305,5,118,0,0,1305,1306,5,105,0,0,1306,1307,5,101,0,0,1307,1308,5,119,0,0,1308,262,1,0,0,0,1309,1310,5,103,0,0,1310,1311,5,108,0,0,1311,1312,5,111,0,0,1312,1313,5,98,0,0,1313,1314,5,97,0,0,1314,1315,5,108,0,0,1315,264,1,0,0,0,1316,1317,5,99,0,0,1317,1318,5,111,0,0,1318,1319,5,110,0,0,1319,1320,5,115,0,0,1320,1321,5,116,0,0,1321,1322,5,114,0,0,1322,1323,5,117,0,0,1323,1324,5,99,0,0,1324,1325,5,116,0,0,1325,1326,5,111,0,0,1326,1327,5,114,0,0,1327,266,1,0,0,0,1328,1329,5,102,0,0,1329,1330,5,97,0,0,1330,1331,5,108,0,0,1331,1332,5,108,0,0,1332,1333,5,98,0,0,1333,1334,5,97,0,0,1334,1335,5,99,0,0,1335,1336,5,107,0,0,1336,268,1,0,0,0,1337,1338,5,114,0,0,1338,1339,5,101,0,0,1339,1340,5,99,0,0,1340,1341,5,101,0,0,1341,1342,5,105,0,0,1342,1343,5,118,0,0,1343,1344,5,101,0,0,1344,270,1,0,0,0,1345,1349,3,273,136,0,1346,1348,3,275,137,0,1347,1346,1,0,0,0,1348,1351,1,0,0,0,1349,1347,1,0,0,0,1349,1350,1,0,0,0,1350,272,1,0,0,0,1351,1349,1,0,0,0,1352,1353,7,7,0,0,1353,274,1,0,0,0,1354,1355,7,8,0,0,1355,276,1,0,0,0,1356,1357,5,117,0,0,1357,1358,5,110,0,0,1358,1359,5,105,0,0,1359,1360,5,99,0,0,1360,1361,5,111,0,0,1361,1362,5,100,0,0,1362,1364,5,101,0,0,1363,1356,1,0,0,0,1363,1364,1,0,0,0,1364,1381,1,0,0,0,1365,1369,5,34,0,0,1366,1368,3,279,139,0,1367,1366,1,0,0,0,1368,1371,1,0,0,0,1369,1367,1,0,0,0,1369,1370,1,0,0,0,1370,1372,1,0,0,0,1371,1369,1,0,0,0,1372,1382,5,34,0,0,1373,1377,5,39,0,0,1374,1376,3,281,140,0,1375,1374,1,0,0,0,1376,1379,1,0,0,0,1377,1375,1,0,0,0,1377,1378,1,0,0,0,1378,1380,1,0,0,0,1379,1377,1,0,0,0,1380,1382,5,39,0,0,1381,1365,1,0,0,0,1381,1373,1,0,0,0,1382,278,1,0,0,0,1383,1387,8,9,0,0,1384,1385,5,92,0,0,1385,1387,9,0,0,0,1386,1383,1,0,0,0,1386,1384,1,0,0,0,1387,280,1,0,0,0,1388,1392,8,10,0,0,1389,1390,5,92,0,0,1390,1392,9,0,0,0,1391,1388,1,0,0,0,1391,1389,1,0,0,0,1392,282,1,0,0,0,1393,1395,7,0,0,0,1394,1393,1,0,0,0,1395,1396,1,0,0,0,1396,1394,1,0,0,0,1396,1397,1,0,0,0,1397,1398,1,0,0,0,1398,1400,5,46,0,0,1399,1401,7,0,0,0,1400,1399,1,0,0,0,1401,1402,1,0,0,0,1402,1400,1,0,0,0,1402,1403,1,0,0,0,1403,1410,1,0,0,0,1404,1406,5,46,0,0,1405,1407,7,0,0,0,1406,1405,1,0,0,0,1407,1408,1,0,0,0,1408,1406,1,0,0,0,1408,1409,1,0,0,0,1409,1411,1,0,0,0,1410,1404,1,0,0,0,1410,1411,1,0,0,0,1411,284,1,0,0,0,1412,1414,7,11,0,0,1413,1412,1,0,0,0,1414,1415,1,0,0,0,1415,1413,1,0,0,0,1415,1416,1,0,0,0,1416,1417,1,0,0,0,1417,1418,6,142,0,0,1418,286,1,0,0,0,1419,1420,5,47,0,0,1420,1421,5,42,0,0,1421,1425,1,0,0,0,1422,1424,9,0,0,0,1423,1422,1,0,0,0,1424,1427,1,0,0,0,1425,1426,1,0,0,0,1425,1423,1,0,0,0,1426,1428,1,0,0,0,1427,1425,1,0,0,0,1428,1429,5,42,0,0,1429,1430,5,47,0,0,1430,1431,1,0,0,0,1431,1432,6,143,1,0,1432,288,1,0,0,0,1433,1434,5,47,0,0,1434,1435,5,47,0,0,1435,1439,1,0,0,0,1436,1438,8,12,0,0,1437,1436,1,0,0,0,1438,1441,1,0,0,0,1439,1437,1,0,0,0,1439,1440,1,0,0,0,1440,1442,1,0,0,0,1441,1439,1,0,0,0,1442,1443,6,144,1,0,1443,290,1,0,0,0,38,0,737,745,754,767,769,783,785,870,877,888,892,896,900,903,907,912,921,926,985,993,998,1001,1175,1349,1363,1369,1377,1381,1386,1391,1396,1402,1408,1410,1415,1425,1439,2,6,0,0,0,1,0],k.DecisionsToDFA=k._ATN.decisionToState.map((e,t)=>new p(e,t));var R=k,A=class e extends v{get grammarFileName(){return"Solidity.g4"}get literalNames(){return e.literalNames}get symbolicNames(){return e.symbolicNames}get ruleNames(){return e.ruleNames}get serializedATN(){return e._serializedATN}createFailedPredicateException(e,t){return new y(this,e,t)}constructor(t){super(t),this._interp=new b(this,e._ATN,e.DecisionsToDFA,new E)}sourceUnit(){let t,r=new L(this,this._ctx,this.state);this.enterRule(r,0,e.RULE_sourceUnit);try{for(this.enterOuterAlt(r,1),this.state=217,this._errHandler.sync(this),t=this._input.LA(1);!(-32&t)&&1<<t&507273218||!(t-38&-32)&&1<<t-38&2080392501||!(t-97&-32)&&1<<t-97&3498573949||!(t-129&-32)&&1<<t-129&7;){switch(this.state=215,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,0,this._ctx)){case 1:this.state=204,this.pragmaDirective();break;case 2:this.state=205,this.importDirective();break;case 3:this.state=206,this.contractDefinition();break;case 4:this.state=207,this.enumDefinition();break;case 5:this.state=208,this.eventDefinition();break;case 6:this.state=209,this.structDefinition();break;case 7:this.state=210,this.functionDefinition();break;case 8:this.state=211,this.fileLevelConstant();break;case 9:this.state=212,this.customErrorDefinition();break;case 10:this.state=213,this.typeDefinition();break;case 11:this.state=214,this.usingForDeclaration()}this.state=219,this._errHandler.sync(this),t=this._input.LA(1)}this.state=220,this.match(e.EOF)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}pragmaDirective(){let t=new K(this,this._ctx,this.state);this.enterRule(t,2,e.RULE_pragmaDirective);try{this.enterOuterAlt(t,1),this.state=222,this.match(e.T__0),this.state=223,this.pragmaName(),this.state=224,this.pragmaValue(),this.state=225,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}pragmaName(){let t=new I(this,this._ctx,this.state);this.enterRule(t,4,e.RULE_pragmaName);try{this.enterOuterAlt(t,1),this.state=227,this.identifier()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}pragmaValue(){let t=new N(this,this._ctx,this.state);this.enterRule(t,6,e.RULE_pragmaValue);try{switch(this.state=232,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,2,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=229,this.match(e.T__2);break;case 2:this.enterOuterAlt(t,2),this.state=230,this.version();break;case 3:this.enterOuterAlt(t,3),this.state=231,this.expression(0)}}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}version(){let t,r=new O(this,this._ctx,this.state);this.enterRule(r,8,e.RULE_version);try{for(this.enterOuterAlt(r,1),this.state=234,this.versionConstraint(),this.state=241,this._errHandler.sync(this),t=this._input.LA(1);!(-32&t)&&1<<t&4080||105===t||133===t;)this.state=236,this._errHandler.sync(this),t=this._input.LA(1),4===t&&(this.state=235,this.match(e.T__3)),this.state=238,this.versionConstraint(),this.state=243,this._errHandler.sync(this),t=this._input.LA(1)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}versionOperator(){let t,r=new D(this,this._ctx,this.state);this.enterRule(r,10,e.RULE_versionOperator);try{this.enterOuterAlt(r,1),this.state=244,t=this._input.LA(1),-32&t||!(1<<t&4064)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}versionConstraint(){let t,r=new P(this,this._ctx,this.state);this.enterRule(r,12,e.RULE_versionConstraint);try{switch(this.state=254,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(r,1),this.state=247,this._errHandler.sync(this),t=this._input.LA(1),!(-32&t)&&1<<t&4064&&(this.state=246,this.versionOperator()),this.state=249,this.match(e.VersionLiteral);break;case 2:this.enterOuterAlt(r,2),this.state=251,this._errHandler.sync(this),t=this._input.LA(1),!(-32&t)&&1<<t&4064&&(this.state=250,this.versionOperator()),this.state=253,this.match(e.DecimalNumber)}}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}importDeclaration(){let t,r=new q(this,this._ctx,this.state);this.enterRule(r,14,e.RULE_importDeclaration);try{this.enterOuterAlt(r,1),this.state=256,this.identifier(),this.state=259,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=257,this.match(e.T__11),this.state=258,this.identifier())}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}importDirective(){let t,r=new M(this,this._ctx,this.state);this.enterRule(r,16,e.RULE_importDirective);try{switch(this.state=297,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,13,this._ctx)){case 1:this.enterOuterAlt(r,1),this.state=261,this.match(e.T__12),this.state=262,this.importPath(),this.state=265,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=263,this.match(e.T__11),this.state=264,this.identifier()),this.state=267,this.match(e.T__1);break;case 2:switch(this.enterOuterAlt(r,2),this.state=269,this.match(e.T__12),this.state=272,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=270,this.match(e.T__2);break;case 14:case 25:case 26:case 27:case 46:case 52:case 64:case 97:case 116:case 120:case 127:case 128:case 130:case 131:this.state=271,this.identifier();break;default:throw new w(this)}this.state=276,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=274,this.match(e.T__11),this.state=275,this.identifier()),this.state=278,this.match(e.T__13),this.state=279,this.importPath(),this.state=280,this.match(e.T__1);break;case 3:for(this.enterOuterAlt(r,3),this.state=282,this.match(e.T__12),this.state=283,this.match(e.T__14),this.state=284,this.importDeclaration(),this.state=289,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=285,this.match(e.T__15),this.state=286,this.importDeclaration(),this.state=291,this._errHandler.sync(this),t=this._input.LA(1);this.state=292,this.match(e.T__16),this.state=293,this.match(e.T__13),this.state=294,this.importPath(),this.state=295,this.match(e.T__1)}}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}importPath(){let t=new F(this,this._ctx,this.state);this.enterRule(t,18,e.RULE_importPath);try{this.enterOuterAlt(t,1),this.state=299,this.match(e.StringLiteralFragment)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}contractDefinition(){let t,r=new U(this,this._ctx,this.state);this.enterRule(r,20,e.RULE_contractDefinition);try{if(this.enterOuterAlt(r,1),this.state=302,this._errHandler.sync(this),t=this._input.LA(1),18===t&&(this.state=301,this.match(e.T__17)),this.state=304,t=this._input.LA(1),-32&t||!(1<<t&3670016)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=305,this.identifier(),this.state=307,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,15,this._ctx)&&(this.state=306,this.customStorageLayout()),this.state=318,this._errHandler.sync(this),t=this._input.LA(1),22===t)for(this.state=309,this.match(e.T__21),this.state=310,this.inheritanceSpecifier(),this.state=315,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=311,this.match(e.T__15),this.state=312,this.inheritanceSpecifier(),this.state=317,this._errHandler.sync(this),t=this._input.LA(1);for(this.state=321,this._errHandler.sync(this),t=this._input.LA(1),25===t&&(this.state=320,this.customStorageLayout()),this.state=323,this.match(e.T__14),this.state=327,this._errHandler.sync(this),t=this._input.LA(1);!(-32&t)&&1<<t&503332864||!(t-38&-32)&&1<<t-38&2080392503||!(t-97&-32)&&1<<t-97&3498573949||!(t-129&-32)&&1<<t-129&7;)this.state=324,this.contractPart(),this.state=329,this._errHandler.sync(this),t=this._input.LA(1);this.state=330,this.match(e.T__16)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}inheritanceSpecifier(){let t,r=new Y(this,this._ctx,this.state);this.enterRule(r,22,e.RULE_inheritanceSpecifier);try{this.enterOuterAlt(r,1),this.state=332,this.userDefinedTypeName(),this.state=338,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=333,this.match(e.T__22),this.state=335,this._errHandler.sync(this),t=this._input.LA(1),(!(t-6&-32)&&1<<t-6&205127937||!(t-40&-32)&&1<<t-40&4278194513||!(t-73&-32)&&1<<t-73&4244635651||!(t-105&-32)&&1<<t-105&248547339)&&(this.state=334,this.expressionList()),this.state=337,this.match(e.T__23))}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}customStorageLayout(){let t=new V(this,this._ctx,this.state);this.enterRule(t,24,e.RULE_customStorageLayout);try{this.enterOuterAlt(t,1),this.state=340,this.match(e.T__24),this.state=341,this.match(e.T__25),this.state=342,this.expression(0)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}contractPart(){let t=new j(this,this._ctx,this.state);this.enterRule(t,26,e.RULE_contractPart);try{switch(this.state=353,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,22,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=344,this.stateVariableDeclaration();break;case 2:this.enterOuterAlt(t,2),this.state=345,this.usingForDeclaration();break;case 3:this.enterOuterAlt(t,3),this.state=346,this.structDefinition();break;case 4:this.enterOuterAlt(t,4),this.state=347,this.modifierDefinition();break;case 5:this.enterOuterAlt(t,5),this.state=348,this.functionDefinition();break;case 6:this.enterOuterAlt(t,6),this.state=349,this.eventDefinition();break;case 7:this.enterOuterAlt(t,7),this.state=350,this.enumDefinition();break;case 8:this.enterOuterAlt(t,8),this.state=351,this.customErrorDefinition();break;case 9:this.enterOuterAlt(t,9),this.state=352,this.typeDefinition()}}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}stateVariableDeclaration(){let t,r=new B(this,this._ctx,this.state);this.enterRule(r,28,e.RULE_stateVariableDeclaration);try{for(this.enterOuterAlt(r,1),this.state=355,this.typeName(0),this.state=365,this._errHandler.sync(this),t=this._input.LA(1);!(t-98&-32)&&1<<t-98&27377665;){switch(this.state=363,this._errHandler.sync(this),this._input.LA(1)){case 122:this.state=356,this.match(e.PublicKeyword);break;case 119:this.state=357,this.match(e.InternalKeyword);break;case 121:this.state=358,this.match(e.PrivateKeyword);break;case 112:this.state=359,this.match(e.ConstantKeyword);break;case 113:this.state=360,this.match(e.TransientKeyword);break;case 114:this.state=361,this.match(e.ImmutableKeyword);break;case 98:this.state=362,this.overrideSpecifier();break;default:throw new w(this)}this.state=367,this._errHandler.sync(this),t=this._input.LA(1)}this.state=368,this.identifier(),this.state=371,this._errHandler.sync(this),t=this._input.LA(1),11===t&&(this.state=369,this.match(e.T__10),this.state=370,this.expression(0)),this.state=373,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}fileLevelConstant(){let t=new H(this,this._ctx,this.state);this.enterRule(t,30,e.RULE_fileLevelConstant);try{this.enterOuterAlt(t,1),this.state=375,this.typeName(0),this.state=376,this.match(e.ConstantKeyword),this.state=377,this.identifier(),this.state=378,this.match(e.T__10),this.state=379,this.expression(0),this.state=380,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}customErrorDefinition(){let t=new $(this,this._ctx,this.state);this.enterRule(t,32,e.RULE_customErrorDefinition);try{this.enterOuterAlt(t,1),this.state=382,this.match(e.T__26),this.state=383,this.identifier(),this.state=384,this.parameterList(),this.state=385,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}typeDefinition(){let t=new G(this,this._ctx,this.state);this.enterRule(t,34,e.RULE_typeDefinition);try{this.enterOuterAlt(t,1),this.state=387,this.match(e.TypeKeyword),this.state=388,this.identifier(),this.state=389,this.match(e.T__21),this.state=390,this.elementaryTypeName(),this.state=391,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}usingForDeclaration(){let t,r=new z(this,this._ctx,this.state);this.enterRule(r,36,e.RULE_usingForDeclaration);try{switch(this.enterOuterAlt(r,1),this.state=393,this.match(e.T__27),this.state=394,this.usingForObject(),this.state=395,this.match(e.T__28),this.state=398,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=396,this.match(e.T__2);break;case 14:case 25:case 26:case 27:case 40:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 97:case 99:case 100:case 101:case 102:case 103:case 116:case 120:case 127:case 128:case 130:case 131:this.state=397,this.typeName(0);break;default:throw new w(this)}this.state=401,this._errHandler.sync(this),t=this._input.LA(1),127===t&&(this.state=400,this.match(e.GlobalKeyword)),this.state=403,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}usingForObject(){let t,r=new W(this,this._ctx,this.state);this.enterRule(r,38,e.RULE_usingForObject);try{switch(this.state=417,this._errHandler.sync(this),this._input.LA(1)){case 14:case 25:case 26:case 27:case 46:case 52:case 64:case 97:case 116:case 120:case 127:case 128:case 130:case 131:this.enterOuterAlt(r,1),this.state=405,this.userDefinedTypeName();break;case 15:for(this.enterOuterAlt(r,2),this.state=406,this.match(e.T__14),this.state=407,this.usingForObjectDirective(),this.state=412,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=408,this.match(e.T__15),this.state=409,this.usingForObjectDirective(),this.state=414,this._errHandler.sync(this),t=this._input.LA(1);this.state=415,this.match(e.T__16);break;default:throw new w(this)}}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}usingForObjectDirective(){let t,r=new X(this,this._ctx,this.state);this.enterRule(r,40,e.RULE_usingForObjectDirective);try{this.enterOuterAlt(r,1),this.state=419,this.userDefinedTypeName(),this.state=422,this._errHandler.sync(this),t=this._input.LA(1),12===t&&(this.state=420,this.match(e.T__11),this.state=421,this.userDefinableOperators())}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}userDefinableOperators(){let t,r=new Q(this,this._ctx,this.state);this.enterRule(r,42,e.RULE_userDefinableOperators);try{this.enterOuterAlt(r,1),this.state=424,t=this._input.LA(1),!(-32&t)&&1<<t&3221227496||!(t-32&-32)&&1<<t-32&63?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}structDefinition(){let t,r=new J(this,this._ctx,this.state);this.enterRule(r,44,e.RULE_structDefinition);try{if(this.enterOuterAlt(r,1),this.state=426,this.match(e.T__37),this.state=427,this.identifier(),this.state=428,this.match(e.T__14),this.state=439,this._errHandler.sync(this),t=this._input.LA(1),!(-32&t)&&1<<t&234897408||!(t-40&-32)&&1<<t-40&520098113||!(t-97&-32)&&1<<t-97&3230138493||130===t||131===t)for(this.state=429,this.variableDeclaration(),this.state=430,this.match(e.T__1),this.state=436,this._errHandler.sync(this),t=this._input.LA(1);!(-32&t)&&1<<t&234897408||!(t-40&-32)&&1<<t-40&520098113||!(t-97&-32)&&1<<t-97&3230138493||130===t||131===t;)this.state=431,this.variableDeclaration(),this.state=432,this.match(e.T__1),this.state=438,this._errHandler.sync(this),t=this._input.LA(1);this.state=441,this.match(e.T__16)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}modifierDefinition(){let t,r=new Z(this,this._ctx,this.state);this.enterRule(r,46,e.RULE_modifierDefinition);try{for(this.enterOuterAlt(r,1),this.state=443,this.match(e.T__38),this.state=444,this.identifier(),this.state=446,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=445,this.parameterList()),this.state=452,this._errHandler.sync(this),t=this._input.LA(1);98===t||123===t;){switch(this.state=450,this._errHandler.sync(this),this._input.LA(1)){case 123:this.state=448,this.match(e.VirtualKeyword);break;case 98:this.state=449,this.overrideSpecifier();break;default:throw new w(this)}this.state=454,this._errHandler.sync(this),t=this._input.LA(1)}switch(this.state=457,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=455,this.match(e.T__1);break;case 15:this.state=456,this.block();break;default:throw new w(this)}}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}modifierInvocation(){let t,r=new ee(this,this._ctx,this.state);this.enterRule(r,48,e.RULE_modifierInvocation);try{this.enterOuterAlt(r,1),this.state=459,this.identifier(),this.state=465,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=460,this.match(e.T__22),this.state=462,this._errHandler.sync(this),t=this._input.LA(1),(!(t-6&-32)&&1<<t-6&205127937||!(t-40&-32)&&1<<t-40&4278194513||!(t-73&-32)&&1<<t-73&4244635651||!(t-105&-32)&&1<<t-105&248547339)&&(this.state=461,this.expressionList()),this.state=464,this.match(e.T__23))}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}functionDefinition(){let t,r=new te(this,this._ctx,this.state);this.enterRule(r,50,e.RULE_functionDefinition);try{switch(this.enterOuterAlt(r,1),this.state=467,this.functionDescriptor(),this.state=468,this.parameterList(),this.state=469,this.modifierList(),this.state=471,this._errHandler.sync(this),t=this._input.LA(1),41===t&&(this.state=470,this.returnParameters()),this.state=475,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=473,this.match(e.T__1);break;case 15:this.state=474,this.block();break;default:throw new w(this)}}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}functionDescriptor(){let t,r=new re(this,this._ctx,this.state);this.enterRule(r,52,e.RULE_functionDescriptor);try{switch(this.state=484,this._errHandler.sync(this),this._input.LA(1)){case 40:this.enterOuterAlt(r,1),this.state=477,this.match(e.T__39),this.state=479,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&3230138369||130===t||131===t)&&(this.state=478,this.identifier());break;case 128:this.enterOuterAlt(r,2),this.state=481,this.match(e.ConstructorKeyword);break;case 129:this.enterOuterAlt(r,3),this.state=482,this.match(e.FallbackKeyword);break;case 130:this.enterOuterAlt(r,4),this.state=483,this.match(e.ReceiveKeyword);break;default:throw new w(this)}}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}returnParameters(){let t=new se(this,this._ctx,this.state);this.enterRule(t,54,e.RULE_returnParameters);try{this.enterOuterAlt(t,1),this.state=486,this.match(e.T__40),this.state=487,this.parameterList()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}modifierList(){let t,r=new ie(this,this._ctx,this.state);this.enterRule(r,56,e.RULE_modifierList);try{for(this.enterOuterAlt(r,1),this.state=499,this._errHandler.sync(this),t=this._input.LA(1);!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&4023943171||130===t||131===t;){switch(this.state=497,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,43,this._ctx)){case 1:this.state=489,this.match(e.ExternalKeyword);break;case 2:this.state=490,this.match(e.PublicKeyword);break;case 3:this.state=491,this.match(e.InternalKeyword);break;case 4:this.state=492,this.match(e.PrivateKeyword);break;case 5:this.state=493,this.match(e.VirtualKeyword);break;case 6:this.state=494,this.stateMutability();break;case 7:this.state=495,this.modifierInvocation();break;case 8:this.state=496,this.overrideSpecifier()}this.state=501,this._errHandler.sync(this),t=this._input.LA(1)}}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}eventDefinition(){let t,r=new ne(this,this._ctx,this.state);this.enterRule(r,58,e.RULE_eventDefinition);try{this.enterOuterAlt(r,1),this.state=502,this.match(e.T__41),this.state=503,this.identifier(),this.state=504,this.eventParameterList(),this.state=506,this._errHandler.sync(this),t=this._input.LA(1),110===t&&(this.state=505,this.match(e.AnonymousKeyword)),this.state=508,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}enumValue(){let t=new ae(this,this._ctx,this.state);this.enterRule(t,60,e.RULE_enumValue);try{this.enterOuterAlt(t,1),this.state=510,this.identifier()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}enumDefinition(){let t,r=new oe(this,this._ctx,this.state);this.enterRule(r,62,e.RULE_enumDefinition);try{for(this.enterOuterAlt(r,1),this.state=512,this.match(e.T__42),this.state=513,this.identifier(),this.state=514,this.match(e.T__14),this.state=516,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&3230138369||130===t||131===t)&&(this.state=515,this.enumValue()),this.state=522,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=518,this.match(e.T__15),this.state=519,this.enumValue(),this.state=524,this._errHandler.sync(this),t=this._input.LA(1);this.state=525,this.match(e.T__16)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}parameterList(){let t,r=new ce(this,this._ctx,this.state);this.enterRule(r,64,e.RULE_parameterList);try{if(this.enterOuterAlt(r,1),this.state=527,this.match(e.T__22),this.state=536,this._errHandler.sync(this),t=this._input.LA(1),!(-32&t)&&1<<t&234897408||!(t-40&-32)&&1<<t-40&520098113||!(t-97&-32)&&1<<t-97&3230138493||130===t||131===t)for(this.state=528,this.parameter(),this.state=533,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=529,this.match(e.T__15),this.state=530,this.parameter(),this.state=535,this._errHandler.sync(this),t=this._input.LA(1);this.state=538,this.match(e.T__23)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}parameter(){let t,r=new le(this,this._ctx,this.state);this.enterRule(r,66,e.RULE_parameter);try{this.enterOuterAlt(r,1),this.state=540,this.typeName(0),this.state=542,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,50,this._ctx)&&(this.state=541,this.storageLocation()),this.state=545,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&3230138369||130===t||131===t)&&(this.state=544,this.identifier())}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}eventParameterList(){let t,r=new he(this,this._ctx,this.state);this.enterRule(r,68,e.RULE_eventParameterList);try{if(this.enterOuterAlt(r,1),this.state=547,this.match(e.T__22),this.state=556,this._errHandler.sync(this),t=this._input.LA(1),!(-32&t)&&1<<t&234897408||!(t-40&-32)&&1<<t-40&520098113||!(t-97&-32)&&1<<t-97&3230138493||130===t||131===t)for(this.state=548,this.eventParameter(),this.state=553,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=549,this.match(e.T__15),this.state=550,this.eventParameter(),this.state=555,this._errHandler.sync(this),t=this._input.LA(1);this.state=558,this.match(e.T__23)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}eventParameter(){let t,r=new ue(this,this._ctx,this.state);this.enterRule(r,70,e.RULE_eventParameter);try{this.enterOuterAlt(r,1),this.state=560,this.typeName(0),this.state=562,this._errHandler.sync(this),t=this._input.LA(1),118===t&&(this.state=561,this.match(e.IndexedKeyword)),this.state=565,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&3230138369||130===t||131===t)&&(this.state=564,this.identifier())}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}functionTypeParameterList(){let t,r=new de(this,this._ctx,this.state);this.enterRule(r,72,e.RULE_functionTypeParameterList);try{if(this.enterOuterAlt(r,1),this.state=567,this.match(e.T__22),this.state=576,this._errHandler.sync(this),t=this._input.LA(1),!(-32&t)&&1<<t&234897408||!(t-40&-32)&&1<<t-40&520098113||!(t-97&-32)&&1<<t-97&3230138493||130===t||131===t)for(this.state=568,this.functionTypeParameter(),this.state=573,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=569,this.match(e.T__15),this.state=570,this.functionTypeParameter(),this.state=575,this._errHandler.sync(this),t=this._input.LA(1);this.state=578,this.match(e.T__23)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}functionTypeParameter(){let t,r=new pe(this,this._ctx,this.state);this.enterRule(r,74,e.RULE_functionTypeParameter);try{this.enterOuterAlt(r,1),this.state=580,this.typeName(0),this.state=582,this._errHandler.sync(this),t=this._input.LA(1),!(t-50&-32)&&1<<t-50&7&&(this.state=581,this.storageLocation())}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}variableDeclaration(){let t=new me(this,this._ctx,this.state);this.enterRule(t,76,e.RULE_variableDeclaration);try{this.enterOuterAlt(t,1),this.state=584,this.typeName(0),this.state=586,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,59,this._ctx)&&(this.state=585,this.storageLocation()),this.state=588,this.identifier()}catch(e){if(!(e instanceof T))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 r,s=this._ctx,i=this.state,n=new ye(this,this._ctx,i),a=n;this.enterRecursionRule(n,78,e.RULE_typeName,t);try{let t;switch(this.enterOuterAlt(n,1),this.state=597,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,60,this._ctx)){case 1:this.state=591,this.elementaryTypeName();break;case 2:this.state=592,this.userDefinedTypeName();break;case 3:this.state=593,this.mapping();break;case 4:this.state=594,this.functionTypeName();break;case 5:this.state=595,this.match(e.T__45),this.state=596,this.match(e.PayableKeyword)}for(this._ctx.stop=this._input.LT(-1),this.state=607,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,62,this._ctx);2!==t&&t!==l.INVALID_ALT_NUMBER;){if(1===t){if(null!=this._parseListeners&&this.triggerExitRuleEvent(),a=n,n=new ye(this,s,i),this.pushNewRecursionContext(n,78,e.RULE_typeName),this.state=599,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=600,this.match(e.T__43),this.state=602,this._errHandler.sync(this),r=this._input.LA(1),(!(r-6&-32)&&1<<r-6&205127937||!(r-40&-32)&&1<<r-40&4278194513||!(r-73&-32)&&1<<r-73&4244635651||!(r-105&-32)&&1<<r-105&248547339)&&(this.state=601,this.expression(0)),this.state=604,this.match(e.T__44)}this.state=609,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,62,this._ctx)}}catch(e){if(!(e instanceof T))throw e;n.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.unrollRecursionContexts(s)}return n}userDefinedTypeName(){let t=new fe(this,this._ctx,this.state);this.enterRule(t,80,e.RULE_userDefinedTypeName);try{let r;for(this.enterOuterAlt(t,1),this.state=610,this.identifier(),this.state=615,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,63,this._ctx);2!==r&&r!==l.INVALID_ALT_NUMBER;)1===r&&(this.state=611,this.match(e.T__46),this.state=612,this.identifier()),this.state=617,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,63,this._ctx)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mappingKey(){let t=new ge(this,this._ctx,this.state);this.enterRule(t,82,e.RULE_mappingKey);try{switch(this.state=620,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,64,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=618,this.elementaryTypeName();break;case 2:this.enterOuterAlt(t,2),this.state=619,this.userDefinedTypeName()}}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mapping(){let t,r=new we(this,this._ctx,this.state);this.enterRule(r,84,e.RULE_mapping);try{this.enterOuterAlt(r,1),this.state=622,this.match(e.T__47),this.state=623,this.match(e.T__22),this.state=624,this.mappingKey(),this.state=626,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&3230138369||130===t||131===t)&&(this.state=625,this.mappingKeyName()),this.state=628,this.match(e.T__48),this.state=629,this.typeName(0),this.state=631,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&3230138369||130===t||131===t)&&(this.state=630,this.mappingValueName()),this.state=633,this.match(e.T__23)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}mappingKeyName(){let t=new xe(this,this._ctx,this.state);this.enterRule(t,86,e.RULE_mappingKeyName);try{this.enterOuterAlt(t,1),this.state=635,this.identifier()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}mappingValueName(){let t=new ve(this,this._ctx,this.state);this.enterRule(t,88,e.RULE_mappingValueName);try{this.enterOuterAlt(t,1),this.state=637,this.identifier()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}functionTypeName(){let t=new be(this,this._ctx,this.state);this.enterRule(t,90,e.RULE_functionTypeName);try{let r;for(this.enterOuterAlt(t,1),this.state=639,this.match(e.T__39),this.state=640,this.functionTypeParameterList(),this.state=646,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,68,this._ctx);2!==r&&r!==l.INVALID_ALT_NUMBER;){if(1===r)switch(this.state=644,this._errHandler.sync(this),this._input.LA(1)){case 119:this.state=641,this.match(e.InternalKeyword);break;case 117:this.state=642,this.match(e.ExternalKeyword);break;case 112:case 120:case 124:case 126:this.state=643,this.stateMutability();break;default:throw new w(this)}this.state=648,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,68,this._ctx)}this.state=651,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,69,this._ctx)&&(this.state=649,this.match(e.T__40),this.state=650,this.functionTypeParameterList())}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}storageLocation(){let t,r=new _e(this,this._ctx,this.state);this.enterRule(r,92,e.RULE_storageLocation);try{this.enterOuterAlt(r,1),this.state=653,t=this._input.LA(1),t-50&-32||!(1<<t-50&7)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}stateMutability(){let t,r=new Ee(this,this._ctx,this.state);this.enterRule(r,94,e.RULE_stateMutability);try{this.enterOuterAlt(r,1),this.state=655,t=this._input.LA(1),t-112&-32||!(1<<t-112&20737)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume())}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}block(){let t,r=new Te(this,this._ctx,this.state);this.enterRule(r,96,e.RULE_block);try{for(this.enterOuterAlt(r,1),this.state=657,this.match(e.T__14),this.state=661,this._errHandler.sync(this),t=this._input.LA(1);!(t-6&-32)&&1<<t-6&213517057||!(t-40&-32)&&1<<t-40&4294881617||!(t-73&-32)&&1<<t-73&4244635651||!(t-105&-32)&&1<<t-105&248548427;)this.state=658,this.statement(),this.state=663,this._errHandler.sync(this),t=this._input.LA(1);this.state=664,this.match(e.T__16)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}statement(){let t=new Se(this,this._ctx,this.state);this.enterRule(t,98,e.RULE_statement);try{switch(this.state=681,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,71,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=666,this.ifStatement();break;case 2:this.enterOuterAlt(t,2),this.state=667,this.tryStatement();break;case 3:this.enterOuterAlt(t,3),this.state=668,this.whileStatement();break;case 4:this.enterOuterAlt(t,4),this.state=669,this.forStatement();break;case 5:this.enterOuterAlt(t,5),this.state=670,this.block();break;case 6:this.enterOuterAlt(t,6),this.state=671,this.inlineAssemblyStatement();break;case 7:this.enterOuterAlt(t,7),this.state=672,this.doWhileStatement();break;case 8:this.enterOuterAlt(t,8),this.state=673,this.continueStatement();break;case 9:this.enterOuterAlt(t,9),this.state=674,this.breakStatement();break;case 10:this.enterOuterAlt(t,10),this.state=675,this.returnStatement();break;case 11:this.enterOuterAlt(t,11),this.state=676,this.throwStatement();break;case 12:this.enterOuterAlt(t,12),this.state=677,this.emitStatement();break;case 13:this.enterOuterAlt(t,13),this.state=678,this.simpleStatement();break;case 14:this.enterOuterAlt(t,14),this.state=679,this.uncheckedStatement();break;case 15:this.enterOuterAlt(t,15),this.state=680,this.revertStatement()}}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expressionStatement(){let t=new ke(this,this._ctx,this.state);this.enterRule(t,100,e.RULE_expressionStatement);try{this.enterOuterAlt(t,1),this.state=683,this.expression(0),this.state=684,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}ifStatement(){let t=new Re(this,this._ctx,this.state);this.enterRule(t,102,e.RULE_ifStatement);try{this.enterOuterAlt(t,1),this.state=686,this.match(e.T__52),this.state=687,this.match(e.T__22),this.state=688,this.expression(0),this.state=689,this.match(e.T__23),this.state=690,this.statement(),this.state=693,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,72,this._ctx)&&(this.state=691,this.match(e.T__53),this.state=692,this.statement())}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}tryStatement(){let t,r=new Ae(this,this._ctx,this.state);this.enterRule(r,104,e.RULE_tryStatement);try{this.enterOuterAlt(r,1),this.state=695,this.match(e.T__54),this.state=696,this.expression(0),this.state=698,this._errHandler.sync(this),t=this._input.LA(1),41===t&&(this.state=697,this.returnParameters()),this.state=700,this.block(),this.state=702,this._errHandler.sync(this),t=this._input.LA(1);do{this.state=701,this.catchClause(),this.state=704,this._errHandler.sync(this),t=this._input.LA(1)}while(56===t)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}catchClause(){let t,r=new Ce(this,this._ctx,this.state);this.enterRule(r,106,e.RULE_catchClause);try{this.enterOuterAlt(r,1),this.state=706,this.match(e.T__55),this.state=711,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&243286016||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&3230138369||130===t||131===t)&&(this.state=708,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&3230138369||130===t||131===t)&&(this.state=707,this.identifier()),this.state=710,this.parameterList()),this.state=713,this.block()}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}whileStatement(){let t=new Le(this,this._ctx,this.state);this.enterRule(t,108,e.RULE_whileStatement);try{this.enterOuterAlt(t,1),this.state=715,this.match(e.T__56),this.state=716,this.match(e.T__22),this.state=717,this.expression(0),this.state=718,this.match(e.T__23),this.state=719,this.statement()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}simpleStatement(){let t=new Ke(this,this._ctx,this.state);this.enterRule(t,110,e.RULE_simpleStatement);try{switch(this.enterOuterAlt(t,1),this.state=723,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,77,this._ctx)){case 1:this.state=721,this.variableDeclarationStatement();break;case 2:this.state=722,this.expressionStatement()}}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}uncheckedStatement(){let t=new Ie(this,this._ctx,this.state);this.enterRule(t,112,e.RULE_uncheckedStatement);try{this.enterOuterAlt(t,1),this.state=725,this.match(e.T__57),this.state=726,this.block()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}forStatement(){let t,r=new Ne(this,this._ctx,this.state);this.enterRule(r,114,e.RULE_forStatement);try{switch(this.enterOuterAlt(r,1),this.state=728,this.match(e.T__28),this.state=729,this.match(e.T__22),this.state=732,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.state=730,this.simpleStatement();break;case 2:this.state=731,this.match(e.T__1);break;default:throw new w(this)}switch(this.state=736,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.state=734,this.expressionStatement();break;case 2:this.state=735,this.match(e.T__1);break;default:throw new w(this)}this.state=739,this._errHandler.sync(this),t=this._input.LA(1),(!(t-6&-32)&&1<<t-6&205127937||!(t-40&-32)&&1<<t-40&4278194513||!(t-73&-32)&&1<<t-73&4244635651||!(t-105&-32)&&1<<t-105&248547339)&&(this.state=738,this.expression(0)),this.state=741,this.match(e.T__23),this.state=742,this.statement()}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}inlineAssemblyStatement(){let t,r=new Oe(this,this._ctx,this.state);this.enterRule(r,116,e.RULE_inlineAssemblyStatement);try{this.enterOuterAlt(r,1),this.state=744,this.match(e.T__58),this.state=746,this._errHandler.sync(this),t=this._input.LA(1),132===t&&(this.state=745,this.match(e.StringLiteralFragment)),this.state=752,this._errHandler.sync(this),t=this._input.LA(1),23===t&&(this.state=748,this.match(e.T__22),this.state=749,this.inlineAssemblyStatementFlag(),this.state=750,this.match(e.T__23)),this.state=754,this.assemblyBlock()}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}inlineAssemblyStatementFlag(){let t=new De(this,this._ctx,this.state);this.enterRule(t,118,e.RULE_inlineAssemblyStatementFlag);try{this.enterOuterAlt(t,1),this.state=756,this.stringLiteral()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}doWhileStatement(){let t=new Pe(this,this._ctx,this.state);this.enterRule(t,120,e.RULE_doWhileStatement);try{this.enterOuterAlt(t,1),this.state=758,this.match(e.T__59),this.state=759,this.statement(),this.state=760,this.match(e.T__56),this.state=761,this.match(e.T__22),this.state=762,this.expression(0),this.state=763,this.match(e.T__23),this.state=764,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}continueStatement(){let t=new qe(this,this._ctx,this.state);this.enterRule(t,122,e.RULE_continueStatement);try{this.enterOuterAlt(t,1),this.state=766,this.match(e.ContinueKeyword),this.state=767,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}breakStatement(){let t=new Me(this,this._ctx,this.state);this.enterRule(t,124,e.RULE_breakStatement);try{this.enterOuterAlt(t,1),this.state=769,this.match(e.BreakKeyword),this.state=770,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}returnStatement(){let t,r=new Fe(this,this._ctx,this.state);this.enterRule(r,126,e.RULE_returnStatement);try{this.enterOuterAlt(r,1),this.state=772,this.match(e.T__60),this.state=774,this._errHandler.sync(this),t=this._input.LA(1),(!(t-6&-32)&&1<<t-6&205127937||!(t-40&-32)&&1<<t-40&4278194513||!(t-73&-32)&&1<<t-73&4244635651||!(t-105&-32)&&1<<t-105&248547339)&&(this.state=773,this.expression(0)),this.state=776,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}throwStatement(){let t=new Ue(this,this._ctx,this.state);this.enterRule(t,128,e.RULE_throwStatement);try{this.enterOuterAlt(t,1),this.state=778,this.match(e.T__61),this.state=779,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}emitStatement(){let t=new Ye(this,this._ctx,this.state);this.enterRule(t,130,e.RULE_emitStatement);try{this.enterOuterAlt(t,1),this.state=781,this.match(e.T__62),this.state=782,this.functionCall(),this.state=783,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}revertStatement(){let t=new Ve(this,this._ctx,this.state);this.enterRule(t,132,e.RULE_revertStatement);try{this.enterOuterAlt(t,1),this.state=785,this.match(e.T__63),this.state=786,this.functionCall(),this.state=787,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}variableDeclarationStatement(){let t,r=new je(this,this._ctx,this.state);this.enterRule(r,134,e.RULE_variableDeclarationStatement);try{switch(this.enterOuterAlt(r,1),this.state=796,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,84,this._ctx)){case 1:this.state=789,this.match(e.T__64),this.state=790,this.identifierList();break;case 2:this.state=791,this.variableDeclaration();break;case 3:this.state=792,this.match(e.T__22),this.state=793,this.variableDeclarationList(),this.state=794,this.match(e.T__23)}this.state=800,this._errHandler.sync(this),t=this._input.LA(1),11===t&&(this.state=798,this.match(e.T__10),this.state=799,this.expression(0)),this.state=802,this.match(e.T__1)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}variableDeclarationList(){let t,r=new Be(this,this._ctx,this.state);this.enterRule(r,136,e.RULE_variableDeclarationList);try{for(this.enterOuterAlt(r,1),this.state=805,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-40&-32)&&1<<t-40&520098113||!(t-97&-32)&&1<<t-97&3230138493||130===t||131===t)&&(this.state=804,this.variableDeclaration()),this.state=813,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=807,this.match(e.T__15),this.state=809,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-40&-32)&&1<<t-40&520098113||!(t-97&-32)&&1<<t-97&3230138493||130===t||131===t)&&(this.state=808,this.variableDeclaration()),this.state=815,this._errHandler.sync(this),t=this._input.LA(1)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}identifierList(){let t,r=new He(this,this._ctx,this.state);this.enterRule(r,138,e.RULE_identifierList);try{let s;for(this.enterOuterAlt(r,1),this.state=816,this.match(e.T__22),this.state=823,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,90,this._ctx);2!==s&&s!==l.INVALID_ALT_NUMBER;)1===s&&(this.state=818,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&3230138369||130===t||131===t)&&(this.state=817,this.identifier()),this.state=820,this.match(e.T__15)),this.state=825,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,90,this._ctx);this.state=827,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&3230138369||130===t||131===t)&&(this.state=826,this.identifier()),this.state=829,this.match(e.T__23)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}elementaryTypeName(){let t,r=new $e(this,this._ctx,this.state);this.enterRule(r,140,e.RULE_elementaryTypeName);try{this.enterOuterAlt(r,1),this.state=831,t=this._input.LA(1),!(t-46&-32)&&1<<t-46&7864321||!(t-99&-32)&&1<<t-99&31?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}expression(t){void 0===t&&(t=0);let r,s=this._ctx,i=this.state,n=new Ge(this,this._ctx,i),a=n,o=142;this.enterRecursionRule(n,142,e.RULE_expression,t);try{let t;switch(this.enterOuterAlt(n,1),this.state=851,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,92,this._ctx)){case 1:this.state=834,this.match(e.T__70),this.state=835,this.typeName(0);break;case 2:this.state=836,this.match(e.T__22),this.state=837,this.expression(0),this.state=838,this.match(e.T__23);break;case 3:this.state=840,r=this._input.LA(1),69!==r&&70!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=841,this.expression(19);break;case 4:this.state=842,r=this._input.LA(1),32!==r&&33!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=843,this.expression(18);break;case 5:this.state=844,this.match(e.T__72),this.state=845,this.expression(17);break;case 6:this.state=846,this.match(e.T__73),this.state=847,this.expression(16);break;case 7:this.state=848,this.match(e.T__5),this.state=849,this.expression(15);break;case 8:this.state=850,this.primaryExpression()}for(this._ctx.stop=this._input.LT(-1),this.state=927,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,96,this._ctx);2!==t&&t!==l.INVALID_ALT_NUMBER;){if(1===t)switch(null!=this._parseListeners&&this.triggerExitRuleEvent(),a=n,this.state=925,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,95,this._ctx)){case 1:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=853,!this.precpred(this._ctx,14))throw this.createFailedPredicateException("this.precpred(this._ctx, 14)");this.state=854,this.match(e.T__74),this.state=855,this.expression(14);break;case 2:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=856,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=857,r=this._input.LA(1),3!==r&&34!==r&&35!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=858,this.expression(14);break;case 3:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=859,!this.precpred(this._ctx,12))throw this.createFailedPredicateException("this.precpred(this._ctx, 12)");this.state=860,r=this._input.LA(1),32!==r&&33!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=861,this.expression(13);break;case 4:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=862,!this.precpred(this._ctx,11))throw this.createFailedPredicateException("this.precpred(this._ctx, 11)");this.state=863,r=this._input.LA(1),76!==r&&77!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=864,this.expression(12);break;case 5:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=865,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=866,this.match(e.T__30),this.state=867,this.expression(11);break;case 6:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=868,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=869,this.match(e.T__4),this.state=870,this.expression(10);break;case 7:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=871,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=872,this.match(e.T__29),this.state=873,this.expression(9);break;case 8:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=874,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=875,r=this._input.LA(1),-32&r||!(1<<r&1920)?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=876,this.expression(8);break;case 9:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=877,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=878,r=this._input.LA(1),36!==r&&37!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=879,this.expression(7);break;case 10:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=880,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=881,this.match(e.T__77),this.state=882,this.expression(6);break;case 11:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=883,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=884,this.match(e.T__3),this.state=885,this.expression(5);break;case 12:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=886,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=887,this.match(e.T__78),this.state=888,this.expression(0),this.state=889,this.match(e.T__71),this.state=890,this.expression(3);break;case 13:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=892,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=893,r=this._input.LA(1),11===r||!(r-80&-32)&&1<<r-80&1023?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=894,this.expression(3);break;case 14:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=895,!this.precpred(this._ctx,27))throw this.createFailedPredicateException("this.precpred(this._ctx, 27)");this.state=896,r=this._input.LA(1),69!==r&&70!==r?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume());break;case 15:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=897,!this.precpred(this._ctx,25))throw this.createFailedPredicateException("this.precpred(this._ctx, 25)");this.state=898,this.match(e.T__43),this.state=899,this.expression(0),this.state=900,this.match(e.T__44);break;case 16:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=902,!this.precpred(this._ctx,24))throw this.createFailedPredicateException("this.precpred(this._ctx, 24)");this.state=903,this.match(e.T__43),this.state=905,this._errHandler.sync(this),r=this._input.LA(1),(!(r-6&-32)&&1<<r-6&205127937||!(r-40&-32)&&1<<r-40&4278194513||!(r-73&-32)&&1<<r-73&4244635651||!(r-105&-32)&&1<<r-105&248547339)&&(this.state=904,this.expression(0)),this.state=907,this.match(e.T__71),this.state=909,this._errHandler.sync(this),r=this._input.LA(1),(!(r-6&-32)&&1<<r-6&205127937||!(r-40&-32)&&1<<r-40&4278194513||!(r-73&-32)&&1<<r-73&4244635651||!(r-105&-32)&&1<<r-105&248547339)&&(this.state=908,this.expression(0)),this.state=911,this.match(e.T__44);break;case 17:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=912,!this.precpred(this._ctx,23))throw this.createFailedPredicateException("this.precpred(this._ctx, 23)");this.state=913,this.match(e.T__46),this.state=914,this.identifier();break;case 18:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=915,!this.precpred(this._ctx,22))throw this.createFailedPredicateException("this.precpred(this._ctx, 22)");this.state=916,this.match(e.T__14),this.state=917,this.nameValueList(),this.state=918,this.match(e.T__16);break;case 19:if(n=new Ge(this,s,i),this.pushNewRecursionContext(n,o,e.RULE_expression),this.state=920,!this.precpred(this._ctx,21))throw this.createFailedPredicateException("this.precpred(this._ctx, 21)");this.state=921,this.match(e.T__22),this.state=922,this.functionCallArguments(),this.state=923,this.match(e.T__23)}this.state=929,this._errHandler.sync(this),t=this._interp.adaptivePredict(this._input,96,this._ctx)}}catch(e){if(!(e instanceof T))throw e;n.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.unrollRecursionContexts(s)}return n}primaryExpression(){let t=new ze(this,this._ctx,this.state);this.enterRule(t,144,e.RULE_primaryExpression);try{switch(this.state=939,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,97,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=930,this.match(e.BooleanLiteral);break;case 2:this.enterOuterAlt(t,2),this.state=931,this.numberLiteral();break;case 3:this.enterOuterAlt(t,3),this.state=932,this.hexLiteral();break;case 4:this.enterOuterAlt(t,4),this.state=933,this.stringLiteral();break;case 5:this.enterOuterAlt(t,5),this.state=934,this.identifier();break;case 6:this.enterOuterAlt(t,6),this.state=935,this.match(e.TypeKeyword);break;case 7:this.enterOuterAlt(t,7),this.state=936,this.match(e.PayableKeyword);break;case 8:this.enterOuterAlt(t,8),this.state=937,this.tupleExpression();break;case 9:this.enterOuterAlt(t,9),this.state=938,this.typeName(0)}}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}expressionList(){let t,r=new We(this,this._ctx,this.state);this.enterRule(r,146,e.RULE_expressionList);try{for(this.enterOuterAlt(r,1),this.state=941,this.expression(0),this.state=946,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=942,this.match(e.T__15),this.state=943,this.expression(0),this.state=948,this._errHandler.sync(this),t=this._input.LA(1)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}nameValueList(){let t,r=new Xe(this,this._ctx,this.state);this.enterRule(r,148,e.RULE_nameValueList);try{let s;for(this.enterOuterAlt(r,1),this.state=949,this.nameValue(),this.state=954,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,99,this._ctx);2!==s&&s!==l.INVALID_ALT_NUMBER;)1===s&&(this.state=950,this.match(e.T__15),this.state=951,this.nameValue()),this.state=956,this._errHandler.sync(this),s=this._interp.adaptivePredict(this._input,99,this._ctx);this.state=958,this._errHandler.sync(this),t=this._input.LA(1),16===t&&(this.state=957,this.match(e.T__15))}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}nameValue(){let t=new Qe(this,this._ctx,this.state);this.enterRule(t,150,e.RULE_nameValue);try{this.enterOuterAlt(t,1),this.state=960,this.identifier(),this.state=961,this.match(e.T__71),this.state=962,this.expression(0)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}functionCallArguments(){let t,r=new Je(this,this._ctx,this.state);this.enterRule(r,152,e.RULE_functionCallArguments);try{switch(this.state=972,this._errHandler.sync(this),this._input.LA(1)){case 15:this.enterOuterAlt(r,1),this.state=964,this.match(e.T__14),this.state=966,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&3230138369||130===t||131===t)&&(this.state=965,this.nameValueList()),this.state=968,this.match(e.T__16);break;case 6:case 14:case 23:case 24:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.enterOuterAlt(r,2),this.state=970,this._errHandler.sync(this),t=this._input.LA(1),(!(t-6&-32)&&1<<t-6&205127937||!(t-40&-32)&&1<<t-40&4278194513||!(t-73&-32)&&1<<t-73&4244635651||!(t-105&-32)&&1<<t-105&248547339)&&(this.state=969,this.expressionList());break;default:throw new w(this)}}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}functionCall(){let t=new Ze(this,this._ctx,this.state);this.enterRule(t,154,e.RULE_functionCall);try{this.enterOuterAlt(t,1),this.state=974,this.expression(0),this.state=975,this.match(e.T__22),this.state=976,this.functionCallArguments(),this.state=977,this.match(e.T__23)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyBlock(){let t,r=new et(this,this._ctx,this.state);this.enterRule(r,156,e.RULE_assemblyBlock);try{for(this.enterOuterAlt(r,1),this.state=979,this.match(e.T__14),this.state=983,this._errHandler.sync(this),t=this._input.LA(1);!(-32&t)&&1<<t&780189696||!(t-40&-32)&&1<<t-40&287322177||!(t-90&-32)&&1<<t-90&1176879241||!(t-127&-32)&&1<<t-127&59;)this.state=980,this.assemblyItem(),this.state=985,this._errHandler.sync(this),t=this._input.LA(1);this.state=986,this.match(e.T__16)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}assemblyItem(){let t=new tt(this,this._ctx,this.state);this.enterRule(t,158,e.RULE_assemblyItem);try{switch(this.state=1005,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,105,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=988,this.identifier();break;case 2:this.enterOuterAlt(t,2),this.state=989,this.assemblyBlock();break;case 3:this.enterOuterAlt(t,3),this.state=990,this.assemblyExpression();break;case 4:this.enterOuterAlt(t,4),this.state=991,this.assemblyLocalDefinition();break;case 5:this.enterOuterAlt(t,5),this.state=992,this.assemblyAssignment();break;case 6:this.enterOuterAlt(t,6),this.state=993,this.assemblyStackAssignment();break;case 7:this.enterOuterAlt(t,7),this.state=994,this.labelDefinition();break;case 8:this.enterOuterAlt(t,8),this.state=995,this.assemblySwitch();break;case 9:this.enterOuterAlt(t,9),this.state=996,this.assemblyFunctionDefinition();break;case 10:this.enterOuterAlt(t,10),this.state=997,this.assemblyFor();break;case 11:this.enterOuterAlt(t,11),this.state=998,this.assemblyIf();break;case 12:this.enterOuterAlt(t,12),this.state=999,this.match(e.BreakKeyword);break;case 13:this.enterOuterAlt(t,13),this.state=1e3,this.match(e.ContinueKeyword);break;case 14:this.enterOuterAlt(t,14),this.state=1001,this.match(e.LeaveKeyword);break;case 15:this.enterOuterAlt(t,15),this.state=1002,this.numberLiteral();break;case 16:this.enterOuterAlt(t,16),this.state=1003,this.stringLiteral();break;case 17:this.enterOuterAlt(t,17),this.state=1004,this.hexLiteral()}}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyExpression(){let t=new rt(this,this._ctx,this.state);this.enterRule(t,160,e.RULE_assemblyExpression);try{switch(this.state=1010,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,106,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=1007,this.assemblyCall();break;case 2:this.enterOuterAlt(t,2),this.state=1008,this.assemblyLiteral();break;case 3:this.enterOuterAlt(t,3),this.state=1009,this.assemblyMember()}}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyMember(){let t=new st(this,this._ctx,this.state);this.enterRule(t,162,e.RULE_assemblyMember);try{this.enterOuterAlt(t,1),this.state=1012,this.identifier(),this.state=1013,this.match(e.T__46),this.state=1014,this.identifier()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyCall(){let t,r=new it(this,this._ctx,this.state);this.enterRule(r,164,e.RULE_assemblyCall);try{switch(this.enterOuterAlt(r,1),this.state=1020,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,107,this._ctx)){case 1:this.state=1016,this.match(e.T__60);break;case 2:this.state=1017,this.match(e.T__45);break;case 3:this.state=1018,this.match(e.T__67);break;case 4:this.state=1019,this.identifier()}if(this.state=1034,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,110,this._ctx)){for(this.state=1022,this.match(e.T__22),this.state=1024,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&4489281||!(t-97&-32)&&1<<t-97&3230141313||!(t-130&-32)&&1<<t-130&7)&&(this.state=1023,this.assemblyExpression()),this.state=1030,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1026,this.match(e.T__15),this.state=1027,this.assemblyExpression(),this.state=1032,this._errHandler.sync(this),t=this._input.LA(1);this.state=1033,this.match(e.T__23)}}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}assemblyLocalDefinition(){let t,r=new nt(this,this._ctx,this.state);this.enterRule(r,166,e.RULE_assemblyLocalDefinition);try{this.enterOuterAlt(r,1),this.state=1036,this.match(e.T__89),this.state=1037,this.assemblyIdentifierOrList(),this.state=1040,this._errHandler.sync(this),t=this._input.LA(1),91===t&&(this.state=1038,this.match(e.T__90),this.state=1039,this.assemblyExpression())}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}assemblyAssignment(){let t=new at(this,this._ctx,this.state);this.enterRule(t,168,e.RULE_assemblyAssignment);try{this.enterOuterAlt(t,1),this.state=1042,this.assemblyIdentifierOrList(),this.state=1043,this.match(e.T__90),this.state=1044,this.assemblyExpression()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIdentifierOrList(){let t=new ot(this,this._ctx,this.state);this.enterRule(t,170,e.RULE_assemblyIdentifierOrList);try{switch(this.state=1053,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,112,this._ctx)){case 1:this.enterOuterAlt(t,1),this.state=1046,this.identifier();break;case 2:this.enterOuterAlt(t,2),this.state=1047,this.assemblyMember();break;case 3:this.enterOuterAlt(t,3),this.state=1048,this.assemblyIdentifierList();break;case 4:this.enterOuterAlt(t,4),this.state=1049,this.match(e.T__22),this.state=1050,this.assemblyIdentifierList(),this.state=1051,this.match(e.T__23)}}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIdentifierList(){let t,r=new ct(this,this._ctx,this.state);this.enterRule(r,172,e.RULE_assemblyIdentifierList);try{for(this.enterOuterAlt(r,1),this.state=1055,this.identifier(),this.state=1060,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1056,this.match(e.T__15),this.state=1057,this.identifier(),this.state=1062,this._errHandler.sync(this),t=this._input.LA(1)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}assemblyStackAssignment(){let t=new lt(this,this._ctx,this.state);this.enterRule(t,174,e.RULE_assemblyStackAssignment);try{this.enterOuterAlt(t,1),this.state=1063,this.assemblyExpression(),this.state=1064,this.match(e.T__91),this.state=1065,this.identifier()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}labelDefinition(){let t=new ht(this,this._ctx,this.state);this.enterRule(t,176,e.RULE_labelDefinition);try{this.enterOuterAlt(t,1),this.state=1067,this.identifier(),this.state=1068,this.match(e.T__71)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblySwitch(){let t,r=new ut(this,this._ctx,this.state);this.enterRule(r,178,e.RULE_assemblySwitch);try{for(this.enterOuterAlt(r,1),this.state=1070,this.match(e.T__92),this.state=1071,this.assemblyExpression(),this.state=1075,this._errHandler.sync(this),t=this._input.LA(1);94===t||95===t;)this.state=1072,this.assemblyCase(),this.state=1077,this._errHandler.sync(this),t=this._input.LA(1)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}assemblyCase(){let t=new dt(this,this._ctx,this.state);this.enterRule(t,180,e.RULE_assemblyCase);try{switch(this.state=1084,this._errHandler.sync(this),this._input.LA(1)){case 94:this.enterOuterAlt(t,1),this.state=1078,this.match(e.T__93),this.state=1079,this.assemblyLiteral(),this.state=1080,this.assemblyBlock();break;case 95:this.enterOuterAlt(t,2),this.state=1082,this.match(e.T__94),this.state=1083,this.assemblyBlock();break;default:throw new w(this)}}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyFunctionDefinition(){let t,r=new pt(this,this._ctx,this.state);this.enterRule(r,182,e.RULE_assemblyFunctionDefinition);try{this.enterOuterAlt(r,1),this.state=1086,this.match(e.T__39),this.state=1087,this.identifier(),this.state=1088,this.match(e.T__22),this.state=1090,this._errHandler.sync(this),t=this._input.LA(1),(!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&3230138369||130===t||131===t)&&(this.state=1089,this.assemblyIdentifierList()),this.state=1092,this.match(e.T__23),this.state=1094,this._errHandler.sync(this),t=this._input.LA(1),96===t&&(this.state=1093,this.assemblyFunctionReturns()),this.state=1096,this.assemblyBlock()}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}assemblyFunctionReturns(){let t=new mt(this,this._ctx,this.state);this.enterRule(t,184,e.RULE_assemblyFunctionReturns);try{this.enterOuterAlt(t,1),this.state=1098,this.match(e.T__95),this.state=1099,this.assemblyIdentifierList()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyFor(){let t=new yt(this,this._ctx,this.state);this.enterRule(t,186,e.RULE_assemblyFor);try{switch(this.enterOuterAlt(t,1),this.state=1101,this.match(e.T__28),this.state=1104,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1102,this.assemblyBlock();break;case 14:case 25:case 26:case 27:case 46:case 52:case 61:case 64:case 68:case 97:case 104:case 105:case 106:case 108:case 116:case 120:case 127:case 128:case 130:case 131:case 132:this.state=1103,this.assemblyExpression();break;default:throw new w(this)}switch(this.state=1106,this.assemblyExpression(),this.state=1109,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1107,this.assemblyBlock();break;case 14:case 25:case 26:case 27:case 46:case 52:case 61:case 64:case 68:case 97:case 104:case 105:case 106:case 108:case 116:case 120:case 127:case 128:case 130:case 131:case 132:this.state=1108,this.assemblyExpression();break;default:throw new w(this)}this.state=1111,this.assemblyBlock()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyIf(){let t=new ft(this,this._ctx,this.state);this.enterRule(t,188,e.RULE_assemblyIf);try{this.enterOuterAlt(t,1),this.state=1113,this.match(e.T__52),this.state=1114,this.assemblyExpression(),this.state=1115,this.assemblyBlock()}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}assemblyLiteral(){let t=new gt(this,this._ctx,this.state);this.enterRule(t,190,e.RULE_assemblyLiteral);try{switch(this.state=1122,this._errHandler.sync(this),this._input.LA(1)){case 132:this.enterOuterAlt(t,1),this.state=1117,this.stringLiteral();break;case 105:this.enterOuterAlt(t,2),this.state=1118,this.match(e.DecimalNumber);break;case 106:this.enterOuterAlt(t,3),this.state=1119,this.match(e.HexNumber);break;case 108:this.enterOuterAlt(t,4),this.state=1120,this.hexLiteral();break;case 104:this.enterOuterAlt(t,5),this.state=1121,this.match(e.BooleanLiteral);break;default:throw new w(this)}}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}tupleExpression(){let t,r=new wt(this,this._ctx,this.state);this.enterRule(r,192,e.RULE_tupleExpression);try{switch(this.state=1150,this._errHandler.sync(this),this._input.LA(1)){case 23:for(this.enterOuterAlt(r,1),this.state=1124,this.match(e.T__22),this.state=1126,this._errHandler.sync(this),t=this._input.LA(1),(!(t-6&-32)&&1<<t-6&205127937||!(t-40&-32)&&1<<t-40&4278194513||!(t-73&-32)&&1<<t-73&4244635651||!(t-105&-32)&&1<<t-105&248547339)&&(this.state=1125,this.expression(0)),this.state=1134,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1128,this.match(e.T__15),this.state=1130,this._errHandler.sync(this),t=this._input.LA(1),(!(t-6&-32)&&1<<t-6&205127937||!(t-40&-32)&&1<<t-40&4278194513||!(t-73&-32)&&1<<t-73&4244635651||!(t-105&-32)&&1<<t-105&248547339)&&(this.state=1129,this.expression(0)),this.state=1136,this._errHandler.sync(this),t=this._input.LA(1);this.state=1137,this.match(e.T__23);break;case 44:if(this.enterOuterAlt(r,2),this.state=1138,this.match(e.T__43),this.state=1147,this._errHandler.sync(this),t=this._input.LA(1),!(t-6&-32)&&1<<t-6&205127937||!(t-40&-32)&&1<<t-40&4278194513||!(t-73&-32)&&1<<t-73&4244635651||!(t-105&-32)&&1<<t-105&248547339)for(this.state=1139,this.expression(0),this.state=1144,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1140,this.match(e.T__15),this.state=1141,this.expression(0),this.state=1146,this._errHandler.sync(this),t=this._input.LA(1);this.state=1149,this.match(e.T__44);break;default:throw new w(this)}}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}numberLiteral(){let t,r=new xt(this,this._ctx,this.state);this.enterRule(r,194,e.RULE_numberLiteral);try{this.enterOuterAlt(r,1),this.state=1152,t=this._input.LA(1),105!==t&&106!==t?this._errHandler.recoverInline(this):(this._errHandler.reportMatch(this),this.consume()),this.state=1154,this._errHandler.sync(this),1===this._interp.adaptivePredict(this._input,127,this._ctx)&&(this.state=1153,this.match(e.NumberUnit))}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}identifier(){let t,r=new vt(this,this._ctx,this.state);this.enterRule(r,196,e.RULE_identifier);try{this.enterOuterAlt(r,1),this.state=1156,t=this._input.LA(1),!(-32&t)&&1<<t&234897408||!(t-46&-32)&&1<<t-46&262209||!(t-97&-32)&&1<<t-97&3230138369||130===t||131===t?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}hexLiteral(){let t=new bt(this,this._ctx,this.state);this.enterRule(t,198,e.RULE_hexLiteral);try{let r;this.enterOuterAlt(t,1),this.state=1159,this._errHandler.sync(this),r=1;do{if(1!==r)throw new w(this);this.state=1158,this.match(e.HexLiteralFragment),this.state=1161,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,128,this._ctx)}while(2!==r&&r!==l.INVALID_ALT_NUMBER)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}overrideSpecifier(){let t,r=new _t(this,this._ctx,this.state);this.enterRule(r,200,e.RULE_overrideSpecifier);try{if(this.enterOuterAlt(r,1),this.state=1163,this.match(e.T__97),this.state=1175,this._errHandler.sync(this),t=this._input.LA(1),23===t){for(this.state=1164,this.match(e.T__22),this.state=1165,this.userDefinedTypeName(),this.state=1170,this._errHandler.sync(this),t=this._input.LA(1);16===t;)this.state=1166,this.match(e.T__15),this.state=1167,this.userDefinedTypeName(),this.state=1172,this._errHandler.sync(this),t=this._input.LA(1);this.state=1173,this.match(e.T__23)}}catch(e){if(!(e instanceof T))throw e;r.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return r}stringLiteral(){let t=new Et(this,this._ctx,this.state);this.enterRule(t,202,e.RULE_stringLiteral);try{let r;this.enterOuterAlt(t,1),this.state=1178,this._errHandler.sync(this),r=1;do{if(1!==r)throw new w(this);this.state=1177,this.match(e.StringLiteralFragment),this.state=1180,this._errHandler.sync(this),r=this._interp.adaptivePredict(this._input,131,this._ctx)}while(2!==r&&r!==l.INVALID_ALT_NUMBER)}catch(e){if(!(e instanceof T))throw e;t.exception=e,this._errHandler.reportError(this,e),this._errHandler.recover(this,e)}finally{this.exitRule()}return t}sempred(e,t,r){switch(t){case 39:return this.typeName_sempred(e,r);case 71:return this.expression_sempred(e,r)}return!0}typeName_sempred(e,t){return 0!==t||this.precpred(this._ctx,3)}expression_sempred(e,t){switch(t){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 e.__ATN||(e.__ATN=(new h).deserialize(e._serializedATN)),e.__ATN}};A.T__0=1,A.T__1=2,A.T__2=3,A.T__3=4,A.T__4=5,A.T__5=6,A.T__6=7,A.T__7=8,A.T__8=9,A.T__9=10,A.T__10=11,A.T__11=12,A.T__12=13,A.T__13=14,A.T__14=15,A.T__15=16,A.T__16=17,A.T__17=18,A.T__18=19,A.T__19=20,A.T__20=21,A.T__21=22,A.T__22=23,A.T__23=24,A.T__24=25,A.T__25=26,A.T__26=27,A.T__27=28,A.T__28=29,A.T__29=30,A.T__30=31,A.T__31=32,A.T__32=33,A.T__33=34,A.T__34=35,A.T__35=36,A.T__36=37,A.T__37=38,A.T__38=39,A.T__39=40,A.T__40=41,A.T__41=42,A.T__42=43,A.T__43=44,A.T__44=45,A.T__45=46,A.T__46=47,A.T__47=48,A.T__48=49,A.T__49=50,A.T__50=51,A.T__51=52,A.T__52=53,A.T__53=54,A.T__54=55,A.T__55=56,A.T__56=57,A.T__57=58,A.T__58=59,A.T__59=60,A.T__60=61,A.T__61=62,A.T__62=63,A.T__63=64,A.T__64=65,A.T__65=66,A.T__66=67,A.T__67=68,A.T__68=69,A.T__69=70,A.T__70=71,A.T__71=72,A.T__72=73,A.T__73=74,A.T__74=75,A.T__75=76,A.T__76=77,A.T__77=78,A.T__78=79,A.T__79=80,A.T__80=81,A.T__81=82,A.T__82=83,A.T__83=84,A.T__84=85,A.T__85=86,A.T__86=87,A.T__87=88,A.T__88=89,A.T__89=90,A.T__90=91,A.T__91=92,A.T__92=93,A.T__93=94,A.T__94=95,A.T__95=96,A.T__96=97,A.T__97=98,A.Int=99,A.Uint=100,A.Byte=101,A.Fixed=102,A.Ufixed=103,A.BooleanLiteral=104,A.DecimalNumber=105,A.HexNumber=106,A.NumberUnit=107,A.HexLiteralFragment=108,A.ReservedKeyword=109,A.AnonymousKeyword=110,A.BreakKeyword=111,A.ConstantKeyword=112,A.TransientKeyword=113,A.ImmutableKeyword=114,A.ContinueKeyword=115,A.LeaveKeyword=116,A.ExternalKeyword=117,A.IndexedKeyword=118,A.InternalKeyword=119,A.PayableKeyword=120,A.PrivateKeyword=121,A.PublicKeyword=122,A.VirtualKeyword=123,A.PureKeyword=124,A.TypeKeyword=125,A.ViewKeyword=126,A.GlobalKeyword=127,A.ConstructorKeyword=128,A.FallbackKeyword=129,A.ReceiveKeyword=130,A.Identifier=131,A.StringLiteralFragment=132,A.VersionLiteral=133,A.WS=134,A.COMMENT=135,A.LINE_COMMENT=136,A.EOF=S.EOF,A.RULE_sourceUnit=0,A.RULE_pragmaDirective=1,A.RULE_pragmaName=2,A.RULE_pragmaValue=3,A.RULE_version=4,A.RULE_versionOperator=5,A.RULE_versionConstraint=6,A.RULE_importDeclaration=7,A.RULE_importDirective=8,A.RULE_importPath=9,A.RULE_contractDefinition=10,A.RULE_inheritanceSpecifier=11,A.RULE_customStorageLayout=12,A.RULE_contractPart=13,A.RULE_stateVariableDeclaration=14,A.RULE_fileLevelConstant=15,A.RULE_customErrorDefinition=16,A.RULE_typeDefinition=17,A.RULE_usingForDeclaration=18,A.RULE_usingForObject=19,A.RULE_usingForObjectDirective=20,A.RULE_userDefinableOperators=21,A.RULE_structDefinition=22,A.RULE_modifierDefinition=23,A.RULE_modifierInvocation=24,A.RULE_functionDefinition=25,A.RULE_functionDescriptor=26,A.RULE_returnParameters=27,A.RULE_modifierList=28,A.RULE_eventDefinition=29,A.RULE_enumValue=30,A.RULE_enumDefinition=31,A.RULE_parameterList=32,A.RULE_parameter=33,A.RULE_eventParameterList=34,A.RULE_eventParameter=35,A.RULE_functionTypeParameterList=36,A.RULE_functionTypeParameter=37,A.RULE_variableDeclaration=38,A.RULE_typeName=39,A.RULE_userDefinedTypeName=40,A.RULE_mappingKey=41,A.RULE_mapping=42,A.RULE_mappingKeyName=43,A.RULE_mappingValueName=44,A.RULE_functionTypeName=45,A.RULE_storageLocation=46,A.RULE_stateMutability=47,A.RULE_block=48,A.RULE_statement=49,A.RULE_expressionStatement=50,A.RULE_ifStatement=51,A.RULE_tryStatement=52,A.RULE_catchClause=53,A.RULE_whileStatement=54,A.RULE_simpleStatement=55,A.RULE_uncheckedStatement=56,A.RULE_forStatement=57,A.RULE_inlineAssemblyStatement=58,A.RULE_inlineAssemblyStatementFlag=59,A.RULE_doWhileStatement=60,A.RULE_continueStatement=61,A.RULE_breakStatement=62,A.RULE_returnStatement=63,A.RULE_throwStatement=64,A.RULE_emitStatement=65,A.RULE_revertStatement=66,A.RULE_variableDeclarationStatement=67,A.RULE_variableDeclarationList=68,A.RULE_identifierList=69,A.RULE_elementaryTypeName=70,A.RULE_expression=71,A.RULE_primaryExpression=72,A.RULE_expressionList=73,A.RULE_nameValueList=74,A.RULE_nameValue=75,A.RULE_functionCallArguments=76,A.RULE_functionCall=77,A.RULE_assemblyBlock=78,A.RULE_assemblyItem=79,A.RULE_assemblyExpression=80,A.RULE_assemblyMember=81,A.RULE_assemblyCall=82,A.RULE_assemblyLocalDefinition=83,A.RULE_assemblyAssignment=84,A.RULE_assemblyIdentifierOrList=85,A.RULE_assemblyIdentifierList=86,A.RULE_assemblyStackAssignment=87,A.RULE_labelDefinition=88,A.RULE_assemblySwitch=89,A.RULE_assemblyCase=90,A.RULE_assemblyFunctionDefinition=91,A.RULE_assemblyFunctionReturns=92,A.RULE_assemblyFor=93,A.RULE_assemblyIf=94,A.RULE_assemblyLiteral=95,A.RULE_tupleExpression=96,A.RULE_numberLiteral=97,A.RULE_identifier=98,A.RULE_hexLiteral=99,A.RULE_overrideSpecifier=100,A.RULE_stringLiteral=101,A.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'layout'","'at'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'transient'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],A.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],A.ruleNames=["sourceUnit","pragmaDirective","pragmaName","pragmaValue","version","versionOperator","versionConstraint","importDeclaration","importDirective","importPath","contractDefinition","inheritanceSpecifier","customStorageLayout","contractPart","stateVariableDeclaration","fileLevelConstant","customErrorDefinition","typeDefinition","usingForDeclaration","usingForObject","usingForObjectDirective","userDefinableOperators","structDefinition","modifierDefinition","modifierInvocation","functionDefinition","functionDescriptor","returnParameters","modifierList","eventDefinition","enumValue","enumDefinition","parameterList","parameter","eventParameterList","eventParameter","functionTypeParameterList","functionTypeParameter","variableDeclaration","typeName","userDefinedTypeName","mappingKey","mapping","mappingKeyName","mappingValueName","functionTypeName","storageLocation","stateMutability","block","statement","expressionStatement","ifStatement","tryStatement","catchClause","whileStatement","simpleStatement","uncheckedStatement","forStatement","inlineAssemblyStatement","inlineAssemblyStatementFlag","doWhileStatement","continueStatement","breakStatement","returnStatement","throwStatement","emitStatement","revertStatement","variableDeclarationStatement","variableDeclarationList","identifierList","elementaryTypeName","expression","primaryExpression","expressionList","nameValueList","nameValue","functionCallArguments","functionCall","assemblyBlock","assemblyItem","assemblyExpression","assemblyMember","assemblyCall","assemblyLocalDefinition","assemblyAssignment","assemblyIdentifierOrList","assemblyIdentifierList","assemblyStackAssignment","labelDefinition","assemblySwitch","assemblyCase","assemblyFunctionDefinition","assemblyFunctionReturns","assemblyFor","assemblyIf","assemblyLiteral","tupleExpression","numberLiteral","identifier","hexLiteral","overrideSpecifier","stringLiteral"],A._serializedATN=[4,1,136,1183,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,5,0,216,8,0,10,0,12,0,219,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,3,1,3,1,3,3,3,233,8,3,1,4,1,4,3,4,237,8,4,1,4,5,4,240,8,4,10,4,12,4,243,9,4,1,5,1,5,1,6,3,6,248,8,6,1,6,1,6,3,6,252,8,6,1,6,3,6,255,8,6,1,7,1,7,1,7,3,7,260,8,7,1,8,1,8,1,8,1,8,3,8,266,8,8,1,8,1,8,1,8,1,8,1,8,3,8,273,8,8,1,8,1,8,3,8,277,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,5,8,288,8,8,10,8,12,8,291,9,8,1,8,1,8,1,8,1,8,1,8,3,8,298,8,8,1,9,1,9,1,10,3,10,303,8,10,1,10,1,10,1,10,3,10,308,8,10,1,10,1,10,1,10,1,10,5,10,314,8,10,10,10,12,10,317,9,10,3,10,319,8,10,1,10,3,10,322,8,10,1,10,1,10,5,10,326,8,10,10,10,12,10,329,9,10,1,10,1,10,1,11,1,11,1,11,3,11,336,8,11,1,11,3,11,339,8,11,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,3,13,354,8,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,5,14,364,8,14,10,14,12,14,367,9,14,1,14,1,14,1,14,3,14,372,8,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,3,18,399,8,18,1,18,3,18,402,8,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,5,19,411,8,19,10,19,12,19,414,9,19,1,19,1,19,3,19,418,8,19,1,20,1,20,1,20,3,20,423,8,20,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,5,22,435,8,22,10,22,12,22,438,9,22,3,22,440,8,22,1,22,1,22,1,23,1,23,1,23,3,23,447,8,23,1,23,1,23,5,23,451,8,23,10,23,12,23,454,9,23,1,23,1,23,3,23,458,8,23,1,24,1,24,1,24,3,24,463,8,24,1,24,3,24,466,8,24,1,25,1,25,1,25,1,25,3,25,472,8,25,1,25,1,25,3,25,476,8,25,1,26,1,26,3,26,480,8,26,1,26,1,26,1,26,3,26,485,8,26,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,5,28,498,8,28,10,28,12,28,501,9,28,1,29,1,29,1,29,1,29,3,29,507,8,29,1,29,1,29,1,30,1,30,1,31,1,31,1,31,1,31,3,31,517,8,31,1,31,1,31,5,31,521,8,31,10,31,12,31,524,9,31,1,31,1,31,1,32,1,32,1,32,1,32,5,32,532,8,32,10,32,12,32,535,9,32,3,32,537,8,32,1,32,1,32,1,33,1,33,3,33,543,8,33,1,33,3,33,546,8,33,1,34,1,34,1,34,1,34,5,34,552,8,34,10,34,12,34,555,9,34,3,34,557,8,34,1,34,1,34,1,35,1,35,3,35,563,8,35,1,35,3,35,566,8,35,1,36,1,36,1,36,1,36,5,36,572,8,36,10,36,12,36,575,9,36,3,36,577,8,36,1,36,1,36,1,37,1,37,3,37,583,8,37,1,38,1,38,3,38,587,8,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,3,39,598,8,39,1,39,1,39,1,39,3,39,603,8,39,1,39,5,39,606,8,39,10,39,12,39,609,9,39,1,40,1,40,1,40,5,40,614,8,40,10,40,12,40,617,9,40,1,41,1,41,3,41,621,8,41,1,42,1,42,1,42,1,42,3,42,627,8,42,1,42,1,42,1,42,3,42,632,8,42,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,45,1,45,1,45,5,45,645,8,45,10,45,12,45,648,9,45,1,45,1,45,3,45,652,8,45,1,46,1,46,1,47,1,47,1,48,1,48,5,48,660,8,48,10,48,12,48,663,9,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,3,49,682,8,49,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,694,8,51,1,52,1,52,1,52,3,52,699,8,52,1,52,1,52,4,52,703,8,52,11,52,12,52,704,1,53,1,53,3,53,709,8,53,1,53,3,53,712,8,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,3,55,724,8,55,1,56,1,56,1,56,1,57,1,57,1,57,1,57,3,57,733,8,57,1,57,1,57,3,57,737,8,57,1,57,3,57,740,8,57,1,57,1,57,1,57,1,58,1,58,3,58,747,8,58,1,58,1,58,1,58,1,58,3,58,753,8,58,1,58,1,58,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,62,1,62,1,62,1,63,1,63,3,63,775,8,63,1,63,1,63,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,67,1,67,3,67,797,8,67,1,67,1,67,3,67,801,8,67,1,67,1,67,1,68,3,68,806,8,68,1,68,1,68,3,68,810,8,68,5,68,812,8,68,10,68,12,68,815,9,68,1,69,1,69,3,69,819,8,69,1,69,5,69,822,8,69,10,69,12,69,825,9,69,1,69,3,69,828,8,69,1,69,1,69,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,852,8,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,906,8,71,1,71,1,71,3,71,910,8,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,5,71,926,8,71,10,71,12,71,929,9,71,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,3,72,940,8,72,1,73,1,73,1,73,5,73,945,8,73,10,73,12,73,948,9,73,1,74,1,74,1,74,5,74,953,8,74,10,74,12,74,956,9,74,1,74,3,74,959,8,74,1,75,1,75,1,75,1,75,1,76,1,76,3,76,967,8,76,1,76,1,76,3,76,971,8,76,3,76,973,8,76,1,77,1,77,1,77,1,77,1,77,1,78,1,78,5,78,982,8,78,10,78,12,78,985,9,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,3,79,1006,8,79,1,80,1,80,1,80,3,80,1011,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,3,82,1021,8,82,1,82,1,82,3,82,1025,8,82,1,82,1,82,5,82,1029,8,82,10,82,12,82,1032,9,82,1,82,3,82,1035,8,82,1,83,1,83,1,83,1,83,3,83,1041,8,83,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,3,85,1054,8,85,1,86,1,86,1,86,5,86,1059,8,86,10,86,12,86,1062,9,86,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,89,1,89,1,89,5,89,1074,8,89,10,89,12,89,1077,9,89,1,90,1,90,1,90,1,90,1,90,1,90,3,90,1085,8,90,1,91,1,91,1,91,1,91,3,91,1091,8,91,1,91,1,91,3,91,1095,8,91,1,91,1,91,1,92,1,92,1,92,1,93,1,93,1,93,3,93,1105,8,93,1,93,1,93,1,93,3,93,1110,8,93,1,93,1,93,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,3,95,1123,8,95,1,96,1,96,3,96,1127,8,96,1,96,1,96,3,96,1131,8,96,5,96,1133,8,96,10,96,12,96,1136,9,96,1,96,1,96,1,96,1,96,1,96,5,96,1143,8,96,10,96,12,96,1146,9,96,3,96,1148,8,96,1,96,3,96,1151,8,96,1,97,1,97,3,97,1155,8,97,1,98,1,98,1,99,4,99,1160,8,99,11,99,12,99,1161,1,100,1,100,1,100,1,100,1,100,5,100,1169,8,100,10,100,12,100,1172,9,100,1,100,1,100,3,100,1176,8,100,1,101,4,101,1179,8,101,11,101,12,101,1180,1,101,0,2,78,142,102,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,0,15,1,0,5,11,1,0,19,21,3,0,3,3,5,10,30,37,1,0,50,52,4,0,112,112,120,120,124,124,126,126,3,0,46,46,65,68,99,103,1,0,69,70,1,0,32,33,2,0,3,3,34,35,1,0,76,77,1,0,7,10,1,0,36,37,2,0,11,11,80,89,1,0,105,106,10,0,14,14,25,27,46,46,52,52,64,64,97,97,116,116,120,120,127,128,130,131,1314,0,217,1,0,0,0,2,222,1,0,0,0,4,227,1,0,0,0,6,232,1,0,0,0,8,234,1,0,0,0,10,244,1,0,0,0,12,254,1,0,0,0,14,256,1,0,0,0,16,297,1,0,0,0,18,299,1,0,0,0,20,302,1,0,0,0,22,332,1,0,0,0,24,340,1,0,0,0,26,353,1,0,0,0,28,355,1,0,0,0,30,375,1,0,0,0,32,382,1,0,0,0,34,387,1,0,0,0,36,393,1,0,0,0,38,417,1,0,0,0,40,419,1,0,0,0,42,424,1,0,0,0,44,426,1,0,0,0,46,443,1,0,0,0,48,459,1,0,0,0,50,467,1,0,0,0,52,484,1,0,0,0,54,486,1,0,0,0,56,499,1,0,0,0,58,502,1,0,0,0,60,510,1,0,0,0,62,512,1,0,0,0,64,527,1,0,0,0,66,540,1,0,0,0,68,547,1,0,0,0,70,560,1,0,0,0,72,567,1,0,0,0,74,580,1,0,0,0,76,584,1,0,0,0,78,597,1,0,0,0,80,610,1,0,0,0,82,620,1,0,0,0,84,622,1,0,0,0,86,635,1,0,0,0,88,637,1,0,0,0,90,639,1,0,0,0,92,653,1,0,0,0,94,655,1,0,0,0,96,657,1,0,0,0,98,681,1,0,0,0,100,683,1,0,0,0,102,686,1,0,0,0,104,695,1,0,0,0,106,706,1,0,0,0,108,715,1,0,0,0,110,723,1,0,0,0,112,725,1,0,0,0,114,728,1,0,0,0,116,744,1,0,0,0,118,756,1,0,0,0,120,758,1,0,0,0,122,766,1,0,0,0,124,769,1,0,0,0,126,772,1,0,0,0,128,778,1,0,0,0,130,781,1,0,0,0,132,785,1,0,0,0,134,796,1,0,0,0,136,805,1,0,0,0,138,816,1,0,0,0,140,831,1,0,0,0,142,851,1,0,0,0,144,939,1,0,0,0,146,941,1,0,0,0,148,949,1,0,0,0,150,960,1,0,0,0,152,972,1,0,0,0,154,974,1,0,0,0,156,979,1,0,0,0,158,1005,1,0,0,0,160,1010,1,0,0,0,162,1012,1,0,0,0,164,1020,1,0,0,0,166,1036,1,0,0,0,168,1042,1,0,0,0,170,1053,1,0,0,0,172,1055,1,0,0,0,174,1063,1,0,0,0,176,1067,1,0,0,0,178,1070,1,0,0,0,180,1084,1,0,0,0,182,1086,1,0,0,0,184,1098,1,0,0,0,186,1101,1,0,0,0,188,1113,1,0,0,0,190,1122,1,0,0,0,192,1150,1,0,0,0,194,1152,1,0,0,0,196,1156,1,0,0,0,198,1159,1,0,0,0,200,1163,1,0,0,0,202,1178,1,0,0,0,204,216,3,2,1,0,205,216,3,16,8,0,206,216,3,20,10,0,207,216,3,62,31,0,208,216,3,58,29,0,209,216,3,44,22,0,210,216,3,50,25,0,211,216,3,30,15,0,212,216,3,32,16,0,213,216,3,34,17,0,214,216,3,36,18,0,215,204,1,0,0,0,215,205,1,0,0,0,215,206,1,0,0,0,215,207,1,0,0,0,215,208,1,0,0,0,215,209,1,0,0,0,215,210,1,0,0,0,215,211,1,0,0,0,215,212,1,0,0,0,215,213,1,0,0,0,215,214,1,0,0,0,216,219,1,0,0,0,217,215,1,0,0,0,217,218,1,0,0,0,218,220,1,0,0,0,219,217,1,0,0,0,220,221,5,0,0,1,221,1,1,0,0,0,222,223,5,1,0,0,223,224,3,4,2,0,224,225,3,6,3,0,225,226,5,2,0,0,226,3,1,0,0,0,227,228,3,196,98,0,228,5,1,0,0,0,229,233,5,3,0,0,230,233,3,8,4,0,231,233,3,142,71,0,232,229,1,0,0,0,232,230,1,0,0,0,232,231,1,0,0,0,233,7,1,0,0,0,234,241,3,12,6,0,235,237,5,4,0,0,236,235,1,0,0,0,236,237,1,0,0,0,237,238,1,0,0,0,238,240,3,12,6,0,239,236,1,0,0,0,240,243,1,0,0,0,241,239,1,0,0,0,241,242,1,0,0,0,242,9,1,0,0,0,243,241,1,0,0,0,244,245,7,0,0,0,245,11,1,0,0,0,246,248,3,10,5,0,247,246,1,0,0,0,247,248,1,0,0,0,248,249,1,0,0,0,249,255,5,133,0,0,250,252,3,10,5,0,251,250,1,0,0,0,251,252,1,0,0,0,252,253,1,0,0,0,253,255,5,105,0,0,254,247,1,0,0,0,254,251,1,0,0,0,255,13,1,0,0,0,256,259,3,196,98,0,257,258,5,12,0,0,258,260,3,196,98,0,259,257,1,0,0,0,259,260,1,0,0,0,260,15,1,0,0,0,261,262,5,13,0,0,262,265,3,18,9,0,263,264,5,12,0,0,264,266,3,196,98,0,265,263,1,0,0,0,265,266,1,0,0,0,266,267,1,0,0,0,267,268,5,2,0,0,268,298,1,0,0,0,269,272,5,13,0,0,270,273,5,3,0,0,271,273,3,196,98,0,272,270,1,0,0,0,272,271,1,0,0,0,273,276,1,0,0,0,274,275,5,12,0,0,275,277,3,196,98,0,276,274,1,0,0,0,276,277,1,0,0,0,277,278,1,0,0,0,278,279,5,14,0,0,279,280,3,18,9,0,280,281,5,2,0,0,281,298,1,0,0,0,282,283,5,13,0,0,283,284,5,15,0,0,284,289,3,14,7,0,285,286,5,16,0,0,286,288,3,14,7,0,287,285,1,0,0,0,288,291,1,0,0,0,289,287,1,0,0,0,289,290,1,0,0,0,290,292,1,0,0,0,291,289,1,0,0,0,292,293,5,17,0,0,293,294,5,14,0,0,294,295,3,18,9,0,295,296,5,2,0,0,296,298,1,0,0,0,297,261,1,0,0,0,297,269,1,0,0,0,297,282,1,0,0,0,298,17,1,0,0,0,299,300,5,132,0,0,300,19,1,0,0,0,301,303,5,18,0,0,302,301,1,0,0,0,302,303,1,0,0,0,303,304,1,0,0,0,304,305,7,1,0,0,305,307,3,196,98,0,306,308,3,24,12,0,307,306,1,0,0,0,307,308,1,0,0,0,308,318,1,0,0,0,309,310,5,22,0,0,310,315,3,22,11,0,311,312,5,16,0,0,312,314,3,22,11,0,313,311,1,0,0,0,314,317,1,0,0,0,315,313,1,0,0,0,315,316,1,0,0,0,316,319,1,0,0,0,317,315,1,0,0,0,318,309,1,0,0,0,318,319,1,0,0,0,319,321,1,0,0,0,320,322,3,24,12,0,321,320,1,0,0,0,321,322,1,0,0,0,322,323,1,0,0,0,323,327,5,15,0,0,324,326,3,26,13,0,325,324,1,0,0,0,326,329,1,0,0,0,327,325,1,0,0,0,327,328,1,0,0,0,328,330,1,0,0,0,329,327,1,0,0,0,330,331,5,17,0,0,331,21,1,0,0,0,332,338,3,80,40,0,333,335,5,23,0,0,334,336,3,146,73,0,335,334,1,0,0,0,335,336,1,0,0,0,336,337,1,0,0,0,337,339,5,24,0,0,338,333,1,0,0,0,338,339,1,0,0,0,339,23,1,0,0,0,340,341,5,25,0,0,341,342,5,26,0,0,342,343,3,142,71,0,343,25,1,0,0,0,344,354,3,28,14,0,345,354,3,36,18,0,346,354,3,44,22,0,347,354,3,46,23,0,348,354,3,50,25,0,349,354,3,58,29,0,350,354,3,62,31,0,351,354,3,32,16,0,352,354,3,34,17,0,353,344,1,0,0,0,353,345,1,0,0,0,353,346,1,0,0,0,353,347,1,0,0,0,353,348,1,0,0,0,353,349,1,0,0,0,353,350,1,0,0,0,353,351,1,0,0,0,353,352,1,0,0,0,354,27,1,0,0,0,355,365,3,78,39,0,356,364,5,122,0,0,357,364,5,119,0,0,358,364,5,121,0,0,359,364,5,112,0,0,360,364,5,113,0,0,361,364,5,114,0,0,362,364,3,200,100,0,363,356,1,0,0,0,363,357,1,0,0,0,363,358,1,0,0,0,363,359,1,0,0,0,363,360,1,0,0,0,363,361,1,0,0,0,363,362,1,0,0,0,364,367,1,0,0,0,365,363,1,0,0,0,365,366,1,0,0,0,366,368,1,0,0,0,367,365,1,0,0,0,368,371,3,196,98,0,369,370,5,11,0,0,370,372,3,142,71,0,371,369,1,0,0,0,371,372,1,0,0,0,372,373,1,0,0,0,373,374,5,2,0,0,374,29,1,0,0,0,375,376,3,78,39,0,376,377,5,112,0,0,377,378,3,196,98,0,378,379,5,11,0,0,379,380,3,142,71,0,380,381,5,2,0,0,381,31,1,0,0,0,382,383,5,27,0,0,383,384,3,196,98,0,384,385,3,64,32,0,385,386,5,2,0,0,386,33,1,0,0,0,387,388,5,125,0,0,388,389,3,196,98,0,389,390,5,22,0,0,390,391,3,140,70,0,391,392,5,2,0,0,392,35,1,0,0,0,393,394,5,28,0,0,394,395,3,38,19,0,395,398,5,29,0,0,396,399,5,3,0,0,397,399,3,78,39,0,398,396,1,0,0,0,398,397,1,0,0,0,399,401,1,0,0,0,400,402,5,127,0,0,401,400,1,0,0,0,401,402,1,0,0,0,402,403,1,0,0,0,403,404,5,2,0,0,404,37,1,0,0,0,405,418,3,80,40,0,406,407,5,15,0,0,407,412,3,40,20,0,408,409,5,16,0,0,409,411,3,40,20,0,410,408,1,0,0,0,411,414,1,0,0,0,412,410,1,0,0,0,412,413,1,0,0,0,413,415,1,0,0,0,414,412,1,0,0,0,415,416,5,17,0,0,416,418,1,0,0,0,417,405,1,0,0,0,417,406,1,0,0,0,418,39,1,0,0,0,419,422,3,80,40,0,420,421,5,12,0,0,421,423,3,42,21,0,422,420,1,0,0,0,422,423,1,0,0,0,423,41,1,0,0,0,424,425,7,2,0,0,425,43,1,0,0,0,426,427,5,38,0,0,427,428,3,196,98,0,428,439,5,15,0,0,429,430,3,76,38,0,430,436,5,2,0,0,431,432,3,76,38,0,432,433,5,2,0,0,433,435,1,0,0,0,434,431,1,0,0,0,435,438,1,0,0,0,436,434,1,0,0,0,436,437,1,0,0,0,437,440,1,0,0,0,438,436,1,0,0,0,439,429,1,0,0,0,439,440,1,0,0,0,440,441,1,0,0,0,441,442,5,17,0,0,442,45,1,0,0,0,443,444,5,39,0,0,444,446,3,196,98,0,445,447,3,64,32,0,446,445,1,0,0,0,446,447,1,0,0,0,447,452,1,0,0,0,448,451,5,123,0,0,449,451,3,200,100,0,450,448,1,0,0,0,450,449,1,0,0,0,451,454,1,0,0,0,452,450,1,0,0,0,452,453,1,0,0,0,453,457,1,0,0,0,454,452,1,0,0,0,455,458,5,2,0,0,456,458,3,96,48,0,457,455,1,0,0,0,457,456,1,0,0,0,458,47,1,0,0,0,459,465,3,196,98,0,460,462,5,23,0,0,461,463,3,146,73,0,462,461,1,0,0,0,462,463,1,0,0,0,463,464,1,0,0,0,464,466,5,24,0,0,465,460,1,0,0,0,465,466,1,0,0,0,466,49,1,0,0,0,467,468,3,52,26,0,468,469,3,64,32,0,469,471,3,56,28,0,470,472,3,54,27,0,471,470,1,0,0,0,471,472,1,0,0,0,472,475,1,0,0,0,473,476,5,2,0,0,474,476,3,96,48,0,475,473,1,0,0,0,475,474,1,0,0,0,476,51,1,0,0,0,477,479,5,40,0,0,478,480,3,196,98,0,479,478,1,0,0,0,479,480,1,0,0,0,480,485,1,0,0,0,481,485,5,128,0,0,482,485,5,129,0,0,483,485,5,130,0,0,484,477,1,0,0,0,484,481,1,0,0,0,484,482,1,0,0,0,484,483,1,0,0,0,485,53,1,0,0,0,486,487,5,41,0,0,487,488,3,64,32,0,488,55,1,0,0,0,489,498,5,117,0,0,490,498,5,122,0,0,491,498,5,119,0,0,492,498,5,121,0,0,493,498,5,123,0,0,494,498,3,94,47,0,495,498,3,48,24,0,496,498,3,200,100,0,497,489,1,0,0,0,497,490,1,0,0,0,497,491,1,0,0,0,497,492,1,0,0,0,497,493,1,0,0,0,497,494,1,0,0,0,497,495,1,0,0,0,497,496,1,0,0,0,498,501,1,0,0,0,499,497,1,0,0,0,499,500,1,0,0,0,500,57,1,0,0,0,501,499,1,0,0,0,502,503,5,42,0,0,503,504,3,196,98,0,504,506,3,68,34,0,505,507,5,110,0,0,506,505,1,0,0,0,506,507,1,0,0,0,507,508,1,0,0,0,508,509,5,2,0,0,509,59,1,0,0,0,510,511,3,196,98,0,511,61,1,0,0,0,512,513,5,43,0,0,513,514,3,196,98,0,514,516,5,15,0,0,515,517,3,60,30,0,516,515,1,0,0,0,516,517,1,0,0,0,517,522,1,0,0,0,518,519,5,16,0,0,519,521,3,60,30,0,520,518,1,0,0,0,521,524,1,0,0,0,522,520,1,0,0,0,522,523,1,0,0,0,523,525,1,0,0,0,524,522,1,0,0,0,525,526,5,17,0,0,526,63,1,0,0,0,527,536,5,23,0,0,528,533,3,66,33,0,529,530,5,16,0,0,530,532,3,66,33,0,531,529,1,0,0,0,532,535,1,0,0,0,533,531,1,0,0,0,533,534,1,0,0,0,534,537,1,0,0,0,535,533,1,0,0,0,536,528,1,0,0,0,536,537,1,0,0,0,537,538,1,0,0,0,538,539,5,24,0,0,539,65,1,0,0,0,540,542,3,78,39,0,541,543,3,92,46,0,542,541,1,0,0,0,542,543,1,0,0,0,543,545,1,0,0,0,544,546,3,196,98,0,545,544,1,0,0,0,545,546,1,0,0,0,546,67,1,0,0,0,547,556,5,23,0,0,548,553,3,70,35,0,549,550,5,16,0,0,550,552,3,70,35,0,551,549,1,0,0,0,552,555,1,0,0,0,553,551,1,0,0,0,553,554,1,0,0,0,554,557,1,0,0,0,555,553,1,0,0,0,556,548,1,0,0,0,556,557,1,0,0,0,557,558,1,0,0,0,558,559,5,24,0,0,559,69,1,0,0,0,560,562,3,78,39,0,561,563,5,118,0,0,562,561,1,0,0,0,562,563,1,0,0,0,563,565,1,0,0,0,564,566,3,196,98,0,565,564,1,0,0,0,565,566,1,0,0,0,566,71,1,0,0,0,567,576,5,23,0,0,568,573,3,74,37,0,569,570,5,16,0,0,570,572,3,74,37,0,571,569,1,0,0,0,572,575,1,0,0,0,573,571,1,0,0,0,573,574,1,0,0,0,574,577,1,0,0,0,575,573,1,0,0,0,576,568,1,0,0,0,576,577,1,0,0,0,577,578,1,0,0,0,578,579,5,24,0,0,579,73,1,0,0,0,580,582,3,78,39,0,581,583,3,92,46,0,582,581,1,0,0,0,582,583,1,0,0,0,583,75,1,0,0,0,584,586,3,78,39,0,585,587,3,92,46,0,586,585,1,0,0,0,586,587,1,0,0,0,587,588,1,0,0,0,588,589,3,196,98,0,589,77,1,0,0,0,590,591,6,39,-1,0,591,598,3,140,70,0,592,598,3,80,40,0,593,598,3,84,42,0,594,598,3,90,45,0,595,596,5,46,0,0,596,598,5,120,0,0,597,590,1,0,0,0,597,592,1,0,0,0,597,593,1,0,0,0,597,594,1,0,0,0,597,595,1,0,0,0,598,607,1,0,0,0,599,600,10,3,0,0,600,602,5,44,0,0,601,603,3,142,71,0,602,601,1,0,0,0,602,603,1,0,0,0,603,604,1,0,0,0,604,606,5,45,0,0,605,599,1,0,0,0,606,609,1,0,0,0,607,605,1,0,0,0,607,608,1,0,0,0,608,79,1,0,0,0,609,607,1,0,0,0,610,615,3,196,98,0,611,612,5,47,0,0,612,614,3,196,98,0,613,611,1,0,0,0,614,617,1,0,0,0,615,613,1,0,0,0,615,616,1,0,0,0,616,81,1,0,0,0,617,615,1,0,0,0,618,621,3,140,70,0,619,621,3,80,40,0,620,618,1,0,0,0,620,619,1,0,0,0,621,83,1,0,0,0,622,623,5,48,0,0,623,624,5,23,0,0,624,626,3,82,41,0,625,627,3,86,43,0,626,625,1,0,0,0,626,627,1,0,0,0,627,628,1,0,0,0,628,629,5,49,0,0,629,631,3,78,39,0,630,632,3,88,44,0,631,630,1,0,0,0,631,632,1,0,0,0,632,633,1,0,0,0,633,634,5,24,0,0,634,85,1,0,0,0,635,636,3,196,98,0,636,87,1,0,0,0,637,638,3,196,98,0,638,89,1,0,0,0,639,640,5,40,0,0,640,646,3,72,36,0,641,645,5,119,0,0,642,645,5,117,0,0,643,645,3,94,47,0,644,641,1,0,0,0,644,642,1,0,0,0,644,643,1,0,0,0,645,648,1,0,0,0,646,644,1,0,0,0,646,647,1,0,0,0,647,651,1,0,0,0,648,646,1,0,0,0,649,650,5,41,0,0,650,652,3,72,36,0,651,649,1,0,0,0,651,652,1,0,0,0,652,91,1,0,0,0,653,654,7,3,0,0,654,93,1,0,0,0,655,656,7,4,0,0,656,95,1,0,0,0,657,661,5,15,0,0,658,660,3,98,49,0,659,658,1,0,0,0,660,663,1,0,0,0,661,659,1,0,0,0,661,662,1,0,0,0,662,664,1,0,0,0,663,661,1,0,0,0,664,665,5,17,0,0,665,97,1,0,0,0,666,682,3,102,51,0,667,682,3,104,52,0,668,682,3,108,54,0,669,682,3,114,57,0,670,682,3,96,48,0,671,682,3,116,58,0,672,682,3,120,60,0,673,682,3,122,61,0,674,682,3,124,62,0,675,682,3,126,63,0,676,682,3,128,64,0,677,682,3,130,65,0,678,682,3,110,55,0,679,682,3,112,56,0,680,682,3,132,66,0,681,666,1,0,0,0,681,667,1,0,0,0,681,668,1,0,0,0,681,669,1,0,0,0,681,670,1,0,0,0,681,671,1,0,0,0,681,672,1,0,0,0,681,673,1,0,0,0,681,674,1,0,0,0,681,675,1,0,0,0,681,676,1,0,0,0,681,677,1,0,0,0,681,678,1,0,0,0,681,679,1,0,0,0,681,680,1,0,0,0,682,99,1,0,0,0,683,684,3,142,71,0,684,685,5,2,0,0,685,101,1,0,0,0,686,687,5,53,0,0,687,688,5,23,0,0,688,689,3,142,71,0,689,690,5,24,0,0,690,693,3,98,49,0,691,692,5,54,0,0,692,694,3,98,49,0,693,691,1,0,0,0,693,694,1,0,0,0,694,103,1,0,0,0,695,696,5,55,0,0,696,698,3,142,71,0,697,699,3,54,27,0,698,697,1,0,0,0,698,699,1,0,0,0,699,700,1,0,0,0,700,702,3,96,48,0,701,703,3,106,53,0,702,701,1,0,0,0,703,704,1,0,0,0,704,702,1,0,0,0,704,705,1,0,0,0,705,105,1,0,0,0,706,711,5,56,0,0,707,709,3,196,98,0,708,707,1,0,0,0,708,709,1,0,0,0,709,710,1,0,0,0,710,712,3,64,32,0,711,708,1,0,0,0,711,712,1,0,0,0,712,713,1,0,0,0,713,714,3,96,48,0,714,107,1,0,0,0,715,716,5,57,0,0,716,717,5,23,0,0,717,718,3,142,71,0,718,719,5,24,0,0,719,720,3,98,49,0,720,109,1,0,0,0,721,724,3,134,67,0,722,724,3,100,50,0,723,721,1,0,0,0,723,722,1,0,0,0,724,111,1,0,0,0,725,726,5,58,0,0,726,727,3,96,48,0,727,113,1,0,0,0,728,729,5,29,0,0,729,732,5,23,0,0,730,733,3,110,55,0,731,733,5,2,0,0,732,730,1,0,0,0,732,731,1,0,0,0,733,736,1,0,0,0,734,737,3,100,50,0,735,737,5,2,0,0,736,734,1,0,0,0,736,735,1,0,0,0,737,739,1,0,0,0,738,740,3,142,71,0,739,738,1,0,0,0,739,740,1,0,0,0,740,741,1,0,0,0,741,742,5,24,0,0,742,743,3,98,49,0,743,115,1,0,0,0,744,746,5,59,0,0,745,747,5,132,0,0,746,745,1,0,0,0,746,747,1,0,0,0,747,752,1,0,0,0,748,749,5,23,0,0,749,750,3,118,59,0,750,751,5,24,0,0,751,753,1,0,0,0,752,748,1,0,0,0,752,753,1,0,0,0,753,754,1,0,0,0,754,755,3,156,78,0,755,117,1,0,0,0,756,757,3,202,101,0,757,119,1,0,0,0,758,759,5,60,0,0,759,760,3,98,49,0,760,761,5,57,0,0,761,762,5,23,0,0,762,763,3,142,71,0,763,764,5,24,0,0,764,765,5,2,0,0,765,121,1,0,0,0,766,767,5,115,0,0,767,768,5,2,0,0,768,123,1,0,0,0,769,770,5,111,0,0,770,771,5,2,0,0,771,125,1,0,0,0,772,774,5,61,0,0,773,775,3,142,71,0,774,773,1,0,0,0,774,775,1,0,0,0,775,776,1,0,0,0,776,777,5,2,0,0,777,127,1,0,0,0,778,779,5,62,0,0,779,780,5,2,0,0,780,129,1,0,0,0,781,782,5,63,0,0,782,783,3,154,77,0,783,784,5,2,0,0,784,131,1,0,0,0,785,786,5,64,0,0,786,787,3,154,77,0,787,788,5,2,0,0,788,133,1,0,0,0,789,790,5,65,0,0,790,797,3,138,69,0,791,797,3,76,38,0,792,793,5,23,0,0,793,794,3,136,68,0,794,795,5,24,0,0,795,797,1,0,0,0,796,789,1,0,0,0,796,791,1,0,0,0,796,792,1,0,0,0,797,800,1,0,0,0,798,799,5,11,0,0,799,801,3,142,71,0,800,798,1,0,0,0,800,801,1,0,0,0,801,802,1,0,0,0,802,803,5,2,0,0,803,135,1,0,0,0,804,806,3,76,38,0,805,804,1,0,0,0,805,806,1,0,0,0,806,813,1,0,0,0,807,809,5,16,0,0,808,810,3,76,38,0,809,808,1,0,0,0,809,810,1,0,0,0,810,812,1,0,0,0,811,807,1,0,0,0,812,815,1,0,0,0,813,811,1,0,0,0,813,814,1,0,0,0,814,137,1,0,0,0,815,813,1,0,0,0,816,823,5,23,0,0,817,819,3,196,98,0,818,817,1,0,0,0,818,819,1,0,0,0,819,820,1,0,0,0,820,822,5,16,0,0,821,818,1,0,0,0,822,825,1,0,0,0,823,821,1,0,0,0,823,824,1,0,0,0,824,827,1,0,0,0,825,823,1,0,0,0,826,828,3,196,98,0,827,826,1,0,0,0,827,828,1,0,0,0,828,829,1,0,0,0,829,830,5,24,0,0,830,139,1,0,0,0,831,832,7,5,0,0,832,141,1,0,0,0,833,834,6,71,-1,0,834,835,5,71,0,0,835,852,3,78,39,0,836,837,5,23,0,0,837,838,3,142,71,0,838,839,5,24,0,0,839,852,1,0,0,0,840,841,7,6,0,0,841,852,3,142,71,19,842,843,7,7,0,0,843,852,3,142,71,18,844,845,5,73,0,0,845,852,3,142,71,17,846,847,5,74,0,0,847,852,3,142,71,16,848,849,5,6,0,0,849,852,3,142,71,15,850,852,3,144,72,0,851,833,1,0,0,0,851,836,1,0,0,0,851,840,1,0,0,0,851,842,1,0,0,0,851,844,1,0,0,0,851,846,1,0,0,0,851,848,1,0,0,0,851,850,1,0,0,0,852,927,1,0,0,0,853,854,10,14,0,0,854,855,5,75,0,0,855,926,3,142,71,14,856,857,10,13,0,0,857,858,7,8,0,0,858,926,3,142,71,14,859,860,10,12,0,0,860,861,7,7,0,0,861,926,3,142,71,13,862,863,10,11,0,0,863,864,7,9,0,0,864,926,3,142,71,12,865,866,10,10,0,0,866,867,5,31,0,0,867,926,3,142,71,11,868,869,10,9,0,0,869,870,5,5,0,0,870,926,3,142,71,10,871,872,10,8,0,0,872,873,5,30,0,0,873,926,3,142,71,9,874,875,10,7,0,0,875,876,7,10,0,0,876,926,3,142,71,8,877,878,10,6,0,0,878,879,7,11,0,0,879,926,3,142,71,7,880,881,10,5,0,0,881,882,5,78,0,0,882,926,3,142,71,6,883,884,10,4,0,0,884,885,5,4,0,0,885,926,3,142,71,5,886,887,10,3,0,0,887,888,5,79,0,0,888,889,3,142,71,0,889,890,5,72,0,0,890,891,3,142,71,3,891,926,1,0,0,0,892,893,10,2,0,0,893,894,7,12,0,0,894,926,3,142,71,3,895,896,10,27,0,0,896,926,7,6,0,0,897,898,10,25,0,0,898,899,5,44,0,0,899,900,3,142,71,0,900,901,5,45,0,0,901,926,1,0,0,0,902,903,10,24,0,0,903,905,5,44,0,0,904,906,3,142,71,0,905,904,1,0,0,0,905,906,1,0,0,0,906,907,1,0,0,0,907,909,5,72,0,0,908,910,3,142,71,0,909,908,1,0,0,0,909,910,1,0,0,0,910,911,1,0,0,0,911,926,5,45,0,0,912,913,10,23,0,0,913,914,5,47,0,0,914,926,3,196,98,0,915,916,10,22,0,0,916,917,5,15,0,0,917,918,3,148,74,0,918,919,5,17,0,0,919,926,1,0,0,0,920,921,10,21,0,0,921,922,5,23,0,0,922,923,3,152,76,0,923,924,5,24,0,0,924,926,1,0,0,0,925,853,1,0,0,0,925,856,1,0,0,0,925,859,1,0,0,0,925,862,1,0,0,0,925,865,1,0,0,0,925,868,1,0,0,0,925,871,1,0,0,0,925,874,1,0,0,0,925,877,1,0,0,0,925,880,1,0,0,0,925,883,1,0,0,0,925,886,1,0,0,0,925,892,1,0,0,0,925,895,1,0,0,0,925,897,1,0,0,0,925,902,1,0,0,0,925,912,1,0,0,0,925,915,1,0,0,0,925,920,1,0,0,0,926,929,1,0,0,0,927,925,1,0,0,0,927,928,1,0,0,0,928,143,1,0,0,0,929,927,1,0,0,0,930,940,5,104,0,0,931,940,3,194,97,0,932,940,3,198,99,0,933,940,3,202,101,0,934,940,3,196,98,0,935,940,5,125,0,0,936,940,5,120,0,0,937,940,3,192,96,0,938,940,3,78,39,0,939,930,1,0,0,0,939,931,1,0,0,0,939,932,1,0,0,0,939,933,1,0,0,0,939,934,1,0,0,0,939,935,1,0,0,0,939,936,1,0,0,0,939,937,1,0,0,0,939,938,1,0,0,0,940,145,1,0,0,0,941,946,3,142,71,0,942,943,5,16,0,0,943,945,3,142,71,0,944,942,1,0,0,0,945,948,1,0,0,0,946,944,1,0,0,0,946,947,1,0,0,0,947,147,1,0,0,0,948,946,1,0,0,0,949,954,3,150,75,0,950,951,5,16,0,0,951,953,3,150,75,0,952,950,1,0,0,0,953,956,1,0,0,0,954,952,1,0,0,0,954,955,1,0,0,0,955,958,1,0,0,0,956,954,1,0,0,0,957,959,5,16,0,0,958,957,1,0,0,0,958,959,1,0,0,0,959,149,1,0,0,0,960,961,3,196,98,0,961,962,5,72,0,0,962,963,3,142,71,0,963,151,1,0,0,0,964,966,5,15,0,0,965,967,3,148,74,0,966,965,1,0,0,0,966,967,1,0,0,0,967,968,1,0,0,0,968,973,5,17,0,0,969,971,3,146,73,0,970,969,1,0,0,0,970,971,1,0,0,0,971,973,1,0,0,0,972,964,1,0,0,0,972,970,1,0,0,0,973,153,1,0,0,0,974,975,3,142,71,0,975,976,5,23,0,0,976,977,3,152,76,0,977,978,5,24,0,0,978,155,1,0,0,0,979,983,5,15,0,0,980,982,3,158,79,0,981,980,1,0,0,0,982,985,1,0,0,0,983,981,1,0,0,0,983,984,1,0,0,0,984,986,1,0,0,0,985,983,1,0,0,0,986,987,5,17,0,0,987,157,1,0,0,0,988,1006,3,196,98,0,989,1006,3,156,78,0,990,1006,3,160,80,0,991,1006,3,166,83,0,992,1006,3,168,84,0,993,1006,3,174,87,0,994,1006,3,176,88,0,995,1006,3,178,89,0,996,1006,3,182,91,0,997,1006,3,186,93,0,998,1006,3,188,94,0,999,1006,5,111,0,0,1e3,1006,5,115,0,0,1001,1006,5,116,0,0,1002,1006,3,194,97,0,1003,1006,3,202,101,0,1004,1006,3,198,99,0,1005,988,1,0,0,0,1005,989,1,0,0,0,1005,990,1,0,0,0,1005,991,1,0,0,0,1005,992,1,0,0,0,1005,993,1,0,0,0,1005,994,1,0,0,0,1005,995,1,0,0,0,1005,996,1,0,0,0,1005,997,1,0,0,0,1005,998,1,0,0,0,1005,999,1,0,0,0,1005,1e3,1,0,0,0,1005,1001,1,0,0,0,1005,1002,1,0,0,0,1005,1003,1,0,0,0,1005,1004,1,0,0,0,1006,159,1,0,0,0,1007,1011,3,164,82,0,1008,1011,3,190,95,0,1009,1011,3,162,81,0,1010,1007,1,0,0,0,1010,1008,1,0,0,0,1010,1009,1,0,0,0,1011,161,1,0,0,0,1012,1013,3,196,98,0,1013,1014,5,47,0,0,1014,1015,3,196,98,0,1015,163,1,0,0,0,1016,1021,5,61,0,0,1017,1021,5,46,0,0,1018,1021,5,68,0,0,1019,1021,3,196,98,0,1020,1016,1,0,0,0,1020,1017,1,0,0,0,1020,1018,1,0,0,0,1020,1019,1,0,0,0,1021,1034,1,0,0,0,1022,1024,5,23,0,0,1023,1025,3,160,80,0,1024,1023,1,0,0,0,1024,1025,1,0,0,0,1025,1030,1,0,0,0,1026,1027,5,16,0,0,1027,1029,3,160,80,0,1028,1026,1,0,0,0,1029,1032,1,0,0,0,1030,1028,1,0,0,0,1030,1031,1,0,0,0,1031,1033,1,0,0,0,1032,1030,1,0,0,0,1033,1035,5,24,0,0,1034,1022,1,0,0,0,1034,1035,1,0,0,0,1035,165,1,0,0,0,1036,1037,5,90,0,0,1037,1040,3,170,85,0,1038,1039,5,91,0,0,1039,1041,3,160,80,0,1040,1038,1,0,0,0,1040,1041,1,0,0,0,1041,167,1,0,0,0,1042,1043,3,170,85,0,1043,1044,5,91,0,0,1044,1045,3,160,80,0,1045,169,1,0,0,0,1046,1054,3,196,98,0,1047,1054,3,162,81,0,1048,1054,3,172,86,0,1049,1050,5,23,0,0,1050,1051,3,172,86,0,1051,1052,5,24,0,0,1052,1054,1,0,0,0,1053,1046,1,0,0,0,1053,1047,1,0,0,0,1053,1048,1,0,0,0,1053,1049,1,0,0,0,1054,171,1,0,0,0,1055,1060,3,196,98,0,1056,1057,5,16,0,0,1057,1059,3,196,98,0,1058,1056,1,0,0,0,1059,1062,1,0,0,0,1060,1058,1,0,0,0,1060,1061,1,0,0,0,1061,173,1,0,0,0,1062,1060,1,0,0,0,1063,1064,3,160,80,0,1064,1065,5,92,0,0,1065,1066,3,196,98,0,1066,175,1,0,0,0,1067,1068,3,196,98,0,1068,1069,5,72,0,0,1069,177,1,0,0,0,1070,1071,5,93,0,0,1071,1075,3,160,80,0,1072,1074,3,180,90,0,1073,1072,1,0,0,0,1074,1077,1,0,0,0,1075,1073,1,0,0,0,1075,1076,1,0,0,0,1076,179,1,0,0,0,1077,1075,1,0,0,0,1078,1079,5,94,0,0,1079,1080,3,190,95,0,1080,1081,3,156,78,0,1081,1085,1,0,0,0,1082,1083,5,95,0,0,1083,1085,3,156,78,0,1084,1078,1,0,0,0,1084,1082,1,0,0,0,1085,181,1,0,0,0,1086,1087,5,40,0,0,1087,1088,3,196,98,0,1088,1090,5,23,0,0,1089,1091,3,172,86,0,1090,1089,1,0,0,0,1090,1091,1,0,0,0,1091,1092,1,0,0,0,1092,1094,5,24,0,0,1093,1095,3,184,92,0,1094,1093,1,0,0,0,1094,1095,1,0,0,0,1095,1096,1,0,0,0,1096,1097,3,156,78,0,1097,183,1,0,0,0,1098,1099,5,96,0,0,1099,1100,3,172,86,0,1100,185,1,0,0,0,1101,1104,5,29,0,0,1102,1105,3,156,78,0,1103,1105,3,160,80,0,1104,1102,1,0,0,0,1104,1103,1,0,0,0,1105,1106,1,0,0,0,1106,1109,3,160,80,0,1107,1110,3,156,78,0,1108,1110,3,160,80,0,1109,1107,1,0,0,0,1109,1108,1,0,0,0,1110,1111,1,0,0,0,1111,1112,3,156,78,0,1112,187,1,0,0,0,1113,1114,5,53,0,0,1114,1115,3,160,80,0,1115,1116,3,156,78,0,1116,189,1,0,0,0,1117,1123,3,202,101,0,1118,1123,5,105,0,0,1119,1123,5,106,0,0,1120,1123,3,198,99,0,1121,1123,5,104,0,0,1122,1117,1,0,0,0,1122,1118,1,0,0,0,1122,1119,1,0,0,0,1122,1120,1,0,0,0,1122,1121,1,0,0,0,1123,191,1,0,0,0,1124,1126,5,23,0,0,1125,1127,3,142,71,0,1126,1125,1,0,0,0,1126,1127,1,0,0,0,1127,1134,1,0,0,0,1128,1130,5,16,0,0,1129,1131,3,142,71,0,1130,1129,1,0,0,0,1130,1131,1,0,0,0,1131,1133,1,0,0,0,1132,1128,1,0,0,0,1133,1136,1,0,0,0,1134,1132,1,0,0,0,1134,1135,1,0,0,0,1135,1137,1,0,0,0,1136,1134,1,0,0,0,1137,1151,5,24,0,0,1138,1147,5,44,0,0,1139,1144,3,142,71,0,1140,1141,5,16,0,0,1141,1143,3,142,71,0,1142,1140,1,0,0,0,1143,1146,1,0,0,0,1144,1142,1,0,0,0,1144,1145,1,0,0,0,1145,1148,1,0,0,0,1146,1144,1,0,0,0,1147,1139,1,0,0,0,1147,1148,1,0,0,0,1148,1149,1,0,0,0,1149,1151,5,45,0,0,1150,1124,1,0,0,0,1150,1138,1,0,0,0,1151,193,1,0,0,0,1152,1154,7,13,0,0,1153,1155,5,107,0,0,1154,1153,1,0,0,0,1154,1155,1,0,0,0,1155,195,1,0,0,0,1156,1157,7,14,0,0,1157,197,1,0,0,0,1158,1160,5,108,0,0,1159,1158,1,0,0,0,1160,1161,1,0,0,0,1161,1159,1,0,0,0,1161,1162,1,0,0,0,1162,199,1,0,0,0,1163,1175,5,98,0,0,1164,1165,5,23,0,0,1165,1170,3,80,40,0,1166,1167,5,16,0,0,1167,1169,3,80,40,0,1168,1166,1,0,0,0,1169,1172,1,0,0,0,1170,1168,1,0,0,0,1170,1171,1,0,0,0,1171,1173,1,0,0,0,1172,1170,1,0,0,0,1173,1174,5,24,0,0,1174,1176,1,0,0,0,1175,1164,1,0,0,0,1175,1176,1,0,0,0,1176,201,1,0,0,0,1177,1179,5,132,0,0,1178,1177,1,0,0,0,1179,1180,1,0,0,0,1180,1178,1,0,0,0,1180,1181,1,0,0,0,1181,203,1,0,0,0,132,215,217,232,236,241,247,251,254,259,265,272,276,289,297,302,307,315,318,321,327,335,338,353,363,365,371,398,401,412,417,422,436,439,446,450,452,457,462,465,471,475,479,484,497,499,506,516,522,533,536,542,545,553,556,562,565,573,576,582,586,597,602,607,615,620,626,631,644,646,651,661,681,693,698,704,708,711,723,732,736,739,746,752,774,796,800,805,809,813,818,823,827,851,905,909,925,927,939,946,954,958,966,970,972,983,1005,1010,1020,1024,1030,1034,1040,1053,1060,1075,1084,1090,1094,1104,1109,1122,1126,1130,1134,1144,1147,1150,1154,1161,1170,1175,1180],A.DecisionsToDFA=A._ATN.decisionToState.map((e,t)=>new p(e,t));var C=A,L=class extends _{constructor(e,t,r){super(t,r),this.parser=e}EOF(){return this.getToken(C.EOF,0)}pragmaDirective_list(){return this.getTypedRuleContexts(K)}pragmaDirective(e){return this.getTypedRuleContext(K,e)}importDirective_list(){return this.getTypedRuleContexts(M)}importDirective(e){return this.getTypedRuleContext(M,e)}contractDefinition_list(){return this.getTypedRuleContexts(U)}contractDefinition(e){return this.getTypedRuleContext(U,e)}enumDefinition_list(){return this.getTypedRuleContexts(oe)}enumDefinition(e){return this.getTypedRuleContext(oe,e)}eventDefinition_list(){return this.getTypedRuleContexts(ne)}eventDefinition(e){return this.getTypedRuleContext(ne,e)}structDefinition_list(){return this.getTypedRuleContexts(J)}structDefinition(e){return this.getTypedRuleContext(J,e)}functionDefinition_list(){return this.getTypedRuleContexts(te)}functionDefinition(e){return this.getTypedRuleContext(te,e)}fileLevelConstant_list(){return this.getTypedRuleContexts(H)}fileLevelConstant(e){return this.getTypedRuleContext(H,e)}customErrorDefinition_list(){return this.getTypedRuleContexts($)}customErrorDefinition(e){return this.getTypedRuleContext($,e)}typeDefinition_list(){return this.getTypedRuleContexts(G)}typeDefinition(e){return this.getTypedRuleContext(G,e)}usingForDeclaration_list(){return this.getTypedRuleContexts(z)}usingForDeclaration(e){return this.getTypedRuleContext(z,e)}get ruleIndex(){return C.RULE_sourceUnit}enterRule(e){e.enterSourceUnit&&e.enterSourceUnit(this)}exitRule(e){e.exitSourceUnit&&e.exitSourceUnit(this)}accept(e){return e.visitSourceUnit?e.visitSourceUnit(this):e.visitChildren(this)}},K=class extends _{constructor(e,t,r){super(t,r),this.parser=e}pragmaName(){return this.getTypedRuleContext(I,0)}pragmaValue(){return this.getTypedRuleContext(N,0)}get ruleIndex(){return C.RULE_pragmaDirective}enterRule(e){e.enterPragmaDirective&&e.enterPragmaDirective(this)}exitRule(e){e.exitPragmaDirective&&e.exitPragmaDirective(this)}accept(e){return e.visitPragmaDirective?e.visitPragmaDirective(this):e.visitChildren(this)}},I=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return C.RULE_pragmaName}enterRule(e){e.enterPragmaName&&e.enterPragmaName(this)}exitRule(e){e.exitPragmaName&&e.exitPragmaName(this)}accept(e){return e.visitPragmaName?e.visitPragmaName(this):e.visitChildren(this)}},N=class extends _{constructor(e,t,r){super(t,r),this.parser=e}version(){return this.getTypedRuleContext(O,0)}expression(){return this.getTypedRuleContext(Ge,0)}get ruleIndex(){return C.RULE_pragmaValue}enterRule(e){e.enterPragmaValue&&e.enterPragmaValue(this)}exitRule(e){e.exitPragmaValue&&e.exitPragmaValue(this)}accept(e){return e.visitPragmaValue?e.visitPragmaValue(this):e.visitChildren(this)}},O=class extends _{constructor(e,t,r){super(t,r),this.parser=e}versionConstraint_list(){return this.getTypedRuleContexts(P)}versionConstraint(e){return this.getTypedRuleContext(P,e)}get ruleIndex(){return C.RULE_version}enterRule(e){e.enterVersion&&e.enterVersion(this)}exitRule(e){e.exitVersion&&e.exitVersion(this)}accept(e){return e.visitVersion?e.visitVersion(this):e.visitChildren(this)}},D=class extends _{constructor(e,t,r){super(t,r),this.parser=e}get ruleIndex(){return C.RULE_versionOperator}enterRule(e){e.enterVersionOperator&&e.enterVersionOperator(this)}exitRule(e){e.exitVersionOperator&&e.exitVersionOperator(this)}accept(e){return e.visitVersionOperator?e.visitVersionOperator(this):e.visitChildren(this)}},P=class extends _{constructor(e,t,r){super(t,r),this.parser=e}VersionLiteral(){return this.getToken(C.VersionLiteral,0)}versionOperator(){return this.getTypedRuleContext(D,0)}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}get ruleIndex(){return C.RULE_versionConstraint}enterRule(e){e.enterVersionConstraint&&e.enterVersionConstraint(this)}exitRule(e){e.exitVersionConstraint&&e.exitVersionConstraint(this)}accept(e){return e.visitVersionConstraint?e.visitVersionConstraint(this):e.visitChildren(this)}},q=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(vt)}identifier(e){return this.getTypedRuleContext(vt,e)}get ruleIndex(){return C.RULE_importDeclaration}enterRule(e){e.enterImportDeclaration&&e.enterImportDeclaration(this)}exitRule(e){e.exitImportDeclaration&&e.exitImportDeclaration(this)}accept(e){return e.visitImportDeclaration?e.visitImportDeclaration(this):e.visitChildren(this)}},M=class extends _{constructor(e,t,r){super(t,r),this.parser=e}importPath(){return this.getTypedRuleContext(F,0)}identifier_list(){return this.getTypedRuleContexts(vt)}identifier(e){return this.getTypedRuleContext(vt,e)}importDeclaration_list(){return this.getTypedRuleContexts(q)}importDeclaration(e){return this.getTypedRuleContext(q,e)}get ruleIndex(){return C.RULE_importDirective}enterRule(e){e.enterImportDirective&&e.enterImportDirective(this)}exitRule(e){e.exitImportDirective&&e.exitImportDirective(this)}accept(e){return e.visitImportDirective?e.visitImportDirective(this):e.visitChildren(this)}},F=class extends _{constructor(e,t,r){super(t,r),this.parser=e}StringLiteralFragment(){return this.getToken(C.StringLiteralFragment,0)}get ruleIndex(){return C.RULE_importPath}enterRule(e){e.enterImportPath&&e.enterImportPath(this)}exitRule(e){e.exitImportPath&&e.exitImportPath(this)}accept(e){return e.visitImportPath?e.visitImportPath(this):e.visitChildren(this)}},U=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}customStorageLayout_list(){return this.getTypedRuleContexts(V)}customStorageLayout(e){return this.getTypedRuleContext(V,e)}inheritanceSpecifier_list(){return this.getTypedRuleContexts(Y)}inheritanceSpecifier(e){return this.getTypedRuleContext(Y,e)}contractPart_list(){return this.getTypedRuleContexts(j)}contractPart(e){return this.getTypedRuleContext(j,e)}get ruleIndex(){return C.RULE_contractDefinition}enterRule(e){e.enterContractDefinition&&e.enterContractDefinition(this)}exitRule(e){e.exitContractDefinition&&e.exitContractDefinition(this)}accept(e){return e.visitContractDefinition?e.visitContractDefinition(this):e.visitChildren(this)}},Y=class extends _{constructor(e,t,r){super(t,r),this.parser=e}userDefinedTypeName(){return this.getTypedRuleContext(fe,0)}expressionList(){return this.getTypedRuleContext(We,0)}get ruleIndex(){return C.RULE_inheritanceSpecifier}enterRule(e){e.enterInheritanceSpecifier&&e.enterInheritanceSpecifier(this)}exitRule(e){e.exitInheritanceSpecifier&&e.exitInheritanceSpecifier(this)}accept(e){return e.visitInheritanceSpecifier?e.visitInheritanceSpecifier(this):e.visitChildren(this)}},V=class extends _{constructor(e,t,r){super(t,r),this.parser=e}expression(){return this.getTypedRuleContext(Ge,0)}get ruleIndex(){return C.RULE_customStorageLayout}enterRule(e){e.enterCustomStorageLayout&&e.enterCustomStorageLayout(this)}exitRule(e){e.exitCustomStorageLayout&&e.exitCustomStorageLayout(this)}accept(e){return e.visitCustomStorageLayout?e.visitCustomStorageLayout(this):e.visitChildren(this)}},j=class extends _{constructor(e,t,r){super(t,r),this.parser=e}stateVariableDeclaration(){return this.getTypedRuleContext(B,0)}usingForDeclaration(){return this.getTypedRuleContext(z,0)}structDefinition(){return this.getTypedRuleContext(J,0)}modifierDefinition(){return this.getTypedRuleContext(Z,0)}functionDefinition(){return this.getTypedRuleContext(te,0)}eventDefinition(){return this.getTypedRuleContext(ne,0)}enumDefinition(){return this.getTypedRuleContext(oe,0)}customErrorDefinition(){return this.getTypedRuleContext($,0)}typeDefinition(){return this.getTypedRuleContext(G,0)}get ruleIndex(){return C.RULE_contractPart}enterRule(e){e.enterContractPart&&e.enterContractPart(this)}exitRule(e){e.exitContractPart&&e.exitContractPart(this)}accept(e){return e.visitContractPart?e.visitContractPart(this):e.visitChildren(this)}},B=class extends _{constructor(e,t,r){super(t,r),this.parser=e}typeName(){return this.getTypedRuleContext(ye,0)}identifier(){return this.getTypedRuleContext(vt,0)}PublicKeyword_list(){return this.getTokens(C.PublicKeyword)}PublicKeyword(e){return this.getToken(C.PublicKeyword,e)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(e){return this.getToken(C.InternalKeyword,e)}PrivateKeyword_list(){return this.getTokens(C.PrivateKeyword)}PrivateKeyword(e){return this.getToken(C.PrivateKeyword,e)}ConstantKeyword_list(){return this.getTokens(C.ConstantKeyword)}ConstantKeyword(e){return this.getToken(C.ConstantKeyword,e)}TransientKeyword_list(){return this.getTokens(C.TransientKeyword)}TransientKeyword(e){return this.getToken(C.TransientKeyword,e)}ImmutableKeyword_list(){return this.getTokens(C.ImmutableKeyword)}ImmutableKeyword(e){return this.getToken(C.ImmutableKeyword,e)}overrideSpecifier_list(){return this.getTypedRuleContexts(_t)}overrideSpecifier(e){return this.getTypedRuleContext(_t,e)}expression(){return this.getTypedRuleContext(Ge,0)}get ruleIndex(){return C.RULE_stateVariableDeclaration}enterRule(e){e.enterStateVariableDeclaration&&e.enterStateVariableDeclaration(this)}exitRule(e){e.exitStateVariableDeclaration&&e.exitStateVariableDeclaration(this)}accept(e){return e.visitStateVariableDeclaration?e.visitStateVariableDeclaration(this):e.visitChildren(this)}},H=class extends _{constructor(e,t,r){super(t,r),this.parser=e}typeName(){return this.getTypedRuleContext(ye,0)}ConstantKeyword(){return this.getToken(C.ConstantKeyword,0)}identifier(){return this.getTypedRuleContext(vt,0)}expression(){return this.getTypedRuleContext(Ge,0)}get ruleIndex(){return C.RULE_fileLevelConstant}enterRule(e){e.enterFileLevelConstant&&e.enterFileLevelConstant(this)}exitRule(e){e.exitFileLevelConstant&&e.exitFileLevelConstant(this)}accept(e){return e.visitFileLevelConstant?e.visitFileLevelConstant(this):e.visitChildren(this)}},$=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}parameterList(){return this.getTypedRuleContext(ce,0)}get ruleIndex(){return C.RULE_customErrorDefinition}enterRule(e){e.enterCustomErrorDefinition&&e.enterCustomErrorDefinition(this)}exitRule(e){e.exitCustomErrorDefinition&&e.exitCustomErrorDefinition(this)}accept(e){return e.visitCustomErrorDefinition?e.visitCustomErrorDefinition(this):e.visitChildren(this)}},G=class extends _{constructor(e,t,r){super(t,r),this.parser=e}TypeKeyword(){return this.getToken(C.TypeKeyword,0)}identifier(){return this.getTypedRuleContext(vt,0)}elementaryTypeName(){return this.getTypedRuleContext($e,0)}get ruleIndex(){return C.RULE_typeDefinition}enterRule(e){e.enterTypeDefinition&&e.enterTypeDefinition(this)}exitRule(e){e.exitTypeDefinition&&e.exitTypeDefinition(this)}accept(e){return e.visitTypeDefinition?e.visitTypeDefinition(this):e.visitChildren(this)}},z=class extends _{constructor(e,t,r){super(t,r),this.parser=e}usingForObject(){return this.getTypedRuleContext(W,0)}typeName(){return this.getTypedRuleContext(ye,0)}GlobalKeyword(){return this.getToken(C.GlobalKeyword,0)}get ruleIndex(){return C.RULE_usingForDeclaration}enterRule(e){e.enterUsingForDeclaration&&e.enterUsingForDeclaration(this)}exitRule(e){e.exitUsingForDeclaration&&e.exitUsingForDeclaration(this)}accept(e){return e.visitUsingForDeclaration?e.visitUsingForDeclaration(this):e.visitChildren(this)}},W=class extends _{constructor(e,t,r){super(t,r),this.parser=e}userDefinedTypeName(){return this.getTypedRuleContext(fe,0)}usingForObjectDirective_list(){return this.getTypedRuleContexts(X)}usingForObjectDirective(e){return this.getTypedRuleContext(X,e)}get ruleIndex(){return C.RULE_usingForObject}enterRule(e){e.enterUsingForObject&&e.enterUsingForObject(this)}exitRule(e){e.exitUsingForObject&&e.exitUsingForObject(this)}accept(e){return e.visitUsingForObject?e.visitUsingForObject(this):e.visitChildren(this)}},X=class extends _{constructor(e,t,r){super(t,r),this.parser=e}userDefinedTypeName(){return this.getTypedRuleContext(fe,0)}userDefinableOperators(){return this.getTypedRuleContext(Q,0)}get ruleIndex(){return C.RULE_usingForObjectDirective}enterRule(e){e.enterUsingForObjectDirective&&e.enterUsingForObjectDirective(this)}exitRule(e){e.exitUsingForObjectDirective&&e.exitUsingForObjectDirective(this)}accept(e){return e.visitUsingForObjectDirective?e.visitUsingForObjectDirective(this):e.visitChildren(this)}},Q=class extends _{constructor(e,t,r){super(t,r),this.parser=e}get ruleIndex(){return C.RULE_userDefinableOperators}enterRule(e){e.enterUserDefinableOperators&&e.enterUserDefinableOperators(this)}exitRule(e){e.exitUserDefinableOperators&&e.exitUserDefinableOperators(this)}accept(e){return e.visitUserDefinableOperators?e.visitUserDefinableOperators(this):e.visitChildren(this)}},J=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}variableDeclaration_list(){return this.getTypedRuleContexts(me)}variableDeclaration(e){return this.getTypedRuleContext(me,e)}get ruleIndex(){return C.RULE_structDefinition}enterRule(e){e.enterStructDefinition&&e.enterStructDefinition(this)}exitRule(e){e.exitStructDefinition&&e.exitStructDefinition(this)}accept(e){return e.visitStructDefinition?e.visitStructDefinition(this):e.visitChildren(this)}},Z=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}block(){return this.getTypedRuleContext(Te,0)}parameterList(){return this.getTypedRuleContext(ce,0)}VirtualKeyword_list(){return this.getTokens(C.VirtualKeyword)}VirtualKeyword(e){return this.getToken(C.VirtualKeyword,e)}overrideSpecifier_list(){return this.getTypedRuleContexts(_t)}overrideSpecifier(e){return this.getTypedRuleContext(_t,e)}get ruleIndex(){return C.RULE_modifierDefinition}enterRule(e){e.enterModifierDefinition&&e.enterModifierDefinition(this)}exitRule(e){e.exitModifierDefinition&&e.exitModifierDefinition(this)}accept(e){return e.visitModifierDefinition?e.visitModifierDefinition(this):e.visitChildren(this)}},ee=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}expressionList(){return this.getTypedRuleContext(We,0)}get ruleIndex(){return C.RULE_modifierInvocation}enterRule(e){e.enterModifierInvocation&&e.enterModifierInvocation(this)}exitRule(e){e.exitModifierInvocation&&e.exitModifierInvocation(this)}accept(e){return e.visitModifierInvocation?e.visitModifierInvocation(this):e.visitChildren(this)}},te=class extends _{constructor(e,t,r){super(t,r),this.parser=e}functionDescriptor(){return this.getTypedRuleContext(re,0)}parameterList(){return this.getTypedRuleContext(ce,0)}modifierList(){return this.getTypedRuleContext(ie,0)}block(){return this.getTypedRuleContext(Te,0)}returnParameters(){return this.getTypedRuleContext(se,0)}get ruleIndex(){return C.RULE_functionDefinition}enterRule(e){e.enterFunctionDefinition&&e.enterFunctionDefinition(this)}exitRule(e){e.exitFunctionDefinition&&e.exitFunctionDefinition(this)}accept(e){return e.visitFunctionDefinition?e.visitFunctionDefinition(this):e.visitChildren(this)}},re=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}ConstructorKeyword(){return this.getToken(C.ConstructorKeyword,0)}FallbackKeyword(){return this.getToken(C.FallbackKeyword,0)}ReceiveKeyword(){return this.getToken(C.ReceiveKeyword,0)}get ruleIndex(){return C.RULE_functionDescriptor}enterRule(e){e.enterFunctionDescriptor&&e.enterFunctionDescriptor(this)}exitRule(e){e.exitFunctionDescriptor&&e.exitFunctionDescriptor(this)}accept(e){return e.visitFunctionDescriptor?e.visitFunctionDescriptor(this):e.visitChildren(this)}},se=class extends _{constructor(e,t,r){super(t,r),this.parser=e}parameterList(){return this.getTypedRuleContext(ce,0)}get ruleIndex(){return C.RULE_returnParameters}enterRule(e){e.enterReturnParameters&&e.enterReturnParameters(this)}exitRule(e){e.exitReturnParameters&&e.exitReturnParameters(this)}accept(e){return e.visitReturnParameters?e.visitReturnParameters(this):e.visitChildren(this)}},ie=class extends _{constructor(e,t,r){super(t,r),this.parser=e}ExternalKeyword_list(){return this.getTokens(C.ExternalKeyword)}ExternalKeyword(e){return this.getToken(C.ExternalKeyword,e)}PublicKeyword_list(){return this.getTokens(C.PublicKeyword)}PublicKeyword(e){return this.getToken(C.PublicKeyword,e)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(e){return this.getToken(C.InternalKeyword,e)}PrivateKeyword_list(){return this.getTokens(C.PrivateKeyword)}PrivateKeyword(e){return this.getToken(C.PrivateKeyword,e)}VirtualKeyword_list(){return this.getTokens(C.VirtualKeyword)}VirtualKeyword(e){return this.getToken(C.VirtualKeyword,e)}stateMutability_list(){return this.getTypedRuleContexts(Ee)}stateMutability(e){return this.getTypedRuleContext(Ee,e)}modifierInvocation_list(){return this.getTypedRuleContexts(ee)}modifierInvocation(e){return this.getTypedRuleContext(ee,e)}overrideSpecifier_list(){return this.getTypedRuleContexts(_t)}overrideSpecifier(e){return this.getTypedRuleContext(_t,e)}get ruleIndex(){return C.RULE_modifierList}enterRule(e){e.enterModifierList&&e.enterModifierList(this)}exitRule(e){e.exitModifierList&&e.exitModifierList(this)}accept(e){return e.visitModifierList?e.visitModifierList(this):e.visitChildren(this)}},ne=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}eventParameterList(){return this.getTypedRuleContext(he,0)}AnonymousKeyword(){return this.getToken(C.AnonymousKeyword,0)}get ruleIndex(){return C.RULE_eventDefinition}enterRule(e){e.enterEventDefinition&&e.enterEventDefinition(this)}exitRule(e){e.exitEventDefinition&&e.exitEventDefinition(this)}accept(e){return e.visitEventDefinition?e.visitEventDefinition(this):e.visitChildren(this)}},ae=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return C.RULE_enumValue}enterRule(e){e.enterEnumValue&&e.enterEnumValue(this)}exitRule(e){e.exitEnumValue&&e.exitEnumValue(this)}accept(e){return e.visitEnumValue?e.visitEnumValue(this):e.visitChildren(this)}},oe=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}enumValue_list(){return this.getTypedRuleContexts(ae)}enumValue(e){return this.getTypedRuleContext(ae,e)}get ruleIndex(){return C.RULE_enumDefinition}enterRule(e){e.enterEnumDefinition&&e.enterEnumDefinition(this)}exitRule(e){e.exitEnumDefinition&&e.exitEnumDefinition(this)}accept(e){return e.visitEnumDefinition?e.visitEnumDefinition(this):e.visitChildren(this)}},ce=class extends _{constructor(e,t,r){super(t,r),this.parser=e}parameter_list(){return this.getTypedRuleContexts(le)}parameter(e){return this.getTypedRuleContext(le,e)}get ruleIndex(){return C.RULE_parameterList}enterRule(e){e.enterParameterList&&e.enterParameterList(this)}exitRule(e){e.exitParameterList&&e.exitParameterList(this)}accept(e){return e.visitParameterList?e.visitParameterList(this):e.visitChildren(this)}},le=class extends _{constructor(e,t,r){super(t,r),this.parser=e}typeName(){return this.getTypedRuleContext(ye,0)}storageLocation(){return this.getTypedRuleContext(_e,0)}identifier(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return C.RULE_parameter}enterRule(e){e.enterParameter&&e.enterParameter(this)}exitRule(e){e.exitParameter&&e.exitParameter(this)}accept(e){return e.visitParameter?e.visitParameter(this):e.visitChildren(this)}},he=class extends _{constructor(e,t,r){super(t,r),this.parser=e}eventParameter_list(){return this.getTypedRuleContexts(ue)}eventParameter(e){return this.getTypedRuleContext(ue,e)}get ruleIndex(){return C.RULE_eventParameterList}enterRule(e){e.enterEventParameterList&&e.enterEventParameterList(this)}exitRule(e){e.exitEventParameterList&&e.exitEventParameterList(this)}accept(e){return e.visitEventParameterList?e.visitEventParameterList(this):e.visitChildren(this)}},ue=class extends _{constructor(e,t,r){super(t,r),this.parser=e}typeName(){return this.getTypedRuleContext(ye,0)}IndexedKeyword(){return this.getToken(C.IndexedKeyword,0)}identifier(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return C.RULE_eventParameter}enterRule(e){e.enterEventParameter&&e.enterEventParameter(this)}exitRule(e){e.exitEventParameter&&e.exitEventParameter(this)}accept(e){return e.visitEventParameter?e.visitEventParameter(this):e.visitChildren(this)}},de=class extends _{constructor(e,t,r){super(t,r),this.parser=e}functionTypeParameter_list(){return this.getTypedRuleContexts(pe)}functionTypeParameter(e){return this.getTypedRuleContext(pe,e)}get ruleIndex(){return C.RULE_functionTypeParameterList}enterRule(e){e.enterFunctionTypeParameterList&&e.enterFunctionTypeParameterList(this)}exitRule(e){e.exitFunctionTypeParameterList&&e.exitFunctionTypeParameterList(this)}accept(e){return e.visitFunctionTypeParameterList?e.visitFunctionTypeParameterList(this):e.visitChildren(this)}},pe=class extends _{constructor(e,t,r){super(t,r),this.parser=e}typeName(){return this.getTypedRuleContext(ye,0)}storageLocation(){return this.getTypedRuleContext(_e,0)}get ruleIndex(){return C.RULE_functionTypeParameter}enterRule(e){e.enterFunctionTypeParameter&&e.enterFunctionTypeParameter(this)}exitRule(e){e.exitFunctionTypeParameter&&e.exitFunctionTypeParameter(this)}accept(e){return e.visitFunctionTypeParameter?e.visitFunctionTypeParameter(this):e.visitChildren(this)}},me=class extends _{constructor(e,t,r){super(t,r),this.parser=e}typeName(){return this.getTypedRuleContext(ye,0)}identifier(){return this.getTypedRuleContext(vt,0)}storageLocation(){return this.getTypedRuleContext(_e,0)}get ruleIndex(){return C.RULE_variableDeclaration}enterRule(e){e.enterVariableDeclaration&&e.enterVariableDeclaration(this)}exitRule(e){e.exitVariableDeclaration&&e.exitVariableDeclaration(this)}accept(e){return e.visitVariableDeclaration?e.visitVariableDeclaration(this):e.visitChildren(this)}},ye=class e extends _{constructor(e,t,r){super(t,r),this.parser=e}elementaryTypeName(){return this.getTypedRuleContext($e,0)}userDefinedTypeName(){return this.getTypedRuleContext(fe,0)}mapping(){return this.getTypedRuleContext(we,0)}functionTypeName(){return this.getTypedRuleContext(be,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}typeName(){return this.getTypedRuleContext(e,0)}expression(){return this.getTypedRuleContext(Ge,0)}get ruleIndex(){return C.RULE_typeName}enterRule(e){e.enterTypeName&&e.enterTypeName(this)}exitRule(e){e.exitTypeName&&e.exitTypeName(this)}accept(e){return e.visitTypeName?e.visitTypeName(this):e.visitChildren(this)}},fe=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(vt)}identifier(e){return this.getTypedRuleContext(vt,e)}get ruleIndex(){return C.RULE_userDefinedTypeName}enterRule(e){e.enterUserDefinedTypeName&&e.enterUserDefinedTypeName(this)}exitRule(e){e.exitUserDefinedTypeName&&e.exitUserDefinedTypeName(this)}accept(e){return e.visitUserDefinedTypeName?e.visitUserDefinedTypeName(this):e.visitChildren(this)}},ge=class extends _{constructor(e,t,r){super(t,r),this.parser=e}elementaryTypeName(){return this.getTypedRuleContext($e,0)}userDefinedTypeName(){return this.getTypedRuleContext(fe,0)}get ruleIndex(){return C.RULE_mappingKey}enterRule(e){e.enterMappingKey&&e.enterMappingKey(this)}exitRule(e){e.exitMappingKey&&e.exitMappingKey(this)}accept(e){return e.visitMappingKey?e.visitMappingKey(this):e.visitChildren(this)}},we=class extends _{constructor(e,t,r){super(t,r),this.parser=e}mappingKey(){return this.getTypedRuleContext(ge,0)}typeName(){return this.getTypedRuleContext(ye,0)}mappingKeyName(){return this.getTypedRuleContext(xe,0)}mappingValueName(){return this.getTypedRuleContext(ve,0)}get ruleIndex(){return C.RULE_mapping}enterRule(e){e.enterMapping&&e.enterMapping(this)}exitRule(e){e.exitMapping&&e.exitMapping(this)}accept(e){return e.visitMapping?e.visitMapping(this):e.visitChildren(this)}},xe=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return C.RULE_mappingKeyName}enterRule(e){e.enterMappingKeyName&&e.enterMappingKeyName(this)}exitRule(e){e.exitMappingKeyName&&e.exitMappingKeyName(this)}accept(e){return e.visitMappingKeyName?e.visitMappingKeyName(this):e.visitChildren(this)}},ve=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return C.RULE_mappingValueName}enterRule(e){e.enterMappingValueName&&e.enterMappingValueName(this)}exitRule(e){e.exitMappingValueName&&e.exitMappingValueName(this)}accept(e){return e.visitMappingValueName?e.visitMappingValueName(this):e.visitChildren(this)}},be=class extends _{constructor(e,t,r){super(t,r),this.parser=e}functionTypeParameterList_list(){return this.getTypedRuleContexts(de)}functionTypeParameterList(e){return this.getTypedRuleContext(de,e)}InternalKeyword_list(){return this.getTokens(C.InternalKeyword)}InternalKeyword(e){return this.getToken(C.InternalKeyword,e)}ExternalKeyword_list(){return this.getTokens(C.ExternalKeyword)}ExternalKeyword(e){return this.getToken(C.ExternalKeyword,e)}stateMutability_list(){return this.getTypedRuleContexts(Ee)}stateMutability(e){return this.getTypedRuleContext(Ee,e)}get ruleIndex(){return C.RULE_functionTypeName}enterRule(e){e.enterFunctionTypeName&&e.enterFunctionTypeName(this)}exitRule(e){e.exitFunctionTypeName&&e.exitFunctionTypeName(this)}accept(e){return e.visitFunctionTypeName?e.visitFunctionTypeName(this):e.visitChildren(this)}},_e=class extends _{constructor(e,t,r){super(t,r),this.parser=e}get ruleIndex(){return C.RULE_storageLocation}enterRule(e){e.enterStorageLocation&&e.enterStorageLocation(this)}exitRule(e){e.exitStorageLocation&&e.exitStorageLocation(this)}accept(e){return e.visitStorageLocation?e.visitStorageLocation(this):e.visitChildren(this)}},Ee=class extends _{constructor(e,t,r){super(t,r),this.parser=e}PureKeyword(){return this.getToken(C.PureKeyword,0)}ConstantKeyword(){return this.getToken(C.ConstantKeyword,0)}ViewKeyword(){return this.getToken(C.ViewKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}get ruleIndex(){return C.RULE_stateMutability}enterRule(e){e.enterStateMutability&&e.enterStateMutability(this)}exitRule(e){e.exitStateMutability&&e.exitStateMutability(this)}accept(e){return e.visitStateMutability?e.visitStateMutability(this):e.visitChildren(this)}},Te=class extends _{constructor(e,t,r){super(t,r),this.parser=e}statement_list(){return this.getTypedRuleContexts(Se)}statement(e){return this.getTypedRuleContext(Se,e)}get ruleIndex(){return C.RULE_block}enterRule(e){e.enterBlock&&e.enterBlock(this)}exitRule(e){e.exitBlock&&e.exitBlock(this)}accept(e){return e.visitBlock?e.visitBlock(this):e.visitChildren(this)}},Se=class extends _{constructor(e,t,r){super(t,r),this.parser=e}ifStatement(){return this.getTypedRuleContext(Re,0)}tryStatement(){return this.getTypedRuleContext(Ae,0)}whileStatement(){return this.getTypedRuleContext(Le,0)}forStatement(){return this.getTypedRuleContext(Ne,0)}block(){return this.getTypedRuleContext(Te,0)}inlineAssemblyStatement(){return this.getTypedRuleContext(Oe,0)}doWhileStatement(){return this.getTypedRuleContext(Pe,0)}continueStatement(){return this.getTypedRuleContext(qe,0)}breakStatement(){return this.getTypedRuleContext(Me,0)}returnStatement(){return this.getTypedRuleContext(Fe,0)}throwStatement(){return this.getTypedRuleContext(Ue,0)}emitStatement(){return this.getTypedRuleContext(Ye,0)}simpleStatement(){return this.getTypedRuleContext(Ke,0)}uncheckedStatement(){return this.getTypedRuleContext(Ie,0)}revertStatement(){return this.getTypedRuleContext(Ve,0)}get ruleIndex(){return C.RULE_statement}enterRule(e){e.enterStatement&&e.enterStatement(this)}exitRule(e){e.exitStatement&&e.exitStatement(this)}accept(e){return e.visitStatement?e.visitStatement(this):e.visitChildren(this)}},ke=class extends _{constructor(e,t,r){super(t,r),this.parser=e}expression(){return this.getTypedRuleContext(Ge,0)}get ruleIndex(){return C.RULE_expressionStatement}enterRule(e){e.enterExpressionStatement&&e.enterExpressionStatement(this)}exitRule(e){e.exitExpressionStatement&&e.exitExpressionStatement(this)}accept(e){return e.visitExpressionStatement?e.visitExpressionStatement(this):e.visitChildren(this)}},Re=class extends _{constructor(e,t,r){super(t,r),this.parser=e}expression(){return this.getTypedRuleContext(Ge,0)}statement_list(){return this.getTypedRuleContexts(Se)}statement(e){return this.getTypedRuleContext(Se,e)}get ruleIndex(){return C.RULE_ifStatement}enterRule(e){e.enterIfStatement&&e.enterIfStatement(this)}exitRule(e){e.exitIfStatement&&e.exitIfStatement(this)}accept(e){return e.visitIfStatement?e.visitIfStatement(this):e.visitChildren(this)}},Ae=class extends _{constructor(e,t,r){super(t,r),this.parser=e}expression(){return this.getTypedRuleContext(Ge,0)}block(){return this.getTypedRuleContext(Te,0)}returnParameters(){return this.getTypedRuleContext(se,0)}catchClause_list(){return this.getTypedRuleContexts(Ce)}catchClause(e){return this.getTypedRuleContext(Ce,e)}get ruleIndex(){return C.RULE_tryStatement}enterRule(e){e.enterTryStatement&&e.enterTryStatement(this)}exitRule(e){e.exitTryStatement&&e.exitTryStatement(this)}accept(e){return e.visitTryStatement?e.visitTryStatement(this):e.visitChildren(this)}},Ce=class extends _{constructor(e,t,r){super(t,r),this.parser=e}block(){return this.getTypedRuleContext(Te,0)}parameterList(){return this.getTypedRuleContext(ce,0)}identifier(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return C.RULE_catchClause}enterRule(e){e.enterCatchClause&&e.enterCatchClause(this)}exitRule(e){e.exitCatchClause&&e.exitCatchClause(this)}accept(e){return e.visitCatchClause?e.visitCatchClause(this):e.visitChildren(this)}},Le=class extends _{constructor(e,t,r){super(t,r),this.parser=e}expression(){return this.getTypedRuleContext(Ge,0)}statement(){return this.getTypedRuleContext(Se,0)}get ruleIndex(){return C.RULE_whileStatement}enterRule(e){e.enterWhileStatement&&e.enterWhileStatement(this)}exitRule(e){e.exitWhileStatement&&e.exitWhileStatement(this)}accept(e){return e.visitWhileStatement?e.visitWhileStatement(this):e.visitChildren(this)}},Ke=class extends _{constructor(e,t,r){super(t,r),this.parser=e}variableDeclarationStatement(){return this.getTypedRuleContext(je,0)}expressionStatement(){return this.getTypedRuleContext(ke,0)}get ruleIndex(){return C.RULE_simpleStatement}enterRule(e){e.enterSimpleStatement&&e.enterSimpleStatement(this)}exitRule(e){e.exitSimpleStatement&&e.exitSimpleStatement(this)}accept(e){return e.visitSimpleStatement?e.visitSimpleStatement(this):e.visitChildren(this)}},Ie=class extends _{constructor(e,t,r){super(t,r),this.parser=e}block(){return this.getTypedRuleContext(Te,0)}get ruleIndex(){return C.RULE_uncheckedStatement}enterRule(e){e.enterUncheckedStatement&&e.enterUncheckedStatement(this)}exitRule(e){e.exitUncheckedStatement&&e.exitUncheckedStatement(this)}accept(e){return e.visitUncheckedStatement?e.visitUncheckedStatement(this):e.visitChildren(this)}},Ne=class extends _{constructor(e,t,r){super(t,r),this.parser=e}statement(){return this.getTypedRuleContext(Se,0)}simpleStatement(){return this.getTypedRuleContext(Ke,0)}expressionStatement(){return this.getTypedRuleContext(ke,0)}expression(){return this.getTypedRuleContext(Ge,0)}get ruleIndex(){return C.RULE_forStatement}enterRule(e){e.enterForStatement&&e.enterForStatement(this)}exitRule(e){e.exitForStatement&&e.exitForStatement(this)}accept(e){return e.visitForStatement?e.visitForStatement(this):e.visitChildren(this)}},Oe=class extends _{constructor(e,t,r){super(t,r),this.parser=e}assemblyBlock(){return this.getTypedRuleContext(et,0)}StringLiteralFragment(){return this.getToken(C.StringLiteralFragment,0)}inlineAssemblyStatementFlag(){return this.getTypedRuleContext(De,0)}get ruleIndex(){return C.RULE_inlineAssemblyStatement}enterRule(e){e.enterInlineAssemblyStatement&&e.enterInlineAssemblyStatement(this)}exitRule(e){e.exitInlineAssemblyStatement&&e.exitInlineAssemblyStatement(this)}accept(e){return e.visitInlineAssemblyStatement?e.visitInlineAssemblyStatement(this):e.visitChildren(this)}},De=class extends _{constructor(e,t,r){super(t,r),this.parser=e}stringLiteral(){return this.getTypedRuleContext(Et,0)}get ruleIndex(){return C.RULE_inlineAssemblyStatementFlag}enterRule(e){e.enterInlineAssemblyStatementFlag&&e.enterInlineAssemblyStatementFlag(this)}exitRule(e){e.exitInlineAssemblyStatementFlag&&e.exitInlineAssemblyStatementFlag(this)}accept(e){return e.visitInlineAssemblyStatementFlag?e.visitInlineAssemblyStatementFlag(this):e.visitChildren(this)}},Pe=class extends _{constructor(e,t,r){super(t,r),this.parser=e}statement(){return this.getTypedRuleContext(Se,0)}expression(){return this.getTypedRuleContext(Ge,0)}get ruleIndex(){return C.RULE_doWhileStatement}enterRule(e){e.enterDoWhileStatement&&e.enterDoWhileStatement(this)}exitRule(e){e.exitDoWhileStatement&&e.exitDoWhileStatement(this)}accept(e){return e.visitDoWhileStatement?e.visitDoWhileStatement(this):e.visitChildren(this)}},qe=class extends _{constructor(e,t,r){super(t,r),this.parser=e}ContinueKeyword(){return this.getToken(C.ContinueKeyword,0)}get ruleIndex(){return C.RULE_continueStatement}enterRule(e){e.enterContinueStatement&&e.enterContinueStatement(this)}exitRule(e){e.exitContinueStatement&&e.exitContinueStatement(this)}accept(e){return e.visitContinueStatement?e.visitContinueStatement(this):e.visitChildren(this)}},Me=class extends _{constructor(e,t,r){super(t,r),this.parser=e}BreakKeyword(){return this.getToken(C.BreakKeyword,0)}get ruleIndex(){return C.RULE_breakStatement}enterRule(e){e.enterBreakStatement&&e.enterBreakStatement(this)}exitRule(e){e.exitBreakStatement&&e.exitBreakStatement(this)}accept(e){return e.visitBreakStatement?e.visitBreakStatement(this):e.visitChildren(this)}},Fe=class extends _{constructor(e,t,r){super(t,r),this.parser=e}expression(){return this.getTypedRuleContext(Ge,0)}get ruleIndex(){return C.RULE_returnStatement}enterRule(e){e.enterReturnStatement&&e.enterReturnStatement(this)}exitRule(e){e.exitReturnStatement&&e.exitReturnStatement(this)}accept(e){return e.visitReturnStatement?e.visitReturnStatement(this):e.visitChildren(this)}},Ue=class extends _{constructor(e,t,r){super(t,r),this.parser=e}get ruleIndex(){return C.RULE_throwStatement}enterRule(e){e.enterThrowStatement&&e.enterThrowStatement(this)}exitRule(e){e.exitThrowStatement&&e.exitThrowStatement(this)}accept(e){return e.visitThrowStatement?e.visitThrowStatement(this):e.visitChildren(this)}},Ye=class extends _{constructor(e,t,r){super(t,r),this.parser=e}functionCall(){return this.getTypedRuleContext(Ze,0)}get ruleIndex(){return C.RULE_emitStatement}enterRule(e){e.enterEmitStatement&&e.enterEmitStatement(this)}exitRule(e){e.exitEmitStatement&&e.exitEmitStatement(this)}accept(e){return e.visitEmitStatement?e.visitEmitStatement(this):e.visitChildren(this)}},Ve=class extends _{constructor(e,t,r){super(t,r),this.parser=e}functionCall(){return this.getTypedRuleContext(Ze,0)}get ruleIndex(){return C.RULE_revertStatement}enterRule(e){e.enterRevertStatement&&e.enterRevertStatement(this)}exitRule(e){e.exitRevertStatement&&e.exitRevertStatement(this)}accept(e){return e.visitRevertStatement?e.visitRevertStatement(this):e.visitChildren(this)}},je=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifierList(){return this.getTypedRuleContext(He,0)}variableDeclaration(){return this.getTypedRuleContext(me,0)}variableDeclarationList(){return this.getTypedRuleContext(Be,0)}expression(){return this.getTypedRuleContext(Ge,0)}get ruleIndex(){return C.RULE_variableDeclarationStatement}enterRule(e){e.enterVariableDeclarationStatement&&e.enterVariableDeclarationStatement(this)}exitRule(e){e.exitVariableDeclarationStatement&&e.exitVariableDeclarationStatement(this)}accept(e){return e.visitVariableDeclarationStatement?e.visitVariableDeclarationStatement(this):e.visitChildren(this)}},Be=class extends _{constructor(e,t,r){super(t,r),this.parser=e}variableDeclaration_list(){return this.getTypedRuleContexts(me)}variableDeclaration(e){return this.getTypedRuleContext(me,e)}get ruleIndex(){return C.RULE_variableDeclarationList}enterRule(e){e.enterVariableDeclarationList&&e.enterVariableDeclarationList(this)}exitRule(e){e.exitVariableDeclarationList&&e.exitVariableDeclarationList(this)}accept(e){return e.visitVariableDeclarationList?e.visitVariableDeclarationList(this):e.visitChildren(this)}},He=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(vt)}identifier(e){return this.getTypedRuleContext(vt,e)}get ruleIndex(){return C.RULE_identifierList}enterRule(e){e.enterIdentifierList&&e.enterIdentifierList(this)}exitRule(e){e.exitIdentifierList&&e.exitIdentifierList(this)}accept(e){return e.visitIdentifierList?e.visitIdentifierList(this):e.visitChildren(this)}},$e=class extends _{constructor(e,t,r){super(t,r),this.parser=e}Int(){return this.getToken(C.Int,0)}Uint(){return this.getToken(C.Uint,0)}Byte(){return this.getToken(C.Byte,0)}Fixed(){return this.getToken(C.Fixed,0)}Ufixed(){return this.getToken(C.Ufixed,0)}get ruleIndex(){return C.RULE_elementaryTypeName}enterRule(e){e.enterElementaryTypeName&&e.enterElementaryTypeName(this)}exitRule(e){e.exitElementaryTypeName&&e.exitElementaryTypeName(this)}accept(e){return e.visitElementaryTypeName?e.visitElementaryTypeName(this):e.visitChildren(this)}},Ge=class e extends _{constructor(e,t,r){super(t,r),this.parser=e}typeName(){return this.getTypedRuleContext(ye,0)}expression_list(){return this.getTypedRuleContexts(e)}expression(t){return this.getTypedRuleContext(e,t)}primaryExpression(){return this.getTypedRuleContext(ze,0)}identifier(){return this.getTypedRuleContext(vt,0)}nameValueList(){return this.getTypedRuleContext(Xe,0)}functionCallArguments(){return this.getTypedRuleContext(Je,0)}get ruleIndex(){return C.RULE_expression}enterRule(e){e.enterExpression&&e.enterExpression(this)}exitRule(e){e.exitExpression&&e.exitExpression(this)}accept(e){return e.visitExpression?e.visitExpression(this):e.visitChildren(this)}},ze=class extends _{constructor(e,t,r){super(t,r),this.parser=e}BooleanLiteral(){return this.getToken(C.BooleanLiteral,0)}numberLiteral(){return this.getTypedRuleContext(xt,0)}hexLiteral(){return this.getTypedRuleContext(bt,0)}stringLiteral(){return this.getTypedRuleContext(Et,0)}identifier(){return this.getTypedRuleContext(vt,0)}TypeKeyword(){return this.getToken(C.TypeKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}tupleExpression(){return this.getTypedRuleContext(wt,0)}typeName(){return this.getTypedRuleContext(ye,0)}get ruleIndex(){return C.RULE_primaryExpression}enterRule(e){e.enterPrimaryExpression&&e.enterPrimaryExpression(this)}exitRule(e){e.exitPrimaryExpression&&e.exitPrimaryExpression(this)}accept(e){return e.visitPrimaryExpression?e.visitPrimaryExpression(this):e.visitChildren(this)}},We=class extends _{constructor(e,t,r){super(t,r),this.parser=e}expression_list(){return this.getTypedRuleContexts(Ge)}expression(e){return this.getTypedRuleContext(Ge,e)}get ruleIndex(){return C.RULE_expressionList}enterRule(e){e.enterExpressionList&&e.enterExpressionList(this)}exitRule(e){e.exitExpressionList&&e.exitExpressionList(this)}accept(e){return e.visitExpressionList?e.visitExpressionList(this):e.visitChildren(this)}},Xe=class extends _{constructor(e,t,r){super(t,r),this.parser=e}nameValue_list(){return this.getTypedRuleContexts(Qe)}nameValue(e){return this.getTypedRuleContext(Qe,e)}get ruleIndex(){return C.RULE_nameValueList}enterRule(e){e.enterNameValueList&&e.enterNameValueList(this)}exitRule(e){e.exitNameValueList&&e.exitNameValueList(this)}accept(e){return e.visitNameValueList?e.visitNameValueList(this):e.visitChildren(this)}},Qe=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}expression(){return this.getTypedRuleContext(Ge,0)}get ruleIndex(){return C.RULE_nameValue}enterRule(e){e.enterNameValue&&e.enterNameValue(this)}exitRule(e){e.exitNameValue&&e.exitNameValue(this)}accept(e){return e.visitNameValue?e.visitNameValue(this):e.visitChildren(this)}},Je=class extends _{constructor(e,t,r){super(t,r),this.parser=e}nameValueList(){return this.getTypedRuleContext(Xe,0)}expressionList(){return this.getTypedRuleContext(We,0)}get ruleIndex(){return C.RULE_functionCallArguments}enterRule(e){e.enterFunctionCallArguments&&e.enterFunctionCallArguments(this)}exitRule(e){e.exitFunctionCallArguments&&e.exitFunctionCallArguments(this)}accept(e){return e.visitFunctionCallArguments?e.visitFunctionCallArguments(this):e.visitChildren(this)}},Ze=class extends _{constructor(e,t,r){super(t,r),this.parser=e}expression(){return this.getTypedRuleContext(Ge,0)}functionCallArguments(){return this.getTypedRuleContext(Je,0)}get ruleIndex(){return C.RULE_functionCall}enterRule(e){e.enterFunctionCall&&e.enterFunctionCall(this)}exitRule(e){e.exitFunctionCall&&e.exitFunctionCall(this)}accept(e){return e.visitFunctionCall?e.visitFunctionCall(this):e.visitChildren(this)}},et=class extends _{constructor(e,t,r){super(t,r),this.parser=e}assemblyItem_list(){return this.getTypedRuleContexts(tt)}assemblyItem(e){return this.getTypedRuleContext(tt,e)}get ruleIndex(){return C.RULE_assemblyBlock}enterRule(e){e.enterAssemblyBlock&&e.enterAssemblyBlock(this)}exitRule(e){e.exitAssemblyBlock&&e.exitAssemblyBlock(this)}accept(e){return e.visitAssemblyBlock?e.visitAssemblyBlock(this):e.visitChildren(this)}},tt=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}assemblyBlock(){return this.getTypedRuleContext(et,0)}assemblyExpression(){return this.getTypedRuleContext(rt,0)}assemblyLocalDefinition(){return this.getTypedRuleContext(nt,0)}assemblyAssignment(){return this.getTypedRuleContext(at,0)}assemblyStackAssignment(){return this.getTypedRuleContext(lt,0)}labelDefinition(){return this.getTypedRuleContext(ht,0)}assemblySwitch(){return this.getTypedRuleContext(ut,0)}assemblyFunctionDefinition(){return this.getTypedRuleContext(pt,0)}assemblyFor(){return this.getTypedRuleContext(yt,0)}assemblyIf(){return this.getTypedRuleContext(ft,0)}BreakKeyword(){return this.getToken(C.BreakKeyword,0)}ContinueKeyword(){return this.getToken(C.ContinueKeyword,0)}LeaveKeyword(){return this.getToken(C.LeaveKeyword,0)}numberLiteral(){return this.getTypedRuleContext(xt,0)}stringLiteral(){return this.getTypedRuleContext(Et,0)}hexLiteral(){return this.getTypedRuleContext(bt,0)}get ruleIndex(){return C.RULE_assemblyItem}enterRule(e){e.enterAssemblyItem&&e.enterAssemblyItem(this)}exitRule(e){e.exitAssemblyItem&&e.exitAssemblyItem(this)}accept(e){return e.visitAssemblyItem?e.visitAssemblyItem(this):e.visitChildren(this)}},rt=class extends _{constructor(e,t,r){super(t,r),this.parser=e}assemblyCall(){return this.getTypedRuleContext(it,0)}assemblyLiteral(){return this.getTypedRuleContext(gt,0)}assemblyMember(){return this.getTypedRuleContext(st,0)}get ruleIndex(){return C.RULE_assemblyExpression}enterRule(e){e.enterAssemblyExpression&&e.enterAssemblyExpression(this)}exitRule(e){e.exitAssemblyExpression&&e.exitAssemblyExpression(this)}accept(e){return e.visitAssemblyExpression?e.visitAssemblyExpression(this):e.visitChildren(this)}},st=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(vt)}identifier(e){return this.getTypedRuleContext(vt,e)}get ruleIndex(){return C.RULE_assemblyMember}enterRule(e){e.enterAssemblyMember&&e.enterAssemblyMember(this)}exitRule(e){e.exitAssemblyMember&&e.exitAssemblyMember(this)}accept(e){return e.visitAssemblyMember?e.visitAssemblyMember(this):e.visitChildren(this)}},it=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}assemblyExpression_list(){return this.getTypedRuleContexts(rt)}assemblyExpression(e){return this.getTypedRuleContext(rt,e)}get ruleIndex(){return C.RULE_assemblyCall}enterRule(e){e.enterAssemblyCall&&e.enterAssemblyCall(this)}exitRule(e){e.exitAssemblyCall&&e.exitAssemblyCall(this)}accept(e){return e.visitAssemblyCall?e.visitAssemblyCall(this):e.visitChildren(this)}},nt=class extends _{constructor(e,t,r){super(t,r),this.parser=e}assemblyIdentifierOrList(){return this.getTypedRuleContext(ot,0)}assemblyExpression(){return this.getTypedRuleContext(rt,0)}get ruleIndex(){return C.RULE_assemblyLocalDefinition}enterRule(e){e.enterAssemblyLocalDefinition&&e.enterAssemblyLocalDefinition(this)}exitRule(e){e.exitAssemblyLocalDefinition&&e.exitAssemblyLocalDefinition(this)}accept(e){return e.visitAssemblyLocalDefinition?e.visitAssemblyLocalDefinition(this):e.visitChildren(this)}},at=class extends _{constructor(e,t,r){super(t,r),this.parser=e}assemblyIdentifierOrList(){return this.getTypedRuleContext(ot,0)}assemblyExpression(){return this.getTypedRuleContext(rt,0)}get ruleIndex(){return C.RULE_assemblyAssignment}enterRule(e){e.enterAssemblyAssignment&&e.enterAssemblyAssignment(this)}exitRule(e){e.exitAssemblyAssignment&&e.exitAssemblyAssignment(this)}accept(e){return e.visitAssemblyAssignment?e.visitAssemblyAssignment(this):e.visitChildren(this)}},ot=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}assemblyMember(){return this.getTypedRuleContext(st,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ct,0)}get ruleIndex(){return C.RULE_assemblyIdentifierOrList}enterRule(e){e.enterAssemblyIdentifierOrList&&e.enterAssemblyIdentifierOrList(this)}exitRule(e){e.exitAssemblyIdentifierOrList&&e.exitAssemblyIdentifierOrList(this)}accept(e){return e.visitAssemblyIdentifierOrList?e.visitAssemblyIdentifierOrList(this):e.visitChildren(this)}},ct=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier_list(){return this.getTypedRuleContexts(vt)}identifier(e){return this.getTypedRuleContext(vt,e)}get ruleIndex(){return C.RULE_assemblyIdentifierList}enterRule(e){e.enterAssemblyIdentifierList&&e.enterAssemblyIdentifierList(this)}exitRule(e){e.exitAssemblyIdentifierList&&e.exitAssemblyIdentifierList(this)}accept(e){return e.visitAssemblyIdentifierList?e.visitAssemblyIdentifierList(this):e.visitChildren(this)}},lt=class extends _{constructor(e,t,r){super(t,r),this.parser=e}assemblyExpression(){return this.getTypedRuleContext(rt,0)}identifier(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return C.RULE_assemblyStackAssignment}enterRule(e){e.enterAssemblyStackAssignment&&e.enterAssemblyStackAssignment(this)}exitRule(e){e.exitAssemblyStackAssignment&&e.exitAssemblyStackAssignment(this)}accept(e){return e.visitAssemblyStackAssignment?e.visitAssemblyStackAssignment(this):e.visitChildren(this)}},ht=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}get ruleIndex(){return C.RULE_labelDefinition}enterRule(e){e.enterLabelDefinition&&e.enterLabelDefinition(this)}exitRule(e){e.exitLabelDefinition&&e.exitLabelDefinition(this)}accept(e){return e.visitLabelDefinition?e.visitLabelDefinition(this):e.visitChildren(this)}},ut=class extends _{constructor(e,t,r){super(t,r),this.parser=e}assemblyExpression(){return this.getTypedRuleContext(rt,0)}assemblyCase_list(){return this.getTypedRuleContexts(dt)}assemblyCase(e){return this.getTypedRuleContext(dt,e)}get ruleIndex(){return C.RULE_assemblySwitch}enterRule(e){e.enterAssemblySwitch&&e.enterAssemblySwitch(this)}exitRule(e){e.exitAssemblySwitch&&e.exitAssemblySwitch(this)}accept(e){return e.visitAssemblySwitch?e.visitAssemblySwitch(this):e.visitChildren(this)}},dt=class extends _{constructor(e,t,r){super(t,r),this.parser=e}assemblyLiteral(){return this.getTypedRuleContext(gt,0)}assemblyBlock(){return this.getTypedRuleContext(et,0)}get ruleIndex(){return C.RULE_assemblyCase}enterRule(e){e.enterAssemblyCase&&e.enterAssemblyCase(this)}exitRule(e){e.exitAssemblyCase&&e.exitAssemblyCase(this)}accept(e){return e.visitAssemblyCase?e.visitAssemblyCase(this):e.visitChildren(this)}},pt=class extends _{constructor(e,t,r){super(t,r),this.parser=e}identifier(){return this.getTypedRuleContext(vt,0)}assemblyBlock(){return this.getTypedRuleContext(et,0)}assemblyIdentifierList(){return this.getTypedRuleContext(ct,0)}assemblyFunctionReturns(){return this.getTypedRuleContext(mt,0)}get ruleIndex(){return C.RULE_assemblyFunctionDefinition}enterRule(e){e.enterAssemblyFunctionDefinition&&e.enterAssemblyFunctionDefinition(this)}exitRule(e){e.exitAssemblyFunctionDefinition&&e.exitAssemblyFunctionDefinition(this)}accept(e){return e.visitAssemblyFunctionDefinition?e.visitAssemblyFunctionDefinition(this):e.visitChildren(this)}},mt=class extends _{constructor(e,t,r){super(t,r),this.parser=e}assemblyIdentifierList(){return this.getTypedRuleContext(ct,0)}get ruleIndex(){return C.RULE_assemblyFunctionReturns}enterRule(e){e.enterAssemblyFunctionReturns&&e.enterAssemblyFunctionReturns(this)}exitRule(e){e.exitAssemblyFunctionReturns&&e.exitAssemblyFunctionReturns(this)}accept(e){return e.visitAssemblyFunctionReturns?e.visitAssemblyFunctionReturns(this):e.visitChildren(this)}},yt=class extends _{constructor(e,t,r){super(t,r),this.parser=e}assemblyExpression_list(){return this.getTypedRuleContexts(rt)}assemblyExpression(e){return this.getTypedRuleContext(rt,e)}assemblyBlock_list(){return this.getTypedRuleContexts(et)}assemblyBlock(e){return this.getTypedRuleContext(et,e)}get ruleIndex(){return C.RULE_assemblyFor}enterRule(e){e.enterAssemblyFor&&e.enterAssemblyFor(this)}exitRule(e){e.exitAssemblyFor&&e.exitAssemblyFor(this)}accept(e){return e.visitAssemblyFor?e.visitAssemblyFor(this):e.visitChildren(this)}},ft=class extends _{constructor(e,t,r){super(t,r),this.parser=e}assemblyExpression(){return this.getTypedRuleContext(rt,0)}assemblyBlock(){return this.getTypedRuleContext(et,0)}get ruleIndex(){return C.RULE_assemblyIf}enterRule(e){e.enterAssemblyIf&&e.enterAssemblyIf(this)}exitRule(e){e.exitAssemblyIf&&e.exitAssemblyIf(this)}accept(e){return e.visitAssemblyIf?e.visitAssemblyIf(this):e.visitChildren(this)}},gt=class extends _{constructor(e,t,r){super(t,r),this.parser=e}stringLiteral(){return this.getTypedRuleContext(Et,0)}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}HexNumber(){return this.getToken(C.HexNumber,0)}hexLiteral(){return this.getTypedRuleContext(bt,0)}BooleanLiteral(){return this.getToken(C.BooleanLiteral,0)}get ruleIndex(){return C.RULE_assemblyLiteral}enterRule(e){e.enterAssemblyLiteral&&e.enterAssemblyLiteral(this)}exitRule(e){e.exitAssemblyLiteral&&e.exitAssemblyLiteral(this)}accept(e){return e.visitAssemblyLiteral?e.visitAssemblyLiteral(this):e.visitChildren(this)}},wt=class extends _{constructor(e,t,r){super(t,r),this.parser=e}expression_list(){return this.getTypedRuleContexts(Ge)}expression(e){return this.getTypedRuleContext(Ge,e)}get ruleIndex(){return C.RULE_tupleExpression}enterRule(e){e.enterTupleExpression&&e.enterTupleExpression(this)}exitRule(e){e.exitTupleExpression&&e.exitTupleExpression(this)}accept(e){return e.visitTupleExpression?e.visitTupleExpression(this):e.visitChildren(this)}},xt=class extends _{constructor(e,t,r){super(t,r),this.parser=e}DecimalNumber(){return this.getToken(C.DecimalNumber,0)}HexNumber(){return this.getToken(C.HexNumber,0)}NumberUnit(){return this.getToken(C.NumberUnit,0)}get ruleIndex(){return C.RULE_numberLiteral}enterRule(e){e.enterNumberLiteral&&e.enterNumberLiteral(this)}exitRule(e){e.exitNumberLiteral&&e.exitNumberLiteral(this)}accept(e){return e.visitNumberLiteral?e.visitNumberLiteral(this):e.visitChildren(this)}},vt=class extends _{constructor(e,t,r){super(t,r),this.parser=e}ReceiveKeyword(){return this.getToken(C.ReceiveKeyword,0)}GlobalKeyword(){return this.getToken(C.GlobalKeyword,0)}ConstructorKeyword(){return this.getToken(C.ConstructorKeyword,0)}PayableKeyword(){return this.getToken(C.PayableKeyword,0)}LeaveKeyword(){return this.getToken(C.LeaveKeyword,0)}Identifier(){return this.getToken(C.Identifier,0)}get ruleIndex(){return C.RULE_identifier}enterRule(e){e.enterIdentifier&&e.enterIdentifier(this)}exitRule(e){e.exitIdentifier&&e.exitIdentifier(this)}accept(e){return e.visitIdentifier?e.visitIdentifier(this):e.visitChildren(this)}},bt=class extends _{constructor(e,t,r){super(t,r),this.parser=e}HexLiteralFragment_list(){return this.getTokens(C.HexLiteralFragment)}HexLiteralFragment(e){return this.getToken(C.HexLiteralFragment,e)}get ruleIndex(){return C.RULE_hexLiteral}enterRule(e){e.enterHexLiteral&&e.enterHexLiteral(this)}exitRule(e){e.exitHexLiteral&&e.exitHexLiteral(this)}accept(e){return e.visitHexLiteral?e.visitHexLiteral(this):e.visitChildren(this)}},_t=class extends _{constructor(e,t,r){super(t,r),this.parser=e}userDefinedTypeName_list(){return this.getTypedRuleContexts(fe)}userDefinedTypeName(e){return this.getTypedRuleContext(fe,e)}get ruleIndex(){return C.RULE_overrideSpecifier}enterRule(e){e.enterOverrideSpecifier&&e.enterOverrideSpecifier(this)}exitRule(e){e.exitOverrideSpecifier&&e.exitOverrideSpecifier(this)}accept(e){return e.visitOverrideSpecifier?e.visitOverrideSpecifier(this):e.visitChildren(this)}},Et=class extends _{constructor(e,t,r){super(t,r),this.parser=e}StringLiteralFragment_list(){return this.getTokens(C.StringLiteralFragment)}StringLiteralFragment(e){return this.getToken(C.StringLiteralFragment,e)}get ruleIndex(){return C.RULE_stringLiteral}enterRule(e){e.enterStringLiteral&&e.enterStringLiteral(this)}exitRule(e){e.exitStringLiteral&&e.exitStringLiteral(this)}accept(e){return e.visitStringLiteral?e.visitStringLiteral(this):e.visitChildren(this)}},Tt=["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"],St=["+","-","*","/","**","%","<<",">>","&&","||","&","^","<",">","<=",">=","==","!=","=","^=","&=","<<=",">>=","+=","-=","*=","/=","%=","|","|="],kt=["-","+","++","--","~","after","delete","!"],Rt=class extends x{constructor(e){super(),this.options=e,this.result=null}defaultResult(){throw new Error("Unknown node")}aggregateResult(){return{type:""}}visitSourceUnit(e){const t={type:"SourceUnit",children:(e.children??[]).slice(0,-1).map(e=>this.visit(e))},r=this._addMeta(t,e);return this.result=r,r}visitContractPart(e){return this.visit(e.getChild(0))}visitContractDefinition(e){const t=this._toText(e.identifier()),r=this._toText(e.getChild(0));this._currentContract=t;const s=e.customStorageLayout_list();if(s.length>1)throw new Error("Only one custom storage layout is allowed per contract");const i={type:"ContractDefinition",name:t,baseContracts:e.inheritanceSpecifier_list().map(e=>this.visitInheritanceSpecifier(e)),subNodes:e.contractPart_list().map(e=>this.visit(e)),kind:r};return 1===s.length&&(i.storageLayout=this.visitExpression(s[0].expression())),this._addMeta(i,e)}visitStateVariableDeclaration(e){const t=this.visitTypeName(e.typeName()),r=e.identifier(),s=this._toText(r);let i=null;const n=e.expression();n&&(i=this.visitExpression(n));let a="default";e.InternalKeyword_list().length>0?a="internal":e.PublicKeyword_list().length>0?a="public":e.PrivateKeyword_list().length>0&&(a="private");let o,c=!1;e.ConstantKeyword_list().length>0&&(c=!0);const l=e.overrideSpecifier_list();o=0===l.length?null:l[0].userDefinedTypeName_list().map(e=>this.visitUserDefinedTypeName(e));let h=!1;e.ImmutableKeyword_list().length>0&&(h=!0);let u=!1;e.TransientKeyword_list().length>0&&(u=!0);const d={type:"VariableDeclaration",typeName:t,name:s,identifier:this.visitIdentifier(r),expression:i,visibility:a,isStateVar:!0,isDeclaredConst:c,isIndexed:!1,isImmutable:h,isTransient:u,override:o,storageLocation:null},p={type:"StateVariableDeclaration",variables:[this._addMeta(d,e)],initialValue:i};return this._addMeta(p,e)}visitVariableDeclaration(e){let t=null;const r=e.storageLocation();r&&(t=this._toText(r));const s=e.identifier(),i={type:"VariableDeclaration",typeName:this.visitTypeName(e.typeName()),name:this._toText(s),identifier:this.visitIdentifier(s),storageLocation:t,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(i,e)}visitVariableDeclarationStatement(e){let t=[];const r=e.variableDeclaration(),s=e.identifierList(),i=e.variableDeclarationList();r?t=[this.visitVariableDeclaration(r)]:s?t=this.buildIdentifierList(s):i&&(t=this.buildVariableDeclarationList(i));let n=null;const a=e.expression();a&&(n=this.visitExpression(a));const o={type:"VariableDeclarationStatement",variables:t,initialValue:n};return this._addMeta(o,e)}visitStatement(e){return this.visit(e.getChild(0))}visitSimpleStatement(e){return this.visit(e.getChild(0))}visitEventDefinition(e){const t=e.eventParameterList().eventParameter_list().map(e=>{const t=this.visitTypeName(e.typeName());let r=null;const s=e.identifier();s&&(r=this._toText(s));const i={type:"VariableDeclaration",typeName:t,name:r,identifier:s?this.visitIdentifier(s):null,isStateVar:!1,isIndexed:Boolean(e.IndexedKeyword()),storageLocation:null,expression:null};return this._addMeta(i,e)}),r={type:"EventDefinition",name:this._toText(e.identifier()),parameters:t,isAnonymous:Boolean(e.AnonymousKeyword())};return this._addMeta(r,e)}visitBlock(e){const t={type:"Block",statements:e.statement_list().map(e=>this.visitStatement(e))};return this._addMeta(t,e)}visitParameter(e){let t=null;const r=e.storageLocation();r&&(t=this._toText(r));let s=null;const i=e.identifier();i&&(s=this._toText(i));const n={type:"VariableDeclaration",typeName:this.visitTypeName(e.typeName()),name:s,identifier:i?this.visitIdentifier(i):null,storageLocation:t,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(n,e)}visitFunctionDefinition(e){let t=!1,r=!1,s=!1,i=!1,n=null,a=[],o=null,c=null;const l=e.block();l&&(c=this.visitBlock(l));const h=e.modifierList().modifierInvocation_list().map(e=>this.visitModifierInvocation(e));let u=null;e.modifierList().stateMutability_list().length>0&&(u=this._stateMutabilityToText(e.modifierList().stateMutability(0)));const d=e.returnParameters();let p,m="default";switch(e.modifierList().ExternalKeyword_list().length>0?m="external":e.modifierList().InternalKeyword_list().length>0?m="internal":e.modifierList().PublicKeyword_list().length>0?m="public":e.modifierList().PrivateKeyword_list().length>0&&(m="private"),this._toText(e.functionDescriptor().getChild(0))){case"constructor":a=e.parameterList().parameter_list().map(e=>this.visit(e)),t=!0;break;case"fallback":a=e.parameterList().parameter_list().map(e=>this.visit(e)),o=d?this.visitReturnParameters(d):null,r=!0;break;case"receive":s=!0;break;case"function":{const s=e.functionDescriptor().identifier();n=s?this._toText(s):"",a=e.parameterList().parameter_list().map(e=>this.visit(e)),o=d?this.visitReturnParameters(d):null,t=n===this._currentContract,r=""===n;break}}e.modifierList().VirtualKeyword_list().length>0&&(i=!0);const y=e.modifierList().overrideSpecifier_list();p=0===y.length?null:y[0].userDefinedTypeName_list().map(e=>this.visitUserDefinedTypeName(e));const f={type:"FunctionDefinition",name:n,parameters:a,returnParameters:o,body:c,visibility:m,modifiers:h,override:p,isConstructor:t,isReceiveEther:s,isFallback:r,isVirtual:i,stateMutability:u};return this._addMeta(f,e)}visitEnumDefinition(e){const t={type:"EnumDefinition",name:this._toText(e.identifier()),members:e.enumValue_list().map(e=>this.visitEnumValue(e))};return this._addMeta(t,e)}visitEnumValue(e){const t={type:"EnumValue",name:this._toText(e.identifier())};return this._addMeta(t,e)}visitElementaryTypeName(e){const t={type:"ElementaryTypeName",name:this._toText(e),stateMutability:null};return this._addMeta(t,e)}visitIdentifier(e){const t={type:"Identifier",name:this._toText(e)};return this._addMeta(t,e)}visitTypeName(e){if(e.children&&e.children.length>2){let t=null;if(4===e.children.length){const r=e.expression();if(null==r)throw new Error("Assertion error: a typeName with 4 children should have an expression");t=this.visitExpression(r)}const r={type:"ArrayTypeName",baseTypeName:this.visitTypeName(e.typeName()),length:t};return this._addMeta(r,e)}if(2===e.children?.length){const t={type:"ElementaryTypeName",name:this._toText(e.getChild(0)),stateMutability:this._toText(e.getChild(1))};return this._addMeta(t,e)}if(e.elementaryTypeName())return this.visitElementaryTypeName(e.elementaryTypeName());if(e.userDefinedTypeName())return this.visitUserDefinedTypeName(e.userDefinedTypeName());if(e.mapping())return this.visitMapping(e.mapping());if(e.functionTypeName())return this.visitFunctionTypeName(e.functionTypeName());throw new Error("Assertion error: unhandled type name case")}visitUserDefinedTypeName(e){const t={type:"UserDefinedTypeName",namePath:this._toText(e)};return this._addMeta(t,e)}visitUsingForDeclaration(e){let t=null;const r=e.typeName();r&&(t=this.visitTypeName(r));const s=Boolean(e.GlobalKeyword()),i=e.usingForObject(),n=i.userDefinedTypeName();let a;if(n)a={type:"UsingForDeclaration",isGlobal:s,typeName:t,libraryName:this._toText(n),functions:[],operators:[]};else{const e=i.usingForObjectDirective_list(),r=[],n=[];for(const t of e){r.push(this._toText(t.userDefinedTypeName()));const e=t.userDefinableOperators();e?n.push(this._toText(e)):n.push(null)}a={type:"UsingForDeclaration",isGlobal:s,typeName:t,libraryName:null,functions:r,operators:n}}return this._addMeta(a,e)}visitPragmaDirective(e){const t=e.pragmaValue().version();let r=this._toText(e.pragmaValue());t?.children&&(r=t.children.map(e=>this._toText(e)).join(" "));const s={type:"PragmaDirective",name:this._toText(e.pragmaName()),value:r};return this._addMeta(s,e)}visitInheritanceSpecifier(e){const t=e.expressionList(),r=t?t.expression_list().map(e=>this.visitExpression(e)):[],s={type:"InheritanceSpecifier",baseName:this.visitUserDefinedTypeName(e.userDefinedTypeName()),arguments:r};return this._addMeta(s,e)}visitModifierInvocation(e){const t=e.expressionList();let r;r=null!=t?t.expression_list().map(e=>this.visit(e)):e.children&&e.children.length>1?[]:null;const s={type:"ModifierInvocation",name:this._toText(e.identifier()),arguments:r};return this._addMeta(s,e)}visitFunctionTypeName(e){const t=e.functionTypeParameterList(0).functionTypeParameter_list().map(e=>this.visitFunctionTypeParameter(e));let r=[];e.functionTypeParameterList_list().length>1&&(r=e.functionTypeParameterList(1).functionTypeParameter_list().map(e=>this.visitFunctionTypeParameter(e)));let s="default";e.InternalKeyword_list().length>0?s="internal":e.ExternalKeyword_list().length>0&&(s="external");let i=null;e.stateMutability_list().length>0&&(i=this._toText(e.stateMutability(0)));const n={type:"FunctionTypeName",parameterTypes:t,returnTypes:r,visibility:s,stateMutability:i};return this._addMeta(n,e)}visitFunctionTypeParameter(e){let t=null;e.storageLocation()&&(t=this._toText(e.storageLocation()));const r={type:"VariableDeclaration",typeName:this.visitTypeName(e.typeName()),name:null,identifier:null,storageLocation:t,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(r,e)}visitThrowStatement(e){return this._addMeta({type:"ThrowStatement"},e)}visitReturnStatement(e){let t=null;const r=e.expression();r&&(t=this.visitExpression(r));const s={type:"ReturnStatement",expression:t};return this._addMeta(s,e)}visitEmitStatement(e){const t={type:"EmitStatement",eventCall:this.visitFunctionCall(e.functionCall())};return this._addMeta(t,e)}visitCustomErrorDefinition(e){const t={type:"CustomErrorDefinition",name:this._toText(e.identifier()),parameters:this.visitParameterList(e.parameterList())};return this._addMeta(t,e)}visitTypeDefinition(e){const t={type:"TypeDefinition",name:this._toText(e.identifier()),definition:this.visitElementaryTypeName(e.elementaryTypeName())};return this._addMeta(t,e)}visitRevertStatement(e){const t={type:"RevertStatement",revertCall:this.visitFunctionCall(e.functionCall())};return this._addMeta(t,e)}visitFunctionCall(e){let t=[];const r=[],s=[],i=e.functionCallArguments(),n=i.expressionList(),a=i.nameValueList();if(n)t=n.expression_list().map(e=>this.visitExpression(e));else if(a)for(const e of a.nameValue_list())t.push(this.visitExpression(e.expression())),r.push(this._toText(e.identifier())),s.push(this.visitIdentifier(e.identifier()));const o={type:"FunctionCall",expression:this.visitExpression(e.expression()),arguments:t,names:r,identifiers:s};return this._addMeta(o,e)}visitStructDefinition(e){const t={type:"StructDefinition",name:this._toText(e.identifier()),members:e.variableDeclaration_list().map(e=>this.visitVariableDeclaration(e))};return this._addMeta(t,e)}visitWhileStatement(e){const t={type:"WhileStatement",condition:this.visitExpression(e.expression()),body:this.visitStatement(e.statement())};return this._addMeta(t,e)}visitDoWhileStatement(e){const t={type:"DoWhileStatement",condition:this.visitExpression(e.expression()),body:this.visitStatement(e.statement())};return this._addMeta(t,e)}visitIfStatement(e){const t=this.visitStatement(e.statement(0));let r=null;e.statement_list().length>1&&(r=this.visitStatement(e.statement(1)));const s={type:"IfStatement",condition:this.visitExpression(e.expression()),trueBody:t,falseBody:r};return this._addMeta(s,e)}visitTryStatement(e){let t=null;const r=e.returnParameters();r&&(t=this.visitReturnParameters(r));const s=e.catchClause_list().map(e=>this.visitCatchClause(e)),i={type:"TryStatement",expression:this.visitExpression(e.expression()),returnParameters:t,body:this.visitBlock(e.block()),catchClauses:s};return this._addMeta(i,e)}visitCatchClause(e){let t=null;if(e.parameterList()&&(t=this.visitParameterList(e.parameterList())),e.identifier()&&"Error"!==this._toText(e.identifier())&&"Panic"!==this._toText(e.identifier()))throw new Error('Expected "Error" or "Panic" identifier in catch clause');let r=null;const s=e.identifier();s&&(r=this._toText(s));const i={type:"CatchClause",isReasonStringType:"Error"===r,kind:r,parameters:t,body:this.visitBlock(e.block())};return this._addMeta(i,e)}visitExpressionStatement(e){if(!e)return null;const t={type:"ExpressionStatement",expression:this.visitExpression(e.expression())};return this._addMeta(t,e)}visitNumberLiteral(e){const t=this._toText(e.getChild(0));let r=null;2===e.children?.length&&(r=this._toText(e.getChild(1)));const s={type:"NumberLiteral",number:t,subdenomination:r};return this._addMeta(s,e)}visitMappingKey(e){if(e.elementaryTypeName())return this.visitElementaryTypeName(e.elementaryTypeName());if(e.userDefinedTypeName())return this.visitUserDefinedTypeName(e.userDefinedTypeName());throw new Error("Expected MappingKey to have either elementaryTypeName or userDefinedTypeName")}visitMapping(e){const t=e.mappingKeyName(),r=e.mappingValueName(),s={type:"Mapping",keyType:this.visitMappingKey(e.mappingKey()),keyName:t?this.visitIdentifier(t.identifier()):null,valueType:this.visitTypeName(e.typeName()),valueName:r?this.visitIdentifier(r.identifier()):null};return this._addMeta(s,e)}visitModifierDefinition(e){let t=null;e.parameterList()&&(t=this.visitParameterList(e.parameterList()));let r,s=!1;e.VirtualKeyword_list().length>0&&(s=!0);const i=e.overrideSpecifier_list();r=0===i.length?null:i[0].userDefinedTypeName_list().map(e=>this.visitUserDefinedTypeName(e));let n=null;const a=e.block();a&&(n=this.visitBlock(a));const o={type:"ModifierDefinition",name:this._toText(e.identifier()),parameters:t,body:n,isVirtual:s,override:r};return this._addMeta(o,e)}visitUncheckedStatement(e){const t={type:"UncheckedStatement",block:this.visitBlock(e.block())};return this._addMeta(t,e)}visitExpression(e){let t;switch(e.children.length){case 1:{const t=e.primaryExpression();if(null==t)throw new Error("Assertion error: primary expression should exist when children length is 1");return this.visitPrimaryExpression(t)}case 2:if(t=this._toText(e.getChild(0)),"new"===t){const t={type:"NewExpression",typeName:this.visitTypeName(e.typeName())};return this._addMeta(t,e)}if(kt.includes(t)){const r={type:"UnaryOperation",operator:t,subExpression:this.visitExpression(e.expression(0)),isPrefix:!0};return this._addMeta(r,e)}if(t=this._toText(e.getChild(1)),["++","--"].includes(t)){const r={type:"UnaryOperation",operator:t,subExpression:this.visitExpression(e.expression(0)),isPrefix:!1};return this._addMeta(r,e)}break;case 3:if("("===this._toText(e.getChild(0))&&")"===this._toText(e.getChild(2))){const t={type:"TupleExpression",components:[this.visitExpression(e.expression(0))],isArray:!1};return this._addMeta(t,e)}if(t=this._toText(e.getChild(1)),"."===t){const t={type:"MemberAccess",expression:this.visitExpression(e.expression(0)),memberName:this._toText(e.identifier())};return this._addMeta(t,e)}if(function(e){return St.includes(e)}(t)){const r={type:"BinaryOperation",operator:t,left:this.visitExpression(e.expression(0)),right:this.visitExpression(e.expression(1))};return this._addMeta(r,e)}break;case 4:if("("===this._toText(e.getChild(1))&&")"===this._toText(e.getChild(3))){let t=[];const r=[],s=[],i=e.functionCallArguments();if(i.expressionList())t=i.expressionList().expression_list().map(e=>this.visitExpression(e));else if(i.nameValueList())for(const e of i.nameValueList().nameValue_list())t.push(this.visitExpression(e.expression())),r.push(this._toText(e.identifier())),s.push(this.visitIdentifier(e.identifier()));const n={type:"FunctionCall",expression:this.visitExpression(e.expression(0)),arguments:t,names:r,identifiers:s};return this._addMeta(n,e)}if("["===this._toText(e.getChild(1))&&"]"===this._toText(e.getChild(3))){if(":"===e.getChild(2).getText()){const t={type:"IndexRangeAccess",base:this.visitExpression(e.expression(0))};return this._addMeta(t,e)}const t={type:"IndexAccess",base:this.visitExpression(e.expression(0)),index:this.visitExpression(e.expression(1))};return this._addMeta(t,e)}if("{"===this._toText(e.getChild(1))&&"}"===this._toText(e.getChild(3))){const t={type:"NameValueExpression",expression:this.visitExpression(e.expression(0)),arguments:this.visitNameValueList(e.nameValueList())};return this._addMeta(t,e)}break;case 5:if("?"===this._toText(e.getChild(1))&&":"===this._toText(e.getChild(3))){const t={type:"Conditional",condition:this.visitExpression(e.expression(0)),trueExpression:this.visitExpression(e.expression(1)),falseExpression:this.visitExpression(e.expression(2))};return this._addMeta(t,e)}if("["===this._toText(e.getChild(1))&&":"===this._toText(e.getChild(2))&&"]"===this._toText(e.getChild(4))){const t={type:"IndexRangeAccess",base:this.visitExpression(e.expression(0)),indexEnd:this.visitExpression(e.expression(1))};return this._addMeta(t,e)}if("["===this._toText(e.getChild(1))&&":"===this._toText(e.getChild(3))&&"]"===this._toText(e.getChild(4))){const t={type:"IndexRangeAccess",base:this.visitExpression(e.expression(0)),indexStart:this.visitExpression(e.expression(1))};return this._addMeta(t,e)}break;case 6:if("["===this._toText(e.getChild(1))&&":"===this._toText(e.getChild(3))&&"]"===this._toText(e.getChild(5))){const t={type:"IndexRangeAccess",base:this.visitExpression(e.expression(0)),indexStart:this.visitExpression(e.expression(1)),indexEnd:this.visitExpression(e.expression(2))};return this._addMeta(t,e)}}throw new Error("Unrecognized expression")}visitNameValueList(e){const t=[],r=[],s=[];for(const i of e.nameValue_list())t.push(this._toText(i.identifier())),r.push(this.visitIdentifier(i.identifier())),s.push(this.visitExpression(i.expression()));const i={type:"NameValueList",names:t,identifiers:r,arguments:s};return this._addMeta(i,e)}visitFileLevelConstant(e){const t={type:"FileLevelConstant",typeName:this.visitTypeName(e.typeName()),name:this._toText(e.identifier()),initialValue:this.visitExpression(e.expression()),isDeclaredConst:!0,isImmutable:!1};return this._addMeta(t,e)}visitForStatement(e){let t=this.visitExpressionStatement(e.expressionStatement());t&&(t=t.expression);const r={type:"ForStatement",initExpression:e.simpleStatement()?this.visitSimpleStatement(e.simpleStatement()):null,conditionExpression:t,loopExpression:{type:"ExpressionStatement",expression:e.expression()?this.visitExpression(e.expression()):null},body:this.visitStatement(e.statement())};return this._addMeta(r,e)}visitHexLiteral(e){const t=e.HexLiteralFragment_list().map(e=>this._toText(e)).map(e=>e.substring(4,e.length-1)),r={type:"HexLiteral",value:t.join(""),parts:t};return this._addMeta(r,e)}visitPrimaryExpression(e){if(e.BooleanLiteral()){const t={type:"BooleanLiteral",value:"true"===this._toText(e.BooleanLiteral())};return this._addMeta(t,e)}if(e.hexLiteral())return this.visitHexLiteral(e.hexLiteral());if(e.stringLiteral()){const t=e.stringLiteral().StringLiteralFragment_list().map(e=>{let t=this._toText(e);const r="unicode"===t.slice(0,7);r&&(t=t.slice(7));const s="'"===t[0],i=t.substring(1,t.length-1);return{value:s?i.replace(new RegExp("\\\\'","g"),"'"):i.replace(new RegExp('\\\\"',"g"),'"'),isUnicode:r}}),r=t.map(e=>e.value),s={type:"StringLiteral",value:r.join(""),parts:r,isUnicode:t.map(e=>e.isUnicode)};return this._addMeta(s,e)}if(e.numberLiteral())return this.visitNumberLiteral(e.numberLiteral());if(e.TypeKeyword()){const t={type:"Identifier",name:"type"};return this._addMeta(t,e)}return e.typeName()?this.visitTypeName(e.typeName()):this.visit(e.getChild(0))}visitTupleExpression(e){const t=e.children.slice(1,-1),r={type:"TupleExpression",components:this._mapCommasToNulls(t).map(e=>null===e?null:this.visit(e)),isArray:"["===this._toText(e.getChild(0))};return this._addMeta(r,e)}buildIdentifierList(e){const t=e.children.slice(1,-1),r=e.identifier_list();let s=0;return this._mapCommasToNulls(t).map(e=>{if(null===e)return null;const t=r[s];s++;const i={type:"VariableDeclaration",name:this._toText(t),identifier:this.visitIdentifier(t),isStateVar:!1,isIndexed:!1,typeName:null,storageLocation:null,expression:null};return this._addMeta(i,t)})}buildVariableDeclarationList(e){const t=e.variableDeclaration_list();let r=0;return this._mapCommasToNulls(e.children??[]).map(e=>{if(!e)return null;const s=t[r];r++;let i=null;s.storageLocation()&&(i=this._toText(s.storageLocation()));const n=s.identifier(),a={type:"VariableDeclaration",name:this._toText(n),identifier:this.visitIdentifier(n),typeName:this.visitTypeName(s.typeName()),storageLocation:i,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(a,s)})}visitImportDirective(e){const t=this._toText(e.importPath());let r=null,s=null,i=null,n=null;if(e.importDeclaration_list().length>0)i=e.importDeclaration_list().map(e=>{const t=this._toText(e.identifier(0));let r=null;return e.identifier_list().length>1&&(r=this._toText(e.identifier(1))),[t,r]}),n=e.importDeclaration_list().map(e=>{const t=this.visitIdentifier(e.identifier(0));let r=null;return e.identifier_list().length>1&&(r=this.visitIdentifier(e.identifier(1))),[t,r]});else{const t=e.identifier_list();if(0===t.length);else if(1===t.length){const t=e.identifier(0);r=this._toText(t),s=this.visitIdentifier(t)}else{if(2!==t.length)throw new Error("Assertion error: an import should have one or two identifiers");{const t=e.identifier(1);r=this._toText(t),s=this.visitIdentifier(t)}}}const a=t.substring(1,t.length-1),o={type:"StringLiteral",value:a,parts:[a],isUnicode:[!1]},c={type:"ImportDirective",path:a,pathLiteral:this._addMeta(o,e.importPath()),unitAlias:r,unitAliasIdentifier:s,symbolAliases:i,symbolAliasesIdentifiers:n};return this._addMeta(c,e)}buildEventParameterList(e){return e.eventParameter_list().map(e=>{const t=this.visit(e.typeName()),r=e.identifier();return{type:"VariableDeclaration",typeName:t,name:r?this._toText(r):null,isStateVar:!1,isIndexed:!!e.IndexedKeyword()}})}visitReturnParameters(e){return this.visitParameterList(e.parameterList())}visitParameterList(e){return e.parameter_list().map(e=>this.visitParameter(e))}visitInlineAssemblyStatement(e){let t=null;e.StringLiteralFragment()&&(t=this._toText(e.StringLiteralFragment()),t=t.substring(1,t.length-1));const r=[],s=e.inlineAssemblyStatementFlag();if(s){const e=this._toText(s.stringLiteral());r.push(e.slice(1,e.length-1))}const i={type:"InlineAssemblyStatement",language:t,flags:r,body:this.visitAssemblyBlock(e.assemblyBlock())};return this._addMeta(i,e)}visitAssemblyBlock(e){const t={type:"AssemblyBlock",operations:e.assemblyItem_list().map(e=>this.visitAssemblyItem(e))};return this._addMeta(t,e)}visitAssemblyItem(e){let t;if(e.hexLiteral())return this.visitHexLiteral(e.hexLiteral());if(e.stringLiteral()){t=this._toText(e.stringLiteral());const r=t.substring(1,t.length-1),s={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(s,e)}if(e.BreakKeyword()){const t={type:"Break"};return this._addMeta(t,e)}if(e.ContinueKeyword()){const t={type:"Continue"};return this._addMeta(t,e)}return this.visit(e.getChild(0))}visitAssemblyExpression(e){return this.visit(e.getChild(0))}visitAssemblyCall(e){const t={type:"AssemblyCall",functionName:this._toText(e.getChild(0)),arguments:e.assemblyExpression_list().map(e=>this.visitAssemblyExpression(e))};return this._addMeta(t,e)}visitAssemblyLiteral(e){let t;if(e.stringLiteral()){t=this._toText(e);const r=t.substring(1,t.length-1),s={type:"StringLiteral",value:r,parts:[r],isUnicode:[!1]};return this._addMeta(s,e)}if(e.BooleanLiteral()){const t={type:"BooleanLiteral",value:"true"===this._toText(e.BooleanLiteral())};return this._addMeta(t,e)}if(e.DecimalNumber()){const t={type:"DecimalNumber",value:this._toText(e)};return this._addMeta(t,e)}if(e.HexNumber()){const t={type:"HexNumber",value:this._toText(e)};return this._addMeta(t,e)}if(e.hexLiteral())return this.visitHexLiteral(e.hexLiteral());throw new Error("Should never reach here")}visitAssemblySwitch(e){const t={type:"AssemblySwitch",expression:this.visitAssemblyExpression(e.assemblyExpression()),cases:e.assemblyCase_list().map(e=>this.visitAssemblyCase(e))};return this._addMeta(t,e)}visitAssemblyCase(e){let t=null;"case"===this._toText(e.getChild(0))&&(t=this.visitAssemblyLiteral(e.assemblyLiteral()));const r={type:"AssemblyCase",block:this.visitAssemblyBlock(e.assemblyBlock()),value:t,default:null===t};return this._addMeta(r,e)}visitAssemblyLocalDefinition(e){const t=e.assemblyIdentifierOrList();let r;r=t.identifier()?[this.visitIdentifier(t.identifier())]:t.assemblyMember()?[this.visitAssemblyMember(t.assemblyMember())]:t.assemblyIdentifierList().identifier_list().map(e=>this.visitIdentifier(e));let s=null;e.assemblyExpression()&&(s=this.visitAssemblyExpression(e.assemblyExpression()));const i={type:"AssemblyLocalDefinition",names:r,expression:s};return this._addMeta(i,e)}visitAssemblyFunctionDefinition(e){const t=e.assemblyIdentifierList(),r=t?t.identifier_list().map(e=>this.visitIdentifier(e)):[],s=e.assemblyFunctionReturns(),i=s?s.assemblyIdentifierList().identifier_list().map(e=>this.visitIdentifier(e)):[],n={type:"AssemblyFunctionDefinition",name:this._toText(e.identifier()),arguments:r,returnArguments:i,body:this.visitAssemblyBlock(e.assemblyBlock())};return this._addMeta(n,e)}visitAssemblyAssignment(e){const t=e.assemblyIdentifierOrList();let r;r=t.identifier()?[this.visitIdentifier(t.identifier())]:t.assemblyMember()?[this.visitAssemblyMember(t.assemblyMember())]:t.assemblyIdentifierList().identifier_list().map(e=>this.visitIdentifier(e));const s={type:"AssemblyAssignment",names:r,expression:this.visitAssemblyExpression(e.assemblyExpression())};return this._addMeta(s,e)}visitAssemblyMember(e){const[t,r]=e.identifier_list(),s={type:"AssemblyMemberAccess",expression:this.visitIdentifier(t),memberName:this.visitIdentifier(r)};return this._addMeta(s,e)}visitLabelDefinition(e){const t={type:"LabelDefinition",name:this._toText(e.identifier())};return this._addMeta(t,e)}visitAssemblyStackAssignment(e){const t={type:"AssemblyStackAssignment",name:this._toText(e.identifier()),expression:this.visitAssemblyExpression(e.assemblyExpression())};return this._addMeta(t,e)}visitAssemblyFor(e){const t={type:"AssemblyFor",pre:this.visit(e.getChild(1)),condition:this.visit(e.getChild(2)),post:this.visit(e.getChild(3)),body:this.visit(e.getChild(4))};return this._addMeta(t,e)}visitAssemblyIf(e){const t={type:"AssemblyIf",condition:this.visitAssemblyExpression(e.assemblyExpression()),body:this.visitAssemblyBlock(e.assemblyBlock())};return this._addMeta(t,e)}visitContinueStatement(e){return this._addMeta({type:"ContinueStatement"},e)}visitBreakStatement(e){return this._addMeta({type:"BreakStatement"},e)}_toText(e){const t=e.getText();if(null==t)throw new Error("Assertion error: text should never be undefined");return t}_stateMutabilityToText(e){if(e.PureKeyword())return"pure";if(e.ConstantKeyword())return"constant";if(e.PayableKeyword())return"payable";if(e.ViewKeyword())return"view";throw new Error("Assertion error: non-exhaustive stateMutability check")}_loc(e){return{start:{line:e.start.line,column:e.start.column},end:{line:e.stop?e.stop.line:e.start.line,column:e.stop?e.stop.column:e.start.column}}}_range(e){return[e.start.start,e.stop?.stop??e.start.start]}_addMeta(e,t){const r={type:e.type};return!0===this.options.loc&&(e.loc=this._loc(t)),!0===this.options.range&&(e.range=this._range(t)),{...r,...e}}_mapCommasToNulls(e){if(0===e.length)return[];const t=[];let r=!0;for(const s of e)if(r)","===this._toText(s)?t.push(null):(t.push(s),r=!1);else{if(","!==this._toText(s))throw new Error("expected comma");r=!0}return r&&t.push(null),t}},At=class extends m{constructor(){super(),this._errors=[]}syntaxError(e,t,r,s,i){this._errors.push({message:i,line:r,column:s})}getErrors(){return this._errors}hasErrors(){return this._errors.length>0}},Ct={1:"pragma",2:";",3:"*",4:"||",5:"^",6:"~",7:">=",8:">",9:"<",10:"<=",11:"=",12:"as",13:"import",14:"from",15:"{",16:",",17:"}",18:"abstract",19:"contract",20:"interface",21:"library",22:"is",23:"(",24:")",25:"layout",26:"at",27:"error",28:"using",29:"for",30:"|",31:"&",32:"+",33:"-",34:"/",35:"%",36:"==",37:"!=",38:"struct",39:"modifier",40:"function",41:"returns",42:"event",43:"enum",44:"[",45:"]",46:"address",47:".",48:"mapping",49:"=>",50:"memory",51:"storage",52:"calldata",53:"if",54:"else",55:"try",56:"catch",57:"while",58:"unchecked",59:"assembly",60:"do",61:"return",62:"throw",63:"emit",64:"revert",65:"var",66:"bool",67:"string",68:"byte",69:"++",70:"--",71:"new",72:":",73:"delete",74:"!",75:"**",76:"<<",77:">>",78:"&&",79:"?",80:"|=",81:"^=",82:"&=",83:"<<=",84:">>=",85:"+=",86:"-=",87:"*=",88:"/=",89:"%=",90:"let",91:":=",92:"=:",93:"switch",94:"case",95:"default",96:"->",97:"callback",98:"override",99:"Int",100:"Uint",101:"Byte",102:"Fixed",103:"Ufixed",104:"BooleanLiteral",105:"DecimalNumber",106:"HexNumber",107:"NumberUnit",108:"HexLiteralFragment",109:"ReservedKeyword",110:"anonymous",111:"break",112:"constant",113:"transient",114:"immutable",115:"continue",116:"leave",117:"external",118:"indexed",119:"internal",120:"payable",121:"private",122:"public",123:"virtual",124:"pure",125:"type",126:"view",127:"global",128:"constructor",129:"fallback",130:"receive",131:"Identifier",132:"StringLiteralFragment",133:"VersionLiteral",134:"WS",135:"COMMENT",136:"LINE_COMMENT"},Lt=["var","bool","address","string","Int","Uint","Byte","Fixed","UFixed"];function Kt(e){return[e.start,e.stop+1]}function It(e){const t=(e.text??"").split(/\r?\n/),r=t.length-1;return{start:{line:e.line,column:e.column},end:{line:e.line+r,column:t[r].length+(0===r?e.column:0)}}}function Nt(e,t){return e.map(e=>{var r;const s={type:"Identifier"===(r=Ct[e.type.toString()])||"from"===r?"Identifier":"TrueLiteral"===r||"FalseLiteral"===r?"Boolean":"VersionLiteral"===r?"Version":"StringLiteral"===r?"String":Lt.includes(r)?"Type":"NumberUnit"===r?"Subdenomination":"DecimalNumber"===r?"Numeric":"HexLiteral"===r?"Hex":"ReservedKeyword"===r?"Reserved":/^\W+$/.test(r)?"Punctuator":"Keyword",value:e.text};return!0===t.range&&(s.range=Kt(e)),!0===t.loc&&(s.loc=It(e)),s})}var Ot=class extends Error{constructor(e){super();const{message:t,line:r,column:s}=e.errors[0];this.message=`${t} (${r}:${s})`,this.errors=e.errors,void 0!==Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack}};function Dt(e,t={}){const r=new u(e);return Nt(new R(r).getAllTokens(),t)}function Pt(e,t={}){const r=new u(e),s=new R(r),i=new d(s),n=new C(i),a=new At;s.removeErrorListeners(),s.addErrorListener(a),n.removeErrorListeners(),n.addErrorListener(a),n.buildParseTrees=!0;const o=n.sourceUnit(),c=new Rt(t);c.visit(o);const l=c.result;if(null===l)throw new Error("ast should never be null");if(!0===t.tokens&&(l.tokens=Nt(i.tokens,t)),!0===t.comments&&(l.comments=function(e,t,r){return e.filter(e=>e.channel===t).map(e=>{const t=e.text.startsWith("//")?{type:"LineComment",value:e.text.slice(2)}:{type:"BlockComment",value:e.text.slice(2,-2)};return!0===r.range&&(t.range=Kt(e)),!0===r.loc&&(t.loc=It(e)),t})}(i.tokens,s.channelNames.indexOf("HIDDEN"),t)),a.hasErrors()){if(!0!==t.tolerant)throw new Ot({errors:a.getErrors()});l.errors=a.getErrors()}return l}function qt(e,t,r){if(Array.isArray(e)&&e.forEach(e=>qt(e,t,r)),!function(e){if("object"!=typeof e||null===e)return!1;const t=e;return!(!Object.prototype.hasOwnProperty.call(t,"type")||"string"!=typeof t.type)&&Tt.includes(t.type)}(e))return;let s=!0;if(void 0!==t[e.type]&&(s=t[e.type](e,r)),!1===s)return;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&qt(e[r],t,e);const i=e.type+":exit";void 0!==t[i]&&t[i](e,r)}var Mt,Ft={ParserError:Ot,parse:Pt,tokenize:Dt,visit:qt};return Mt=i,((i,n,a,o)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let a of r(n))s.call(i,a)||void 0===a||e(i,a,{get:()=>n[a],enumerable:!(o=t(n,a))||o.enumerable});return i})(e({},"__esModule",{value:!0}),Mt)})();return e},e.exports=r()}),i=r(6170),n=r(7638),a=r(2101);const o=(e,t)=>"BinaryOperation"===e.type&&t.includes(e.operator)?{type:"TupleExpression",components:[e],isArray:!1}:e,c=function(e,t,r=t){const c=i(r.compiler),l=s.parse(e,{loc:!0,range:!0,comments:!0});return s.visit(l,{PragmaDirective(e){"solidity"===e.name&&c&&(n(c,e.value)||(0,a.o)(`The compiler option is set to '${r.compiler}', which does not satisfy 'pragma solidity ${e.value}'.`))},ModifierDefinition(e){e.parameters||(e.parameters=[])},FunctionDefinition(e){e.isConstructor||e.modifiers.forEach(e=>{0===e.arguments?.length&&(e.arguments=null)})},ForStatement(e){e.initExpression&&(e.initExpression.omitSemicolon=!0),e.loopExpression.omitSemicolon=!0},HexLiteral(e){const t=e.value.slice(4,-1);e.value=r.singleQuote?`hex'${t}'`:`hex"${t}"`},Conditional(e){if(r.experimentalTernaries)for(;"TupleExpression"===e.condition.type&&!e.condition.isArray&&1===e.condition.components.length&&"Conditional"!==e.condition.components[0].type;)[e.condition]=e.condition.components},BinaryOperation(e){switch(e.operator){case"+":case"-":e.left=o(e.left,["%"]),e.right=o(e.right,["%"]);break;case"*":e.left=o(e.left,["/","%"]);break;case"/":e.left=o(e.left,["*","%"]);break;case"%":e.left=o(e.left,["*","/","%"]);break;case"**":if(!c)break;if(n(c,">=0.8.0")){e.right=o(e.right,["**"]);break}if("BinaryOperation"===e.right.type&&"**"===e.right.operator){const t={type:"BinaryOperation",operator:"**",left:e.left,right:e.right.left};e.left={type:"TupleExpression",components:[t],isArray:!1},e.right=e.right.right}break;case"<<":case">>":e.left=o(e.left,["+","-","*","/","**","<<",">>"]),e.right=o(e.right,["+","-","*","/","**"]);break;case"&":e.left=o(e.left,["+","-","*","/","**","<<",">>"]),e.right=o(e.right,["+","-","*","/","**","<<",">>"]);break;case"|":e.left=o(e.left,["+","-","*","/","**","<<",">>","&","^"]),e.right=o(e.right,["+","-","*","/","**","<<",">>","&","^"]);break;case"^":e.left=o(e.left,["+","-","*","/","**","<<",">>","&"]),e.right=o(e.right,["+","-","*","/","**","<<",">>","&"]);break;case"==":case"!=":e.left=o(e.left,["==","!="]);break;case"||":e.left=o(e.left,["&&"]),e.right=o(e.right,["&&"])}}}),l}},2680(e,t,r){r.d(t,{A:()=>Us});var s={};r.r(s),r.d(s,{addition:()=>ne,assignment:()=>Y,bit:()=>se,equality:()=>te,exponentiation:()=>ce,inequality:()=>re,logical:()=>ee,multiplication:()=>ae,shift:()=>ie});var i={};r.r(i),r.d(i,{ArrayTypeName:()=>n,AssemblyAssignment:()=>c,AssemblyBlock:()=>_,AssemblyCall:()=>E,AssemblyCase:()=>T,AssemblyFor:()=>k,AssemblyFunctionDefinition:()=>A,AssemblyIf:()=>C,AssemblyLocalDefinition:()=>K,AssemblyMemberAccess:()=>I,AssemblyStackAssignment:()=>O,AssemblySwitch:()=>q,BinaryOperation:()=>le,Block:()=>de,BooleanLiteral:()=>pe,Break:()=>me,BreakStatement:()=>ye,CatchClause:()=>ge,Conditional:()=>Te,Continue:()=>Se,ContinueStatement:()=>ke,ContractDefinition:()=>Oe,CustomErrorDefinition:()=>Pe,DecimalNumber:()=>qe,DoWhileStatement:()=>Ve,ElementaryTypeName:()=>Be,EmitStatement:()=>He,EnumDefinition:()=>ze,EnumValue:()=>We,EventDefinition:()=>Qe,ExpressionStatement:()=>Ze,FileLevelConstant:()=>et,ForStatement:()=>ot,FunctionCall:()=>pt,FunctionDefinition:()=>Lt,FunctionTypeName:()=>qt,HexLiteral:()=>Yt,HexNumber:()=>Vt,Identifier:()=>jt,IfStatement:()=>Wt,ImportDirective:()=>tr,IndexAccess:()=>or,IndexRangeAccess:()=>cr,InheritanceSpecifier:()=>hr,InlineAssemblyStatement:()=>ur,LabelDefinition:()=>mr,Mapping:()=>fr,MemberAccess:()=>br,ModifierDefinition:()=>Lr,ModifierInvocation:()=>Ir,NameValueExpression:()=>Nr,NameValueList:()=>Pr,NewExpression:()=>qr,NumberLiteral:()=>Mr,PragmaDirective:()=>Fr,ReturnStatement:()=>Br,RevertStatement:()=>Hr,SourceUnit:()=>Gr,StateVariableDeclaration:()=>Wr,StringLiteral:()=>Jr,StructDefinition:()=>es,ThrowStatement:()=>ts,TryStatement:()=>is,TupleExpression:()=>os,TypeDefinition:()=>cs,UnaryOperation:()=>ls,UncheckedStatement:()=>us,UserDefinedTypeName:()=>ds,UsingForDeclaration:()=>ys,VariableDeclaration:()=>Rs,VariableDeclarationStatement:()=>Ks,WhileStatement:()=>Ps});const n={print:({node:e,path:t,print:r})=>[t.call(r,"baseTypeName"),"[",e.length?t.call(r,"length"):"","]"]};var a=r(838);const{join:o}=a.doc.builders,c={print:({path:e,print:t})=>[o(", ",e.map(t,"names"))," := ",e.call(t,"expression")]},{group:l,indent:h,join:u,line:d,softline:p,hardline:m}=a.doc.builders,{isNextLineEmpty:y}=a.util,f=(e,t,r,s=()=>!0)=>{if(!e.comments)return"";function i(e){return!e.trailing&&!e.leading&&!e.printed&&s(e)}return u(d,t.map((e,t,s)=>{const n=e.getValue();if(!i(n))return null;n.printed=!0;const o=t===s.length-1||-1===s.slice(t+1).findIndex(i);return[r.printer.printComment(e,r),!o&&a.util.isNextLineEmpty(r.originalText,r.locEnd(n))?m:""]},"comments").filter(Boolean))};function g(e,t,r,s){const i=[];return e.each((e,t)=>{const n=e.getValue(),a=n.type;0!==i.length&&"LabelDefinition"!==a&&i.push(m),i.push(s(e)),!e.isLast&&y(r.originalText,r.locEnd(n)+1)&&i.push(m)},t),i}const w=(e,{firstSeparator:t=p,lastSeparator:r=t,grouped:s=!0}={})=>{const i=[h([t,e]),r];return s?l(i):i},x=(e,{firstSeparator:t,separator:r=[",",d],lastSeparator:s,grouped:i}={})=>w(u(r,e),{firstSeparator:t,lastSeparator:s,grouped:i}),v=(e,t)=>["TupleExpression","FunctionCall","IndexAccess","NameValueExpression","MemberAccess"].includes(t.type)?[" ",e]:l(h([d,e])),{hardline:b}=a.doc.builders,_={print:({node:e,options:t,path:r,print:s})=>0!==e.operations.length||e.comments?["{",w([g(r,"operations",t,s),f(e,r,t)],{firstSeparator:b,grouped:!1}),"}"]:"{}"},E={print:({node:e,path:t,print:r,options:s})=>0===e.arguments.length&&")"!==s.originalText.charAt(s.locEnd(e))?e.functionName:[e.functionName,"(",x(t.map(r,"arguments")),")"]},T={print:({node:e,path:t,print:r})=>[e.default?"default":["case ",t.call(r,"value")]," ",t.call(r,"block")]},{join:S}=a.doc.builders,k={print:({path:e,print:t})=>S(" ",["for",e.call(t,"pre"),e.call(t,"condition"),e.call(t,"post"),e.call(t,"body")])},{line:R}=a.doc.builders,A={print:({node:e,path:t,print:r})=>["function ",e.name,"(",x(t.map(r,"arguments")),")",0===e.returnArguments.length?" ":w(["->",x(t.map(r,"returnArguments"),{firstSeparator:R,lastSeparator:""})],{firstSeparator:R}),t.call(r,"body")]},C={print:({path:e,print:t})=>["if ",e.call(t,"condition")," ",e.call(t,"body")]},{line:L}=a.doc.builders,K={print:({node:e,path:t,print:r})=>{const s=["let",x(t.map(r,"names"),{firstSeparator:L})];return null!==e.expression&&(s.push(":= "),s.push(t.call(r,"expression"))),s}},I={print:({path:e,print:t})=>[e.call(t,"expression"),".",e.call(t,"memberName")]},{hardline:N}=a.doc.builders,O={print:({node:e,path:t,print:r})=>[t.call(r,"expression"),N,"=: ",e.name]},{hardline:D,join:P}=a.doc.builders,q={print:({path:e,print:t})=>["switch ",e.call(t,"expression"),D,P(D,e.map(t,"cases"))]},{group:M,line:F,indent:U}=a.doc.builders,Y={match:e=>["=","|=","^=","&=","<<=",">>=","+=","-=","*=","/=","%="].includes(e),print:(e,t,r)=>[t.call(r,"left"),` ${e.operator}`,v(t.call(r,"right"),e.right)]},{group:V,line:j}=a.doc.builders,B=(e,t,r,s)=>{const i="end"===s.experimentalOperatorPosition?[" ",e.operator,j,t.call(r,"right")]:[j,e.operator," ",t.call(r,"right")],{parent:n}=t;return"BinaryOperation"===e.left.type||"BinaryOperation"===n.type&&!Y.match(n.operator)?i:V(i)},H=(e,t)=>(r,s,i,n)=>{const a=e(s),o=t(s);return a([s.call(i,"left"),o(B(r,s,i,n))])},$=({type:e,operator:t},r)=>"BinaryOperation"!==e||r.some(e=>e.match(t)),{group:G}=a.doc.builders,z=e=>t=>r=>{const{parent:s}=t;return $(s,e)?G(r):r},{indent:W}=a.doc.builders,X=["ReturnStatement","IfStatement","ForStatement","WhileStatement"],Q=e=>t=>r=>{for(let s=0,{node:i}=t;;s+=1){const n=t.getParentNode(s);if(X.includes(n.type))return r;if($(n,e))return W(r);if(i===n.right)return r;i=n}},J=e=>H(z(e),Q(e)),{indent:Z}=a.doc.builders,ee={match:e=>["&&","||"].includes(e),print:H(z([]),e=>t=>{for(let r=0,{node:s}=e;;r+=1){const i=e.getParentNode(r);if(X.includes(i.type))return t;if("Conditional"===i.type&&i.condition===s)return t;if($(i,[]))return Z(t);if(s===i.right)return t;s=i}})},te={match:e=>["==","!="].includes(e),print:J([ee])},re={match:e=>["<",">","<=",">="].includes(e),print:J([ee,te])},se={match:e=>["&","|","^"].includes(e),print:J([re,te,ee])},ie={match:e=>["<<",">>"].includes(e),print:J([se,re,te,ee])},ne={match:e=>["+","-"].includes(e),print:J([ie,se,re,te,ee])},ae={match:e=>["*","/","%"].includes(e),print:J([ne,ie,se,re,te,ee])},{group:oe}=a.doc.builders,ce={match:e=>"**"===e,print:H(()=>e=>oe(e),Q([ae,ne,ie,se,re,te,ee]))},le={print:({node:e,path:t,print:r,options:i})=>{const n=Object.values(s).find(t=>t.match(e.operator));if(void 0===n)throw new Error(`Assertion error: no printer found for operator ${JSON.stringify(e.operator)}`);return n.print(e,t,r,i)}},{hardline:he,indent:ue}=a.doc.builders,de={print:({node:e,options:t,path:r,print:s})=>0!==e.statements.length||e.comments?["{",ue([he,g(r,"statements",t,s),f(e,r,t)]),he,"}"]:"{}"},pe={print:({node:e})=>e.value?"true":"false"},me={print:()=>"break"},ye={print:()=>"break;"},fe=(e,t,r)=>e.parameters?[e.kind||"","(",x(t.map(r,"parameters")),") "]:"",ge={print:({node:e,path:t,print:r})=>["catch ",fe(e,t,r),t.call(r,"body")]},{group:we,hardline:xe,ifBreak:ve,indent:be,line:_e,softline:Ee}=a.doc.builders,Te={print:({node:e,path:t,print:r,options:s})=>s.experimentalTernaries?((e,t,r,s)=>{const{parent:i}=t,n="Conditional"===i.type,a=n&&i.trueExpression===e,o="Conditional"===e.falseExpression.type,c=t.call(r,"condition"),l=we(["TupleExpression"===e.condition.type?c:ve(["(",w(c),")"],c)," ?"]),h=be([a?xe:_e,t.call(r,"trueExpression")]),u=we([l,h],{id:Symbol("Conditional.trueExpression")});let d=" ";!o&&(s.tabWidth>2||s.useTabs)&&(d=s.useTabs?"\t":" ".repeat(s.tabWidth-1));const p=t.call(r,"falseExpression"),m=[n?xe:_e,":",o?[" ",p]:ve([d,be(p)],[" ",p],{groupId:u.id})];return we([u,m])})(e,t,r,s):((e,t)=>we([e.call(t,"condition"),be(["Conditional"===e.parent.type?xe:_e,"? ",e.call(t,"trueExpression"),_e,": ",e.call(t,"falseExpression")])]))(t,r)},Se={print:()=>"continue"},ke={print:()=>"continue;"},{group:Re,hardline:Ae,ifBreak:Ce,line:Le,softline:Ke}=a.doc.builders,Ie=(e,t,r)=>{const s=[];if(e.baseContracts.length>0&&s.push(["is",x(t.map(r,"baseContracts"),{firstSeparator:Le})]),e.storageLayout&&s.push(["layout at",w(t.call(r,"storageLayout"),{firstSeparator:Le,lastSeparator:0===e.baseContracts.length?Le:""})]),0===s.length)return Le;if(1===s.length)return[" ",s];const i=Symbol("ContractSpecifiers.inheritance");return x([Re(s[0],{id:i}),s[1]],{firstSeparator:Le,separator:Ce("",Ke,{groupId:i})})},Ne=(e,t,r,s)=>{const i=f(e,t,r);return e.subNodes.length>0||i?.length?w([g(t,"subNodes",r,s),i],{firstSeparator:Ae,grouped:!1}):""},Oe={print:({node:e,options:t,path:r,print:s})=>[Re(["abstract"===e.kind?"abstract contract":e.kind," ",e.name,Ie(e,r,s),"{"]),Ne(e,r,t,s),"}"]},De=(e,t,r)=>e.parameters?.length>0?x(t.map(r,"parameters")):"",Pe={print:({node:e,path:t,print:r})=>["error ",e.name,"(",De(e,t,r),");"]},qe={print:({node:e})=>e.value},{group:Me,indent:Fe,line:Ue}=a.doc.builders,Ye=(e,t,r)=>"Block"===e.body.type?[" ",t.call(r,"body")," "]:Me([Fe([Ue,t.call(r,"body")]),Ue]),Ve={print:({node:e,path:t,print:r})=>["do",Ye(e,t,r),"while (",w(t.call(r,"condition")),");"]},je=e=>e.stateMutability?.length>0?[" ",e.stateMutability]:"",Be={print:({node:e})=>[e.name,je(e)]},He={print:({path:e,print:t})=>["emit ",e.call(t,"eventCall"),";"]},{group:$e,hardline:Ge}=a.doc.builders,ze={print:({node:e,path:t,print:r})=>$e(["enum ",e.name," {",x(t.map(r,"members"),{firstSeparator:Ge}),"}"])},We={print:({node:e})=>e.name},Xe=(e,t,r)=>e.parameters?.length>0?x(t.map(r,"parameters")):"",Qe={print:({node:e,path:t,print:r})=>["event ",e.name,"(",Xe(e,t,r),")",e.isAnonymous?" anonymous":"",";"]},{hardline:Je}=a.doc.builders,Ze={print:({node:e,options:t,path:r,print:s})=>{const i=[],{parent:n}=r;if("IfStatement"===n.type&&e.comments?.length){const s=f(e,r,t);s?.length&&(i.push(s),i.push(Je))}return i.push(r.call(s,"expression")),i.push(e.omitSemicolon?"":";"),i}},et={print:({node:e,path:t,print:r})=>[t.call(r,"typeName")," constant ",e.name," =",v(t.call(r,"initialValue"),e.initialValue),";"]},{group:tt,indent:rt,line:st}=a.doc.builders,it=(e,t,r)=>[e.initExpression?t.call(r,"initExpression"):"",";"],nt=(e,t,r)=>[e.conditionExpression?t.call(r,"conditionExpression"):"",";"],at=(e,t,r)=>"Block"===e.body.type?[" ",t.call(r,"body")]:tt(rt([st,t.call(r,"body")])),ot={print:({node:e,path:t,print:r})=>["for (",w(e.loopExpression.expression?[it(e,t,r),st,nt(e,t,r),st,t.call(r,"loopExpression")]:[it(e,t,r),e.initExpression||e.conditionExpression?st:"",nt(e,t,r)]),")",at(e,t,r)]},{group:ct,indentIfBreak:lt,label:ht,line:ut,softline:dt}=a.doc.builders,pt={print:({node:e,path:t,print:r,options:s})=>{let i=t.call(r,"expression"),n=")";return e.arguments?.length>0&&(n=e.identifiers?.length>0?((e,t,r)=>{const s=e.map(t,"identifiers");return["{",x(e.map(t,"arguments").map((e,t)=>[s[t],": ",e]),{firstSeparator:r.bracketSpacing?ut:dt,lastSeparator:[r.bracketSpacing?ut:dt,"})"]})]})(t,r,s):((e,t)=>x(e.map(t,"arguments"),{lastSeparator:[dt,")"]}))(t,r)),"MemberAccessChain"===i.label?(i=ct(i.contents,{id:Symbol("FunctionCall.expression")}),n=lt(n,{groupId:i.id}),ht("MemberAccessChain",[i,"(",n])):[i,"(",n].flat()}},{dedent:mt,group:yt,indent:ft,join:gt,line:wt}=a.doc.builders,{getNextNonSpaceNonCommentCharacter:xt}=a.util,vt=(e,t)=>e.isConstructor&&!e.name?"constructor":e.name?`function ${e.name}`:e.isReceiveEther?"receive":{fallback:"fallback",function:"function"}[t.originalText.slice(t.locStart(e),t.locStart(e)+8)],bt=(e,t,r,s,i)=>{if(t[e]?.length>0)return x(r.map(s,e),{grouped:!1});if(t.comments?.length>0){const e=f(t,r,i,e=>")"===xt(i.originalText,i.locEnd(e)));return e.length>0?w(e):""}return""},_t=e=>e.visibility&&"default"!==e.visibility?[wt,e.visibility]:"",Et=e=>e.isVirtual?[wt,"virtual"]:"",Tt=(e,t,r)=>e.override?0===e.override.length?[wt,"override"]:[wt,"override(",x(t.map(r,"override")),")"]:"",St=e=>e.stateMutability?[wt,e.stateMutability]:"",kt=(e,t,r)=>e.modifiers.length>0?[wt,gt(wt,t.map(r,"modifiers"))]:"",Rt=(e,t,r,s)=>e.returnParameters?[wt,"returns (",yt(bt("returnParameters",e,t,r,s)),")"]:"",At=e=>e.body?mt(wt):";",Ct=(e,t,r)=>e.body?t.call(r,"body"):"",Lt={print:({node:e,path:t,print:r,options:s})=>[yt([vt(e,s),"(",bt("parameters",e,t,r,s),")",ft(yt([f(e,t,s),_t(e),St(e),Et(e),Tt(e,t,r),kt(e,t,r),Rt(e,t,r,s),At(e)]))]),Ct(e,t,r)]},{group:Kt,indent:It,line:Nt}=a.doc.builders,Ot=(e,t,r)=>e.returnTypes.length>0?[Nt,"returns (",x(t.map(r,"returnTypes")),")"]:"",Dt=e=>e.visibility&&"default"!==e.visibility?[Nt,e.visibility]:"",Pt=e=>e.stateMutability&&"default"!==e.stateMutability?[Nt,e.stateMutability]:"",qt={print:({node:e,path:t,print:r})=>Kt(["function(",x(t.map(r,"parameterTypes"),{grouped:!1}),")",It(Kt([Dt(e),Pt(e),Ot(e,t,r)]))])};function Mt(e,t){const r={quote:'"',regex:/"/g},s={quote:"'",regex:/'/g},i=t.singleQuote?s:r,n=i===s?r:s;let o=!1;(e.includes(i.quote)||e.includes(n.quote))&&(o=(e.match(i.regex)||[]).length>(e.match(n.regex)||[]).length);const c=o?n.quote:i.quote;return a.util.makeString(e,c)}const{join:Ft,hardline:Ut}=a.doc.builders,Yt={print:({node:e,options:t})=>{const r=e.parts.map(e=>`hex${Mt(e,t)}`);return Ft(Ut,r)}},Vt={print:({node:e})=>e.value},jt={print:({node:e})=>e.name},{group:Bt,hardline:Ht,indent:$t,line:Gt}=a.doc.builders,zt=(e,t,r)=>"Block"===e.falseBody.type||"IfStatement"===e.falseBody.type?[" ",t.call(r,"falseBody")]:Bt($t([Gt,t.call(r,"falseBody")])),Wt={print:({node:e,options:t,path:r,print:s})=>{const i=(e.comments||[]).filter(e=>!e.leading&&!e.trailing),n=[];return n.push("if (",w(r.call(s,"condition")),")"),n.push(((e,t,r)=>{if("Block"===e.trueBody.type)return[" ",t.call(r,"trueBody")];const s="IfStatement"===e.trueBody.type;return Bt($t([s?Ht:Gt,t.call(r,"trueBody")]))})(e,r,s)),i.length&&e.falseBody&&(n.push(Ht),n.push(f(e,r,t))),n.push(((e,t,r,s)=>e.falseBody?["Block"===e.trueBody.type&&0===s.length?" ":Ht,"else",zt(e,t,r)]:"")(e,r,s,i)),n}};var Xt=r(6170),Qt=r(7638);const{group:Jt,line:Zt,softline:er}=a.doc.builders,tr={print:({node:e,options:t})=>{const r=Mt(e.path,t);let s;if(e.unitAlias)s=t.originalText.slice(t.locStart(e),t.locStart(e.pathLiteral)).includes("*")?["* as ",e.unitAlias," from ",r]:[r," as ",e.unitAlias];else if(e.symbolAliases){const i=Xt(t.compiler),n=e.symbolAliases.map(([e,t])=>t?`${e} as ${t}`:e);let a,o;i&&Qt(i,">=0.7.4")&&n.length>1?(a=t.bracketSpacing?Zt:er,o=[",",Zt]):(a=t.bracketSpacing?" ":"",o=", "),s=["{",x(n,{firstSeparator:a,separator:o}),"} from ",r]}else s=r;return Jt(["import ",s,";"])}},{group:rr,indent:sr,indentIfBreak:ir,label:nr,softline:ar}=a.doc.builders,or={print:({path:e,print:t})=>{let r=e.call(t,"base"),s=rr([sr([ar,e.call(t,"index")]),ar,"]"]);return"MemberAccessChain"===r.label?(r=rr(r.contents,{id:Symbol("IndexAccess.base")}),s=ir(s,{groupId:r.id}),nr("MemberAccessChain",[r,"[",s])):[r,"[",s].flat()}},cr={print:({node:e,path:t,print:r})=>[t.call(r,"base"),"[",e.indexStart?t.call(r,"indexStart"):"",":",e.indexEnd?t.call(r,"indexEnd"):"","]"]},lr=(e,t,r)=>e.arguments?.length?["(",x(t.map(r,"arguments")),")"]:"",hr={print:({node:e,path:t,print:r})=>[t.call(r,"baseName"),lr(e,t,r)]},ur={print:({node:e,path:t,print:r,options:s})=>["assembly ",e.language?`${Mt(e.language,s)} `:"",e.flags?.length>0?["(",x(e.flags.map(e=>Mt(e,s))),") "]:"",t.call(r,"body")]},{dedent:dr,line:pr}=a.doc.builders,mr={print:({node:e})=>[dr(pr),e.name,":"]},yr=(e,t,r,s)=>t[`${e}Name`]?[r.call(s,`${e}Type`)," ",r.call(s,`${e}Name`)]:r.call(s,`${e}Type`),fr={print:({node:e,path:t,print:r})=>["mapping(",yr("key",e,t,r)," => ",yr("value",e,t,r),")"]},{group:gr,indent:wr,label:xr,softline:vr}=a.doc.builders,br={print:({node:e,path:t,print:r})=>{let s=t.call(r,"expression");Array.isArray(s)&&(s=s.flat());const i=[s,xr("separator",[vr,"."]),e.memberName].flat();return((e,t)=>{let r=0,s=e,i=t.getParentNode(r);for(;i&&["FunctionCall","IndexAccess","NameValueExpression","MemberAccess"].includes(i.type);){switch(i.type){case"MemberAccess":return!1;case"IndexAccess":if(s!==i.base)return!0;break;case"FunctionCall":if(s!==i.expression)return!0}r+=1,s=i,i=t.getParentNode(r)}return!0})(e,t)?(e=>{const t=e.findIndex(e=>"separator"===e.label),r=e.slice(0,t),s=gr(wr(e.slice(t)));return xr("MemberAccessChain",gr([r,s]))})(i):i}},{dedent:_r,group:Er,indent:Tr,line:Sr}=a.doc.builders,kr=(e,t,r)=>e.parameters?.length>0?["(",x(t.map(r,"parameters"),{separator:[",",Sr]}),")"]:"()",Rr=e=>e.isVirtual?[Sr,"virtual"]:"",Ar=(e,t,r)=>e.override?0===e.override.length?[Sr,"override"]:[Sr,"override(",x(t.map(r,"override")),")"]:"",Cr=(e,t,r)=>e.body?e.isVirtual?Er(t.call(r,"body")):[t.call(r,"body")]:";",Lr={print:({node:e,path:t,print:r})=>["modifier ",e.name,kr(e,t,r),Er(Tr([Rr(e),Ar(e,t,r),e.body?_r(Sr):""])),Cr(e,t,r)]},Kr=(e,t,r,s)=>e.arguments?e.arguments.length>0?["(",x(t.map(r,"arguments")),")"]:"()":e.comments?.some(e=>!e.leading&&!e.trailing&&!e.printed)?["(",f(e,t,s),")"]:"",Ir={print:({node:e,path:t,print:r,options:s})=>[e.name,Kr(e,t,r,s)]},Nr={print:({path:e,print:t})=>[e.call(t,"expression"),"{",e.call(t,"arguments"),"}"]},{line:Or,softline:Dr}=a.doc.builders,Pr={print:({node:e,path:t,print:r,options:s})=>x(t.map(r,"arguments").map((t,r)=>[e.names[r],": ",t]),{firstSeparator:s.bracketSpacing?Or:Dr})},qr={print:({path:e,print:t})=>["new ",e.call(t,"typeName")]},Mr={print:({node:e})=>e.subdenomination?[e.number," ",e.subdenomination]:e.number},Fr={print:({node:e})=>["pragma ",e.name," ",e.value,";"]},{group:Ur,indent:Yr,line:Vr}=a.doc.builders,jr=(e,t,r,s)=>e.expression?"TupleExpression"===e.expression.type||s.experimentalTernaries&&"Conditional"===e.expression.type?[" ",t.call(r,"expression")]:Ur(Yr([Vr,t.call(r,"expression")])):"",Br={print:({node:e,path:t,print:r,options:s})=>["return",jr(e,t,r,s),";"]},Hr={print:({path:e,print:t})=>["revert ",e.call(t,"revertCall"),";"]},{line:$r}=a.doc.builders,Gr={print:({node:e,options:t,path:r,print:s})=>[g(r,"children",t,s),f(e,r,t),t.parentParser?"":$r]},zr=(e,t,r)=>e.initialValue?[" =",v(t.call(r,"initialValue"),e.initialValue)]:"",Wr={print:({node:e,path:t,print:r})=>[...t.map(r,"variables"),zr(e,t,r),";"]},{join:Xr,hardline:Qr}=a.doc.builders,Jr={print:({node:e,options:t})=>{const r=e.parts.map((r,s)=>(e.isUnicode[s]?"unicode":"")+Mt(r,t));return Xr(Qr,r)}},{hardline:Zr}=a.doc.builders,es={print:({node:e,path:t,print:r})=>["struct ",e.name," {",e.members.length>0?x(t.map(r,"members"),{firstSeparator:Zr,separator:[";",Zr],lastSeparator:[";",Zr]}):"","}"]},ts={print:()=>"throw;"},{join:rs,line:ss}=a.doc.builders,is={print:({node:e,path:t,print:r})=>{let s=["try",w(t.call(r,"expression"),{firstSeparator:ss})];const i=((e,t,r)=>e.returnParameters?["returns (",x(t.map(r,"returnParameters")),")"]:"")(e,t,r);return i&&(s=s.concat([i," "])),s=s.concat([t.call(r,"body")," ",rs(" ",t.map(r,"catchClauses"))]),s}},{group:ns}=a.doc.builders,as=(e,t,r)=>1===e.components?.length&&"BinaryOperation"===e.components[0].type?t.map(r,"components"):x(t.map(r,"components")),os={print:({node:e,path:t,print:r})=>ns([e.isArray?"[":"(",as(e,t,r),e.isArray?"]":")"])},cs={print:({node:e})=>["type ",e.name," is ",e.definition.name,";"]},ls={print:({node:e,path:t,print:r})=>e.isPrefix?[e.operator,"delete"===e.operator?" ":"",t.call(r,"subExpression")]:[t.call(r,"subExpression"),e.operator]},{group:hs}=a.doc.builders,us={print:({path:e,print:t})=>hs(["unchecked ",e.call(t,"block")])},ds={print:({node:e})=>e.namePath},{line:ps,softline:ms}=a.doc.builders,ys={print:({node:e,path:t,print:r,options:s})=>["using ",e.functions?.length?["{",x(e.functions.map((t,r)=>e.operators[r]?[t," as ",e.operators[r]]:t),{firstSeparator:s.bracketSpacing?ps:ms}),"}"]:e.libraryName," for ",e.typeName?t.call(r,"typeName"):"*",e.isGlobal?" global;":";"]},{group:fs,indent:gs,line:ws}=a.doc.builders,xs=e=>e.isIndexed?" indexed":"",vs=e=>e.visibility&&"default"!==e.visibility?[ws,e.visibility]:"",bs=e=>e.isDeclaredConst?" constant":"",_s=e=>e.storageLocation&&"default"!==e.visibility?[ws,e.storageLocation]:"",Es=e=>e.isImmutable?" immutable":"",Ts=e=>e.isTransient?" transient":"",Ss=(e,t,r)=>e.override?0===e.override.length?[ws,"override"]:[ws,"override(",x(t.map(r,"override")),")"]:"",ks=e=>e.name?[" ",e.name]:"",Rs={print:({node:e,path:t,print:r})=>e.typeName?fs([t.call(r,"typeName"),gs([xs(e),vs(e),bs(e),_s(e),Es(e),Ts(e),Ss(e,t,r),ks(e)])]):e.name},{group:As,indentIfBreak:Cs,line:Ls}=a.doc.builders,Ks={print:({node:e,path:t,print:r})=>{const s=0===e.variables.filter(e=>e?.typeName).length,i=As([s?"var ":"",(n=t.map(r,"variables"),a=e.variables.length>1||s,a?["(",x(n),")"]:n)],{id:Symbol("VariableDeclarationStatement.variables")});var n,a;const o=((e,t,r)=>e.initialValue?[" =",v(t.call(r,"initialValue"),e.initialValue)]:"")(e,t,r);return As([i,Cs(o,{groupId:i.id}),e.omitSemicolon?"":";"])}},{group:Is,indent:Ns,line:Os}=a.doc.builders,Ds=(e,t,r)=>"Block"===e.body.type?[" ",t.call(r,"body")]:Is(Ns([Os,t.call(r,"body")])),Ps={print:({node:e,path:t,print:r})=>["while (",w(t.call(r,"condition")),")",Ds(e,t,r)]};var qs=r(2101);const Ms=function e(t){const r=t.getValue();null!==r&&"object"==typeof r&&Object.keys(r).forEach(s=>{switch(s){case"loc":case"range":break;case"comments":t.each(e=>{e.getValue().printed=!0},"comments");break;default:if("object"==typeof r[s]){if(Array.isArray(r[s]))return void t.each(e,s);t.call(e,s)}}})},Fs=function(){let e;return()=>(void 0===e&&((0,qs.o)("The 'antlr' parser has been deprecated, please use 'slang' instead."),e=!0),e)}(),Us=function(e,t,r){Fs();const s=e.getValue();if(null===s)return"";if(!(s.type in i))throw new Error(`Unknown type: ${JSON.stringify(s.type)}`);return function(e){return e?.comments?.length>0&&e.comments.some(e=>"prettier-ignore"===e.value.trim())}(s)?(Ms(e),t.originalText.slice(t.locStart(s),t.locEnd(s)+1)):i[s.type].print({node:s,options:t,path:e,print:r})}}};const t={};function r(s){const i=t[s];if(void 0!==i)return i.exports;const n=t[s]={exports:{}};return e[s].call(n.exports,n,n.exports,r),n.exports}(()=>{const e=Symbol("webpack queues"),t=Symbol("webpack exports"),s=Symbol("webpack error"),i=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};r.a=(r,n,a)=>{let o;a&&((o=[]).d=-1);const c=new Set,l=r.exports;let h,u,d;const p=new Promise((e,t)=>{d=t,u=e});p[t]=l,p[e]=e=>(o&&e(o),c.forEach(e),p.catch(e=>{})),r.exports=p,n(r=>{let n;h=(r=>r.map(r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){const n=[];n.d=0,r.then(e=>{a[t]=e,i(n)},e=>{a[s]=e,i(n)});const a={};return a[e]=e=>e(n),a}}const n={};return n[e]=e=>{},n[t]=r,n}))(r);const a=()=>h.map(e=>{if(e[s])throw e[s];return e[t]}),l=new Promise(t=>{n=()=>t(a),n.r=0;const r=e=>e!==o&&!c.has(e)&&(c.add(e),e&&!e.d&&(n.r++,e.push(n)));h.forEach(t=>t[e](r))});return n.r?l:a()},e=>(e?d(p[s]=e):u(l),i(o))),o?.d<0&&(o.d=0)}})(),r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var s=0;s<t.length;){var i=t[s++],n=t[s++];r.o(e,i)?0===n&&s++:0===n?Object.defineProperty(e,i,{enumerable:!0,value:t[s++]}):Object.defineProperty(e,i,{enumerable:!0,get:n})}else for(var i in t)r.o(t,i)&&!r.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports},(()=>{let e;if("string"==typeof import.meta.url&&(e=import.meta.url),!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();let s=r(8156);s=await s;const i=s.A;export{i as default};var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this||{};n.prettierPlugins=n.prettierPlugins||{},n.prettierPlugins.solidity=i;
2
- //# sourceMappingURL=standalone.js.map
1
+ var jE=Object.create;var L1=Object.defineProperty;var GE=Object.getOwnPropertyDescriptor;var WE=Object.getOwnPropertyNames;var zE=Object.getPrototypeOf,QE=Object.prototype.hasOwnProperty;var at=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},gg=(r,e)=>{for(var t in e)L1(r,t,{get:e[t],enumerable:!0})},XE=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of WE(e))!QE.call(r,o)&&o!==t&&L1(r,o,{get:()=>e[o],enumerable:!(n=GE(e,o))||n.enumerable});return r};var ai=(r,e,t)=>(t=r!=null?jE(zE(r)):{},XE(e||!r||!r.__esModule?L1(t,"default",{value:r,enumerable:!0}):t,r));var H3=at((Po,a0)=>{"use strict";(function(e,t){typeof Po=="object"&&typeof a0=="object"?a0.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Po=="object"?Po.SolidityParser=t():e.SolidityParser=t()})(typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:Po||{},()=>{"use strict";var r=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,u=(i,c)=>{for(var a in c)e(i,a,{get:c[a],enumerable:!0})},d=(i,c,a,w)=>{if(c&&typeof c=="object"||typeof c=="function")for(let q of n(c))!o.call(i,q)&&q!==a&&e(i,q,{get:()=>c[q],enumerable:!(w=t(c,q))||w.enumerable});return i},y=i=>d(e({},"__esModule",{value:!0}),i),x={};u(x,{ParserError:()=>r1,default:()=>bE,parse:()=>Uw,tokenize:()=>Bw,visit:()=>Ol});var E={92:()=>{}},T={};function N(i){var c=T[i];if(c!==void 0)return c.exports;var a=T[i]={exports:{}};return E[i](a,a.exports,N),a.exports}N.d=(i,c)=>{for(var a in c)N.o(c,a)&&!N.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:c[a]})},N.o=(i,c)=>Object.prototype.hasOwnProperty.call(i,c);var P={};(()=>{N.d(P,{dx:()=>Ze,q2:()=>E1,FO:()=>ag,xf:()=>wo,Gy:()=>hg,s4:()=>_i,c7:()=>dg,_7:()=>ng,tx:()=>jl,gp:()=>og,cK:()=>po,zs:()=>_1,AV:()=>wo,Xp:()=>Ae,VS:()=>Yt,ul:()=>Bn,hW:()=>rt,x1:()=>it,z5:()=>Hl,oN:()=>A1,TB:()=>sg,u1:()=>ql,_b:()=>F1,$F:()=>tg,_T:()=>N1,db:()=>rg,Zx:()=>Ct,_x:()=>Ki,r8:()=>Yn,JI:()=>ao,TP:()=>ri,WU:()=>i,Nj:()=>be,ZP:()=>qE});class i{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(s){this._text=s}}function c(K,s){if(!Array.isArray(K)||!Array.isArray(s))return!1;if(K===s)return!0;if(K.length!==s.length)return!1;for(let l=0;l<K.length;l++)if(!(K[l]===s[l]||K[l].equals&&K[l].equals(s[l])))return!1;return!0}i.INVALID_TYPE=0,i.EPSILON=-2,i.MIN_USER_TOKEN_TYPE=1,i.EOF=-1,i.DEFAULT_CHANNEL=0,i.HIDDEN_CHANNEL=1;let a=Math.round(Math.random()*Math.pow(2,32));function w(K){if(!K)return 0;let s=typeof K,l=s==="string"?K:!(s!=="object"||!K.toString)&&K.toString();if(!l)return 0;let p,m,g=3&l.length,S=l.length-g,L=a,j=3432918353,W=461845907,se=0;for(;se<S;)m=255&l.charCodeAt(se)|(255&l.charCodeAt(++se))<<8|(255&l.charCodeAt(++se))<<16|(255&l.charCodeAt(++se))<<24,++se,m=(65535&m)*j+(((m>>>16)*j&65535)<<16)&4294967295,m=m<<15|m>>>17,m=(65535&m)*W+(((m>>>16)*W&65535)<<16)&4294967295,L^=m,L=L<<13|L>>>19,p=5*(65535&L)+((5*(L>>>16)&65535)<<16)&4294967295,L=27492+(65535&p)+((58964+(p>>>16)&65535)<<16);switch(m=0,g){case 3:m^=(255&l.charCodeAt(se+2))<<16;case 2:m^=(255&l.charCodeAt(se+1))<<8;case 1:m^=255&l.charCodeAt(se),m=(65535&m)*j+(((m>>>16)*j&65535)<<16)&4294967295,m=m<<15|m>>>17,m=(65535&m)*W+(((m>>>16)*W&65535)<<16)&4294967295,L^=m}return L^=l.length,L^=L>>>16,L=2246822507*(65535&L)+((2246822507*(L>>>16)&65535)<<16)&4294967295,L^=L>>>13,L=3266489909*(65535&L)+((3266489909*(L>>>16)&65535)<<16)&4294967295,L^=L>>>16,L>>>0}class q{constructor(){this.count=0,this.hash=0}update(){for(let s=0;s<arguments.length;s++){let l=arguments[s];if(l!=null)if(Array.isArray(l))this.update.apply(this,l);else{let p=0;switch(typeof l){case"undefined":case"function":continue;case"number":case"boolean":p=l;break;case"string":p=w(l);break;default:l.updateHashCode?l.updateHashCode(this):console.log("No updateHashCode for "+l.toString());continue}p*=3432918353,p=p<<15|p>>>17,p*=461845907,this.count=this.count+1;let m=this.hash^p;m=m<<13|m>>>19,m=5*m+3864292196,this.hash=m}}}finish(){let s=this.hash^4*this.count;return s^=s>>>16,s*=2246822507,s^=s>>>13,s*=3266489909,s^=s>>>16,s}static hashStuff(){let s=new q;return s.update.apply(s,arguments),s.finish()}}function he(K){return K?typeof K=="string"?w(K):K.hashCode():-1}function pe(K,s){return K?K.equals(s):K===s}function le(K){return K===null?"null":K}function be(K){return Array.isArray(K)?"["+K.map(le).join(", ")+"]":"null"}let He="h-";class je{constructor(s,l){this.data={},this.hashFunction=s||he,this.equalsFunction=l||pe}add(s){let l=He+this.hashFunction(s);if(l in this.data){let p=this.data[l];for(let m=0;m<p.length;m++)if(this.equalsFunction(s,p[m]))return p[m];return p.push(s),s}return this.data[l]=[s],s}has(s){return this.get(s)!=null}get(s){let l=He+this.hashFunction(s);if(l in this.data){let p=this.data[l];for(let m=0;m<p.length;m++)if(this.equalsFunction(s,p[m]))return p[m]}return null}values(){return Object.keys(this.data).filter(s=>s.startsWith(He)).flatMap(s=>this.data[s],this)}toString(){return be(this.values())}get length(){return Object.keys(this.data).filter(s=>s.startsWith(He)).map(s=>this.data[s].length,this).reduce((s,l)=>s+l,0)}}class _e{hashCode(){let s=new q;return this.updateHashCode(s),s.finish()}evaluate(s,l){}evalPrecedence(s,l){return this}static andContext(s,l){if(s===null||s===_e.NONE)return l;if(l===null||l===_e.NONE)return s;let p=new kr(s,l);return p.opnds.length===1?p.opnds[0]:p}static orContext(s,l){if(s===null)return l;if(l===null)return s;if(s===_e.NONE||l===_e.NONE)return _e.NONE;let p=new gr(s,l);return p.opnds.length===1?p.opnds[0]:p}}class kr extends _e{constructor(s,l){super();let p=new je;s instanceof kr?s.opnds.map(function(g){p.add(g)}):p.add(s),l instanceof kr?l.opnds.map(function(g){p.add(g)}):p.add(l);let m=Zi(p);if(m.length>0){let g=null;m.map(function(S){(g===null||S.precedence<g.precedence)&&(g=S)}),p.add(g)}this.opnds=Array.from(p.values())}equals(s){return this===s||s instanceof kr&&c(this.opnds,s.opnds)}updateHashCode(s){s.update(this.opnds,"AND")}evaluate(s,l){for(let p=0;p<this.opnds.length;p++)if(!this.opnds[p].evaluate(s,l))return!1;return!0}evalPrecedence(s,l){let p=!1,m=[];for(let S=0;S<this.opnds.length;S++){let L=this.opnds[S],j=L.evalPrecedence(s,l);if(p|=j!==L,j===null)return null;j!==_e.NONE&&m.push(j)}if(!p)return this;if(m.length===0)return _e.NONE;let g=null;return m.map(function(S){g=g===null?S:_e.andContext(g,S)}),g}toString(){let s=this.opnds.map(l=>l.toString());return(s.length>3?s.slice(3):s).join("&&")}}class gr extends _e{constructor(s,l){super();let p=new je;s instanceof gr?s.opnds.map(function(g){p.add(g)}):p.add(s),l instanceof gr?l.opnds.map(function(g){p.add(g)}):p.add(l);let m=Zi(p);if(m.length>0){let g=m.sort(function(L,j){return L.compareTo(j)}),S=g[g.length-1];p.add(S)}this.opnds=Array.from(p.values())}equals(s){return this===s||s instanceof gr&&c(this.opnds,s.opnds)}updateHashCode(s){s.update(this.opnds,"OR")}evaluate(s,l){for(let p=0;p<this.opnds.length;p++)if(this.opnds[p].evaluate(s,l))return!0;return!1}evalPrecedence(s,l){let p=!1,m=[];for(let g=0;g<this.opnds.length;g++){let S=this.opnds[g],L=S.evalPrecedence(s,l);if(p|=L!==S,L===_e.NONE)return _e.NONE;L!==null&&m.push(L)}return p?(m.length===0||m.map(function(g){return g}),null):this}toString(){let s=this.opnds.map(l=>l.toString());return(s.length>3?s.slice(3):s).join("||")}}function Zi(K){let s=[];return K.values().map(function(l){l instanceof _e.PrecedencePredicate&&s.push(l)}),s}function oo(K,s){if(K===null){let l={state:null,alt:null,context:null,semanticContext:null};return s&&(l.reachesIntoOuterContext=0),l}{let l={};return l.state=K.state||null,l.alt=K.alt===void 0?null:K.alt,l.context=K.context||null,l.semanticContext=K.semanticContext||null,s&&(l.reachesIntoOuterContext=K.reachesIntoOuterContext||0,l.precedenceFilterSuppressed=K.precedenceFilterSuppressed||!1),l}}class tt{constructor(s,l){this.checkContext(s,l),s=oo(s),l=oo(l,!0),this.state=s.state!==null?s.state:l.state,this.alt=s.alt!==null?s.alt:l.alt,this.context=s.context!==null?s.context:l.context,this.semanticContext=s.semanticContext!==null?s.semanticContext:l.semanticContext!==null?l.semanticContext:_e.NONE,this.reachesIntoOuterContext=l.reachesIntoOuterContext,this.precedenceFilterSuppressed=l.precedenceFilterSuppressed}checkContext(s,l){s.context!==null&&s.context!==void 0||l!==null&&l.context!==null&&l.context!==void 0||(this.context=null)}hashCode(){let s=new q;return this.updateHashCode(s),s.finish()}updateHashCode(s){s.update(this.state.stateNumber,this.alt,this.context,this.semanticContext)}equals(s){return this===s||s instanceof tt&&this.state.stateNumber===s.state.stateNumber&&this.alt===s.alt&&(this.context===null?s.context===null:this.context.equals(s.context))&&this.semanticContext.equals(s.semanticContext)&&this.precedenceFilterSuppressed===s.precedenceFilterSuppressed}hashCodeForConfigSet(){let s=new q;return s.update(this.state.stateNumber,this.alt,this.semanticContext),s.finish()}equalsForConfigSet(s){return this===s||s instanceof tt&&this.state.stateNumber===s.state.stateNumber&&this.alt===s.alt&&this.semanticContext.equals(s.semanticContext)}toString(){return"("+this.state+","+this.alt+(this.context!==null?",["+this.context.toString()+"]":"")+(this.semanticContext!==_e.NONE?","+this.semanticContext.toString():"")+(this.reachesIntoOuterContext>0?",up="+this.reachesIntoOuterContext:"")+")"}}class Ae{constructor(s,l){this.start=s,this.stop=l}clone(){return new Ae(this.start,this.stop)}contains(s){return s>=this.start&&s<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}}Ae.INVALID_INTERVAL=new Ae(-1,-2);class Yt{constructor(){this.intervals=null,this.readOnly=!1}first(s){return this.intervals===null||this.intervals.length===0?i.INVALID_TYPE:this.intervals[0].start}addOne(s){this.addInterval(new Ae(s,s+1))}addRange(s,l){this.addInterval(new Ae(s,l+1))}addInterval(s){if(this.intervals===null)this.intervals=[],this.intervals.push(s.clone());else{for(let l=0;l<this.intervals.length;l++){let p=this.intervals[l];if(s.stop<p.start)return void this.intervals.splice(l,0,s);if(s.stop===p.start)return void(this.intervals[l]=new Ae(s.start,p.stop));if(s.start<=p.stop)return this.intervals[l]=new Ae(Math.min(p.start,s.start),Math.max(p.stop,s.stop)),void this.reduce(l)}this.intervals.push(s.clone())}}addSet(s){return s.intervals!==null&&s.intervals.forEach(l=>this.addInterval(l),this),this}reduce(s){if(s<this.intervals.length-1){let l=this.intervals[s],p=this.intervals[s+1];l.stop>=p.stop?(this.intervals.splice(s+1,1),this.reduce(s)):l.stop>=p.start&&(this.intervals[s]=new Ae(l.start,p.stop),this.intervals.splice(s+1,1))}}complement(s,l){let p=new Yt;return p.addInterval(new Ae(s,l+1)),this.intervals!==null&&this.intervals.forEach(m=>p.removeRange(m)),p}contains(s){if(this.intervals===null)return!1;for(let l=0;l<this.intervals.length;l++)if(this.intervals[l].contains(s))return!0;return!1}removeRange(s){if(s.start===s.stop-1)this.removeOne(s.start);else if(this.intervals!==null){let l=0;for(let p=0;p<this.intervals.length;p++){let m=this.intervals[l];if(s.stop<=m.start)return;if(s.start>m.start&&s.stop<m.stop){this.intervals[l]=new Ae(m.start,s.start);let g=new Ae(s.stop,m.stop);return void this.intervals.splice(l,0,g)}s.start<=m.start&&s.stop>=m.stop?(this.intervals.splice(l,1),l-=1):s.start<m.stop?this.intervals[l]=new Ae(m.start,s.start):s.stop<m.stop&&(this.intervals[l]=new Ae(s.stop,m.stop)),l+=1}}}removeOne(s){if(this.intervals!==null)for(let l=0;l<this.intervals.length;l++){let p=this.intervals[l];if(s<p.start)return;if(s===p.start&&s===p.stop-1)return void this.intervals.splice(l,1);if(s===p.start)return void(this.intervals[l]=new Ae(p.start+1,p.stop));if(s===p.stop-1)return void(this.intervals[l]=new Ae(p.start,p.stop-1));if(s<p.stop-1){let m=new Ae(p.start,s);return p.start=s+1,void this.intervals.splice(l,0,m)}}}toString(s,l,p){return s=s||null,l=l||null,p=p||!1,this.intervals===null?"{}":s!==null||l!==null?this.toTokenString(s,l):p?this.toCharString():this.toIndexString()}toCharString(){let s=[];for(let l=0;l<this.intervals.length;l++){let p=this.intervals[l];p.stop===p.start+1?p.start===i.EOF?s.push("<EOF>"):s.push("'"+String.fromCharCode(p.start)+"'"):s.push("'"+String.fromCharCode(p.start)+"'..'"+String.fromCharCode(p.stop-1)+"'")}return s.length>1?"{"+s.join(", ")+"}":s[0]}toIndexString(){let s=[];for(let l=0;l<this.intervals.length;l++){let p=this.intervals[l];p.stop===p.start+1?p.start===i.EOF?s.push("<EOF>"):s.push(p.start.toString()):s.push(p.start.toString()+".."+(p.stop-1).toString())}return s.length>1?"{"+s.join(", ")+"}":s[0]}toTokenString(s,l){let p=[];for(let m=0;m<this.intervals.length;m++){let g=this.intervals[m];for(let S=g.start;S<g.stop;S++)p.push(this.elementName(s,l,S))}return p.length>1?"{"+p.join(", ")+"}":p[0]}elementName(s,l,p){return p===i.EOF?"<EOF>":p===i.EPSILON?"<EPSILON>":s[p]||l[p]}get length(){return this.intervals.map(s=>s.length).reduce((s,l)=>s+l)}}class xe{constructor(){this.atn=null,this.stateNumber=xe.INVALID_STATE_NUMBER,this.stateType=null,this.ruleIndex=0,this.epsilonOnlyTransitions=!1,this.transitions=[],this.nextTokenWithinRule=null}toString(){return this.stateNumber}equals(s){return s instanceof xe&&this.stateNumber===s.stateNumber}isNonGreedyExitState(){return!1}addTransition(s,l){l===void 0&&(l=-1),this.transitions.length===0?this.epsilonOnlyTransitions=s.isEpsilon:this.epsilonOnlyTransitions!==s.isEpsilon&&(this.epsilonOnlyTransitions=!1),l===-1?this.transitions.push(s):this.transitions.splice(l,1,s)}}xe.INVALID_TYPE=0,xe.BASIC=1,xe.RULE_START=2,xe.BLOCK_START=3,xe.PLUS_BLOCK_START=4,xe.STAR_BLOCK_START=5,xe.TOKEN_START=6,xe.RULE_STOP=7,xe.BLOCK_END=8,xe.STAR_LOOP_BACK=9,xe.STAR_LOOP_ENTRY=10,xe.PLUS_LOOP_BACK=11,xe.LOOP_END=12,xe.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"],xe.INVALID_STATE_NUMBER=-1;class Qt extends xe{constructor(){return super(),this.stateType=xe.RULE_STOP,this}}class ge{constructor(s){if(s==null)throw"target cannot be null.";this.target=s,this.isEpsilon=!1,this.label=null}}ge.EPSILON=1,ge.RANGE=2,ge.RULE=3,ge.PREDICATE=4,ge.ATOM=5,ge.ACTION=6,ge.SET=7,ge.NOT_SET=8,ge.WILDCARD=9,ge.PRECEDENCE=10,ge.serializationNames=["INVALID","EPSILON","RANGE","RULE","PREDICATE","ATOM","ACTION","SET","NOT_SET","WILDCARD","PRECEDENCE"],ge.serializationTypes={EpsilonTransition:ge.EPSILON,RangeTransition:ge.RANGE,RuleTransition:ge.RULE,PredicateTransition:ge.PREDICATE,AtomTransition:ge.ATOM,ActionTransition:ge.ACTION,SetTransition:ge.SET,NotSetTransition:ge.NOT_SET,WildcardTransition:ge.WILDCARD,PrecedencePredicateTransition:ge.PRECEDENCE};class Ml extends ge{constructor(s,l,p,m){super(s),this.ruleIndex=l,this.precedence=p,this.followState=m,this.serializationType=ge.RULE,this.isEpsilon=!0}matches(s,l,p){return!1}}class i1 extends ge{constructor(s,l){super(s),this.serializationType=ge.SET,l!=null?this.label=l:(this.label=new Yt,this.label.addOne(i.INVALID_TYPE))}matches(s,l,p){return this.label.contains(s)}toString(){return this.label.toString()}}class n1 extends i1{constructor(s,l){super(s,l),this.serializationType=ge.NOT_SET}matches(s,l,p){return s>=l&&s<=p&&!super.matches(s,l,p)}toString(){return"~"+super.toString()}}class Vw extends ge{constructor(s){super(s),this.serializationType=ge.WILDCARD}matches(s,l,p){return s>=l&&s<=p}toString(){return"."}}class s1 extends ge{constructor(s){super(s)}}class EE{}class CE extends EE{}class $w extends CE{}class ao extends $w{get ruleContext(){throw new Error("missing interface implementation")}}class ri extends $w{}class Yl extends ri{}let Ti={toStringTree:function(K,s,l){s=s||null,(l=l||null)!==null&&(s=l.ruleNames);let p=Ti.getNodeText(K,s);p=(function(S,L){return S=S.replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r")})(p);let m=K.getChildCount();if(m===0)return p;let g="("+p+" ";m>0&&(p=Ti.toStringTree(K.getChild(0),s),g=g.concat(p));for(let S=1;S<m;S++)p=Ti.toStringTree(K.getChild(S),s),g=g.concat(" "+p);return g=g.concat(")"),g},getNodeText:function(K,s,l){if(s=s||null,(l=l||null)!==null&&(s=l.ruleNames),s!==null){if(K instanceof ao){let m=K.ruleContext.getAltNumber();return m!=0?s[K.ruleIndex]+":"+m:s[K.ruleIndex]}if(K instanceof Yl)return K.toString();if(K instanceof ri&&K.symbol!==null)return K.symbol.text}let p=K.getPayload();return p instanceof i?p.text:K.getPayload().toString()},getChildren:function(K){let s=[];for(let l=0;l<K.getChildCount();l++)s.push(K.getChild(l));return s},getAncestors:function(K){let s=[];for(K=K.getParent();K!==null;)s=[K].concat(s),K=K.getParent();return s},findAllTokenNodes:function(K,s){return Ti.findAllNodes(K,s,!0)},findAllRuleNodes:function(K,s){return Ti.findAllNodes(K,s,!1)},findAllNodes:function(K,s,l){let p=[];return Ti._findAllNodes(K,s,l,p),p},_findAllNodes:function(K,s,l,p){l&&K instanceof ri?K.symbol.type===s&&p.push(K):!l&&K instanceof ao&&K.ruleIndex===s&&p.push(K);for(let m=0;m<K.getChildCount();m++)Ti._findAllNodes(K.getChild(m),s,l,p)},descendants:function(K){let s=[K];for(let l=0;l<K.getChildCount();l++)s=s.concat(Ti.descendants(K.getChild(l)));return s}},Hw=Ti;class Yn extends ao{constructor(s,l){super(),this.parentCtx=s||null,this.invokingState=l||-1}depth(){let s=0,l=this;for(;l!==null;)l=l.parentCtx,s+=1;return s}isEmpty(){return this.invokingState===-1}getSourceInterval(){return Ae.INVALID_INTERVAL}get ruleContext(){return this}getPayload(){return this}getText(){return this.getChildCount()===0?"":this.children.map(function(s){return s.getText()}).join("")}getAltNumber(){return 0}setAltNumber(s){}getChild(s){return null}getChildCount(){return 0}accept(s){return s.visitChildren(this)}toStringTree(s,l){return Hw.toStringTree(this,s,l)}toString(s,l){s=s||null,l=l||null;let p=this,m="[";for(;p!==null&&p!==l;){if(s===null)p.isEmpty()||(m+=p.invokingState);else{let g=p.ruleIndex;m+=g>=0&&g<s.length?s[g]:""+g}p.parentCtx===null||s===null&&p.parentCtx.isEmpty()||(m+=" "),p=p.parentCtx}return m+="]",m}}class Ke{constructor(s){this.cachedHashCode=s}isEmpty(){return this===Ke.EMPTY}hasEmptyPath(){return this.getReturnState(this.length-1)===Ke.EMPTY_RETURN_STATE}hashCode(){return this.cachedHashCode}updateHashCode(s){s.update(this.cachedHashCode)}}Ke.EMPTY=null,Ke.EMPTY_RETURN_STATE=2147483647,Ke.globalNodeCount=1,Ke.id=Ke.globalNodeCount,Ke.trace_atn_sim=!1;class ii extends Ke{constructor(s,l){let p=new q;return p.update(s,l),super(p.finish()),this.parents=s,this.returnStates=l,this}isEmpty(){return this.returnStates[0]===Ke.EMPTY_RETURN_STATE}getParent(s){return this.parents[s]}getReturnState(s){return this.returnStates[s]}equals(s){return this===s||s instanceof ii&&this.hashCode()===s.hashCode()&&c(this.returnStates,s.returnStates)&&c(this.parents,s.parents)}toString(){if(this.isEmpty())return"[]";{let s="[";for(let l=0;l<this.returnStates.length;l++)l>0&&(s+=", "),this.returnStates[l]!==Ke.EMPTY_RETURN_STATE?(s+=this.returnStates[l],this.parents[l]!==null?s=s+" "+this.parents[l]:s+="null"):s+="$";return s+"]"}}get length(){return this.returnStates.length}}class Xt extends Ke{constructor(s,l){let p=0,m=new q;s!==null?m.update(s,l):m.update(1),p=m.finish(),super(p),this.parentCtx=s,this.returnState=l}getParent(s){return this.parentCtx}getReturnState(s){return this.returnState}equals(s){return this===s||s instanceof Xt&&this.hashCode()===s.hashCode()&&this.returnState===s.returnState&&(this.parentCtx==null?s.parentCtx==null:this.parentCtx.equals(s.parentCtx))}toString(){let s=this.parentCtx===null?"":this.parentCtx.toString();return s.length===0?this.returnState===Ke.EMPTY_RETURN_STATE?"$":""+this.returnState:this.returnState+" "+s}get length(){return 1}static create(s,l){return l===Ke.EMPTY_RETURN_STATE&&s===null?Ke.EMPTY:new Xt(s,l)}}class o1 extends Xt{constructor(){super(null,Ke.EMPTY_RETURN_STATE)}isEmpty(){return!0}getParent(s){return null}getReturnState(s){return this.returnState}equals(s){return this===s}toString(){return"$"}}Ke.EMPTY=new o1;let lo="h-";class uo{constructor(s,l){this.data={},this.hashFunction=s||he,this.equalsFunction=l||pe}set(s,l){let p=lo+this.hashFunction(s);if(p in this.data){let m=this.data[p];for(let g=0;g<m.length;g++){let S=m[g];if(this.equalsFunction(s,S.key)){let L=S.value;return S.value=l,L}}return m.push({key:s,value:l}),l}return this.data[p]=[{key:s,value:l}],l}containsKey(s){let l=lo+this.hashFunction(s);if(l in this.data){let p=this.data[l];for(let m=0;m<p.length;m++){let g=p[m];if(this.equalsFunction(s,g.key))return!0}}return!1}get(s){let l=lo+this.hashFunction(s);if(l in this.data){let p=this.data[l];for(let m=0;m<p.length;m++){let g=p[m];if(this.equalsFunction(s,g.key))return g.value}}return null}entries(){return Object.keys(this.data).filter(s=>s.startsWith(lo)).flatMap(s=>this.data[s],this)}getKeys(){return this.entries().map(s=>s.key)}getValues(){return this.entries().map(s=>s.value)}toString(){return"["+this.entries().map(s=>"{"+s.key+":"+s.value+"}").join(", ")+"]"}get length(){return Object.keys(this.data).filter(s=>s.startsWith(lo)).map(s=>this.data[s].length,this).reduce((s,l)=>s+l,0)}}function a1(K,s){if(s==null&&(s=Yn.EMPTY),s.parentCtx===null||s===Yn.EMPTY)return Ke.EMPTY;let l=a1(K,s.parentCtx),p=K.states[s.invokingState].transitions[0];return Xt.create(l,p.followState.stateNumber)}function qw(K,s,l){if(K.isEmpty())return K;let p=l.get(K)||null;if(p!==null)return p;if(p=s.get(K),p!==null)return l.set(K,p),p;let m=!1,g=[];for(let L=0;L<g.length;L++){let j=qw(K.getParent(L),s,l);if(m||j!==K.getParent(L)){if(!m){g=[];for(let W=0;W<K.length;W++)g[W]=K.getParent(W);m=!0}g[L]=j}}if(!m)return s.add(K),l.set(K,K),K;let S=null;return S=g.length===0?Ke.EMPTY:g.length===1?Xt.create(g[0],K.getReturnState(0)):new ii(g,K.returnStates),s.add(S),l.set(S,S),l.set(K,S),S}function l1(K,s,l,p){if(K===s)return K;if(K instanceof Xt&&s instanceof Xt)return(function(m,g,S,L){if(L!==null){let W=L.get(m,g);if(W!==null||(W=L.get(g,m),W!==null))return W}let j=(function(W,se,me){if(me){if(W===Ke.EMPTY||se===Ke.EMPTY)return Ke.EMPTY}else{if(W===Ke.EMPTY&&se===Ke.EMPTY)return Ke.EMPTY;if(W===Ke.EMPTY){let fe=[se.returnState,Ke.EMPTY_RETURN_STATE],Ve=[se.parentCtx,null];return new ii(Ve,fe)}if(se===Ke.EMPTY){let fe=[W.returnState,Ke.EMPTY_RETURN_STATE],Ve=[W.parentCtx,null];return new ii(Ve,fe)}}return null})(m,g,S);if(j!==null)return L!==null&&L.set(m,g,j),j;if(m.returnState===g.returnState){let W=l1(m.parentCtx,g.parentCtx,S,L);if(W===m.parentCtx)return m;if(W===g.parentCtx)return g;let se=Xt.create(W,m.returnState);return L!==null&&L.set(m,g,se),se}{let W=null;if((m===g||m.parentCtx!==null&&m.parentCtx===g.parentCtx)&&(W=m.parentCtx),W!==null){let Ve=[m.returnState,g.returnState];m.returnState>g.returnState&&(Ve[0]=g.returnState,Ve[1]=m.returnState);let Fe=new ii([W,W],Ve);return L!==null&&L.set(m,g,Fe),Fe}let se=[m.returnState,g.returnState],me=[m.parentCtx,g.parentCtx];m.returnState>g.returnState&&(se[0]=g.returnState,se[1]=m.returnState,me=[g.parentCtx,m.parentCtx]);let fe=new ii(me,se);return L!==null&&L.set(m,g,fe),fe}})(K,s,l,p);if(l){if(K instanceof o1)return K;if(s instanceof o1)return s}return K instanceof Xt&&(K=new ii([K.getParent()],[K.returnState])),s instanceof Xt&&(s=new ii([s.getParent()],[s.returnState])),(function(m,g,S,L){if(L!==null){let Fe=L.get(m,g);if(Fe!==null||(Fe=L.get(g,m),Fe!==null))return Ke.trace_atn_sim&&console.log("mergeArrays a="+m+",b="+g+" -> previous"),Fe}let j=0,W=0,se=0,me=new Array(m.returnStates.length+g.returnStates.length).fill(0),fe=new Array(m.returnStates.length+g.returnStates.length).fill(null);for(;j<m.returnStates.length&&W<g.returnStates.length;){let Fe=m.parents[j],xr=g.parents[W];if(m.returnStates[j]===g.returnStates[W]){let Lr=m.returnStates[j];Lr===Ke.EMPTY_RETURN_STATE&&Fe===null&&xr===null||Fe!==null&&xr!==null&&Fe===xr?(fe[se]=Fe,me[se]=Lr):(fe[se]=l1(Fe,xr,S,L),me[se]=Lr),j+=1,W+=1}else m.returnStates[j]<g.returnStates[W]?(fe[se]=Fe,me[se]=m.returnStates[j],j+=1):(fe[se]=xr,me[se]=g.returnStates[W],W+=1);se+=1}if(j<m.returnStates.length)for(let Fe=j;Fe<m.returnStates.length;Fe++)fe[se]=m.parents[Fe],me[se]=m.returnStates[Fe],se+=1;else for(let Fe=W;Fe<g.returnStates.length;Fe++)fe[se]=g.parents[Fe],me[se]=g.returnStates[Fe],se+=1;if(se<fe.length){if(se===1){let Fe=Xt.create(fe[0],me[0]);return L!==null&&L.set(m,g,Fe),Fe}fe=fe.slice(0,se),me=me.slice(0,se)}let Ve=new ii(fe,me);return Ve.equals(m)?(L!==null&&L.set(m,g,m),Ke.trace_atn_sim&&console.log("mergeArrays a="+m+",b="+g+" -> a"),m):Ve.equals(g)?(L!==null&&L.set(m,g,g),Ke.trace_atn_sim&&console.log("mergeArrays a="+m+",b="+g+" -> b"),g):((function(Fe){let xr=new uo;for(let Lr=0;Lr<Fe.length;Lr++){let k1=Fe[Lr];xr.containsKey(k1)||xr.set(k1,k1)}for(let Lr=0;Lr<Fe.length;Lr++)Fe[Lr]=xr.get(Fe[Lr])})(fe),L!==null&&L.set(m,g,Ve),Ke.trace_atn_sim&&console.log("mergeArrays a="+m+",b="+g+" -> "+Ve),Ve)})(K,s,l,p)}class ni{constructor(){this.data=[]}add(s){this.data[s]=!0}or(s){Object.keys(s.data).map(l=>this.add(l),this)}remove(s){delete this.data[s]}has(s){return this.data[s]===!0}values(){return Object.keys(this.data)}minValue(){return Math.min.apply(null,this.values())}hashCode(){return q.hashStuff(this.values())}equals(s){return s instanceof ni&&c(this.data,s.data)}toString(){return"{"+this.values().join(", ")+"}"}get length(){return this.values().length}}class Bn{constructor(s){this.atn=s}getDecisionLookahead(s){if(s===null)return null;let l=s.transitions.length,p=[];for(let m=0;m<l;m++){p[m]=new Yt;let g=new je;this._LOOK(s.transition(m).target,null,Ke.EMPTY,p[m],g,new ni,!1,!1),(p[m].length===0||p[m].contains(Bn.HIT_PRED))&&(p[m]=null)}return p}LOOK(s,l,p){let m=new Yt,g=(p=p||null)!==null?a1(s.atn,p):null;return this._LOOK(s,l,g,m,new je,new ni,!0,!0),m}_LOOK(s,l,p,m,g,S,L,j){let W=new tt({state:s,alt:0,context:p},null);if(!g.has(W)){if(g.add(W),s===l){if(p===null)return void m.addOne(i.EPSILON);if(p.isEmpty()&&j)return void m.addOne(i.EOF)}if(s instanceof Qt){if(p===null)return void m.addOne(i.EPSILON);if(p.isEmpty()&&j)return void m.addOne(i.EOF);if(p!==Ke.EMPTY){let se=S.has(s.ruleIndex);try{S.remove(s.ruleIndex);for(let me=0;me<p.length;me++){let fe=this.atn.states[p.getReturnState(me)];this._LOOK(fe,l,p.getParent(me),m,g,S,L,j)}}finally{se&&S.add(s.ruleIndex)}return}}for(let se=0;se<s.transitions.length;se++){let me=s.transitions[se];if(me.constructor===Ml){if(S.has(me.target.ruleIndex))continue;let fe=Xt.create(p,me.followState.stateNumber);try{S.add(me.target.ruleIndex),this._LOOK(me.target,l,fe,m,g,S,L,j)}finally{S.remove(me.target.ruleIndex)}}else if(me instanceof s1)L?this._LOOK(me.target,l,p,m,g,S,L,j):m.addOne(Bn.HIT_PRED);else if(me.isEpsilon)this._LOOK(me.target,l,p,m,g,S,L,j);else if(me.constructor===Vw)m.addRange(i.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType);else{let fe=me.label;fe!==null&&(me instanceof n1&&(fe=fe.complement(i.MIN_USER_TOKEN_TYPE,this.atn.maxTokenType)),m.addSet(fe))}}}}}Bn.HIT_PRED=i.INVALID_TYPE;class Ze{constructor(s,l){this.grammarType=s,this.maxTokenType=l,this.states=[],this.decisionToState=[],this.ruleToStartState=[],this.ruleToStopState=null,this.modeNameToStartState={},this.ruleToTokenType=null,this.lexerActions=null,this.modeToStartState=[]}nextTokensInContext(s,l){return new Bn(this).LOOK(s,null,l)}nextTokensNoContext(s){return s.nextTokenWithinRule!==null||(s.nextTokenWithinRule=this.nextTokensInContext(s,null),s.nextTokenWithinRule.readOnly=!0),s.nextTokenWithinRule}nextTokens(s,l){return l===void 0?this.nextTokensNoContext(s):this.nextTokensInContext(s,l)}addState(s){s!==null&&(s.atn=this,s.stateNumber=this.states.length),this.states.push(s)}removeState(s){this.states[s.stateNumber]=null}defineDecisionState(s){return this.decisionToState.push(s),s.decision=this.decisionToState.length-1,s.decision}getDecisionState(s){return this.decisionToState.length===0?null:this.decisionToState[s]}getExpectedTokens(s,l){if(s<0||s>=this.states.length)throw"Invalid state number.";let p=this.states[s],m=this.nextTokens(p);if(!m.contains(i.EPSILON))return m;let g=new Yt;for(g.addSet(m),g.removeOne(i.EPSILON);l!==null&&l.invokingState>=0&&m.contains(i.EPSILON);){let S=this.states[l.invokingState].transitions[0];m=this.nextTokens(S.followState),g.addSet(m),g.removeOne(i.EPSILON),l=l.parentCtx}return m.contains(i.EPSILON)&&g.addOne(i.EOF),g}}Ze.INVALID_ALT_NUMBER=0;class jw extends xe{constructor(){super(),this.stateType=xe.BASIC}}class ls extends xe{constructor(){return super(),this.decision=-1,this.nonGreedy=!1,this}}class us extends ls{constructor(){return super(),this.endState=null,this}}class u1 extends xe{constructor(){return super(),this.stateType=xe.BLOCK_END,this.startState=null,this}}class cs extends xe{constructor(){return super(),this.stateType=xe.LOOP_END,this.loopBackState=null,this}}class Gw extends xe{constructor(){return super(),this.stateType=xe.RULE_START,this.stopState=null,this.isPrecedenceRule=!1,this}}class SE extends ls{constructor(){return super(),this.stateType=xe.TOKEN_START,this}}class Ww extends ls{constructor(){return super(),this.stateType=xe.PLUS_LOOP_BACK,this}}class c1 extends xe{constructor(){return super(),this.stateType=xe.STAR_LOOP_BACK,this}}class Un extends ls{constructor(){return super(),this.stateType=xe.STAR_LOOP_ENTRY,this.loopBackState=null,this.isPrecedenceDecision=null,this}}class h1 extends us{constructor(){return super(),this.stateType=xe.PLUS_BLOCK_START,this.loopBackState=null,this}}class p1 extends us{constructor(){return super(),this.stateType=xe.STAR_BLOCK_START,this}}class zw extends us{constructor(){return super(),this.stateType=xe.BLOCK_START,this}}class d1 extends ge{constructor(s,l){super(s),this.label_=l,this.label=this.makeLabel(),this.serializationType=ge.ATOM}makeLabel(){let s=new Yt;return s.addOne(this.label_),s}matches(s,l,p){return this.label_===s}toString(){return this.label_}}class vE extends ge{constructor(s,l,p){super(s),this.serializationType=ge.RANGE,this.start=l,this.stop=p,this.label=this.makeLabel()}makeLabel(){let s=new Yt;return s.addRange(this.start,this.stop),s}matches(s,l,p){return s>=this.start&&s<=this.stop}toString(){return"'"+String.fromCharCode(this.start)+"'..'"+String.fromCharCode(this.stop)+"'"}}class Qw extends ge{constructor(s,l,p,m){super(s),this.serializationType=ge.ACTION,this.ruleIndex=l,this.actionIndex=p===void 0?-1:p,this.isCtxDependent=m!==void 0&&m,this.isEpsilon=!0}matches(s,l,p){return!1}toString(){return"action_"+this.ruleIndex+":"+this.actionIndex}}class co extends ge{constructor(s,l){super(s),this.serializationType=ge.EPSILON,this.isEpsilon=!0,this.outermostPrecedenceReturn=l}matches(s,l,p){return!1}toString(){return"epsilon"}}class Bl extends _e{constructor(s,l,p){super(),this.ruleIndex=s===void 0?-1:s,this.predIndex=l===void 0?-1:l,this.isCtxDependent=p!==void 0&&p}evaluate(s,l){let p=this.isCtxDependent?l:null;return s.sempred(p,this.ruleIndex,this.predIndex)}updateHashCode(s){s.update(this.ruleIndex,this.predIndex,this.isCtxDependent)}equals(s){return this===s||s instanceof Bl&&this.ruleIndex===s.ruleIndex&&this.predIndex===s.predIndex&&this.isCtxDependent===s.isCtxDependent}toString(){return"{"+this.ruleIndex+":"+this.predIndex+"}?"}}_e.NONE=new Bl;class Xw extends s1{constructor(s,l,p,m){super(s),this.serializationType=ge.PREDICATE,this.ruleIndex=l,this.predIndex=p,this.isCtxDependent=m,this.isEpsilon=!0}matches(s,l,p){return!1}getPredicate(){return new Bl(this.ruleIndex,this.predIndex,this.isCtxDependent)}toString(){return"pred_"+this.ruleIndex+":"+this.predIndex}}class Ul extends _e{constructor(s){super(),this.precedence=s===void 0?0:s}evaluate(s,l){return s.precpred(l,this.precedence)}evalPrecedence(s,l){return s.precpred(l,this.precedence)?_e.NONE:null}compareTo(s){return this.precedence-s.precedence}updateHashCode(s){s.update(this.precedence)}equals(s){return this===s||s instanceof Ul&&this.precedence===s.precedence}toString(){return"{"+this.precedence+">=prec}?"}}_e.PrecedencePredicate=Ul;class TE extends s1{constructor(s,l){super(s),this.serializationType=ge.PRECEDENCE,this.precedence=l,this.isEpsilon=!0}matches(s,l,p){return!1}getPredicate(){return new Ul(this.precedence)}toString(){return this.precedence+" >= _p"}}class ho{constructor(s){s===void 0&&(s=null),this.readOnly=!1,this.verifyATN=s===null||s.verifyATN,this.generateRuleBypassTransitions=s!==null&&s.generateRuleBypassTransitions}}ho.defaultOptions=new ho,ho.defaultOptions.readOnly=!0;class Ai{constructor(s){this.actionType=s,this.isPositionDependent=!1}hashCode(){let s=new q;return this.updateHashCode(s),s.finish()}updateHashCode(s){s.update(this.actionType)}equals(s){return this===s}}class m1 extends Ai{constructor(){super(6)}execute(s){s.skip()}toString(){return"skip"}}m1.INSTANCE=new m1;class f1 extends Ai{constructor(s){super(0),this.channel=s}execute(s){s._channel=this.channel}updateHashCode(s){s.update(this.actionType,this.channel)}equals(s){return this===s||s instanceof f1&&this.channel===s.channel}toString(){return"channel("+this.channel+")"}}class y1 extends Ai{constructor(s,l){super(1),this.ruleIndex=s,this.actionIndex=l,this.isPositionDependent=!0}execute(s){s.action(null,this.ruleIndex,this.actionIndex)}updateHashCode(s){s.update(this.actionType,this.ruleIndex,this.actionIndex)}equals(s){return this===s||s instanceof y1&&this.ruleIndex===s.ruleIndex&&this.actionIndex===s.actionIndex}}class w1 extends Ai{constructor(){super(3)}execute(s){s.more()}toString(){return"more"}}w1.INSTANCE=new w1;class g1 extends Ai{constructor(s){super(7),this.type=s}execute(s){s.type=this.type}updateHashCode(s){s.update(this.actionType,this.type)}equals(s){return this===s||s instanceof g1&&this.type===s.type}toString(){return"type("+this.type+")"}}class x1 extends Ai{constructor(s){super(5),this.mode=s}execute(s){s.pushMode(this.mode)}updateHashCode(s){s.update(this.actionType,this.mode)}equals(s){return this===s||s instanceof x1&&this.mode===s.mode}toString(){return"pushMode("+this.mode+")"}}class D1 extends Ai{constructor(){super(4)}execute(s){s.popMode()}toString(){return"popMode"}}D1.INSTANCE=new D1;class b1 extends Ai{constructor(s){super(2),this.mode=s}execute(s){s.mode(this.mode)}updateHashCode(s){s.update(this.actionType,this.mode)}equals(s){return this===s||s instanceof b1&&this.mode===s.mode}toString(){return"mode("+this.mode+")"}}function Vl(K,s){let l=[];return l[K-1]=s,l.map(function(p){return s})}class E1{constructor(s){s==null&&(s=ho.defaultOptions),this.deserializationOptions=s,this.stateFactories=null,this.actionFactories=null}deserialize(s){let l=this.reset(s);this.checkVersion(l),l&&this.skipUUID();let p=this.readATN();this.readStates(p,l),this.readRules(p,l),this.readModes(p);let m=[];return this.readSets(p,m,this.readInt.bind(this)),l&&this.readSets(p,m,this.readInt32.bind(this)),this.readEdges(p,m),this.readDecisions(p),this.readLexerActions(p,l),this.markPrecedenceDecisions(p),this.verifyATN(p),this.deserializationOptions.generateRuleBypassTransitions&&p.grammarType===1&&(this.generateRuleBypassTransitions(p),this.verifyATN(p)),p}reset(s){if((s.charCodeAt?s.charCodeAt(0):s[0])===3){let l=function(m){let g=m.charCodeAt(0);return g>1?g-2:g+65534},p=s.split("").map(l);return p[0]=s.charCodeAt(0),this.data=p,this.pos=0,!0}return this.data=s,this.pos=0,!1}skipUUID(){let s=0;for(;s++<8;)this.readInt()}checkVersion(s){let l=this.readInt();if(!s&&l!==4)throw"Could not deserialize ATN with version "+l+" (expected 4)."}readATN(){let s=this.readInt(),l=this.readInt();return new Ze(s,l)}readStates(s,l){let p,m,g,S=[],L=[],j=this.readInt();for(let me=0;me<j;me++){let fe=this.readInt();if(fe===xe.INVALID_TYPE){s.addState(null);continue}let Ve=this.readInt();l&&Ve===65535&&(Ve=-1);let Fe=this.stateFactory(fe,Ve);if(fe===xe.LOOP_END){let xr=this.readInt();S.push([Fe,xr])}else if(Fe instanceof us){let xr=this.readInt();L.push([Fe,xr])}s.addState(Fe)}for(p=0;p<S.length;p++)m=S[p],m[0].loopBackState=s.states[m[1]];for(p=0;p<L.length;p++)m=L[p],m[0].endState=s.states[m[1]];let W=this.readInt();for(p=0;p<W;p++)g=this.readInt(),s.states[g].nonGreedy=!0;let se=this.readInt();for(p=0;p<se;p++)g=this.readInt(),s.states[g].isPrecedenceRule=!0}readRules(s,l){let p,m=this.readInt();for(s.grammarType===0&&(s.ruleToTokenType=Vl(m,0)),s.ruleToStartState=Vl(m,0),p=0;p<m;p++){let g=this.readInt();if(s.ruleToStartState[p]=s.states[g],s.grammarType===0){let S=this.readInt();l&&S===65535&&(S=i.EOF),s.ruleToTokenType[p]=S}}for(s.ruleToStopState=Vl(m,0),p=0;p<s.states.length;p++){let g=s.states[p];g instanceof Qt&&(s.ruleToStopState[g.ruleIndex]=g,s.ruleToStartState[g.ruleIndex].stopState=g)}}readModes(s){let l=this.readInt();for(let p=0;p<l;p++){let m=this.readInt();s.modeToStartState.push(s.states[m])}}readSets(s,l,p){let m=this.readInt();for(let g=0;g<m;g++){let S=new Yt;l.push(S);let L=this.readInt();this.readInt()!==0&&S.addOne(-1);for(let j=0;j<L;j++){let W=p(),se=p();S.addRange(W,se)}}}readEdges(s,l){let p,m,g,S,L,j=this.readInt();for(p=0;p<j;p++){let W=this.readInt(),se=this.readInt(),me=this.readInt(),fe=this.readInt(),Ve=this.readInt(),Fe=this.readInt();S=this.edgeFactory(s,me,W,se,fe,Ve,Fe,l),s.states[W].addTransition(S)}for(p=0;p<s.states.length;p++)for(g=s.states[p],m=0;m<g.transitions.length;m++){let W=g.transitions[m];if(!(W instanceof Ml))continue;let se=-1;s.ruleToStartState[W.target.ruleIndex].isPrecedenceRule&&W.precedence===0&&(se=W.target.ruleIndex),S=new co(W.followState,se),s.ruleToStopState[W.target.ruleIndex].addTransition(S)}for(p=0;p<s.states.length;p++){if(g=s.states[p],g instanceof us){if(g.endState===null||g.endState.startState!==null)throw"IllegalState";g.endState.startState=g}if(g instanceof Ww)for(m=0;m<g.transitions.length;m++)L=g.transitions[m].target,L instanceof h1&&(L.loopBackState=g);else if(g instanceof c1)for(m=0;m<g.transitions.length;m++)L=g.transitions[m].target,L instanceof Un&&(L.loopBackState=g)}}readDecisions(s){let l=this.readInt();for(let p=0;p<l;p++){let m=this.readInt(),g=s.states[m];s.decisionToState.push(g),g.decision=p}}readLexerActions(s,l){if(s.grammarType===0){let p=this.readInt();s.lexerActions=Vl(p,null);for(let m=0;m<p;m++){let g=this.readInt(),S=this.readInt();l&&S===65535&&(S=-1);let L=this.readInt();l&&L===65535&&(L=-1),s.lexerActions[m]=this.lexerActionFactory(g,S,L)}}}generateRuleBypassTransitions(s){let l,p=s.ruleToStartState.length;for(l=0;l<p;l++)s.ruleToTokenType[l]=s.maxTokenType+l+1;for(l=0;l<p;l++)this.generateRuleBypassTransition(s,l)}generateRuleBypassTransition(s,l){let p,m,g=new zw;g.ruleIndex=l,s.addState(g);let S=new u1;S.ruleIndex=l,s.addState(S),g.endState=S,s.defineDecisionState(g),S.startState=g;let L=null,j=null;if(s.ruleToStartState[l].isPrecedenceRule){for(j=null,p=0;p<s.states.length;p++)if(m=s.states[p],this.stateIsEndStateFor(m,l)){j=m,L=m.loopBackState.transitions[0];break}if(L===null)throw"Couldn't identify final state of the precedence rule prefix section."}else j=s.ruleToStopState[l];for(p=0;p<s.states.length;p++){m=s.states[p];for(let fe=0;fe<m.transitions.length;fe++){let Ve=m.transitions[fe];Ve!==L&&Ve.target===j&&(Ve.target=S)}}let W=s.ruleToStartState[l],se=W.transitions.length;for(;se>0;)g.addTransition(W.transitions[se-1]),W.transitions=W.transitions.slice(-1);s.ruleToStartState[l].addTransition(new co(g)),S.addTransition(new co(j));let me=new jw;s.addState(me),me.addTransition(new d1(S,s.ruleToTokenType[l])),g.addTransition(new co(me))}stateIsEndStateFor(s,l){if(s.ruleIndex!==l||!(s instanceof Un))return null;let p=s.transitions[s.transitions.length-1].target;return p instanceof cs&&p.epsilonOnlyTransitions&&p.transitions[0].target instanceof Qt?s:null}markPrecedenceDecisions(s){for(let l=0;l<s.states.length;l++){let p=s.states[l];if(p instanceof Un&&s.ruleToStartState[p.ruleIndex].isPrecedenceRule){let m=p.transitions[p.transitions.length-1].target;m instanceof cs&&m.epsilonOnlyTransitions&&m.transitions[0].target instanceof Qt&&(p.isPrecedenceDecision=!0)}}}verifyATN(s){if(this.deserializationOptions.verifyATN)for(let l=0;l<s.states.length;l++){let p=s.states[l];if(p!==null)if(this.checkCondition(p.epsilonOnlyTransitions||p.transitions.length<=1),p instanceof h1)this.checkCondition(p.loopBackState!==null);else if(p instanceof Un)if(this.checkCondition(p.loopBackState!==null),this.checkCondition(p.transitions.length===2),p.transitions[0].target instanceof p1)this.checkCondition(p.transitions[1].target instanceof cs),this.checkCondition(!p.nonGreedy);else{if(!(p.transitions[0].target instanceof cs))throw"IllegalState";this.checkCondition(p.transitions[1].target instanceof p1),this.checkCondition(p.nonGreedy)}else p instanceof c1?(this.checkCondition(p.transitions.length===1),this.checkCondition(p.transitions[0].target instanceof Un)):p instanceof cs?this.checkCondition(p.loopBackState!==null):p instanceof Gw?this.checkCondition(p.stopState!==null):p instanceof us?this.checkCondition(p.endState!==null):p instanceof u1?this.checkCondition(p.startState!==null):p instanceof ls?this.checkCondition(p.transitions.length<=1||p.decision>=0):this.checkCondition(p.transitions.length<=1||p instanceof Qt)}}checkCondition(s,l){if(!s)throw l==null&&(l="IllegalState"),l}readInt(){return this.data[this.pos++]}readInt32(){return this.readInt()|this.readInt()<<16}edgeFactory(s,l,p,m,g,S,L,j){let W=s.states[m];switch(l){case ge.EPSILON:return new co(W);case ge.RANGE:return new vE(W,L!==0?i.EOF:g,S);case ge.RULE:return new Ml(s.states[g],S,L,W);case ge.PREDICATE:return new Xw(W,g,S,L!==0);case ge.PRECEDENCE:return new TE(W,g);case ge.ATOM:return new d1(W,L!==0?i.EOF:g);case ge.ACTION:return new Qw(W,g,S,L!==0);case ge.SET:return new i1(W,j[g]);case ge.NOT_SET:return new n1(W,j[g]);case ge.WILDCARD:return new Vw(W);default:throw"The specified transition type: "+l+" is not valid."}}stateFactory(s,l){if(this.stateFactories===null){let p=[];p[xe.INVALID_TYPE]=null,p[xe.BASIC]=()=>new jw,p[xe.RULE_START]=()=>new Gw,p[xe.BLOCK_START]=()=>new zw,p[xe.PLUS_BLOCK_START]=()=>new h1,p[xe.STAR_BLOCK_START]=()=>new p1,p[xe.TOKEN_START]=()=>new SE,p[xe.RULE_STOP]=()=>new Qt,p[xe.BLOCK_END]=()=>new u1,p[xe.STAR_LOOP_BACK]=()=>new c1,p[xe.STAR_LOOP_ENTRY]=()=>new Un,p[xe.PLUS_LOOP_BACK]=()=>new Ww,p[xe.LOOP_END]=()=>new cs,this.stateFactories=p}if(s>this.stateFactories.length||this.stateFactories[s]===null)throw"The specified state type "+s+" is not valid.";{let p=this.stateFactories[s]();if(p!==null)return p.ruleIndex=l,p}}lexerActionFactory(s,l,p){if(this.actionFactories===null){let m=[];m[0]=(g,S)=>new f1(g),m[1]=(g,S)=>new y1(g,S),m[2]=(g,S)=>new b1(g),m[3]=(g,S)=>w1.INSTANCE,m[4]=(g,S)=>D1.INSTANCE,m[5]=(g,S)=>new x1(g),m[6]=(g,S)=>m1.INSTANCE,m[7]=(g,S)=>new g1(g),this.actionFactories=m}if(s>this.actionFactories.length||this.actionFactories[s]===null)throw"The specified lexer action type "+s+" is not valid.";return this.actionFactories[s](l,p)}}class po{syntaxError(s,l,p,m,g,S){}reportAmbiguity(s,l,p,m,g,S,L){}reportAttemptingFullContext(s,l,p,m,g,S){}reportContextSensitivity(s,l,p,m,g,S){}}class C1 extends po{constructor(){super()}syntaxError(s,l,p,m,g,S){console.error("line "+p+":"+m+" "+g)}}C1.INSTANCE=new C1;class AE extends po{constructor(s){if(super(),s===null)throw"delegates";return this.delegates=s,this}syntaxError(s,l,p,m,g,S){this.delegates.map(L=>L.syntaxError(s,l,p,m,g,S))}reportAmbiguity(s,l,p,m,g,S,L){this.delegates.map(j=>j.reportAmbiguity(s,l,p,m,g,S,L))}reportAttemptingFullContext(s,l,p,m,g,S){this.delegates.map(L=>L.reportAttemptingFullContext(s,l,p,m,g,S))}reportContextSensitivity(s,l,p,m,g,S){this.delegates.map(L=>L.reportContextSensitivity(s,l,p,m,g,S))}}class $l{constructor(){this._listeners=[C1.INSTANCE],this._interp=null,this._stateNumber=-1}checkVersion(s){let l="4.13.1";l!==s&&console.log("ANTLR runtime and generated code versions disagree: "+l+"!="+s)}addErrorListener(s){this._listeners.push(s)}removeErrorListeners(){this._listeners=[]}getLiteralNames(){return Object.getPrototypeOf(this).constructor.literalNames||[]}getSymbolicNames(){return Object.getPrototypeOf(this).constructor.symbolicNames||[]}getTokenNames(){if(!this.tokenNames){let s=this.getLiteralNames(),l=this.getSymbolicNames(),p=s.length>l.length?s.length:l.length;this.tokenNames=[];for(let m=0;m<p;m++)this.tokenNames[m]=s[m]||l[m]||"<INVALID"}return this.tokenNames}getTokenTypeMap(){let s=this.getTokenNames();if(s===null)throw"The current recognizer does not provide a list of token names.";let l=this.tokenTypeMapCache[s];return l===void 0&&(l=s.reduce(function(p,m,g){p[m]=g}),l.EOF=i.EOF,this.tokenTypeMapCache[s]=l),l}getRuleIndexMap(){let s=this.ruleNames;if(s===null)throw"The current recognizer does not provide a list of rule names.";let l=this.ruleIndexMapCache[s];return l===void 0&&(l=s.reduce(function(p,m,g){p[m]=g}),this.ruleIndexMapCache[s]=l),l}getTokenType(s){let l=this.getTokenTypeMap()[s];return l!==void 0?l:i.INVALID_TYPE}getErrorHeader(s){return"line "+s.getOffendingToken().line+":"+s.getOffendingToken().column}getTokenErrorDisplay(s){if(s===null)return"<no token>";let l=s.text;return l===null&&(l=s.type===i.EOF?"<EOF>":"<"+s.type+">"),l=l.replace(`
2
+ `,"\\n").replace("\r","\\r").replace(" ","\\t"),"'"+l+"'"}getErrorListenerDispatch(){return new AE(this._listeners)}sempred(s,l,p){return!0}precpred(s,l){return!0}get atn(){return this._interp.atn}get state(){return this._stateNumber}set state(s){this._stateNumber=s}}$l.tokenTypeMapCache={},$l.ruleIndexMapCache={};class _i extends i{constructor(s,l,p,m,g){super(),this.source=s!==void 0?s:_i.EMPTY_SOURCE,this.type=l!==void 0?l:null,this.channel=p!==void 0?p:i.DEFAULT_CHANNEL,this.start=m!==void 0?m:-1,this.stop=g!==void 0?g:-1,this.tokenIndex=-1,this.source[0]!==null?(this.line=s[0].line,this.column=s[0].column):this.column=-1}clone(){let s=new _i(this.source,this.type,this.channel,this.start,this.stop);return s.tokenIndex=this.tokenIndex,s.line=this.line,s.column=this.column,s.text=this.text,s}cloneWithType(s){let l=new _i(this.source,s,this.channel,this.start,this.stop);return l.tokenIndex=this.tokenIndex,l.line=this.line,l.column=this.column,s===i.EOF&&(l.text=""),l}toString(){let s=this.text;return s=s!==null?s.replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t"):"<no text>","[@"+this.tokenIndex+","+this.start+":"+this.stop+"='"+s+"',<"+this.type+">"+(this.channel>0?",channel="+this.channel:"")+","+this.line+":"+this.column+"]"}get text(){if(this._text!==null)return this._text;let s=this.getInputStream();if(s===null)return null;let l=s.size;return this.start<l&&this.stop<l?s.getText(this.start,this.stop):"<EOF>"}set text(s){this._text=s}}_i.EMPTY_SOURCE=[null,null];class _E{}class S1 extends _E{constructor(s){super(),this.copyText=s!==void 0&&s}create(s,l,p,m,g,S,L,j){let W=new _i(s,l,m,g,S);return W.line=L,W.column=j,p!==null?W.text=p:this.copyText&&s[1]!==null&&(W.text=s[1].getText(g,S)),W}createThin(s,l){let p=new _i(null,s);return p.text=l,p}}S1.DEFAULT=new S1;class Ki extends Error{constructor(s){super(s.message),Error.captureStackTrace&&Error.captureStackTrace(this,Ki),this.message=s.message,this.recognizer=s.recognizer,this.input=s.input,this.ctx=s.ctx,this.offendingToken=null,this.offendingState=-1,this.recognizer!==null&&(this.offendingState=this.recognizer.state)}getExpectedTokens(){return this.recognizer!==null?this.recognizer.atn.getExpectedTokens(this.offendingState,this.ctx):null}toString(){return this.message}}class v1 extends Ki{constructor(s,l,p,m){super({message:"",recognizer:s,input:l,ctx:null}),this.startIndex=p,this.deadEndConfigs=m}toString(){let s="";return this.startIndex>=0&&this.startIndex<this.input.size&&(s=this.input.getText(new Ae(this.startIndex,this.startIndex))),"LexerNoViableAltException"+s}}class rt extends $l{constructor(s){super(),this._input=s,this._factory=S1.DEFAULT,this._tokenFactorySourcePair=[this,s],this._interp=null,this._token=null,this._tokenStartCharIndex=-1,this._tokenStartLine=-1,this._tokenStartColumn=-1,this._hitEOF=!1,this._channel=i.DEFAULT_CHANNEL,this._type=i.INVALID_TYPE,this._modeStack=[],this._mode=rt.DEFAULT_MODE,this._text=null}reset(){this._input!==null&&this._input.seek(0),this._token=null,this._type=i.INVALID_TYPE,this._channel=i.DEFAULT_CHANNEL,this._tokenStartCharIndex=-1,this._tokenStartColumn=-1,this._tokenStartLine=-1,this._text=null,this._hitEOF=!1,this._mode=rt.DEFAULT_MODE,this._modeStack=[],this._interp.reset()}nextToken(){if(this._input===null)throw"nextToken requires a non-null input stream.";let s=this._input.mark();try{for(;;){if(this._hitEOF)return this.emitEOF(),this._token;this._token=null,this._channel=i.DEFAULT_CHANNEL,this._tokenStartCharIndex=this._input.index,this._tokenStartColumn=this._interp.column,this._tokenStartLine=this._interp.line,this._text=null;let l=!1;for(;;){this._type=i.INVALID_TYPE;let p=rt.SKIP;try{p=this._interp.match(this._input,this._mode)}catch(m){if(!(m instanceof Ki))throw console.log(m.stack),m;this.notifyListeners(m),this.recover(m)}if(this._input.LA(1)===i.EOF&&(this._hitEOF=!0),this._type===i.INVALID_TYPE&&(this._type=p),this._type===rt.SKIP){l=!0;break}if(this._type!==rt.MORE)break}if(!l)return this._token===null&&this.emit(),this._token}}finally{this._input.release(s)}}skip(){this._type=rt.SKIP}more(){this._type=rt.MORE}mode(s){this._mode=s}pushMode(s){this._interp.debug&&console.log("pushMode "+s),this._modeStack.push(this._mode),this.mode(s)}popMode(){if(this._modeStack.length===0)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(s){this._token=s}emit(){let s=this._factory.create(this._tokenFactorySourcePair,this._type,this._text,this._channel,this._tokenStartCharIndex,this.getCharIndex()-1,this._tokenStartLine,this._tokenStartColumn);return this.emitToken(s),s}emitEOF(){let s=this.column,l=this.line,p=this._factory.create(this._tokenFactorySourcePair,i.EOF,null,i.DEFAULT_CHANNEL,this._input.index,this._input.index-1,l,s);return this.emitToken(p),p}getCharIndex(){return this._input.index}getAllTokens(){let s=[],l=this.nextToken();for(;l.type!==i.EOF;)s.push(l),l=this.nextToken();return s}notifyListeners(s){let l=this._tokenStartCharIndex,p=this._input.index,m=this._input.getText(l,p),g="token recognition error at: '"+this.getErrorDisplay(m)+"'";this.getErrorListenerDispatch().syntaxError(this,null,this._tokenStartLine,this._tokenStartColumn,g,s)}getErrorDisplay(s){let l=[];for(let p=0;p<s.length;p++)l.push(s[p]);return l.join("")}getErrorDisplayForChar(s){return s.charCodeAt(0)===i.EOF?"<EOF>":s===`
3
+ `?"\\n":s===" "?"\\t":s==="\r"?"\\r":s}getCharErrorDisplay(s){return"'"+this.getErrorDisplayForChar(s)+"'"}recover(s){this._input.LA(1)!==i.EOF&&(s instanceof v1?this._interp.consume(this._input):this._input.consume())}get inputStream(){return this._input}set inputStream(s){this._input=null,this._tokenFactorySourcePair=[this,this._input],this.reset(),this._input=s,this._tokenFactorySourcePair=[this,this._input]}get sourceName(){return this._input.sourceName}get type(){return this._type}set type(s){this._type=s}get line(){return this._interp.line}set line(s){this._interp.line=s}get column(){return this._interp.column}set column(s){this._interp.column=s}get text(){return this._text!==null?this._text:this._interp.getText(this._input)}set text(s){this._text=s}}function KE(K){return K.hashCodeForConfigSet()}function FE(K,s){return K===s||K!==null&&s!==null&&K.equalsForConfigSet(s)}rt.DEFAULT_MODE=0,rt.MORE=-2,rt.SKIP=-3,rt.DEFAULT_TOKEN_CHANNEL=i.DEFAULT_CHANNEL,rt.HIDDEN=i.HIDDEN_CHANNEL,rt.MIN_CHAR_VALUE=0,rt.MAX_CHAR_VALUE=1114111;class Jt{constructor(s){this.configLookup=new je(KE,FE),this.fullCtx=s===void 0||s,this.readOnly=!1,this.configs=[],this.uniqueAlt=0,this.conflictingAlts=null,this.hasSemanticContext=!1,this.dipsIntoOuterContext=!1,this.cachedHashCode=-1}add(s,l){if(l===void 0&&(l=null),this.readOnly)throw"This set is readonly";s.semanticContext!==_e.NONE&&(this.hasSemanticContext=!0),s.reachesIntoOuterContext>0&&(this.dipsIntoOuterContext=!0);let p=this.configLookup.add(s);if(p===s)return this.cachedHashCode=-1,this.configs.push(s),!0;let m=!this.fullCtx,g=l1(p.context,s.context,m,l);return p.reachesIntoOuterContext=Math.max(p.reachesIntoOuterContext,s.reachesIntoOuterContext),s.precedenceFilterSuppressed&&(p.precedenceFilterSuppressed=!0),p.context=g,!0}getStates(){let s=new je;for(let l=0;l<this.configs.length;l++)s.add(this.configs[l].state);return s}getPredicates(){let s=[];for(let l=0;l<this.configs.length;l++){let p=this.configs[l].semanticContext;p!==_e.NONE&&s.push(p.semanticContext)}return s}optimizeConfigs(s){if(this.readOnly)throw"This set is readonly";if(this.configLookup.length!==0)for(let l=0;l<this.configs.length;l++){let p=this.configs[l];p.context=s.getCachedContext(p.context)}}addAll(s){for(let l=0;l<s.length;l++)this.add(s[l]);return!1}equals(s){return this===s||s instanceof Jt&&c(this.configs,s.configs)&&this.fullCtx===s.fullCtx&&this.uniqueAlt===s.uniqueAlt&&this.conflictingAlts===s.conflictingAlts&&this.hasSemanticContext===s.hasSemanticContext&&this.dipsIntoOuterContext===s.dipsIntoOuterContext}hashCode(){let s=new q;return s.update(this.configs),s.finish()}updateHashCode(s){this.readOnly?(this.cachedHashCode===-1&&(this.cachedHashCode=this.hashCode()),s.update(this.cachedHashCode)):s.update(this.hashCode())}isEmpty(){return this.configs.length===0}contains(s){if(this.configLookup===null)throw"This method is not implemented for readonly sets.";return this.configLookup.contains(s)}containsFast(s){if(this.configLookup===null)throw"This method is not implemented for readonly sets.";return this.configLookup.containsFast(s)}clear(){if(this.readOnly)throw"This set is readonly";this.configs=[],this.cachedHashCode=-1,this.configLookup=new je}setReadonly(s){this.readOnly=s,s&&(this.configLookup=null)}toString(){return be(this.configs)+(this.hasSemanticContext?",hasSemanticContext="+this.hasSemanticContext:"")+(this.uniqueAlt!==Ze.INVALID_ALT_NUMBER?",uniqueAlt="+this.uniqueAlt:"")+(this.conflictingAlts!==null?",conflictingAlts="+this.conflictingAlts:"")+(this.dipsIntoOuterContext?",dipsIntoOuterContext":"")}get items(){return this.configs}get length(){return this.configs.length}}class Fi{constructor(s,l){return s===null&&(s=-1),l===null&&(l=new Jt),this.stateNumber=s,this.configs=l,this.edges=null,this.isAcceptState=!1,this.prediction=0,this.lexerActionExecutor=null,this.requiresFullContext=!1,this.predicates=null,this}getAltSet(){let s=new je;if(this.configs!==null)for(let l=0;l<this.configs.length;l++){let p=this.configs[l];s.add(p.alt)}return s.length===0?null:s}equals(s){return this===s||s instanceof Fi&&this.configs.equals(s.configs)}toString(){let s=this.stateNumber+":"+this.configs;return this.isAcceptState&&(s+="=>",this.predicates!==null?s+=this.predicates:s+=this.prediction),s}hashCode(){let s=new q;return s.update(this.configs),s.finish()}}class si{constructor(s,l){return this.atn=s,this.sharedContextCache=l,this}getCachedContext(s){if(this.sharedContextCache===null)return s;let l=new uo;return qw(s,this.sharedContextCache,l)}}si.ERROR=new Fi(2147483647,new Jt);class Jw extends Jt{constructor(){super(),this.configLookup=new je}}class or extends tt{constructor(s,l){super(s,l);let p=s.lexerActionExecutor||null;return this.lexerActionExecutor=p||(l!==null?l.lexerActionExecutor:null),this.passedThroughNonGreedyDecision=l!==null&&this.checkNonGreedyDecision(l,this.state),this.hashCodeForConfigSet=or.prototype.hashCode,this.equalsForConfigSet=or.prototype.equals,this}updateHashCode(s){s.update(this.state.stateNumber,this.alt,this.context,this.semanticContext,this.passedThroughNonGreedyDecision,this.lexerActionExecutor)}equals(s){return this===s||s instanceof or&&this.passedThroughNonGreedyDecision===s.passedThroughNonGreedyDecision&&(this.lexerActionExecutor?this.lexerActionExecutor.equals(s.lexerActionExecutor):!s.lexerActionExecutor)&&super.equals(s)}checkNonGreedyDecision(s,l){return s.passedThroughNonGreedyDecision||l instanceof ls&&l.nonGreedy}}class mo extends Ai{constructor(s,l){super(l.actionType),this.offset=s,this.action=l,this.isPositionDependent=!0}execute(s){this.action.execute(s)}updateHashCode(s){s.update(this.actionType,this.offset,this.action)}equals(s){return this===s||s instanceof mo&&this.offset===s.offset&&this.action===s.action}}class hs{constructor(s){return this.lexerActions=s===null?[]:s,this.cachedHashCode=q.hashStuff(s),this}fixOffsetBeforeMatch(s){let l=null;for(let p=0;p<this.lexerActions.length;p++)!this.lexerActions[p].isPositionDependent||this.lexerActions[p]instanceof mo||(l===null&&(l=this.lexerActions.concat([])),l[p]=new mo(s,this.lexerActions[p]));return l===null?this:new hs(l)}execute(s,l,p){let m=!1,g=l.index;try{for(let S=0;S<this.lexerActions.length;S++){let L=this.lexerActions[S];if(L instanceof mo){let j=L.offset;l.seek(p+j),L=L.action,m=p+j!==g}else L.isPositionDependent&&(l.seek(g),m=!1);L.execute(s)}}finally{m&&l.seek(g)}}hashCode(){return this.cachedHashCode}updateHashCode(s){s.update(this.cachedHashCode)}equals(s){if(this===s)return!0;if(s instanceof hs){if(this.cachedHashCode!=s.cachedHashCode||this.lexerActions.length!=s.lexerActions.length)return!1;{let l=this.lexerActions.length;for(let p=0;p<l;++p)if(!this.lexerActions[p].equals(s.lexerActions[p]))return!1;return!0}}return!1}static append(s,l){if(s===null)return new hs([l]);let p=s.lexerActions.concat([l]);return new hs(p)}}function Zw(K){K.index=-1,K.line=0,K.column=-1,K.dfaState=null}class NE{constructor(){Zw(this)}reset(){Zw(this)}}class it extends si{constructor(s,l,p,m){super(l,m),this.decisionToDFA=p,this.recog=s,this.startIndex=-1,this.line=1,this.column=0,this.mode=rt.DEFAULT_MODE,this.prevAccept=new NE}copyState(s){this.column=s.column,this.line=s.line,this.mode=s.mode,this.startIndex=s.startIndex}match(s,l){this.mode=l;let p=s.mark();try{this.startIndex=s.index,this.prevAccept.reset();let m=this.decisionToDFA[l];return m.s0===null?this.matchATN(s):this.execATN(s,m.s0)}finally{s.release(p)}}reset(){this.prevAccept.reset(),this.startIndex=-1,this.line=1,this.column=0,this.mode=rt.DEFAULT_MODE}matchATN(s){let l=this.atn.modeToStartState[this.mode];it.debug&&console.log("matchATN mode "+this.mode+" start: "+l);let p=this.mode,m=this.computeStartState(s,l),g=m.hasSemanticContext;m.hasSemanticContext=!1;let S=this.addDFAState(m);g||(this.decisionToDFA[this.mode].s0=S);let L=this.execATN(s,S);return it.debug&&console.log("DFA after matchATN: "+this.decisionToDFA[p].toLexerString()),L}execATN(s,l){it.debug&&console.log("start state closure="+l.configs),l.isAcceptState&&this.captureSimState(this.prevAccept,s,l);let p=s.LA(1),m=l;for(;;){it.debug&&console.log("execATN loop starting closure: "+m.configs);let g=this.getExistingTargetState(m,p);if(g===null&&(g=this.computeTargetState(s,m,p)),g===si.ERROR||(p!==i.EOF&&this.consume(s),g.isAcceptState&&(this.captureSimState(this.prevAccept,s,g),p===i.EOF)))break;p=s.LA(1),m=g}return this.failOrAccept(this.prevAccept,s,m.configs,p)}getExistingTargetState(s,l){if(s.edges===null||l<it.MIN_DFA_EDGE||l>it.MAX_DFA_EDGE)return null;let p=s.edges[l-it.MIN_DFA_EDGE];return p===void 0&&(p=null),it.debug&&p!==null&&console.log("reuse state "+s.stateNumber+" edge to "+p.stateNumber),p}computeTargetState(s,l,p){let m=new Jw;return this.getReachableConfigSet(s,l.configs,m,p),m.items.length===0?(m.hasSemanticContext||this.addDFAEdge(l,p,si.ERROR),si.ERROR):this.addDFAEdge(l,p,null,m)}failOrAccept(s,l,p,m){if(this.prevAccept.dfaState!==null){let g=s.dfaState.lexerActionExecutor;return this.accept(l,g,this.startIndex,s.index,s.line,s.column),s.dfaState.prediction}if(m===i.EOF&&l.index===this.startIndex)return i.EOF;throw new v1(this.recog,l,this.startIndex,p)}getReachableConfigSet(s,l,p,m){let g=Ze.INVALID_ALT_NUMBER;for(let S=0;S<l.items.length;S++){let L=l.items[S],j=L.alt===g;if(!j||!L.passedThroughNonGreedyDecision){it.debug&&console.log(`testing %s at %s
4
+ `,this.getTokenName(m),L.toString(this.recog,!0));for(let W=0;W<L.state.transitions.length;W++){let se=L.state.transitions[W],me=this.getReachableTarget(se,m);if(me!==null){let fe=L.lexerActionExecutor;fe!==null&&(fe=fe.fixOffsetBeforeMatch(s.index-this.startIndex));let Ve=m===i.EOF,Fe=new or({state:me,lexerActionExecutor:fe},L);this.closure(s,Fe,p,j,!0,Ve)&&(g=L.alt)}}}}}accept(s,l,p,m,g,S){it.debug&&console.log(`ACTION %s
5
+ `,l),s.seek(m),this.line=g,this.column=S,l!==null&&this.recog!==null&&l.execute(this.recog,s,p)}getReachableTarget(s,l){return s.matches(l,0,rt.MAX_CHAR_VALUE)?s.target:null}computeStartState(s,l){let p=Ke.EMPTY,m=new Jw;for(let g=0;g<l.transitions.length;g++){let S=l.transitions[g].target,L=new or({state:S,alt:g+1,context:p},null);this.closure(s,L,m,!1,!1,!1)}return m}closure(s,l,p,m,g,S){let L=null;if(it.debug&&console.log("closure("+l.toString(this.recog,!0)+")"),l.state instanceof Qt){if(it.debug&&(this.recog!==null?console.log(`closure at %s rule stop %s
6
+ `,this.recog.ruleNames[l.state.ruleIndex],l):console.log(`closure at rule stop %s
7
+ `,l)),l.context===null||l.context.hasEmptyPath()){if(l.context===null||l.context.isEmpty())return p.add(l),!0;p.add(new or({state:l.state,context:Ke.EMPTY},l)),m=!0}if(l.context!==null&&!l.context.isEmpty()){for(let j=0;j<l.context.length;j++)if(l.context.getReturnState(j)!==Ke.EMPTY_RETURN_STATE){let W=l.context.getParent(j),se=this.atn.states[l.context.getReturnState(j)];L=new or({state:se,context:W},l),m=this.closure(s,L,p,m,g,S)}}return m}l.state.epsilonOnlyTransitions||m&&l.passedThroughNonGreedyDecision||p.add(l);for(let j=0;j<l.state.transitions.length;j++){let W=l.state.transitions[j];L=this.getEpsilonTarget(s,l,W,p,g,S),L!==null&&(m=this.closure(s,L,p,m,g,S))}return m}getEpsilonTarget(s,l,p,m,g,S){let L=null;if(p.serializationType===ge.RULE){let j=Xt.create(l.context,p.followState.stateNumber);L=new or({state:p.target,context:j},l)}else{if(p.serializationType===ge.PRECEDENCE)throw"Precedence predicates are not supported in lexers.";if(p.serializationType===ge.PREDICATE)it.debug&&console.log("EVAL rule "+p.ruleIndex+":"+p.predIndex),m.hasSemanticContext=!0,this.evaluatePredicate(s,p.ruleIndex,p.predIndex,g)&&(L=new or({state:p.target},l));else if(p.serializationType===ge.ACTION)if(l.context===null||l.context.hasEmptyPath()){let j=hs.append(l.lexerActionExecutor,this.atn.lexerActions[p.actionIndex]);L=new or({state:p.target,lexerActionExecutor:j},l)}else L=new or({state:p.target},l);else p.serializationType===ge.EPSILON?L=new or({state:p.target},l):p.serializationType!==ge.ATOM&&p.serializationType!==ge.RANGE&&p.serializationType!==ge.SET||S&&p.matches(i.EOF,0,rt.MAX_CHAR_VALUE)&&(L=new or({state:p.target},l))}return L}evaluatePredicate(s,l,p,m){if(this.recog===null)return!0;if(!m)return this.recog.sempred(null,l,p);let g=this.column,S=this.line,L=s.index,j=s.mark();try{return this.consume(s),this.recog.sempred(null,l,p)}finally{this.column=g,this.line=S,s.seek(L),s.release(j)}}captureSimState(s,l,p){s.index=l.index,s.line=this.line,s.column=this.column,s.dfaState=p}addDFAEdge(s,l,p,m){if(p===void 0&&(p=null),m===void 0&&(m=null),p===null&&m!==null){let g=m.hasSemanticContext;if(m.hasSemanticContext=!1,p=this.addDFAState(m),g)return p}return l<it.MIN_DFA_EDGE||l>it.MAX_DFA_EDGE||(it.debug&&console.log("EDGE "+s+" -> "+p+" upon "+l),s.edges===null&&(s.edges=[]),s.edges[l-it.MIN_DFA_EDGE]=p),p}addDFAState(s){let l=new Fi(null,s),p=null;for(let L=0;L<s.items.length;L++){let j=s.items[L];if(j.state instanceof Qt){p=j;break}}p!==null&&(l.isAcceptState=!0,l.lexerActionExecutor=p.lexerActionExecutor,l.prediction=this.atn.ruleToTokenType[p.state.ruleIndex]);let m=this.decisionToDFA[this.mode],g=m.states.get(l);if(g!==null)return g;let S=l;return S.stateNumber=m.states.length,s.setReadonly(!0),S.configs=s,m.states.add(S),S}getDFA(s){return this.decisionToDFA[s]}getText(s){return s.getText(this.startIndex,s.index-1)}consume(s){s.LA(1)===10?(this.line+=1,this.column=0):this.column+=1,s.consume()}getTokenName(s){return s===-1?"EOF":"'"+String.fromCharCode(s)+"'"}}it.debug=!1,it.dfa_debug=!1,it.MIN_DFA_EDGE=0,it.MAX_DFA_EDGE=127;class eg{constructor(s,l){this.alt=l,this.pred=s}toString(){return"("+this.pred+", "+this.alt+")"}}class PE{constructor(){this.data={}}get(s){return this.data["k-"+s]||null}set(s,l){this.data["k-"+s]=l}values(){return Object.keys(this.data).filter(s=>s.startsWith("k-")).map(s=>this.data[s],this)}}let oi={SLL:0,LL:1,LL_EXACT_AMBIG_DETECTION:2,hasSLLConflictTerminatingPrediction:function(K,s){if(oi.allConfigsInRuleStopStates(s))return!0;if(K===oi.SLL&&s.hasSemanticContext){let p=new Jt;for(let m=0;m<s.items.length;m++){let g=s.items[m];g=new tt({semanticContext:_e.NONE},g),p.add(g)}s=p}let l=oi.getConflictingAltSubsets(s);return oi.hasConflictingAltSet(l)&&!oi.hasStateAssociatedWithOneAlt(s)},hasConfigInRuleStopState:function(K){for(let s=0;s<K.items.length;s++)if(K.items[s].state instanceof Qt)return!0;return!1},allConfigsInRuleStopStates:function(K){for(let s=0;s<K.items.length;s++)if(!(K.items[s].state instanceof Qt))return!1;return!0},resolvesToJustOneViableAlt:function(K){return oi.getSingleViableAlt(K)},allSubsetsConflict:function(K){return!oi.hasNonConflictingAltSet(K)},hasNonConflictingAltSet:function(K){for(let s=0;s<K.length;s++)if(K[s].length===1)return!0;return!1},hasConflictingAltSet:function(K){for(let s=0;s<K.length;s++)if(K[s].length>1)return!0;return!1},allSubsetsEqual:function(K){let s=null;for(let l=0;l<K.length;l++){let p=K[l];if(s===null)s=p;else if(p!==s)return!1}return!0},getUniqueAlt:function(K){let s=oi.getAlts(K);return s.length===1?s.minValue():Ze.INVALID_ALT_NUMBER},getAlts:function(K){let s=new ni;return K.map(function(l){s.or(l)}),s},getConflictingAltSubsets:function(K){let s=new uo;return s.hashFunction=function(l){q.hashStuff(l.state.stateNumber,l.context)},s.equalsFunction=function(l,p){return l.state.stateNumber===p.state.stateNumber&&l.context.equals(p.context)},K.items.map(function(l){let p=s.get(l);p===null&&(p=new ni,s.set(l,p)),p.add(l.alt)}),s.getValues()},getStateToAltMap:function(K){let s=new PE;return K.items.map(function(l){let p=s.get(l.state);p===null&&(p=new ni,s.set(l.state,p)),p.add(l.alt)}),s},hasStateAssociatedWithOneAlt:function(K){let s=oi.getStateToAltMap(K).values();for(let l=0;l<s.length;l++)if(s[l].length===1)return!0;return!1},getSingleViableAlt:function(K){let s=null;for(let l=0;l<K.length;l++){let p=K[l].minValue();if(s===null)s=p;else if(s!==p)return Ze.INVALID_ALT_NUMBER}return s}},Ct=oi;class Hl extends Ki{constructor(s,l,p,m,g,S){S=S||s._ctx,m=m||s.getCurrentToken(),p=p||s.getCurrentToken(),l=l||s.getInputStream(),super({message:"",recognizer:s,input:l,ctx:S}),this.deadEndConfigs=g,this.startToken=p,this.offendingToken=m}}class kE{constructor(s){this.defaultMapCtor=s||uo,this.cacheMap=new this.defaultMapCtor}get(s,l){let p=this.cacheMap.get(s)||null;return p===null?null:p.get(l)||null}set(s,l,p){let m=this.cacheMap.get(s)||null;m===null&&(m=new this.defaultMapCtor,this.cacheMap.set(s,m)),m.set(l,p)}}class tg extends si{constructor(s,l,p,m){super(l,m),this.parser=s,this.decisionToDFA=p,this.predictionMode=Ct.LL,this._input=null,this._startIndex=0,this._outerContext=null,this._dfa=null,this.mergeCache=null,this.debug=!1,this.debug_closure=!1,this.debug_add=!1,this.trace_atn_sim=!1,this.dfa_debug=!1,this.retry_debug=!1}reset(){}adaptivePredict(s,l,p){(this.debug||this.trace_atn_sim)&&console.log("adaptivePredict decision "+l+" exec LA(1)=="+this.getLookaheadName(s)+" line "+s.LT(1).line+":"+s.LT(1).column),this._input=s,this._startIndex=s.index,this._outerContext=p;let m=this.decisionToDFA[l];this._dfa=m;let g=s.mark(),S=s.index;try{let L;if(L=m.precedenceDfa?m.getPrecedenceStartState(this.parser.getPrecedence()):m.s0,L===null){p===null&&(p=Yn.EMPTY),this.debug&&console.log("predictATN decision "+m.decision+" exec LA(1)=="+this.getLookaheadName(s)+", outerContext="+p.toString(this.parser.ruleNames));let se=this.computeStartState(m.atnStartState,Yn.EMPTY,!1);m.precedenceDfa?(m.s0.configs=se,se=this.applyPrecedenceFilter(se),L=this.addDFAState(m,new Fi(null,se)),m.setPrecedenceStartState(this.parser.getPrecedence(),L)):(L=this.addDFAState(m,new Fi(null,se)),m.s0=L)}let j=this.execATN(m,L,s,S,p);return this.debug&&console.log("DFA after predictATN: "+m.toString(this.parser.literalNames,this.parser.symbolicNames)),j}finally{this._dfa=null,this.mergeCache=null,s.seek(S),s.release(g)}}execATN(s,l,p,m,g){let S;(this.debug||this.trace_atn_sim)&&console.log("execATN decision "+s.decision+", DFA state "+l+", LA(1)=="+this.getLookaheadName(p)+" line "+p.LT(1).line+":"+p.LT(1).column);let L=l;this.debug&&console.log("s0 = "+l);let j=p.LA(1);for(;;){let W=this.getExistingTargetState(L,j);if(W===null&&(W=this.computeTargetState(s,L,j)),W===si.ERROR){let se=this.noViableAlt(p,g,L.configs,m);if(p.seek(m),S=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(L.configs,g),S!==Ze.INVALID_ALT_NUMBER)return S;throw se}if(W.requiresFullContext&&this.predictionMode!==Ct.SLL){let se=null;if(W.predicates!==null){this.debug&&console.log("DFA state has preds in DFA sim LL failover");let Ve=p.index;if(Ve!==m&&p.seek(m),se=this.evalSemanticContext(W.predicates,g,!0),se.length===1)return this.debug&&console.log("Full LL avoided"),se.minValue();Ve!==m&&p.seek(Ve)}this.dfa_debug&&console.log("ctx sensitive state "+g+" in "+W);let me=!0,fe=this.computeStartState(s.atnStartState,g,me);return this.reportAttemptingFullContext(s,se,W.configs,m,p.index),S=this.execATNWithFullContext(s,W,fe,p,m,g),S}if(W.isAcceptState){if(W.predicates===null)return W.prediction;let se=p.index;p.seek(m);let me=this.evalSemanticContext(W.predicates,g,!0);if(me.length===0)throw this.noViableAlt(p,g,W.configs,m);return me.length===1||this.reportAmbiguity(s,W,m,se,!1,me,W.configs),me.minValue()}L=W,j!==i.EOF&&(p.consume(),j=p.LA(1))}}getExistingTargetState(s,l){let p=s.edges;return p===null?null:p[l+1]||null}computeTargetState(s,l,p){let m=this.computeReachSet(l.configs,p,!1);if(m===null)return this.addDFAEdge(s,l,p,si.ERROR),si.ERROR;let g=new Fi(null,m),S=this.getUniqueAlt(m);if(this.debug){let L=Ct.getConflictingAltSubsets(m);console.log("SLL altSubSets="+be(L)+", configs="+m+", predict="+S+", allSubsetsConflict="+Ct.allSubsetsConflict(L)+", conflictingAlts="+this.getConflictingAlts(m))}return S!==Ze.INVALID_ALT_NUMBER?(g.isAcceptState=!0,g.configs.uniqueAlt=S,g.prediction=S):Ct.hasSLLConflictTerminatingPrediction(this.predictionMode,m)&&(g.configs.conflictingAlts=this.getConflictingAlts(m),g.requiresFullContext=!0,g.isAcceptState=!0,g.prediction=g.configs.conflictingAlts.minValue()),g.isAcceptState&&g.configs.hasSemanticContext&&(this.predicateDFAState(g,this.atn.getDecisionState(s.decision)),g.predicates!==null&&(g.prediction=Ze.INVALID_ALT_NUMBER)),g=this.addDFAEdge(s,l,p,g),g}predicateDFAState(s,l){let p=l.transitions.length,m=this.getConflictingAltsOrUniqueAlt(s.configs),g=this.getPredsForAmbigAlts(m,s.configs,p);g!==null?(s.predicates=this.getPredicatePredictions(m,g),s.prediction=Ze.INVALID_ALT_NUMBER):s.prediction=m.minValue()}execATNWithFullContext(s,l,p,m,g,S){(this.debug||this.trace_atn_sim)&&console.log("execATNWithFullContext "+p);let L,j=!1,W=p;m.seek(g);let se=m.LA(1),me=-1;for(;;){if(L=this.computeReachSet(W,se,!0),L===null){let Ve=this.noViableAlt(m,S,W,g);m.seek(g);let Fe=this.getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(W,S);if(Fe!==Ze.INVALID_ALT_NUMBER)return Fe;throw Ve}let fe=Ct.getConflictingAltSubsets(L);if(this.debug&&console.log("LL altSubSets="+fe+", predict="+Ct.getUniqueAlt(fe)+", resolvesToJustOneViableAlt="+Ct.resolvesToJustOneViableAlt(fe)),L.uniqueAlt=this.getUniqueAlt(L),L.uniqueAlt!==Ze.INVALID_ALT_NUMBER){me=L.uniqueAlt;break}if(this.predictionMode!==Ct.LL_EXACT_AMBIG_DETECTION){if(me=Ct.resolvesToJustOneViableAlt(fe),me!==Ze.INVALID_ALT_NUMBER)break}else if(Ct.allSubsetsConflict(fe)&&Ct.allSubsetsEqual(fe)){j=!0,me=Ct.getSingleViableAlt(fe);break}W=L,se!==i.EOF&&(m.consume(),se=m.LA(1))}return L.uniqueAlt!==Ze.INVALID_ALT_NUMBER?(this.reportContextSensitivity(s,me,L,g,m.index),me):(this.reportAmbiguity(s,l,g,m.index,j,null,L),me)}computeReachSet(s,l,p){this.debug&&console.log("in computeReachSet, starting closure: "+s),this.mergeCache===null&&(this.mergeCache=new kE);let m=new Jt(p),g=null;for(let L=0;L<s.items.length;L++){let j=s.items[L];if(this.debug&&console.log("testing "+this.getTokenName(l)+" at "+j),j.state instanceof Qt)(p||l===i.EOF)&&(g===null&&(g=[]),g.push(j),this.debug_add&&console.log("added "+j+" to skippedStopStates"));else for(let W=0;W<j.state.transitions.length;W++){let se=j.state.transitions[W],me=this.getReachableTarget(se,l);if(me!==null){let fe=new tt({state:me},j);m.add(fe,this.mergeCache),this.debug_add&&console.log("added "+fe+" to intermediate")}}}let S=null;if(g===null&&l!==i.EOF&&(m.items.length===1||this.getUniqueAlt(m)!==Ze.INVALID_ALT_NUMBER)&&(S=m),S===null){S=new Jt(p);let L=new je,j=l===i.EOF;for(let W=0;W<m.items.length;W++)this.closure(m.items[W],S,L,!1,p,j)}if(l===i.EOF&&(S=this.removeAllConfigsNotInRuleStopState(S,S===m)),!(g===null||p&&Ct.hasConfigInRuleStopState(S)))for(let L=0;L<g.length;L++)S.add(g[L],this.mergeCache);return this.trace_atn_sim&&console.log("computeReachSet "+s+" -> "+S),S.items.length===0?null:S}removeAllConfigsNotInRuleStopState(s,l){if(Ct.allConfigsInRuleStopStates(s))return s;let p=new Jt(s.fullCtx);for(let m=0;m<s.items.length;m++){let g=s.items[m];if(g.state instanceof Qt)p.add(g,this.mergeCache);else if(l&&g.state.epsilonOnlyTransitions&&this.atn.nextTokens(g.state).contains(i.EPSILON)){let S=this.atn.ruleToStopState[g.state.ruleIndex];p.add(new tt({state:S},g),this.mergeCache)}}return p}computeStartState(s,l,p){let m=a1(this.atn,l),g=new Jt(p);this.trace_atn_sim&&console.log("computeStartState from ATN state "+s+" initialContext="+m.toString(this.parser));for(let S=0;S<s.transitions.length;S++){let L=s.transitions[S].target,j=new tt({state:L,alt:S+1,context:m},null),W=new je;this.closure(j,g,W,!0,p,!1)}return g}applyPrecedenceFilter(s){let l,p=[],m=new Jt(s.fullCtx);for(let g=0;g<s.items.length;g++){if(l=s.items[g],l.alt!==1)continue;let S=l.semanticContext.evalPrecedence(this.parser,this._outerContext);S!==null&&(p[l.state.stateNumber]=l.context,S!==l.semanticContext?m.add(new tt({semanticContext:S},l),this.mergeCache):m.add(l,this.mergeCache))}for(let g=0;g<s.items.length;g++)if(l=s.items[g],l.alt!==1){if(!l.precedenceFilterSuppressed){let S=p[l.state.stateNumber]||null;if(S!==null&&S.equals(l.context))continue}m.add(l,this.mergeCache)}return m}getReachableTarget(s,l){return s.matches(l,0,this.atn.maxTokenType)?s.target:null}getPredsForAmbigAlts(s,l,p){let m=[];for(let S=0;S<l.items.length;S++){let L=l.items[S];s.has(L.alt)&&(m[L.alt]=_e.orContext(m[L.alt]||null,L.semanticContext))}let g=0;for(let S=1;S<p+1;S++){let L=m[S]||null;L===null?m[S]=_e.NONE:L!==_e.NONE&&(g+=1)}return g===0&&(m=null),this.debug&&console.log("getPredsForAmbigAlts result "+be(m)),m}getPredicatePredictions(s,l){let p=[],m=!1;for(let g=1;g<l.length;g++){let S=l[g];s!==null&&s.has(g)&&p.push(new eg(S,g)),S!==_e.NONE&&(m=!0)}return m?p:null}getSynValidOrSemInvalidAltThatFinishedDecisionEntryRule(s,l){let p=this.splitAccordingToSemanticValidity(s,l),m=p[0],g=p[1],S=this.getAltThatFinishedDecisionEntryRule(m);return S!==Ze.INVALID_ALT_NUMBER||g.items.length>0&&(S=this.getAltThatFinishedDecisionEntryRule(g),S!==Ze.INVALID_ALT_NUMBER)?S:Ze.INVALID_ALT_NUMBER}getAltThatFinishedDecisionEntryRule(s){let l=[];for(let p=0;p<s.items.length;p++){let m=s.items[p];(m.reachesIntoOuterContext>0||m.state instanceof Qt&&m.context.hasEmptyPath())&&l.indexOf(m.alt)<0&&l.push(m.alt)}return l.length===0?Ze.INVALID_ALT_NUMBER:Math.min.apply(null,l)}splitAccordingToSemanticValidity(s,l){let p=new Jt(s.fullCtx),m=new Jt(s.fullCtx);for(let g=0;g<s.items.length;g++){let S=s.items[g];S.semanticContext!==_e.NONE?S.semanticContext.evaluate(this.parser,l)?p.add(S):m.add(S):p.add(S)}return[p,m]}evalSemanticContext(s,l,p){let m=new ni;for(let g=0;g<s.length;g++){let S=s[g];if(S.pred===_e.NONE){if(m.add(S.alt),!p)break;continue}let L=S.pred.evaluate(this.parser,l);if((this.debug||this.dfa_debug)&&console.log("eval pred "+S+"="+L),L&&((this.debug||this.dfa_debug)&&console.log("PREDICT "+S.alt),m.add(S.alt),!p))break}return m}closure(s,l,p,m,g,S){this.closureCheckingStopState(s,l,p,m,g,0,S)}closureCheckingStopState(s,l,p,m,g,S,L){if((this.trace_atn_sim||this.debug_closure)&&console.log("closure("+s.toString(this.parser,!0)+")"),s.state instanceof Qt){if(!s.context.isEmpty()){for(let j=0;j<s.context.length;j++){if(s.context.getReturnState(j)===Ke.EMPTY_RETURN_STATE){if(g){l.add(new tt({state:s.state,context:Ke.EMPTY},s),this.mergeCache);continue}this.debug&&console.log("FALLING off rule "+this.getRuleName(s.state.ruleIndex)),this.closure_(s,l,p,m,g,S,L);continue}let W=this.atn.states[s.context.getReturnState(j)],se=s.context.getParent(j),me={state:W,alt:s.alt,context:se,semanticContext:s.semanticContext},fe=new tt(me,null);fe.reachesIntoOuterContext=s.reachesIntoOuterContext,this.closureCheckingStopState(fe,l,p,m,g,S-1,L)}return}if(g)return void l.add(s,this.mergeCache);this.debug&&console.log("FALLING off rule "+this.getRuleName(s.state.ruleIndex))}this.closure_(s,l,p,m,g,S,L)}closure_(s,l,p,m,g,S,L){let j=s.state;j.epsilonOnlyTransitions||l.add(s,this.mergeCache);for(let W=0;W<j.transitions.length;W++){if(W===0&&this.canDropLoopEntryEdgeInLeftRecursiveRule(s))continue;let se=j.transitions[W],me=m&&!(se instanceof Qw),fe=this.getEpsilonTarget(s,se,me,S===0,g,L);if(fe!==null){let Ve=S;if(s.state instanceof Qt){if(this._dfa!==null&&this._dfa.precedenceDfa&&se.outermostPrecedenceReturn===this._dfa.atnStartState.ruleIndex&&(fe.precedenceFilterSuppressed=!0),fe.reachesIntoOuterContext+=1,p.add(fe)!==fe)continue;l.dipsIntoOuterContext=!0,Ve-=1,this.debug&&console.log("dips into outer ctx: "+fe)}else{if(!se.isEpsilon&&p.add(fe)!==fe)continue;se instanceof Ml&&Ve>=0&&(Ve+=1)}this.closureCheckingStopState(fe,l,p,me,g,Ve,L)}}}canDropLoopEntryEdgeInLeftRecursiveRule(s){let l=s.state;if(l.stateType!==xe.STAR_LOOP_ENTRY||l.stateType!==xe.STAR_LOOP_ENTRY||!l.isPrecedenceDecision||s.context.isEmpty()||s.context.hasEmptyPath())return!1;let p=s.context.length;for(let S=0;S<p;S++)if(this.atn.states[s.context.getReturnState(S)].ruleIndex!==l.ruleIndex)return!1;let m=l.transitions[0].target.endState.stateNumber,g=this.atn.states[m];for(let S=0;S<p;S++){let L=s.context.getReturnState(S),j=this.atn.states[L];if(j.transitions.length!==1||!j.transitions[0].isEpsilon)return!1;let W=j.transitions[0].target;if(!(j.stateType===xe.BLOCK_END&&W===l||j===g||W===g||W.stateType===xe.BLOCK_END&&W.transitions.length===1&&W.transitions[0].isEpsilon&&W.transitions[0].target===l))return!1}return!0}getRuleName(s){return this.parser!==null&&s>=0?this.parser.ruleNames[s]:"<rule "+s+">"}getEpsilonTarget(s,l,p,m,g,S){switch(l.serializationType){case ge.RULE:return this.ruleTransition(s,l);case ge.PRECEDENCE:return this.precedenceTransition(s,l,p,m,g);case ge.PREDICATE:return this.predTransition(s,l,p,m,g);case ge.ACTION:return this.actionTransition(s,l);case ge.EPSILON:return new tt({state:l.target},s);case ge.ATOM:case ge.RANGE:case ge.SET:return S&&l.matches(i.EOF,0,1)?new tt({state:l.target},s):null;default:return null}}actionTransition(s,l){if(this.debug){let p=l.actionIndex===-1?65535:l.actionIndex;console.log("ACTION edge "+l.ruleIndex+":"+p)}return new tt({state:l.target},s)}precedenceTransition(s,l,p,m,g){this.debug&&(console.log("PRED (collectPredicates="+p+") "+l.precedence+">=_p, ctx dependent=true"),this.parser!==null&&console.log("context surrounding pred is "+be(this.parser.getRuleInvocationStack())));let S=null;if(p&&m)if(g){let L=this._input.index;this._input.seek(this._startIndex);let j=l.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(L),j&&(S=new tt({state:l.target},s))}else{let L=_e.andContext(s.semanticContext,l.getPredicate());S=new tt({state:l.target,semanticContext:L},s)}else S=new tt({state:l.target},s);return this.debug&&console.log("config from pred transition="+S),S}predTransition(s,l,p,m,g){this.debug&&(console.log("PRED (collectPredicates="+p+") "+l.ruleIndex+":"+l.predIndex+", ctx dependent="+l.isCtxDependent),this.parser!==null&&console.log("context surrounding pred is "+be(this.parser.getRuleInvocationStack())));let S=null;if(p&&(l.isCtxDependent&&m||!l.isCtxDependent))if(g){let L=this._input.index;this._input.seek(this._startIndex);let j=l.getPredicate().evaluate(this.parser,this._outerContext);this._input.seek(L),j&&(S=new tt({state:l.target},s))}else{let L=_e.andContext(s.semanticContext,l.getPredicate());S=new tt({state:l.target,semanticContext:L},s)}else S=new tt({state:l.target},s);return this.debug&&console.log("config from pred transition="+S),S}ruleTransition(s,l){this.debug&&console.log("CALL rule "+this.getRuleName(l.target.ruleIndex)+", ctx="+s.context);let p=l.followState,m=Xt.create(s.context,p.stateNumber);return new tt({state:l.target,context:m},s)}getConflictingAlts(s){let l=Ct.getConflictingAltSubsets(s);return Ct.getAlts(l)}getConflictingAltsOrUniqueAlt(s){let l=null;return s.uniqueAlt!==Ze.INVALID_ALT_NUMBER?(l=new ni,l.add(s.uniqueAlt)):l=s.conflictingAlts,l}getTokenName(s){if(s===i.EOF)return"EOF";if(this.parser!==null&&this.parser.literalNames!==null){if(!(s>=this.parser.literalNames.length&&s>=this.parser.symbolicNames.length))return(this.parser.literalNames[s]||this.parser.symbolicNames[s])+"<"+s+">";console.log(s+" ttype out of range: "+this.parser.literalNames),console.log(""+this.parser.getInputStream().getTokens())}return""+s}getLookaheadName(s){return this.getTokenName(s.LA(1))}dumpDeadEndConfigs(s){console.log("dead end configs: ");let l=s.getDeadEndConfigs();for(let p=0;p<l.length;p++){let m=l[p],g="no edges";if(m.state.transitions.length>0){let S=m.state.transitions[0];S instanceof d1?g="Atom "+this.getTokenName(S.label):S instanceof i1&&(g=(S instanceof n1?"~":"")+"Set "+S.set)}console.error(m.toString(this.parser,!0)+":"+g)}}noViableAlt(s,l,p,m){return new Hl(this.parser,s,s.get(m),s.LT(1),p,l)}getUniqueAlt(s){let l=Ze.INVALID_ALT_NUMBER;for(let p=0;p<s.items.length;p++){let m=s.items[p];if(l===Ze.INVALID_ALT_NUMBER)l=m.alt;else if(m.alt!==l)return Ze.INVALID_ALT_NUMBER}return l}addDFAEdge(s,l,p,m){if(this.debug&&console.log("EDGE "+l+" -> "+m+" upon "+this.getTokenName(p)),m===null)return null;if(m=this.addDFAState(s,m),l===null||p<-1||p>this.atn.maxTokenType)return m;if(l.edges===null&&(l.edges=[]),l.edges[p+1]=m,this.debug){let g=this.parser===null?null:this.parser.literalNames,S=this.parser===null?null:this.parser.symbolicNames;console.log(`DFA=
8
+ `+s.toString(g,S))}return m}addDFAState(s,l){if(l===si.ERROR)return l;let p=s.states.get(l);return p!==null?(this.trace_atn_sim&&console.log("addDFAState "+l+" exists"),p):(l.stateNumber=s.states.length,l.configs.readOnly||(l.configs.optimizeConfigs(this),l.configs.setReadonly(!0)),this.trace_atn_sim&&console.log("addDFAState new "+l),s.states.add(l),this.debug&&console.log("adding new DFA state: "+l),l)}reportAttemptingFullContext(s,l,p,m,g){if(this.debug||this.retry_debug){let S=new Ae(m,g+1);console.log("reportAttemptingFullContext decision="+s.decision+":"+p+", input="+this.parser.getTokenStream().getText(S))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAttemptingFullContext(this.parser,s,m,g,l,p)}reportContextSensitivity(s,l,p,m,g){if(this.debug||this.retry_debug){let S=new Ae(m,g+1);console.log("reportContextSensitivity decision="+s.decision+":"+p+", input="+this.parser.getTokenStream().getText(S))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportContextSensitivity(this.parser,s,m,g,l,p)}reportAmbiguity(s,l,p,m,g,S,L){if(this.debug||this.retry_debug){let j=new Ae(p,m+1);console.log("reportAmbiguity "+S+":"+L+", input="+this.parser.getTokenStream().getText(j))}this.parser!==null&&this.parser.getErrorListenerDispatch().reportAmbiguity(this.parser,s,p,m,g,S,L)}}class rg{constructor(){this.cache=new uo}add(s){if(s===Ke.EMPTY)return Ke.EMPTY;let l=this.cache.get(s)||null;return l!==null?l:(this.cache.set(s,s),s)}get(s){return this.cache.get(s)||null}get length(){return this.cache.length}}let LE={ATN:Ze,ATNDeserializer:E1,LexerATNSimulator:it,ParserATNSimulator:tg,PredictionMode:Ct,PredictionContextCache:rg};class T1{constructor(s,l,p){this.dfa=s,this.literalNames=l||[],this.symbolicNames=p||[]}toString(){if(this.dfa.s0===null)return null;let s="",l=this.dfa.sortedStates();for(let p=0;p<l.length;p++){let m=l[p];if(m.edges!==null){let g=m.edges.length;for(let S=0;S<g;S++){let L=m.edges[S]||null;L!==null&&L.stateNumber!==2147483647&&(s=s.concat(this.getStateString(m)),s=s.concat("-"),s=s.concat(this.getEdgeLabel(S)),s=s.concat("->"),s=s.concat(this.getStateString(L)),s=s.concat(`
9
+ `))}}}return s.length===0?null:s}getEdgeLabel(s){return s===0?"EOF":this.literalNames!==null||this.symbolicNames!==null?this.literalNames[s-1]||this.symbolicNames[s-1]:String.fromCharCode(s-1)}getStateString(s){let l=(s.isAcceptState?":":"")+"s"+s.stateNumber+(s.requiresFullContext?"^":"");return s.isAcceptState?s.predicates!==null?l+"=>"+be(s.predicates):l+"=>"+s.prediction.toString():l}}class ig extends T1{constructor(s){super(s,null)}getEdgeLabel(s){return"'"+String.fromCharCode(s)+"'"}}class ng{constructor(s,l){if(l===void 0&&(l=0),this.atnStartState=s,this.decision=l,this._states=new je,this.s0=null,this.precedenceDfa=!1,s instanceof Un&&s.isPrecedenceDecision){this.precedenceDfa=!0;let p=new Fi(null,new Jt);p.edges=[],p.isAcceptState=!1,p.requiresFullContext=!1,this.s0=p}}getPrecedenceStartState(s){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";return s<0||s>=this.s0.edges.length?null:this.s0.edges[s]||null}setPrecedenceStartState(s,l){if(!this.precedenceDfa)throw"Only precedence DFAs may contain a precedence start state.";s<0||(this.s0.edges[s]=l)}setPrecedenceDfa(s){if(this.precedenceDfa!==s){if(this._states=new je,s){let l=new Fi(null,new Jt);l.edges=[],l.isAcceptState=!1,l.requiresFullContext=!1,this.s0=l}else this.s0=null;this.precedenceDfa=s}}sortedStates(){return this._states.values().sort(function(s,l){return s.stateNumber-l.stateNumber})}toString(s,l){return s=s||null,l=l||null,this.s0===null?"":new T1(this,s,l).toString()}toLexerString(){return this.s0===null?"":new ig(this).toString()}get states(){return this._states}}let IE={DFA:ng,DFASerializer:T1,LexerDFASerializer:ig,PredPrediction:eg},RE={PredictionContext:Ke},OE={Interval:Ae,IntervalSet:Yt};class A1{visitTerminal(s){}visitErrorNode(s){}enterEveryRule(s){}exitEveryRule(s){}}class sg{visit(s){return Array.isArray(s)?s.map(function(l){return l.accept(this)},this):s.accept(this)}visitChildren(s){return s.children?this.visit(s.children):null}visitTerminal(s){}visitErrorNode(s){}}class ql{walk(s,l){if(l instanceof Yl||l.isErrorNode!==void 0&&l.isErrorNode())s.visitErrorNode(l);else if(l instanceof ri)s.visitTerminal(l);else{this.enterRule(s,l);for(let p=0;p<l.getChildCount();p++){let m=l.getChild(p);this.walk(s,m)}this.exitRule(s,l)}}enterRule(s,l){let p=l.ruleContext;s.enterEveryRule(p),p.enterRule(s)}exitRule(s,l){let p=l.ruleContext;p.exitRule(s),s.exitEveryRule(p)}}ql.DEFAULT=new ql;let ME={Trees:Hw,RuleNode:ao,ErrorNode:Yl,TerminalNode:ri,ParseTreeListener:A1,ParseTreeVisitor:sg,ParseTreeWalker:ql};class fo extends Ki{constructor(s){super({message:"",recognizer:s,input:s.getInputStream(),ctx:s._ctx}),this.offendingToken=s.getCurrentToken()}}class _1 extends Ki{constructor(s,l,p){super({message:YE(l,p||null),recognizer:s,input:s.getInputStream(),ctx:s._ctx});let m=s._interp.atn.states[s.state].transitions[0];m instanceof Xw?(this.ruleIndex=m.ruleIndex,this.predicateIndex=m.predIndex):(this.ruleIndex=0,this.predicateIndex=0),this.predicate=l,this.offendingToken=s.getCurrentToken()}}function YE(K,s){return s!==null?s:"failed predicate: {"+K+"}?"}class og extends po{constructor(s){super(),s=s||!0,this.exactOnly=s}reportAmbiguity(s,l,p,m,g,S,L){if(this.exactOnly&&!g)return;let j="reportAmbiguity d="+this.getDecisionDescription(s,l)+": ambigAlts="+this.getConflictingAlts(S,L)+", input='"+s.getTokenStream().getText(new Ae(p,m))+"'";s.notifyErrorListeners(j)}reportAttemptingFullContext(s,l,p,m,g,S){let L="reportAttemptingFullContext d="+this.getDecisionDescription(s,l)+", input='"+s.getTokenStream().getText(new Ae(p,m))+"'";s.notifyErrorListeners(L)}reportContextSensitivity(s,l,p,m,g,S){let L="reportContextSensitivity d="+this.getDecisionDescription(s,l)+", input='"+s.getTokenStream().getText(new Ae(p,m))+"'";s.notifyErrorListeners(L)}getDecisionDescription(s,l){let p=l.decision,m=l.atnStartState.ruleIndex,g=s.ruleNames;if(m<0||m>=g.length)return""+p;let S=g[m]||null;return S===null||S.length===0?""+p:`${p} (${S})`}getConflictingAlts(s,l){if(s!==null)return s;let p=new ni;for(let m=0;m<l.items.length;m++)p.add(l.items[m].alt);return`{${p.values().join(", ")}}`}}class K1 extends Error{constructor(){super(),Error.captureStackTrace(this,K1)}}class BE{reset(s){}recoverInline(s){}recover(s,l){}sync(s){}inErrorRecoveryMode(s){}reportError(s){}}class jl extends BE{constructor(){super(),this.errorRecoveryMode=!1,this.lastErrorIndex=-1,this.lastErrorStates=null,this.nextTokensContext=null,this.nextTokenState=0}reset(s){this.endErrorCondition(s)}beginErrorCondition(s){this.errorRecoveryMode=!0}inErrorRecoveryMode(s){return this.errorRecoveryMode}endErrorCondition(s){this.errorRecoveryMode=!1,this.lastErrorStates=null,this.lastErrorIndex=-1}reportMatch(s){this.endErrorCondition(s)}reportError(s,l){this.inErrorRecoveryMode(s)||(this.beginErrorCondition(s),l instanceof Hl?this.reportNoViableAlternative(s,l):l instanceof fo?this.reportInputMismatch(s,l):l instanceof _1?this.reportFailedPredicate(s,l):(console.log("unknown recognition error type: "+l.constructor.name),console.log(l.stack),s.notifyErrorListeners(l.getOffendingToken(),l.getMessage(),l)))}recover(s,l){this.lastErrorIndex===s.getInputStream().index&&this.lastErrorStates!==null&&this.lastErrorStates.indexOf(s.state)>=0&&s.consume(),this.lastErrorIndex=s._input.index,this.lastErrorStates===null&&(this.lastErrorStates=[]),this.lastErrorStates.push(s.state);let p=this.getErrorRecoverySet(s);this.consumeUntil(s,p)}sync(s){if(this.inErrorRecoveryMode(s))return;let l=s._interp.atn.states[s.state],p=s.getTokenStream().LA(1),m=s.atn.nextTokens(l);if(m.contains(p))return this.nextTokensContext=null,void(this.nextTokenState=xe.INVALID_STATE_NUMBER);if(m.contains(i.EPSILON))this.nextTokensContext===null&&(this.nextTokensContext=s._ctx,this.nextTokensState=s._stateNumber);else switch(l.stateType){case xe.BLOCK_START:case xe.STAR_BLOCK_START:case xe.PLUS_BLOCK_START:case xe.STAR_LOOP_ENTRY:if(this.singleTokenDeletion(s)!==null)return;throw new fo(s);case xe.PLUS_LOOP_BACK:case xe.STAR_LOOP_BACK:{this.reportUnwantedToken(s);let g=new Yt;g.addSet(s.getExpectedTokens());let S=g.addSet(this.getErrorRecoverySet(s));this.consumeUntil(s,S)}}}reportNoViableAlternative(s,l){let p=s.getTokenStream(),m;m=p!==null?l.startToken.type===i.EOF?"<EOF>":p.getText(new Ae(l.startToken.tokenIndex,l.offendingToken.tokenIndex)):"<unknown input>";let g="no viable alternative at input "+this.escapeWSAndQuote(m);s.notifyErrorListeners(g,l.offendingToken,l)}reportInputMismatch(s,l){let p="mismatched input "+this.getTokenErrorDisplay(l.offendingToken)+" expecting "+l.getExpectedTokens().toString(s.literalNames,s.symbolicNames);s.notifyErrorListeners(p,l.offendingToken,l)}reportFailedPredicate(s,l){let p="rule "+s.ruleNames[s._ctx.ruleIndex]+" "+l.message;s.notifyErrorListeners(p,l.offendingToken,l)}reportUnwantedToken(s){if(this.inErrorRecoveryMode(s))return;this.beginErrorCondition(s);let l=s.getCurrentToken(),p="extraneous input "+this.getTokenErrorDisplay(l)+" expecting "+this.getExpectedTokens(s).toString(s.literalNames,s.symbolicNames);s.notifyErrorListeners(p,l,null)}reportMissingToken(s){if(this.inErrorRecoveryMode(s))return;this.beginErrorCondition(s);let l=s.getCurrentToken(),p="missing "+this.getExpectedTokens(s).toString(s.literalNames,s.symbolicNames)+" at "+this.getTokenErrorDisplay(l);s.notifyErrorListeners(p,l,null)}recoverInline(s){let l=this.singleTokenDeletion(s);if(l!==null)return s.consume(),l;if(this.singleTokenInsertion(s))return this.getMissingSymbol(s);throw new fo(s)}singleTokenInsertion(s){let l=s.getTokenStream().LA(1),p=s._interp.atn,m=p.states[s.state].transitions[0].target;return!!p.nextTokens(m,s._ctx).contains(l)&&(this.reportMissingToken(s),!0)}singleTokenDeletion(s){let l=s.getTokenStream().LA(2);if(this.getExpectedTokens(s).contains(l)){this.reportUnwantedToken(s),s.consume();let p=s.getCurrentToken();return this.reportMatch(s),p}return null}getMissingSymbol(s){let l=s.getCurrentToken(),p=this.getExpectedTokens(s).first(),m;m=p===i.EOF?"<missing EOF>":"<missing "+s.literalNames[p]+">";let g=l,S=s.getTokenStream().LT(-1);return g.type===i.EOF&&S!==null&&(g=S),s.getTokenFactory().create(g.source,p,m,i.DEFAULT_CHANNEL,-1,-1,g.line,g.column)}getExpectedTokens(s){return s.getExpectedTokens()}getTokenErrorDisplay(s){if(s===null)return"<no token>";let l=s.text;return l===null&&(l=s.type===i.EOF?"<EOF>":"<"+s.type+">"),this.escapeWSAndQuote(l)}escapeWSAndQuote(s){return"'"+(s=(s=(s=s.replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace(/\t/g,"\\t"))+"'"}getErrorRecoverySet(s){let l=s._interp.atn,p=s._ctx,m=new Yt;for(;p!==null&&p.invokingState>=0;){let g=l.states[p.invokingState].transitions[0],S=l.nextTokens(g.followState);m.addSet(S),p=p.parentCtx}return m.removeOne(i.EPSILON),m}consumeUntil(s,l){let p=s.getTokenStream().LA(1);for(;p!==i.EOF&&!l.contains(p);)s.consume(),p=s.getTokenStream().LA(1)}}class ag extends jl{constructor(){super()}recover(s,l){let p=s._ctx;for(;p!==null;)p.exception=l,p=p.parentCtx;throw new K1(l)}recoverInline(s){this.recover(s,new fo(s))}sync(s){}}let UE={RecognitionException:Ki,NoViableAltException:Hl,LexerNoViableAltException:v1,InputMismatchException:fo,FailedPredicateException:_1,DiagnosticErrorListener:og,BailErrorStrategy:ag,DefaultErrorStrategy:jl,ErrorListener:po};class yo{constructor(s,l){if(this.name="<empty>",this.strdata=s,this.decodeToUnicodeCodePoints=l||!1,this._index=0,this.data=[],this.decodeToUnicodeCodePoints)for(let p=0;p<this.strdata.length;){let m=this.strdata.codePointAt(p);this.data.push(m),p+=m<=65535?1:2}else{this.data=new Array(this.strdata.length);for(let p=0;p<this.strdata.length;p++)this.data[p]=this.strdata.charCodeAt(p)}this._size=this.data.length}reset(){this._index=0}consume(){if(this._index>=this._size)throw"cannot consume EOF";this._index+=1}LA(s){if(s===0)return 0;s<0&&(s+=1);let l=this._index+s-1;return l<0||l>=this._size?i.EOF:this.data[l]}LT(s){return this.LA(s)}mark(){return-1}release(s){}seek(s){s<=this._index?this._index=s:this._index=Math.min(s,this._size)}getText(s,l){if(l>=this._size&&(l=this._size-1),s>=this._size)return"";if(this.decodeToUnicodeCodePoints){let p="";for(let m=s;m<=l;m++)p+=String.fromCodePoint(this.data[m]);return p}return this.strdata.slice(s,l+1)}toString(){return this.strdata}get index(){return this._index}get size(){return this._size}}class wo extends yo{constructor(s,l){super(s,l)}}var lg=N(92);let ug=typeof process<"u"&&process.versions!=null&&process.versions.node!=null;class cg extends wo{static fromPath(s,l,p){if(!ug)throw new Error("FileStream is only available when running in Node!");lg.readFile(s,l,function(m,g){let S=null;g!==null&&(S=new yo(g,!0)),p(m,S)})}constructor(s,l,p){if(!ug)throw new Error("FileStream is only available when running in Node!");super(lg.readFileSync(s,l||"utf-8"),p),this.fileName=s}}let hg={fromString:function(K){return new yo(K,!0)},fromBlob:function(K,s,l,p){let m=new window.FileReader;m.onload=function(g){let S=new yo(g.target.result,!0);l(S)},m.onerror=p,m.readAsText(K,s)},fromBuffer:function(K,s){return new yo(K.toString(s),!0)},fromPath:function(K,s,l){cg.fromPath(K,s,l)},fromPathSync:function(K,s){return new cg(K,s)}},VE={arrayToString:be,stringToCharArray:function(K){let s=new Uint16Array(K.length);for(let l=0;l<K.length;l++)s[l]=K.charCodeAt(l);return s}};class $E{}class pg extends $E{constructor(s){super(),this.tokenSource=s,this.tokens=[],this.index=-1,this.fetchedEOF=!1}mark(){return 0}release(s){}reset(){this.seek(0)}seek(s){this.lazyInit(),this.index=this.adjustSeekIndex(s)}get size(){return this.tokens.length}get(s){return this.lazyInit(),this.tokens[s]}consume(){let s=!1;if(s=this.index>=0&&(this.fetchedEOF?this.index<this.tokens.length-1:this.index<this.tokens.length),!s&&this.LA(1)===i.EOF)throw"cannot consume EOF";this.sync(this.index+1)&&(this.index=this.adjustSeekIndex(this.index+1))}sync(s){let l=s-this.tokens.length+1;return!(l>0)||this.fetch(l)>=l}fetch(s){if(this.fetchedEOF)return 0;for(let l=0;l<s;l++){let p=this.tokenSource.nextToken();if(p.tokenIndex=this.tokens.length,this.tokens.push(p),p.type===i.EOF)return this.fetchedEOF=!0,l+1}return s}getTokens(s,l,p){if(p===void 0&&(p=null),s<0||l<0)return null;this.lazyInit();let m=[];l>=this.tokens.length&&(l=this.tokens.length-1);for(let g=s;g<l;g++){let S=this.tokens[g];if(S.type===i.EOF)break;(p===null||p.contains(S.type))&&m.push(S)}return m}LA(s){return this.LT(s).type}LB(s){return this.index-s<0?null:this.tokens[this.index-s]}LT(s){if(this.lazyInit(),s===0)return null;if(s<0)return this.LB(-s);let l=this.index+s-1;return this.sync(l),l>=this.tokens.length?this.tokens[this.tokens.length-1]:this.tokens[l]}adjustSeekIndex(s){return s}lazyInit(){this.index===-1&&this.setup()}setup(){this.sync(0),this.index=this.adjustSeekIndex(0)}setTokenSource(s){this.tokenSource=s,this.tokens=[],this.index=-1,this.fetchedEOF=!1}nextTokenOnChannel(s,l){if(this.sync(s),s>=this.tokens.length)return-1;let p=this.tokens[s];for(;p.channel!==this.channel;){if(p.type===i.EOF)return-1;s+=1,this.sync(s),p=this.tokens[s]}return s}previousTokenOnChannel(s,l){for(;s>=0&&this.tokens[s].channel!==l;)s-=1;return s}getHiddenTokensToRight(s,l){if(l===void 0&&(l=-1),this.lazyInit(),s<0||s>=this.tokens.length)throw s+" not in 0.."+this.tokens.length-1;let p=this.nextTokenOnChannel(s+1,rt.DEFAULT_TOKEN_CHANNEL),m=s+1,g=p===-1?this.tokens.length-1:p;return this.filterForChannel(m,g,l)}getHiddenTokensToLeft(s,l){if(l===void 0&&(l=-1),this.lazyInit(),s<0||s>=this.tokens.length)throw s+" not in 0.."+this.tokens.length-1;let p=this.previousTokenOnChannel(s-1,rt.DEFAULT_TOKEN_CHANNEL);if(p===s-1)return null;let m=p+1,g=s-1;return this.filterForChannel(m,g,l)}filterForChannel(s,l,p){let m=[];for(let g=s;g<l+1;g++){let S=this.tokens[g];p===-1?S.channel!==rt.DEFAULT_TOKEN_CHANNEL&&m.push(S):S.channel===p&&m.push(S)}return m.length===0?null:m}getSourceName(){return this.tokenSource.getSourceName()}getText(s){this.lazyInit(),this.fill(),s||(s=new Ae(0,this.tokens.length-1));let l=s.start;l instanceof i&&(l=l.tokenIndex);let p=s.stop;if(p instanceof i&&(p=p.tokenIndex),l===null||p===null||l<0||p<0)return"";p>=this.tokens.length&&(p=this.tokens.length-1);let m="";for(let g=l;g<p+1;g++){let S=this.tokens[g];if(S.type===i.EOF)break;m+=S.text}return m}fill(){for(this.lazyInit();this.fetch(1e3)===1e3;);}}Object.defineProperty(pg,"size",{get:function(){return this.tokens.length}});class dg extends pg{constructor(s,l){super(s),this.channel=l===void 0?i.DEFAULT_CHANNEL:l}adjustSeekIndex(s){return this.nextTokenOnChannel(s,this.channel)}LB(s){if(s===0||this.index-s<0)return null;let l=this.index,p=1;for(;p<=s;)l=this.previousTokenOnChannel(l-1,this.channel),p+=1;return l<0?null:this.tokens[l]}LT(s){if(this.lazyInit(),s===0)return null;if(s<0)return this.LB(-s);let l=this.index,p=1;for(;p<s;)this.sync(l+1)&&(l=this.nextTokenOnChannel(l+1,this.channel)),p+=1;return this.tokens[l]}getNumberOfOnChannelTokens(){let s=0;this.fill();for(let l=0;l<this.tokens.length;l++){let p=this.tokens[l];if(p.channel===this.channel&&(s+=1),p.type===i.EOF)break}return s}}class HE extends A1{constructor(s){super(),this.parser=s}enterEveryRule(s){console.log("enter "+this.parser.ruleNames[s.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}visitTerminal(s){console.log("consume "+s.symbol+" rule "+this.parser.ruleNames[this.parser._ctx.ruleIndex])}exitEveryRule(s){console.log("exit "+this.parser.ruleNames[s.ruleIndex]+", LT(1)="+this.parser._input.LT(1).text)}}class F1 extends $l{constructor(s){super(),this._input=null,this._errHandler=new jl,this._precedenceStack=[],this._precedenceStack.push(0),this._ctx=null,this.buildParseTrees=!0,this._tracer=null,this._parseListeners=null,this._syntaxErrors=0,this.setInputStream(s)}reset(){this._input!==null&&this._input.seek(0),this._errHandler.reset(this),this._ctx=null,this._syntaxErrors=0,this.setTrace(!1),this._precedenceStack=[],this._precedenceStack.push(0),this._interp!==null&&this._interp.reset()}match(s){let l=this.getCurrentToken();return l.type===s?(this._errHandler.reportMatch(this),this.consume()):(l=this._errHandler.recoverInline(this),this.buildParseTrees&&l.tokenIndex===-1&&this._ctx.addErrorNode(l)),l}matchWildcard(){let s=this.getCurrentToken();return s.type>0?(this._errHandler.reportMatch(this),this.consume()):(s=this._errHandler.recoverInline(this),this.buildParseTrees&&s.tokenIndex===-1&&this._ctx.addErrorNode(s)),s}getParseListeners(){return this._parseListeners||[]}addParseListener(s){if(s===null)throw"listener";this._parseListeners===null&&(this._parseListeners=[]),this._parseListeners.push(s)}removeParseListener(s){if(this._parseListeners!==null){let l=this._parseListeners.indexOf(s);l>=0&&this._parseListeners.splice(l,1),this._parseListeners.length===0&&(this._parseListeners=null)}}removeParseListeners(){this._parseListeners=null}triggerEnterRuleEvent(){if(this._parseListeners!==null){let s=this._ctx;this._parseListeners.forEach(function(l){l.enterEveryRule(s),s.enterRule(l)})}}triggerExitRuleEvent(){if(this._parseListeners!==null){let s=this._ctx;this._parseListeners.slice(0).reverse().forEach(function(l){s.exitRule(l),l.exitEveryRule(s)})}}getTokenFactory(){return this._input.tokenSource._factory}setTokenFactory(s){this._input.tokenSource._factory=s}getATNWithBypassAlts(){let s=this.getSerializedATN();if(s===null)throw"The current parser does not support an ATN with bypass alternatives.";let l=this.bypassAltsAtnCache[s];if(l===null){let p=new ho;p.generateRuleBypassTransitions=!0,l=new E1(p).deserialize(s),this.bypassAltsAtnCache[s]=l}return l}getInputStream(){return this.getTokenStream()}setInputStream(s){this.setTokenStream(s)}getTokenStream(){return this._input}setTokenStream(s){this._input=null,this.reset(),this._input=s}get syntaxErrorsCount(){return this._syntaxErrors}getCurrentToken(){return this._input.LT(1)}notifyErrorListeners(s,l,p){p=p||null,(l=l||null)===null&&(l=this.getCurrentToken()),this._syntaxErrors+=1;let m=l.line,g=l.column;this.getErrorListenerDispatch().syntaxError(this,l,m,g,s,p)}consume(){let s=this.getCurrentToken();s.type!==i.EOF&&this.getInputStream().consume();let l=this._parseListeners!==null&&this._parseListeners.length>0;if(this.buildParseTrees||l){let p;p=this._errHandler.inErrorRecoveryMode(this)?this._ctx.addErrorNode(s):this._ctx.addTokenNode(s),p.invokingState=this.state,l&&this._parseListeners.forEach(function(m){p instanceof Yl||p.isErrorNode!==void 0&&p.isErrorNode()?m.visitErrorNode(p):p instanceof ri&&m.visitTerminal(p)})}return s}addContextToParseTree(){this._ctx.parentCtx!==null&&this._ctx.parentCtx.addChild(this._ctx)}enterRule(s,l,p){this.state=l,this._ctx=s,this._ctx.start=this._input.LT(1),this.buildParseTrees&&this.addContextToParseTree(),this.triggerEnterRuleEvent()}exitRule(){this._ctx.stop=this._input.LT(-1),this.triggerExitRuleEvent(),this.state=this._ctx.invokingState,this._ctx=this._ctx.parentCtx}enterOuterAlt(s,l){s.setAltNumber(l),this.buildParseTrees&&this._ctx!==s&&this._ctx.parentCtx!==null&&(this._ctx.parentCtx.removeLastChild(),this._ctx.parentCtx.addChild(s)),this._ctx=s}getPrecedence(){return this._precedenceStack.length===0?-1:this._precedenceStack[this._precedenceStack.length-1]}enterRecursionRule(s,l,p,m){this.state=l,this._precedenceStack.push(m),this._ctx=s,this._ctx.start=this._input.LT(1),this.triggerEnterRuleEvent()}pushNewRecursionContext(s,l,p){let m=this._ctx;m.parentCtx=s,m.invokingState=l,m.stop=this._input.LT(-1),this._ctx=s,this._ctx.start=m.start,this.buildParseTrees&&this._ctx.addChild(m),this.triggerEnterRuleEvent()}unrollRecursionContexts(s){this._precedenceStack.pop(),this._ctx.stop=this._input.LT(-1);let l=this._ctx,p=this.getParseListeners();if(p!==null&&p.length>0)for(;this._ctx!==s;)this.triggerExitRuleEvent(),this._ctx=this._ctx.parentCtx;else this._ctx=s;l.parentCtx=s,this.buildParseTrees&&s!==null&&s.addChild(l)}getInvokingContext(s){let l=this._ctx;for(;l!==null;){if(l.ruleIndex===s)return l;l=l.parentCtx}return null}precpred(s,l){return l>=this._precedenceStack[this._precedenceStack.length-1]}inContext(s){return!1}isExpectedToken(s){let l=this._interp.atn,p=this._ctx,m=l.states[this.state],g=l.nextTokens(m);if(g.contains(s))return!0;if(!g.contains(i.EPSILON))return!1;for(;p!==null&&p.invokingState>=0&&g.contains(i.EPSILON);){let S=l.states[p.invokingState].transitions[0];if(g=l.nextTokens(S.followState),g.contains(s))return!0;p=p.parentCtx}return!(!g.contains(i.EPSILON)||s!==i.EOF)}getExpectedTokens(){return this._interp.atn.getExpectedTokens(this.state,this._ctx)}getExpectedTokensWithinCurrentRule(){let s=this._interp.atn,l=s.states[this.state];return s.nextTokens(l)}getRuleIndex(s){let l=this.getRuleIndexMap()[s];return l!==null?l:-1}getRuleInvocationStack(s){(s=s||null)===null&&(s=this._ctx);let l=[];for(;s!==null;){let p=s.ruleIndex;p<0?l.push("n/a"):l.push(this.ruleNames[p]),s=s.parentCtx}return l}getDFAStrings(){return this._interp.decisionToDFA.toString()}dumpDFA(){let s=!1;for(let l=0;l<this._interp.decisionToDFA.length;l++){let p=this._interp.decisionToDFA[l];p.states.length>0&&(s&&console.log(),this.printer.println("Decision "+p.decision+":"),this.printer.print(p.toString(this.literalNames,this.symbolicNames)),s=!0)}}getSourceName(){return this._input.sourceName}setTrace(s){s?(this._tracer!==null&&this.removeParseListener(this._tracer),this._tracer=new HE(this),this.addParseListener(this._tracer)):(this.removeParseListener(this._tracer),this._tracer=null)}}F1.bypassAltsAtnCache={};class mg extends ri{constructor(s){super(),this.parentCtx=null,this.symbol=s}getChild(s){return null}getSymbol(){return this.symbol}getParent(){return this.parentCtx}getPayload(){return this.symbol}getSourceInterval(){if(this.symbol===null)return Ae.INVALID_INTERVAL;let s=this.symbol.tokenIndex;return new Ae(s,s)}getChildCount(){return 0}accept(s){return s.visitTerminal(this)}getText(){return this.symbol.text}toString(){return this.symbol.type===i.EOF?"<EOF>":this.symbol.text}}class fg extends mg{constructor(s){super(s)}isErrorNode(){return!0}accept(s){return s.visitErrorNode(this)}}class N1 extends Yn{constructor(s,l){super(s,l),this.children=null,this.start=null,this.stop=null,this.exception=null}copyFrom(s){this.parentCtx=s.parentCtx,this.invokingState=s.invokingState,this.children=null,this.start=s.start,this.stop=s.stop,s.children&&(this.children=[],s.children.map(function(l){l instanceof fg&&(this.children.push(l),l.parentCtx=this)},this))}enterRule(s){}exitRule(s){}addChild(s){return this.children===null&&(this.children=[]),this.children.push(s),s}removeLastChild(){this.children!==null&&this.children.pop()}addTokenNode(s){let l=new mg(s);return this.addChild(l),l.parentCtx=this,l}addErrorNode(s){let l=new fg(s);return this.addChild(l),l.parentCtx=this,l}getChild(s,l){if(l=l||null,this.children===null||s<0||s>=this.children.length)return null;if(l===null)return this.children[s];for(let p=0;p<this.children.length;p++){let m=this.children[p];if(m instanceof l){if(s===0)return m;s-=1}}return null}getToken(s,l){if(this.children===null||l<0||l>=this.children.length)return null;for(let p=0;p<this.children.length;p++){let m=this.children[p];if(m instanceof ri&&m.symbol.type===s){if(l===0)return m;l-=1}}return null}getTokens(s){if(this.children===null)return[];{let l=[];for(let p=0;p<this.children.length;p++){let m=this.children[p];m instanceof ri&&m.symbol.type===s&&l.push(m)}return l}}getTypedRuleContext(s,l){return this.getChild(l,s)}getTypedRuleContexts(s){if(this.children===null)return[];{let l=[];for(let p=0;p<this.children.length;p++){let m=this.children[p];m instanceof s&&l.push(m)}return l}}getChildCount(){return this.children===null?0:this.children.length}getSourceInterval(){return this.start===null||this.stop===null?Ae.INVALID_INTERVAL:new Ae(this.start.tokenIndex,this.stop.tokenIndex)}}Yn.EMPTY=new N1;class Ni{constructor(s){this.tokens=s,this.programs=new Map}getTokenStream(){return this.tokens}insertAfter(s,l){let p,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ni.DEFAULT_PROGRAM_NAME;p=typeof s=="number"?s:s.tokenIndex;let g=this.getProgram(m),S=new wg(this.tokens,p,g.length,l);g.push(S)}insertBefore(s,l){let p,m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ni.DEFAULT_PROGRAM_NAME;p=typeof s=="number"?s:s.tokenIndex;let g=this.getProgram(m),S=new ps(this.tokens,p,g.length,l);g.push(S)}replaceSingle(s,l){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ni.DEFAULT_PROGRAM_NAME;this.replace(s,s,l,p)}replace(s,l,p){let m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ni.DEFAULT_PROGRAM_NAME;if(typeof s!="number"&&(s=s.tokenIndex),typeof l!="number"&&(l=l.tokenIndex),s>l||s<0||l<0||l>=this.tokens.size)throw new RangeError(`replace: range invalid: ${s}..${l}(size=${this.tokens.size})`);let g=this.getProgram(m),S=new zl(this.tokens,s,l,g.length,p);g.push(S)}delete(s,l){let p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ni.DEFAULT_PROGRAM_NAME;l===void 0&&(l=s),this.replace(s,l,null,p)}getProgram(s){let l=this.programs.get(s);return l==null&&(l=this.initializeProgram(s)),l}initializeProgram(s){let l=[];return this.programs.set(s,l),l}getText(s){let l,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ni.DEFAULT_PROGRAM_NAME;l=s instanceof Ae?s:new Ae(0,this.tokens.size-1),typeof s=="string"&&(p=s);let m=this.programs.get(p),g=l.start,S=l.stop;if(S>this.tokens.size-1&&(S=this.tokens.size-1),g<0&&(g=0),m==null||m.length===0)return this.tokens.getText(new Ae(g,S));let L=[],j=this.reduceToSingleOperationPerIndex(m),W=g;for(;W<=S&&W<this.tokens.size;){let se=j.get(W);j.delete(W);let me=this.tokens.get(W);se==null?(me.type!==i.EOF&&L.push(String(me.text)),W++):W=se.execute(L)}if(S===this.tokens.size-1)for(let se of j.values())se.index>=this.tokens.size-1&&L.push(se.text.toString());return L.join("")}reduceToSingleOperationPerIndex(s){for(let p=0;p<s.length;p++){let m=s[p];if(m==null||!(m instanceof zl))continue;let g=m,S=this.getKindOfOps(s,ps,p);for(let j of S)j.index===g.index?(s[j.instructionIndex]=void 0,g.text=j.text.toString()+(g.text!=null?g.text.toString():"")):j.index>g.index&&j.index<=g.lastIndex&&(s[j.instructionIndex]=void 0);let L=this.getKindOfOps(s,zl,p);for(let j of L){if(j.index>=g.index&&j.lastIndex<=g.lastIndex){s[j.instructionIndex]=void 0;continue}let W=j.lastIndex<g.index||j.index>g.lastIndex;if(j.text!=null||g.text!=null||W){if(!W)throw new Error(`replace op boundaries of ${g} overlap with previous ${j}`)}else s[j.instructionIndex]=void 0,g.index=Math.min(j.index,g.index),g.lastIndex=Math.max(j.lastIndex,g.lastIndex)}}for(let p=0;p<s.length;p++){let m=s[p];if(m==null||!(m instanceof ps))continue;let g=m,S=this.getKindOfOps(s,ps,p);for(let j of S)j.index===g.index&&(j instanceof wg?(g.text=this.catOpText(j.text,g.text),s[j.instructionIndex]=void 0):j instanceof ps&&(g.text=this.catOpText(g.text,j.text),s[j.instructionIndex]=void 0));let L=this.getKindOfOps(s,zl,p);for(let j of L)if(g.index!==j.index){if(g.index>=j.index&&g.index<=j.lastIndex)throw new Error(`insert op ${g} within boundaries of previous ${j}`)}else j.text=this.catOpText(g.text,j.text),s[p]=void 0}let l=new Map;for(let p of s)if(p!=null){if(l.get(p.index)!=null)throw new Error("should only be one op per index");l.set(p.index,p)}return l}catOpText(s,l){let p="",m="";return s!=null&&(p=s.toString()),l!=null&&(m=l.toString()),p+m}getKindOfOps(s,l,p){return s.slice(0,p).filter(m=>m&&m instanceof l)}}var Gl,Wl,P1;Gl=Ni,P1="default",(Wl=(function(K){var s=(function(l,p){if(typeof l!="object"||l===null)return l;var m=l[Symbol.toPrimitive];if(m!==void 0){var g=m.call(l,"string");if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(l)})(K);return typeof s=="symbol"?s:String(s)})(Wl="DEFAULT_PROGRAM_NAME"))in Gl?Object.defineProperty(Gl,Wl,{value:P1,enumerable:!0,configurable:!0,writable:!0}):Gl[Wl]=P1;class yg{constructor(s,l,p,m){this.tokens=s,this.instructionIndex=p,this.index=l,this.text=m===void 0?"":m}toString(){let s=this.constructor.name,l=s.indexOf("$");return s=s.substring(l+1,s.length),"<"+s+"@"+this.tokens.get(this.index)+':"'+this.text+'">'}}class ps extends yg{constructor(s,l,p,m){super(s,l,p,m)}execute(s){return this.text&&s.push(this.text.toString()),this.tokens.get(this.index).type!==i.EOF&&s.push(String(this.tokens.get(this.index).text)),this.index+1}}class wg extends ps{constructor(s,l,p,m){super(s,l+1,p,m)}}class zl extends yg{constructor(s,l,p,m,g){super(s,l,m,g),this.lastIndex=p}execute(s){return this.text&&s.push(this.text.toString()),this.lastIndex+1}toString(){return this.text==null?"<DeleteOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+">":"<ReplaceOp@"+this.tokens.get(this.index)+".."+this.tokens.get(this.lastIndex)+':"'+this.text+'">'}}let qE={atn:LE,dfa:IE,context:RE,misc:OE,tree:ME,error:UE,Token:i,CommonToken:_i,CharStreams:hg,CharStream:wo,InputStream:wo,CommonTokenStream:dg,Lexer:rt,Parser:F1,ParserRuleContext:N1,Interval:Ae,IntervalSet:Yt,LL1Analyzer:Bn,Utils:VE,TokenStreamRewriter:Ni}})();var $=P.dx,V=P.q2,Z=P.FO,Q=P.xf,te=P.Gy,Ee=P.s4,Ne=P.c7,Oe=P._7,st=P.tx,ot=P.gp,xt=P.cK,Nr=P.zs,Cl=P.AV,Cd=P.Xp,Sl=P.VS,Uy=P.ul,Sd=P.hW,vd=P.x1,Et=P.z5,$F=P.oN,sE=P.TB,HF=P.u1,oE=P._b,aE=P.$F,ie=P._T,Vy=P.db,qF=P.Zx,ne=P._x,jF=P.r8,GF=P.JI,WF=P.TP,$y=P.WU,zF=P.Nj,QF=P.ZP,G=class Tr extends Sd{constructor(c){super(c),this._interp=new vd(this,Tr._ATN,Tr.DecisionsToDFA,new Vy)}get grammarFileName(){return"Solidity.g4"}get literalNames(){return Tr.literalNames}get symbolicNames(){return Tr.symbolicNames}get ruleNames(){return Tr.ruleNames}get serializedATN(){return Tr._serializedATN}get channelNames(){return Tr.channelNames}get modeNames(){return Tr.modeNames}static get _ATN(){return Tr.__ATN||(Tr.__ATN=new V().deserialize(Tr._serializedATN)),Tr.__ATN}};G.T__0=1,G.T__1=2,G.T__2=3,G.T__3=4,G.T__4=5,G.T__5=6,G.T__6=7,G.T__7=8,G.T__8=9,G.T__9=10,G.T__10=11,G.T__11=12,G.T__12=13,G.T__13=14,G.T__14=15,G.T__15=16,G.T__16=17,G.T__17=18,G.T__18=19,G.T__19=20,G.T__20=21,G.T__21=22,G.T__22=23,G.T__23=24,G.T__24=25,G.T__25=26,G.T__26=27,G.T__27=28,G.T__28=29,G.T__29=30,G.T__30=31,G.T__31=32,G.T__32=33,G.T__33=34,G.T__34=35,G.T__35=36,G.T__36=37,G.T__37=38,G.T__38=39,G.T__39=40,G.T__40=41,G.T__41=42,G.T__42=43,G.T__43=44,G.T__44=45,G.T__45=46,G.T__46=47,G.T__47=48,G.T__48=49,G.T__49=50,G.T__50=51,G.T__51=52,G.T__52=53,G.T__53=54,G.T__54=55,G.T__55=56,G.T__56=57,G.T__57=58,G.T__58=59,G.T__59=60,G.T__60=61,G.T__61=62,G.T__62=63,G.T__63=64,G.T__64=65,G.T__65=66,G.T__66=67,G.T__67=68,G.T__68=69,G.T__69=70,G.T__70=71,G.T__71=72,G.T__72=73,G.T__73=74,G.T__74=75,G.T__75=76,G.T__76=77,G.T__77=78,G.T__78=79,G.T__79=80,G.T__80=81,G.T__81=82,G.T__82=83,G.T__83=84,G.T__84=85,G.T__85=86,G.T__86=87,G.T__87=88,G.T__88=89,G.T__89=90,G.T__90=91,G.T__91=92,G.T__92=93,G.T__93=94,G.T__94=95,G.T__95=96,G.T__96=97,G.T__97=98,G.Int=99,G.Uint=100,G.Byte=101,G.Fixed=102,G.Ufixed=103,G.BooleanLiteral=104,G.DecimalNumber=105,G.HexNumber=106,G.NumberUnit=107,G.HexLiteralFragment=108,G.ReservedKeyword=109,G.AnonymousKeyword=110,G.BreakKeyword=111,G.ConstantKeyword=112,G.TransientKeyword=113,G.ImmutableKeyword=114,G.ContinueKeyword=115,G.LeaveKeyword=116,G.ExternalKeyword=117,G.IndexedKeyword=118,G.InternalKeyword=119,G.PayableKeyword=120,G.PrivateKeyword=121,G.PublicKeyword=122,G.VirtualKeyword=123,G.PureKeyword=124,G.TypeKeyword=125,G.ViewKeyword=126,G.GlobalKeyword=127,G.ConstructorKeyword=128,G.FallbackKeyword=129,G.ReceiveKeyword=130,G.Identifier=131,G.StringLiteralFragment=132,G.VersionLiteral=133,G.WS=134,G.COMMENT=135,G.LINE_COMMENT=136,G.EOF=$y.EOF,G.channelNames=["DEFAULT_TOKEN_CHANNEL","HIDDEN"],G.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'layout'","'at'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'transient'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],G.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],G.modeNames=["DEFAULT_MODE"],G.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","T__96","T__97","Int","Uint","Byte","Fixed","Ufixed","NumberOfBits","NumberOfBytes","BooleanLiteral","DecimalNumber","DecimalDigits","HexNumber","HexDigits","NumberUnit","HexLiteralFragment","HexCharacter","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","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"],G._serializedATN=[4,0,136,1444,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,7,116,2,117,7,117,2,118,7,118,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,2,1,2,1,3,1,3,1,3,1,4,1,4,1,5,1,5,1,6,1,6,1,6,1,7,1,7,1,8,1,8,1,9,1,9,1,9,1,10,1,10,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,15,1,15,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,22,1,22,1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,29,1,29,1,30,1,30,1,31,1,31,1,32,1,32,1,33,1,33,1,34,1,34,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1,56,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1,61,1,62,1,62,1,62,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,68,1,68,1,68,1,69,1,69,1,69,1,70,1,70,1,70,1,70,1,71,1,71,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1,73,1,74,1,74,1,74,1,75,1,75,1,75,1,76,1,76,1,76,1,77,1,77,1,77,1,78,1,78,1,79,1,79,1,79,1,80,1,80,1,80,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,85,1,85,1,85,1,86,1,86,1,86,1,87,1,87,1,87,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,3,98,738,8,98,1,99,1,99,1,99,1,99,1,99,1,99,3,99,746,8,99,1,100,1,100,1,100,1,100,1,100,1,100,1,100,3,100,755,8,100,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,1,101,4,101,766,8,101,11,101,12,101,767,3,101,770,8,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,102,4,102,782,8,102,11,102,12,102,783,3,102,786,8,102,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,3,103,871,8,103,1,104,1,104,1,104,1,104,1,104,3,104,878,8,104,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,1,105,3,105,889,8,105,1,106,1,106,3,106,893,8,106,1,106,1,106,3,106,897,8,106,1,106,1,106,3,106,901,8,106,1,106,3,106,904,8,106,1,107,1,107,3,107,908,8,107,1,107,5,107,911,8,107,10,107,12,107,914,9,107,1,108,1,108,1,108,1,108,1,109,1,109,3,109,922,8,109,1,109,5,109,925,8,109,10,109,12,109,928,9,109,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,1,110,3,110,986,8,110,1,111,1,111,1,111,1,111,1,111,1,111,3,111,994,8,111,1,111,1,111,1,111,3,111,999,8,111,1,111,3,111,1002,8,111,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,1,113,3,113,1176,8,113,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,1,115,1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,122,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,124,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,1,126,1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,135,1,135,5,135,1348,8,135,10,135,12,135,1351,9,135,1,136,1,136,1,137,1,137,1,138,1,138,1,138,1,138,1,138,1,138,1,138,3,138,1364,8,138,1,138,1,138,5,138,1368,8,138,10,138,12,138,1371,9,138,1,138,1,138,1,138,5,138,1376,8,138,10,138,12,138,1379,9,138,1,138,3,138,1382,8,138,1,139,1,139,1,139,3,139,1387,8,139,1,140,1,140,1,140,3,140,1392,8,140,1,141,4,141,1395,8,141,11,141,12,141,1396,1,141,1,141,4,141,1401,8,141,11,141,12,141,1402,1,141,1,141,4,141,1407,8,141,11,141,12,141,1408,3,141,1411,8,141,1,142,4,142,1414,8,142,11,142,12,142,1415,1,142,1,142,1,143,1,143,1,143,1,143,5,143,1424,8,143,10,143,12,143,1427,9,143,1,143,1,143,1,143,1,143,1,143,1,144,1,144,1,144,1,144,5,144,1438,8,144,10,144,12,144,1441,9,144,1,144,1,144,1,1425,0,145,1,1,3,2,5,3,7,4,9,5,11,6,13,7,15,8,17,9,19,10,21,11,23,12,25,13,27,14,29,15,31,16,33,17,35,18,37,19,39,20,41,21,43,22,45,23,47,24,49,25,51,26,53,27,55,28,57,29,59,30,61,31,63,32,65,33,67,34,69,35,71,36,73,37,75,38,77,39,79,40,81,41,83,42,85,43,87,44,89,45,91,46,93,47,95,48,97,49,99,50,101,51,103,52,105,53,107,54,109,55,111,56,113,57,115,58,117,59,119,60,121,61,123,62,125,63,127,64,129,65,131,66,133,67,135,68,137,69,139,70,141,71,143,72,145,73,147,74,149,75,151,76,153,77,155,78,157,79,159,80,161,81,163,82,165,83,167,84,169,85,171,86,173,87,175,88,177,89,179,90,181,91,183,92,185,93,187,94,189,95,191,96,193,97,195,98,197,99,199,100,201,101,203,102,205,103,207,0,209,0,211,104,213,105,215,0,217,106,219,0,221,107,223,108,225,0,227,109,229,110,231,111,233,112,235,113,237,114,239,115,241,116,243,117,245,118,247,119,249,120,251,121,253,122,255,123,257,124,259,125,261,126,263,127,265,128,267,129,269,130,271,131,273,0,275,0,277,132,279,0,281,0,283,133,285,134,287,135,289,136,1,0,13,1,0,48,57,1,0,49,57,1,0,49,50,1,0,48,50,2,0,69,69,101,101,2,0,88,88,120,120,3,0,48,57,65,70,97,102,4,0,36,36,65,90,95,95,97,122,5,0,36,36,48,57,65,90,95,95,97,122,4,0,10,10,13,13,34,34,92,92,4,0,10,10,13,13,39,39,92,92,3,0,9,10,12,13,32,32,2,0,10,10,13,13,1538,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,1,0,0,0,0,21,1,0,0,0,0,23,1,0,0,0,0,25,1,0,0,0,0,27,1,0,0,0,0,29,1,0,0,0,0,31,1,0,0,0,0,33,1,0,0,0,0,35,1,0,0,0,0,37,1,0,0,0,0,39,1,0,0,0,0,41,1,0,0,0,0,43,1,0,0,0,0,45,1,0,0,0,0,47,1,0,0,0,0,49,1,0,0,0,0,51,1,0,0,0,0,53,1,0,0,0,0,55,1,0,0,0,0,57,1,0,0,0,0,59,1,0,0,0,0,61,1,0,0,0,0,63,1,0,0,0,0,65,1,0,0,0,0,67,1,0,0,0,0,69,1,0,0,0,0,71,1,0,0,0,0,73,1,0,0,0,0,75,1,0,0,0,0,77,1,0,0,0,0,79,1,0,0,0,0,81,1,0,0,0,0,83,1,0,0,0,0,85,1,0,0,0,0,87,1,0,0,0,0,89,1,0,0,0,0,91,1,0,0,0,0,93,1,0,0,0,0,95,1,0,0,0,0,97,1,0,0,0,0,99,1,0,0,0,0,101,1,0,0,0,0,103,1,0,0,0,0,105,1,0,0,0,0,107,1,0,0,0,0,109,1,0,0,0,0,111,1,0,0,0,0,113,1,0,0,0,0,115,1,0,0,0,0,117,1,0,0,0,0,119,1,0,0,0,0,121,1,0,0,0,0,123,1,0,0,0,0,125,1,0,0,0,0,127,1,0,0,0,0,129,1,0,0,0,0,131,1,0,0,0,0,133,1,0,0,0,0,135,1,0,0,0,0,137,1,0,0,0,0,139,1,0,0,0,0,141,1,0,0,0,0,143,1,0,0,0,0,145,1,0,0,0,0,147,1,0,0,0,0,149,1,0,0,0,0,151,1,0,0,0,0,153,1,0,0,0,0,155,1,0,0,0,0,157,1,0,0,0,0,159,1,0,0,0,0,161,1,0,0,0,0,163,1,0,0,0,0,165,1,0,0,0,0,167,1,0,0,0,0,169,1,0,0,0,0,171,1,0,0,0,0,173,1,0,0,0,0,175,1,0,0,0,0,177,1,0,0,0,0,179,1,0,0,0,0,181,1,0,0,0,0,183,1,0,0,0,0,185,1,0,0,0,0,187,1,0,0,0,0,189,1,0,0,0,0,191,1,0,0,0,0,193,1,0,0,0,0,195,1,0,0,0,0,197,1,0,0,0,0,199,1,0,0,0,0,201,1,0,0,0,0,203,1,0,0,0,0,205,1,0,0,0,0,211,1,0,0,0,0,213,1,0,0,0,0,217,1,0,0,0,0,221,1,0,0,0,0,223,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231,1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0,0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1,0,0,0,0,251,1,0,0,0,0,253,1,0,0,0,0,255,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,0,263,1,0,0,0,0,265,1,0,0,0,0,267,1,0,0,0,0,269,1,0,0,0,0,271,1,0,0,0,0,277,1,0,0,0,0,283,1,0,0,0,0,285,1,0,0,0,0,287,1,0,0,0,0,289,1,0,0,0,1,291,1,0,0,0,3,298,1,0,0,0,5,300,1,0,0,0,7,302,1,0,0,0,9,305,1,0,0,0,11,307,1,0,0,0,13,309,1,0,0,0,15,312,1,0,0,0,17,314,1,0,0,0,19,316,1,0,0,0,21,319,1,0,0,0,23,321,1,0,0,0,25,324,1,0,0,0,27,331,1,0,0,0,29,336,1,0,0,0,31,338,1,0,0,0,33,340,1,0,0,0,35,342,1,0,0,0,37,351,1,0,0,0,39,360,1,0,0,0,41,370,1,0,0,0,43,378,1,0,0,0,45,381,1,0,0,0,47,383,1,0,0,0,49,385,1,0,0,0,51,392,1,0,0,0,53,395,1,0,0,0,55,401,1,0,0,0,57,407,1,0,0,0,59,411,1,0,0,0,61,413,1,0,0,0,63,415,1,0,0,0,65,417,1,0,0,0,67,419,1,0,0,0,69,421,1,0,0,0,71,423,1,0,0,0,73,426,1,0,0,0,75,429,1,0,0,0,77,436,1,0,0,0,79,445,1,0,0,0,81,454,1,0,0,0,83,462,1,0,0,0,85,468,1,0,0,0,87,473,1,0,0,0,89,475,1,0,0,0,91,477,1,0,0,0,93,485,1,0,0,0,95,487,1,0,0,0,97,495,1,0,0,0,99,498,1,0,0,0,101,505,1,0,0,0,103,513,1,0,0,0,105,522,1,0,0,0,107,525,1,0,0,0,109,530,1,0,0,0,111,534,1,0,0,0,113,540,1,0,0,0,115,546,1,0,0,0,117,556,1,0,0,0,119,565,1,0,0,0,121,568,1,0,0,0,123,575,1,0,0,0,125,581,1,0,0,0,127,586,1,0,0,0,129,593,1,0,0,0,131,597,1,0,0,0,133,602,1,0,0,0,135,609,1,0,0,0,137,614,1,0,0,0,139,617,1,0,0,0,141,620,1,0,0,0,143,624,1,0,0,0,145,626,1,0,0,0,147,633,1,0,0,0,149,635,1,0,0,0,151,638,1,0,0,0,153,641,1,0,0,0,155,644,1,0,0,0,157,647,1,0,0,0,159,649,1,0,0,0,161,652,1,0,0,0,163,655,1,0,0,0,165,658,1,0,0,0,167,662,1,0,0,0,169,666,1,0,0,0,171,669,1,0,0,0,173,672,1,0,0,0,175,675,1,0,0,0,177,678,1,0,0,0,179,681,1,0,0,0,181,685,1,0,0,0,183,688,1,0,0,0,185,691,1,0,0,0,187,698,1,0,0,0,189,703,1,0,0,0,191,711,1,0,0,0,193,714,1,0,0,0,195,723,1,0,0,0,197,732,1,0,0,0,199,739,1,0,0,0,201,747,1,0,0,0,203,756,1,0,0,0,205,771,1,0,0,0,207,870,1,0,0,0,209,877,1,0,0,0,211,888,1,0,0,0,213,896,1,0,0,0,215,905,1,0,0,0,217,915,1,0,0,0,219,919,1,0,0,0,221,985,1,0,0,0,223,987,1,0,0,0,225,1003,1,0,0,0,227,1175,1,0,0,0,229,1177,1,0,0,0,231,1187,1,0,0,0,233,1193,1,0,0,0,235,1202,1,0,0,0,237,1212,1,0,0,0,239,1222,1,0,0,0,241,1231,1,0,0,0,243,1237,1,0,0,0,245,1246,1,0,0,0,247,1254,1,0,0,0,249,1263,1,0,0,0,251,1271,1,0,0,0,253,1279,1,0,0,0,255,1286,1,0,0,0,257,1294,1,0,0,0,259,1299,1,0,0,0,261,1304,1,0,0,0,263,1309,1,0,0,0,265,1316,1,0,0,0,267,1328,1,0,0,0,269,1337,1,0,0,0,271,1345,1,0,0,0,273,1352,1,0,0,0,275,1354,1,0,0,0,277,1363,1,0,0,0,279,1386,1,0,0,0,281,1391,1,0,0,0,283,1394,1,0,0,0,285,1413,1,0,0,0,287,1419,1,0,0,0,289,1433,1,0,0,0,291,292,5,112,0,0,292,293,5,114,0,0,293,294,5,97,0,0,294,295,5,103,0,0,295,296,5,109,0,0,296,297,5,97,0,0,297,2,1,0,0,0,298,299,5,59,0,0,299,4,1,0,0,0,300,301,5,42,0,0,301,6,1,0,0,0,302,303,5,124,0,0,303,304,5,124,0,0,304,8,1,0,0,0,305,306,5,94,0,0,306,10,1,0,0,0,307,308,5,126,0,0,308,12,1,0,0,0,309,310,5,62,0,0,310,311,5,61,0,0,311,14,1,0,0,0,312,313,5,62,0,0,313,16,1,0,0,0,314,315,5,60,0,0,315,18,1,0,0,0,316,317,5,60,0,0,317,318,5,61,0,0,318,20,1,0,0,0,319,320,5,61,0,0,320,22,1,0,0,0,321,322,5,97,0,0,322,323,5,115,0,0,323,24,1,0,0,0,324,325,5,105,0,0,325,326,5,109,0,0,326,327,5,112,0,0,327,328,5,111,0,0,328,329,5,114,0,0,329,330,5,116,0,0,330,26,1,0,0,0,331,332,5,102,0,0,332,333,5,114,0,0,333,334,5,111,0,0,334,335,5,109,0,0,335,28,1,0,0,0,336,337,5,123,0,0,337,30,1,0,0,0,338,339,5,44,0,0,339,32,1,0,0,0,340,341,5,125,0,0,341,34,1,0,0,0,342,343,5,97,0,0,343,344,5,98,0,0,344,345,5,115,0,0,345,346,5,116,0,0,346,347,5,114,0,0,347,348,5,97,0,0,348,349,5,99,0,0,349,350,5,116,0,0,350,36,1,0,0,0,351,352,5,99,0,0,352,353,5,111,0,0,353,354,5,110,0,0,354,355,5,116,0,0,355,356,5,114,0,0,356,357,5,97,0,0,357,358,5,99,0,0,358,359,5,116,0,0,359,38,1,0,0,0,360,361,5,105,0,0,361,362,5,110,0,0,362,363,5,116,0,0,363,364,5,101,0,0,364,365,5,114,0,0,365,366,5,102,0,0,366,367,5,97,0,0,367,368,5,99,0,0,368,369,5,101,0,0,369,40,1,0,0,0,370,371,5,108,0,0,371,372,5,105,0,0,372,373,5,98,0,0,373,374,5,114,0,0,374,375,5,97,0,0,375,376,5,114,0,0,376,377,5,121,0,0,377,42,1,0,0,0,378,379,5,105,0,0,379,380,5,115,0,0,380,44,1,0,0,0,381,382,5,40,0,0,382,46,1,0,0,0,383,384,5,41,0,0,384,48,1,0,0,0,385,386,5,108,0,0,386,387,5,97,0,0,387,388,5,121,0,0,388,389,5,111,0,0,389,390,5,117,0,0,390,391,5,116,0,0,391,50,1,0,0,0,392,393,5,97,0,0,393,394,5,116,0,0,394,52,1,0,0,0,395,396,5,101,0,0,396,397,5,114,0,0,397,398,5,114,0,0,398,399,5,111,0,0,399,400,5,114,0,0,400,54,1,0,0,0,401,402,5,117,0,0,402,403,5,115,0,0,403,404,5,105,0,0,404,405,5,110,0,0,405,406,5,103,0,0,406,56,1,0,0,0,407,408,5,102,0,0,408,409,5,111,0,0,409,410,5,114,0,0,410,58,1,0,0,0,411,412,5,124,0,0,412,60,1,0,0,0,413,414,5,38,0,0,414,62,1,0,0,0,415,416,5,43,0,0,416,64,1,0,0,0,417,418,5,45,0,0,418,66,1,0,0,0,419,420,5,47,0,0,420,68,1,0,0,0,421,422,5,37,0,0,422,70,1,0,0,0,423,424,5,61,0,0,424,425,5,61,0,0,425,72,1,0,0,0,426,427,5,33,0,0,427,428,5,61,0,0,428,74,1,0,0,0,429,430,5,115,0,0,430,431,5,116,0,0,431,432,5,114,0,0,432,433,5,117,0,0,433,434,5,99,0,0,434,435,5,116,0,0,435,76,1,0,0,0,436,437,5,109,0,0,437,438,5,111,0,0,438,439,5,100,0,0,439,440,5,105,0,0,440,441,5,102,0,0,441,442,5,105,0,0,442,443,5,101,0,0,443,444,5,114,0,0,444,78,1,0,0,0,445,446,5,102,0,0,446,447,5,117,0,0,447,448,5,110,0,0,448,449,5,99,0,0,449,450,5,116,0,0,450,451,5,105,0,0,451,452,5,111,0,0,452,453,5,110,0,0,453,80,1,0,0,0,454,455,5,114,0,0,455,456,5,101,0,0,456,457,5,116,0,0,457,458,5,117,0,0,458,459,5,114,0,0,459,460,5,110,0,0,460,461,5,115,0,0,461,82,1,0,0,0,462,463,5,101,0,0,463,464,5,118,0,0,464,465,5,101,0,0,465,466,5,110,0,0,466,467,5,116,0,0,467,84,1,0,0,0,468,469,5,101,0,0,469,470,5,110,0,0,470,471,5,117,0,0,471,472,5,109,0,0,472,86,1,0,0,0,473,474,5,91,0,0,474,88,1,0,0,0,475,476,5,93,0,0,476,90,1,0,0,0,477,478,5,97,0,0,478,479,5,100,0,0,479,480,5,100,0,0,480,481,5,114,0,0,481,482,5,101,0,0,482,483,5,115,0,0,483,484,5,115,0,0,484,92,1,0,0,0,485,486,5,46,0,0,486,94,1,0,0,0,487,488,5,109,0,0,488,489,5,97,0,0,489,490,5,112,0,0,490,491,5,112,0,0,491,492,5,105,0,0,492,493,5,110,0,0,493,494,5,103,0,0,494,96,1,0,0,0,495,496,5,61,0,0,496,497,5,62,0,0,497,98,1,0,0,0,498,499,5,109,0,0,499,500,5,101,0,0,500,501,5,109,0,0,501,502,5,111,0,0,502,503,5,114,0,0,503,504,5,121,0,0,504,100,1,0,0,0,505,506,5,115,0,0,506,507,5,116,0,0,507,508,5,111,0,0,508,509,5,114,0,0,509,510,5,97,0,0,510,511,5,103,0,0,511,512,5,101,0,0,512,102,1,0,0,0,513,514,5,99,0,0,514,515,5,97,0,0,515,516,5,108,0,0,516,517,5,108,0,0,517,518,5,100,0,0,518,519,5,97,0,0,519,520,5,116,0,0,520,521,5,97,0,0,521,104,1,0,0,0,522,523,5,105,0,0,523,524,5,102,0,0,524,106,1,0,0,0,525,526,5,101,0,0,526,527,5,108,0,0,527,528,5,115,0,0,528,529,5,101,0,0,529,108,1,0,0,0,530,531,5,116,0,0,531,532,5,114,0,0,532,533,5,121,0,0,533,110,1,0,0,0,534,535,5,99,0,0,535,536,5,97,0,0,536,537,5,116,0,0,537,538,5,99,0,0,538,539,5,104,0,0,539,112,1,0,0,0,540,541,5,119,0,0,541,542,5,104,0,0,542,543,5,105,0,0,543,544,5,108,0,0,544,545,5,101,0,0,545,114,1,0,0,0,546,547,5,117,0,0,547,548,5,110,0,0,548,549,5,99,0,0,549,550,5,104,0,0,550,551,5,101,0,0,551,552,5,99,0,0,552,553,5,107,0,0,553,554,5,101,0,0,554,555,5,100,0,0,555,116,1,0,0,0,556,557,5,97,0,0,557,558,5,115,0,0,558,559,5,115,0,0,559,560,5,101,0,0,560,561,5,109,0,0,561,562,5,98,0,0,562,563,5,108,0,0,563,564,5,121,0,0,564,118,1,0,0,0,565,566,5,100,0,0,566,567,5,111,0,0,567,120,1,0,0,0,568,569,5,114,0,0,569,570,5,101,0,0,570,571,5,116,0,0,571,572,5,117,0,0,572,573,5,114,0,0,573,574,5,110,0,0,574,122,1,0,0,0,575,576,5,116,0,0,576,577,5,104,0,0,577,578,5,114,0,0,578,579,5,111,0,0,579,580,5,119,0,0,580,124,1,0,0,0,581,582,5,101,0,0,582,583,5,109,0,0,583,584,5,105,0,0,584,585,5,116,0,0,585,126,1,0,0,0,586,587,5,114,0,0,587,588,5,101,0,0,588,589,5,118,0,0,589,590,5,101,0,0,590,591,5,114,0,0,591,592,5,116,0,0,592,128,1,0,0,0,593,594,5,118,0,0,594,595,5,97,0,0,595,596,5,114,0,0,596,130,1,0,0,0,597,598,5,98,0,0,598,599,5,111,0,0,599,600,5,111,0,0,600,601,5,108,0,0,601,132,1,0,0,0,602,603,5,115,0,0,603,604,5,116,0,0,604,605,5,114,0,0,605,606,5,105,0,0,606,607,5,110,0,0,607,608,5,103,0,0,608,134,1,0,0,0,609,610,5,98,0,0,610,611,5,121,0,0,611,612,5,116,0,0,612,613,5,101,0,0,613,136,1,0,0,0,614,615,5,43,0,0,615,616,5,43,0,0,616,138,1,0,0,0,617,618,5,45,0,0,618,619,5,45,0,0,619,140,1,0,0,0,620,621,5,110,0,0,621,622,5,101,0,0,622,623,5,119,0,0,623,142,1,0,0,0,624,625,5,58,0,0,625,144,1,0,0,0,626,627,5,100,0,0,627,628,5,101,0,0,628,629,5,108,0,0,629,630,5,101,0,0,630,631,5,116,0,0,631,632,5,101,0,0,632,146,1,0,0,0,633,634,5,33,0,0,634,148,1,0,0,0,635,636,5,42,0,0,636,637,5,42,0,0,637,150,1,0,0,0,638,639,5,60,0,0,639,640,5,60,0,0,640,152,1,0,0,0,641,642,5,62,0,0,642,643,5,62,0,0,643,154,1,0,0,0,644,645,5,38,0,0,645,646,5,38,0,0,646,156,1,0,0,0,647,648,5,63,0,0,648,158,1,0,0,0,649,650,5,124,0,0,650,651,5,61,0,0,651,160,1,0,0,0,652,653,5,94,0,0,653,654,5,61,0,0,654,162,1,0,0,0,655,656,5,38,0,0,656,657,5,61,0,0,657,164,1,0,0,0,658,659,5,60,0,0,659,660,5,60,0,0,660,661,5,61,0,0,661,166,1,0,0,0,662,663,5,62,0,0,663,664,5,62,0,0,664,665,5,61,0,0,665,168,1,0,0,0,666,667,5,43,0,0,667,668,5,61,0,0,668,170,1,0,0,0,669,670,5,45,0,0,670,671,5,61,0,0,671,172,1,0,0,0,672,673,5,42,0,0,673,674,5,61,0,0,674,174,1,0,0,0,675,676,5,47,0,0,676,677,5,61,0,0,677,176,1,0,0,0,678,679,5,37,0,0,679,680,5,61,0,0,680,178,1,0,0,0,681,682,5,108,0,0,682,683,5,101,0,0,683,684,5,116,0,0,684,180,1,0,0,0,685,686,5,58,0,0,686,687,5,61,0,0,687,182,1,0,0,0,688,689,5,61,0,0,689,690,5,58,0,0,690,184,1,0,0,0,691,692,5,115,0,0,692,693,5,119,0,0,693,694,5,105,0,0,694,695,5,116,0,0,695,696,5,99,0,0,696,697,5,104,0,0,697,186,1,0,0,0,698,699,5,99,0,0,699,700,5,97,0,0,700,701,5,115,0,0,701,702,5,101,0,0,702,188,1,0,0,0,703,704,5,100,0,0,704,705,5,101,0,0,705,706,5,102,0,0,706,707,5,97,0,0,707,708,5,117,0,0,708,709,5,108,0,0,709,710,5,116,0,0,710,190,1,0,0,0,711,712,5,45,0,0,712,713,5,62,0,0,713,192,1,0,0,0,714,715,5,99,0,0,715,716,5,97,0,0,716,717,5,108,0,0,717,718,5,108,0,0,718,719,5,98,0,0,719,720,5,97,0,0,720,721,5,99,0,0,721,722,5,107,0,0,722,194,1,0,0,0,723,724,5,111,0,0,724,725,5,118,0,0,725,726,5,101,0,0,726,727,5,114,0,0,727,728,5,114,0,0,728,729,5,105,0,0,729,730,5,100,0,0,730,731,5,101,0,0,731,196,1,0,0,0,732,733,5,105,0,0,733,734,5,110,0,0,734,735,5,116,0,0,735,737,1,0,0,0,736,738,3,207,103,0,737,736,1,0,0,0,737,738,1,0,0,0,738,198,1,0,0,0,739,740,5,117,0,0,740,741,5,105,0,0,741,742,5,110,0,0,742,743,5,116,0,0,743,745,1,0,0,0,744,746,3,207,103,0,745,744,1,0,0,0,745,746,1,0,0,0,746,200,1,0,0,0,747,748,5,98,0,0,748,749,5,121,0,0,749,750,5,116,0,0,750,751,5,101,0,0,751,752,5,115,0,0,752,754,1,0,0,0,753,755,3,209,104,0,754,753,1,0,0,0,754,755,1,0,0,0,755,202,1,0,0,0,756,757,5,102,0,0,757,758,5,105,0,0,758,759,5,120,0,0,759,760,5,101,0,0,760,761,5,100,0,0,761,769,1,0,0,0,762,763,3,207,103,0,763,765,5,120,0,0,764,766,7,0,0,0,765,764,1,0,0,0,766,767,1,0,0,0,767,765,1,0,0,0,767,768,1,0,0,0,768,770,1,0,0,0,769,762,1,0,0,0,769,770,1,0,0,0,770,204,1,0,0,0,771,772,5,117,0,0,772,773,5,102,0,0,773,774,5,105,0,0,774,775,5,120,0,0,775,776,5,101,0,0,776,777,5,100,0,0,777,785,1,0,0,0,778,779,3,207,103,0,779,781,5,120,0,0,780,782,7,0,0,0,781,780,1,0,0,0,782,783,1,0,0,0,783,781,1,0,0,0,783,784,1,0,0,0,784,786,1,0,0,0,785,778,1,0,0,0,785,786,1,0,0,0,786,206,1,0,0,0,787,871,5,56,0,0,788,789,5,49,0,0,789,871,5,54,0,0,790,791,5,50,0,0,791,871,5,52,0,0,792,793,5,51,0,0,793,871,5,50,0,0,794,795,5,52,0,0,795,871,5,48,0,0,796,797,5,52,0,0,797,871,5,56,0,0,798,799,5,53,0,0,799,871,5,54,0,0,800,801,5,54,0,0,801,871,5,52,0,0,802,803,5,55,0,0,803,871,5,50,0,0,804,805,5,56,0,0,805,871,5,48,0,0,806,807,5,56,0,0,807,871,5,56,0,0,808,809,5,57,0,0,809,871,5,54,0,0,810,811,5,49,0,0,811,812,5,48,0,0,812,871,5,52,0,0,813,814,5,49,0,0,814,815,5,49,0,0,815,871,5,50,0,0,816,817,5,49,0,0,817,818,5,50,0,0,818,871,5,48,0,0,819,820,5,49,0,0,820,821,5,50,0,0,821,871,5,56,0,0,822,823,5,49,0,0,823,824,5,51,0,0,824,871,5,54,0,0,825,826,5,49,0,0,826,827,5,52,0,0,827,871,5,52,0,0,828,829,5,49,0,0,829,830,5,53,0,0,830,871,5,50,0,0,831,832,5,49,0,0,832,833,5,54,0,0,833,871,5,48,0,0,834,835,5,49,0,0,835,836,5,54,0,0,836,871,5,56,0,0,837,838,5,49,0,0,838,839,5,55,0,0,839,871,5,54,0,0,840,841,5,49,0,0,841,842,5,56,0,0,842,871,5,52,0,0,843,844,5,49,0,0,844,845,5,57,0,0,845,871,5,50,0,0,846,847,5,50,0,0,847,848,5,48,0,0,848,871,5,48,0,0,849,850,5,50,0,0,850,851,5,48,0,0,851,871,5,56,0,0,852,853,5,50,0,0,853,854,5,49,0,0,854,871,5,54,0,0,855,856,5,50,0,0,856,857,5,50,0,0,857,871,5,52,0,0,858,859,5,50,0,0,859,860,5,51,0,0,860,871,5,50,0,0,861,862,5,50,0,0,862,863,5,52,0,0,863,871,5,48,0,0,864,865,5,50,0,0,865,866,5,52,0,0,866,871,5,56,0,0,867,868,5,50,0,0,868,869,5,53,0,0,869,871,5,54,0,0,870,787,1,0,0,0,870,788,1,0,0,0,870,790,1,0,0,0,870,792,1,0,0,0,870,794,1,0,0,0,870,796,1,0,0,0,870,798,1,0,0,0,870,800,1,0,0,0,870,802,1,0,0,0,870,804,1,0,0,0,870,806,1,0,0,0,870,808,1,0,0,0,870,810,1,0,0,0,870,813,1,0,0,0,870,816,1,0,0,0,870,819,1,0,0,0,870,822,1,0,0,0,870,825,1,0,0,0,870,828,1,0,0,0,870,831,1,0,0,0,870,834,1,0,0,0,870,837,1,0,0,0,870,840,1,0,0,0,870,843,1,0,0,0,870,846,1,0,0,0,870,849,1,0,0,0,870,852,1,0,0,0,870,855,1,0,0,0,870,858,1,0,0,0,870,861,1,0,0,0,870,864,1,0,0,0,870,867,1,0,0,0,871,208,1,0,0,0,872,878,7,1,0,0,873,874,7,2,0,0,874,878,7,0,0,0,875,876,5,51,0,0,876,878,7,3,0,0,877,872,1,0,0,0,877,873,1,0,0,0,877,875,1,0,0,0,878,210,1,0,0,0,879,880,5,116,0,0,880,881,5,114,0,0,881,882,5,117,0,0,882,889,5,101,0,0,883,884,5,102,0,0,884,885,5,97,0,0,885,886,5,108,0,0,886,887,5,115,0,0,887,889,5,101,0,0,888,879,1,0,0,0,888,883,1,0,0,0,889,212,1,0,0,0,890,897,3,215,107,0,891,893,3,215,107,0,892,891,1,0,0,0,892,893,1,0,0,0,893,894,1,0,0,0,894,895,5,46,0,0,895,897,3,215,107,0,896,890,1,0,0,0,896,892,1,0,0,0,897,903,1,0,0,0,898,900,7,4,0,0,899,901,5,45,0,0,900,899,1,0,0,0,900,901,1,0,0,0,901,902,1,0,0,0,902,904,3,215,107,0,903,898,1,0,0,0,903,904,1,0,0,0,904,214,1,0,0,0,905,912,7,0,0,0,906,908,5,95,0,0,907,906,1,0,0,0,907,908,1,0,0,0,908,909,1,0,0,0,909,911,7,0,0,0,910,907,1,0,0,0,911,914,1,0,0,0,912,910,1,0,0,0,912,913,1,0,0,0,913,216,1,0,0,0,914,912,1,0,0,0,915,916,5,48,0,0,916,917,7,5,0,0,917,918,3,219,109,0,918,218,1,0,0,0,919,926,3,225,112,0,920,922,5,95,0,0,921,920,1,0,0,0,921,922,1,0,0,0,922,923,1,0,0,0,923,925,3,225,112,0,924,921,1,0,0,0,925,928,1,0,0,0,926,924,1,0,0,0,926,927,1,0,0,0,927,220,1,0,0,0,928,926,1,0,0,0,929,930,5,119,0,0,930,931,5,101,0,0,931,986,5,105,0,0,932,933,5,103,0,0,933,934,5,119,0,0,934,935,5,101,0,0,935,986,5,105,0,0,936,937,5,115,0,0,937,938,5,122,0,0,938,939,5,97,0,0,939,940,5,98,0,0,940,986,5,111,0,0,941,942,5,102,0,0,942,943,5,105,0,0,943,944,5,110,0,0,944,945,5,110,0,0,945,946,5,101,0,0,946,986,5,121,0,0,947,948,5,101,0,0,948,949,5,116,0,0,949,950,5,104,0,0,950,951,5,101,0,0,951,986,5,114,0,0,952,953,5,115,0,0,953,954,5,101,0,0,954,955,5,99,0,0,955,956,5,111,0,0,956,957,5,110,0,0,957,958,5,100,0,0,958,986,5,115,0,0,959,960,5,109,0,0,960,961,5,105,0,0,961,962,5,110,0,0,962,963,5,117,0,0,963,964,5,116,0,0,964,965,5,101,0,0,965,986,5,115,0,0,966,967,5,104,0,0,967,968,5,111,0,0,968,969,5,117,0,0,969,970,5,114,0,0,970,986,5,115,0,0,971,972,5,100,0,0,972,973,5,97,0,0,973,974,5,121,0,0,974,986,5,115,0,0,975,976,5,119,0,0,976,977,5,101,0,0,977,978,5,101,0,0,978,979,5,107,0,0,979,986,5,115,0,0,980,981,5,121,0,0,981,982,5,101,0,0,982,983,5,97,0,0,983,984,5,114,0,0,984,986,5,115,0,0,985,929,1,0,0,0,985,932,1,0,0,0,985,936,1,0,0,0,985,941,1,0,0,0,985,947,1,0,0,0,985,952,1,0,0,0,985,959,1,0,0,0,985,966,1,0,0,0,985,971,1,0,0,0,985,975,1,0,0,0,985,980,1,0,0,0,986,222,1,0,0,0,987,988,5,104,0,0,988,989,5,101,0,0,989,990,5,120,0,0,990,1001,1,0,0,0,991,993,5,34,0,0,992,994,3,219,109,0,993,992,1,0,0,0,993,994,1,0,0,0,994,995,1,0,0,0,995,1002,5,34,0,0,996,998,5,39,0,0,997,999,3,219,109,0,998,997,1,0,0,0,998,999,1,0,0,0,999,1e3,1,0,0,0,1e3,1002,5,39,0,0,1001,991,1,0,0,0,1001,996,1,0,0,0,1002,224,1,0,0,0,1003,1004,7,6,0,0,1004,226,1,0,0,0,1005,1006,5,97,0,0,1006,1007,5,102,0,0,1007,1008,5,116,0,0,1008,1009,5,101,0,0,1009,1176,5,114,0,0,1010,1011,5,97,0,0,1011,1012,5,108,0,0,1012,1013,5,105,0,0,1013,1014,5,97,0,0,1014,1176,5,115,0,0,1015,1016,5,97,0,0,1016,1017,5,112,0,0,1017,1018,5,112,0,0,1018,1019,5,108,0,0,1019,1176,5,121,0,0,1020,1021,5,97,0,0,1021,1022,5,117,0,0,1022,1023,5,116,0,0,1023,1176,5,111,0,0,1024,1025,5,99,0,0,1025,1026,5,97,0,0,1026,1027,5,115,0,0,1027,1176,5,101,0,0,1028,1029,5,99,0,0,1029,1030,5,111,0,0,1030,1031,5,112,0,0,1031,1032,5,121,0,0,1032,1033,5,111,0,0,1033,1176,5,102,0,0,1034,1035,5,100,0,0,1035,1036,5,101,0,0,1036,1037,5,102,0,0,1037,1038,5,97,0,0,1038,1039,5,117,0,0,1039,1040,5,108,0,0,1040,1176,5,116,0,0,1041,1042,5,100,0,0,1042,1043,5,101,0,0,1043,1044,5,102,0,0,1044,1045,5,105,0,0,1045,1046,5,110,0,0,1046,1176,5,101,0,0,1047,1048,5,102,0,0,1048,1049,5,105,0,0,1049,1050,5,110,0,0,1050,1051,5,97,0,0,1051,1176,5,108,0,0,1052,1053,5,105,0,0,1053,1054,5,109,0,0,1054,1055,5,112,0,0,1055,1056,5,108,0,0,1056,1057,5,101,0,0,1057,1058,5,109,0,0,1058,1059,5,101,0,0,1059,1060,5,110,0,0,1060,1061,5,116,0,0,1061,1176,5,115,0,0,1062,1063,5,105,0,0,1063,1176,5,110,0,0,1064,1065,5,105,0,0,1065,1066,5,110,0,0,1066,1067,5,108,0,0,1067,1068,5,105,0,0,1068,1069,5,110,0,0,1069,1176,5,101,0,0,1070,1071,5,108,0,0,1071,1072,5,101,0,0,1072,1176,5,116,0,0,1073,1074,5,109,0,0,1074,1075,5,97,0,0,1075,1076,5,99,0,0,1076,1077,5,114,0,0,1077,1176,5,111,0,0,1078,1079,5,109,0,0,1079,1080,5,97,0,0,1080,1081,5,116,0,0,1081,1082,5,99,0,0,1082,1176,5,104,0,0,1083,1084,5,109,0,0,1084,1085,5,117,0,0,1085,1086,5,116,0,0,1086,1087,5,97,0,0,1087,1088,5,98,0,0,1088,1089,5,108,0,0,1089,1176,5,101,0,0,1090,1091,5,110,0,0,1091,1092,5,117,0,0,1092,1093,5,108,0,0,1093,1176,5,108,0,0,1094,1095,5,111,0,0,1095,1176,5,102,0,0,1096,1097,5,112,0,0,1097,1098,5,97,0,0,1098,1099,5,114,0,0,1099,1100,5,116,0,0,1100,1101,5,105,0,0,1101,1102,5,97,0,0,1102,1176,5,108,0,0,1103,1104,5,112,0,0,1104,1105,5,114,0,0,1105,1106,5,111,0,0,1106,1107,5,109,0,0,1107,1108,5,105,0,0,1108,1109,5,115,0,0,1109,1176,5,101,0,0,1110,1111,5,114,0,0,1111,1112,5,101,0,0,1112,1113,5,102,0,0,1113,1114,5,101,0,0,1114,1115,5,114,0,0,1115,1116,5,101,0,0,1116,1117,5,110,0,0,1117,1118,5,99,0,0,1118,1176,5,101,0,0,1119,1120,5,114,0,0,1120,1121,5,101,0,0,1121,1122,5,108,0,0,1122,1123,5,111,0,0,1123,1124,5,99,0,0,1124,1125,5,97,0,0,1125,1126,5,116,0,0,1126,1127,5,97,0,0,1127,1128,5,98,0,0,1128,1129,5,108,0,0,1129,1176,5,101,0,0,1130,1131,5,115,0,0,1131,1132,5,101,0,0,1132,1133,5,97,0,0,1133,1134,5,108,0,0,1134,1135,5,101,0,0,1135,1176,5,100,0,0,1136,1137,5,115,0,0,1137,1138,5,105,0,0,1138,1139,5,122,0,0,1139,1140,5,101,0,0,1140,1141,5,111,0,0,1141,1176,5,102,0,0,1142,1143,5,115,0,0,1143,1144,5,116,0,0,1144,1145,5,97,0,0,1145,1146,5,116,0,0,1146,1147,5,105,0,0,1147,1176,5,99,0,0,1148,1149,5,115,0,0,1149,1150,5,117,0,0,1150,1151,5,112,0,0,1151,1152,5,112,0,0,1152,1153,5,111,0,0,1153,1154,5,114,0,0,1154,1155,5,116,0,0,1155,1176,5,115,0,0,1156,1157,5,115,0,0,1157,1158,5,119,0,0,1158,1159,5,105,0,0,1159,1160,5,116,0,0,1160,1161,5,99,0,0,1161,1176,5,104,0,0,1162,1163,5,116,0,0,1163,1164,5,121,0,0,1164,1165,5,112,0,0,1165,1166,5,101,0,0,1166,1167,5,100,0,0,1167,1168,5,101,0,0,1168,1176,5,102,0,0,1169,1170,5,116,0,0,1170,1171,5,121,0,0,1171,1172,5,112,0,0,1172,1173,5,101,0,0,1173,1174,5,111,0,0,1174,1176,5,102,0,0,1175,1005,1,0,0,0,1175,1010,1,0,0,0,1175,1015,1,0,0,0,1175,1020,1,0,0,0,1175,1024,1,0,0,0,1175,1028,1,0,0,0,1175,1034,1,0,0,0,1175,1041,1,0,0,0,1175,1047,1,0,0,0,1175,1052,1,0,0,0,1175,1062,1,0,0,0,1175,1064,1,0,0,0,1175,1070,1,0,0,0,1175,1073,1,0,0,0,1175,1078,1,0,0,0,1175,1083,1,0,0,0,1175,1090,1,0,0,0,1175,1094,1,0,0,0,1175,1096,1,0,0,0,1175,1103,1,0,0,0,1175,1110,1,0,0,0,1175,1119,1,0,0,0,1175,1130,1,0,0,0,1175,1136,1,0,0,0,1175,1142,1,0,0,0,1175,1148,1,0,0,0,1175,1156,1,0,0,0,1175,1162,1,0,0,0,1175,1169,1,0,0,0,1176,228,1,0,0,0,1177,1178,5,97,0,0,1178,1179,5,110,0,0,1179,1180,5,111,0,0,1180,1181,5,110,0,0,1181,1182,5,121,0,0,1182,1183,5,109,0,0,1183,1184,5,111,0,0,1184,1185,5,117,0,0,1185,1186,5,115,0,0,1186,230,1,0,0,0,1187,1188,5,98,0,0,1188,1189,5,114,0,0,1189,1190,5,101,0,0,1190,1191,5,97,0,0,1191,1192,5,107,0,0,1192,232,1,0,0,0,1193,1194,5,99,0,0,1194,1195,5,111,0,0,1195,1196,5,110,0,0,1196,1197,5,115,0,0,1197,1198,5,116,0,0,1198,1199,5,97,0,0,1199,1200,5,110,0,0,1200,1201,5,116,0,0,1201,234,1,0,0,0,1202,1203,5,116,0,0,1203,1204,5,114,0,0,1204,1205,5,97,0,0,1205,1206,5,110,0,0,1206,1207,5,115,0,0,1207,1208,5,105,0,0,1208,1209,5,101,0,0,1209,1210,5,110,0,0,1210,1211,5,116,0,0,1211,236,1,0,0,0,1212,1213,5,105,0,0,1213,1214,5,109,0,0,1214,1215,5,109,0,0,1215,1216,5,117,0,0,1216,1217,5,116,0,0,1217,1218,5,97,0,0,1218,1219,5,98,0,0,1219,1220,5,108,0,0,1220,1221,5,101,0,0,1221,238,1,0,0,0,1222,1223,5,99,0,0,1223,1224,5,111,0,0,1224,1225,5,110,0,0,1225,1226,5,116,0,0,1226,1227,5,105,0,0,1227,1228,5,110,0,0,1228,1229,5,117,0,0,1229,1230,5,101,0,0,1230,240,1,0,0,0,1231,1232,5,108,0,0,1232,1233,5,101,0,0,1233,1234,5,97,0,0,1234,1235,5,118,0,0,1235,1236,5,101,0,0,1236,242,1,0,0,0,1237,1238,5,101,0,0,1238,1239,5,120,0,0,1239,1240,5,116,0,0,1240,1241,5,101,0,0,1241,1242,5,114,0,0,1242,1243,5,110,0,0,1243,1244,5,97,0,0,1244,1245,5,108,0,0,1245,244,1,0,0,0,1246,1247,5,105,0,0,1247,1248,5,110,0,0,1248,1249,5,100,0,0,1249,1250,5,101,0,0,1250,1251,5,120,0,0,1251,1252,5,101,0,0,1252,1253,5,100,0,0,1253,246,1,0,0,0,1254,1255,5,105,0,0,1255,1256,5,110,0,0,1256,1257,5,116,0,0,1257,1258,5,101,0,0,1258,1259,5,114,0,0,1259,1260,5,110,0,0,1260,1261,5,97,0,0,1261,1262,5,108,0,0,1262,248,1,0,0,0,1263,1264,5,112,0,0,1264,1265,5,97,0,0,1265,1266,5,121,0,0,1266,1267,5,97,0,0,1267,1268,5,98,0,0,1268,1269,5,108,0,0,1269,1270,5,101,0,0,1270,250,1,0,0,0,1271,1272,5,112,0,0,1272,1273,5,114,0,0,1273,1274,5,105,0,0,1274,1275,5,118,0,0,1275,1276,5,97,0,0,1276,1277,5,116,0,0,1277,1278,5,101,0,0,1278,252,1,0,0,0,1279,1280,5,112,0,0,1280,1281,5,117,0,0,1281,1282,5,98,0,0,1282,1283,5,108,0,0,1283,1284,5,105,0,0,1284,1285,5,99,0,0,1285,254,1,0,0,0,1286,1287,5,118,0,0,1287,1288,5,105,0,0,1288,1289,5,114,0,0,1289,1290,5,116,0,0,1290,1291,5,117,0,0,1291,1292,5,97,0,0,1292,1293,5,108,0,0,1293,256,1,0,0,0,1294,1295,5,112,0,0,1295,1296,5,117,0,0,1296,1297,5,114,0,0,1297,1298,5,101,0,0,1298,258,1,0,0,0,1299,1300,5,116,0,0,1300,1301,5,121,0,0,1301,1302,5,112,0,0,1302,1303,5,101,0,0,1303,260,1,0,0,0,1304,1305,5,118,0,0,1305,1306,5,105,0,0,1306,1307,5,101,0,0,1307,1308,5,119,0,0,1308,262,1,0,0,0,1309,1310,5,103,0,0,1310,1311,5,108,0,0,1311,1312,5,111,0,0,1312,1313,5,98,0,0,1313,1314,5,97,0,0,1314,1315,5,108,0,0,1315,264,1,0,0,0,1316,1317,5,99,0,0,1317,1318,5,111,0,0,1318,1319,5,110,0,0,1319,1320,5,115,0,0,1320,1321,5,116,0,0,1321,1322,5,114,0,0,1322,1323,5,117,0,0,1323,1324,5,99,0,0,1324,1325,5,116,0,0,1325,1326,5,111,0,0,1326,1327,5,114,0,0,1327,266,1,0,0,0,1328,1329,5,102,0,0,1329,1330,5,97,0,0,1330,1331,5,108,0,0,1331,1332,5,108,0,0,1332,1333,5,98,0,0,1333,1334,5,97,0,0,1334,1335,5,99,0,0,1335,1336,5,107,0,0,1336,268,1,0,0,0,1337,1338,5,114,0,0,1338,1339,5,101,0,0,1339,1340,5,99,0,0,1340,1341,5,101,0,0,1341,1342,5,105,0,0,1342,1343,5,118,0,0,1343,1344,5,101,0,0,1344,270,1,0,0,0,1345,1349,3,273,136,0,1346,1348,3,275,137,0,1347,1346,1,0,0,0,1348,1351,1,0,0,0,1349,1347,1,0,0,0,1349,1350,1,0,0,0,1350,272,1,0,0,0,1351,1349,1,0,0,0,1352,1353,7,7,0,0,1353,274,1,0,0,0,1354,1355,7,8,0,0,1355,276,1,0,0,0,1356,1357,5,117,0,0,1357,1358,5,110,0,0,1358,1359,5,105,0,0,1359,1360,5,99,0,0,1360,1361,5,111,0,0,1361,1362,5,100,0,0,1362,1364,5,101,0,0,1363,1356,1,0,0,0,1363,1364,1,0,0,0,1364,1381,1,0,0,0,1365,1369,5,34,0,0,1366,1368,3,279,139,0,1367,1366,1,0,0,0,1368,1371,1,0,0,0,1369,1367,1,0,0,0,1369,1370,1,0,0,0,1370,1372,1,0,0,0,1371,1369,1,0,0,0,1372,1382,5,34,0,0,1373,1377,5,39,0,0,1374,1376,3,281,140,0,1375,1374,1,0,0,0,1376,1379,1,0,0,0,1377,1375,1,0,0,0,1377,1378,1,0,0,0,1378,1380,1,0,0,0,1379,1377,1,0,0,0,1380,1382,5,39,0,0,1381,1365,1,0,0,0,1381,1373,1,0,0,0,1382,278,1,0,0,0,1383,1387,8,9,0,0,1384,1385,5,92,0,0,1385,1387,9,0,0,0,1386,1383,1,0,0,0,1386,1384,1,0,0,0,1387,280,1,0,0,0,1388,1392,8,10,0,0,1389,1390,5,92,0,0,1390,1392,9,0,0,0,1391,1388,1,0,0,0,1391,1389,1,0,0,0,1392,282,1,0,0,0,1393,1395,7,0,0,0,1394,1393,1,0,0,0,1395,1396,1,0,0,0,1396,1394,1,0,0,0,1396,1397,1,0,0,0,1397,1398,1,0,0,0,1398,1400,5,46,0,0,1399,1401,7,0,0,0,1400,1399,1,0,0,0,1401,1402,1,0,0,0,1402,1400,1,0,0,0,1402,1403,1,0,0,0,1403,1410,1,0,0,0,1404,1406,5,46,0,0,1405,1407,7,0,0,0,1406,1405,1,0,0,0,1407,1408,1,0,0,0,1408,1406,1,0,0,0,1408,1409,1,0,0,0,1409,1411,1,0,0,0,1410,1404,1,0,0,0,1410,1411,1,0,0,0,1411,284,1,0,0,0,1412,1414,7,11,0,0,1413,1412,1,0,0,0,1414,1415,1,0,0,0,1415,1413,1,0,0,0,1415,1416,1,0,0,0,1416,1417,1,0,0,0,1417,1418,6,142,0,0,1418,286,1,0,0,0,1419,1420,5,47,0,0,1420,1421,5,42,0,0,1421,1425,1,0,0,0,1422,1424,9,0,0,0,1423,1422,1,0,0,0,1424,1427,1,0,0,0,1425,1426,1,0,0,0,1425,1423,1,0,0,0,1426,1428,1,0,0,0,1427,1425,1,0,0,0,1428,1429,5,42,0,0,1429,1430,5,47,0,0,1430,1431,1,0,0,0,1431,1432,6,143,1,0,1432,288,1,0,0,0,1433,1434,5,47,0,0,1434,1435,5,47,0,0,1435,1439,1,0,0,0,1436,1438,8,12,0,0,1437,1436,1,0,0,0,1438,1441,1,0,0,0,1439,1437,1,0,0,0,1439,1440,1,0,0,0,1440,1442,1,0,0,0,1441,1439,1,0,0,0,1442,1443,6,144,1,0,1443,290,1,0,0,0,38,0,737,745,754,767,769,783,785,870,877,888,892,896,900,903,907,912,921,926,985,993,998,1001,1175,1349,1363,1369,1377,1381,1386,1391,1396,1402,1408,1410,1415,1425,1439,2,6,0,0,0,1,0],G.DecisionsToDFA=G._ATN.decisionToState.map((i,c)=>new Oe(i,c));var Hy=G,k=class C extends oE{get grammarFileName(){return"Solidity.g4"}get literalNames(){return C.literalNames}get symbolicNames(){return C.symbolicNames}get ruleNames(){return C.ruleNames}get serializedATN(){return C._serializedATN}createFailedPredicateException(c,a){return new Nr(this,c,a)}constructor(c){super(c),this._interp=new aE(this,C._ATN,C.DecisionsToDFA,new Vy)}sourceUnit(){let c=new lE(this,this._ctx,this.state);this.enterRule(c,0,C.RULE_sourceUnit);let a;try{this.enterOuterAlt(c,1);{for(this.state=217,this._errHandler.sync(this),a=this._input.LA(1);(a&-32)===0&&(1<<a&507273218)!==0||(a-38&-32)===0&&(1<<a-38&2080392501)!==0||(a-97&-32)===0&&(1<<a-97&3498573949)!==0||(a-129&-32)===0&&(1<<a-129&7)!==0;){switch(this.state=215,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,0,this._ctx)){case 1:this.state=204,this.pragmaDirective();break;case 2:this.state=205,this.importDirective();break;case 3:this.state=206,this.contractDefinition();break;case 4:this.state=207,this.enumDefinition();break;case 5:this.state=208,this.eventDefinition();break;case 6:this.state=209,this.structDefinition();break;case 7:this.state=210,this.functionDefinition();break;case 8:this.state=211,this.fileLevelConstant();break;case 9:this.state=212,this.customErrorDefinition();break;case 10:this.state=213,this.typeDefinition();break;case 11:this.state=214,this.usingForDeclaration();break}this.state=219,this._errHandler.sync(this),a=this._input.LA(1)}this.state=220,this.match(C.EOF)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}pragmaDirective(){let c=new Td(this,this._ctx,this.state);this.enterRule(c,2,C.RULE_pragmaDirective);try{this.enterOuterAlt(c,1),this.state=222,this.match(C.T__0),this.state=223,this.pragmaName(),this.state=224,this.pragmaValue(),this.state=225,this.match(C.T__1)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}pragmaName(){let c=new qy(this,this._ctx,this.state);this.enterRule(c,4,C.RULE_pragmaName);try{this.enterOuterAlt(c,1),this.state=227,this.identifier()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}pragmaValue(){let c=new jy(this,this._ctx,this.state);this.enterRule(c,6,C.RULE_pragmaValue);try{switch(this.state=232,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,2,this._ctx)){case 1:this.enterOuterAlt(c,1),this.state=229,this.match(C.T__2);break;case 2:this.enterOuterAlt(c,2),this.state=230,this.version();break;case 3:this.enterOuterAlt(c,3),this.state=231,this.expression(0);break}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}version(){let c=new Gy(this,this._ctx,this.state);this.enterRule(c,8,C.RULE_version);let a;try{for(this.enterOuterAlt(c,1),this.state=234,this.versionConstraint(),this.state=241,this._errHandler.sync(this),a=this._input.LA(1);(a&-32)===0&&(1<<a&4080)!==0||a===105||a===133;)this.state=236,this._errHandler.sync(this),a=this._input.LA(1),a===4&&(this.state=235,this.match(C.T__3)),this.state=238,this.versionConstraint(),this.state=243,this._errHandler.sync(this),a=this._input.LA(1)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}versionOperator(){let c=new Wy(this,this._ctx,this.state);this.enterRule(c,10,C.RULE_versionOperator);let a;try{this.enterOuterAlt(c,1),this.state=244,a=this._input.LA(1),(a&-32)===0&&(1<<a&4064)!==0?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}versionConstraint(){let c=new Ad(this,this._ctx,this.state);this.enterRule(c,12,C.RULE_versionConstraint);let a;try{switch(this.state=254,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,7,this._ctx)){case 1:this.enterOuterAlt(c,1),this.state=247,this._errHandler.sync(this),a=this._input.LA(1),(a&-32)===0&&(1<<a&4064)!==0&&(this.state=246,this.versionOperator()),this.state=249,this.match(C.VersionLiteral);break;case 2:this.enterOuterAlt(c,2),this.state=251,this._errHandler.sync(this),a=this._input.LA(1),(a&-32)===0&&(1<<a&4064)!==0&&(this.state=250,this.versionOperator()),this.state=253,this.match(C.DecimalNumber);break}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}importDeclaration(){let c=new _d(this,this._ctx,this.state);this.enterRule(c,14,C.RULE_importDeclaration);let a;try{this.enterOuterAlt(c,1),this.state=256,this.identifier(),this.state=259,this._errHandler.sync(this),a=this._input.LA(1),a===12&&(this.state=257,this.match(C.T__11),this.state=258,this.identifier())}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}importDirective(){let c=new Kd(this,this._ctx,this.state);this.enterRule(c,16,C.RULE_importDirective);let a;try{switch(this.state=297,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,13,this._ctx)){case 1:this.enterOuterAlt(c,1),this.state=261,this.match(C.T__12),this.state=262,this.importPath(),this.state=265,this._errHandler.sync(this),a=this._input.LA(1),a===12&&(this.state=263,this.match(C.T__11),this.state=264,this.identifier()),this.state=267,this.match(C.T__1);break;case 2:this.enterOuterAlt(c,2);{switch(this.state=269,this.match(C.T__12),this.state=272,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=270,this.match(C.T__2);break;case 14:case 25:case 26:case 27:case 46:case 52:case 64:case 97:case 116:case 120:case 127:case 128:case 130:case 131:this.state=271,this.identifier();break;default:throw new Et(this)}this.state=276,this._errHandler.sync(this),a=this._input.LA(1),a===12&&(this.state=274,this.match(C.T__11),this.state=275,this.identifier()),this.state=278,this.match(C.T__13),this.state=279,this.importPath(),this.state=280,this.match(C.T__1)}break;case 3:this.enterOuterAlt(c,3);{for(this.state=282,this.match(C.T__12),this.state=283,this.match(C.T__14),this.state=284,this.importDeclaration(),this.state=289,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=285,this.match(C.T__15),this.state=286,this.importDeclaration(),this.state=291,this._errHandler.sync(this),a=this._input.LA(1);this.state=292,this.match(C.T__16),this.state=293,this.match(C.T__13),this.state=294,this.importPath(),this.state=295,this.match(C.T__1)}break}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}importPath(){let c=new zy(this,this._ctx,this.state);this.enterRule(c,18,C.RULE_importPath);try{this.enterOuterAlt(c,1),this.state=299,this.match(C.StringLiteralFragment)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}contractDefinition(){let c=new Fd(this,this._ctx,this.state);this.enterRule(c,20,C.RULE_contractDefinition);let a;try{this.enterOuterAlt(c,1);{if(this.state=302,this._errHandler.sync(this),a=this._input.LA(1),a===18&&(this.state=301,this.match(C.T__17)),this.state=304,a=this._input.LA(1),(a&-32)===0&&(1<<a&3670016)!==0?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=305,this.identifier(),this.state=307,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,15,this._ctx)===1&&(this.state=306,this.customStorageLayout()),this.state=318,this._errHandler.sync(this),a=this._input.LA(1),a===22)for(this.state=309,this.match(C.T__21),this.state=310,this.inheritanceSpecifier(),this.state=315,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=311,this.match(C.T__15),this.state=312,this.inheritanceSpecifier(),this.state=317,this._errHandler.sync(this),a=this._input.LA(1);for(this.state=321,this._errHandler.sync(this),a=this._input.LA(1),a===25&&(this.state=320,this.customStorageLayout()),this.state=323,this.match(C.T__14),this.state=327,this._errHandler.sync(this),a=this._input.LA(1);(a&-32)===0&&(1<<a&503332864)!==0||(a-38&-32)===0&&(1<<a-38&2080392503)!==0||(a-97&-32)===0&&(1<<a-97&3498573949)!==0||(a-129&-32)===0&&(1<<a-129&7)!==0;)this.state=324,this.contractPart(),this.state=329,this._errHandler.sync(this),a=this._input.LA(1);this.state=330,this.match(C.T__16)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}inheritanceSpecifier(){let c=new Nd(this,this._ctx,this.state);this.enterRule(c,22,C.RULE_inheritanceSpecifier);let a;try{this.enterOuterAlt(c,1),this.state=332,this.userDefinedTypeName(),this.state=338,this._errHandler.sync(this),a=this._input.LA(1),a===23&&(this.state=333,this.match(C.T__22),this.state=335,this._errHandler.sync(this),a=this._input.LA(1),((a-6&-32)===0&&(1<<a-6&205127937)!==0||(a-40&-32)===0&&(1<<a-40&4278194513)!==0||(a-73&-32)===0&&(1<<a-73&4244635651)!==0||(a-105&-32)===0&&(1<<a-105&248547339)!==0)&&(this.state=334,this.expressionList()),this.state=337,this.match(C.T__23))}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}customStorageLayout(){let c=new Pd(this,this._ctx,this.state);this.enterRule(c,24,C.RULE_customStorageLayout);try{this.enterOuterAlt(c,1),this.state=340,this.match(C.T__24),this.state=341,this.match(C.T__25),this.state=342,this.expression(0)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}contractPart(){let c=new kd(this,this._ctx,this.state);this.enterRule(c,26,C.RULE_contractPart);try{switch(this.state=353,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,22,this._ctx)){case 1:this.enterOuterAlt(c,1),this.state=344,this.stateVariableDeclaration();break;case 2:this.enterOuterAlt(c,2),this.state=345,this.usingForDeclaration();break;case 3:this.enterOuterAlt(c,3),this.state=346,this.structDefinition();break;case 4:this.enterOuterAlt(c,4),this.state=347,this.modifierDefinition();break;case 5:this.enterOuterAlt(c,5),this.state=348,this.functionDefinition();break;case 6:this.enterOuterAlt(c,6),this.state=349,this.eventDefinition();break;case 7:this.enterOuterAlt(c,7),this.state=350,this.enumDefinition();break;case 8:this.enterOuterAlt(c,8),this.state=351,this.customErrorDefinition();break;case 9:this.enterOuterAlt(c,9),this.state=352,this.typeDefinition();break}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}stateVariableDeclaration(){let c=new Qy(this,this._ctx,this.state);this.enterRule(c,28,C.RULE_stateVariableDeclaration);let a;try{this.enterOuterAlt(c,1);{for(this.state=355,this.typeName(0),this.state=365,this._errHandler.sync(this),a=this._input.LA(1);(a-98&-32)===0&&(1<<a-98&27377665)!==0;){switch(this.state=363,this._errHandler.sync(this),this._input.LA(1)){case 122:this.state=356,this.match(C.PublicKeyword);break;case 119:this.state=357,this.match(C.InternalKeyword);break;case 121:this.state=358,this.match(C.PrivateKeyword);break;case 112:this.state=359,this.match(C.ConstantKeyword);break;case 113:this.state=360,this.match(C.TransientKeyword);break;case 114:this.state=361,this.match(C.ImmutableKeyword);break;case 98:this.state=362,this.overrideSpecifier();break;default:throw new Et(this)}this.state=367,this._errHandler.sync(this),a=this._input.LA(1)}this.state=368,this.identifier(),this.state=371,this._errHandler.sync(this),a=this._input.LA(1),a===11&&(this.state=369,this.match(C.T__10),this.state=370,this.expression(0)),this.state=373,this.match(C.T__1)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}fileLevelConstant(){let c=new Ld(this,this._ctx,this.state);this.enterRule(c,30,C.RULE_fileLevelConstant);try{this.enterOuterAlt(c,1),this.state=375,this.typeName(0),this.state=376,this.match(C.ConstantKeyword),this.state=377,this.identifier(),this.state=378,this.match(C.T__10),this.state=379,this.expression(0),this.state=380,this.match(C.T__1)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}customErrorDefinition(){let c=new vl(this,this._ctx,this.state);this.enterRule(c,32,C.RULE_customErrorDefinition);try{this.enterOuterAlt(c,1),this.state=382,this.match(C.T__26),this.state=383,this.identifier(),this.state=384,this.parameterList(),this.state=385,this.match(C.T__1)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}typeDefinition(){let c=new Tl(this,this._ctx,this.state);this.enterRule(c,34,C.RULE_typeDefinition);try{this.enterOuterAlt(c,1),this.state=387,this.match(C.TypeKeyword),this.state=388,this.identifier(),this.state=389,this.match(C.T__21),this.state=390,this.elementaryTypeName(),this.state=391,this.match(C.T__1)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}usingForDeclaration(){let c=new Al(this,this._ctx,this.state);this.enterRule(c,36,C.RULE_usingForDeclaration);let a;try{this.enterOuterAlt(c,1);{switch(this.state=393,this.match(C.T__27),this.state=394,this.usingForObject(),this.state=395,this.match(C.T__28),this.state=398,this._errHandler.sync(this),this._input.LA(1)){case 3:this.state=396,this.match(C.T__2);break;case 14:case 25:case 26:case 27:case 40:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 97:case 99:case 100:case 101:case 102:case 103:case 116:case 120:case 127:case 128:case 130:case 131:this.state=397,this.typeName(0);break;default:throw new Et(this)}this.state=401,this._errHandler.sync(this),a=this._input.LA(1),a===127&&(this.state=400,this.match(C.GlobalKeyword)),this.state=403,this.match(C.T__1)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}usingForObject(){let c=new Xy(this,this._ctx,this.state);this.enterRule(c,38,C.RULE_usingForObject);let a;try{switch(this.state=417,this._errHandler.sync(this),this._input.LA(1)){case 14:case 25:case 26:case 27:case 46:case 52:case 64:case 97:case 116:case 120:case 127:case 128:case 130:case 131:this.enterOuterAlt(c,1),this.state=405,this.userDefinedTypeName();break;case 15:this.enterOuterAlt(c,2);{for(this.state=406,this.match(C.T__14),this.state=407,this.usingForObjectDirective(),this.state=412,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=408,this.match(C.T__15),this.state=409,this.usingForObjectDirective(),this.state=414,this._errHandler.sync(this),a=this._input.LA(1);this.state=415,this.match(C.T__16)}break;default:throw new Et(this)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}usingForObjectDirective(){let c=new Id(this,this._ctx,this.state);this.enterRule(c,40,C.RULE_usingForObjectDirective);let a;try{this.enterOuterAlt(c,1),this.state=419,this.userDefinedTypeName(),this.state=422,this._errHandler.sync(this),a=this._input.LA(1),a===12&&(this.state=420,this.match(C.T__11),this.state=421,this.userDefinableOperators())}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}userDefinableOperators(){let c=new Jy(this,this._ctx,this.state);this.enterRule(c,42,C.RULE_userDefinableOperators);let a;try{this.enterOuterAlt(c,1),this.state=424,a=this._input.LA(1),(a&-32)===0&&(1<<a&3221227496)!==0||(a-32&-32)===0&&(1<<a-32&63)!==0?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}structDefinition(){let c=new _l(this,this._ctx,this.state);this.enterRule(c,44,C.RULE_structDefinition);let a;try{this.enterOuterAlt(c,1);{if(this.state=426,this.match(C.T__37),this.state=427,this.identifier(),this.state=428,this.match(C.T__14),this.state=439,this._errHandler.sync(this),a=this._input.LA(1),(a&-32)===0&&(1<<a&234897408)!==0||(a-40&-32)===0&&(1<<a-40&520098113)!==0||(a-97&-32)===0&&(1<<a-97&3230138493)!==0||a===130||a===131)for(this.state=429,this.variableDeclaration(),this.state=430,this.match(C.T__1),this.state=436,this._errHandler.sync(this),a=this._input.LA(1);(a&-32)===0&&(1<<a&234897408)!==0||(a-40&-32)===0&&(1<<a-40&520098113)!==0||(a-97&-32)===0&&(1<<a-97&3230138493)!==0||a===130||a===131;)this.state=431,this.variableDeclaration(),this.state=432,this.match(C.T__1),this.state=438,this._errHandler.sync(this),a=this._input.LA(1);this.state=441,this.match(C.T__16)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}modifierDefinition(){let c=new Zy(this,this._ctx,this.state);this.enterRule(c,46,C.RULE_modifierDefinition);let a;try{this.enterOuterAlt(c,1);{for(this.state=443,this.match(C.T__38),this.state=444,this.identifier(),this.state=446,this._errHandler.sync(this),a=this._input.LA(1),a===23&&(this.state=445,this.parameterList()),this.state=452,this._errHandler.sync(this),a=this._input.LA(1);a===98||a===123;){switch(this.state=450,this._errHandler.sync(this),this._input.LA(1)){case 123:this.state=448,this.match(C.VirtualKeyword);break;case 98:this.state=449,this.overrideSpecifier();break;default:throw new Et(this)}this.state=454,this._errHandler.sync(this),a=this._input.LA(1)}switch(this.state=457,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=455,this.match(C.T__1);break;case 15:this.state=456,this.block();break;default:throw new Et(this)}}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}modifierInvocation(){let c=new Rd(this,this._ctx,this.state);this.enterRule(c,48,C.RULE_modifierInvocation);let a;try{this.enterOuterAlt(c,1),this.state=459,this.identifier(),this.state=465,this._errHandler.sync(this),a=this._input.LA(1),a===23&&(this.state=460,this.match(C.T__22),this.state=462,this._errHandler.sync(this),a=this._input.LA(1),((a-6&-32)===0&&(1<<a-6&205127937)!==0||(a-40&-32)===0&&(1<<a-40&4278194513)!==0||(a-73&-32)===0&&(1<<a-73&4244635651)!==0||(a-105&-32)===0&&(1<<a-105&248547339)!==0)&&(this.state=461,this.expressionList()),this.state=464,this.match(C.T__23))}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}functionDefinition(){let c=new Kl(this,this._ctx,this.state);this.enterRule(c,50,C.RULE_functionDefinition);let a;try{switch(this.enterOuterAlt(c,1),this.state=467,this.functionDescriptor(),this.state=468,this.parameterList(),this.state=469,this.modifierList(),this.state=471,this._errHandler.sync(this),a=this._input.LA(1),a===41&&(this.state=470,this.returnParameters()),this.state=475,this._errHandler.sync(this),this._input.LA(1)){case 2:this.state=473,this.match(C.T__1);break;case 15:this.state=474,this.block();break;default:throw new Et(this)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}functionDescriptor(){let c=new ew(this,this._ctx,this.state);this.enterRule(c,52,C.RULE_functionDescriptor);let a;try{switch(this.state=484,this._errHandler.sync(this),this._input.LA(1)){case 40:this.enterOuterAlt(c,1),this.state=477,this.match(C.T__39),this.state=479,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&3230138369)!==0||a===130||a===131)&&(this.state=478,this.identifier());break;case 128:this.enterOuterAlt(c,2),this.state=481,this.match(C.ConstructorKeyword);break;case 129:this.enterOuterAlt(c,3),this.state=482,this.match(C.FallbackKeyword);break;case 130:this.enterOuterAlt(c,4),this.state=483,this.match(C.ReceiveKeyword);break;default:throw new Et(this)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}returnParameters(){let c=new Od(this,this._ctx,this.state);this.enterRule(c,54,C.RULE_returnParameters);try{this.enterOuterAlt(c,1),this.state=486,this.match(C.T__40),this.state=487,this.parameterList()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}modifierList(){let c=new tw(this,this._ctx,this.state);this.enterRule(c,56,C.RULE_modifierList);let a;try{for(this.enterOuterAlt(c,1),this.state=499,this._errHandler.sync(this),a=this._input.LA(1);(a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&4023943171)!==0||a===130||a===131;){switch(this.state=497,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,43,this._ctx)){case 1:this.state=489,this.match(C.ExternalKeyword);break;case 2:this.state=490,this.match(C.PublicKeyword);break;case 3:this.state=491,this.match(C.InternalKeyword);break;case 4:this.state=492,this.match(C.PrivateKeyword);break;case 5:this.state=493,this.match(C.VirtualKeyword);break;case 6:this.state=494,this.stateMutability();break;case 7:this.state=495,this.modifierInvocation();break;case 8:this.state=496,this.overrideSpecifier();break}this.state=501,this._errHandler.sync(this),a=this._input.LA(1)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}eventDefinition(){let c=new Fl(this,this._ctx,this.state);this.enterRule(c,58,C.RULE_eventDefinition);let a;try{this.enterOuterAlt(c,1),this.state=502,this.match(C.T__41),this.state=503,this.identifier(),this.state=504,this.eventParameterList(),this.state=506,this._errHandler.sync(this),a=this._input.LA(1),a===110&&(this.state=505,this.match(C.AnonymousKeyword)),this.state=508,this.match(C.T__1)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}enumValue(){let c=new Md(this,this._ctx,this.state);this.enterRule(c,60,C.RULE_enumValue);try{this.enterOuterAlt(c,1),this.state=510,this.identifier()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}enumDefinition(){let c=new Nl(this,this._ctx,this.state);this.enterRule(c,62,C.RULE_enumDefinition);let a;try{this.enterOuterAlt(c,1);{for(this.state=512,this.match(C.T__42),this.state=513,this.identifier(),this.state=514,this.match(C.T__14),this.state=516,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&3230138369)!==0||a===130||a===131)&&(this.state=515,this.enumValue()),this.state=522,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=518,this.match(C.T__15),this.state=519,this.enumValue(),this.state=524,this._errHandler.sync(this),a=this._input.LA(1);this.state=525,this.match(C.T__16)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}parameterList(){let c=new os(this,this._ctx,this.state);this.enterRule(c,64,C.RULE_parameterList);let a;try{this.enterOuterAlt(c,1);{if(this.state=527,this.match(C.T__22),this.state=536,this._errHandler.sync(this),a=this._input.LA(1),(a&-32)===0&&(1<<a&234897408)!==0||(a-40&-32)===0&&(1<<a-40&520098113)!==0||(a-97&-32)===0&&(1<<a-97&3230138493)!==0||a===130||a===131)for(this.state=528,this.parameter(),this.state=533,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=529,this.match(C.T__15),this.state=530,this.parameter(),this.state=535,this._errHandler.sync(this),a=this._input.LA(1);this.state=538,this.match(C.T__23)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}parameter(){let c=new Yd(this,this._ctx,this.state);this.enterRule(c,66,C.RULE_parameter);let a;try{this.enterOuterAlt(c,1),this.state=540,this.typeName(0),this.state=542,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,50,this._ctx)===1&&(this.state=541,this.storageLocation()),this.state=545,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&3230138369)!==0||a===130||a===131)&&(this.state=544,this.identifier())}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}eventParameterList(){let c=new rw(this,this._ctx,this.state);this.enterRule(c,68,C.RULE_eventParameterList);let a;try{this.enterOuterAlt(c,1);{if(this.state=547,this.match(C.T__22),this.state=556,this._errHandler.sync(this),a=this._input.LA(1),(a&-32)===0&&(1<<a&234897408)!==0||(a-40&-32)===0&&(1<<a-40&520098113)!==0||(a-97&-32)===0&&(1<<a-97&3230138493)!==0||a===130||a===131)for(this.state=548,this.eventParameter(),this.state=553,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=549,this.match(C.T__15),this.state=550,this.eventParameter(),this.state=555,this._errHandler.sync(this),a=this._input.LA(1);this.state=558,this.match(C.T__23)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}eventParameter(){let c=new Bd(this,this._ctx,this.state);this.enterRule(c,70,C.RULE_eventParameter);let a;try{this.enterOuterAlt(c,1),this.state=560,this.typeName(0),this.state=562,this._errHandler.sync(this),a=this._input.LA(1),a===118&&(this.state=561,this.match(C.IndexedKeyword)),this.state=565,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&3230138369)!==0||a===130||a===131)&&(this.state=564,this.identifier())}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}functionTypeParameterList(){let c=new Ud(this,this._ctx,this.state);this.enterRule(c,72,C.RULE_functionTypeParameterList);let a;try{this.enterOuterAlt(c,1);{if(this.state=567,this.match(C.T__22),this.state=576,this._errHandler.sync(this),a=this._input.LA(1),(a&-32)===0&&(1<<a&234897408)!==0||(a-40&-32)===0&&(1<<a-40&520098113)!==0||(a-97&-32)===0&&(1<<a-97&3230138493)!==0||a===130||a===131)for(this.state=568,this.functionTypeParameter(),this.state=573,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=569,this.match(C.T__15),this.state=570,this.functionTypeParameter(),this.state=575,this._errHandler.sync(this),a=this._input.LA(1);this.state=578,this.match(C.T__23)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}functionTypeParameter(){let c=new Vd(this,this._ctx,this.state);this.enterRule(c,74,C.RULE_functionTypeParameter);let a;try{this.enterOuterAlt(c,1),this.state=580,this.typeName(0),this.state=582,this._errHandler.sync(this),a=this._input.LA(1),(a-50&-32)===0&&(1<<a-50&7)!==0&&(this.state=581,this.storageLocation())}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}variableDeclaration(){let c=new as(this,this._ctx,this.state);this.enterRule(c,76,C.RULE_variableDeclaration);try{this.enterOuterAlt(c,1),this.state=584,this.typeName(0),this.state=586,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,59,this._ctx)===1&&(this.state=585,this.storageLocation()),this.state=588,this.identifier()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}typeName(c){c===void 0&&(c=0);let a=this._ctx,w=this.state,q=new Pr(this,this._ctx,w),he=q,pe=78;this.enterRecursionRule(q,78,C.RULE_typeName,c);let le;try{let be;this.enterOuterAlt(q,1);{switch(this.state=597,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,60,this._ctx)){case 1:this.state=591,this.elementaryTypeName();break;case 2:this.state=592,this.userDefinedTypeName();break;case 3:this.state=593,this.mapping();break;case 4:this.state=594,this.functionTypeName();break;case 5:this.state=595,this.match(C.T__45),this.state=596,this.match(C.PayableKeyword);break}for(this._ctx.stop=this._input.LT(-1),this.state=607,this._errHandler.sync(this),be=this._interp.adaptivePredict(this._input,62,this._ctx);be!==2&&be!==$.INVALID_ALT_NUMBER;){if(be===1){this._parseListeners!=null&&this.triggerExitRuleEvent(),he=q;{if(q=new Pr(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_typeName),this.state=599,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=600,this.match(C.T__43),this.state=602,this._errHandler.sync(this),le=this._input.LA(1),((le-6&-32)===0&&(1<<le-6&205127937)!==0||(le-40&-32)===0&&(1<<le-40&4278194513)!==0||(le-73&-32)===0&&(1<<le-73&4244635651)!==0||(le-105&-32)===0&&(1<<le-105&248547339)!==0)&&(this.state=601,this.expression(0)),this.state=604,this.match(C.T__44)}}this.state=609,this._errHandler.sync(this),be=this._interp.adaptivePredict(this._input,62,this._ctx)}}}catch(be){if(be instanceof ne)q.exception=be,this._errHandler.reportError(this,be),this._errHandler.recover(this,be);else throw be}finally{this.unrollRecursionContexts(a)}return q}userDefinedTypeName(){let c=new Qi(this,this._ctx,this.state);this.enterRule(c,80,C.RULE_userDefinedTypeName);try{let a;for(this.enterOuterAlt(c,1),this.state=610,this.identifier(),this.state=615,this._errHandler.sync(this),a=this._interp.adaptivePredict(this._input,63,this._ctx);a!==2&&a!==$.INVALID_ALT_NUMBER;)a===1&&(this.state=611,this.match(C.T__46),this.state=612,this.identifier()),this.state=617,this._errHandler.sync(this),a=this._interp.adaptivePredict(this._input,63,this._ctx)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}mappingKey(){let c=new iw(this,this._ctx,this.state);this.enterRule(c,82,C.RULE_mappingKey);try{switch(this.state=620,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,64,this._ctx)){case 1:this.enterOuterAlt(c,1),this.state=618,this.elementaryTypeName();break;case 2:this.enterOuterAlt(c,2),this.state=619,this.userDefinedTypeName();break}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}mapping(){let c=new nw(this,this._ctx,this.state);this.enterRule(c,84,C.RULE_mapping);let a;try{this.enterOuterAlt(c,1),this.state=622,this.match(C.T__47),this.state=623,this.match(C.T__22),this.state=624,this.mappingKey(),this.state=626,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&3230138369)!==0||a===130||a===131)&&(this.state=625,this.mappingKeyName()),this.state=628,this.match(C.T__48),this.state=629,this.typeName(0),this.state=631,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&3230138369)!==0||a===130||a===131)&&(this.state=630,this.mappingValueName()),this.state=633,this.match(C.T__23)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}mappingKeyName(){let c=new sw(this,this._ctx,this.state);this.enterRule(c,86,C.RULE_mappingKeyName);try{this.enterOuterAlt(c,1),this.state=635,this.identifier()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}mappingValueName(){let c=new ow(this,this._ctx,this.state);this.enterRule(c,88,C.RULE_mappingValueName);try{this.enterOuterAlt(c,1),this.state=637,this.identifier()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}functionTypeName(){let c=new aw(this,this._ctx,this.state);this.enterRule(c,90,C.RULE_functionTypeName);try{let a;this.enterOuterAlt(c,1);{for(this.state=639,this.match(C.T__39),this.state=640,this.functionTypeParameterList(),this.state=646,this._errHandler.sync(this),a=this._interp.adaptivePredict(this._input,68,this._ctx);a!==2&&a!==$.INVALID_ALT_NUMBER;){if(a===1)switch(this.state=644,this._errHandler.sync(this),this._input.LA(1)){case 119:this.state=641,this.match(C.InternalKeyword);break;case 117:this.state=642,this.match(C.ExternalKeyword);break;case 112:case 120:case 124:case 126:this.state=643,this.stateMutability();break;default:throw new Et(this)}this.state=648,this._errHandler.sync(this),a=this._interp.adaptivePredict(this._input,68,this._ctx)}this.state=651,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,69,this._ctx)===1&&(this.state=649,this.match(C.T__40),this.state=650,this.functionTypeParameterList())}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}storageLocation(){let c=new Pl(this,this._ctx,this.state);this.enterRule(c,92,C.RULE_storageLocation);let a;try{this.enterOuterAlt(c,1),this.state=653,a=this._input.LA(1),(a-50&-32)===0&&(1<<a-50&7)!==0?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}stateMutability(){let c=new no(this,this._ctx,this.state);this.enterRule(c,94,C.RULE_stateMutability);let a;try{this.enterOuterAlt(c,1),this.state=655,a=this._input.LA(1),(a-112&-32)===0&&(1<<a-112&20737)!==0?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}block(){let c=new On(this,this._ctx,this.state);this.enterRule(c,96,C.RULE_block);let a;try{this.enterOuterAlt(c,1);{for(this.state=657,this.match(C.T__14),this.state=661,this._errHandler.sync(this),a=this._input.LA(1);(a-6&-32)===0&&(1<<a-6&213517057)!==0||(a-40&-32)===0&&(1<<a-40&4294881617)!==0||(a-73&-32)===0&&(1<<a-73&4244635651)!==0||(a-105&-32)===0&&(1<<a-105&248548427)!==0;)this.state=658,this.statement(),this.state=663,this._errHandler.sync(this),a=this._input.LA(1);this.state=664,this.match(C.T__16)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}statement(){let c=new Xi(this,this._ctx,this.state);this.enterRule(c,98,C.RULE_statement);try{switch(this.state=681,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,71,this._ctx)){case 1:this.enterOuterAlt(c,1),this.state=666,this.ifStatement();break;case 2:this.enterOuterAlt(c,2),this.state=667,this.tryStatement();break;case 3:this.enterOuterAlt(c,3),this.state=668,this.whileStatement();break;case 4:this.enterOuterAlt(c,4),this.state=669,this.forStatement();break;case 5:this.enterOuterAlt(c,5),this.state=670,this.block();break;case 6:this.enterOuterAlt(c,6),this.state=671,this.inlineAssemblyStatement();break;case 7:this.enterOuterAlt(c,7),this.state=672,this.doWhileStatement();break;case 8:this.enterOuterAlt(c,8),this.state=673,this.continueStatement();break;case 9:this.enterOuterAlt(c,9),this.state=674,this.breakStatement();break;case 10:this.enterOuterAlt(c,10),this.state=675,this.returnStatement();break;case 11:this.enterOuterAlt(c,11),this.state=676,this.throwStatement();break;case 12:this.enterOuterAlt(c,12),this.state=677,this.emitStatement();break;case 13:this.enterOuterAlt(c,13),this.state=678,this.simpleStatement();break;case 14:this.enterOuterAlt(c,14),this.state=679,this.uncheckedStatement();break;case 15:this.enterOuterAlt(c,15),this.state=680,this.revertStatement();break}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}expressionStatement(){let c=new $d(this,this._ctx,this.state);this.enterRule(c,100,C.RULE_expressionStatement);try{this.enterOuterAlt(c,1),this.state=683,this.expression(0),this.state=684,this.match(C.T__1)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}ifStatement(){let c=new lw(this,this._ctx,this.state);this.enterRule(c,102,C.RULE_ifStatement);try{this.enterOuterAlt(c,1),this.state=686,this.match(C.T__52),this.state=687,this.match(C.T__22),this.state=688,this.expression(0),this.state=689,this.match(C.T__23),this.state=690,this.statement(),this.state=693,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,72,this._ctx)===1&&(this.state=691,this.match(C.T__53),this.state=692,this.statement())}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}tryStatement(){let c=new uw(this,this._ctx,this.state);this.enterRule(c,104,C.RULE_tryStatement);let a;try{this.enterOuterAlt(c,1);{this.state=695,this.match(C.T__54),this.state=696,this.expression(0),this.state=698,this._errHandler.sync(this),a=this._input.LA(1),a===41&&(this.state=697,this.returnParameters()),this.state=700,this.block(),this.state=702,this._errHandler.sync(this),a=this._input.LA(1);do this.state=701,this.catchClause(),this.state=704,this._errHandler.sync(this),a=this._input.LA(1);while(a===56)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}catchClause(){let c=new Hd(this,this._ctx,this.state);this.enterRule(c,106,C.RULE_catchClause);let a;try{this.enterOuterAlt(c,1),this.state=706,this.match(C.T__55),this.state=711,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&243286016)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&3230138369)!==0||a===130||a===131)&&(this.state=708,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&3230138369)!==0||a===130||a===131)&&(this.state=707,this.identifier()),this.state=710,this.parameterList()),this.state=713,this.block()}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}whileStatement(){let c=new cw(this,this._ctx,this.state);this.enterRule(c,108,C.RULE_whileStatement);try{this.enterOuterAlt(c,1),this.state=715,this.match(C.T__56),this.state=716,this.match(C.T__22),this.state=717,this.expression(0),this.state=718,this.match(C.T__23),this.state=719,this.statement()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}simpleStatement(){let c=new qd(this,this._ctx,this.state);this.enterRule(c,110,C.RULE_simpleStatement);try{switch(this.enterOuterAlt(c,1),this.state=723,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,77,this._ctx)){case 1:this.state=721,this.variableDeclarationStatement();break;case 2:this.state=722,this.expressionStatement();break}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}uncheckedStatement(){let c=new hw(this,this._ctx,this.state);this.enterRule(c,112,C.RULE_uncheckedStatement);try{this.enterOuterAlt(c,1),this.state=725,this.match(C.T__57),this.state=726,this.block()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}forStatement(){let c=new pw(this,this._ctx,this.state);this.enterRule(c,114,C.RULE_forStatement);let a;try{this.enterOuterAlt(c,1);{switch(this.state=728,this.match(C.T__28),this.state=729,this.match(C.T__22),this.state=732,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.state=730,this.simpleStatement();break;case 2:this.state=731,this.match(C.T__1);break;default:throw new Et(this)}switch(this.state=736,this._errHandler.sync(this),this._input.LA(1)){case 6:case 14:case 23:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.state=734,this.expressionStatement();break;case 2:this.state=735,this.match(C.T__1);break;default:throw new Et(this)}this.state=739,this._errHandler.sync(this),a=this._input.LA(1),((a-6&-32)===0&&(1<<a-6&205127937)!==0||(a-40&-32)===0&&(1<<a-40&4278194513)!==0||(a-73&-32)===0&&(1<<a-73&4244635651)!==0||(a-105&-32)===0&&(1<<a-105&248547339)!==0)&&(this.state=738,this.expression(0)),this.state=741,this.match(C.T__23),this.state=742,this.statement()}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}inlineAssemblyStatement(){let c=new dw(this,this._ctx,this.state);this.enterRule(c,116,C.RULE_inlineAssemblyStatement);let a;try{this.enterOuterAlt(c,1),this.state=744,this.match(C.T__58),this.state=746,this._errHandler.sync(this),a=this._input.LA(1),a===132&&(this.state=745,this.match(C.StringLiteralFragment)),this.state=752,this._errHandler.sync(this),a=this._input.LA(1),a===23&&(this.state=748,this.match(C.T__22),this.state=749,this.inlineAssemblyStatementFlag(),this.state=750,this.match(C.T__23)),this.state=754,this.assemblyBlock()}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}inlineAssemblyStatementFlag(){let c=new mw(this,this._ctx,this.state);this.enterRule(c,118,C.RULE_inlineAssemblyStatementFlag);try{this.enterOuterAlt(c,1),this.state=756,this.stringLiteral()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}doWhileStatement(){let c=new fw(this,this._ctx,this.state);this.enterRule(c,120,C.RULE_doWhileStatement);try{this.enterOuterAlt(c,1),this.state=758,this.match(C.T__59),this.state=759,this.statement(),this.state=760,this.match(C.T__56),this.state=761,this.match(C.T__22),this.state=762,this.expression(0),this.state=763,this.match(C.T__23),this.state=764,this.match(C.T__1)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}continueStatement(){let c=new yw(this,this._ctx,this.state);this.enterRule(c,122,C.RULE_continueStatement);try{this.enterOuterAlt(c,1),this.state=766,this.match(C.ContinueKeyword),this.state=767,this.match(C.T__1)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}breakStatement(){let c=new ww(this,this._ctx,this.state);this.enterRule(c,124,C.RULE_breakStatement);try{this.enterOuterAlt(c,1),this.state=769,this.match(C.BreakKeyword),this.state=770,this.match(C.T__1)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}returnStatement(){let c=new gw(this,this._ctx,this.state);this.enterRule(c,126,C.RULE_returnStatement);let a;try{this.enterOuterAlt(c,1),this.state=772,this.match(C.T__60),this.state=774,this._errHandler.sync(this),a=this._input.LA(1),((a-6&-32)===0&&(1<<a-6&205127937)!==0||(a-40&-32)===0&&(1<<a-40&4278194513)!==0||(a-73&-32)===0&&(1<<a-73&4244635651)!==0||(a-105&-32)===0&&(1<<a-105&248547339)!==0)&&(this.state=773,this.expression(0)),this.state=776,this.match(C.T__1)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}throwStatement(){let c=new xw(this,this._ctx,this.state);this.enterRule(c,128,C.RULE_throwStatement);try{this.enterOuterAlt(c,1),this.state=778,this.match(C.T__61),this.state=779,this.match(C.T__1)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}emitStatement(){let c=new Dw(this,this._ctx,this.state);this.enterRule(c,130,C.RULE_emitStatement);try{this.enterOuterAlt(c,1),this.state=781,this.match(C.T__62),this.state=782,this.functionCall(),this.state=783,this.match(C.T__1)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}revertStatement(){let c=new bw(this,this._ctx,this.state);this.enterRule(c,132,C.RULE_revertStatement);try{this.enterOuterAlt(c,1),this.state=785,this.match(C.T__63),this.state=786,this.functionCall(),this.state=787,this.match(C.T__1)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}variableDeclarationStatement(){let c=new Ew(this,this._ctx,this.state);this.enterRule(c,134,C.RULE_variableDeclarationStatement);let a;try{this.enterOuterAlt(c,1);{switch(this.state=796,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,84,this._ctx)){case 1:this.state=789,this.match(C.T__64),this.state=790,this.identifierList();break;case 2:this.state=791,this.variableDeclaration();break;case 3:this.state=792,this.match(C.T__22),this.state=793,this.variableDeclarationList(),this.state=794,this.match(C.T__23);break}this.state=800,this._errHandler.sync(this),a=this._input.LA(1),a===11&&(this.state=798,this.match(C.T__10),this.state=799,this.expression(0)),this.state=802,this.match(C.T__1)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}variableDeclarationList(){let c=new Cw(this,this._ctx,this.state);this.enterRule(c,136,C.RULE_variableDeclarationList);let a;try{for(this.enterOuterAlt(c,1),this.state=805,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-40&-32)===0&&(1<<a-40&520098113)!==0||(a-97&-32)===0&&(1<<a-97&3230138493)!==0||a===130||a===131)&&(this.state=804,this.variableDeclaration()),this.state=813,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=807,this.match(C.T__15),this.state=809,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-40&-32)===0&&(1<<a-40&520098113)!==0||(a-97&-32)===0&&(1<<a-97&3230138493)!==0||a===130||a===131)&&(this.state=808,this.variableDeclaration()),this.state=815,this._errHandler.sync(this),a=this._input.LA(1)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}identifierList(){let c=new Sw(this,this._ctx,this.state);this.enterRule(c,138,C.RULE_identifierList);let a;try{let w;this.enterOuterAlt(c,1);{for(this.state=816,this.match(C.T__22),this.state=823,this._errHandler.sync(this),w=this._interp.adaptivePredict(this._input,90,this._ctx);w!==2&&w!==$.INVALID_ALT_NUMBER;)w===1&&(this.state=818,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&3230138369)!==0||a===130||a===131)&&(this.state=817,this.identifier()),this.state=820,this.match(C.T__15)),this.state=825,this._errHandler.sync(this),w=this._interp.adaptivePredict(this._input,90,this._ctx);this.state=827,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&3230138369)!==0||a===130||a===131)&&(this.state=826,this.identifier()),this.state=829,this.match(C.T__23)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}elementaryTypeName(){let c=new kl(this,this._ctx,this.state);this.enterRule(c,140,C.RULE_elementaryTypeName);let a;try{this.enterOuterAlt(c,1),this.state=831,a=this._input.LA(1),(a-46&-32)===0&&(1<<a-46&7864321)!==0||(a-99&-32)===0&&(1<<a-99&31)!==0?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}expression(c){c===void 0&&(c=0);let a=this._ctx,w=this.state,q=new Me(this,this._ctx,w),he=q,pe=142;this.enterRecursionRule(q,142,C.RULE_expression,c);let le;try{let be;this.enterOuterAlt(q,1);{switch(this.state=851,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,92,this._ctx)){case 1:this.state=834,this.match(C.T__70),this.state=835,this.typeName(0);break;case 2:this.state=836,this.match(C.T__22),this.state=837,this.expression(0),this.state=838,this.match(C.T__23);break;case 3:this.state=840,le=this._input.LA(1),le===69||le===70?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=841,this.expression(19);break;case 4:this.state=842,le=this._input.LA(1),le===32||le===33?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=843,this.expression(18);break;case 5:this.state=844,this.match(C.T__72),this.state=845,this.expression(17);break;case 6:this.state=846,this.match(C.T__73),this.state=847,this.expression(16);break;case 7:this.state=848,this.match(C.T__5),this.state=849,this.expression(15);break;case 8:this.state=850,this.primaryExpression();break}for(this._ctx.stop=this._input.LT(-1),this.state=927,this._errHandler.sync(this),be=this._interp.adaptivePredict(this._input,96,this._ctx);be!==2&&be!==$.INVALID_ALT_NUMBER;){if(be===1)switch(this._parseListeners!=null&&this.triggerExitRuleEvent(),he=q,this.state=925,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,95,this._ctx)){case 1:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=853,!this.precpred(this._ctx,14))throw this.createFailedPredicateException("this.precpred(this._ctx, 14)");this.state=854,this.match(C.T__74),this.state=855,this.expression(14)}break;case 2:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=856,!this.precpred(this._ctx,13))throw this.createFailedPredicateException("this.precpred(this._ctx, 13)");this.state=857,le=this._input.LA(1),le===3||le===34||le===35?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=858,this.expression(14)}break;case 3:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=859,!this.precpred(this._ctx,12))throw this.createFailedPredicateException("this.precpred(this._ctx, 12)");this.state=860,le=this._input.LA(1),le===32||le===33?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=861,this.expression(13)}break;case 4:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=862,!this.precpred(this._ctx,11))throw this.createFailedPredicateException("this.precpred(this._ctx, 11)");this.state=863,le=this._input.LA(1),le===76||le===77?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=864,this.expression(12)}break;case 5:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=865,!this.precpred(this._ctx,10))throw this.createFailedPredicateException("this.precpred(this._ctx, 10)");this.state=866,this.match(C.T__30),this.state=867,this.expression(11)}break;case 6:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=868,!this.precpred(this._ctx,9))throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");this.state=869,this.match(C.T__4),this.state=870,this.expression(10)}break;case 7:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=871,!this.precpred(this._ctx,8))throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");this.state=872,this.match(C.T__29),this.state=873,this.expression(9)}break;case 8:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=874,!this.precpred(this._ctx,7))throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");this.state=875,le=this._input.LA(1),(le&-32)===0&&(1<<le&1920)!==0?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=876,this.expression(8)}break;case 9:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=877,!this.precpred(this._ctx,6))throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");this.state=878,le=this._input.LA(1),le===36||le===37?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=879,this.expression(7)}break;case 10:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=880,!this.precpred(this._ctx,5))throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");this.state=881,this.match(C.T__77),this.state=882,this.expression(6)}break;case 11:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=883,!this.precpred(this._ctx,4))throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");this.state=884,this.match(C.T__3),this.state=885,this.expression(5)}break;case 12:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=886,!this.precpred(this._ctx,3))throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");this.state=887,this.match(C.T__78),this.state=888,this.expression(0),this.state=889,this.match(C.T__71),this.state=890,this.expression(3)}break;case 13:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=892,!this.precpred(this._ctx,2))throw this.createFailedPredicateException("this.precpred(this._ctx, 2)");this.state=893,le=this._input.LA(1),le===11||(le-80&-32)===0&&(1<<le-80&1023)!==0?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=894,this.expression(3)}break;case 14:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=895,!this.precpred(this._ctx,27))throw this.createFailedPredicateException("this.precpred(this._ctx, 27)");this.state=896,le=this._input.LA(1),le===69||le===70?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}break;case 15:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=897,!this.precpred(this._ctx,25))throw this.createFailedPredicateException("this.precpred(this._ctx, 25)");this.state=898,this.match(C.T__43),this.state=899,this.expression(0),this.state=900,this.match(C.T__44)}break;case 16:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=902,!this.precpred(this._ctx,24))throw this.createFailedPredicateException("this.precpred(this._ctx, 24)");this.state=903,this.match(C.T__43),this.state=905,this._errHandler.sync(this),le=this._input.LA(1),((le-6&-32)===0&&(1<<le-6&205127937)!==0||(le-40&-32)===0&&(1<<le-40&4278194513)!==0||(le-73&-32)===0&&(1<<le-73&4244635651)!==0||(le-105&-32)===0&&(1<<le-105&248547339)!==0)&&(this.state=904,this.expression(0)),this.state=907,this.match(C.T__71),this.state=909,this._errHandler.sync(this),le=this._input.LA(1),((le-6&-32)===0&&(1<<le-6&205127937)!==0||(le-40&-32)===0&&(1<<le-40&4278194513)!==0||(le-73&-32)===0&&(1<<le-73&4244635651)!==0||(le-105&-32)===0&&(1<<le-105&248547339)!==0)&&(this.state=908,this.expression(0)),this.state=911,this.match(C.T__44)}break;case 17:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=912,!this.precpred(this._ctx,23))throw this.createFailedPredicateException("this.precpred(this._ctx, 23)");this.state=913,this.match(C.T__46),this.state=914,this.identifier()}break;case 18:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=915,!this.precpred(this._ctx,22))throw this.createFailedPredicateException("this.precpred(this._ctx, 22)");this.state=916,this.match(C.T__14),this.state=917,this.nameValueList(),this.state=918,this.match(C.T__16)}break;case 19:{if(q=new Me(this,a,w),this.pushNewRecursionContext(q,pe,C.RULE_expression),this.state=920,!this.precpred(this._ctx,21))throw this.createFailedPredicateException("this.precpred(this._ctx, 21)");this.state=921,this.match(C.T__22),this.state=922,this.functionCallArguments(),this.state=923,this.match(C.T__23)}break}this.state=929,this._errHandler.sync(this),be=this._interp.adaptivePredict(this._input,96,this._ctx)}}}catch(be){if(be instanceof ne)q.exception=be,this._errHandler.reportError(this,be),this._errHandler.recover(this,be);else throw be}finally{this.unrollRecursionContexts(a)}return q}primaryExpression(){let c=new vw(this,this._ctx,this.state);this.enterRule(c,144,C.RULE_primaryExpression);try{switch(this.state=939,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,97,this._ctx)){case 1:this.enterOuterAlt(c,1),this.state=930,this.match(C.BooleanLiteral);break;case 2:this.enterOuterAlt(c,2),this.state=931,this.numberLiteral();break;case 3:this.enterOuterAlt(c,3),this.state=932,this.hexLiteral();break;case 4:this.enterOuterAlt(c,4),this.state=933,this.stringLiteral();break;case 5:this.enterOuterAlt(c,5),this.state=934,this.identifier();break;case 6:this.enterOuterAlt(c,6),this.state=935,this.match(C.TypeKeyword);break;case 7:this.enterOuterAlt(c,7),this.state=936,this.match(C.PayableKeyword);break;case 8:this.enterOuterAlt(c,8),this.state=937,this.tupleExpression();break;case 9:this.enterOuterAlt(c,9),this.state=938,this.typeName(0);break}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}expressionList(){let c=new Ll(this,this._ctx,this.state);this.enterRule(c,146,C.RULE_expressionList);let a;try{for(this.enterOuterAlt(c,1),this.state=941,this.expression(0),this.state=946,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=942,this.match(C.T__15),this.state=943,this.expression(0),this.state=948,this._errHandler.sync(this),a=this._input.LA(1)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}nameValueList(){let c=new jd(this,this._ctx,this.state);this.enterRule(c,148,C.RULE_nameValueList);let a;try{let w;this.enterOuterAlt(c,1);{for(this.state=949,this.nameValue(),this.state=954,this._errHandler.sync(this),w=this._interp.adaptivePredict(this._input,99,this._ctx);w!==2&&w!==$.INVALID_ALT_NUMBER;)w===1&&(this.state=950,this.match(C.T__15),this.state=951,this.nameValue()),this.state=956,this._errHandler.sync(this),w=this._interp.adaptivePredict(this._input,99,this._ctx);this.state=958,this._errHandler.sync(this),a=this._input.LA(1),a===16&&(this.state=957,this.match(C.T__15))}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}nameValue(){let c=new Gd(this,this._ctx,this.state);this.enterRule(c,150,C.RULE_nameValue);try{this.enterOuterAlt(c,1),this.state=960,this.identifier(),this.state=961,this.match(C.T__71),this.state=962,this.expression(0)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}functionCallArguments(){let c=new Wd(this,this._ctx,this.state);this.enterRule(c,152,C.RULE_functionCallArguments);let a;try{switch(this.state=972,this._errHandler.sync(this),this._input.LA(1)){case 15:this.enterOuterAlt(c,1),this.state=964,this.match(C.T__14),this.state=966,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&3230138369)!==0||a===130||a===131)&&(this.state=965,this.nameValueList()),this.state=968,this.match(C.T__16);break;case 6:case 14:case 23:case 24:case 25:case 26:case 27:case 32:case 33:case 40:case 44:case 46:case 48:case 52:case 64:case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 73:case 74:case 97:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 108:case 116:case 120:case 125:case 127:case 128:case 130:case 131:case 132:this.enterOuterAlt(c,2),this.state=970,this._errHandler.sync(this),a=this._input.LA(1),((a-6&-32)===0&&(1<<a-6&205127937)!==0||(a-40&-32)===0&&(1<<a-40&4278194513)!==0||(a-73&-32)===0&&(1<<a-73&4244635651)!==0||(a-105&-32)===0&&(1<<a-105&248547339)!==0)&&(this.state=969,this.expressionList());break;default:throw new Et(this)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}functionCall(){let c=new zd(this,this._ctx,this.state);this.enterRule(c,154,C.RULE_functionCall);try{this.enterOuterAlt(c,1),this.state=974,this.expression(0),this.state=975,this.match(C.T__22),this.state=976,this.functionCallArguments(),this.state=977,this.match(C.T__23)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}assemblyBlock(){let c=new Ji(this,this._ctx,this.state);this.enterRule(c,156,C.RULE_assemblyBlock);let a;try{this.enterOuterAlt(c,1);{for(this.state=979,this.match(C.T__14),this.state=983,this._errHandler.sync(this),a=this._input.LA(1);(a&-32)===0&&(1<<a&780189696)!==0||(a-40&-32)===0&&(1<<a-40&287322177)!==0||(a-90&-32)===0&&(1<<a-90&1176879241)!==0||(a-127&-32)===0&&(1<<a-127&59)!==0;)this.state=980,this.assemblyItem(),this.state=985,this._errHandler.sync(this),a=this._input.LA(1);this.state=986,this.match(C.T__16)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}assemblyItem(){let c=new Qd(this,this._ctx,this.state);this.enterRule(c,158,C.RULE_assemblyItem);try{switch(this.state=1005,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,105,this._ctx)){case 1:this.enterOuterAlt(c,1),this.state=988,this.identifier();break;case 2:this.enterOuterAlt(c,2),this.state=989,this.assemblyBlock();break;case 3:this.enterOuterAlt(c,3),this.state=990,this.assemblyExpression();break;case 4:this.enterOuterAlt(c,4),this.state=991,this.assemblyLocalDefinition();break;case 5:this.enterOuterAlt(c,5),this.state=992,this.assemblyAssignment();break;case 6:this.enterOuterAlt(c,6),this.state=993,this.assemblyStackAssignment();break;case 7:this.enterOuterAlt(c,7),this.state=994,this.labelDefinition();break;case 8:this.enterOuterAlt(c,8),this.state=995,this.assemblySwitch();break;case 9:this.enterOuterAlt(c,9),this.state=996,this.assemblyFunctionDefinition();break;case 10:this.enterOuterAlt(c,10),this.state=997,this.assemblyFor();break;case 11:this.enterOuterAlt(c,11),this.state=998,this.assemblyIf();break;case 12:this.enterOuterAlt(c,12),this.state=999,this.match(C.BreakKeyword);break;case 13:this.enterOuterAlt(c,13),this.state=1e3,this.match(C.ContinueKeyword);break;case 14:this.enterOuterAlt(c,14),this.state=1001,this.match(C.LeaveKeyword);break;case 15:this.enterOuterAlt(c,15),this.state=1002,this.numberLiteral();break;case 16:this.enterOuterAlt(c,16),this.state=1003,this.stringLiteral();break;case 17:this.enterOuterAlt(c,17),this.state=1004,this.hexLiteral();break}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}assemblyExpression(){let c=new Xr(this,this._ctx,this.state);this.enterRule(c,160,C.RULE_assemblyExpression);try{switch(this.state=1010,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,106,this._ctx)){case 1:this.enterOuterAlt(c,1),this.state=1007,this.assemblyCall();break;case 2:this.enterOuterAlt(c,2),this.state=1008,this.assemblyLiteral();break;case 3:this.enterOuterAlt(c,3),this.state=1009,this.assemblyMember();break}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}assemblyMember(){let c=new Xd(this,this._ctx,this.state);this.enterRule(c,162,C.RULE_assemblyMember);try{this.enterOuterAlt(c,1),this.state=1012,this.identifier(),this.state=1013,this.match(C.T__46),this.state=1014,this.identifier()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}assemblyCall(){let c=new Tw(this,this._ctx,this.state);this.enterRule(c,164,C.RULE_assemblyCall);let a;try{this.enterOuterAlt(c,1);{switch(this.state=1020,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,107,this._ctx)){case 1:this.state=1016,this.match(C.T__60);break;case 2:this.state=1017,this.match(C.T__45);break;case 3:this.state=1018,this.match(C.T__67);break;case 4:this.state=1019,this.identifier();break}switch(this.state=1034,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,110,this._ctx)){case 1:{for(this.state=1022,this.match(C.T__22),this.state=1024,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&4489281)!==0||(a-97&-32)===0&&(1<<a-97&3230141313)!==0||(a-130&-32)===0&&(1<<a-130&7)!==0)&&(this.state=1023,this.assemblyExpression()),this.state=1030,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=1026,this.match(C.T__15),this.state=1027,this.assemblyExpression(),this.state=1032,this._errHandler.sync(this),a=this._input.LA(1);this.state=1033,this.match(C.T__23)}break}}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}assemblyLocalDefinition(){let c=new Aw(this,this._ctx,this.state);this.enterRule(c,166,C.RULE_assemblyLocalDefinition);let a;try{this.enterOuterAlt(c,1),this.state=1036,this.match(C.T__89),this.state=1037,this.assemblyIdentifierOrList(),this.state=1040,this._errHandler.sync(this),a=this._input.LA(1),a===91&&(this.state=1038,this.match(C.T__90),this.state=1039,this.assemblyExpression())}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}assemblyAssignment(){let c=new _w(this,this._ctx,this.state);this.enterRule(c,168,C.RULE_assemblyAssignment);try{this.enterOuterAlt(c,1),this.state=1042,this.assemblyIdentifierOrList(),this.state=1043,this.match(C.T__90),this.state=1044,this.assemblyExpression()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}assemblyIdentifierOrList(){let c=new Jd(this,this._ctx,this.state);this.enterRule(c,170,C.RULE_assemblyIdentifierOrList);try{switch(this.state=1053,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,112,this._ctx)){case 1:this.enterOuterAlt(c,1),this.state=1046,this.identifier();break;case 2:this.enterOuterAlt(c,2),this.state=1047,this.assemblyMember();break;case 3:this.enterOuterAlt(c,3),this.state=1048,this.assemblyIdentifierList();break;case 4:this.enterOuterAlt(c,4),this.state=1049,this.match(C.T__22),this.state=1050,this.assemblyIdentifierList(),this.state=1051,this.match(C.T__23);break}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}assemblyIdentifierList(){let c=new Il(this,this._ctx,this.state);this.enterRule(c,172,C.RULE_assemblyIdentifierList);let a;try{for(this.enterOuterAlt(c,1),this.state=1055,this.identifier(),this.state=1060,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=1056,this.match(C.T__15),this.state=1057,this.identifier(),this.state=1062,this._errHandler.sync(this),a=this._input.LA(1)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}assemblyStackAssignment(){let c=new Kw(this,this._ctx,this.state);this.enterRule(c,174,C.RULE_assemblyStackAssignment);try{this.enterOuterAlt(c,1),this.state=1063,this.assemblyExpression(),this.state=1064,this.match(C.T__91),this.state=1065,this.identifier()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}labelDefinition(){let c=new Fw(this,this._ctx,this.state);this.enterRule(c,176,C.RULE_labelDefinition);try{this.enterOuterAlt(c,1),this.state=1067,this.identifier(),this.state=1068,this.match(C.T__71)}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}assemblySwitch(){let c=new Nw(this,this._ctx,this.state);this.enterRule(c,178,C.RULE_assemblySwitch);let a;try{for(this.enterOuterAlt(c,1),this.state=1070,this.match(C.T__92),this.state=1071,this.assemblyExpression(),this.state=1075,this._errHandler.sync(this),a=this._input.LA(1);a===94||a===95;)this.state=1072,this.assemblyCase(),this.state=1077,this._errHandler.sync(this),a=this._input.LA(1)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}assemblyCase(){let c=new Zd(this,this._ctx,this.state);this.enterRule(c,180,C.RULE_assemblyCase);try{switch(this.state=1084,this._errHandler.sync(this),this._input.LA(1)){case 94:this.enterOuterAlt(c,1),this.state=1078,this.match(C.T__93),this.state=1079,this.assemblyLiteral(),this.state=1080,this.assemblyBlock();break;case 95:this.enterOuterAlt(c,2),this.state=1082,this.match(C.T__94),this.state=1083,this.assemblyBlock();break;default:throw new Et(this)}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}assemblyFunctionDefinition(){let c=new Pw(this,this._ctx,this.state);this.enterRule(c,182,C.RULE_assemblyFunctionDefinition);let a;try{this.enterOuterAlt(c,1),this.state=1086,this.match(C.T__39),this.state=1087,this.identifier(),this.state=1088,this.match(C.T__22),this.state=1090,this._errHandler.sync(this),a=this._input.LA(1),((a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&3230138369)!==0||a===130||a===131)&&(this.state=1089,this.assemblyIdentifierList()),this.state=1092,this.match(C.T__23),this.state=1094,this._errHandler.sync(this),a=this._input.LA(1),a===96&&(this.state=1093,this.assemblyFunctionReturns()),this.state=1096,this.assemblyBlock()}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}assemblyFunctionReturns(){let c=new kw(this,this._ctx,this.state);this.enterRule(c,184,C.RULE_assemblyFunctionReturns);try{this.enterOuterAlt(c,1),this.state=1098,this.match(C.T__95),this.state=1099,this.assemblyIdentifierList()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}assemblyFor(){let c=new Lw(this,this._ctx,this.state);this.enterRule(c,186,C.RULE_assemblyFor);try{this.enterOuterAlt(c,1);{switch(this.state=1101,this.match(C.T__28),this.state=1104,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1102,this.assemblyBlock();break;case 14:case 25:case 26:case 27:case 46:case 52:case 61:case 64:case 68:case 97:case 104:case 105:case 106:case 108:case 116:case 120:case 127:case 128:case 130:case 131:case 132:this.state=1103,this.assemblyExpression();break;default:throw new Et(this)}switch(this.state=1106,this.assemblyExpression(),this.state=1109,this._errHandler.sync(this),this._input.LA(1)){case 15:this.state=1107,this.assemblyBlock();break;case 14:case 25:case 26:case 27:case 46:case 52:case 61:case 64:case 68:case 97:case 104:case 105:case 106:case 108:case 116:case 120:case 127:case 128:case 130:case 131:case 132:this.state=1108,this.assemblyExpression();break;default:throw new Et(this)}this.state=1111,this.assemblyBlock()}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}assemblyIf(){let c=new Iw(this,this._ctx,this.state);this.enterRule(c,188,C.RULE_assemblyIf);try{this.enterOuterAlt(c,1),this.state=1113,this.match(C.T__52),this.state=1114,this.assemblyExpression(),this.state=1115,this.assemblyBlock()}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}assemblyLiteral(){let c=new e1(this,this._ctx,this.state);this.enterRule(c,190,C.RULE_assemblyLiteral);try{switch(this.state=1122,this._errHandler.sync(this),this._input.LA(1)){case 132:this.enterOuterAlt(c,1),this.state=1117,this.stringLiteral();break;case 105:this.enterOuterAlt(c,2),this.state=1118,this.match(C.DecimalNumber);break;case 106:this.enterOuterAlt(c,3),this.state=1119,this.match(C.HexNumber);break;case 108:this.enterOuterAlt(c,4),this.state=1120,this.hexLiteral();break;case 104:this.enterOuterAlt(c,5),this.state=1121,this.match(C.BooleanLiteral);break;default:throw new Et(this)}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}tupleExpression(){let c=new Rw(this,this._ctx,this.state);this.enterRule(c,192,C.RULE_tupleExpression);let a;try{switch(this.state=1150,this._errHandler.sync(this),this._input.LA(1)){case 23:this.enterOuterAlt(c,1);{for(this.state=1124,this.match(C.T__22),this.state=1126,this._errHandler.sync(this),a=this._input.LA(1),((a-6&-32)===0&&(1<<a-6&205127937)!==0||(a-40&-32)===0&&(1<<a-40&4278194513)!==0||(a-73&-32)===0&&(1<<a-73&4244635651)!==0||(a-105&-32)===0&&(1<<a-105&248547339)!==0)&&(this.state=1125,this.expression(0)),this.state=1134,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=1128,this.match(C.T__15),this.state=1130,this._errHandler.sync(this),a=this._input.LA(1),((a-6&-32)===0&&(1<<a-6&205127937)!==0||(a-40&-32)===0&&(1<<a-40&4278194513)!==0||(a-73&-32)===0&&(1<<a-73&4244635651)!==0||(a-105&-32)===0&&(1<<a-105&248547339)!==0)&&(this.state=1129,this.expression(0)),this.state=1136,this._errHandler.sync(this),a=this._input.LA(1);this.state=1137,this.match(C.T__23)}break;case 44:this.enterOuterAlt(c,2);{if(this.state=1138,this.match(C.T__43),this.state=1147,this._errHandler.sync(this),a=this._input.LA(1),(a-6&-32)===0&&(1<<a-6&205127937)!==0||(a-40&-32)===0&&(1<<a-40&4278194513)!==0||(a-73&-32)===0&&(1<<a-73&4244635651)!==0||(a-105&-32)===0&&(1<<a-105&248547339)!==0)for(this.state=1139,this.expression(0),this.state=1144,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=1140,this.match(C.T__15),this.state=1141,this.expression(0),this.state=1146,this._errHandler.sync(this),a=this._input.LA(1);this.state=1149,this.match(C.T__44)}break;default:throw new Et(this)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}numberLiteral(){let c=new t1(this,this._ctx,this.state);this.enterRule(c,194,C.RULE_numberLiteral);let a;try{this.enterOuterAlt(c,1),this.state=1152,a=this._input.LA(1),a===105||a===106?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this),this.state=1154,this._errHandler.sync(this),this._interp.adaptivePredict(this._input,127,this._ctx)===1&&(this.state=1153,this.match(C.NumberUnit))}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}identifier(){let c=new Ie(this,this._ctx,this.state);this.enterRule(c,196,C.RULE_identifier);let a;try{this.enterOuterAlt(c,1),this.state=1156,a=this._input.LA(1),(a&-32)===0&&(1<<a&234897408)!==0||(a-46&-32)===0&&(1<<a-46&262209)!==0||(a-97&-32)===0&&(1<<a-97&3230138369)!==0||a===130||a===131?(this._errHandler.reportMatch(this),this.consume()):this._errHandler.recoverInline(this)}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}hexLiteral(){let c=new Rl(this,this._ctx,this.state);this.enterRule(c,198,C.RULE_hexLiteral);try{let a;this.enterOuterAlt(c,1);{this.state=1159,this._errHandler.sync(this),a=1;do{if(a===1)this.state=1158,this.match(C.HexLiteralFragment);else throw new Et(this);this.state=1161,this._errHandler.sync(this),a=this._interp.adaptivePredict(this._input,128,this._ctx)}while(a!==2&&a!==$.INVALID_ALT_NUMBER)}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}overrideSpecifier(){let c=new Mn(this,this._ctx,this.state);this.enterRule(c,200,C.RULE_overrideSpecifier);let a;try{if(this.enterOuterAlt(c,1),this.state=1163,this.match(C.T__97),this.state=1175,this._errHandler.sync(this),a=this._input.LA(1),a===23){for(this.state=1164,this.match(C.T__22),this.state=1165,this.userDefinedTypeName(),this.state=1170,this._errHandler.sync(this),a=this._input.LA(1);a===16;)this.state=1166,this.match(C.T__15),this.state=1167,this.userDefinedTypeName(),this.state=1172,this._errHandler.sync(this),a=this._input.LA(1);this.state=1173,this.match(C.T__23)}}catch(w){if(w instanceof ne)c.exception=w,this._errHandler.reportError(this,w),this._errHandler.recover(this,w);else throw w}finally{this.exitRule()}return c}stringLiteral(){let c=new so(this,this._ctx,this.state);this.enterRule(c,202,C.RULE_stringLiteral);try{let a;this.enterOuterAlt(c,1);{this.state=1178,this._errHandler.sync(this),a=1;do{if(a===1)this.state=1177,this.match(C.StringLiteralFragment);else throw new Et(this);this.state=1180,this._errHandler.sync(this),a=this._interp.adaptivePredict(this._input,131,this._ctx)}while(a!==2&&a!==$.INVALID_ALT_NUMBER)}}catch(a){if(a instanceof ne)c.exception=a,this._errHandler.reportError(this,a),this._errHandler.recover(this,a);else throw a}finally{this.exitRule()}return c}sempred(c,a,w){switch(a){case 39:return this.typeName_sempred(c,w);case 71:return this.expression_sempred(c,w)}return!0}typeName_sempred(c,a){return a===0?this.precpred(this._ctx,3):!0}expression_sempred(c,a){switch(a){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 C.__ATN||(C.__ATN=new V().deserialize(C._serializedATN)),C.__ATN}};k.T__0=1,k.T__1=2,k.T__2=3,k.T__3=4,k.T__4=5,k.T__5=6,k.T__6=7,k.T__7=8,k.T__8=9,k.T__9=10,k.T__10=11,k.T__11=12,k.T__12=13,k.T__13=14,k.T__14=15,k.T__15=16,k.T__16=17,k.T__17=18,k.T__18=19,k.T__19=20,k.T__20=21,k.T__21=22,k.T__22=23,k.T__23=24,k.T__24=25,k.T__25=26,k.T__26=27,k.T__27=28,k.T__28=29,k.T__29=30,k.T__30=31,k.T__31=32,k.T__32=33,k.T__33=34,k.T__34=35,k.T__35=36,k.T__36=37,k.T__37=38,k.T__38=39,k.T__39=40,k.T__40=41,k.T__41=42,k.T__42=43,k.T__43=44,k.T__44=45,k.T__45=46,k.T__46=47,k.T__47=48,k.T__48=49,k.T__49=50,k.T__50=51,k.T__51=52,k.T__52=53,k.T__53=54,k.T__54=55,k.T__55=56,k.T__56=57,k.T__57=58,k.T__58=59,k.T__59=60,k.T__60=61,k.T__61=62,k.T__62=63,k.T__63=64,k.T__64=65,k.T__65=66,k.T__66=67,k.T__67=68,k.T__68=69,k.T__69=70,k.T__70=71,k.T__71=72,k.T__72=73,k.T__73=74,k.T__74=75,k.T__75=76,k.T__76=77,k.T__77=78,k.T__78=79,k.T__79=80,k.T__80=81,k.T__81=82,k.T__82=83,k.T__83=84,k.T__84=85,k.T__85=86,k.T__86=87,k.T__87=88,k.T__88=89,k.T__89=90,k.T__90=91,k.T__91=92,k.T__92=93,k.T__93=94,k.T__94=95,k.T__95=96,k.T__96=97,k.T__97=98,k.Int=99,k.Uint=100,k.Byte=101,k.Fixed=102,k.Ufixed=103,k.BooleanLiteral=104,k.DecimalNumber=105,k.HexNumber=106,k.NumberUnit=107,k.HexLiteralFragment=108,k.ReservedKeyword=109,k.AnonymousKeyword=110,k.BreakKeyword=111,k.ConstantKeyword=112,k.TransientKeyword=113,k.ImmutableKeyword=114,k.ContinueKeyword=115,k.LeaveKeyword=116,k.ExternalKeyword=117,k.IndexedKeyword=118,k.InternalKeyword=119,k.PayableKeyword=120,k.PrivateKeyword=121,k.PublicKeyword=122,k.VirtualKeyword=123,k.PureKeyword=124,k.TypeKeyword=125,k.ViewKeyword=126,k.GlobalKeyword=127,k.ConstructorKeyword=128,k.FallbackKeyword=129,k.ReceiveKeyword=130,k.Identifier=131,k.StringLiteralFragment=132,k.VersionLiteral=133,k.WS=134,k.COMMENT=135,k.LINE_COMMENT=136,k.EOF=$y.EOF,k.RULE_sourceUnit=0,k.RULE_pragmaDirective=1,k.RULE_pragmaName=2,k.RULE_pragmaValue=3,k.RULE_version=4,k.RULE_versionOperator=5,k.RULE_versionConstraint=6,k.RULE_importDeclaration=7,k.RULE_importDirective=8,k.RULE_importPath=9,k.RULE_contractDefinition=10,k.RULE_inheritanceSpecifier=11,k.RULE_customStorageLayout=12,k.RULE_contractPart=13,k.RULE_stateVariableDeclaration=14,k.RULE_fileLevelConstant=15,k.RULE_customErrorDefinition=16,k.RULE_typeDefinition=17,k.RULE_usingForDeclaration=18,k.RULE_usingForObject=19,k.RULE_usingForObjectDirective=20,k.RULE_userDefinableOperators=21,k.RULE_structDefinition=22,k.RULE_modifierDefinition=23,k.RULE_modifierInvocation=24,k.RULE_functionDefinition=25,k.RULE_functionDescriptor=26,k.RULE_returnParameters=27,k.RULE_modifierList=28,k.RULE_eventDefinition=29,k.RULE_enumValue=30,k.RULE_enumDefinition=31,k.RULE_parameterList=32,k.RULE_parameter=33,k.RULE_eventParameterList=34,k.RULE_eventParameter=35,k.RULE_functionTypeParameterList=36,k.RULE_functionTypeParameter=37,k.RULE_variableDeclaration=38,k.RULE_typeName=39,k.RULE_userDefinedTypeName=40,k.RULE_mappingKey=41,k.RULE_mapping=42,k.RULE_mappingKeyName=43,k.RULE_mappingValueName=44,k.RULE_functionTypeName=45,k.RULE_storageLocation=46,k.RULE_stateMutability=47,k.RULE_block=48,k.RULE_statement=49,k.RULE_expressionStatement=50,k.RULE_ifStatement=51,k.RULE_tryStatement=52,k.RULE_catchClause=53,k.RULE_whileStatement=54,k.RULE_simpleStatement=55,k.RULE_uncheckedStatement=56,k.RULE_forStatement=57,k.RULE_inlineAssemblyStatement=58,k.RULE_inlineAssemblyStatementFlag=59,k.RULE_doWhileStatement=60,k.RULE_continueStatement=61,k.RULE_breakStatement=62,k.RULE_returnStatement=63,k.RULE_throwStatement=64,k.RULE_emitStatement=65,k.RULE_revertStatement=66,k.RULE_variableDeclarationStatement=67,k.RULE_variableDeclarationList=68,k.RULE_identifierList=69,k.RULE_elementaryTypeName=70,k.RULE_expression=71,k.RULE_primaryExpression=72,k.RULE_expressionList=73,k.RULE_nameValueList=74,k.RULE_nameValue=75,k.RULE_functionCallArguments=76,k.RULE_functionCall=77,k.RULE_assemblyBlock=78,k.RULE_assemblyItem=79,k.RULE_assemblyExpression=80,k.RULE_assemblyMember=81,k.RULE_assemblyCall=82,k.RULE_assemblyLocalDefinition=83,k.RULE_assemblyAssignment=84,k.RULE_assemblyIdentifierOrList=85,k.RULE_assemblyIdentifierList=86,k.RULE_assemblyStackAssignment=87,k.RULE_labelDefinition=88,k.RULE_assemblySwitch=89,k.RULE_assemblyCase=90,k.RULE_assemblyFunctionDefinition=91,k.RULE_assemblyFunctionReturns=92,k.RULE_assemblyFor=93,k.RULE_assemblyIf=94,k.RULE_assemblyLiteral=95,k.RULE_tupleExpression=96,k.RULE_numberLiteral=97,k.RULE_identifier=98,k.RULE_hexLiteral=99,k.RULE_overrideSpecifier=100,k.RULE_stringLiteral=101,k.literalNames=[null,"'pragma'","';'","'*'","'||'","'^'","'~'","'>='","'>'","'<'","'<='","'='","'as'","'import'","'from'","'{'","','","'}'","'abstract'","'contract'","'interface'","'library'","'is'","'('","')'","'layout'","'at'","'error'","'using'","'for'","'|'","'&'","'+'","'-'","'/'","'%'","'=='","'!='","'struct'","'modifier'","'function'","'returns'","'event'","'enum'","'['","']'","'address'","'.'","'mapping'","'=>'","'memory'","'storage'","'calldata'","'if'","'else'","'try'","'catch'","'while'","'unchecked'","'assembly'","'do'","'return'","'throw'","'emit'","'revert'","'var'","'bool'","'string'","'byte'","'++'","'--'","'new'","':'","'delete'","'!'","'**'","'<<'","'>>'","'&&'","'?'","'|='","'^='","'&='","'<<='","'>>='","'+='","'-='","'*='","'/='","'%='","'let'","':='","'=:'","'switch'","'case'","'default'","'->'","'callback'","'override'",null,null,null,null,null,null,null,null,null,null,null,"'anonymous'","'break'","'constant'","'transient'","'immutable'","'continue'","'leave'","'external'","'indexed'","'internal'","'payable'","'private'","'public'","'virtual'","'pure'","'type'","'view'","'global'","'constructor'","'fallback'","'receive'"],k.symbolicNames=[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Int","Uint","Byte","Fixed","Ufixed","BooleanLiteral","DecimalNumber","HexNumber","NumberUnit","HexLiteralFragment","ReservedKeyword","AnonymousKeyword","BreakKeyword","ConstantKeyword","TransientKeyword","ImmutableKeyword","ContinueKeyword","LeaveKeyword","ExternalKeyword","IndexedKeyword","InternalKeyword","PayableKeyword","PrivateKeyword","PublicKeyword","VirtualKeyword","PureKeyword","TypeKeyword","ViewKeyword","GlobalKeyword","ConstructorKeyword","FallbackKeyword","ReceiveKeyword","Identifier","StringLiteralFragment","VersionLiteral","WS","COMMENT","LINE_COMMENT"],k.ruleNames=["sourceUnit","pragmaDirective","pragmaName","pragmaValue","version","versionOperator","versionConstraint","importDeclaration","importDirective","importPath","contractDefinition","inheritanceSpecifier","customStorageLayout","contractPart","stateVariableDeclaration","fileLevelConstant","customErrorDefinition","typeDefinition","usingForDeclaration","usingForObject","usingForObjectDirective","userDefinableOperators","structDefinition","modifierDefinition","modifierInvocation","functionDefinition","functionDescriptor","returnParameters","modifierList","eventDefinition","enumValue","enumDefinition","parameterList","parameter","eventParameterList","eventParameter","functionTypeParameterList","functionTypeParameter","variableDeclaration","typeName","userDefinedTypeName","mappingKey","mapping","mappingKeyName","mappingValueName","functionTypeName","storageLocation","stateMutability","block","statement","expressionStatement","ifStatement","tryStatement","catchClause","whileStatement","simpleStatement","uncheckedStatement","forStatement","inlineAssemblyStatement","inlineAssemblyStatementFlag","doWhileStatement","continueStatement","breakStatement","returnStatement","throwStatement","emitStatement","revertStatement","variableDeclarationStatement","variableDeclarationList","identifierList","elementaryTypeName","expression","primaryExpression","expressionList","nameValueList","nameValue","functionCallArguments","functionCall","assemblyBlock","assemblyItem","assemblyExpression","assemblyMember","assemblyCall","assemblyLocalDefinition","assemblyAssignment","assemblyIdentifierOrList","assemblyIdentifierList","assemblyStackAssignment","labelDefinition","assemblySwitch","assemblyCase","assemblyFunctionDefinition","assemblyFunctionReturns","assemblyFor","assemblyIf","assemblyLiteral","tupleExpression","numberLiteral","identifier","hexLiteral","overrideSpecifier","stringLiteral"],k._serializedATN=[4,1,136,1183,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,7,28,2,29,7,29,2,30,7,30,2,31,7,31,2,32,7,32,2,33,7,33,2,34,7,34,2,35,7,35,2,36,7,36,2,37,7,37,2,38,7,38,2,39,7,39,2,40,7,40,2,41,7,41,2,42,7,42,2,43,7,43,2,44,7,44,2,45,7,45,2,46,7,46,2,47,7,47,2,48,7,48,2,49,7,49,2,50,7,50,2,51,7,51,2,52,7,52,2,53,7,53,2,54,7,54,2,55,7,55,2,56,7,56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,2,63,7,63,2,64,7,64,2,65,7,65,2,66,7,66,2,67,7,67,2,68,7,68,2,69,7,69,2,70,7,70,2,71,7,71,2,72,7,72,2,73,7,73,2,74,7,74,2,75,7,75,2,76,7,76,2,77,7,77,2,78,7,78,2,79,7,79,2,80,7,80,2,81,7,81,2,82,7,82,2,83,7,83,2,84,7,84,2,85,7,85,2,86,7,86,2,87,7,87,2,88,7,88,2,89,7,89,2,90,7,90,2,91,7,91,2,92,7,92,2,93,7,93,2,94,7,94,2,95,7,95,2,96,7,96,2,97,7,97,2,98,7,98,2,99,7,99,2,100,7,100,2,101,7,101,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,5,0,216,8,0,10,0,12,0,219,9,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,2,1,2,1,3,1,3,1,3,3,3,233,8,3,1,4,1,4,3,4,237,8,4,1,4,5,4,240,8,4,10,4,12,4,243,9,4,1,5,1,5,1,6,3,6,248,8,6,1,6,1,6,3,6,252,8,6,1,6,3,6,255,8,6,1,7,1,7,1,7,3,7,260,8,7,1,8,1,8,1,8,1,8,3,8,266,8,8,1,8,1,8,1,8,1,8,1,8,3,8,273,8,8,1,8,1,8,3,8,277,8,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,8,5,8,288,8,8,10,8,12,8,291,9,8,1,8,1,8,1,8,1,8,1,8,3,8,298,8,8,1,9,1,9,1,10,3,10,303,8,10,1,10,1,10,1,10,3,10,308,8,10,1,10,1,10,1,10,1,10,5,10,314,8,10,10,10,12,10,317,9,10,3,10,319,8,10,1,10,3,10,322,8,10,1,10,1,10,5,10,326,8,10,10,10,12,10,329,9,10,1,10,1,10,1,11,1,11,1,11,3,11,336,8,11,1,11,3,11,339,8,11,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,13,3,13,354,8,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,14,5,14,364,8,14,10,14,12,14,367,9,14,1,14,1,14,1,14,3,14,372,8,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,3,18,399,8,18,1,18,3,18,402,8,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,5,19,411,8,19,10,19,12,19,414,9,19,1,19,1,19,3,19,418,8,19,1,20,1,20,1,20,3,20,423,8,20,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,5,22,435,8,22,10,22,12,22,438,9,22,3,22,440,8,22,1,22,1,22,1,23,1,23,1,23,3,23,447,8,23,1,23,1,23,5,23,451,8,23,10,23,12,23,454,9,23,1,23,1,23,3,23,458,8,23,1,24,1,24,1,24,3,24,463,8,24,1,24,3,24,466,8,24,1,25,1,25,1,25,1,25,3,25,472,8,25,1,25,1,25,3,25,476,8,25,1,26,1,26,3,26,480,8,26,1,26,1,26,1,26,3,26,485,8,26,1,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,5,28,498,8,28,10,28,12,28,501,9,28,1,29,1,29,1,29,1,29,3,29,507,8,29,1,29,1,29,1,30,1,30,1,31,1,31,1,31,1,31,3,31,517,8,31,1,31,1,31,5,31,521,8,31,10,31,12,31,524,9,31,1,31,1,31,1,32,1,32,1,32,1,32,5,32,532,8,32,10,32,12,32,535,9,32,3,32,537,8,32,1,32,1,32,1,33,1,33,3,33,543,8,33,1,33,3,33,546,8,33,1,34,1,34,1,34,1,34,5,34,552,8,34,10,34,12,34,555,9,34,3,34,557,8,34,1,34,1,34,1,35,1,35,3,35,563,8,35,1,35,3,35,566,8,35,1,36,1,36,1,36,1,36,5,36,572,8,36,10,36,12,36,575,9,36,3,36,577,8,36,1,36,1,36,1,37,1,37,3,37,583,8,37,1,38,1,38,3,38,587,8,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,39,1,39,3,39,598,8,39,1,39,1,39,1,39,3,39,603,8,39,1,39,5,39,606,8,39,10,39,12,39,609,9,39,1,40,1,40,1,40,5,40,614,8,40,10,40,12,40,617,9,40,1,41,1,41,3,41,621,8,41,1,42,1,42,1,42,1,42,3,42,627,8,42,1,42,1,42,1,42,3,42,632,8,42,1,42,1,42,1,43,1,43,1,44,1,44,1,45,1,45,1,45,1,45,1,45,5,45,645,8,45,10,45,12,45,648,9,45,1,45,1,45,3,45,652,8,45,1,46,1,46,1,47,1,47,1,48,1,48,5,48,660,8,48,10,48,12,48,663,9,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,3,49,682,8,49,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,694,8,51,1,52,1,52,1,52,3,52,699,8,52,1,52,1,52,4,52,703,8,52,11,52,12,52,704,1,53,1,53,3,53,709,8,53,1,53,3,53,712,8,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,3,55,724,8,55,1,56,1,56,1,56,1,57,1,57,1,57,1,57,3,57,733,8,57,1,57,1,57,3,57,737,8,57,1,57,3,57,740,8,57,1,57,1,57,1,57,1,58,1,58,3,58,747,8,58,1,58,1,58,1,58,1,58,3,58,753,8,58,1,58,1,58,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,62,1,62,1,62,1,63,1,63,3,63,775,8,63,1,63,1,63,1,64,1,64,1,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,1,67,1,67,3,67,797,8,67,1,67,1,67,3,67,801,8,67,1,67,1,67,1,68,3,68,806,8,68,1,68,1,68,3,68,810,8,68,5,68,812,8,68,10,68,12,68,815,9,68,1,69,1,69,3,69,819,8,69,1,69,5,69,822,8,69,10,69,12,69,825,9,69,1,69,3,69,828,8,69,1,69,1,69,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,852,8,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,3,71,906,8,71,1,71,1,71,3,71,910,8,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,1,71,5,71,926,8,71,10,71,12,71,929,9,71,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,3,72,940,8,72,1,73,1,73,1,73,5,73,945,8,73,10,73,12,73,948,9,73,1,74,1,74,1,74,5,74,953,8,74,10,74,12,74,956,9,74,1,74,3,74,959,8,74,1,75,1,75,1,75,1,75,1,76,1,76,3,76,967,8,76,1,76,1,76,3,76,971,8,76,3,76,973,8,76,1,77,1,77,1,77,1,77,1,77,1,78,1,78,5,78,982,8,78,10,78,12,78,985,9,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,3,79,1006,8,79,1,80,1,80,1,80,3,80,1011,8,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,3,82,1021,8,82,1,82,1,82,3,82,1025,8,82,1,82,1,82,5,82,1029,8,82,10,82,12,82,1032,9,82,1,82,3,82,1035,8,82,1,83,1,83,1,83,1,83,3,83,1041,8,83,1,84,1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,3,85,1054,8,85,1,86,1,86,1,86,5,86,1059,8,86,10,86,12,86,1062,9,86,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,89,1,89,1,89,5,89,1074,8,89,10,89,12,89,1077,9,89,1,90,1,90,1,90,1,90,1,90,1,90,3,90,1085,8,90,1,91,1,91,1,91,1,91,3,91,1091,8,91,1,91,1,91,3,91,1095,8,91,1,91,1,91,1,92,1,92,1,92,1,93,1,93,1,93,3,93,1105,8,93,1,93,1,93,1,93,3,93,1110,8,93,1,93,1,93,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95,3,95,1123,8,95,1,96,1,96,3,96,1127,8,96,1,96,1,96,3,96,1131,8,96,5,96,1133,8,96,10,96,12,96,1136,9,96,1,96,1,96,1,96,1,96,1,96,5,96,1143,8,96,10,96,12,96,1146,9,96,3,96,1148,8,96,1,96,3,96,1151,8,96,1,97,1,97,3,97,1155,8,97,1,98,1,98,1,99,4,99,1160,8,99,11,99,12,99,1161,1,100,1,100,1,100,1,100,1,100,5,100,1169,8,100,10,100,12,100,1172,9,100,1,100,1,100,3,100,1176,8,100,1,101,4,101,1179,8,101,11,101,12,101,1180,1,101,0,2,78,142,102,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,192,194,196,198,200,202,0,15,1,0,5,11,1,0,19,21,3,0,3,3,5,10,30,37,1,0,50,52,4,0,112,112,120,120,124,124,126,126,3,0,46,46,65,68,99,103,1,0,69,70,1,0,32,33,2,0,3,3,34,35,1,0,76,77,1,0,7,10,1,0,36,37,2,0,11,11,80,89,1,0,105,106,10,0,14,14,25,27,46,46,52,52,64,64,97,97,116,116,120,120,127,128,130,131,1314,0,217,1,0,0,0,2,222,1,0,0,0,4,227,1,0,0,0,6,232,1,0,0,0,8,234,1,0,0,0,10,244,1,0,0,0,12,254,1,0,0,0,14,256,1,0,0,0,16,297,1,0,0,0,18,299,1,0,0,0,20,302,1,0,0,0,22,332,1,0,0,0,24,340,1,0,0,0,26,353,1,0,0,0,28,355,1,0,0,0,30,375,1,0,0,0,32,382,1,0,0,0,34,387,1,0,0,0,36,393,1,0,0,0,38,417,1,0,0,0,40,419,1,0,0,0,42,424,1,0,0,0,44,426,1,0,0,0,46,443,1,0,0,0,48,459,1,0,0,0,50,467,1,0,0,0,52,484,1,0,0,0,54,486,1,0,0,0,56,499,1,0,0,0,58,502,1,0,0,0,60,510,1,0,0,0,62,512,1,0,0,0,64,527,1,0,0,0,66,540,1,0,0,0,68,547,1,0,0,0,70,560,1,0,0,0,72,567,1,0,0,0,74,580,1,0,0,0,76,584,1,0,0,0,78,597,1,0,0,0,80,610,1,0,0,0,82,620,1,0,0,0,84,622,1,0,0,0,86,635,1,0,0,0,88,637,1,0,0,0,90,639,1,0,0,0,92,653,1,0,0,0,94,655,1,0,0,0,96,657,1,0,0,0,98,681,1,0,0,0,100,683,1,0,0,0,102,686,1,0,0,0,104,695,1,0,0,0,106,706,1,0,0,0,108,715,1,0,0,0,110,723,1,0,0,0,112,725,1,0,0,0,114,728,1,0,0,0,116,744,1,0,0,0,118,756,1,0,0,0,120,758,1,0,0,0,122,766,1,0,0,0,124,769,1,0,0,0,126,772,1,0,0,0,128,778,1,0,0,0,130,781,1,0,0,0,132,785,1,0,0,0,134,796,1,0,0,0,136,805,1,0,0,0,138,816,1,0,0,0,140,831,1,0,0,0,142,851,1,0,0,0,144,939,1,0,0,0,146,941,1,0,0,0,148,949,1,0,0,0,150,960,1,0,0,0,152,972,1,0,0,0,154,974,1,0,0,0,156,979,1,0,0,0,158,1005,1,0,0,0,160,1010,1,0,0,0,162,1012,1,0,0,0,164,1020,1,0,0,0,166,1036,1,0,0,0,168,1042,1,0,0,0,170,1053,1,0,0,0,172,1055,1,0,0,0,174,1063,1,0,0,0,176,1067,1,0,0,0,178,1070,1,0,0,0,180,1084,1,0,0,0,182,1086,1,0,0,0,184,1098,1,0,0,0,186,1101,1,0,0,0,188,1113,1,0,0,0,190,1122,1,0,0,0,192,1150,1,0,0,0,194,1152,1,0,0,0,196,1156,1,0,0,0,198,1159,1,0,0,0,200,1163,1,0,0,0,202,1178,1,0,0,0,204,216,3,2,1,0,205,216,3,16,8,0,206,216,3,20,10,0,207,216,3,62,31,0,208,216,3,58,29,0,209,216,3,44,22,0,210,216,3,50,25,0,211,216,3,30,15,0,212,216,3,32,16,0,213,216,3,34,17,0,214,216,3,36,18,0,215,204,1,0,0,0,215,205,1,0,0,0,215,206,1,0,0,0,215,207,1,0,0,0,215,208,1,0,0,0,215,209,1,0,0,0,215,210,1,0,0,0,215,211,1,0,0,0,215,212,1,0,0,0,215,213,1,0,0,0,215,214,1,0,0,0,216,219,1,0,0,0,217,215,1,0,0,0,217,218,1,0,0,0,218,220,1,0,0,0,219,217,1,0,0,0,220,221,5,0,0,1,221,1,1,0,0,0,222,223,5,1,0,0,223,224,3,4,2,0,224,225,3,6,3,0,225,226,5,2,0,0,226,3,1,0,0,0,227,228,3,196,98,0,228,5,1,0,0,0,229,233,5,3,0,0,230,233,3,8,4,0,231,233,3,142,71,0,232,229,1,0,0,0,232,230,1,0,0,0,232,231,1,0,0,0,233,7,1,0,0,0,234,241,3,12,6,0,235,237,5,4,0,0,236,235,1,0,0,0,236,237,1,0,0,0,237,238,1,0,0,0,238,240,3,12,6,0,239,236,1,0,0,0,240,243,1,0,0,0,241,239,1,0,0,0,241,242,1,0,0,0,242,9,1,0,0,0,243,241,1,0,0,0,244,245,7,0,0,0,245,11,1,0,0,0,246,248,3,10,5,0,247,246,1,0,0,0,247,248,1,0,0,0,248,249,1,0,0,0,249,255,5,133,0,0,250,252,3,10,5,0,251,250,1,0,0,0,251,252,1,0,0,0,252,253,1,0,0,0,253,255,5,105,0,0,254,247,1,0,0,0,254,251,1,0,0,0,255,13,1,0,0,0,256,259,3,196,98,0,257,258,5,12,0,0,258,260,3,196,98,0,259,257,1,0,0,0,259,260,1,0,0,0,260,15,1,0,0,0,261,262,5,13,0,0,262,265,3,18,9,0,263,264,5,12,0,0,264,266,3,196,98,0,265,263,1,0,0,0,265,266,1,0,0,0,266,267,1,0,0,0,267,268,5,2,0,0,268,298,1,0,0,0,269,272,5,13,0,0,270,273,5,3,0,0,271,273,3,196,98,0,272,270,1,0,0,0,272,271,1,0,0,0,273,276,1,0,0,0,274,275,5,12,0,0,275,277,3,196,98,0,276,274,1,0,0,0,276,277,1,0,0,0,277,278,1,0,0,0,278,279,5,14,0,0,279,280,3,18,9,0,280,281,5,2,0,0,281,298,1,0,0,0,282,283,5,13,0,0,283,284,5,15,0,0,284,289,3,14,7,0,285,286,5,16,0,0,286,288,3,14,7,0,287,285,1,0,0,0,288,291,1,0,0,0,289,287,1,0,0,0,289,290,1,0,0,0,290,292,1,0,0,0,291,289,1,0,0,0,292,293,5,17,0,0,293,294,5,14,0,0,294,295,3,18,9,0,295,296,5,2,0,0,296,298,1,0,0,0,297,261,1,0,0,0,297,269,1,0,0,0,297,282,1,0,0,0,298,17,1,0,0,0,299,300,5,132,0,0,300,19,1,0,0,0,301,303,5,18,0,0,302,301,1,0,0,0,302,303,1,0,0,0,303,304,1,0,0,0,304,305,7,1,0,0,305,307,3,196,98,0,306,308,3,24,12,0,307,306,1,0,0,0,307,308,1,0,0,0,308,318,1,0,0,0,309,310,5,22,0,0,310,315,3,22,11,0,311,312,5,16,0,0,312,314,3,22,11,0,313,311,1,0,0,0,314,317,1,0,0,0,315,313,1,0,0,0,315,316,1,0,0,0,316,319,1,0,0,0,317,315,1,0,0,0,318,309,1,0,0,0,318,319,1,0,0,0,319,321,1,0,0,0,320,322,3,24,12,0,321,320,1,0,0,0,321,322,1,0,0,0,322,323,1,0,0,0,323,327,5,15,0,0,324,326,3,26,13,0,325,324,1,0,0,0,326,329,1,0,0,0,327,325,1,0,0,0,327,328,1,0,0,0,328,330,1,0,0,0,329,327,1,0,0,0,330,331,5,17,0,0,331,21,1,0,0,0,332,338,3,80,40,0,333,335,5,23,0,0,334,336,3,146,73,0,335,334,1,0,0,0,335,336,1,0,0,0,336,337,1,0,0,0,337,339,5,24,0,0,338,333,1,0,0,0,338,339,1,0,0,0,339,23,1,0,0,0,340,341,5,25,0,0,341,342,5,26,0,0,342,343,3,142,71,0,343,25,1,0,0,0,344,354,3,28,14,0,345,354,3,36,18,0,346,354,3,44,22,0,347,354,3,46,23,0,348,354,3,50,25,0,349,354,3,58,29,0,350,354,3,62,31,0,351,354,3,32,16,0,352,354,3,34,17,0,353,344,1,0,0,0,353,345,1,0,0,0,353,346,1,0,0,0,353,347,1,0,0,0,353,348,1,0,0,0,353,349,1,0,0,0,353,350,1,0,0,0,353,351,1,0,0,0,353,352,1,0,0,0,354,27,1,0,0,0,355,365,3,78,39,0,356,364,5,122,0,0,357,364,5,119,0,0,358,364,5,121,0,0,359,364,5,112,0,0,360,364,5,113,0,0,361,364,5,114,0,0,362,364,3,200,100,0,363,356,1,0,0,0,363,357,1,0,0,0,363,358,1,0,0,0,363,359,1,0,0,0,363,360,1,0,0,0,363,361,1,0,0,0,363,362,1,0,0,0,364,367,1,0,0,0,365,363,1,0,0,0,365,366,1,0,0,0,366,368,1,0,0,0,367,365,1,0,0,0,368,371,3,196,98,0,369,370,5,11,0,0,370,372,3,142,71,0,371,369,1,0,0,0,371,372,1,0,0,0,372,373,1,0,0,0,373,374,5,2,0,0,374,29,1,0,0,0,375,376,3,78,39,0,376,377,5,112,0,0,377,378,3,196,98,0,378,379,5,11,0,0,379,380,3,142,71,0,380,381,5,2,0,0,381,31,1,0,0,0,382,383,5,27,0,0,383,384,3,196,98,0,384,385,3,64,32,0,385,386,5,2,0,0,386,33,1,0,0,0,387,388,5,125,0,0,388,389,3,196,98,0,389,390,5,22,0,0,390,391,3,140,70,0,391,392,5,2,0,0,392,35,1,0,0,0,393,394,5,28,0,0,394,395,3,38,19,0,395,398,5,29,0,0,396,399,5,3,0,0,397,399,3,78,39,0,398,396,1,0,0,0,398,397,1,0,0,0,399,401,1,0,0,0,400,402,5,127,0,0,401,400,1,0,0,0,401,402,1,0,0,0,402,403,1,0,0,0,403,404,5,2,0,0,404,37,1,0,0,0,405,418,3,80,40,0,406,407,5,15,0,0,407,412,3,40,20,0,408,409,5,16,0,0,409,411,3,40,20,0,410,408,1,0,0,0,411,414,1,0,0,0,412,410,1,0,0,0,412,413,1,0,0,0,413,415,1,0,0,0,414,412,1,0,0,0,415,416,5,17,0,0,416,418,1,0,0,0,417,405,1,0,0,0,417,406,1,0,0,0,418,39,1,0,0,0,419,422,3,80,40,0,420,421,5,12,0,0,421,423,3,42,21,0,422,420,1,0,0,0,422,423,1,0,0,0,423,41,1,0,0,0,424,425,7,2,0,0,425,43,1,0,0,0,426,427,5,38,0,0,427,428,3,196,98,0,428,439,5,15,0,0,429,430,3,76,38,0,430,436,5,2,0,0,431,432,3,76,38,0,432,433,5,2,0,0,433,435,1,0,0,0,434,431,1,0,0,0,435,438,1,0,0,0,436,434,1,0,0,0,436,437,1,0,0,0,437,440,1,0,0,0,438,436,1,0,0,0,439,429,1,0,0,0,439,440,1,0,0,0,440,441,1,0,0,0,441,442,5,17,0,0,442,45,1,0,0,0,443,444,5,39,0,0,444,446,3,196,98,0,445,447,3,64,32,0,446,445,1,0,0,0,446,447,1,0,0,0,447,452,1,0,0,0,448,451,5,123,0,0,449,451,3,200,100,0,450,448,1,0,0,0,450,449,1,0,0,0,451,454,1,0,0,0,452,450,1,0,0,0,452,453,1,0,0,0,453,457,1,0,0,0,454,452,1,0,0,0,455,458,5,2,0,0,456,458,3,96,48,0,457,455,1,0,0,0,457,456,1,0,0,0,458,47,1,0,0,0,459,465,3,196,98,0,460,462,5,23,0,0,461,463,3,146,73,0,462,461,1,0,0,0,462,463,1,0,0,0,463,464,1,0,0,0,464,466,5,24,0,0,465,460,1,0,0,0,465,466,1,0,0,0,466,49,1,0,0,0,467,468,3,52,26,0,468,469,3,64,32,0,469,471,3,56,28,0,470,472,3,54,27,0,471,470,1,0,0,0,471,472,1,0,0,0,472,475,1,0,0,0,473,476,5,2,0,0,474,476,3,96,48,0,475,473,1,0,0,0,475,474,1,0,0,0,476,51,1,0,0,0,477,479,5,40,0,0,478,480,3,196,98,0,479,478,1,0,0,0,479,480,1,0,0,0,480,485,1,0,0,0,481,485,5,128,0,0,482,485,5,129,0,0,483,485,5,130,0,0,484,477,1,0,0,0,484,481,1,0,0,0,484,482,1,0,0,0,484,483,1,0,0,0,485,53,1,0,0,0,486,487,5,41,0,0,487,488,3,64,32,0,488,55,1,0,0,0,489,498,5,117,0,0,490,498,5,122,0,0,491,498,5,119,0,0,492,498,5,121,0,0,493,498,5,123,0,0,494,498,3,94,47,0,495,498,3,48,24,0,496,498,3,200,100,0,497,489,1,0,0,0,497,490,1,0,0,0,497,491,1,0,0,0,497,492,1,0,0,0,497,493,1,0,0,0,497,494,1,0,0,0,497,495,1,0,0,0,497,496,1,0,0,0,498,501,1,0,0,0,499,497,1,0,0,0,499,500,1,0,0,0,500,57,1,0,0,0,501,499,1,0,0,0,502,503,5,42,0,0,503,504,3,196,98,0,504,506,3,68,34,0,505,507,5,110,0,0,506,505,1,0,0,0,506,507,1,0,0,0,507,508,1,0,0,0,508,509,5,2,0,0,509,59,1,0,0,0,510,511,3,196,98,0,511,61,1,0,0,0,512,513,5,43,0,0,513,514,3,196,98,0,514,516,5,15,0,0,515,517,3,60,30,0,516,515,1,0,0,0,516,517,1,0,0,0,517,522,1,0,0,0,518,519,5,16,0,0,519,521,3,60,30,0,520,518,1,0,0,0,521,524,1,0,0,0,522,520,1,0,0,0,522,523,1,0,0,0,523,525,1,0,0,0,524,522,1,0,0,0,525,526,5,17,0,0,526,63,1,0,0,0,527,536,5,23,0,0,528,533,3,66,33,0,529,530,5,16,0,0,530,532,3,66,33,0,531,529,1,0,0,0,532,535,1,0,0,0,533,531,1,0,0,0,533,534,1,0,0,0,534,537,1,0,0,0,535,533,1,0,0,0,536,528,1,0,0,0,536,537,1,0,0,0,537,538,1,0,0,0,538,539,5,24,0,0,539,65,1,0,0,0,540,542,3,78,39,0,541,543,3,92,46,0,542,541,1,0,0,0,542,543,1,0,0,0,543,545,1,0,0,0,544,546,3,196,98,0,545,544,1,0,0,0,545,546,1,0,0,0,546,67,1,0,0,0,547,556,5,23,0,0,548,553,3,70,35,0,549,550,5,16,0,0,550,552,3,70,35,0,551,549,1,0,0,0,552,555,1,0,0,0,553,551,1,0,0,0,553,554,1,0,0,0,554,557,1,0,0,0,555,553,1,0,0,0,556,548,1,0,0,0,556,557,1,0,0,0,557,558,1,0,0,0,558,559,5,24,0,0,559,69,1,0,0,0,560,562,3,78,39,0,561,563,5,118,0,0,562,561,1,0,0,0,562,563,1,0,0,0,563,565,1,0,0,0,564,566,3,196,98,0,565,564,1,0,0,0,565,566,1,0,0,0,566,71,1,0,0,0,567,576,5,23,0,0,568,573,3,74,37,0,569,570,5,16,0,0,570,572,3,74,37,0,571,569,1,0,0,0,572,575,1,0,0,0,573,571,1,0,0,0,573,574,1,0,0,0,574,577,1,0,0,0,575,573,1,0,0,0,576,568,1,0,0,0,576,577,1,0,0,0,577,578,1,0,0,0,578,579,5,24,0,0,579,73,1,0,0,0,580,582,3,78,39,0,581,583,3,92,46,0,582,581,1,0,0,0,582,583,1,0,0,0,583,75,1,0,0,0,584,586,3,78,39,0,585,587,3,92,46,0,586,585,1,0,0,0,586,587,1,0,0,0,587,588,1,0,0,0,588,589,3,196,98,0,589,77,1,0,0,0,590,591,6,39,-1,0,591,598,3,140,70,0,592,598,3,80,40,0,593,598,3,84,42,0,594,598,3,90,45,0,595,596,5,46,0,0,596,598,5,120,0,0,597,590,1,0,0,0,597,592,1,0,0,0,597,593,1,0,0,0,597,594,1,0,0,0,597,595,1,0,0,0,598,607,1,0,0,0,599,600,10,3,0,0,600,602,5,44,0,0,601,603,3,142,71,0,602,601,1,0,0,0,602,603,1,0,0,0,603,604,1,0,0,0,604,606,5,45,0,0,605,599,1,0,0,0,606,609,1,0,0,0,607,605,1,0,0,0,607,608,1,0,0,0,608,79,1,0,0,0,609,607,1,0,0,0,610,615,3,196,98,0,611,612,5,47,0,0,612,614,3,196,98,0,613,611,1,0,0,0,614,617,1,0,0,0,615,613,1,0,0,0,615,616,1,0,0,0,616,81,1,0,0,0,617,615,1,0,0,0,618,621,3,140,70,0,619,621,3,80,40,0,620,618,1,0,0,0,620,619,1,0,0,0,621,83,1,0,0,0,622,623,5,48,0,0,623,624,5,23,0,0,624,626,3,82,41,0,625,627,3,86,43,0,626,625,1,0,0,0,626,627,1,0,0,0,627,628,1,0,0,0,628,629,5,49,0,0,629,631,3,78,39,0,630,632,3,88,44,0,631,630,1,0,0,0,631,632,1,0,0,0,632,633,1,0,0,0,633,634,5,24,0,0,634,85,1,0,0,0,635,636,3,196,98,0,636,87,1,0,0,0,637,638,3,196,98,0,638,89,1,0,0,0,639,640,5,40,0,0,640,646,3,72,36,0,641,645,5,119,0,0,642,645,5,117,0,0,643,645,3,94,47,0,644,641,1,0,0,0,644,642,1,0,0,0,644,643,1,0,0,0,645,648,1,0,0,0,646,644,1,0,0,0,646,647,1,0,0,0,647,651,1,0,0,0,648,646,1,0,0,0,649,650,5,41,0,0,650,652,3,72,36,0,651,649,1,0,0,0,651,652,1,0,0,0,652,91,1,0,0,0,653,654,7,3,0,0,654,93,1,0,0,0,655,656,7,4,0,0,656,95,1,0,0,0,657,661,5,15,0,0,658,660,3,98,49,0,659,658,1,0,0,0,660,663,1,0,0,0,661,659,1,0,0,0,661,662,1,0,0,0,662,664,1,0,0,0,663,661,1,0,0,0,664,665,5,17,0,0,665,97,1,0,0,0,666,682,3,102,51,0,667,682,3,104,52,0,668,682,3,108,54,0,669,682,3,114,57,0,670,682,3,96,48,0,671,682,3,116,58,0,672,682,3,120,60,0,673,682,3,122,61,0,674,682,3,124,62,0,675,682,3,126,63,0,676,682,3,128,64,0,677,682,3,130,65,0,678,682,3,110,55,0,679,682,3,112,56,0,680,682,3,132,66,0,681,666,1,0,0,0,681,667,1,0,0,0,681,668,1,0,0,0,681,669,1,0,0,0,681,670,1,0,0,0,681,671,1,0,0,0,681,672,1,0,0,0,681,673,1,0,0,0,681,674,1,0,0,0,681,675,1,0,0,0,681,676,1,0,0,0,681,677,1,0,0,0,681,678,1,0,0,0,681,679,1,0,0,0,681,680,1,0,0,0,682,99,1,0,0,0,683,684,3,142,71,0,684,685,5,2,0,0,685,101,1,0,0,0,686,687,5,53,0,0,687,688,5,23,0,0,688,689,3,142,71,0,689,690,5,24,0,0,690,693,3,98,49,0,691,692,5,54,0,0,692,694,3,98,49,0,693,691,1,0,0,0,693,694,1,0,0,0,694,103,1,0,0,0,695,696,5,55,0,0,696,698,3,142,71,0,697,699,3,54,27,0,698,697,1,0,0,0,698,699,1,0,0,0,699,700,1,0,0,0,700,702,3,96,48,0,701,703,3,106,53,0,702,701,1,0,0,0,703,704,1,0,0,0,704,702,1,0,0,0,704,705,1,0,0,0,705,105,1,0,0,0,706,711,5,56,0,0,707,709,3,196,98,0,708,707,1,0,0,0,708,709,1,0,0,0,709,710,1,0,0,0,710,712,3,64,32,0,711,708,1,0,0,0,711,712,1,0,0,0,712,713,1,0,0,0,713,714,3,96,48,0,714,107,1,0,0,0,715,716,5,57,0,0,716,717,5,23,0,0,717,718,3,142,71,0,718,719,5,24,0,0,719,720,3,98,49,0,720,109,1,0,0,0,721,724,3,134,67,0,722,724,3,100,50,0,723,721,1,0,0,0,723,722,1,0,0,0,724,111,1,0,0,0,725,726,5,58,0,0,726,727,3,96,48,0,727,113,1,0,0,0,728,729,5,29,0,0,729,732,5,23,0,0,730,733,3,110,55,0,731,733,5,2,0,0,732,730,1,0,0,0,732,731,1,0,0,0,733,736,1,0,0,0,734,737,3,100,50,0,735,737,5,2,0,0,736,734,1,0,0,0,736,735,1,0,0,0,737,739,1,0,0,0,738,740,3,142,71,0,739,738,1,0,0,0,739,740,1,0,0,0,740,741,1,0,0,0,741,742,5,24,0,0,742,743,3,98,49,0,743,115,1,0,0,0,744,746,5,59,0,0,745,747,5,132,0,0,746,745,1,0,0,0,746,747,1,0,0,0,747,752,1,0,0,0,748,749,5,23,0,0,749,750,3,118,59,0,750,751,5,24,0,0,751,753,1,0,0,0,752,748,1,0,0,0,752,753,1,0,0,0,753,754,1,0,0,0,754,755,3,156,78,0,755,117,1,0,0,0,756,757,3,202,101,0,757,119,1,0,0,0,758,759,5,60,0,0,759,760,3,98,49,0,760,761,5,57,0,0,761,762,5,23,0,0,762,763,3,142,71,0,763,764,5,24,0,0,764,765,5,2,0,0,765,121,1,0,0,0,766,767,5,115,0,0,767,768,5,2,0,0,768,123,1,0,0,0,769,770,5,111,0,0,770,771,5,2,0,0,771,125,1,0,0,0,772,774,5,61,0,0,773,775,3,142,71,0,774,773,1,0,0,0,774,775,1,0,0,0,775,776,1,0,0,0,776,777,5,2,0,0,777,127,1,0,0,0,778,779,5,62,0,0,779,780,5,2,0,0,780,129,1,0,0,0,781,782,5,63,0,0,782,783,3,154,77,0,783,784,5,2,0,0,784,131,1,0,0,0,785,786,5,64,0,0,786,787,3,154,77,0,787,788,5,2,0,0,788,133,1,0,0,0,789,790,5,65,0,0,790,797,3,138,69,0,791,797,3,76,38,0,792,793,5,23,0,0,793,794,3,136,68,0,794,795,5,24,0,0,795,797,1,0,0,0,796,789,1,0,0,0,796,791,1,0,0,0,796,792,1,0,0,0,797,800,1,0,0,0,798,799,5,11,0,0,799,801,3,142,71,0,800,798,1,0,0,0,800,801,1,0,0,0,801,802,1,0,0,0,802,803,5,2,0,0,803,135,1,0,0,0,804,806,3,76,38,0,805,804,1,0,0,0,805,806,1,0,0,0,806,813,1,0,0,0,807,809,5,16,0,0,808,810,3,76,38,0,809,808,1,0,0,0,809,810,1,0,0,0,810,812,1,0,0,0,811,807,1,0,0,0,812,815,1,0,0,0,813,811,1,0,0,0,813,814,1,0,0,0,814,137,1,0,0,0,815,813,1,0,0,0,816,823,5,23,0,0,817,819,3,196,98,0,818,817,1,0,0,0,818,819,1,0,0,0,819,820,1,0,0,0,820,822,5,16,0,0,821,818,1,0,0,0,822,825,1,0,0,0,823,821,1,0,0,0,823,824,1,0,0,0,824,827,1,0,0,0,825,823,1,0,0,0,826,828,3,196,98,0,827,826,1,0,0,0,827,828,1,0,0,0,828,829,1,0,0,0,829,830,5,24,0,0,830,139,1,0,0,0,831,832,7,5,0,0,832,141,1,0,0,0,833,834,6,71,-1,0,834,835,5,71,0,0,835,852,3,78,39,0,836,837,5,23,0,0,837,838,3,142,71,0,838,839,5,24,0,0,839,852,1,0,0,0,840,841,7,6,0,0,841,852,3,142,71,19,842,843,7,7,0,0,843,852,3,142,71,18,844,845,5,73,0,0,845,852,3,142,71,17,846,847,5,74,0,0,847,852,3,142,71,16,848,849,5,6,0,0,849,852,3,142,71,15,850,852,3,144,72,0,851,833,1,0,0,0,851,836,1,0,0,0,851,840,1,0,0,0,851,842,1,0,0,0,851,844,1,0,0,0,851,846,1,0,0,0,851,848,1,0,0,0,851,850,1,0,0,0,852,927,1,0,0,0,853,854,10,14,0,0,854,855,5,75,0,0,855,926,3,142,71,14,856,857,10,13,0,0,857,858,7,8,0,0,858,926,3,142,71,14,859,860,10,12,0,0,860,861,7,7,0,0,861,926,3,142,71,13,862,863,10,11,0,0,863,864,7,9,0,0,864,926,3,142,71,12,865,866,10,10,0,0,866,867,5,31,0,0,867,926,3,142,71,11,868,869,10,9,0,0,869,870,5,5,0,0,870,926,3,142,71,10,871,872,10,8,0,0,872,873,5,30,0,0,873,926,3,142,71,9,874,875,10,7,0,0,875,876,7,10,0,0,876,926,3,142,71,8,877,878,10,6,0,0,878,879,7,11,0,0,879,926,3,142,71,7,880,881,10,5,0,0,881,882,5,78,0,0,882,926,3,142,71,6,883,884,10,4,0,0,884,885,5,4,0,0,885,926,3,142,71,5,886,887,10,3,0,0,887,888,5,79,0,0,888,889,3,142,71,0,889,890,5,72,0,0,890,891,3,142,71,3,891,926,1,0,0,0,892,893,10,2,0,0,893,894,7,12,0,0,894,926,3,142,71,3,895,896,10,27,0,0,896,926,7,6,0,0,897,898,10,25,0,0,898,899,5,44,0,0,899,900,3,142,71,0,900,901,5,45,0,0,901,926,1,0,0,0,902,903,10,24,0,0,903,905,5,44,0,0,904,906,3,142,71,0,905,904,1,0,0,0,905,906,1,0,0,0,906,907,1,0,0,0,907,909,5,72,0,0,908,910,3,142,71,0,909,908,1,0,0,0,909,910,1,0,0,0,910,911,1,0,0,0,911,926,5,45,0,0,912,913,10,23,0,0,913,914,5,47,0,0,914,926,3,196,98,0,915,916,10,22,0,0,916,917,5,15,0,0,917,918,3,148,74,0,918,919,5,17,0,0,919,926,1,0,0,0,920,921,10,21,0,0,921,922,5,23,0,0,922,923,3,152,76,0,923,924,5,24,0,0,924,926,1,0,0,0,925,853,1,0,0,0,925,856,1,0,0,0,925,859,1,0,0,0,925,862,1,0,0,0,925,865,1,0,0,0,925,868,1,0,0,0,925,871,1,0,0,0,925,874,1,0,0,0,925,877,1,0,0,0,925,880,1,0,0,0,925,883,1,0,0,0,925,886,1,0,0,0,925,892,1,0,0,0,925,895,1,0,0,0,925,897,1,0,0,0,925,902,1,0,0,0,925,912,1,0,0,0,925,915,1,0,0,0,925,920,1,0,0,0,926,929,1,0,0,0,927,925,1,0,0,0,927,928,1,0,0,0,928,143,1,0,0,0,929,927,1,0,0,0,930,940,5,104,0,0,931,940,3,194,97,0,932,940,3,198,99,0,933,940,3,202,101,0,934,940,3,196,98,0,935,940,5,125,0,0,936,940,5,120,0,0,937,940,3,192,96,0,938,940,3,78,39,0,939,930,1,0,0,0,939,931,1,0,0,0,939,932,1,0,0,0,939,933,1,0,0,0,939,934,1,0,0,0,939,935,1,0,0,0,939,936,1,0,0,0,939,937,1,0,0,0,939,938,1,0,0,0,940,145,1,0,0,0,941,946,3,142,71,0,942,943,5,16,0,0,943,945,3,142,71,0,944,942,1,0,0,0,945,948,1,0,0,0,946,944,1,0,0,0,946,947,1,0,0,0,947,147,1,0,0,0,948,946,1,0,0,0,949,954,3,150,75,0,950,951,5,16,0,0,951,953,3,150,75,0,952,950,1,0,0,0,953,956,1,0,0,0,954,952,1,0,0,0,954,955,1,0,0,0,955,958,1,0,0,0,956,954,1,0,0,0,957,959,5,16,0,0,958,957,1,0,0,0,958,959,1,0,0,0,959,149,1,0,0,0,960,961,3,196,98,0,961,962,5,72,0,0,962,963,3,142,71,0,963,151,1,0,0,0,964,966,5,15,0,0,965,967,3,148,74,0,966,965,1,0,0,0,966,967,1,0,0,0,967,968,1,0,0,0,968,973,5,17,0,0,969,971,3,146,73,0,970,969,1,0,0,0,970,971,1,0,0,0,971,973,1,0,0,0,972,964,1,0,0,0,972,970,1,0,0,0,973,153,1,0,0,0,974,975,3,142,71,0,975,976,5,23,0,0,976,977,3,152,76,0,977,978,5,24,0,0,978,155,1,0,0,0,979,983,5,15,0,0,980,982,3,158,79,0,981,980,1,0,0,0,982,985,1,0,0,0,983,981,1,0,0,0,983,984,1,0,0,0,984,986,1,0,0,0,985,983,1,0,0,0,986,987,5,17,0,0,987,157,1,0,0,0,988,1006,3,196,98,0,989,1006,3,156,78,0,990,1006,3,160,80,0,991,1006,3,166,83,0,992,1006,3,168,84,0,993,1006,3,174,87,0,994,1006,3,176,88,0,995,1006,3,178,89,0,996,1006,3,182,91,0,997,1006,3,186,93,0,998,1006,3,188,94,0,999,1006,5,111,0,0,1e3,1006,5,115,0,0,1001,1006,5,116,0,0,1002,1006,3,194,97,0,1003,1006,3,202,101,0,1004,1006,3,198,99,0,1005,988,1,0,0,0,1005,989,1,0,0,0,1005,990,1,0,0,0,1005,991,1,0,0,0,1005,992,1,0,0,0,1005,993,1,0,0,0,1005,994,1,0,0,0,1005,995,1,0,0,0,1005,996,1,0,0,0,1005,997,1,0,0,0,1005,998,1,0,0,0,1005,999,1,0,0,0,1005,1e3,1,0,0,0,1005,1001,1,0,0,0,1005,1002,1,0,0,0,1005,1003,1,0,0,0,1005,1004,1,0,0,0,1006,159,1,0,0,0,1007,1011,3,164,82,0,1008,1011,3,190,95,0,1009,1011,3,162,81,0,1010,1007,1,0,0,0,1010,1008,1,0,0,0,1010,1009,1,0,0,0,1011,161,1,0,0,0,1012,1013,3,196,98,0,1013,1014,5,47,0,0,1014,1015,3,196,98,0,1015,163,1,0,0,0,1016,1021,5,61,0,0,1017,1021,5,46,0,0,1018,1021,5,68,0,0,1019,1021,3,196,98,0,1020,1016,1,0,0,0,1020,1017,1,0,0,0,1020,1018,1,0,0,0,1020,1019,1,0,0,0,1021,1034,1,0,0,0,1022,1024,5,23,0,0,1023,1025,3,160,80,0,1024,1023,1,0,0,0,1024,1025,1,0,0,0,1025,1030,1,0,0,0,1026,1027,5,16,0,0,1027,1029,3,160,80,0,1028,1026,1,0,0,0,1029,1032,1,0,0,0,1030,1028,1,0,0,0,1030,1031,1,0,0,0,1031,1033,1,0,0,0,1032,1030,1,0,0,0,1033,1035,5,24,0,0,1034,1022,1,0,0,0,1034,1035,1,0,0,0,1035,165,1,0,0,0,1036,1037,5,90,0,0,1037,1040,3,170,85,0,1038,1039,5,91,0,0,1039,1041,3,160,80,0,1040,1038,1,0,0,0,1040,1041,1,0,0,0,1041,167,1,0,0,0,1042,1043,3,170,85,0,1043,1044,5,91,0,0,1044,1045,3,160,80,0,1045,169,1,0,0,0,1046,1054,3,196,98,0,1047,1054,3,162,81,0,1048,1054,3,172,86,0,1049,1050,5,23,0,0,1050,1051,3,172,86,0,1051,1052,5,24,0,0,1052,1054,1,0,0,0,1053,1046,1,0,0,0,1053,1047,1,0,0,0,1053,1048,1,0,0,0,1053,1049,1,0,0,0,1054,171,1,0,0,0,1055,1060,3,196,98,0,1056,1057,5,16,0,0,1057,1059,3,196,98,0,1058,1056,1,0,0,0,1059,1062,1,0,0,0,1060,1058,1,0,0,0,1060,1061,1,0,0,0,1061,173,1,0,0,0,1062,1060,1,0,0,0,1063,1064,3,160,80,0,1064,1065,5,92,0,0,1065,1066,3,196,98,0,1066,175,1,0,0,0,1067,1068,3,196,98,0,1068,1069,5,72,0,0,1069,177,1,0,0,0,1070,1071,5,93,0,0,1071,1075,3,160,80,0,1072,1074,3,180,90,0,1073,1072,1,0,0,0,1074,1077,1,0,0,0,1075,1073,1,0,0,0,1075,1076,1,0,0,0,1076,179,1,0,0,0,1077,1075,1,0,0,0,1078,1079,5,94,0,0,1079,1080,3,190,95,0,1080,1081,3,156,78,0,1081,1085,1,0,0,0,1082,1083,5,95,0,0,1083,1085,3,156,78,0,1084,1078,1,0,0,0,1084,1082,1,0,0,0,1085,181,1,0,0,0,1086,1087,5,40,0,0,1087,1088,3,196,98,0,1088,1090,5,23,0,0,1089,1091,3,172,86,0,1090,1089,1,0,0,0,1090,1091,1,0,0,0,1091,1092,1,0,0,0,1092,1094,5,24,0,0,1093,1095,3,184,92,0,1094,1093,1,0,0,0,1094,1095,1,0,0,0,1095,1096,1,0,0,0,1096,1097,3,156,78,0,1097,183,1,0,0,0,1098,1099,5,96,0,0,1099,1100,3,172,86,0,1100,185,1,0,0,0,1101,1104,5,29,0,0,1102,1105,3,156,78,0,1103,1105,3,160,80,0,1104,1102,1,0,0,0,1104,1103,1,0,0,0,1105,1106,1,0,0,0,1106,1109,3,160,80,0,1107,1110,3,156,78,0,1108,1110,3,160,80,0,1109,1107,1,0,0,0,1109,1108,1,0,0,0,1110,1111,1,0,0,0,1111,1112,3,156,78,0,1112,187,1,0,0,0,1113,1114,5,53,0,0,1114,1115,3,160,80,0,1115,1116,3,156,78,0,1116,189,1,0,0,0,1117,1123,3,202,101,0,1118,1123,5,105,0,0,1119,1123,5,106,0,0,1120,1123,3,198,99,0,1121,1123,5,104,0,0,1122,1117,1,0,0,0,1122,1118,1,0,0,0,1122,1119,1,0,0,0,1122,1120,1,0,0,0,1122,1121,1,0,0,0,1123,191,1,0,0,0,1124,1126,5,23,0,0,1125,1127,3,142,71,0,1126,1125,1,0,0,0,1126,1127,1,0,0,0,1127,1134,1,0,0,0,1128,1130,5,16,0,0,1129,1131,3,142,71,0,1130,1129,1,0,0,0,1130,1131,1,0,0,0,1131,1133,1,0,0,0,1132,1128,1,0,0,0,1133,1136,1,0,0,0,1134,1132,1,0,0,0,1134,1135,1,0,0,0,1135,1137,1,0,0,0,1136,1134,1,0,0,0,1137,1151,5,24,0,0,1138,1147,5,44,0,0,1139,1144,3,142,71,0,1140,1141,5,16,0,0,1141,1143,3,142,71,0,1142,1140,1,0,0,0,1143,1146,1,0,0,0,1144,1142,1,0,0,0,1144,1145,1,0,0,0,1145,1148,1,0,0,0,1146,1144,1,0,0,0,1147,1139,1,0,0,0,1147,1148,1,0,0,0,1148,1149,1,0,0,0,1149,1151,5,45,0,0,1150,1124,1,0,0,0,1150,1138,1,0,0,0,1151,193,1,0,0,0,1152,1154,7,13,0,0,1153,1155,5,107,0,0,1154,1153,1,0,0,0,1154,1155,1,0,0,0,1155,195,1,0,0,0,1156,1157,7,14,0,0,1157,197,1,0,0,0,1158,1160,5,108,0,0,1159,1158,1,0,0,0,1160,1161,1,0,0,0,1161,1159,1,0,0,0,1161,1162,1,0,0,0,1162,199,1,0,0,0,1163,1175,5,98,0,0,1164,1165,5,23,0,0,1165,1170,3,80,40,0,1166,1167,5,16,0,0,1167,1169,3,80,40,0,1168,1166,1,0,0,0,1169,1172,1,0,0,0,1170,1168,1,0,0,0,1170,1171,1,0,0,0,1171,1173,1,0,0,0,1172,1170,1,0,0,0,1173,1174,5,24,0,0,1174,1176,1,0,0,0,1175,1164,1,0,0,0,1175,1176,1,0,0,0,1176,201,1,0,0,0,1177,1179,5,132,0,0,1178,1177,1,0,0,0,1179,1180,1,0,0,0,1180,1178,1,0,0,0,1180,1181,1,0,0,0,1181,203,1,0,0,0,132,215,217,232,236,241,247,251,254,259,265,272,276,289,297,302,307,315,318,321,327,335,338,353,363,365,371,398,401,412,417,422,436,439,446,450,452,457,462,465,471,475,479,484,497,499,506,516,522,533,536,542,545,553,556,562,565,573,576,582,586,597,602,607,615,620,626,631,644,646,651,661,681,693,698,704,708,711,723,732,736,739,746,752,774,796,800,805,809,813,818,823,827,851,905,909,925,927,939,946,954,958,966,970,972,983,1005,1010,1020,1024,1030,1034,1040,1053,1060,1075,1084,1090,1094,1104,1109,1122,1126,1130,1134,1144,1147,1150,1154,1161,1170,1175,1180],k.DecisionsToDFA=k._ATN.decisionToState.map((i,c)=>new Oe(i,c));var H=k,lE=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}EOF(){return this.getToken(H.EOF,0)}pragmaDirective_list(){return this.getTypedRuleContexts(Td)}pragmaDirective(i){return this.getTypedRuleContext(Td,i)}importDirective_list(){return this.getTypedRuleContexts(Kd)}importDirective(i){return this.getTypedRuleContext(Kd,i)}contractDefinition_list(){return this.getTypedRuleContexts(Fd)}contractDefinition(i){return this.getTypedRuleContext(Fd,i)}enumDefinition_list(){return this.getTypedRuleContexts(Nl)}enumDefinition(i){return this.getTypedRuleContext(Nl,i)}eventDefinition_list(){return this.getTypedRuleContexts(Fl)}eventDefinition(i){return this.getTypedRuleContext(Fl,i)}structDefinition_list(){return this.getTypedRuleContexts(_l)}structDefinition(i){return this.getTypedRuleContext(_l,i)}functionDefinition_list(){return this.getTypedRuleContexts(Kl)}functionDefinition(i){return this.getTypedRuleContext(Kl,i)}fileLevelConstant_list(){return this.getTypedRuleContexts(Ld)}fileLevelConstant(i){return this.getTypedRuleContext(Ld,i)}customErrorDefinition_list(){return this.getTypedRuleContexts(vl)}customErrorDefinition(i){return this.getTypedRuleContext(vl,i)}typeDefinition_list(){return this.getTypedRuleContexts(Tl)}typeDefinition(i){return this.getTypedRuleContext(Tl,i)}usingForDeclaration_list(){return this.getTypedRuleContexts(Al)}usingForDeclaration(i){return this.getTypedRuleContext(Al,i)}get ruleIndex(){return H.RULE_sourceUnit}enterRule(i){i.enterSourceUnit&&i.enterSourceUnit(this)}exitRule(i){i.exitSourceUnit&&i.exitSourceUnit(this)}accept(i){return i.visitSourceUnit?i.visitSourceUnit(this):i.visitChildren(this)}},Td=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}pragmaName(){return this.getTypedRuleContext(qy,0)}pragmaValue(){return this.getTypedRuleContext(jy,0)}get ruleIndex(){return H.RULE_pragmaDirective}enterRule(i){i.enterPragmaDirective&&i.enterPragmaDirective(this)}exitRule(i){i.exitPragmaDirective&&i.exitPragmaDirective(this)}accept(i){return i.visitPragmaDirective?i.visitPragmaDirective(this):i.visitChildren(this)}},qy=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}get ruleIndex(){return H.RULE_pragmaName}enterRule(i){i.enterPragmaName&&i.enterPragmaName(this)}exitRule(i){i.exitPragmaName&&i.exitPragmaName(this)}accept(i){return i.visitPragmaName?i.visitPragmaName(this):i.visitChildren(this)}},jy=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}version(){return this.getTypedRuleContext(Gy,0)}expression(){return this.getTypedRuleContext(Me,0)}get ruleIndex(){return H.RULE_pragmaValue}enterRule(i){i.enterPragmaValue&&i.enterPragmaValue(this)}exitRule(i){i.exitPragmaValue&&i.exitPragmaValue(this)}accept(i){return i.visitPragmaValue?i.visitPragmaValue(this):i.visitChildren(this)}},Gy=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}versionConstraint_list(){return this.getTypedRuleContexts(Ad)}versionConstraint(i){return this.getTypedRuleContext(Ad,i)}get ruleIndex(){return H.RULE_version}enterRule(i){i.enterVersion&&i.enterVersion(this)}exitRule(i){i.exitVersion&&i.exitVersion(this)}accept(i){return i.visitVersion?i.visitVersion(this):i.visitChildren(this)}},Wy=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}get ruleIndex(){return H.RULE_versionOperator}enterRule(i){i.enterVersionOperator&&i.enterVersionOperator(this)}exitRule(i){i.exitVersionOperator&&i.exitVersionOperator(this)}accept(i){return i.visitVersionOperator?i.visitVersionOperator(this):i.visitChildren(this)}},Ad=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}VersionLiteral(){return this.getToken(H.VersionLiteral,0)}versionOperator(){return this.getTypedRuleContext(Wy,0)}DecimalNumber(){return this.getToken(H.DecimalNumber,0)}get ruleIndex(){return H.RULE_versionConstraint}enterRule(i){i.enterVersionConstraint&&i.enterVersionConstraint(this)}exitRule(i){i.exitVersionConstraint&&i.exitVersionConstraint(this)}accept(i){return i.visitVersionConstraint?i.visitVersionConstraint(this):i.visitChildren(this)}},_d=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier_list(){return this.getTypedRuleContexts(Ie)}identifier(i){return this.getTypedRuleContext(Ie,i)}get ruleIndex(){return H.RULE_importDeclaration}enterRule(i){i.enterImportDeclaration&&i.enterImportDeclaration(this)}exitRule(i){i.exitImportDeclaration&&i.exitImportDeclaration(this)}accept(i){return i.visitImportDeclaration?i.visitImportDeclaration(this):i.visitChildren(this)}},Kd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}importPath(){return this.getTypedRuleContext(zy,0)}identifier_list(){return this.getTypedRuleContexts(Ie)}identifier(i){return this.getTypedRuleContext(Ie,i)}importDeclaration_list(){return this.getTypedRuleContexts(_d)}importDeclaration(i){return this.getTypedRuleContext(_d,i)}get ruleIndex(){return H.RULE_importDirective}enterRule(i){i.enterImportDirective&&i.enterImportDirective(this)}exitRule(i){i.exitImportDirective&&i.exitImportDirective(this)}accept(i){return i.visitImportDirective?i.visitImportDirective(this):i.visitChildren(this)}},zy=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}StringLiteralFragment(){return this.getToken(H.StringLiteralFragment,0)}get ruleIndex(){return H.RULE_importPath}enterRule(i){i.enterImportPath&&i.enterImportPath(this)}exitRule(i){i.exitImportPath&&i.exitImportPath(this)}accept(i){return i.visitImportPath?i.visitImportPath(this):i.visitChildren(this)}},Fd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}customStorageLayout_list(){return this.getTypedRuleContexts(Pd)}customStorageLayout(i){return this.getTypedRuleContext(Pd,i)}inheritanceSpecifier_list(){return this.getTypedRuleContexts(Nd)}inheritanceSpecifier(i){return this.getTypedRuleContext(Nd,i)}contractPart_list(){return this.getTypedRuleContexts(kd)}contractPart(i){return this.getTypedRuleContext(kd,i)}get ruleIndex(){return H.RULE_contractDefinition}enterRule(i){i.enterContractDefinition&&i.enterContractDefinition(this)}exitRule(i){i.exitContractDefinition&&i.exitContractDefinition(this)}accept(i){return i.visitContractDefinition?i.visitContractDefinition(this):i.visitChildren(this)}},Nd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}userDefinedTypeName(){return this.getTypedRuleContext(Qi,0)}expressionList(){return this.getTypedRuleContext(Ll,0)}get ruleIndex(){return H.RULE_inheritanceSpecifier}enterRule(i){i.enterInheritanceSpecifier&&i.enterInheritanceSpecifier(this)}exitRule(i){i.exitInheritanceSpecifier&&i.exitInheritanceSpecifier(this)}accept(i){return i.visitInheritanceSpecifier?i.visitInheritanceSpecifier(this):i.visitChildren(this)}},Pd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}expression(){return this.getTypedRuleContext(Me,0)}get ruleIndex(){return H.RULE_customStorageLayout}enterRule(i){i.enterCustomStorageLayout&&i.enterCustomStorageLayout(this)}exitRule(i){i.exitCustomStorageLayout&&i.exitCustomStorageLayout(this)}accept(i){return i.visitCustomStorageLayout?i.visitCustomStorageLayout(this):i.visitChildren(this)}},kd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}stateVariableDeclaration(){return this.getTypedRuleContext(Qy,0)}usingForDeclaration(){return this.getTypedRuleContext(Al,0)}structDefinition(){return this.getTypedRuleContext(_l,0)}modifierDefinition(){return this.getTypedRuleContext(Zy,0)}functionDefinition(){return this.getTypedRuleContext(Kl,0)}eventDefinition(){return this.getTypedRuleContext(Fl,0)}enumDefinition(){return this.getTypedRuleContext(Nl,0)}customErrorDefinition(){return this.getTypedRuleContext(vl,0)}typeDefinition(){return this.getTypedRuleContext(Tl,0)}get ruleIndex(){return H.RULE_contractPart}enterRule(i){i.enterContractPart&&i.enterContractPart(this)}exitRule(i){i.exitContractPart&&i.exitContractPart(this)}accept(i){return i.visitContractPart?i.visitContractPart(this):i.visitChildren(this)}},Qy=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}typeName(){return this.getTypedRuleContext(Pr,0)}identifier(){return this.getTypedRuleContext(Ie,0)}PublicKeyword_list(){return this.getTokens(H.PublicKeyword)}PublicKeyword(i){return this.getToken(H.PublicKeyword,i)}InternalKeyword_list(){return this.getTokens(H.InternalKeyword)}InternalKeyword(i){return this.getToken(H.InternalKeyword,i)}PrivateKeyword_list(){return this.getTokens(H.PrivateKeyword)}PrivateKeyword(i){return this.getToken(H.PrivateKeyword,i)}ConstantKeyword_list(){return this.getTokens(H.ConstantKeyword)}ConstantKeyword(i){return this.getToken(H.ConstantKeyword,i)}TransientKeyword_list(){return this.getTokens(H.TransientKeyword)}TransientKeyword(i){return this.getToken(H.TransientKeyword,i)}ImmutableKeyword_list(){return this.getTokens(H.ImmutableKeyword)}ImmutableKeyword(i){return this.getToken(H.ImmutableKeyword,i)}overrideSpecifier_list(){return this.getTypedRuleContexts(Mn)}overrideSpecifier(i){return this.getTypedRuleContext(Mn,i)}expression(){return this.getTypedRuleContext(Me,0)}get ruleIndex(){return H.RULE_stateVariableDeclaration}enterRule(i){i.enterStateVariableDeclaration&&i.enterStateVariableDeclaration(this)}exitRule(i){i.exitStateVariableDeclaration&&i.exitStateVariableDeclaration(this)}accept(i){return i.visitStateVariableDeclaration?i.visitStateVariableDeclaration(this):i.visitChildren(this)}},Ld=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}typeName(){return this.getTypedRuleContext(Pr,0)}ConstantKeyword(){return this.getToken(H.ConstantKeyword,0)}identifier(){return this.getTypedRuleContext(Ie,0)}expression(){return this.getTypedRuleContext(Me,0)}get ruleIndex(){return H.RULE_fileLevelConstant}enterRule(i){i.enterFileLevelConstant&&i.enterFileLevelConstant(this)}exitRule(i){i.exitFileLevelConstant&&i.exitFileLevelConstant(this)}accept(i){return i.visitFileLevelConstant?i.visitFileLevelConstant(this):i.visitChildren(this)}},vl=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}parameterList(){return this.getTypedRuleContext(os,0)}get ruleIndex(){return H.RULE_customErrorDefinition}enterRule(i){i.enterCustomErrorDefinition&&i.enterCustomErrorDefinition(this)}exitRule(i){i.exitCustomErrorDefinition&&i.exitCustomErrorDefinition(this)}accept(i){return i.visitCustomErrorDefinition?i.visitCustomErrorDefinition(this):i.visitChildren(this)}},Tl=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}TypeKeyword(){return this.getToken(H.TypeKeyword,0)}identifier(){return this.getTypedRuleContext(Ie,0)}elementaryTypeName(){return this.getTypedRuleContext(kl,0)}get ruleIndex(){return H.RULE_typeDefinition}enterRule(i){i.enterTypeDefinition&&i.enterTypeDefinition(this)}exitRule(i){i.exitTypeDefinition&&i.exitTypeDefinition(this)}accept(i){return i.visitTypeDefinition?i.visitTypeDefinition(this):i.visitChildren(this)}},Al=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}usingForObject(){return this.getTypedRuleContext(Xy,0)}typeName(){return this.getTypedRuleContext(Pr,0)}GlobalKeyword(){return this.getToken(H.GlobalKeyword,0)}get ruleIndex(){return H.RULE_usingForDeclaration}enterRule(i){i.enterUsingForDeclaration&&i.enterUsingForDeclaration(this)}exitRule(i){i.exitUsingForDeclaration&&i.exitUsingForDeclaration(this)}accept(i){return i.visitUsingForDeclaration?i.visitUsingForDeclaration(this):i.visitChildren(this)}},Xy=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}userDefinedTypeName(){return this.getTypedRuleContext(Qi,0)}usingForObjectDirective_list(){return this.getTypedRuleContexts(Id)}usingForObjectDirective(i){return this.getTypedRuleContext(Id,i)}get ruleIndex(){return H.RULE_usingForObject}enterRule(i){i.enterUsingForObject&&i.enterUsingForObject(this)}exitRule(i){i.exitUsingForObject&&i.exitUsingForObject(this)}accept(i){return i.visitUsingForObject?i.visitUsingForObject(this):i.visitChildren(this)}},Id=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}userDefinedTypeName(){return this.getTypedRuleContext(Qi,0)}userDefinableOperators(){return this.getTypedRuleContext(Jy,0)}get ruleIndex(){return H.RULE_usingForObjectDirective}enterRule(i){i.enterUsingForObjectDirective&&i.enterUsingForObjectDirective(this)}exitRule(i){i.exitUsingForObjectDirective&&i.exitUsingForObjectDirective(this)}accept(i){return i.visitUsingForObjectDirective?i.visitUsingForObjectDirective(this):i.visitChildren(this)}},Jy=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}get ruleIndex(){return H.RULE_userDefinableOperators}enterRule(i){i.enterUserDefinableOperators&&i.enterUserDefinableOperators(this)}exitRule(i){i.exitUserDefinableOperators&&i.exitUserDefinableOperators(this)}accept(i){return i.visitUserDefinableOperators?i.visitUserDefinableOperators(this):i.visitChildren(this)}},_l=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}variableDeclaration_list(){return this.getTypedRuleContexts(as)}variableDeclaration(i){return this.getTypedRuleContext(as,i)}get ruleIndex(){return H.RULE_structDefinition}enterRule(i){i.enterStructDefinition&&i.enterStructDefinition(this)}exitRule(i){i.exitStructDefinition&&i.exitStructDefinition(this)}accept(i){return i.visitStructDefinition?i.visitStructDefinition(this):i.visitChildren(this)}},Zy=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}block(){return this.getTypedRuleContext(On,0)}parameterList(){return this.getTypedRuleContext(os,0)}VirtualKeyword_list(){return this.getTokens(H.VirtualKeyword)}VirtualKeyword(i){return this.getToken(H.VirtualKeyword,i)}overrideSpecifier_list(){return this.getTypedRuleContexts(Mn)}overrideSpecifier(i){return this.getTypedRuleContext(Mn,i)}get ruleIndex(){return H.RULE_modifierDefinition}enterRule(i){i.enterModifierDefinition&&i.enterModifierDefinition(this)}exitRule(i){i.exitModifierDefinition&&i.exitModifierDefinition(this)}accept(i){return i.visitModifierDefinition?i.visitModifierDefinition(this):i.visitChildren(this)}},Rd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}expressionList(){return this.getTypedRuleContext(Ll,0)}get ruleIndex(){return H.RULE_modifierInvocation}enterRule(i){i.enterModifierInvocation&&i.enterModifierInvocation(this)}exitRule(i){i.exitModifierInvocation&&i.exitModifierInvocation(this)}accept(i){return i.visitModifierInvocation?i.visitModifierInvocation(this):i.visitChildren(this)}},Kl=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}functionDescriptor(){return this.getTypedRuleContext(ew,0)}parameterList(){return this.getTypedRuleContext(os,0)}modifierList(){return this.getTypedRuleContext(tw,0)}block(){return this.getTypedRuleContext(On,0)}returnParameters(){return this.getTypedRuleContext(Od,0)}get ruleIndex(){return H.RULE_functionDefinition}enterRule(i){i.enterFunctionDefinition&&i.enterFunctionDefinition(this)}exitRule(i){i.exitFunctionDefinition&&i.exitFunctionDefinition(this)}accept(i){return i.visitFunctionDefinition?i.visitFunctionDefinition(this):i.visitChildren(this)}},ew=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}ConstructorKeyword(){return this.getToken(H.ConstructorKeyword,0)}FallbackKeyword(){return this.getToken(H.FallbackKeyword,0)}ReceiveKeyword(){return this.getToken(H.ReceiveKeyword,0)}get ruleIndex(){return H.RULE_functionDescriptor}enterRule(i){i.enterFunctionDescriptor&&i.enterFunctionDescriptor(this)}exitRule(i){i.exitFunctionDescriptor&&i.exitFunctionDescriptor(this)}accept(i){return i.visitFunctionDescriptor?i.visitFunctionDescriptor(this):i.visitChildren(this)}},Od=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}parameterList(){return this.getTypedRuleContext(os,0)}get ruleIndex(){return H.RULE_returnParameters}enterRule(i){i.enterReturnParameters&&i.enterReturnParameters(this)}exitRule(i){i.exitReturnParameters&&i.exitReturnParameters(this)}accept(i){return i.visitReturnParameters?i.visitReturnParameters(this):i.visitChildren(this)}},tw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}ExternalKeyword_list(){return this.getTokens(H.ExternalKeyword)}ExternalKeyword(i){return this.getToken(H.ExternalKeyword,i)}PublicKeyword_list(){return this.getTokens(H.PublicKeyword)}PublicKeyword(i){return this.getToken(H.PublicKeyword,i)}InternalKeyword_list(){return this.getTokens(H.InternalKeyword)}InternalKeyword(i){return this.getToken(H.InternalKeyword,i)}PrivateKeyword_list(){return this.getTokens(H.PrivateKeyword)}PrivateKeyword(i){return this.getToken(H.PrivateKeyword,i)}VirtualKeyword_list(){return this.getTokens(H.VirtualKeyword)}VirtualKeyword(i){return this.getToken(H.VirtualKeyword,i)}stateMutability_list(){return this.getTypedRuleContexts(no)}stateMutability(i){return this.getTypedRuleContext(no,i)}modifierInvocation_list(){return this.getTypedRuleContexts(Rd)}modifierInvocation(i){return this.getTypedRuleContext(Rd,i)}overrideSpecifier_list(){return this.getTypedRuleContexts(Mn)}overrideSpecifier(i){return this.getTypedRuleContext(Mn,i)}get ruleIndex(){return H.RULE_modifierList}enterRule(i){i.enterModifierList&&i.enterModifierList(this)}exitRule(i){i.exitModifierList&&i.exitModifierList(this)}accept(i){return i.visitModifierList?i.visitModifierList(this):i.visitChildren(this)}},Fl=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}eventParameterList(){return this.getTypedRuleContext(rw,0)}AnonymousKeyword(){return this.getToken(H.AnonymousKeyword,0)}get ruleIndex(){return H.RULE_eventDefinition}enterRule(i){i.enterEventDefinition&&i.enterEventDefinition(this)}exitRule(i){i.exitEventDefinition&&i.exitEventDefinition(this)}accept(i){return i.visitEventDefinition?i.visitEventDefinition(this):i.visitChildren(this)}},Md=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}get ruleIndex(){return H.RULE_enumValue}enterRule(i){i.enterEnumValue&&i.enterEnumValue(this)}exitRule(i){i.exitEnumValue&&i.exitEnumValue(this)}accept(i){return i.visitEnumValue?i.visitEnumValue(this):i.visitChildren(this)}},Nl=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}enumValue_list(){return this.getTypedRuleContexts(Md)}enumValue(i){return this.getTypedRuleContext(Md,i)}get ruleIndex(){return H.RULE_enumDefinition}enterRule(i){i.enterEnumDefinition&&i.enterEnumDefinition(this)}exitRule(i){i.exitEnumDefinition&&i.exitEnumDefinition(this)}accept(i){return i.visitEnumDefinition?i.visitEnumDefinition(this):i.visitChildren(this)}},os=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}parameter_list(){return this.getTypedRuleContexts(Yd)}parameter(i){return this.getTypedRuleContext(Yd,i)}get ruleIndex(){return H.RULE_parameterList}enterRule(i){i.enterParameterList&&i.enterParameterList(this)}exitRule(i){i.exitParameterList&&i.exitParameterList(this)}accept(i){return i.visitParameterList?i.visitParameterList(this):i.visitChildren(this)}},Yd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}typeName(){return this.getTypedRuleContext(Pr,0)}storageLocation(){return this.getTypedRuleContext(Pl,0)}identifier(){return this.getTypedRuleContext(Ie,0)}get ruleIndex(){return H.RULE_parameter}enterRule(i){i.enterParameter&&i.enterParameter(this)}exitRule(i){i.exitParameter&&i.exitParameter(this)}accept(i){return i.visitParameter?i.visitParameter(this):i.visitChildren(this)}},rw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}eventParameter_list(){return this.getTypedRuleContexts(Bd)}eventParameter(i){return this.getTypedRuleContext(Bd,i)}get ruleIndex(){return H.RULE_eventParameterList}enterRule(i){i.enterEventParameterList&&i.enterEventParameterList(this)}exitRule(i){i.exitEventParameterList&&i.exitEventParameterList(this)}accept(i){return i.visitEventParameterList?i.visitEventParameterList(this):i.visitChildren(this)}},Bd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}typeName(){return this.getTypedRuleContext(Pr,0)}IndexedKeyword(){return this.getToken(H.IndexedKeyword,0)}identifier(){return this.getTypedRuleContext(Ie,0)}get ruleIndex(){return H.RULE_eventParameter}enterRule(i){i.enterEventParameter&&i.enterEventParameter(this)}exitRule(i){i.exitEventParameter&&i.exitEventParameter(this)}accept(i){return i.visitEventParameter?i.visitEventParameter(this):i.visitChildren(this)}},Ud=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}functionTypeParameter_list(){return this.getTypedRuleContexts(Vd)}functionTypeParameter(i){return this.getTypedRuleContext(Vd,i)}get ruleIndex(){return H.RULE_functionTypeParameterList}enterRule(i){i.enterFunctionTypeParameterList&&i.enterFunctionTypeParameterList(this)}exitRule(i){i.exitFunctionTypeParameterList&&i.exitFunctionTypeParameterList(this)}accept(i){return i.visitFunctionTypeParameterList?i.visitFunctionTypeParameterList(this):i.visitChildren(this)}},Vd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}typeName(){return this.getTypedRuleContext(Pr,0)}storageLocation(){return this.getTypedRuleContext(Pl,0)}get ruleIndex(){return H.RULE_functionTypeParameter}enterRule(i){i.enterFunctionTypeParameter&&i.enterFunctionTypeParameter(this)}exitRule(i){i.exitFunctionTypeParameter&&i.exitFunctionTypeParameter(this)}accept(i){return i.visitFunctionTypeParameter?i.visitFunctionTypeParameter(this):i.visitChildren(this)}},as=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}typeName(){return this.getTypedRuleContext(Pr,0)}identifier(){return this.getTypedRuleContext(Ie,0)}storageLocation(){return this.getTypedRuleContext(Pl,0)}get ruleIndex(){return H.RULE_variableDeclaration}enterRule(i){i.enterVariableDeclaration&&i.enterVariableDeclaration(this)}exitRule(i){i.exitVariableDeclaration&&i.exitVariableDeclaration(this)}accept(i){return i.visitVariableDeclaration?i.visitVariableDeclaration(this):i.visitChildren(this)}},Pr=class $3 extends ie{constructor(c,a,w){super(a,w),this.parser=c}elementaryTypeName(){return this.getTypedRuleContext(kl,0)}userDefinedTypeName(){return this.getTypedRuleContext(Qi,0)}mapping(){return this.getTypedRuleContext(nw,0)}functionTypeName(){return this.getTypedRuleContext(aw,0)}PayableKeyword(){return this.getToken(H.PayableKeyword,0)}typeName(){return this.getTypedRuleContext($3,0)}expression(){return this.getTypedRuleContext(Me,0)}get ruleIndex(){return H.RULE_typeName}enterRule(c){c.enterTypeName&&c.enterTypeName(this)}exitRule(c){c.exitTypeName&&c.exitTypeName(this)}accept(c){return c.visitTypeName?c.visitTypeName(this):c.visitChildren(this)}},Qi=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier_list(){return this.getTypedRuleContexts(Ie)}identifier(i){return this.getTypedRuleContext(Ie,i)}get ruleIndex(){return H.RULE_userDefinedTypeName}enterRule(i){i.enterUserDefinedTypeName&&i.enterUserDefinedTypeName(this)}exitRule(i){i.exitUserDefinedTypeName&&i.exitUserDefinedTypeName(this)}accept(i){return i.visitUserDefinedTypeName?i.visitUserDefinedTypeName(this):i.visitChildren(this)}},iw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}elementaryTypeName(){return this.getTypedRuleContext(kl,0)}userDefinedTypeName(){return this.getTypedRuleContext(Qi,0)}get ruleIndex(){return H.RULE_mappingKey}enterRule(i){i.enterMappingKey&&i.enterMappingKey(this)}exitRule(i){i.exitMappingKey&&i.exitMappingKey(this)}accept(i){return i.visitMappingKey?i.visitMappingKey(this):i.visitChildren(this)}},nw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}mappingKey(){return this.getTypedRuleContext(iw,0)}typeName(){return this.getTypedRuleContext(Pr,0)}mappingKeyName(){return this.getTypedRuleContext(sw,0)}mappingValueName(){return this.getTypedRuleContext(ow,0)}get ruleIndex(){return H.RULE_mapping}enterRule(i){i.enterMapping&&i.enterMapping(this)}exitRule(i){i.exitMapping&&i.exitMapping(this)}accept(i){return i.visitMapping?i.visitMapping(this):i.visitChildren(this)}},sw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}get ruleIndex(){return H.RULE_mappingKeyName}enterRule(i){i.enterMappingKeyName&&i.enterMappingKeyName(this)}exitRule(i){i.exitMappingKeyName&&i.exitMappingKeyName(this)}accept(i){return i.visitMappingKeyName?i.visitMappingKeyName(this):i.visitChildren(this)}},ow=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}get ruleIndex(){return H.RULE_mappingValueName}enterRule(i){i.enterMappingValueName&&i.enterMappingValueName(this)}exitRule(i){i.exitMappingValueName&&i.exitMappingValueName(this)}accept(i){return i.visitMappingValueName?i.visitMappingValueName(this):i.visitChildren(this)}},aw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}functionTypeParameterList_list(){return this.getTypedRuleContexts(Ud)}functionTypeParameterList(i){return this.getTypedRuleContext(Ud,i)}InternalKeyword_list(){return this.getTokens(H.InternalKeyword)}InternalKeyword(i){return this.getToken(H.InternalKeyword,i)}ExternalKeyword_list(){return this.getTokens(H.ExternalKeyword)}ExternalKeyword(i){return this.getToken(H.ExternalKeyword,i)}stateMutability_list(){return this.getTypedRuleContexts(no)}stateMutability(i){return this.getTypedRuleContext(no,i)}get ruleIndex(){return H.RULE_functionTypeName}enterRule(i){i.enterFunctionTypeName&&i.enterFunctionTypeName(this)}exitRule(i){i.exitFunctionTypeName&&i.exitFunctionTypeName(this)}accept(i){return i.visitFunctionTypeName?i.visitFunctionTypeName(this):i.visitChildren(this)}},Pl=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}get ruleIndex(){return H.RULE_storageLocation}enterRule(i){i.enterStorageLocation&&i.enterStorageLocation(this)}exitRule(i){i.exitStorageLocation&&i.exitStorageLocation(this)}accept(i){return i.visitStorageLocation?i.visitStorageLocation(this):i.visitChildren(this)}},no=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}PureKeyword(){return this.getToken(H.PureKeyword,0)}ConstantKeyword(){return this.getToken(H.ConstantKeyword,0)}ViewKeyword(){return this.getToken(H.ViewKeyword,0)}PayableKeyword(){return this.getToken(H.PayableKeyword,0)}get ruleIndex(){return H.RULE_stateMutability}enterRule(i){i.enterStateMutability&&i.enterStateMutability(this)}exitRule(i){i.exitStateMutability&&i.exitStateMutability(this)}accept(i){return i.visitStateMutability?i.visitStateMutability(this):i.visitChildren(this)}},On=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}statement_list(){return this.getTypedRuleContexts(Xi)}statement(i){return this.getTypedRuleContext(Xi,i)}get ruleIndex(){return H.RULE_block}enterRule(i){i.enterBlock&&i.enterBlock(this)}exitRule(i){i.exitBlock&&i.exitBlock(this)}accept(i){return i.visitBlock?i.visitBlock(this):i.visitChildren(this)}},Xi=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}ifStatement(){return this.getTypedRuleContext(lw,0)}tryStatement(){return this.getTypedRuleContext(uw,0)}whileStatement(){return this.getTypedRuleContext(cw,0)}forStatement(){return this.getTypedRuleContext(pw,0)}block(){return this.getTypedRuleContext(On,0)}inlineAssemblyStatement(){return this.getTypedRuleContext(dw,0)}doWhileStatement(){return this.getTypedRuleContext(fw,0)}continueStatement(){return this.getTypedRuleContext(yw,0)}breakStatement(){return this.getTypedRuleContext(ww,0)}returnStatement(){return this.getTypedRuleContext(gw,0)}throwStatement(){return this.getTypedRuleContext(xw,0)}emitStatement(){return this.getTypedRuleContext(Dw,0)}simpleStatement(){return this.getTypedRuleContext(qd,0)}uncheckedStatement(){return this.getTypedRuleContext(hw,0)}revertStatement(){return this.getTypedRuleContext(bw,0)}get ruleIndex(){return H.RULE_statement}enterRule(i){i.enterStatement&&i.enterStatement(this)}exitRule(i){i.exitStatement&&i.exitStatement(this)}accept(i){return i.visitStatement?i.visitStatement(this):i.visitChildren(this)}},$d=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}expression(){return this.getTypedRuleContext(Me,0)}get ruleIndex(){return H.RULE_expressionStatement}enterRule(i){i.enterExpressionStatement&&i.enterExpressionStatement(this)}exitRule(i){i.exitExpressionStatement&&i.exitExpressionStatement(this)}accept(i){return i.visitExpressionStatement?i.visitExpressionStatement(this):i.visitChildren(this)}},lw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}expression(){return this.getTypedRuleContext(Me,0)}statement_list(){return this.getTypedRuleContexts(Xi)}statement(i){return this.getTypedRuleContext(Xi,i)}get ruleIndex(){return H.RULE_ifStatement}enterRule(i){i.enterIfStatement&&i.enterIfStatement(this)}exitRule(i){i.exitIfStatement&&i.exitIfStatement(this)}accept(i){return i.visitIfStatement?i.visitIfStatement(this):i.visitChildren(this)}},uw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}expression(){return this.getTypedRuleContext(Me,0)}block(){return this.getTypedRuleContext(On,0)}returnParameters(){return this.getTypedRuleContext(Od,0)}catchClause_list(){return this.getTypedRuleContexts(Hd)}catchClause(i){return this.getTypedRuleContext(Hd,i)}get ruleIndex(){return H.RULE_tryStatement}enterRule(i){i.enterTryStatement&&i.enterTryStatement(this)}exitRule(i){i.exitTryStatement&&i.exitTryStatement(this)}accept(i){return i.visitTryStatement?i.visitTryStatement(this):i.visitChildren(this)}},Hd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}block(){return this.getTypedRuleContext(On,0)}parameterList(){return this.getTypedRuleContext(os,0)}identifier(){return this.getTypedRuleContext(Ie,0)}get ruleIndex(){return H.RULE_catchClause}enterRule(i){i.enterCatchClause&&i.enterCatchClause(this)}exitRule(i){i.exitCatchClause&&i.exitCatchClause(this)}accept(i){return i.visitCatchClause?i.visitCatchClause(this):i.visitChildren(this)}},cw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}expression(){return this.getTypedRuleContext(Me,0)}statement(){return this.getTypedRuleContext(Xi,0)}get ruleIndex(){return H.RULE_whileStatement}enterRule(i){i.enterWhileStatement&&i.enterWhileStatement(this)}exitRule(i){i.exitWhileStatement&&i.exitWhileStatement(this)}accept(i){return i.visitWhileStatement?i.visitWhileStatement(this):i.visitChildren(this)}},qd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}variableDeclarationStatement(){return this.getTypedRuleContext(Ew,0)}expressionStatement(){return this.getTypedRuleContext($d,0)}get ruleIndex(){return H.RULE_simpleStatement}enterRule(i){i.enterSimpleStatement&&i.enterSimpleStatement(this)}exitRule(i){i.exitSimpleStatement&&i.exitSimpleStatement(this)}accept(i){return i.visitSimpleStatement?i.visitSimpleStatement(this):i.visitChildren(this)}},hw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}block(){return this.getTypedRuleContext(On,0)}get ruleIndex(){return H.RULE_uncheckedStatement}enterRule(i){i.enterUncheckedStatement&&i.enterUncheckedStatement(this)}exitRule(i){i.exitUncheckedStatement&&i.exitUncheckedStatement(this)}accept(i){return i.visitUncheckedStatement?i.visitUncheckedStatement(this):i.visitChildren(this)}},pw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}statement(){return this.getTypedRuleContext(Xi,0)}simpleStatement(){return this.getTypedRuleContext(qd,0)}expressionStatement(){return this.getTypedRuleContext($d,0)}expression(){return this.getTypedRuleContext(Me,0)}get ruleIndex(){return H.RULE_forStatement}enterRule(i){i.enterForStatement&&i.enterForStatement(this)}exitRule(i){i.exitForStatement&&i.exitForStatement(this)}accept(i){return i.visitForStatement?i.visitForStatement(this):i.visitChildren(this)}},dw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}assemblyBlock(){return this.getTypedRuleContext(Ji,0)}StringLiteralFragment(){return this.getToken(H.StringLiteralFragment,0)}inlineAssemblyStatementFlag(){return this.getTypedRuleContext(mw,0)}get ruleIndex(){return H.RULE_inlineAssemblyStatement}enterRule(i){i.enterInlineAssemblyStatement&&i.enterInlineAssemblyStatement(this)}exitRule(i){i.exitInlineAssemblyStatement&&i.exitInlineAssemblyStatement(this)}accept(i){return i.visitInlineAssemblyStatement?i.visitInlineAssemblyStatement(this):i.visitChildren(this)}},mw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}stringLiteral(){return this.getTypedRuleContext(so,0)}get ruleIndex(){return H.RULE_inlineAssemblyStatementFlag}enterRule(i){i.enterInlineAssemblyStatementFlag&&i.enterInlineAssemblyStatementFlag(this)}exitRule(i){i.exitInlineAssemblyStatementFlag&&i.exitInlineAssemblyStatementFlag(this)}accept(i){return i.visitInlineAssemblyStatementFlag?i.visitInlineAssemblyStatementFlag(this):i.visitChildren(this)}},fw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}statement(){return this.getTypedRuleContext(Xi,0)}expression(){return this.getTypedRuleContext(Me,0)}get ruleIndex(){return H.RULE_doWhileStatement}enterRule(i){i.enterDoWhileStatement&&i.enterDoWhileStatement(this)}exitRule(i){i.exitDoWhileStatement&&i.exitDoWhileStatement(this)}accept(i){return i.visitDoWhileStatement?i.visitDoWhileStatement(this):i.visitChildren(this)}},yw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}ContinueKeyword(){return this.getToken(H.ContinueKeyword,0)}get ruleIndex(){return H.RULE_continueStatement}enterRule(i){i.enterContinueStatement&&i.enterContinueStatement(this)}exitRule(i){i.exitContinueStatement&&i.exitContinueStatement(this)}accept(i){return i.visitContinueStatement?i.visitContinueStatement(this):i.visitChildren(this)}},ww=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}BreakKeyword(){return this.getToken(H.BreakKeyword,0)}get ruleIndex(){return H.RULE_breakStatement}enterRule(i){i.enterBreakStatement&&i.enterBreakStatement(this)}exitRule(i){i.exitBreakStatement&&i.exitBreakStatement(this)}accept(i){return i.visitBreakStatement?i.visitBreakStatement(this):i.visitChildren(this)}},gw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}expression(){return this.getTypedRuleContext(Me,0)}get ruleIndex(){return H.RULE_returnStatement}enterRule(i){i.enterReturnStatement&&i.enterReturnStatement(this)}exitRule(i){i.exitReturnStatement&&i.exitReturnStatement(this)}accept(i){return i.visitReturnStatement?i.visitReturnStatement(this):i.visitChildren(this)}},xw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}get ruleIndex(){return H.RULE_throwStatement}enterRule(i){i.enterThrowStatement&&i.enterThrowStatement(this)}exitRule(i){i.exitThrowStatement&&i.exitThrowStatement(this)}accept(i){return i.visitThrowStatement?i.visitThrowStatement(this):i.visitChildren(this)}},Dw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}functionCall(){return this.getTypedRuleContext(zd,0)}get ruleIndex(){return H.RULE_emitStatement}enterRule(i){i.enterEmitStatement&&i.enterEmitStatement(this)}exitRule(i){i.exitEmitStatement&&i.exitEmitStatement(this)}accept(i){return i.visitEmitStatement?i.visitEmitStatement(this):i.visitChildren(this)}},bw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}functionCall(){return this.getTypedRuleContext(zd,0)}get ruleIndex(){return H.RULE_revertStatement}enterRule(i){i.enterRevertStatement&&i.enterRevertStatement(this)}exitRule(i){i.exitRevertStatement&&i.exitRevertStatement(this)}accept(i){return i.visitRevertStatement?i.visitRevertStatement(this):i.visitChildren(this)}},Ew=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifierList(){return this.getTypedRuleContext(Sw,0)}variableDeclaration(){return this.getTypedRuleContext(as,0)}variableDeclarationList(){return this.getTypedRuleContext(Cw,0)}expression(){return this.getTypedRuleContext(Me,0)}get ruleIndex(){return H.RULE_variableDeclarationStatement}enterRule(i){i.enterVariableDeclarationStatement&&i.enterVariableDeclarationStatement(this)}exitRule(i){i.exitVariableDeclarationStatement&&i.exitVariableDeclarationStatement(this)}accept(i){return i.visitVariableDeclarationStatement?i.visitVariableDeclarationStatement(this):i.visitChildren(this)}},Cw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}variableDeclaration_list(){return this.getTypedRuleContexts(as)}variableDeclaration(i){return this.getTypedRuleContext(as,i)}get ruleIndex(){return H.RULE_variableDeclarationList}enterRule(i){i.enterVariableDeclarationList&&i.enterVariableDeclarationList(this)}exitRule(i){i.exitVariableDeclarationList&&i.exitVariableDeclarationList(this)}accept(i){return i.visitVariableDeclarationList?i.visitVariableDeclarationList(this):i.visitChildren(this)}},Sw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier_list(){return this.getTypedRuleContexts(Ie)}identifier(i){return this.getTypedRuleContext(Ie,i)}get ruleIndex(){return H.RULE_identifierList}enterRule(i){i.enterIdentifierList&&i.enterIdentifierList(this)}exitRule(i){i.exitIdentifierList&&i.exitIdentifierList(this)}accept(i){return i.visitIdentifierList?i.visitIdentifierList(this):i.visitChildren(this)}},kl=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}Int(){return this.getToken(H.Int,0)}Uint(){return this.getToken(H.Uint,0)}Byte(){return this.getToken(H.Byte,0)}Fixed(){return this.getToken(H.Fixed,0)}Ufixed(){return this.getToken(H.Ufixed,0)}get ruleIndex(){return H.RULE_elementaryTypeName}enterRule(i){i.enterElementaryTypeName&&i.enterElementaryTypeName(this)}exitRule(i){i.exitElementaryTypeName&&i.exitElementaryTypeName(this)}accept(i){return i.visitElementaryTypeName?i.visitElementaryTypeName(this):i.visitChildren(this)}},Me=class o0 extends ie{constructor(c,a,w){super(a,w),this.parser=c}typeName(){return this.getTypedRuleContext(Pr,0)}expression_list(){return this.getTypedRuleContexts(o0)}expression(c){return this.getTypedRuleContext(o0,c)}primaryExpression(){return this.getTypedRuleContext(vw,0)}identifier(){return this.getTypedRuleContext(Ie,0)}nameValueList(){return this.getTypedRuleContext(jd,0)}functionCallArguments(){return this.getTypedRuleContext(Wd,0)}get ruleIndex(){return H.RULE_expression}enterRule(c){c.enterExpression&&c.enterExpression(this)}exitRule(c){c.exitExpression&&c.exitExpression(this)}accept(c){return c.visitExpression?c.visitExpression(this):c.visitChildren(this)}},vw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}BooleanLiteral(){return this.getToken(H.BooleanLiteral,0)}numberLiteral(){return this.getTypedRuleContext(t1,0)}hexLiteral(){return this.getTypedRuleContext(Rl,0)}stringLiteral(){return this.getTypedRuleContext(so,0)}identifier(){return this.getTypedRuleContext(Ie,0)}TypeKeyword(){return this.getToken(H.TypeKeyword,0)}PayableKeyword(){return this.getToken(H.PayableKeyword,0)}tupleExpression(){return this.getTypedRuleContext(Rw,0)}typeName(){return this.getTypedRuleContext(Pr,0)}get ruleIndex(){return H.RULE_primaryExpression}enterRule(i){i.enterPrimaryExpression&&i.enterPrimaryExpression(this)}exitRule(i){i.exitPrimaryExpression&&i.exitPrimaryExpression(this)}accept(i){return i.visitPrimaryExpression?i.visitPrimaryExpression(this):i.visitChildren(this)}},Ll=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}expression_list(){return this.getTypedRuleContexts(Me)}expression(i){return this.getTypedRuleContext(Me,i)}get ruleIndex(){return H.RULE_expressionList}enterRule(i){i.enterExpressionList&&i.enterExpressionList(this)}exitRule(i){i.exitExpressionList&&i.exitExpressionList(this)}accept(i){return i.visitExpressionList?i.visitExpressionList(this):i.visitChildren(this)}},jd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}nameValue_list(){return this.getTypedRuleContexts(Gd)}nameValue(i){return this.getTypedRuleContext(Gd,i)}get ruleIndex(){return H.RULE_nameValueList}enterRule(i){i.enterNameValueList&&i.enterNameValueList(this)}exitRule(i){i.exitNameValueList&&i.exitNameValueList(this)}accept(i){return i.visitNameValueList?i.visitNameValueList(this):i.visitChildren(this)}},Gd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}expression(){return this.getTypedRuleContext(Me,0)}get ruleIndex(){return H.RULE_nameValue}enterRule(i){i.enterNameValue&&i.enterNameValue(this)}exitRule(i){i.exitNameValue&&i.exitNameValue(this)}accept(i){return i.visitNameValue?i.visitNameValue(this):i.visitChildren(this)}},Wd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}nameValueList(){return this.getTypedRuleContext(jd,0)}expressionList(){return this.getTypedRuleContext(Ll,0)}get ruleIndex(){return H.RULE_functionCallArguments}enterRule(i){i.enterFunctionCallArguments&&i.enterFunctionCallArguments(this)}exitRule(i){i.exitFunctionCallArguments&&i.exitFunctionCallArguments(this)}accept(i){return i.visitFunctionCallArguments?i.visitFunctionCallArguments(this):i.visitChildren(this)}},zd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}expression(){return this.getTypedRuleContext(Me,0)}functionCallArguments(){return this.getTypedRuleContext(Wd,0)}get ruleIndex(){return H.RULE_functionCall}enterRule(i){i.enterFunctionCall&&i.enterFunctionCall(this)}exitRule(i){i.exitFunctionCall&&i.exitFunctionCall(this)}accept(i){return i.visitFunctionCall?i.visitFunctionCall(this):i.visitChildren(this)}},Ji=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}assemblyItem_list(){return this.getTypedRuleContexts(Qd)}assemblyItem(i){return this.getTypedRuleContext(Qd,i)}get ruleIndex(){return H.RULE_assemblyBlock}enterRule(i){i.enterAssemblyBlock&&i.enterAssemblyBlock(this)}exitRule(i){i.exitAssemblyBlock&&i.exitAssemblyBlock(this)}accept(i){return i.visitAssemblyBlock?i.visitAssemblyBlock(this):i.visitChildren(this)}},Qd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}assemblyBlock(){return this.getTypedRuleContext(Ji,0)}assemblyExpression(){return this.getTypedRuleContext(Xr,0)}assemblyLocalDefinition(){return this.getTypedRuleContext(Aw,0)}assemblyAssignment(){return this.getTypedRuleContext(_w,0)}assemblyStackAssignment(){return this.getTypedRuleContext(Kw,0)}labelDefinition(){return this.getTypedRuleContext(Fw,0)}assemblySwitch(){return this.getTypedRuleContext(Nw,0)}assemblyFunctionDefinition(){return this.getTypedRuleContext(Pw,0)}assemblyFor(){return this.getTypedRuleContext(Lw,0)}assemblyIf(){return this.getTypedRuleContext(Iw,0)}BreakKeyword(){return this.getToken(H.BreakKeyword,0)}ContinueKeyword(){return this.getToken(H.ContinueKeyword,0)}LeaveKeyword(){return this.getToken(H.LeaveKeyword,0)}numberLiteral(){return this.getTypedRuleContext(t1,0)}stringLiteral(){return this.getTypedRuleContext(so,0)}hexLiteral(){return this.getTypedRuleContext(Rl,0)}get ruleIndex(){return H.RULE_assemblyItem}enterRule(i){i.enterAssemblyItem&&i.enterAssemblyItem(this)}exitRule(i){i.exitAssemblyItem&&i.exitAssemblyItem(this)}accept(i){return i.visitAssemblyItem?i.visitAssemblyItem(this):i.visitChildren(this)}},Xr=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}assemblyCall(){return this.getTypedRuleContext(Tw,0)}assemblyLiteral(){return this.getTypedRuleContext(e1,0)}assemblyMember(){return this.getTypedRuleContext(Xd,0)}get ruleIndex(){return H.RULE_assemblyExpression}enterRule(i){i.enterAssemblyExpression&&i.enterAssemblyExpression(this)}exitRule(i){i.exitAssemblyExpression&&i.exitAssemblyExpression(this)}accept(i){return i.visitAssemblyExpression?i.visitAssemblyExpression(this):i.visitChildren(this)}},Xd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier_list(){return this.getTypedRuleContexts(Ie)}identifier(i){return this.getTypedRuleContext(Ie,i)}get ruleIndex(){return H.RULE_assemblyMember}enterRule(i){i.enterAssemblyMember&&i.enterAssemblyMember(this)}exitRule(i){i.exitAssemblyMember&&i.exitAssemblyMember(this)}accept(i){return i.visitAssemblyMember?i.visitAssemblyMember(this):i.visitChildren(this)}},Tw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}assemblyExpression_list(){return this.getTypedRuleContexts(Xr)}assemblyExpression(i){return this.getTypedRuleContext(Xr,i)}get ruleIndex(){return H.RULE_assemblyCall}enterRule(i){i.enterAssemblyCall&&i.enterAssemblyCall(this)}exitRule(i){i.exitAssemblyCall&&i.exitAssemblyCall(this)}accept(i){return i.visitAssemblyCall?i.visitAssemblyCall(this):i.visitChildren(this)}},Aw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}assemblyIdentifierOrList(){return this.getTypedRuleContext(Jd,0)}assemblyExpression(){return this.getTypedRuleContext(Xr,0)}get ruleIndex(){return H.RULE_assemblyLocalDefinition}enterRule(i){i.enterAssemblyLocalDefinition&&i.enterAssemblyLocalDefinition(this)}exitRule(i){i.exitAssemblyLocalDefinition&&i.exitAssemblyLocalDefinition(this)}accept(i){return i.visitAssemblyLocalDefinition?i.visitAssemblyLocalDefinition(this):i.visitChildren(this)}},_w=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}assemblyIdentifierOrList(){return this.getTypedRuleContext(Jd,0)}assemblyExpression(){return this.getTypedRuleContext(Xr,0)}get ruleIndex(){return H.RULE_assemblyAssignment}enterRule(i){i.enterAssemblyAssignment&&i.enterAssemblyAssignment(this)}exitRule(i){i.exitAssemblyAssignment&&i.exitAssemblyAssignment(this)}accept(i){return i.visitAssemblyAssignment?i.visitAssemblyAssignment(this):i.visitChildren(this)}},Jd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}assemblyMember(){return this.getTypedRuleContext(Xd,0)}assemblyIdentifierList(){return this.getTypedRuleContext(Il,0)}get ruleIndex(){return H.RULE_assemblyIdentifierOrList}enterRule(i){i.enterAssemblyIdentifierOrList&&i.enterAssemblyIdentifierOrList(this)}exitRule(i){i.exitAssemblyIdentifierOrList&&i.exitAssemblyIdentifierOrList(this)}accept(i){return i.visitAssemblyIdentifierOrList?i.visitAssemblyIdentifierOrList(this):i.visitChildren(this)}},Il=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier_list(){return this.getTypedRuleContexts(Ie)}identifier(i){return this.getTypedRuleContext(Ie,i)}get ruleIndex(){return H.RULE_assemblyIdentifierList}enterRule(i){i.enterAssemblyIdentifierList&&i.enterAssemblyIdentifierList(this)}exitRule(i){i.exitAssemblyIdentifierList&&i.exitAssemblyIdentifierList(this)}accept(i){return i.visitAssemblyIdentifierList?i.visitAssemblyIdentifierList(this):i.visitChildren(this)}},Kw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}assemblyExpression(){return this.getTypedRuleContext(Xr,0)}identifier(){return this.getTypedRuleContext(Ie,0)}get ruleIndex(){return H.RULE_assemblyStackAssignment}enterRule(i){i.enterAssemblyStackAssignment&&i.enterAssemblyStackAssignment(this)}exitRule(i){i.exitAssemblyStackAssignment&&i.exitAssemblyStackAssignment(this)}accept(i){return i.visitAssemblyStackAssignment?i.visitAssemblyStackAssignment(this):i.visitChildren(this)}},Fw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}get ruleIndex(){return H.RULE_labelDefinition}enterRule(i){i.enterLabelDefinition&&i.enterLabelDefinition(this)}exitRule(i){i.exitLabelDefinition&&i.exitLabelDefinition(this)}accept(i){return i.visitLabelDefinition?i.visitLabelDefinition(this):i.visitChildren(this)}},Nw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}assemblyExpression(){return this.getTypedRuleContext(Xr,0)}assemblyCase_list(){return this.getTypedRuleContexts(Zd)}assemblyCase(i){return this.getTypedRuleContext(Zd,i)}get ruleIndex(){return H.RULE_assemblySwitch}enterRule(i){i.enterAssemblySwitch&&i.enterAssemblySwitch(this)}exitRule(i){i.exitAssemblySwitch&&i.exitAssemblySwitch(this)}accept(i){return i.visitAssemblySwitch?i.visitAssemblySwitch(this):i.visitChildren(this)}},Zd=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}assemblyLiteral(){return this.getTypedRuleContext(e1,0)}assemblyBlock(){return this.getTypedRuleContext(Ji,0)}get ruleIndex(){return H.RULE_assemblyCase}enterRule(i){i.enterAssemblyCase&&i.enterAssemblyCase(this)}exitRule(i){i.exitAssemblyCase&&i.exitAssemblyCase(this)}accept(i){return i.visitAssemblyCase?i.visitAssemblyCase(this):i.visitChildren(this)}},Pw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}identifier(){return this.getTypedRuleContext(Ie,0)}assemblyBlock(){return this.getTypedRuleContext(Ji,0)}assemblyIdentifierList(){return this.getTypedRuleContext(Il,0)}assemblyFunctionReturns(){return this.getTypedRuleContext(kw,0)}get ruleIndex(){return H.RULE_assemblyFunctionDefinition}enterRule(i){i.enterAssemblyFunctionDefinition&&i.enterAssemblyFunctionDefinition(this)}exitRule(i){i.exitAssemblyFunctionDefinition&&i.exitAssemblyFunctionDefinition(this)}accept(i){return i.visitAssemblyFunctionDefinition?i.visitAssemblyFunctionDefinition(this):i.visitChildren(this)}},kw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}assemblyIdentifierList(){return this.getTypedRuleContext(Il,0)}get ruleIndex(){return H.RULE_assemblyFunctionReturns}enterRule(i){i.enterAssemblyFunctionReturns&&i.enterAssemblyFunctionReturns(this)}exitRule(i){i.exitAssemblyFunctionReturns&&i.exitAssemblyFunctionReturns(this)}accept(i){return i.visitAssemblyFunctionReturns?i.visitAssemblyFunctionReturns(this):i.visitChildren(this)}},Lw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}assemblyExpression_list(){return this.getTypedRuleContexts(Xr)}assemblyExpression(i){return this.getTypedRuleContext(Xr,i)}assemblyBlock_list(){return this.getTypedRuleContexts(Ji)}assemblyBlock(i){return this.getTypedRuleContext(Ji,i)}get ruleIndex(){return H.RULE_assemblyFor}enterRule(i){i.enterAssemblyFor&&i.enterAssemblyFor(this)}exitRule(i){i.exitAssemblyFor&&i.exitAssemblyFor(this)}accept(i){return i.visitAssemblyFor?i.visitAssemblyFor(this):i.visitChildren(this)}},Iw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}assemblyExpression(){return this.getTypedRuleContext(Xr,0)}assemblyBlock(){return this.getTypedRuleContext(Ji,0)}get ruleIndex(){return H.RULE_assemblyIf}enterRule(i){i.enterAssemblyIf&&i.enterAssemblyIf(this)}exitRule(i){i.exitAssemblyIf&&i.exitAssemblyIf(this)}accept(i){return i.visitAssemblyIf?i.visitAssemblyIf(this):i.visitChildren(this)}},e1=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}stringLiteral(){return this.getTypedRuleContext(so,0)}DecimalNumber(){return this.getToken(H.DecimalNumber,0)}HexNumber(){return this.getToken(H.HexNumber,0)}hexLiteral(){return this.getTypedRuleContext(Rl,0)}BooleanLiteral(){return this.getToken(H.BooleanLiteral,0)}get ruleIndex(){return H.RULE_assemblyLiteral}enterRule(i){i.enterAssemblyLiteral&&i.enterAssemblyLiteral(this)}exitRule(i){i.exitAssemblyLiteral&&i.exitAssemblyLiteral(this)}accept(i){return i.visitAssemblyLiteral?i.visitAssemblyLiteral(this):i.visitChildren(this)}},Rw=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}expression_list(){return this.getTypedRuleContexts(Me)}expression(i){return this.getTypedRuleContext(Me,i)}get ruleIndex(){return H.RULE_tupleExpression}enterRule(i){i.enterTupleExpression&&i.enterTupleExpression(this)}exitRule(i){i.exitTupleExpression&&i.exitTupleExpression(this)}accept(i){return i.visitTupleExpression?i.visitTupleExpression(this):i.visitChildren(this)}},t1=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}DecimalNumber(){return this.getToken(H.DecimalNumber,0)}HexNumber(){return this.getToken(H.HexNumber,0)}NumberUnit(){return this.getToken(H.NumberUnit,0)}get ruleIndex(){return H.RULE_numberLiteral}enterRule(i){i.enterNumberLiteral&&i.enterNumberLiteral(this)}exitRule(i){i.exitNumberLiteral&&i.exitNumberLiteral(this)}accept(i){return i.visitNumberLiteral?i.visitNumberLiteral(this):i.visitChildren(this)}},Ie=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}ReceiveKeyword(){return this.getToken(H.ReceiveKeyword,0)}GlobalKeyword(){return this.getToken(H.GlobalKeyword,0)}ConstructorKeyword(){return this.getToken(H.ConstructorKeyword,0)}PayableKeyword(){return this.getToken(H.PayableKeyword,0)}LeaveKeyword(){return this.getToken(H.LeaveKeyword,0)}Identifier(){return this.getToken(H.Identifier,0)}get ruleIndex(){return H.RULE_identifier}enterRule(i){i.enterIdentifier&&i.enterIdentifier(this)}exitRule(i){i.exitIdentifier&&i.exitIdentifier(this)}accept(i){return i.visitIdentifier?i.visitIdentifier(this):i.visitChildren(this)}},Rl=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}HexLiteralFragment_list(){return this.getTokens(H.HexLiteralFragment)}HexLiteralFragment(i){return this.getToken(H.HexLiteralFragment,i)}get ruleIndex(){return H.RULE_hexLiteral}enterRule(i){i.enterHexLiteral&&i.enterHexLiteral(this)}exitRule(i){i.exitHexLiteral&&i.exitHexLiteral(this)}accept(i){return i.visitHexLiteral?i.visitHexLiteral(this):i.visitChildren(this)}},Mn=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}userDefinedTypeName_list(){return this.getTypedRuleContexts(Qi)}userDefinedTypeName(i){return this.getTypedRuleContext(Qi,i)}get ruleIndex(){return H.RULE_overrideSpecifier}enterRule(i){i.enterOverrideSpecifier&&i.enterOverrideSpecifier(this)}exitRule(i){i.exitOverrideSpecifier&&i.exitOverrideSpecifier(this)}accept(i){return i.visitOverrideSpecifier?i.visitOverrideSpecifier(this):i.visitChildren(this)}},so=class extends ie{constructor(i,c,a){super(c,a),this.parser=i}StringLiteralFragment_list(){return this.getTokens(H.StringLiteralFragment)}StringLiteralFragment(i){return this.getToken(H.StringLiteralFragment,i)}get ruleIndex(){return H.RULE_stringLiteral}enterRule(i){i.enterStringLiteral&&i.enterStringLiteral(this)}exitRule(i){i.exitStringLiteral&&i.exitStringLiteral(this)}accept(i){return i.visitStringLiteral?i.visitStringLiteral(this):i.visitChildren(this)}},uE=["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"],cE=["+","-","*","/","**","%","<<",">>","&&","||","&","^","<",">","<=",">=","==","!=","=","^=","&=","<<=",">>=","+=","-=","*=","/=","%=","|","|="],hE=["-","+","++","--","~","after","delete","!"],pE=class extends sE{constructor(i){super(),this.options=i,this.result=null}defaultResult(){throw new Error("Unknown node")}aggregateResult(){return{type:""}}visitSourceUnit(i){let a={type:"SourceUnit",children:(i.children??[]).slice(0,-1).map(q=>this.visit(q))},w=this._addMeta(a,i);return this.result=w,w}visitContractPart(i){return this.visit(i.getChild(0))}visitContractDefinition(i){let c=this._toText(i.identifier()),a=this._toText(i.getChild(0));this._currentContract=c;let w=i.customStorageLayout_list();if(w.length>1)throw new Error("Only one custom storage layout is allowed per contract");let q={type:"ContractDefinition",name:c,baseContracts:i.inheritanceSpecifier_list().map(he=>this.visitInheritanceSpecifier(he)),subNodes:i.contractPart_list().map(he=>this.visit(he)),kind:a};return w.length===1&&(q.storageLayout=this.visitExpression(w[0].expression())),this._addMeta(q,i)}visitStateVariableDeclaration(i){let c=this.visitTypeName(i.typeName()),a=i.identifier(),w=this._toText(a),q=null,he=i.expression();he&&(q=this.visitExpression(he));let pe="default";i.InternalKeyword_list().length>0?pe="internal":i.PublicKeyword_list().length>0?pe="public":i.PrivateKeyword_list().length>0&&(pe="private");let le=!1;i.ConstantKeyword_list().length>0&&(le=!0);let be,He=i.overrideSpecifier_list();He.length===0?be=null:be=He[0].userDefinedTypeName_list().map(Zi=>this.visitUserDefinedTypeName(Zi));let je=!1;i.ImmutableKeyword_list().length>0&&(je=!0);let _e=!1;i.TransientKeyword_list().length>0&&(_e=!0);let kr={type:"VariableDeclaration",typeName:c,name:w,identifier:this.visitIdentifier(a),expression:q,visibility:pe,isStateVar:!0,isDeclaredConst:le,isIndexed:!1,isImmutable:je,isTransient:_e,override:be,storageLocation:null},gr={type:"StateVariableDeclaration",variables:[this._addMeta(kr,i)],initialValue:q};return this._addMeta(gr,i)}visitVariableDeclaration(i){let c=null,a=i.storageLocation();a&&(c=this._toText(a));let w=i.identifier(),q={type:"VariableDeclaration",typeName:this.visitTypeName(i.typeName()),name:this._toText(w),identifier:this.visitIdentifier(w),storageLocation:c,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(q,i)}visitVariableDeclarationStatement(i){let c=[],a=i.variableDeclaration(),w=i.identifierList(),q=i.variableDeclarationList();a?c=[this.visitVariableDeclaration(a)]:w?c=this.buildIdentifierList(w):q&&(c=this.buildVariableDeclarationList(q));let he=null,pe=i.expression();pe&&(he=this.visitExpression(pe));let le={type:"VariableDeclarationStatement",variables:c,initialValue:he};return this._addMeta(le,i)}visitStatement(i){return this.visit(i.getChild(0))}visitSimpleStatement(i){return this.visit(i.getChild(0))}visitEventDefinition(i){let c=i.eventParameterList().eventParameter_list().map(w=>{let q=this.visitTypeName(w.typeName()),he=null,pe=w.identifier();pe&&(he=this._toText(pe));let le={type:"VariableDeclaration",typeName:q,name:he,identifier:pe?this.visitIdentifier(pe):null,isStateVar:!1,isIndexed:!!w.IndexedKeyword(),storageLocation:null,expression:null};return this._addMeta(le,w)}),a={type:"EventDefinition",name:this._toText(i.identifier()),parameters:c,isAnonymous:!!i.AnonymousKeyword()};return this._addMeta(a,i)}visitBlock(i){let c={type:"Block",statements:i.statement_list().map(a=>this.visitStatement(a))};return this._addMeta(c,i)}visitParameter(i){let c=null,a=i.storageLocation();a&&(c=this._toText(a));let w=null,q=i.identifier();q&&(w=this._toText(q));let he={type:"VariableDeclaration",typeName:this.visitTypeName(i.typeName()),name:w,identifier:q?this.visitIdentifier(q):null,storageLocation:c,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(he,i)}visitFunctionDefinition(i){let c=!1,a=!1,w=!1,q=!1,he=null,pe=[],le=null,be=null,He=i.block();He&&(be=this.visitBlock(He));let je=i.modifierList().modifierInvocation_list().map(Ae=>this.visitModifierInvocation(Ae)),_e=null;i.modifierList().stateMutability_list().length>0&&(_e=this._stateMutabilityToText(i.modifierList().stateMutability(0)));let kr=i.returnParameters(),gr="default";switch(i.modifierList().ExternalKeyword_list().length>0?gr="external":i.modifierList().InternalKeyword_list().length>0?gr="internal":i.modifierList().PublicKeyword_list().length>0?gr="public":i.modifierList().PrivateKeyword_list().length>0&&(gr="private"),this._toText(i.functionDescriptor().getChild(0))){case"constructor":pe=i.parameterList().parameter_list().map(Ae=>this.visit(Ae)),c=!0;break;case"fallback":pe=i.parameterList().parameter_list().map(Ae=>this.visit(Ae)),le=kr?this.visitReturnParameters(kr):null,a=!0;break;case"receive":w=!0;break;case"function":{let Ae=i.functionDescriptor().identifier();he=Ae?this._toText(Ae):"",pe=i.parameterList().parameter_list().map(Yt=>this.visit(Yt)),le=kr?this.visitReturnParameters(kr):null,c=he===this._currentContract,a=he==="";break}}i.modifierList().VirtualKeyword_list().length>0&&(q=!0);let Zi,oo=i.modifierList().overrideSpecifier_list();oo.length===0?Zi=null:Zi=oo[0].userDefinedTypeName_list().map(Ae=>this.visitUserDefinedTypeName(Ae));let tt={type:"FunctionDefinition",name:he,parameters:pe,returnParameters:le,body:be,visibility:gr,modifiers:je,override:Zi,isConstructor:c,isReceiveEther:w,isFallback:a,isVirtual:q,stateMutability:_e};return this._addMeta(tt,i)}visitEnumDefinition(i){let c={type:"EnumDefinition",name:this._toText(i.identifier()),members:i.enumValue_list().map(a=>this.visitEnumValue(a))};return this._addMeta(c,i)}visitEnumValue(i){let c={type:"EnumValue",name:this._toText(i.identifier())};return this._addMeta(c,i)}visitElementaryTypeName(i){let c={type:"ElementaryTypeName",name:this._toText(i),stateMutability:null};return this._addMeta(c,i)}visitIdentifier(i){let c={type:"Identifier",name:this._toText(i)};return this._addMeta(c,i)}visitTypeName(i){if(i.children&&i.children.length>2){let c=null;if(i.children.length===4){let w=i.expression();if(w==null)throw new Error("Assertion error: a typeName with 4 children should have an expression");c=this.visitExpression(w)}let a={type:"ArrayTypeName",baseTypeName:this.visitTypeName(i.typeName()),length:c};return this._addMeta(a,i)}if(i.children?.length===2){let c={type:"ElementaryTypeName",name:this._toText(i.getChild(0)),stateMutability:this._toText(i.getChild(1))};return this._addMeta(c,i)}if(i.elementaryTypeName())return this.visitElementaryTypeName(i.elementaryTypeName());if(i.userDefinedTypeName())return this.visitUserDefinedTypeName(i.userDefinedTypeName());if(i.mapping())return this.visitMapping(i.mapping());if(i.functionTypeName())return this.visitFunctionTypeName(i.functionTypeName());throw new Error("Assertion error: unhandled type name case")}visitUserDefinedTypeName(i){let c={type:"UserDefinedTypeName",namePath:this._toText(i)};return this._addMeta(c,i)}visitUsingForDeclaration(i){let c=null,a=i.typeName();a&&(c=this.visitTypeName(a));let w=!!i.GlobalKeyword(),q=i.usingForObject(),he=q.userDefinedTypeName(),pe;if(he)pe={type:"UsingForDeclaration",isGlobal:w,typeName:c,libraryName:this._toText(he),functions:[],operators:[]};else{let le=q.usingForObjectDirective_list(),be=[],He=[];for(let je of le){be.push(this._toText(je.userDefinedTypeName()));let _e=je.userDefinableOperators();_e?He.push(this._toText(_e)):He.push(null)}pe={type:"UsingForDeclaration",isGlobal:w,typeName:c,libraryName:null,functions:be,operators:He}}return this._addMeta(pe,i)}visitPragmaDirective(i){let c=i.pragmaValue().version(),a=this._toText(i.pragmaValue());c?.children&&(a=c.children.map(q=>this._toText(q)).join(" "));let w={type:"PragmaDirective",name:this._toText(i.pragmaName()),value:a};return this._addMeta(w,i)}visitInheritanceSpecifier(i){let c=i.expressionList(),a=c?c.expression_list().map(q=>this.visitExpression(q)):[],w={type:"InheritanceSpecifier",baseName:this.visitUserDefinedTypeName(i.userDefinedTypeName()),arguments:a};return this._addMeta(w,i)}visitModifierInvocation(i){let c=i.expressionList(),a;c!=null?a=c.expression_list().map(q=>this.visit(q)):i.children&&i.children.length>1?a=[]:a=null;let w={type:"ModifierInvocation",name:this._toText(i.identifier()),arguments:a};return this._addMeta(w,i)}visitFunctionTypeName(i){let c=i.functionTypeParameterList(0).functionTypeParameter_list().map(pe=>this.visitFunctionTypeParameter(pe)),a=[];i.functionTypeParameterList_list().length>1&&(a=i.functionTypeParameterList(1).functionTypeParameter_list().map(pe=>this.visitFunctionTypeParameter(pe)));let w="default";i.InternalKeyword_list().length>0?w="internal":i.ExternalKeyword_list().length>0&&(w="external");let q=null;i.stateMutability_list().length>0&&(q=this._toText(i.stateMutability(0)));let he={type:"FunctionTypeName",parameterTypes:c,returnTypes:a,visibility:w,stateMutability:q};return this._addMeta(he,i)}visitFunctionTypeParameter(i){let c=null;i.storageLocation()&&(c=this._toText(i.storageLocation()));let a={type:"VariableDeclaration",typeName:this.visitTypeName(i.typeName()),name:null,identifier:null,storageLocation:c,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(a,i)}visitThrowStatement(i){let c={type:"ThrowStatement"};return this._addMeta(c,i)}visitReturnStatement(i){let c=null,a=i.expression();a&&(c=this.visitExpression(a));let w={type:"ReturnStatement",expression:c};return this._addMeta(w,i)}visitEmitStatement(i){let c={type:"EmitStatement",eventCall:this.visitFunctionCall(i.functionCall())};return this._addMeta(c,i)}visitCustomErrorDefinition(i){let c={type:"CustomErrorDefinition",name:this._toText(i.identifier()),parameters:this.visitParameterList(i.parameterList())};return this._addMeta(c,i)}visitTypeDefinition(i){let c={type:"TypeDefinition",name:this._toText(i.identifier()),definition:this.visitElementaryTypeName(i.elementaryTypeName())};return this._addMeta(c,i)}visitRevertStatement(i){let c={type:"RevertStatement",revertCall:this.visitFunctionCall(i.functionCall())};return this._addMeta(c,i)}visitFunctionCall(i){let c=[],a=[],w=[],q=i.functionCallArguments(),he=q.expressionList(),pe=q.nameValueList();if(he)c=he.expression_list().map(be=>this.visitExpression(be));else if(pe)for(let be of pe.nameValue_list())c.push(this.visitExpression(be.expression())),a.push(this._toText(be.identifier())),w.push(this.visitIdentifier(be.identifier()));let le={type:"FunctionCall",expression:this.visitExpression(i.expression()),arguments:c,names:a,identifiers:w};return this._addMeta(le,i)}visitStructDefinition(i){let c={type:"StructDefinition",name:this._toText(i.identifier()),members:i.variableDeclaration_list().map(a=>this.visitVariableDeclaration(a))};return this._addMeta(c,i)}visitWhileStatement(i){let c={type:"WhileStatement",condition:this.visitExpression(i.expression()),body:this.visitStatement(i.statement())};return this._addMeta(c,i)}visitDoWhileStatement(i){let c={type:"DoWhileStatement",condition:this.visitExpression(i.expression()),body:this.visitStatement(i.statement())};return this._addMeta(c,i)}visitIfStatement(i){let c=this.visitStatement(i.statement(0)),a=null;i.statement_list().length>1&&(a=this.visitStatement(i.statement(1)));let w={type:"IfStatement",condition:this.visitExpression(i.expression()),trueBody:c,falseBody:a};return this._addMeta(w,i)}visitTryStatement(i){let c=null,a=i.returnParameters();a&&(c=this.visitReturnParameters(a));let w=i.catchClause_list().map(he=>this.visitCatchClause(he)),q={type:"TryStatement",expression:this.visitExpression(i.expression()),returnParameters:c,body:this.visitBlock(i.block()),catchClauses:w};return this._addMeta(q,i)}visitCatchClause(i){let c=null;if(i.parameterList()&&(c=this.visitParameterList(i.parameterList())),i.identifier()&&this._toText(i.identifier())!=="Error"&&this._toText(i.identifier())!=="Panic")throw new Error('Expected "Error" or "Panic" identifier in catch clause');let a=null,w=i.identifier();w&&(a=this._toText(w));let q={type:"CatchClause",isReasonStringType:a==="Error",kind:a,parameters:c,body:this.visitBlock(i.block())};return this._addMeta(q,i)}visitExpressionStatement(i){if(!i)return null;let c={type:"ExpressionStatement",expression:this.visitExpression(i.expression())};return this._addMeta(c,i)}visitNumberLiteral(i){let c=this._toText(i.getChild(0)),a=null;i.children?.length===2&&(a=this._toText(i.getChild(1)));let w={type:"NumberLiteral",number:c,subdenomination:a};return this._addMeta(w,i)}visitMappingKey(i){if(i.elementaryTypeName())return this.visitElementaryTypeName(i.elementaryTypeName());if(i.userDefinedTypeName())return this.visitUserDefinedTypeName(i.userDefinedTypeName());throw new Error("Expected MappingKey to have either elementaryTypeName or userDefinedTypeName")}visitMapping(i){let c=i.mappingKeyName(),a=i.mappingValueName(),w={type:"Mapping",keyType:this.visitMappingKey(i.mappingKey()),keyName:c?this.visitIdentifier(c.identifier()):null,valueType:this.visitTypeName(i.typeName()),valueName:a?this.visitIdentifier(a.identifier()):null};return this._addMeta(w,i)}visitModifierDefinition(i){let c=null;i.parameterList()&&(c=this.visitParameterList(i.parameterList()));let a=!1;i.VirtualKeyword_list().length>0&&(a=!0);let w,q=i.overrideSpecifier_list();q.length===0?w=null:w=q[0].userDefinedTypeName_list().map(be=>this.visitUserDefinedTypeName(be));let he=null,pe=i.block();pe&&(he=this.visitBlock(pe));let le={type:"ModifierDefinition",name:this._toText(i.identifier()),parameters:c,body:he,isVirtual:a,override:w};return this._addMeta(le,i)}visitUncheckedStatement(i){let c={type:"UncheckedStatement",block:this.visitBlock(i.block())};return this._addMeta(c,i)}visitExpression(i){let c;switch(i.children.length){case 1:{let a=i.primaryExpression();if(a==null)throw new Error("Assertion error: primary expression should exist when children length is 1");return this.visitPrimaryExpression(a)}case 2:if(c=this._toText(i.getChild(0)),c==="new"){let a={type:"NewExpression",typeName:this.visitTypeName(i.typeName())};return this._addMeta(a,i)}if(hE.includes(c)){let a={type:"UnaryOperation",operator:c,subExpression:this.visitExpression(i.expression(0)),isPrefix:!0};return this._addMeta(a,i)}if(c=this._toText(i.getChild(1)),["++","--"].includes(c)){let a={type:"UnaryOperation",operator:c,subExpression:this.visitExpression(i.expression(0)),isPrefix:!1};return this._addMeta(a,i)}break;case 3:if(this._toText(i.getChild(0))==="("&&this._toText(i.getChild(2))===")"){let a={type:"TupleExpression",components:[this.visitExpression(i.expression(0))],isArray:!1};return this._addMeta(a,i)}if(c=this._toText(i.getChild(1)),c==="."){let a={type:"MemberAccess",expression:this.visitExpression(i.expression(0)),memberName:this._toText(i.identifier())};return this._addMeta(a,i)}if(dE(c)){let a={type:"BinaryOperation",operator:c,left:this.visitExpression(i.expression(0)),right:this.visitExpression(i.expression(1))};return this._addMeta(a,i)}break;case 4:if(this._toText(i.getChild(1))==="("&&this._toText(i.getChild(3))===")"){let a=[],w=[],q=[],he=i.functionCallArguments();if(he.expressionList())a=he.expressionList().expression_list().map(le=>this.visitExpression(le));else if(he.nameValueList())for(let le of he.nameValueList().nameValue_list())a.push(this.visitExpression(le.expression())),w.push(this._toText(le.identifier())),q.push(this.visitIdentifier(le.identifier()));let pe={type:"FunctionCall",expression:this.visitExpression(i.expression(0)),arguments:a,names:w,identifiers:q};return this._addMeta(pe,i)}if(this._toText(i.getChild(1))==="["&&this._toText(i.getChild(3))==="]"){if(i.getChild(2).getText()===":"){let w={type:"IndexRangeAccess",base:this.visitExpression(i.expression(0))};return this._addMeta(w,i)}let a={type:"IndexAccess",base:this.visitExpression(i.expression(0)),index:this.visitExpression(i.expression(1))};return this._addMeta(a,i)}if(this._toText(i.getChild(1))==="{"&&this._toText(i.getChild(3))==="}"){let a={type:"NameValueExpression",expression:this.visitExpression(i.expression(0)),arguments:this.visitNameValueList(i.nameValueList())};return this._addMeta(a,i)}break;case 5:if(this._toText(i.getChild(1))==="?"&&this._toText(i.getChild(3))===":"){let a={type:"Conditional",condition:this.visitExpression(i.expression(0)),trueExpression:this.visitExpression(i.expression(1)),falseExpression:this.visitExpression(i.expression(2))};return this._addMeta(a,i)}if(this._toText(i.getChild(1))==="["&&this._toText(i.getChild(2))===":"&&this._toText(i.getChild(4))==="]"){let a={type:"IndexRangeAccess",base:this.visitExpression(i.expression(0)),indexEnd:this.visitExpression(i.expression(1))};return this._addMeta(a,i)}else if(this._toText(i.getChild(1))==="["&&this._toText(i.getChild(3))===":"&&this._toText(i.getChild(4))==="]"){let a={type:"IndexRangeAccess",base:this.visitExpression(i.expression(0)),indexStart:this.visitExpression(i.expression(1))};return this._addMeta(a,i)}break;case 6:if(this._toText(i.getChild(1))==="["&&this._toText(i.getChild(3))===":"&&this._toText(i.getChild(5))==="]"){let a={type:"IndexRangeAccess",base:this.visitExpression(i.expression(0)),indexStart:this.visitExpression(i.expression(1)),indexEnd:this.visitExpression(i.expression(2))};return this._addMeta(a,i)}break}throw new Error("Unrecognized expression")}visitNameValueList(i){let c=[],a=[],w=[];for(let he of i.nameValue_list())c.push(this._toText(he.identifier())),a.push(this.visitIdentifier(he.identifier())),w.push(this.visitExpression(he.expression()));let q={type:"NameValueList",names:c,identifiers:a,arguments:w};return this._addMeta(q,i)}visitFileLevelConstant(i){let c=this.visitTypeName(i.typeName()),a=this._toText(i.identifier()),w=this.visitExpression(i.expression()),q={type:"FileLevelConstant",typeName:c,name:a,initialValue:w,isDeclaredConst:!0,isImmutable:!1};return this._addMeta(q,i)}visitForStatement(i){let c=this.visitExpressionStatement(i.expressionStatement());c&&(c=c.expression);let a={type:"ForStatement",initExpression:i.simpleStatement()?this.visitSimpleStatement(i.simpleStatement()):null,conditionExpression:c,loopExpression:{type:"ExpressionStatement",expression:i.expression()?this.visitExpression(i.expression()):null},body:this.visitStatement(i.statement())};return this._addMeta(a,i)}visitHexLiteral(i){let c=i.HexLiteralFragment_list().map(w=>this._toText(w)).map(w=>w.substring(4,w.length-1)),a={type:"HexLiteral",value:c.join(""),parts:c};return this._addMeta(a,i)}visitPrimaryExpression(i){if(i.BooleanLiteral()){let c={type:"BooleanLiteral",value:this._toText(i.BooleanLiteral())==="true"};return this._addMeta(c,i)}if(i.hexLiteral())return this.visitHexLiteral(i.hexLiteral());if(i.stringLiteral()){let c=i.stringLiteral().StringLiteralFragment_list().map(q=>{let he=this._toText(q),pe=he.slice(0,7)==="unicode";pe&&(he=he.slice(7));let le=he[0]==="'",be=he.substring(1,he.length-1);return{value:le?be.replace(new RegExp("\\\\'","g"),"'"):be.replace(new RegExp('\\\\"',"g"),'"'),isUnicode:pe}}),a=c.map(q=>q.value),w={type:"StringLiteral",value:a.join(""),parts:a,isUnicode:c.map(q=>q.isUnicode)};return this._addMeta(w,i)}if(i.numberLiteral())return this.visitNumberLiteral(i.numberLiteral());if(i.TypeKeyword()){let c={type:"Identifier",name:"type"};return this._addMeta(c,i)}return i.typeName()?this.visitTypeName(i.typeName()):this.visit(i.getChild(0))}visitTupleExpression(i){let c=i.children.slice(1,-1),w={type:"TupleExpression",components:this._mapCommasToNulls(c).map(q=>q===null?null:this.visit(q)),isArray:this._toText(i.getChild(0))==="["};return this._addMeta(w,i)}buildIdentifierList(i){let c=i.children.slice(1,-1),a=i.identifier_list(),w=0;return this._mapCommasToNulls(c).map(q=>{if(q===null)return null;let he=a[w];w++;let pe={type:"VariableDeclaration",name:this._toText(he),identifier:this.visitIdentifier(he),isStateVar:!1,isIndexed:!1,typeName:null,storageLocation:null,expression:null};return this._addMeta(pe,he)})}buildVariableDeclarationList(i){let c=i.variableDeclaration_list(),a=0;return this._mapCommasToNulls(i.children??[]).map(w=>{if(!w)return null;let q=c[a];a++;let he=null;q.storageLocation()&&(he=this._toText(q.storageLocation()));let pe=q.identifier(),le={type:"VariableDeclaration",name:this._toText(pe),identifier:this.visitIdentifier(pe),typeName:this.visitTypeName(q.typeName()),storageLocation:he,isStateVar:!1,isIndexed:!1,expression:null};return this._addMeta(le,q)})}visitImportDirective(i){let c=this._toText(i.importPath()),a=null,w=null,q=null,he=null;if(i.importDeclaration_list().length>0)q=i.importDeclaration_list().map(He=>{let je=this._toText(He.identifier(0)),_e=null;return He.identifier_list().length>1&&(_e=this._toText(He.identifier(1))),[je,_e]}),he=i.importDeclaration_list().map(He=>{let je=this.visitIdentifier(He.identifier(0)),_e=null;return He.identifier_list().length>1&&(_e=this.visitIdentifier(He.identifier(1))),[je,_e]});else{let He=i.identifier_list();if(He.length!==0)if(He.length===1){let je=i.identifier(0);a=this._toText(je),w=this.visitIdentifier(je)}else if(He.length===2){let je=i.identifier(1);a=this._toText(je),w=this.visitIdentifier(je)}else throw new Error("Assertion error: an import should have one or two identifiers")}let pe=c.substring(1,c.length-1),le={type:"StringLiteral",value:pe,parts:[pe],isUnicode:[!1]},be={type:"ImportDirective",path:pe,pathLiteral:this._addMeta(le,i.importPath()),unitAlias:a,unitAliasIdentifier:w,symbolAliases:q,symbolAliasesIdentifiers:he};return this._addMeta(be,i)}buildEventParameterList(i){return i.eventParameter_list().map(c=>{let a=this.visit(c.typeName()),w=c.identifier(),q=w?this._toText(w):null;return{type:"VariableDeclaration",typeName:a,name:q,isStateVar:!1,isIndexed:!!c.IndexedKeyword()}})}visitReturnParameters(i){return this.visitParameterList(i.parameterList())}visitParameterList(i){return i.parameter_list().map(c=>this.visitParameter(c))}visitInlineAssemblyStatement(i){let c=null;i.StringLiteralFragment()&&(c=this._toText(i.StringLiteralFragment()),c=c.substring(1,c.length-1));let a=[],w=i.inlineAssemblyStatementFlag();if(w){let he=this._toText(w.stringLiteral());a.push(he.slice(1,he.length-1))}let q={type:"InlineAssemblyStatement",language:c,flags:a,body:this.visitAssemblyBlock(i.assemblyBlock())};return this._addMeta(q,i)}visitAssemblyBlock(i){let a={type:"AssemblyBlock",operations:i.assemblyItem_list().map(w=>this.visitAssemblyItem(w))};return this._addMeta(a,i)}visitAssemblyItem(i){let c;if(i.hexLiteral())return this.visitHexLiteral(i.hexLiteral());if(i.stringLiteral()){c=this._toText(i.stringLiteral());let a=c.substring(1,c.length-1),w={type:"StringLiteral",value:a,parts:[a],isUnicode:[!1]};return this._addMeta(w,i)}if(i.BreakKeyword()){let a={type:"Break"};return this._addMeta(a,i)}if(i.ContinueKeyword()){let a={type:"Continue"};return this._addMeta(a,i)}return this.visit(i.getChild(0))}visitAssemblyExpression(i){return this.visit(i.getChild(0))}visitAssemblyCall(i){let c=this._toText(i.getChild(0)),a=i.assemblyExpression_list().map(q=>this.visitAssemblyExpression(q)),w={type:"AssemblyCall",functionName:c,arguments:a};return this._addMeta(w,i)}visitAssemblyLiteral(i){let c;if(i.stringLiteral()){c=this._toText(i);let a=c.substring(1,c.length-1),w={type:"StringLiteral",value:a,parts:[a],isUnicode:[!1]};return this._addMeta(w,i)}if(i.BooleanLiteral()){let a={type:"BooleanLiteral",value:this._toText(i.BooleanLiteral())==="true"};return this._addMeta(a,i)}if(i.DecimalNumber()){let a={type:"DecimalNumber",value:this._toText(i)};return this._addMeta(a,i)}if(i.HexNumber()){let a={type:"HexNumber",value:this._toText(i)};return this._addMeta(a,i)}if(i.hexLiteral())return this.visitHexLiteral(i.hexLiteral());throw new Error("Should never reach here")}visitAssemblySwitch(i){let c={type:"AssemblySwitch",expression:this.visitAssemblyExpression(i.assemblyExpression()),cases:i.assemblyCase_list().map(a=>this.visitAssemblyCase(a))};return this._addMeta(c,i)}visitAssemblyCase(i){let c=null;this._toText(i.getChild(0))==="case"&&(c=this.visitAssemblyLiteral(i.assemblyLiteral()));let a={type:"AssemblyCase",block:this.visitAssemblyBlock(i.assemblyBlock()),value:c,default:c===null};return this._addMeta(a,i)}visitAssemblyLocalDefinition(i){let c=i.assemblyIdentifierOrList(),a;c.identifier()?a=[this.visitIdentifier(c.identifier())]:c.assemblyMember()?a=[this.visitAssemblyMember(c.assemblyMember())]:a=c.assemblyIdentifierList().identifier_list().map(he=>this.visitIdentifier(he));let w=null;i.assemblyExpression()&&(w=this.visitAssemblyExpression(i.assemblyExpression()));let q={type:"AssemblyLocalDefinition",names:a,expression:w};return this._addMeta(q,i)}visitAssemblyFunctionDefinition(i){let c=i.assemblyIdentifierList(),a=c?c.identifier_list().map(pe=>this.visitIdentifier(pe)):[],w=i.assemblyFunctionReturns(),q=w?w.assemblyIdentifierList().identifier_list().map(pe=>this.visitIdentifier(pe)):[],he={type:"AssemblyFunctionDefinition",name:this._toText(i.identifier()),arguments:a,returnArguments:q,body:this.visitAssemblyBlock(i.assemblyBlock())};return this._addMeta(he,i)}visitAssemblyAssignment(i){let c=i.assemblyIdentifierOrList(),a;c.identifier()?a=[this.visitIdentifier(c.identifier())]:c.assemblyMember()?a=[this.visitAssemblyMember(c.assemblyMember())]:a=c.assemblyIdentifierList().identifier_list().map(q=>this.visitIdentifier(q));let w={type:"AssemblyAssignment",names:a,expression:this.visitAssemblyExpression(i.assemblyExpression())};return this._addMeta(w,i)}visitAssemblyMember(i){let[c,a]=i.identifier_list(),w={type:"AssemblyMemberAccess",expression:this.visitIdentifier(c),memberName:this.visitIdentifier(a)};return this._addMeta(w,i)}visitLabelDefinition(i){let c={type:"LabelDefinition",name:this._toText(i.identifier())};return this._addMeta(c,i)}visitAssemblyStackAssignment(i){let c={type:"AssemblyStackAssignment",name:this._toText(i.identifier()),expression:this.visitAssemblyExpression(i.assemblyExpression())};return this._addMeta(c,i)}visitAssemblyFor(i){let c={type:"AssemblyFor",pre:this.visit(i.getChild(1)),condition:this.visit(i.getChild(2)),post:this.visit(i.getChild(3)),body:this.visit(i.getChild(4))};return this._addMeta(c,i)}visitAssemblyIf(i){let c={type:"AssemblyIf",condition:this.visitAssemblyExpression(i.assemblyExpression()),body:this.visitAssemblyBlock(i.assemblyBlock())};return this._addMeta(c,i)}visitContinueStatement(i){let c={type:"ContinueStatement"};return this._addMeta(c,i)}visitBreakStatement(i){let c={type:"BreakStatement"};return this._addMeta(c,i)}_toText(i){let c=i.getText();if(c==null)throw new Error("Assertion error: text should never be undefined");return c}_stateMutabilityToText(i){if(i.PureKeyword())return"pure";if(i.ConstantKeyword())return"constant";if(i.PayableKeyword())return"payable";if(i.ViewKeyword())return"view";throw new Error("Assertion error: non-exhaustive stateMutability check")}_loc(i){return{start:{line:i.start.line,column:i.start.column},end:{line:i.stop?i.stop.line:i.start.line,column:i.stop?i.stop.column:i.start.column}}}_range(i){return[i.start.start,i.stop?.stop??i.start.start]}_addMeta(i,c){let a={type:i.type};return this.options.loc===!0&&(i.loc=this._loc(c)),this.options.range===!0&&(i.range=this._range(c)),{...a,...i}}_mapCommasToNulls(i){if(i.length===0)return[];let c=[],a=!0;for(let w of i)if(a)this._toText(w)===","?c.push(null):(c.push(w),a=!1);else{if(this._toText(w)!==",")throw new Error("expected comma");a=!0}return a&&c.push(null),c}};function dE(i){return cE.includes(i)}var mE=class extends xt{constructor(){super(),this._errors=[]}syntaxError(i,c,a,w,q){this._errors.push({message:q,line:a,column:w})}getErrors(){return this._errors}hasErrors(){return this._errors.length>0}},fE=mE,yE={1:"pragma",2:";",3:"*",4:"||",5:"^",6:"~",7:">=",8:">",9:"<",10:"<=",11:"=",12:"as",13:"import",14:"from",15:"{",16:",",17:"}",18:"abstract",19:"contract",20:"interface",21:"library",22:"is",23:"(",24:")",25:"layout",26:"at",27:"error",28:"using",29:"for",30:"|",31:"&",32:"+",33:"-",34:"/",35:"%",36:"==",37:"!=",38:"struct",39:"modifier",40:"function",41:"returns",42:"event",43:"enum",44:"[",45:"]",46:"address",47:".",48:"mapping",49:"=>",50:"memory",51:"storage",52:"calldata",53:"if",54:"else",55:"try",56:"catch",57:"while",58:"unchecked",59:"assembly",60:"do",61:"return",62:"throw",63:"emit",64:"revert",65:"var",66:"bool",67:"string",68:"byte",69:"++",70:"--",71:"new",72:":",73:"delete",74:"!",75:"**",76:"<<",77:">>",78:"&&",79:"?",80:"|=",81:"^=",82:"&=",83:"<<=",84:">>=",85:"+=",86:"-=",87:"*=",88:"/=",89:"%=",90:"let",91:":=",92:"=:",93:"switch",94:"case",95:"default",96:"->",97:"callback",98:"override",99:"Int",100:"Uint",101:"Byte",102:"Fixed",103:"Ufixed",104:"BooleanLiteral",105:"DecimalNumber",106:"HexNumber",107:"NumberUnit",108:"HexLiteralFragment",109:"ReservedKeyword",110:"anonymous",111:"break",112:"constant",113:"transient",114:"immutable",115:"continue",116:"leave",117:"external",118:"indexed",119:"internal",120:"payable",121:"private",122:"public",123:"virtual",124:"pure",125:"type",126:"view",127:"global",128:"constructor",129:"fallback",130:"receive",131:"Identifier",132:"StringLiteralFragment",133:"VersionLiteral",134:"WS",135:"COMMENT",136:"LINE_COMMENT"},wE=["var","bool","address","string","Int","Uint","Byte","Fixed","UFixed"];function gE(i){return i==="Identifier"||i==="from"?"Identifier":i==="TrueLiteral"||i==="FalseLiteral"?"Boolean":i==="VersionLiteral"?"Version":i==="StringLiteral"?"String":wE.includes(i)?"Type":i==="NumberUnit"?"Subdenomination":i==="DecimalNumber"?"Numeric":i==="HexLiteral"?"Hex":i==="ReservedKeyword"?"Reserved":/^\W+$/.test(i)?"Punctuator":"Keyword"}function Ow(i){return[i.start,i.stop+1]}function Mw(i){let a=(i.text??"").split(/\r?\n/),w=a.length-1;return{start:{line:i.line,column:i.column},end:{line:i.line+w,column:a[w].length+(w===0?i.column:0)}}}function Yw(i,c){return i.map(a=>{let q={type:gE(yE[a.type.toString()]),value:a.text};return c.range===!0&&(q.range=Ow(a)),c.loc===!0&&(q.loc=Mw(a)),q})}function xE(i,c,a){return i.filter(w=>w.channel===c).map(w=>{let q=w.text.startsWith("//")?{type:"LineComment",value:w.text.slice(2)}:{type:"BlockComment",value:w.text.slice(2,-2)};return a.range===!0&&(q.range=Ow(w)),a.loc===!0&&(q.loc=Mw(w)),q})}var r1=class extends Error{constructor(i){super();let{message:c,line:a,column:w}=i.errors[0];this.message=`${c} (${a}:${w})`,this.errors=i.errors,Error.captureStackTrace!==void 0?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack}};function Bw(i,c={}){let a=new Q(i),w=new Hy(a);return Yw(w.getAllTokens(),c)}function Uw(i,c={}){let a=new Q(i),w=new Hy(a),q=new Ne(w),he=new H(q),pe=new fE;w.removeErrorListeners(),w.addErrorListener(pe),he.removeErrorListeners(),he.addErrorListener(pe),he.buildParseTrees=!0;let le=he.sourceUnit(),be=new pE(c);be.visit(le);let He=be.result;if(He===null)throw new Error("ast should never be null");if(c.tokens===!0&&(He.tokens=Yw(q.tokens,c)),c.comments===!0&&(He.comments=xE(q.tokens,w.channelNames.indexOf("HIDDEN"),c)),pe.hasErrors()){if(c.tolerant!==!0)throw new r1({errors:pe.getErrors()});He.errors=pe.getErrors()}return He}function DE(i){if(typeof i!="object"||i===null)return!1;let c=i;return Object.prototype.hasOwnProperty.call(c,"type")&&typeof c.type=="string"?uE.includes(c.type):!1}function Ol(i,c,a){if(Array.isArray(i)&&i.forEach(he=>Ol(he,c,a)),!DE(i))return;let w=!0;if(c[i.type]!==void 0&&(w=c[i.type](i,a)),w===!1)return;for(let he in i)Object.prototype.hasOwnProperty.call(i,he)&&Ol(i[he],c,i);let q=i.type+":exit";c[q]!==void 0&&c[q](i,a)}var bE={ParserError:r1,parse:Uw,tokenize:Bw,visit:Ol};return y(x)})();return r})});var ko=at((eO,q3)=>{"use strict";var _v=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};q3.exports=_v});var Lo=at((tO,j3)=>{"use strict";var Kv="2.0.0",Fv=Number.MAX_SAFE_INTEGER||9007199254740991,Nv=16,Pv=250,kv=[" ",`
10
+ `,"\v","\f","\r"," ","\xA0","\u1680","\u2000","\u2001","\u2002","\u2003","\u2004","\u2005","\u2006","\u2007","\u2008","\u2009","\u200A","\u2028","\u2029","\u202F","\u205F","\u3000","\uFEFF"],Lv=["major","premajor","minor","preminor","patch","prepatch","prerelease"];j3.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Nv,MAX_SAFE_BUILD_LENGTH:Pv,MAX_SAFE_INTEGER:Fv,WHITESPACE_CHARACTERS:kv,RELEASE_TYPES:Lv,SEMVER_SPEC_VERSION:Kv,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Io=at((gi,G3)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:l0,MAX_SAFE_BUILD_LENGTH:Iv,MAX_LENGTH:Rv}=Lo(),Ov=ko();gi=G3.exports={};var Mv=gi.re=[],Yv=gi.safeRe=[],ye=gi.src=[],Bv=gi.safeSrc=[],we=gi.t={},Uv=0,u0="[a-zA-Z0-9-]",Vv=[["\\s",1],["\\d",Rv],[u0,Iv]],$v=r=>{for(let[e,t]of Vv)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},ke=(r,e,t)=>{let n=$v(e),o=Uv++;Ov(r,o,e),we[r]=o,ye[o]=e,Bv[o]=n,Mv[o]=new RegExp(e,t?"g":void 0),Yv[o]=new RegExp(n,t?"g":void 0)};ke("NUMERICIDENTIFIER","0|[1-9]\\d*");ke("NUMERICIDENTIFIERLOOSE","\\d+");ke("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${u0}*`);ke("MAINVERSION",`(${ye[we.NUMERICIDENTIFIER]})\\.(${ye[we.NUMERICIDENTIFIER]})\\.(${ye[we.NUMERICIDENTIFIER]})`);ke("MAINVERSIONLOOSE",`(${ye[we.NUMERICIDENTIFIERLOOSE]})\\.(${ye[we.NUMERICIDENTIFIERLOOSE]})\\.(${ye[we.NUMERICIDENTIFIERLOOSE]})`);ke("PRERELEASEIDENTIFIER",`(?:${ye[we.NONNUMERICIDENTIFIER]}|${ye[we.NUMERICIDENTIFIER]})`);ke("PRERELEASEIDENTIFIERLOOSE",`(?:${ye[we.NONNUMERICIDENTIFIER]}|${ye[we.NUMERICIDENTIFIERLOOSE]})`);ke("PRERELEASE",`(?:-(${ye[we.PRERELEASEIDENTIFIER]}(?:\\.${ye[we.PRERELEASEIDENTIFIER]})*))`);ke("PRERELEASELOOSE",`(?:-?(${ye[we.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ye[we.PRERELEASEIDENTIFIERLOOSE]})*))`);ke("BUILDIDENTIFIER",`${u0}+`);ke("BUILD",`(?:\\+(${ye[we.BUILDIDENTIFIER]}(?:\\.${ye[we.BUILDIDENTIFIER]})*))`);ke("FULLPLAIN",`v?${ye[we.MAINVERSION]}${ye[we.PRERELEASE]}?${ye[we.BUILD]}?`);ke("FULL",`^${ye[we.FULLPLAIN]}$`);ke("LOOSEPLAIN",`[v=\\s]*${ye[we.MAINVERSIONLOOSE]}${ye[we.PRERELEASELOOSE]}?${ye[we.BUILD]}?`);ke("LOOSE",`^${ye[we.LOOSEPLAIN]}$`);ke("GTLT","((?:<|>)?=?)");ke("XRANGEIDENTIFIERLOOSE",`${ye[we.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ke("XRANGEIDENTIFIER",`${ye[we.NUMERICIDENTIFIER]}|x|X|\\*`);ke("XRANGEPLAIN",`[v=\\s]*(${ye[we.XRANGEIDENTIFIER]})(?:\\.(${ye[we.XRANGEIDENTIFIER]})(?:\\.(${ye[we.XRANGEIDENTIFIER]})(?:${ye[we.PRERELEASE]})?${ye[we.BUILD]}?)?)?`);ke("XRANGEPLAINLOOSE",`[v=\\s]*(${ye[we.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ye[we.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ye[we.XRANGEIDENTIFIERLOOSE]})(?:${ye[we.PRERELEASELOOSE]})?${ye[we.BUILD]}?)?)?`);ke("XRANGE",`^${ye[we.GTLT]}\\s*${ye[we.XRANGEPLAIN]}$`);ke("XRANGELOOSE",`^${ye[we.GTLT]}\\s*${ye[we.XRANGEPLAINLOOSE]}$`);ke("COERCEPLAIN",`(^|[^\\d])(\\d{1,${l0}})(?:\\.(\\d{1,${l0}}))?(?:\\.(\\d{1,${l0}}))?`);ke("COERCE",`${ye[we.COERCEPLAIN]}(?:$|[^\\d])`);ke("COERCEFULL",ye[we.COERCEPLAIN]+`(?:${ye[we.PRERELEASE]})?(?:${ye[we.BUILD]})?(?:$|[^\\d])`);ke("COERCERTL",ye[we.COERCE],!0);ke("COERCERTLFULL",ye[we.COERCEFULL],!0);ke("LONETILDE","(?:~>?)");ke("TILDETRIM",`(\\s*)${ye[we.LONETILDE]}\\s+`,!0);gi.tildeTrimReplace="$1~";ke("TILDE",`^${ye[we.LONETILDE]}${ye[we.XRANGEPLAIN]}$`);ke("TILDELOOSE",`^${ye[we.LONETILDE]}${ye[we.XRANGEPLAINLOOSE]}$`);ke("LONECARET","(?:\\^)");ke("CARETTRIM",`(\\s*)${ye[we.LONECARET]}\\s+`,!0);gi.caretTrimReplace="$1^";ke("CARET",`^${ye[we.LONECARET]}${ye[we.XRANGEPLAIN]}$`);ke("CARETLOOSE",`^${ye[we.LONECARET]}${ye[we.XRANGEPLAINLOOSE]}$`);ke("COMPARATORLOOSE",`^${ye[we.GTLT]}\\s*(${ye[we.LOOSEPLAIN]})$|^$`);ke("COMPARATOR",`^${ye[we.GTLT]}\\s*(${ye[we.FULLPLAIN]})$|^$`);ke("COMPARATORTRIM",`(\\s*)${ye[we.GTLT]}\\s*(${ye[we.LOOSEPLAIN]}|${ye[we.XRANGEPLAIN]})`,!0);gi.comparatorTrimReplace="$1$2$3";ke("HYPHENRANGE",`^\\s*(${ye[we.XRANGEPLAIN]})\\s+-\\s+(${ye[we.XRANGEPLAIN]})\\s*$`);ke("HYPHENRANGELOOSE",`^\\s*(${ye[we.XRANGEPLAINLOOSE]})\\s+-\\s+(${ye[we.XRANGEPLAINLOOSE]})\\s*$`);ke("STAR","(<|>)?=?\\s*\\*");ke("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ke("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var _u=at((rO,W3)=>{"use strict";var Hv=Object.freeze({loose:!0}),qv=Object.freeze({}),jv=r=>r?typeof r!="object"?Hv:r:qv;W3.exports=jv});var J3=at((iO,X3)=>{"use strict";var z3=/^[0-9]+$/,Q3=(r,e)=>{if(typeof r=="number"&&typeof e=="number")return r===e?0:r<e?-1:1;let t=z3.test(r),n=z3.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},Gv=(r,e)=>Q3(e,r);X3.exports={compareIdentifiers:Q3,rcompareIdentifiers:Gv}});var Zn=at((nO,e5)=>{"use strict";var Ku=ko(),{MAX_LENGTH:Z3,MAX_SAFE_INTEGER:Fu}=Lo(),{safeRe:Nu,t:Pu}=Io(),Wv=_u(),{compareIdentifiers:c0}=J3(),zv=(r,e)=>{let t=e.split(".");if(t.length>r.length)return!1;for(let n=0;n<t.length;n++)if(c0(r[n],t[n])!==0)return!1;return!0},h0=class r{constructor(e,t){if(t=Wv(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>Z3)throw new TypeError(`version is longer than ${Z3} characters`);Ku("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?Nu[Pu.LOOSE]:Nu[Pu.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Fu||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Fu||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Fu||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let u=+o;if(u>=0&&u<Fu)return u}return o}):this.prerelease=[],this.build=n[5]?n[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(e){if(Ku("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],o=e.prerelease[t];if(Ku("prerelease compare",t,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return c0(n,o)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],o=e.build[t];if(Ku("build compare",t,n,o),n===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(n===void 0)return-1;if(n===o)continue;return c0(n,o)}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(t){let o=`-${t}`.match(this.options.loose?Nu[Pu.PRERELEASELOOSE]:Nu[Pu.PRERELEASE]);if(!o||o[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let o=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[o];else{let u=this.prerelease.length;for(;--u>=0;)typeof this.prerelease[u]=="number"&&(this.prerelease[u]++,u=-2);if(u===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(t){let u=[t,o];if(n===!1&&(u=[t]),zv(this.prerelease,t)){let d=this.prerelease[t.split(".").length];isNaN(d)&&(this.prerelease=u)}else this.prerelease=u}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};e5.exports=h0});var i5=at((sO,r5)=>{"use strict";var t5=Zn(),Qv=(r,e,t=!1)=>{if(r instanceof t5)return r;try{return new t5(r,e)}catch(n){if(!t)return null;throw n}};r5.exports=Qv});var p0=at((oO,n5)=>{"use strict";var Xv=Zn(),Jv=i5(),{safeRe:ku,t:Lu}=Io(),Zv=(r,e)=>{if(r instanceof Xv)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?ku[Lu.COERCEFULL]:ku[Lu.COERCE]);else{let x=e.includePrerelease?ku[Lu.COERCERTLFULL]:ku[Lu.COERCERTL],E;for(;(E=x.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||E.index+E[0].length!==t.index+t[0].length)&&(t=E),x.lastIndex=E.index+E[1].length+E[2].length;x.lastIndex=-1}if(t===null)return null;let n=t[2],o=t[3]||"0",u=t[4]||"0",d=e.includePrerelease&&t[5]?`-${t[5]}`:"",y=e.includePrerelease&&t[6]?`+${t[6]}`:"";return Jv(`${n}.${o}.${u}${d}${y}`,e)};n5.exports=Zv});var o5=at((aO,s5)=>{"use strict";var d0=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(e,t)}return this}};s5.exports=d0});var es=at((lO,l5)=>{"use strict";var a5=Zn(),e9=(r,e,t)=>new a5(r,t).compare(new a5(e,t));l5.exports=e9});var c5=at((uO,u5)=>{"use strict";var t9=es(),r9=(r,e,t)=>t9(r,e,t)===0;u5.exports=r9});var p5=at((cO,h5)=>{"use strict";var i9=es(),n9=(r,e,t)=>i9(r,e,t)!==0;h5.exports=n9});var m5=at((hO,d5)=>{"use strict";var s9=es(),o9=(r,e,t)=>s9(r,e,t)>0;d5.exports=o9});var y5=at((pO,f5)=>{"use strict";var a9=es(),l9=(r,e,t)=>a9(r,e,t)>=0;f5.exports=l9});var g5=at((dO,w5)=>{"use strict";var u9=es(),c9=(r,e,t)=>u9(r,e,t)<0;w5.exports=c9});var D5=at((mO,x5)=>{"use strict";var h9=es(),p9=(r,e,t)=>h9(r,e,t)<=0;x5.exports=p9});var E5=at((fO,b5)=>{"use strict";var d9=c5(),m9=p5(),f9=m5(),y9=y5(),w9=g5(),g9=D5(),x9=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return d9(r,t,n);case"!=":return m9(r,t,n);case">":return f9(r,t,n);case">=":return y9(r,t,n);case"<":return w9(r,t,n);case"<=":return g9(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};b5.exports=x9});var K5=at((yO,_5)=>{"use strict";var Ro=Symbol("SemVer ANY"),y0=class r{static get ANY(){return Ro}constructor(e,t){if(t=C5(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),f0("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Ro?this.value="":this.value=this.operator+this.semver.version,f0("comp",this)}parse(e){let t=this.options.loose?S5[v5.COMPARATORLOOSE]:S5[v5.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new T5(n[2],this.options.loose):this.semver=Ro}toString(){return this.value}test(e){if(f0("Comparator.test",e,this.options.loose),this.semver===Ro||e===Ro)return!0;if(typeof e=="string")try{e=new T5(e,this.options)}catch{return!1}return m0(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new A5(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new A5(this.value,t).test(e.semver):(t=C5(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||m0(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||m0(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};_5.exports=y0;var C5=_u(),{safeRe:S5,t:v5}=Io(),m0=E5(),f0=ko(),T5=Zn(),A5=Iu()});var U5=at((wO,B5)=>{"use strict";var{MAX_LENGTH:g0,MAX_SAFE_BUILD_LENGTH:k5,WHITESPACE_CHARACTERS:D9}=Lo(),L5=new Uint8Array(65536);for(let r of D9)L5[r.charCodeAt(0)]=1;var x0=r=>r!==void 0&&L5[r.charCodeAt(0)]===1,F5=r=>r==="v"||r==="="||x0(r),Oo=r=>r!==void 0&&r>="0"&&r<="9",I5=r=>r!==void 0&&(r>="a"&&r<="z"||r>="A"&&r<="Z"),R5=r=>Oo(r)||I5(r)||r==="-",D0=r=>Oo(r)||r==="x"||r==="X"||r==="*",O5=(r,e,t,n)=>{if(!Oo(r[e]))return e;if(e>=n.start&&e<n.end)return Math.min(e+t,n.end);if(e>=n.previousStart&&e<n.previousEnd)return Math.min(e+t,n.previousEnd);let o=e+1;for(;Oo(r[o]);)o++;return n.previousStart=n.start,n.previousEnd=n.end,n.start=e,n.end=o,Math.min(e+t,o)},b0=(r,e,t,n)=>!t&&r[e]==="0"?e+1:O5(r,e,t?g0:g0+1,n),w0=(r,e,t,n)=>{let o=O5(r,e,g0,n);if(I5(r[o])||r[o]==="-"){let u=o+1,d=u+k5;for(;u<d&&R5(r[u]);)u++;return u}return b0(r,e,t,n)},M5=(r,e,t,n)=>{let o=r[e]==="-";if(!t&&!o)return e;let u=e+(o?1:0),d=w0(r,u,t,n);if(d===u){if(!t||!o)return e;d=w0(r,e,t,n)}for(;r[d]===".";){let y=w0(r,d+1,t,n);if(y===d+1)break;d=y}return d},N5=(r,e)=>{let t=e;for(;t-e<k5&&R5(r[t]);)t++;return t},Y5=(r,e)=>{if(r[e]!=="+")return e;let t=N5(r,e+1);if(t===e+1)return e;for(;r[t]===".";){let n=N5(r,t+1);if(n===t+1)break;t=n}return t},b9=(r,e,t)=>{let n=e;for(let u=0;u<3;u++){let d=b0(r,n,!0,t);if(d===n)return e;if(n=d,u<2){if(r[n]!==".")return e;n++}}let o=M5(r,n,!0,t);return Y5(r,o)},P5=(r,e,t)=>Oo(r[e])?b0(r,e,!1,t):D0(r[e])?e+1:e,E9=(r,e,t)=>{let n=P5(r,e,t);for(let u=0;u<2;u++){if(r[n]!==".")return n;let d=P5(r,n+1,t);if(d===n+1)return n;n=d}let o=M5(r,n,!1,t);return Y5(r,o)},C9=(r,e,t)=>{let n=b9(r,e,t);return n!==e?n:E9(r,e,t)},S9=(r,e)=>{let t=e;return x0(r[t])&&t++,(r[t]==="<"||r[t]===">")&&t++,r[t]==="="&&t++,x0(r[t])?t:-1},v9=r=>{let e="",t=0,n=0,o={start:-1,end:-1,previousStart:-1,previousEnd:-1};for(;n<r.length;){let u=n;if(r[n]==="<"||r[n]===">")n++;else if(!F5(r[n])&&!D0(r[n])){n++;continue}for(;n<r.length&&F5(r[n]);)n++;if(!D0(r[n]))continue;let d=S9(r,u);d!==-1&&(e+=r.slice(t,d),t=d+1),n=C9(r,n,o)}return e+r.slice(t)};B5.exports=v9});var Iu=at((gO,q5)=>{"use strict";var T9=/\s+/g,E0=class r{constructor(e,t){if(t=_9(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof C0)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(T9," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(o=>!$5(o[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let o of this.set)if(o.length===1&&O9(o[0])){this.set=[o];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(R9,"");let n=((this.options.includePrerelease&&L9)|(this.options.loose&&I9))+":"+e,o=V5.get(n);if(o)return o;let u=this.options.loose,d=u?dr[Gt.HYPHENRANGELOOSE]:dr[Gt.HYPHENRANGE];e=e.replace(d,W9(this.options.includePrerelease)),et("hyphen replace",e),e=F9(e),et("comparator trim",e),e=e.replace(dr[Gt.TILDETRIM],P9),et("tilde trim",e),e=e.replace(dr[Gt.CARETTRIM],k9),et("caret trim",e);let y=e.split(" ").map(N=>M9(N,this.options)).join(" ").split(/\s+/).map(N=>G9(N,this.options));u&&(y=y.filter(N=>(et("loose invalid filter",N,this.options),!!N.match(dr[Gt.COMPARATORLOOSE])))),et("range list",y);let x=new Map,E=y.map(N=>new C0(N,this.options));for(let N of E){if($5(N))return[N];x.set(N.value,N)}x.size>1&&x.has("")&&x.delete("");let T=[...x.values()];return V5.set(n,T),T}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>H5(n,t)&&e.set.some(o=>H5(o,t)&&n.every(u=>o.every(d=>u.intersects(d,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new K9(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(z9(this.set[t],e,this.options))return!0;return!1}};q5.exports=E0;var A9=o5(),V5=new A9,_9=_u(),C0=K5(),et=ko(),K9=Zn(),F9=U5(),{safeRe:dr,src:N9,t:Gt,tildeTrimReplace:P9,caretTrimReplace:k9}=Io(),{FLAG_INCLUDE_PRERELEASE:L9,FLAG_LOOSE:I9}=Lo(),R9=new RegExp(N9[Gt.BUILD],"g"),$5=r=>r.value==="<0.0.0-0",O9=r=>r.value==="",H5=(r,e)=>{let t=!0,n=r.slice(),o=n.pop();for(;t&&n.length;)t=n.every(u=>o.intersects(u,e)),o=n.pop();return t},M9=(r,e)=>(r=r.replace(dr[Gt.BUILD],""),et("comp",r,e),r=V9(r,e),et("caret",r),r=B9(r,e),et("tildes",r),r=H9(r,e),et("xrange",r),r=j9(r,e),et("stars",r),r),Tt=r=>!r||r.toLowerCase()==="x"||r==="*",Y9=(r,e,t)=>Tt(r)&&!Tt(e)||Tt(e)&&t&&!Tt(t),B9=(r,e)=>r.trim().split(/\s+/).map(t=>U9(t,e)).join(" "),U9=(r,e)=>{let t=e.loose?dr[Gt.TILDELOOSE]:dr[Gt.TILDE],n=e.includePrerelease?"-0":"";return r.replace(t,(o,u,d,y,x)=>{et("tilde",r,o,u,d,y,x);let E;return Tt(u)?E="":Tt(d)?E=`>=${u}.0.0${n} <${+u+1}.0.0-0`:Tt(y)?E=`>=${u}.${d}.0${n} <${u}.${+d+1}.0-0`:x?(et("replaceTilde pr",x),E=`>=${u}.${d}.${y}-${x} <${u}.${+d+1}.0-0`):E=`>=${u}.${d}.${y} <${u}.${+d+1}.0-0`,et("tilde return",E),E})},V9=(r,e)=>r.trim().split(/\s+/).map(t=>$9(t,e)).join(" "),$9=(r,e)=>{et("caret",r,e);let t=e.loose?dr[Gt.CARETLOOSE]:dr[Gt.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(o,u,d,y,x)=>{et("caret",r,o,u,d,y,x);let E;return Tt(u)?E="":Tt(d)?E=`>=${u}.0.0${n} <${+u+1}.0.0-0`:Tt(y)?u==="0"?E=`>=${u}.${d}.0${n} <${u}.${+d+1}.0-0`:E=`>=${u}.${d}.0${n} <${+u+1}.0.0-0`:x?(et("replaceCaret pr",x),u==="0"?d==="0"?E=`>=${u}.${d}.${y}-${x} <${u}.${d}.${+y+1}-0`:E=`>=${u}.${d}.${y}-${x} <${u}.${+d+1}.0-0`:E=`>=${u}.${d}.${y}-${x} <${+u+1}.0.0-0`):(et("no pr"),u==="0"?d==="0"?E=`>=${u}.${d}.${y} <${u}.${d}.${+y+1}-0`:E=`>=${u}.${d}.${y} <${u}.${+d+1}.0-0`:E=`>=${u}.${d}.${y} <${+u+1}.0.0-0`),et("caret return",E),E})},H9=(r,e)=>(et("replaceXRanges",r,e),r.split(/\s+/).map(t=>q9(t,e)).join(" ")),q9=(r,e)=>{r=r.trim();let t=e.loose?dr[Gt.XRANGELOOSE]:dr[Gt.XRANGE];return r.replace(t,(n,o,u,d,y,x)=>{if(et("xRange",r,n,o,u,d,y,x),Y9(u,d,y))return r;let E=Tt(u),T=E||Tt(d),N=T||Tt(y),P=N;return o==="="&&P&&(o=""),x=e.includePrerelease?"-0":"",E?o===">"||o==="<"?n="<0.0.0-0":n="*":o&&P?(T&&(d=0),y=0,o===">"?(o=">=",T?(u=+u+1,d=0,y=0):(d=+d+1,y=0)):o==="<="&&(o="<",T?u=+u+1:d=+d+1),o==="<"&&(x="-0"),n=`${o+u}.${d}.${y}${x}`):T?n=`>=${u}.0.0${x} <${+u+1}.0.0-0`:N&&(n=`>=${u}.${d}.0${x} <${u}.${+d+1}.0-0`),et("xRange return",n),n})},j9=(r,e)=>(et("replaceStars",r,e),r.trim().replace(dr[Gt.STAR],"")),G9=(r,e)=>(et("replaceGTE0",r,e),r.trim().replace(dr[e.includePrerelease?Gt.GTE0PRE:Gt.GTE0],"")),W9=r=>(e,t,n,o,u,d,y,x,E,T,N,P)=>(Tt(n)?t="":Tt(o)?t=`>=${n}.0.0${r?"-0":""}`:Tt(u)?t=`>=${n}.${o}.0${r?"-0":""}`:d?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,Tt(E)?x="":Tt(T)?x=`<${+E+1}.0.0-0`:Tt(N)?x=`<${E}.${+T+1}.0-0`:P?x=`<=${E}.${T}.${N}-${P}`:r?x=`<${E}.${T}.${+N+1}-0`:x=`<=${x}`,`${t} ${x}`.trim()),z9=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(et(r[n].semver),r[n].semver!==C0.ANY&&r[n].semver.prerelease.length>0){let o=r[n].semver;if(o.major===e.major&&o.minor===e.minor&&o.patch===e.patch)return!0}return!1}return!0}});var ts=at((xO,j5)=>{"use strict";var Q9=Iu(),X9=(r,e,t)=>{try{e=new Q9(e,t)}catch{return!1}return e.test(r)};j5.exports=X9});var Ab=at((a$,Tb)=>{"use strict";var FK=Zn(),NK=Iu(),PK=(r,e,t)=>{let n=null,o=null,u=null;try{u=new NK(e,t)}catch{return null}return r.forEach(d=>{u.test(d)&&(!n||o.compare(d)===-1)&&(n=d,o=new FK(n,t))}),n};Tb.exports=PK});var JE=Object.defineProperty,j1=(r,e)=>{for(var t in e)JE(r,t,{get:e[t],enumerable:!0})},ZE={};j1(ZE,{__debug:()=>o6,check:()=>n6,doc:()=>ue,format:()=>q2,formatWithCursor:()=>H2,getSupportInfo:()=>s6,util:()=>St,version:()=>P4});var bo=(r,e)=>(t,n,...o)=>t|1&&n==null?void 0:(e.call(n)??n[r]).apply(n,o),eC=String.prototype.replaceAll??function(r,e){return r.global?this.replace(r,e):this.split(r).join(e)},tC=bo("replaceAll",function(){if(typeof this=="string")return eC}),eu=tC,rC=class{diff(r,e,t={}){let n;typeof t=="function"?(n=t,t={}):"callback"in t&&(n=t.callback);let o=this.castInput(r,t),u=this.castInput(e,t),d=this.removeEmpty(this.tokenize(o,t)),y=this.removeEmpty(this.tokenize(u,t));return this.diffWithOptionsObj(d,y,t,n)}diffWithOptionsObj(r,e,t,n){var o;let u=te=>{if(te=this.postProcess(te,t),n){setTimeout(function(){n(te)},0);return}else return te},d=e.length,y=r.length,x=1,E=d+y;t.maxEditLength!=null&&(E=Math.min(E,t.maxEditLength));let T=(o=t.timeout)!==null&&o!==void 0?o:1/0,N=Date.now()+T,P=[{oldPos:-1,lastComponent:void 0}],$=this.extractCommon(P[0],e,r,0,t);if(P[0].oldPos+1>=y&&$+1>=d)return u(this.buildValues(P[0].lastComponent,e,r));let V=-1/0,Z=1/0,Q=()=>{for(let te=Math.max(V,-x);te<=Math.min(Z,x);te+=2){let Ee,Ne=P[te-1],Oe=P[te+1];Ne&&(P[te-1]=void 0);let st=!1;if(Oe){let xt=Oe.oldPos-te;st=Oe&&0<=xt&&xt<d}let ot=Ne&&Ne.oldPos+1<y;if(!st&&!ot){P[te]=void 0;continue}if(!ot||st&&Ne.oldPos<Oe.oldPos?Ee=this.addToPath(Oe,!0,!1,0,t):Ee=this.addToPath(Ne,!1,!0,1,t),$=this.extractCommon(Ee,e,r,te,t),Ee.oldPos+1>=y&&$+1>=d)return u(this.buildValues(Ee.lastComponent,e,r))||!0;P[te]=Ee,Ee.oldPos+1>=y&&(Z=Math.min(Z,te-1)),$+1>=d&&(V=Math.max(V,te+1))}x++};if(n)(function te(){setTimeout(function(){if(x>E||Date.now()>N)return n(void 0);Q()||te()},0)})();else for(;x<=E&&Date.now()<=N;){let te=Q();if(te)return te}}addToPath(r,e,t,n,o){let u=r.lastComponent;return u&&!o.oneChangePerToken&&u.added===e&&u.removed===t?{oldPos:r.oldPos+n,lastComponent:{count:u.count+1,added:e,removed:t,previousComponent:u.previousComponent}}:{oldPos:r.oldPos+n,lastComponent:{count:1,added:e,removed:t,previousComponent:u}}}extractCommon(r,e,t,n,o){let u=e.length,d=t.length,y=r.oldPos,x=y-n,E=0;for(;x+1<u&&y+1<d&&this.equals(t[y+1],e[x+1],o);)x++,y++,E++,o.oneChangePerToken&&(r.lastComponent={count:1,previousComponent:r.lastComponent,added:!1,removed:!1});return E&&!o.oneChangePerToken&&(r.lastComponent={count:E,previousComponent:r.lastComponent,added:!1,removed:!1}),r.oldPos=y,x}equals(r,e,t){return t.comparator?t.comparator(r,e):r===e||!!t.ignoreCase&&r.toLowerCase()===e.toLowerCase()}removeEmpty(r){let e=[];for(let t=0;t<r.length;t++)r[t]&&e.push(r[t]);return e}castInput(r,e){return r}tokenize(r,e){return Array.from(r)}join(r){return r.join("")}postProcess(r,e){return r}get useLongestToken(){return!1}buildValues(r,e,t){let n=[],o;for(;r;)n.push(r),o=r.previousComponent,delete r.previousComponent,r=o;n.reverse();let u=n.length,d=0,y=0,x=0;for(;d<u;d++){let E=n[d];if(E.removed)E.value=this.join(t.slice(x,x+E.count)),x+=E.count;else{if(!E.added&&this.useLongestToken){let T=e.slice(y,y+E.count);T=T.map(function(N,P){let $=t[x+P];return $.length>N.length?$:N}),E.value=this.join(T)}else E.value=this.join(e.slice(y,y+E.count));y+=E.count,E.added||(x+=E.count)}}return n}},iC=class extends rC{tokenize(r){return r.slice()}join(r){return r}removeEmpty(r){return r}},nC=new iC;function sC(r,e,t){return nC.diff(r,e,t)}var oC=()=>{},tn=oC,qg="cr",jg="crlf",aC="lf",lC=aC,G1="\r",Gg=`\r
11
+ `,tu=`
12
+ `,uC=tu;function cC(r){let e=r.indexOf(G1);return e!==-1?r.charAt(e+1)===tu?jg:qg:lC}function W1(r){return r===qg?G1:r===jg?Gg:uC}var hC=new Map([[tu,/\n/g],[G1,/\r/g],[Gg,/\r\n/g]]);function Wg(r,e){let t=hC.get(e);return r.match(t)?.length??0}var pC=/\r\n?/g;function dC(r){return eu(0,r,pC,tu)}var ru=Symbol.for("comments");function mC(r){return this[r<0?this.length+r:r]}var fC=bo("at",function(){if(Array.isArray(this)||typeof this=="string")return mC}),Pt=fC,jn="string",Li="array",nn="cursor",Ii="indent",Ri="align",Oi="trim",ar="group",hi="fill",Dr="if-break",Mi="indent-if-break",Yi="line-suffix",Bi="line-suffix-boundary",kt="line",pi="label",Rr="break-parent",zg=new Set([nn,Ii,Ri,Oi,ar,hi,Dr,Mi,Yi,Bi,kt,pi,Rr]);function yC(r){let e=r.length;for(;e>0&&(r[e-1]==="\r"||r[e-1]===`
13
+ `);)e--;return e<r.length?r.slice(0,e):r}function z1(r,e,t){if(!r.has(e)){let n=t(e);r.set(e,n)}return r.get(e)}function wC(r){if(typeof r=="string")return jn;if(Array.isArray(r))return Li;if(!r)return;let{type:e}=r;if(zg.has(e))return e}var Gn=wC,gC=r=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(r);function xC(r){let e=r===null?"null":typeof r;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
14
+ Expected it to be 'string' or 'object'.`;if(Gn(r))throw new Error("doc is valid.");let t=Object.prototype.toString.call(r);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let n=gC([...zg].map(o=>`'${o}'`));return`Unexpected doc.type '${r.type}'.
15
+ Expected it to be ${n}.`}var DC=class extends Error{name="InvalidDocError";constructor(r){super(xC(r)),this.doc=r}},fs=DC,xg={};function bC(r,e,t,n){let o=[r];for(;o.length>0;){let u=o.pop();if(u===xg){t(o.pop());continue}t&&o.push(u,xg);let d=Gn(u);if(!d)throw new fs(u);if(e?.(u)!==!1)switch(d){case Li:case hi:{let y=d===Li?u:u.parts;for(let x=y.length,E=x-1;E>=0;--E)o.push(y[E]);break}case Dr:o.push(u.flatContents,u.breakContents);break;case ar:if(n&&u.expandedStates)for(let y=u.expandedStates.length,x=y-1;x>=0;--x)o.push(u.expandedStates[x]);else o.push(u.contents);break;case Ri:case Ii:case Mi:case pi:case Yi:o.push(u.contents);break;case jn:case nn:case Oi:case Bi:case kt:case Rr:break;default:throw new fs(u)}}}var Q1=bC;function iu(r,e){if(typeof r=="string")return e(r);let t=new Map;return n(r);function n(u){return z1(t,u,o)}function o(u){switch(Gn(u)){case Li:return e(u.map(n));case hi:return e({...u,parts:u.parts.map(n)});case Dr:return e({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case ar:{let{expandedStates:d,contents:y}=u;return d?(d=d.map(n),y=d[0]):y=n(y),e({...u,contents:y,expandedStates:d})}case Ri:case Ii:case Mi:case pi:case Yi:return e({...u,contents:n(u.contents)});case jn:case nn:case Oi:case Bi:case kt:case Rr:return e(u);default:throw new fs(u)}}}function X1(r,e,t){let n=t,o=!1;function u(d){if(o)return!1;let y=e(d);y!==void 0&&(o=!0,n=y)}return Q1(r,u),n}function EC(r){if(r.type===ar&&r.break||r.type===kt&&r.hard||r.type===Rr)return!0}function CC(r){return X1(r,EC,!1)}function Dg(r){if(r.length>0){let e=Pt(0,r,-1);!e.expandedStates&&!e.break&&(e.break="propagated")}return null}function SC(r){let e=new Set,t=[];function n(u){if(u.type===Rr&&Dg(t),u.type===ar){if(t.push(u),e.has(u))return!1;e.add(u)}}function o(u){u.type===ar&&t.pop().break&&Dg(t)}Q1(r,n,o,!0)}function vC(r){return r.type===kt&&!r.hard?r.soft?"":" ":r.type===Dr?r.flatContents:r}function TC(r){return iu(r,vC)}function bg(r){for(r=[...r];r.length>=2&&Pt(0,r,-2).type===kt&&Pt(0,r,-1).type===Rr;)r.length-=2;if(r.length>0){let e=go(Pt(0,r,-1));r[r.length-1]=e}return r}function go(r){switch(Gn(r)){case Ii:case Mi:case ar:case Yi:case pi:{let e=go(r.contents);return{...r,contents:e}}case Dr:return{...r,breakContents:go(r.breakContents),flatContents:go(r.flatContents)};case hi:return{...r,parts:bg(r.parts)};case Li:return bg(r);case jn:return yC(r);case Ri:case nn:case Oi:case Bi:case kt:case Rr:break;default:throw new fs(r)}return r}function Qg(r){return go(_C(r))}function AC(r){switch(Gn(r)){case hi:{let{parts:e}=r;if(e.every(t=>t===""))return"";if(e.length===1)return e[0];break}case ar:if(!r.contents&&!r.id&&!r.break&&!r.expandedStates)return"";if(r.contents.type===ar&&r.contents.id===r.id&&r.contents.break===r.break&&r.contents.expandedStates===r.expandedStates)return r.contents;break;case Ri:case Ii:case Mi:case Yi:if(!r.contents)return"";break;case Dr:if(!r.flatContents&&!r.breakContents)return"";break;case Li:{let e=[];for(let t of r){if(!t)continue;let[n,...o]=Array.isArray(t)?t:[t];typeof n=="string"&&typeof Pt(0,e,-1)=="string"?e[e.length-1]+=n:e.push(n),e.push(...o)}return e.length===0?"":e.length===1?e[0]:e}case jn:case nn:case Oi:case Bi:case kt:case pi:case Rr:break;default:throw new fs(r)}return r}function _C(r){return iu(r,e=>AC(e))}function KC(r,e=n2){return iu(r,t=>typeof t=="string"?t2(e,t.split(`
16
+ `)):t)}function FC(r){if(r.type===kt)return!0}function NC(r){return X1(r,FC,!1)}function Xl(r,e){return r.type===pi?{...r,contents:e(r.contents)}:e(r)}var ci=tn,Xg=tn,PC=tn,kC=tn;function Zl(r){return ci(r),{type:Ii,contents:r}}function ys(r,e){return kC(r),ci(e),{type:Ri,contents:e,n:r}}function LC(r){return ys(Number.NEGATIVE_INFINITY,r)}function Jg(r){return ys({type:"root"},r)}function IC(r){return ys(-1,r)}function Zg(r,e,t){ci(r);let n=r;if(e>0){for(let o=0;o<Math.floor(e/t);++o)n=Zl(n);n=ys(e%t,n),n=ys(Number.NEGATIVE_INFINITY,n)}return n}var nu={type:Rr},Hn={type:nn};function RC(r){return PC(r),{type:hi,parts:r}}function e2(r,e={}){return ci(r),Xg(e.expandedStates,!0),{type:ar,id:e.id,contents:r,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function OC(r,e){return e2(r[0],{...e,expandedStates:r})}function MC(r,e="",t={}){return ci(r),e!==""&&ci(e),{type:Dr,breakContents:r,flatContents:e,groupId:t.groupId}}function YC(r,e){return ci(r),{type:Mi,contents:r,groupId:e.groupId,negate:e.negate}}function t2(r,e){ci(r),Xg(e);let t=[];for(let n=0;n<e.length;n++)n!==0&&t.push(r),t.push(e[n]);return t}function BC(r,e){return ci(e),r?{type:pi,label:r,contents:e}:e}var r2={type:kt},UC={type:kt,soft:!0},J1={type:kt,hard:!0},ki=[J1,nu],i2={type:kt,hard:!0,literal:!0},n2=[i2,nu];function U1(r){return ci(r),{type:Yi,contents:r}}var VC={type:Bi},$C={type:Oi};function Pi(r){if(!r)return"";if(Array.isArray(r)){let e=[];for(let t of r)if(Array.isArray(t))e.push(...Pi(t));else{let n=Pi(t);n!==""&&e.push(n)}return e}return r.type===Dr?{...r,breakContents:Pi(r.breakContents),flatContents:Pi(r.flatContents)}:r.type===ar?{...r,contents:Pi(r.contents),expandedStates:r.expandedStates?.map(Pi)}:r.type===hi?{type:"fill",parts:r.parts.map(Pi)}:r.contents?{...r,contents:Pi(r.contents)}:r}function HC(r){let e=Object.create(null),t=new Set;return n(Pi(r));function n(u,d,y){if(typeof u=="string")return JSON.stringify(u);if(Array.isArray(u)){let x=u.map(n).filter(Boolean);return x.length===1?x[0]:`[${x.join(", ")}]`}if(u.type===kt){let x=y?.[d+1]?.type===Rr;return u.literal?x?"literalline":"literallineWithoutBreakParent":u.hard?x?"hardline":"hardlineWithoutBreakParent":u.soft?"softline":"line"}if(u.type===Rr)return y?.[d-1]?.type===kt&&y[d-1].hard?void 0:"breakParent";if(u.type===Oi)return"trim";if(u.type===Ii)return"indent("+n(u.contents)+")";if(u.type===Ri)return u.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(u.contents)+")":u.n<0?"dedent("+n(u.contents)+")":u.n.type==="root"?"markAsRoot("+n(u.contents)+")":"align("+JSON.stringify(u.n)+", "+n(u.contents)+")";if(u.type===Dr)return"ifBreak("+n(u.breakContents)+(u.flatContents?", "+n(u.flatContents):"")+(u.groupId?(u.flatContents?"":', ""')+`, { groupId: ${o(u.groupId)} }`:"")+")";if(u.type===Mi){let x=[];u.negate&&x.push("negate: true"),u.groupId&&x.push(`groupId: ${o(u.groupId)}`);let E=x.length>0?`, { ${x.join(", ")} }`:"";return`indentIfBreak(${n(u.contents)}${E})`}if(u.type===ar){let x=[];u.break&&u.break!=="propagated"&&x.push("shouldBreak: true"),u.id&&x.push(`id: ${o(u.id)}`);let E=x.length>0?`, { ${x.join(", ")} }`:"";return u.expandedStates?`conditionalGroup([${u.expandedStates.map(T=>n(T)).join(",")}]${E})`:`group(${n(u.contents)}${E})`}if(u.type===hi)return`fill([${u.parts.map(x=>n(x)).join(", ")}])`;if(u.type===Yi)return"lineSuffix("+n(u.contents)+")";if(u.type===Bi)return"lineSuffixBoundary";if(u.type===pi)return`label(${JSON.stringify(u.label)}, ${n(u.contents)})`;if(u.type===nn)return"cursor";throw new Error("Unknown doc type "+u.type)}function o(u){if(typeof u!="symbol")return JSON.stringify(String(u));if(u in e)return e[u];let d=u.description||"symbol";for(let y=0;;y++){let x=d+(y>0?` #${y}`:"");if(!t.has(x))return t.add(x),e[u]=`Symbol.for(${JSON.stringify(x)})`}}}var qC=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED9\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEFA](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDEC2\uDEC6\uDEC8\uDECC-\uDEDD\uDEDF-\uDEEB\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,jC=12288,GC=65510,WC=[12288,12288,65281,65376,65504,65510],zC=4352,QC=262141,s2=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101594,101631,101664,101760,101874,101888,102801,102816,102866,110576,110579,110581,110587,110589,110590,110592,110888,110898,110898,110928,110930,110933,110933,110948,110952,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127406,127406,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128729,128732,128735,128747,128748,128756,128764,128986,128986,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129734,129736,129736,129740,129757,129759,129771,129775,129786,131072,196605,196608,262141],o2=(r,e)=>{let t=0,n=Math.floor(r.length/2)-1;for(;t<=n;){let o=Math.floor((t+n)/2),u=o*2;if(e<r[u])n=o-1;else if(e>r[u+1])t=o+1;else return!0}return!1},Eg=19968,[XC,JC]=ZC(s2);function ZC(r){let e=r[0],t=r[1];for(let n=0;n<r.length;n+=2){let o=r[n],u=r[n+1];if(Eg>=o&&Eg<=u)return[o,u];u-o>t-e&&(e=o,t=u)}return[e,t]}var e7=r=>r<jC||r>GC?!1:o2(WC,r),t7=r=>r>=XC&&r<=JC?!0:r<zC||r>QC?!1:o2(s2,r),r7=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC3F\uDC41\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])$/,i7=r=>r7.test(r),n7=/[^\x20-\x7F]/,s7=/[\p{Nonspacing_Mark}\p{Enclosing_Mark}]/u;function o7(r){if(!r)return 0;if(!n7.test(r))return r.length;let e=0;r=r.replace(qC(),t=>(e+=i7(t)?1:2,""));for(let t of r){let n=t.codePointAt(0);n<=31||n>=127&&n<=159||s7.test(t)||(e+=e7(n)||t7(n)?2:1)}return e}var Z1=o7,a7={type:0},l7={type:1},a2={value:"",length:0,queue:[],get root(){return a2}};function l2(r,e,t){let n=e.type===1?r.queue.slice(0,-1):[...r.queue,e],o="",u=0,d=0,y=0;for(let V of n)switch(V.type){case 0:T(),t.useTabs?x(1):E(t.tabWidth);break;case 3:{let{string:Z}=V;T(),o+=Z,u+=Z.length;break}case 2:{let{width:Z}=V;d+=1,y+=Z;break}default:throw new Error(`Unexpected indent comment '${V.type}'.`)}return P(),{...r,value:o,length:u,queue:n};function x(V){o+=" ".repeat(V),u+=t.tabWidth*V}function E(V){o+=" ".repeat(V),u+=V}function T(){t.useTabs?N():P()}function N(){d>0&&x(d),$()}function P(){y>0&&E(y),$()}function $(){d=0,y=0}}function u7(r,e,t){if(!e)return r;if(e.type==="root")return{...r,root:r};if(e===Number.NEGATIVE_INFINITY)return r.root;let n;return typeof e=="number"?e<0?n=l7:n={type:2,width:e}:n={type:3,string:e},l2(r,n,t)}function c7(r,e){return l2(r,a7,e)}function h7(r){let e=0;for(let t=r.length-1;t>=0;t--){let n=r[t];if(n===" "||n===" ")e++;else break}return e}function u2(r){let e=h7(r);return{text:e===0?r:r.slice(0,r.length-e),count:e}}var p7=class{#e=[];#t="";#r=0;#i=[];#n=[];#s(){let r=this.#t;r!==""&&(this.#e.push(r),this.#r+=r.length,this.#t="");for(let e of this.#n)this.#i.push(Math.min(e,this.#r));this.#n.length=0}markPosition(){if(this.#i.length+this.#n.length>=2)throw new Error("There are too many 'cursor' in doc.");this.#n.push(this.#r+this.#t.length)}write(r){this.#t+=r}trim(){let{text:r,count:e}=u2(this.#t);return this.#t=r,this.#s(),e}finish(){return this.#s(),{text:this.#e.join(""),positions:this.#i}}},d7=p7,Ir=Symbol("MODE_BREAK"),li=Symbol("MODE_FLAT"),V1=Symbol("DOC_FILL_PRINTED_LENGTH");function Ql(r,e,t,n,o,u){if(t===Number.POSITIVE_INFINITY)return!0;let d=e.length,y=!1,x=[r],E="";for(;t>=0;){if(x.length===0){if(d===0)return!0;x.push(e[--d]);continue}let{mode:T,doc:N}=x.pop(),P=Gn(N);switch(P){case jn:N&&(y&&(E+=" ",t-=1,y=!1),E+=N,t-=Z1(N));break;case Li:case hi:{let $=P===Li?N:N.parts,V=N[V1]??0;for(let Z=$.length-1;Z>=V;Z--)x.push({mode:T,doc:$[Z]});break}case Ii:case Ri:case Mi:case pi:x.push({mode:T,doc:N.contents});break;case Oi:{let{text:$,count:V}=u2(E);E=$,t+=V;break}case ar:{if(u&&N.break)return!1;let $=N.break?Ir:T,V=N.expandedStates&&$===Ir?Pt(0,N.expandedStates,-1):N.contents;x.push({mode:$,doc:V});break}case Dr:{let $=(N.groupId?o[N.groupId]||li:T)===Ir?N.breakContents:N.flatContents;$&&x.push({mode:T,doc:$});break}case kt:if(T===Ir||N.hard)return!0;N.soft||(y=!0);break;case Yi:n=!0;break;case Bi:if(n)return!1;break}}return!1}function su(r,e){let t=Object.create(null),n=e.printWidth,o=W1(e.endOfLine),u=0,d=[{indent:a2,mode:Ir,doc:r}],y=!1,x=[],E=new d7;for(SC(r);d.length>0;){let{indent:V,mode:Z,doc:Q}=d.pop();switch(Gn(Q)){case jn:{let te=o!==`
17
+ `?eu(0,Q,`
18
+ `,o):Q;te&&(E.write(te),d.length>0&&(u+=Z1(te)));break}case Li:for(let te=Q.length-1;te>=0;te--)d.push({indent:V,mode:Z,doc:Q[te]});break;case nn:E.markPosition();break;case Ii:d.push({indent:c7(V,e),mode:Z,doc:Q.contents});break;case Ri:d.push({indent:u7(V,Q.n,e),mode:Z,doc:Q.contents});break;case Oi:u-=E.trim();break;case ar:{let te=(function(){if(Z===li&&!y)return{indent:V,mode:Q.break?Ir:li,doc:Q.contents};y=!1;let Ee=n-u,Ne=x.length>0,Oe={indent:V,mode:li,doc:Q.contents};if(!Q.break&&Ql(Oe,d,Ee,Ne,t))return Oe;if(!Q.expandedStates)return{indent:V,mode:Ir,doc:Q.contents};if(!Q.break)for(let st=1;st<Q.expandedStates.length-1;st++){let ot={indent:V,mode:li,doc:Q.expandedStates[st]};if(Ql(ot,d,Ee,Ne,t))return ot}return{indent:V,mode:Ir,doc:Pt(0,Q.expandedStates,-1)}})();d.push(te),Q.id&&(t[Q.id]=te.mode);break}case hi:{let te=n-u,Ee=Q[V1]??0,{parts:Ne}=Q,Oe=Ne.length-Ee;if(Oe===0)break;let st=Ne[Ee+0],ot=Ne[Ee+1],xt={indent:V,mode:li,doc:st},Nr={indent:V,mode:Ir,doc:st},Cl=Ql(xt,[],te,x.length>0,t,!0);if(Oe===1){Cl?d.push(xt):d.push(Nr);break}let Cd={indent:V,mode:li,doc:ot},Sl={indent:V,mode:Ir,doc:ot};if(Oe===2){Cl?d.push(Cd,xt):d.push(Sl,Nr);break}let Uy=Ne[Ee+2],Sd={indent:V,mode:Z,doc:{...Q,[V1]:Ee+2}},vd=Ql({indent:V,mode:li,doc:[st,ot,Uy]},[],te,x.length>0,t,!0);d.push(Sd),vd?d.push(Cd,xt):Cl?d.push(Sl,xt):d.push(Sl,Nr);break}case Dr:case Mi:{let te=Q.groupId?t[Q.groupId]:Z;if(te===Ir){let Ee=Q.type===Dr?Q.breakContents:Q.negate?Q.contents:Zl(Q.contents);Ee&&d.push({indent:V,mode:Z,doc:Ee})}if(te===li){let Ee=Q.type===Dr?Q.flatContents:Q.negate?Zl(Q.contents):Q.contents;Ee&&d.push({indent:V,mode:Z,doc:Ee})}break}case Yi:x.push({indent:V,mode:Z,doc:Q.contents});break;case Bi:x.length>0&&d.push({indent:V,mode:Z,doc:J1});break;case kt:switch(Z){case li:if(!Q.hard){Q.soft||(E.write(" "),u+=1);break}y=!0;case Ir:if(x.length>0){d.push({indent:V,mode:Z,doc:Q},...x.reverse()),x.length=0;break}Q.literal?(E.write(o),u=0,V.root&&(V.root.value&&E.write(V.root.value),u=V.root.length)):(E.trim(),E.write(o+V.value),u=V.length);break}break;case pi:d.push({indent:V,mode:Z,doc:Q.contents});break;case Rr:break;default:throw new fs(Q)}d.length===0&&x.length>0&&(d.push(...x.reverse()),x.length=0)}let{text:T,positions:N}=E.finish();if(N.length!==2)return{formatted:T};let[P,$]=N;return{formatted:T,cursorNodeStart:P,cursorNodeText:T.slice(P,$)}}var m7=r=>r.charAt(0)==="\uFEFF",f7=r=>"\uFEFF"+r;function y7(r,e,t=0){let n=0;for(let o=t;o<r.length;++o)r[o]===" "?n=n+e-n%e:n++;return n}var em=y7,w7=class{constructor(r){this.stack=[r]}get key(){let{stack:r,siblings:e}=this;return Pt(0,r,e===null?-2:-4)??null}get index(){return this.siblings===null?null:Pt(0,this.stack,-2)}get node(){return Pt(0,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:r}=this,e=Pt(0,r,-3);return Array.isArray(e)?e:null}get next(){let{siblings:r}=this;return r===null?null:r[this.index+1]}get previous(){let{siblings:r}=this;return r===null?null:r[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:r,index:e}=this;return r!==null&&e===r.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...this.#t()]}getName(){let{stack:r}=this,{length:e}=r;return e>1?Pt(0,r,-2):null}getValue(){return Pt(0,this.stack,-1)}getNode(r=0){let e=this.#e(r);return e===-1?null:this.stack[e]}getParentNode(r=0){return this.getNode(r+1)}#e(r){let{stack:e}=this;for(let t=e.length-1;t>=0;t-=2)if(!Array.isArray(e[t])&&--r<0)return t;return-1}call(r,...e){let{stack:t}=this,{length:n}=t,o=Pt(0,t,-1);for(let u of e)o=o?.[u],t.push(u,o);try{return r(this)}finally{t.length=n}}callParent(r,e=0){let t=this.#e(e+1),n=this.stack.splice(t+1);try{return r(this)}finally{this.stack.push(...n)}}each(r,...e){let{stack:t}=this,{length:n}=t,o=Pt(0,t,-1);for(let u of e)o=o[u],t.push(u,o);try{for(let u=0;u<o.length;++u)t.push(u,o[u]),r(this,u,o),t.length-=2}finally{t.length=n}}map(r,...e){let t=[];return this.each((n,o,u)=>{t[o]=r(n,o,u)},...e),t}match(...r){let e=this.stack.length-1,t=null,n=this.stack[e--];for(let o of r){if(n===void 0)return!1;let u=null;if(typeof t=="number"&&(u=t,t=this.stack[e--],n=this.stack[e--]),o&&!o(n,t,u))return!1;t=this.stack[e--],n=this.stack[e--]}return!0}findAncestor(r){for(let e of this.#t())if(r(e))return e}hasAncestor(r){for(let e of this.#t())if(r(e))return!0;return!1}*#t(){let{stack:r}=this;for(let e=r.length-3;e>=0;e-=2){let t=r[e];Array.isArray(t)||(yield t)}}},g7=w7;function x7(r){return Array.isArray(r)&&r.length>0}var c2=x7;function D7(r){return r!==null&&typeof r=="object"}var tm=D7;function Eo(r){return(e,t,n)=>{if(t===!1)return!1;let o=!!n?.backwards,{length:u}=e,d=t;for(;d>=0&&d<u;){let y=e.charAt(d);if(r instanceof RegExp){if(!r.test(y))return d}else if(!r.includes(y))return d;o?d--:d++}return d===-1||d===u?d:!1}}var b7=Eo(/\s/),rn=Eo(" "),h2=Eo(",; "),p2=Eo(/[^\n\r]/),Cg=r=>r===`
19
+ `||r==="\r"||r==="\u2028"||r==="\u2029";function E7(r,e,t){if(e===!1)return!1;let n=!!t?.backwards,o=r.charAt(e);if(n){if(r.charAt(e-1)==="\r"&&o===`
20
+ `)return e-2;if(Cg(o))return e-1}else{if(o==="\r"&&r.charAt(e+1)===`
21
+ `)return e+2;if(Cg(o))return e+1}return e}var qn=E7;function C7(r,e,t={}){let n=rn(r,t.backwards?e-1:e,t),o=qn(r,n,t);return n!==o}var en=C7;function*ou(r,e){let{getVisitorKeys:t,filter:n=()=>!0}=e,o=u=>tm(u)&&n(u);for(let u of t(r)){let d=r[u];if(Array.isArray(d))for(let y of d)o(y)&&(yield y);else o(d)&&(yield d)}}function*S7(r,e){let t=[r];for(let n=0;n<t.length;n++){let o=t[n];for(let u of ou(o,e))yield u,t.push(u)}}function v7(r,e){return ou(r,e).next().done}function T7(r,e,t){let{filter:n}=t;if(!n)return[];let o,u=(t.getChildren?.(r,t)??[...ou(r,{getVisitorKeys:t.getVisitorKeys})]).flatMap(x=>(o??(o=[r,...e]),n(x,o)?[x]:d2(x,o,t))),{locStart:d,locEnd:y}=t;return u.sort((x,E)=>d(x)-d(E)||y(x)-y(E)),u}function d2(r,e,t){return z1(t.cache,r,n=>T7(n,e,t))}var m2=d2;function A7(r){let e=r.type||r.kind||"(unknown type)",t=String(r.name||r.id&&(typeof r.id=="object"?r.id.name:r.id)||r.key&&(typeof r.key=="object"?r.key.name:r.key)||r.value&&(typeof r.value=="object"?"":String(r.value))||r.operator||"");return t.length>20&&(t=t.slice(0,19)+"\u2026"),e+(t?" "+t:"")}function rm(r,e){return(r.comments??(r.comments=[])).push(e),e.printed=!1,e.nodeDescription=A7(r),!0}function xo(r,e){return e.leading=!0,e.trailing=!1,rm(r,e)}function Vn(r,e,t){return e.leading=!1,e.trailing=!1,t&&(e.marker=t),rm(r,e)}function Do(r,e){return e.leading=!1,e.trailing=!0,rm(r,e)}var f2=new WeakMap;function y2(r,e,t,n,o=[]){let{locStart:u,locEnd:d}=t,y=u(e),x=d(e),E=m2(r,o,{cache:f2,locStart:u,locEnd:d,getVisitorKeys:t.getVisitorKeys,filter:t.printer.canAttachComment,getChildren:t.printer.getCommentChildNodes}),T,N,P=0,$=E.length;for(;P<$;){let V=P+$>>1,Z=E[V],Q=u(Z),te=d(Z);if(Q<=y&&x<=te)return y2(Z,e,t,Z,[Z,...o]);if(te<=y){T=Z,P=V+1;continue}if(x<=Q){N=Z,$=V;continue}throw new Error("Comment location overlaps with node location")}if(n?.type==="TemplateLiteral"){let{quasis:V}=n,Z=R1(V,e,t);T&&R1(V,T,t)!==Z&&(T=null),N&&R1(V,N,t)!==Z&&(N=null)}return{enclosingNode:n,precedingNode:T,followingNode:N,ancestors:o}}var I1=()=>!1;function _7(r,e){let{comments:t}=r;if(delete r.comments,!c2(t)||!e.printer.canAttachComment)return;let n=[],{printer:{features:{experimental_avoidAstMutation:o},handleComments:u={}},originalText:d}=e,{ownLine:y=I1,endOfLine:x=I1,remaining:E=I1}=u,T=t.map((P,$)=>({...y2(r,P,e),comment:P,text:d,options:e,ast:r,isLastComment:t.length-1===$,placement:void 0})),N=!o;for(let[P,$]of T.entries()){let{comment:V,precedingNode:Z,enclosingNode:Q,followingNode:te,text:Ee,options:Ne,ast:Oe,isLastComment:st}=$,ot=K7(Ee,Ne,T,P)?"ownLine":F7(Ee,Ne,T,P)?"endOfLine":"remaining",xt;if(o?($.placement=ot,xt=[$]):xt=[V,Ee,Ne,Oe,st],N&&(V.enclosingNode=Q,V.precedingNode=Z,V.followingNode=te),V.placement=ot,ot==="ownLine")y(...xt)||(te?xo(te,V):Z?Do(Z,V):Vn(Q||Oe,V));else if(ot==="endOfLine")x(...xt)||(Z?Do(Z,V):te?xo(te,V):Vn(Q||Oe,V));else if(!E(...xt))if(Z&&te){let Nr=n.length;Nr>0&&n[Nr-1].followingNode!==te&&Sg(n,Ne),n.push($)}else Z?Do(Z,V):te?xo(te,V):Vn(Q||Oe,V)}if(Sg(n,e),N)for(let P of t)delete P.precedingNode,delete P.enclosingNode,delete P.followingNode}var w2=r=>!/[\S\n\u2028\u2029]/.test(r);function K7(r,e,t,n){let{comment:o,precedingNode:u}=t[n],{locStart:d,locEnd:y}=e,x=d(o);if(u)for(let E=n-1;E>=0;E--){let{comment:T,precedingNode:N}=t[E];if(N!==u||!w2(r.slice(y(T),x)))break;x=d(T)}return en(r,x,{backwards:!0})}function F7(r,e,t,n){let{comment:o,followingNode:u}=t[n],{locStart:d,locEnd:y}=e,x=y(o);if(u)for(let E=n+1;E<t.length;E++){let{comment:T,followingNode:N}=t[E];if(N!==u||!w2(r.slice(x,d(T))))break;x=y(T)}return en(r,x)}function Sg(r,e){let t=r.length;if(t===0)return;let{precedingNode:n,followingNode:o}=r[0],u=e.locStart(o),d;for(d=t;d>0;--d){let{comment:y,precedingNode:x,followingNode:E}=r[d-1];tn(x,n),tn(E,o);let T=e.originalText.slice(e.locEnd(y),u);if(e.printer.isGap?.(T,e)??/^[\s(]*$/.test(T))u=e.locStart(y);else break}for(let[y,{comment:x}]of r.entries())y<d?Do(n,x):xo(o,x);for(let y of[n,o])y.comments&&y.comments.length>1&&y.comments.sort((x,E)=>e.locStart(x)-e.locStart(E));r.length=0}function R1(r,e,t){let n=t.locStart(e)-1;for(let o=1;o<r.length;++o)if(n<t.locStart(r[o]))return o-1;return 0}function N7(r,e){let t=e-1;t=rn(r,t,{backwards:!0}),t=qn(r,t,{backwards:!0}),t=rn(r,t,{backwards:!0});let n=qn(r,t,{backwards:!0});return t!==n}var im=N7,g2=()=>!0;function x2(r,e){let t=r.node;return t.printed=!0,e.printer.printComment(r,e)}function P7(r,e){let t=r.node,n=[x2(r,e)],{printer:o,originalText:u,locStart:d,locEnd:y}=e;if(o.isBlockComment?.(t)){let E=" ";en(u,y(t))&&(en(u,d(t),{backwards:!0})?E=ki:E=r2),n.push(E)}else n.push(ki);let x=qn(u,rn(u,y(t)));return x!==!1&&en(u,x)&&n.push(ki),n}function k7(r,e,t){let n=r.node,o=x2(r,e),{printer:u,originalText:d,locStart:y}=e,x=u.isBlockComment?.(n);if(t?.hasLineSuffix&&!t?.isBlock||en(d,y(n),{backwards:!0})){let E=im(d,y(n));return{doc:U1([ki,E?ki:"",o]),isBlock:x,hasLineSuffix:!0}}return!x||t?.hasLineSuffix?{doc:[U1([" ",o]),nu],isBlock:x,hasLineSuffix:!0}:{doc:[" ",o],isBlock:x,hasLineSuffix:!1}}function L7(r,e,t){let n=e[Symbol.for("printedComments")],o=t?.filter??g2,u=new Set(r.node?.comments?.filter(d=>!n?.has(d)&&d.leading&&o(d)));return u.size===0?"":r.map(({node:d})=>u.has(d)?P7(r,e):"","comments").filter(Boolean)}function I7(r,e,t){let n=r.node?.comments,o=new Set(n?.filter(T=>T.trailing)),u=e[Symbol.for("printedComments")],d=t?.filter??g2,y=new Set(n?.filter(T=>o.has(T)&&!u?.has(T)&&d(T)));if(y.size===0)return"";let x=[],E;return r.each(({node:T})=>{o.has(T)&&(E=k7(r,e,E),y.has(T)&&x.push(E.doc))},"comments"),x}function R7(r,e,t,n){let o=L7(r,t,n),u=I7(r,t,n);return o||u?Xl(e,d=>[o,d,u]):e}function O7(r){let{[ru]:e,[Symbol.for("printedComments")]:t}=r;for(let n of e){if(!n.printed&&!t.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var M7=()=>tn,D2=class extends Error{name="ConfigError"},vg=class extends Error{name="UndefinedParserError"},Y7=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty),au=Y7,B7={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
22
+ (mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:r=>typeof r=="string"||typeof r=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:r=>typeof r=="string"||typeof r=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
23
+ The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
24
+ The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function b2({plugins:r=[],showDeprecated:e=!1}={}){let t=r.flatMap(o=>o.languages??[]),n=[];for(let o of V7(Object.assign({},...r.map(({options:u})=>u),B7)))!e&&o.deprecated||(Array.isArray(o.choices)&&(e||(o.choices=o.choices.filter(u=>!u.deprecated)),o.name==="parser"&&(o.choices=[...o.choices,...U7(o.choices,t,r)])),o.pluginDefaults=Object.fromEntries(r.filter(u=>u.defaultOptions?.[o.name]!==void 0).map(u=>[u.name,u.defaultOptions[o.name]])),n.push(o));return{languages:t,options:n}}function*U7(r,e,t){let n=new Set(r.map(o=>o.value));for(let o of e)if(o.parsers){for(let u of o.parsers)if(!n.has(u)){n.add(u);let d=t.find(x=>x.parsers&&au(x.parsers,u)),y=o.name;d?.name&&(y+=` (plugin: ${d.name})`),yield{value:u,description:y}}}}function V7(r){let e=[];for(let[t,n]of Object.entries(r)){let o={name:t,...n};Array.isArray(o.default)&&(o.default=Pt(0,o.default,-1).value),e.push(o)}return e}var $7=Array.prototype.toReversed??function(){return[...this].reverse()},H7=bo("toReversed",function(){if(Array.isArray(this))return $7}),q7=H7;function j7(){let r=globalThis,e=r.process?.platform;if(typeof e=="string")return e.startsWith("win");let t=r.Deno?.build?.os;return typeof t=="string"?t==="windows":r.navigator?.platform?.startsWith("Win")??!1}var G7=j7();function E2(r){if(r=r instanceof URL?r:new URL(r),r.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${r.protocol}"`);return r}function W7(r){return r=E2(r),decodeURIComponent(r.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function z7(r){r=E2(r);let e=decodeURIComponent(r.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return r.hostname!==""&&(e=`\\\\${r.hostname}${e}`),e}function Q7(r){return G7?z7(r):W7(r)}var X7=r=>String(r).split(/[/\\]/).pop(),J7=r=>String(r).startsWith("file:");function Tg(r,e){if(!e)return;let t=X7(e).toLowerCase();return r.find(({filenames:n})=>n?.some(o=>o.toLowerCase()===t))??r.find(({extensions:n})=>n?.some(o=>t.endsWith(o)))}function Z7(r,e){if(e)return r.find(({name:t})=>t.toLowerCase()===e)??r.find(({aliases:t})=>t?.includes(e))??r.find(({extensions:t})=>t?.includes(`.${e}`))}var e8=void 0;function Ag(r,e){if(e){if(J7(e))try{e=Q7(e)}catch{return}if(typeof e=="string")return r.find(({isSupported:t})=>t?.({filepath:e}))}}function t8(r,e){let t=q7(0,r.plugins).flatMap(n=>n.languages??[]);return(Z7(t,e.language)??Tg(t,e.physicalFile)??Tg(t,e.file)??Ag(t,e.physicalFile)??Ag(t,e.file)??e8?.(t,e.physicalFile))?.parsers[0]}var C2=t8,ms={key:r=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(r)?r:JSON.stringify(r),value(r){if(r===null||typeof r!="object")return JSON.stringify(r);if(Array.isArray(r))return`[${r.map(t=>ms.value(t)).join(", ")}]`;let e=Object.keys(r);return e.length===0?"{}":`{ ${e.map(t=>`${ms.key(t)}: ${ms.value(r[t])}`).join(", ")} }`},pair:({key:r,value:e})=>ms.value({[r]:e})},S2=new Proxy(String,{get:()=>S2}),ui=S2,r8=(r,e,{descriptor:t})=>{let n=[`${ui.yellow(typeof r=="string"?t.key(r):t.pair(r))} is deprecated`];return e&&n.push(`we now treat it as ${ui.blue(typeof e=="string"?t.key(e):t.pair(e))}`),n.join("; ")+"."},v2=Symbol.for("vnopts.VALUE_NOT_EXIST"),Jl=Symbol.for("vnopts.VALUE_UNCHANGED"),_g=" ".repeat(2),i8=(r,e,t)=>{let{text:n,list:o}=t.normalizeExpectedResult(t.schemas[r].expected(t)),u=[];return n&&u.push(Kg(r,e,n,t.descriptor)),o&&u.push([Kg(r,e,o.title,t.descriptor)].concat(o.values.map(d=>T2(d,t.loggerPrintWidth))).join(`
25
+ `)),A2(u,t.loggerPrintWidth)};function Kg(r,e,t,n){return[`Invalid ${ui.red(n.key(r))} value.`,`Expected ${ui.blue(t)},`,`but received ${e===v2?ui.gray("nothing"):ui.red(n.value(e))}.`].join(" ")}function T2({text:r,list:e},t){let n=[];return r&&n.push(`- ${ui.blue(r)}`),e&&n.push([`- ${ui.blue(e.title)}:`].concat(e.values.map(o=>T2(o,t-_g.length).replace(/^|\n/g,`$&${_g}`))).join(`
26
+ `)),A2(n,t)}function A2(r,e){if(r.length===1)return r[0];let[t,n]=r,[o,u]=r.map(d=>d.split(`
27
+ `,1)[0].length);return o>e&&o>u?n:t}var ds=[],O1=[];function M1(r,e,t){if(r===e)return 0;let n=t?.maxDistance,o=r;r.length>e.length&&(r=e,e=o);let u=r.length,d=e.length;for(;u>0&&r.charCodeAt(~-u)===e.charCodeAt(~-d);)u--,d--;let y=0;for(;y<u&&r.charCodeAt(y)===e.charCodeAt(y);)y++;if(u-=y,d-=y,n!==void 0&&d-u>n)return n;if(u===0)return n!==void 0&&d>n?n:d;let x,E,T,N,P=0,$=0;for(;P<u;)O1[P]=r.charCodeAt(y+P),ds[P]=++P;for(;$<d;){for(x=e.charCodeAt(y+$),T=$++,E=$,P=0;P<u;P++)N=x===O1[P]?T:T+1,T=ds[P],E=ds[P]=T>E?N>E?E+1:N:N>T?T+1:N;if(n!==void 0){let V=E;for(P=0;P<u;P++)ds[P]<V&&(V=ds[P]);if(V>n)return n}}return ds.length=u,O1.length=u,n!==void 0&&E>n?n:E}function n8(r,e,t){if(!Array.isArray(e)||e.length===0)return;let n=t?.maxDistance,o=r.length;for(let x of e)if(x===r)return x;if(n===0)return;let u,d=Number.POSITIVE_INFINITY,y=new Set;for(let x of e){if(y.has(x))continue;y.add(x);let E=Math.abs(x.length-o);if(E>=d||n!==void 0&&E>n)continue;let T=Number.isFinite(d)?n===void 0?d:Math.min(d,n):n,N=T===void 0?M1(r,x):M1(r,x,{maxDistance:T});if(n!==void 0&&N>n)continue;let P=N;if(T!==void 0&&N===T&&T===n&&(P=M1(r,x)),P<d&&(d=P,u=x,d===0))break}if(!(n!==void 0&&d>n))return u}var _2=(r,e,{descriptor:t,logger:n,schemas:o})=>{let u=[`Ignored unknown option ${ui.yellow(t.pair({key:r,value:e}))}.`],d=n8(r,Object.keys(o),{maxDistance:3});d&&u.push(`Did you mean ${ui.blue(t.key(d))}?`),n.warn(u.join(" "))},s8=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function o8(r,e){let t=new r(e),n=Object.create(t);for(let o of s8)o in e&&(n[o]=a8(e[o],t,sn.prototype[o].length));return n}var sn=class{static create(r){return o8(this,r)}constructor(r){this.name=r.name}default(r){}expected(r){return"nothing"}validate(r,e){return!1}deprecated(r,e){return!1}forward(r,e){}redirect(r,e){}overlap(r,e,t){return r}preprocess(r,e){return r}postprocess(r,e){return Jl}};function a8(r,e,t){return typeof r=="function"?(...n)=>r(...n.slice(0,t-1),e,...n.slice(t-1)):()=>r}var l8=class extends sn{constructor(r){super(r),this._sourceName=r.sourceName}expected(r){return r.schemas[this._sourceName].expected(r)}validate(r,e){return e.schemas[this._sourceName].validate(r,e)}redirect(r,e){return this._sourceName}},u8=class extends sn{expected(){return"anything"}validate(){return!0}},c8=class extends sn{constructor({valueSchema:r,name:e=r.name,...t}){super({...t,name:e}),this._valueSchema=r}expected(r){let{text:e,list:t}=r.normalizeExpectedResult(this._valueSchema.expected(r));return{text:e&&`an array of ${e}`,list:t&&{title:"an array of the following values",values:[{list:t}]}}}validate(r,e){if(!Array.isArray(r))return!1;let t=[];for(let n of r){let o=e.normalizeValidateResult(this._valueSchema.validate(n,e),n);o!==!0&&t.push(o.value)}return t.length===0?!0:{value:t}}deprecated(r,e){let t=[];for(let n of r){let o=e.normalizeDeprecatedResult(this._valueSchema.deprecated(n,e),n);o!==!1&&t.push(...o.map(({value:u})=>({value:[u]})))}return t}forward(r,e){let t=[];for(let n of r){let o=e.normalizeForwardResult(this._valueSchema.forward(n,e),n);t.push(...o.map(Fg))}return t}redirect(r,e){let t=[],n=[];for(let o of r){let u=e.normalizeRedirectResult(this._valueSchema.redirect(o,e),o);"remain"in u&&t.push(u.remain),n.push(...u.redirect.map(Fg))}return t.length===0?{redirect:n}:{redirect:n,remain:t}}overlap(r,e){return r.concat(e)}};function Fg({from:r,to:e}){return{from:[r],to:e}}var h8=class extends sn{expected(){return"true or false"}validate(r){return typeof r=="boolean"}};function p8(r,e){let t=Object.create(null);for(let n of r){let o=n[e];if(t[o])throw new Error(`Duplicate ${e} ${JSON.stringify(o)}`);t[o]=n}return t}function d8(r,e){let t=new Map;for(let n of r){let o=n[e];if(t.has(o))throw new Error(`Duplicate ${e} ${JSON.stringify(o)}`);t.set(o,n)}return t}function m8(){let r=Object.create(null);return e=>{let t=JSON.stringify(e);return r[t]?!0:(r[t]=!0,!1)}}function f8(r,e){let t=[],n=[];for(let o of r)e(o)?t.push(o):n.push(o);return[t,n]}function y8(r){return r===Math.floor(r)}function w8(r,e){if(r===e)return 0;let t=typeof r,n=typeof e,o=["undefined","object","boolean","number","string"];return t!==n?o.indexOf(t)-o.indexOf(n):t!=="string"?Number(r)-Number(e):r.localeCompare(e)}function g8(r){return(...e)=>{let t=r(...e);return typeof t=="string"?new Error(t):t}}function Ng(r){return r===void 0?{}:r}function K2(r){if(typeof r=="string")return{text:r};let{text:e,list:t}=r;return x8((e||t)!==void 0,"Unexpected `expected` result, there should be at least one field."),t?{text:e,list:{title:t.title,values:t.values.map(K2)}}:{text:e}}function Pg(r,e){return r===!0?!0:r===!1?{value:e}:r}function kg(r,e,t=!1){return r===!1?!1:r===!0?t?!0:[{value:e}]:"value"in r?[r]:r.length===0?!1:r}function Lg(r,e){return typeof r=="string"||"key"in r?{from:e,to:r}:"from"in r?{from:r.from,to:r.to}:{from:e,to:r.to}}function $1(r,e){return r===void 0?[]:Array.isArray(r)?r.map(t=>Lg(t,e)):[Lg(r,e)]}function Ig(r,e){let t=$1(typeof r=="object"&&"redirect"in r?r.redirect:r,e);return t.length===0?{remain:e,redirect:t}:typeof r=="object"&&"remain"in r?{remain:r.remain,redirect:t}:{redirect:t}}function x8(r,e){if(!r)throw new Error(e)}var D8=class extends sn{constructor(r){super(r),this._choices=d8(r.choices.map(e=>e&&typeof e=="object"?e:{value:e}),"value")}expected({descriptor:r}){let e=Array.from(this._choices.keys()).map(o=>this._choices.get(o)).filter(({hidden:o})=>!o).map(o=>o.value).sort(w8).map(r.value),t=e.slice(0,-2),n=e.slice(-2);return{text:t.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:e}}}validate(r){return this._choices.has(r)}deprecated(r){let e=this._choices.get(r);return e&&e.deprecated?{value:r}:!1}forward(r){let e=this._choices.get(r);return e?e.forward:void 0}redirect(r){let e=this._choices.get(r);return e?e.redirect:void 0}},b8=class extends sn{expected(){return"a number"}validate(r,e){return typeof r=="number"}},E8=class extends b8{expected(){return"an integer"}validate(r,e){return e.normalizeValidateResult(super.validate(r,e),r)===!0&&y8(r)}},Rg=class extends sn{expected(){return"a string"}validate(r){return typeof r=="string"}},C8=ms,S8=_2,v8=i8,T8=r8,A8=class{constructor(r,e){let{logger:t=console,loggerPrintWidth:n=80,descriptor:o=C8,unknown:u=S8,invalid:d=v8,deprecated:y=T8,missing:x=()=>!1,required:E=()=>!1,preprocess:T=P=>P,postprocess:N=()=>Jl}=e||{};this._utils={descriptor:o,logger:t||{warn:()=>{}},loggerPrintWidth:n,schemas:p8(r,"name"),normalizeDefaultResult:Ng,normalizeExpectedResult:K2,normalizeDeprecatedResult:kg,normalizeForwardResult:$1,normalizeRedirectResult:Ig,normalizeValidateResult:Pg},this._unknownHandler=u,this._invalidHandler=g8(d),this._deprecatedHandler=y,this._identifyMissing=(P,$)=>!(P in $)||x(P,$),this._identifyRequired=E,this._preprocess=T,this._postprocess=N,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=m8()}normalize(r){let e={},t=[this._preprocess(r,this._utils)],n=()=>{for(;t.length!==0;){let o=t.shift(),u=this._applyNormalization(o,e);t.push(...u)}};n();for(let o of Object.keys(this._utils.schemas)){let u=this._utils.schemas[o];if(!(o in e)){let d=Ng(u.default(this._utils));"value"in d&&t.push({[o]:d.value})}}n();for(let o of Object.keys(this._utils.schemas)){if(!(o in e))continue;let u=this._utils.schemas[o],d=e[o],y=u.postprocess(d,this._utils);y!==Jl&&(this._applyValidation(y,o,u),e[o]=y)}return this._applyPostprocess(e),this._applyRequiredCheck(e),e}_applyNormalization(r,e){let t=[],{knownKeys:n,unknownKeys:o}=this._partitionOptionKeys(r);for(let u of n){let d=this._utils.schemas[u],y=d.preprocess(r[u],this._utils);this._applyValidation(y,u,d);let x=({from:N,to:P})=>{t.push(typeof P=="string"?{[P]:N}:{[P.key]:P.value})},E=({value:N,redirectTo:P})=>{let $=kg(d.deprecated(N,this._utils),y,!0);if($!==!1)if($===!0)this._hasDeprecationWarned(u)||this._utils.logger.warn(this._deprecatedHandler(u,P,this._utils));else for(let{value:V}of $){let Z={key:u,value:V};if(!this._hasDeprecationWarned(Z)){let Q=typeof P=="string"?{key:P,value:V}:P;this._utils.logger.warn(this._deprecatedHandler(Z,Q,this._utils))}}};$1(d.forward(y,this._utils),y).forEach(x);let T=Ig(d.redirect(y,this._utils),y);if(T.redirect.forEach(x),"remain"in T){let N=T.remain;e[u]=u in e?d.overlap(e[u],N,this._utils):N,E({value:N})}for(let{from:N,to:P}of T.redirect)E({value:N,redirectTo:P})}for(let u of o){let d=r[u];this._applyUnknownHandler(u,d,e,(y,x)=>{t.push({[y]:x})})}return t}_applyRequiredCheck(r){for(let e of Object.keys(this._utils.schemas))if(this._identifyMissing(e,r)&&this._identifyRequired(e))throw this._invalidHandler(e,v2,this._utils)}_partitionOptionKeys(r){let[e,t]=f8(Object.keys(r).filter(n=>!this._identifyMissing(n,r)),n=>n in this._utils.schemas);return{knownKeys:e,unknownKeys:t}}_applyValidation(r,e,t){let n=Pg(t.validate(r,this._utils),r);if(n!==!0)throw this._invalidHandler(e,n.value,this._utils)}_applyUnknownHandler(r,e,t,n){let o=this._unknownHandler(r,e,this._utils);if(o)for(let u of Object.keys(o)){if(this._identifyMissing(u,o))continue;let d=o[u];u in this._utils.schemas?n(u,d):t[u]=d}}_applyPostprocess(r){let e=this._postprocess(r,this._utils);if(e!==Jl){if(e.delete)for(let t of e.delete)delete r[t];if(e.override){let{knownKeys:t,unknownKeys:n}=this._partitionOptionKeys(e.override);for(let o of t){let u=e.override[o];this._applyValidation(u,o,this._utils.schemas[o]),r[o]=u}for(let o of n){let u=e.override[o];this._applyUnknownHandler(o,u,r,(d,y)=>{let x=this._utils.schemas[d];this._applyValidation(y,d,x),r[d]=y})}}}}},Y1;function _8(r,e,{logger:t=!1,isCLI:n=!1,passThrough:o=!1,FlagSchema:u,descriptor:d}={}){if(n){if(!u)throw new Error("'FlagSchema' option is required.");if(!d)throw new Error("'descriptor' option is required.")}else d=ms;let y=o?Array.isArray(o)?(P,$)=>o.includes(P)?{[P]:$}:void 0:(P,$)=>({[P]:$}):(P,$,V)=>{let{_:Z,...Q}=V.schemas;return _2(P,$,{...V,schemas:Q})},x=K8(e,{isCLI:n,FlagSchema:u}),E=new A8(x,{logger:t,unknown:y,descriptor:d}),T=t!==!1;T&&Y1&&(E._hasDeprecationWarned=Y1);let N=E.normalize(r);return T&&(Y1=E._hasDeprecationWarned),N}function K8(r,{isCLI:e,FlagSchema:t}){let n=[];e&&n.push(u8.create({name:"_"}));for(let o of r)n.push(F8(o,{isCLI:e,optionInfos:r,FlagSchema:t})),o.alias&&e&&n.push(l8.create({name:o.alias,sourceName:o.name}));return n}function F8(r,{isCLI:e,optionInfos:t,FlagSchema:n}){let{name:o}=r,u={name:o},d,y={};switch(r.type){case"int":d=E8,e&&(u.preprocess=Number);break;case"string":d=Rg;break;case"choice":d=D8,u.choices=r.choices.map(x=>x?.redirect?{...x,redirect:{to:{key:r.name,value:x.redirect}}}:x);break;case"boolean":d=h8;break;case"flag":d=n,u.flags=t.flatMap(x=>[x.alias,x.description&&x.name,x.oppositeDescription&&`no-${x.name}`].filter(Boolean));break;case"path":d=Rg;break;default:throw new Error(`Unexpected type ${r.type}`)}if(r.exception?u.validate=(x,E,T)=>r.exception(x)||E.validate(x,T):u.validate=(x,E,T)=>x===void 0||E.validate(x,T),r.redirect&&(y.redirect=x=>x?{to:typeof r.redirect=="string"?r.redirect:{key:r.redirect.option,value:r.redirect.value}}:void 0),r.deprecated&&(y.deprecated=!0),e&&!r.array){let x=u.preprocess||(E=>E);u.preprocess=(E,T,N)=>T.preprocess(x(Array.isArray(E)?Pt(0,E,-1):E),N)}return r.array?c8.create({...e?{preprocess:x=>Array.isArray(x)?x:[x]}:{},...y,valueSchema:d.create(u)}):d.create({...u,...y})}var N8=_8,P8=Array.prototype.findLast??function(r){for(let e=this.length-1;e>=0;e--){let t=this[e];if(r(t,e,this))return t}},k8=bo("findLast",function(){if(Array.isArray(this))return P8}),F2=k8,L8=Symbol.for("PRETTIER_IS_FRONT_MATTER"),I8=[];function R8(r){return!!r?.[L8]}var nm=R8,N2=new Set(["yaml","toml"]),P2=({node:r})=>nm(r)&&N2.has(r.language);async function O8(r,e,t,n){let{node:o}=t,{language:u}=o;if(!N2.has(u))return;let d=o.value.trim(),y;if(d){let x=u==="yaml"?u:C2(n,{language:u});if(!x)return;y=d?await r(d,{parser:x}):""}else y=d;return Jg([o.startDelimiter,o.explicitLanguage??"",ki,y,y?ki:"",o.endDelimiter])}function M8(r,e){return P2({node:r})&&(delete e.end,delete e.raw,delete e.value),e}var Y8=M8;function B8({node:r}){return r.raw}var U8=B8,k2=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),V8=r=>Object.keys(r).filter(e=>!k2.has(e));function $8(r,e){let t=r?n=>r(n,k2):V8;return e?new Proxy(t,{apply:(n,o,u)=>nm(u[0])?I8:Reflect.apply(n,o,u)}):t}var Og=$8;function L2(r,e){if(!e)throw new Error("parserName is required.");let t=F2(0,r,o=>o.parsers&&au(o.parsers,e));if(t)return t;let n=`Couldn't resolve parser "${e}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new D2(n)}function H8(r,e){if(!e)throw new Error("astFormat is required.");let t=F2(0,r,o=>o.printers&&au(o.printers,e));if(t)return t;let n=`Couldn't find plugin for AST format "${e}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new D2(n)}function sm({plugins:r,parser:e}){let t=L2(r,e);return I2(t,e)}function I2(r,e){let t=r.parsers[e];return typeof t=="function"?t():t}async function q8(r,e){let t=r.printers[e],n=typeof t=="function"?await t():t;return W8(n)}function j8(r){let{features:e,getVisitorKeys:t,embed:n,massageAstNode:o,print:u,...d}=r;e=J8(e);let y=e.experimental_frontMatterSupport;t=Og(t,y.massageAstNode||y.embed||y.print);let x=o;o&&y.massageAstNode&&(x=new Proxy(o,{apply(N,P,$){return Y8(...$),Reflect.apply(N,P,$)}}));let E=n;if(n){let N;E=new Proxy(n,{get(P,$,V){return $==="getVisitorKeys"?(N??(N=n.getVisitorKeys?Og(n.getVisitorKeys,y.massageAstNode||y.embed):t),N):Reflect.get(P,$,V)},apply:(P,$,V)=>y.embed&&P2(...V)?O8:Reflect.apply(P,$,V)})}let T=u;return y.print&&(T=new Proxy(u,{apply(N,P,$){let[V]=$;return nm(V.node)?U8(V):Reflect.apply(N,P,$)}})),{features:e,getVisitorKeys:t,embed:E,massageAstNode:x,print:T,...d}}var G8=new WeakMap;function W8(r){return z1(G8,r,j8)}var z8=["clean","embed","print"],Q8=Object.fromEntries(z8.map(r=>[r,!1]));function X8(r){return{...Q8,...r}}function J8(r){return{experimental_avoidAstMutation:!1,...r,experimental_frontMatterSupport:X8(r?.experimental_frontMatterSupport)}}var Mg={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function Z8(r,e={}){let t={...r};if(!t.parser){if(!t.filepath)throw new vg("No parser and no file path given, couldn't infer a parser.");if(t.parser=C2(t,{physicalFile:t.filepath}),!t.parser)throw new vg(`No parser could be inferred for file "${t.filepath}".`)}let n=b2({plugins:r.plugins,showDeprecated:!0}).options,o={...Mg,...Object.fromEntries(n.filter(N=>N.default!==void 0).map(N=>[N.name,N.default]))},u=L2(t.plugins,t.parser),d=await I2(u,t.parser);t.astFormat=d.astFormat,t.locEnd=d.locEnd,t.locStart=d.locStart;let y=u.printers?.[d.astFormat]?u:H8(t.plugins,d.astFormat),x=await q8(y,d.astFormat);t.printer=x,t.getVisitorKeys=x.getVisitorKeys;let E=y.defaultOptions?Object.fromEntries(Object.entries(y.defaultOptions).filter(([,N])=>N!==void 0)):{},T={...o,...E};for(let[N,P]of Object.entries(T))t[N]??(t[N]=P);return t.parser==="json"&&(t.trailingComma="none"),N8(t,n,{passThrough:Object.keys(Mg),...e})}var ws=Z8,Yg=/\r\n|[\n\r\u2028\u2029]/;function e4(r,e,t,n){let o={column:null,line:-1,...r.start},u={...o,...r.end},{linesAbove:d=2,linesBelow:y=3}=t||{},x=o.line-n,E=o.column,T=u.line-n,N=u.column,P=Math.max(x-(d+1),0),$=Math.min(e.length,T+y);x===-1&&(P=0),T===-1&&($=e.length);let V=T-x,Z={};if(V)for(let Q=0;Q<=V;Q++){let te=Q+x;if(E==null)Z[te]=!0;else if(Q===0){let Ee=e[te-1].length;Z[te]=[E,Ee-E]}else if(Q===V)Z[te]=[0,N];else{let Ee=e[te-1].length;Z[te]=[0,Ee]}}else if(E===N)E!=null?Z[x]=[E,0]:Z[x]=!0;else{let Q=E??0,te=N??Q;Z[x]=[Q,te-Q]}return{start:P,end:$,markerLines:Z}}function t4(r,e,t={},n){let{defs:o,highlight:u}=n||{defs:{gutter:String,marker:String,message:String,reset:String},highlight:String},d=(t.startLine||1)-1,y=r.split(Yg),{start:x,end:E,markerLines:T}=e4(e,y,t,d),N=e.start&&typeof e.start.column=="number",P=String(E+d).length,$=u(r).split(Yg,E).slice(x,E).map((V,Z)=>{let Q=x+1+Z,te=` ${` ${Q+d}`.slice(-P)} |`,Ee=T[Q],Ne=!T[Q+1];if(Ee){let Oe="";if(Array.isArray(Ee)){let st=V.slice(0,Ee[0]).replace(/[^\t]/g," "),ot=Ee[1]||1;Oe=[`
28
+ `,o.gutter(te.replace(/\d/g," "))," ",st,o.marker("^").repeat(ot)].join(""),Ne&&t.message&&(Oe+=" "+o.message(t.message))}return[o.marker(">"),o.gutter(te),V.length>0?` ${V}`:"",Oe].join("")}else return` ${o.gutter(te)}${V.length>0?` ${V}`:""}`}).join(`
29
+ `);return t.message&&!N&&($=`${" ".repeat(P+1)}${t.message}
30
+ ${$}`),o.reset($)}function r4(r,e,t={}){return t4(r,e,t)}async function i4(r,e){let t=await sm(e),n=t.preprocess?await t.preprocess(r,e):r;e.originalText=n;let o;try{o=await t.parse(n,e,e)}catch(u){n4(u,r)}return{text:n,ast:o}}function n4(r,e){let{loc:t}=r;if(t){let{start:n,end:o}=t;n&&(n={line:n.line,column:n.column-1}),o&&(o={line:o.line,column:o.column-1});let u=r4(e,{start:n,end:o},{highlightCode:!0});r.message+=`
31
+ `+u,r.codeFrame=u}throw r}var Co=i4;async function s4(r,e,t,n,o){if(t.embeddedLanguageFormatting!=="auto")return;let{printer:u}=t,{embed:d}=u;if(!d)return;if(d.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:y}=u,{getVisitorKeys:x}=d,E=[];P();let T=r.stack;for(let{print:$,node:V,pathStack:Z}of E)try{r.stack=Z;let Q=await $(N,e,r,t);Q&&o.set(V,Q)}catch(Q){if(globalThis.PRETTIER_DEBUG)throw Q}r.stack=T;function N($,V){return o4($,V,t,n)}function P(){let{node:$}=r;if($===null||typeof $!="object"||y?.(r))return;for(let Z of x($))Array.isArray($[Z])?r.each(P,Z):r.call(P,Z);let V=d(r,t);if(V){if(typeof V=="function"){E.push({print:V,node:$,pathStack:[...r.stack]});return}o.set($,V)}}}async function o4(r,e,t,n){let o=await ws({...t,...e,parentParser:t.parser,originalText:r,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:u}=await Co(r,o),d=await n(u,o);return Qg(d)}function a4(r,e,t,n){let{originalText:o,[ru]:u,locStart:d,locEnd:y,[Symbol.for("printedComments")]:x}=e,{node:E}=r,T=d(E),N=y(E);for(let $ of u)d($)>=T&&y($)<=N&&x.add($);let{printPrettierIgnored:P}=e.printer;return P?P(r,e,t,n):o.slice(T,N)}var l4=a4;async function lu(r,e){({ast:r}=await R2(r,e));let t=new Map,n=new g7(r),o=M7(e),u=new Map;await s4(n,y,e,lu,u);let d=await Bg(n,e,y,void 0,u);if(O7(e),e.cursorOffset>=0){if(e.nodeAfterCursor&&!e.nodeBeforeCursor)return[Hn,d];if(e.nodeBeforeCursor&&!e.nodeAfterCursor)return[d,Hn]}return d;function y(E,T){return E===void 0||E===n?x(T):Array.isArray(E)?n.call(()=>x(T),...E):n.call(()=>x(T),E)}function x(E){o(n);let T=n.node;if(T==null)return"";let N=tm(T)&&E===void 0;if(N&&t.has(T))return t.get(T);let P=Bg(n,e,y,E,u);return N&&t.set(T,P),P}}function Bg(r,e,t,n,o){let{node:u}=r,{printer:d}=e,y;switch(d.hasPrettierIgnore?.(r)?y=l4(r,e,t,n):o.has(u)?y=o.get(u):y=d.print(r,e,t,n),u){case e.cursorNode:y=Xl(y,x=>[Hn,x,Hn]);break;case e.nodeBeforeCursor:y=Xl(y,x=>[x,Hn]);break;case e.nodeAfterCursor:y=Xl(y,x=>[Hn,x]);break}return d.printComment&&c2(u.comments)&&!d.willPrintOwnComments?.(r,e)&&(y=R7(r,y,e)),y}async function R2(r,e){let t=r.comments??[];e[ru]=t,e[Symbol.for("printedComments")]=new Set,_7(r,e);let{printer:{preprocess:n}}=e;return r=n?await n(r,e):r,{ast:r,comments:t}}function u4(r,e){let{cursorOffset:t,locStart:n,locEnd:o,getVisitorKeys:u}=e,d=$=>n($)<=t&&o($)>=t,y=r,x=[r];for(let $ of S7(r,{getVisitorKeys:u,filter:d}))x.push($),y=$;if(v7(y,{getVisitorKeys:u}))return{cursorNode:y};let E,T,N=-1,P=Number.POSITIVE_INFINITY;for(;x.length>0&&(E===void 0||T===void 0);){y=x.pop();let $=E!==void 0,V=T!==void 0;for(let Z of ou(y,{getVisitorKeys:u})){if(!$){let Q=o(Z);Q<=t&&Q>N&&(E=Z,N=Q)}if(!V){let Q=n(Z);Q>=t&&Q<P&&(T=Z,P=Q)}}}return{nodeBeforeCursor:E,nodeAfterCursor:T}}var O2=u4;function c4(r,e){let{printer:t}=e,n=t.massageAstNode;if(!n)return r;let{getVisitorKeys:o}=t,{ignoredProperties:u}=n;return d(r);function d(y,x){if(!tm(y))return y;if(Array.isArray(y))return y.map(P=>d(P,x)).filter(Boolean);let E={},T=new Set(o(y));for(let P in y)!au(y,P)||u?.has(P)||(T.has(P)?E[P]=d(y[P],y):E[P]=y[P]);let N=n(y,E,x);if(N!==null)return N??E}}var h4=c4,p4=Array.prototype.findLastIndex??function(r){for(let e=this.length-1;e>=0;e--){let t=this[e];if(r(t,e,this))return e}return-1},d4=bo("findLastIndex",function(){if(Array.isArray(this))return p4}),m4=d4;function Ye(r){let e=new Set(r);return t=>e.has(t?.type)}var JF=Ye(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),ZF=Ye(["SatisfiesExpression","TSSatisfiesExpression"]),eN=Ye(["TSUnionType","UnionTypeAnnotation"]),tN=Ye(["TSIntersectionType","IntersectionTypeAnnotation"]),rN=Ye(["TupleTypeAnnotation","TSTupleType"]),iN=Ye(["TSConditionalType","ConditionalTypeAnnotation"]),nN=Ye(["TSTemplateLiteralType","TemplateLiteralTypeAnnotation"]),sN=Ye(["TSImportType","ImportType"]),oN=Ye(["TSExternalModuleReference","ExternalModuleReference"]),aN=Ye(["TSTypeAliasDeclaration","TypeAlias"]),lN=Ye(["ReturnStatement","ThrowStatement"]),uN=Ye(["ReturnStatement","ThrowStatement","YieldExpression","UnaryExpression"]),cN=Ye(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),f4=Ye(["TSExportAssignment","ExportAssignment"]),hN=Ye(["AbstractMethodDefinition","TSAbstractMethodDefinition"]),pN=Ye(["AbstractPropertyDefinition","TSAbstractPropertyDefinition"]),dN=Ye(["TSParameterProperty","ParameterProperty"]),mN=Ye(["TSNonNullExpression","NonNullExpression"]),fN=Ye(["ArrayExpression"]),yN=Ye(["ObjectExpression"]),wN=Ye(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),gN=Ye(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),xN=Ye(["FunctionExpression","ArrowFunctionExpression"]),DN=Ye(["JSXElement","JSXFragment"]),bN=Ye(["BinaryExpression","LogicalExpression","NGPipeExpression"]),EN=Ye(["CallExpression","OptionalCallExpression"]),CN=Ye(["MemberExpression","OptionalMemberExpression"]),SN=Ye(["CallExpression","OptionalCallExpression","NewExpression"]),vN=Ye(["CallExpression","OptionalCallExpression","NewExpression","ImportExpression"]),TN=Ye(["ChainExpression","TSNonNullExpression","NonNullExpression"]),AN=Ye(["TSArrayType","ArrayTypeAnnotation"]),_N=Ye(["TSTypeParameterInstantiation","TypeParameterInstantiation"]),KN=Ye(["TSTypeAnnotation","TypeAnnotation"]),FN=Ye(["TSModuleDeclaration","DeclareModule","DeclareNamespace"]),NN=Ye(["TSConstructorType","ConstructorTypeAnnotation"]),PN=Ye(["ClassDeclaration","ClassExpression"]),kN=Ye(["ImportNamespaceSpecifier","ExportNamespaceSpecifier"]),LN=Ye(["TSEnumDeclaration","EnumDeclaration","DeclareEnum"]),IN=Ye(["TSEnumBody","EnumBody"]);function y4(r,e){return e=new Set(e),r.find(t=>M2.has(t.type)&&e.has(t))}function Ug(r){let e=m4(0,r,t=>t.type!=="Program"&&t.type!=="File");return e===-1?r:r.slice(0,e+1)}function w4(r,e,t){let{locStart:n,locEnd:o}=t,[u,...d]=r,[y,...x]=e;if(u===y)return[u,y];let E=n(u);for(let N of Ug(x))if(n(N)>=E)y=N;else break;let T=o(y);for(let N of Ug(d)){if(o(N)<=T)q1(t,N)&&(u=N);else break;if(u===y)break}return[u,y]}function H1(r,e,t,n,o=[],u,d){let{locStart:y,locEnd:x}=d,E=y(r),T=x(r);if(e>T||e<E||u==="rangeEnd"&&e===E||u==="rangeStart"&&e===T)return;let N=[r,...o],P=m2(r,N,{cache:f2,locStart:y,locEnd:x,getVisitorKeys:t.getVisitorKeys,filter:t.printer.canAttachComment,getChildren:t.printer.getCommentChildNodes});for(let $ of P){let V=H1($,e,t,n,N,u,d);if(V)return V}if(n(r,o[0]))return N}function g4(r,e){return e?.type==="ForStatement"&&e.init===r||(e?.type==="ForInStatement"||e?.type==="ForOfStatement")&&e.left===r}function x4(r,e){let{type:t}=r;return e?.type!=="DeclareExportDeclaration"&&t!=="TypeParameterDeclaration"&&t!=="TSTypeParameterDeclaration"&&!(t==="VariableDeclaration"&&g4(r,e))&&(t==="Directive"||t==="TypeAlias"||f4(r)||t.startsWith("Declare")||t.startsWith("TSDeclare")||t.endsWith("Statement")||t.endsWith("Declaration"))}var M2=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),D4=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function q1(r,e,t){if(!e)return!1;switch(r.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"yuku":case"yuku-ts":case"__babel_estree":return x4(e,t);case"json":case"json5":case"jsonc":case"json-stringify":return M2.has(e.type);case"graphql":return D4.has(e.kind);case"vue":return e.tag!=="root"}return!1}function b4(r,e,t){let{rangeStart:n,rangeEnd:o}=e;tn(o>n);let u=r.slice(n,o).search(/\S/),d=u===-1;if(!d)for(n+=u;o>n&&!/\S/.test(r[o-1]);--o);let y=e.printer.features?.experimental_locForRangeFormat??e,x=H1(t,n,e,(V,Z)=>q1(e,V,Z),[],"rangeStart",y);if(!x)return;let E=d?x:H1(t,o,e,V=>q1(e,V),[],"rangeEnd",y);if(!E)return;let T,N;if(t.type==="JsonRoot"){let V=y4(x,E);T=V,N=V}else[T,N]=w4(x,E,e);let{locStart:P,locEnd:$}=y;return[Math.min(P(T),P(N)),Math.max($(T),$(N))]}var Vg=Symbol("cursor");async function Y2(r,e,t=0){if(!r||r.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:o}=await Co(r,e);e.cursorOffset>=0&&(e={...e,...O2(n,e)});let u=await lu(n,e,t);t>0&&(u=Zg([ki,u],t,e.tabWidth));let d=su(u,e);if(t>0){let x=d.formatted.trim();d.cursorNodeStart!==void 0&&(d.cursorNodeStart-=d.formatted.indexOf(x),d.cursorNodeStart<0&&(d.cursorNodeStart=0,d.cursorNodeText=d.cursorNodeText.trimStart()),d.cursorNodeStart+d.cursorNodeText.length>x.length&&(d.cursorNodeText=d.cursorNodeText.trimEnd())),d.formatted=x+W1(e.endOfLine)}let y=e[ru];if(e.cursorOffset>=0){let x,E,T,N;if((e.cursorNode||e.nodeBeforeCursor||e.nodeAfterCursor)&&d.cursorNodeText)if(T=d.cursorNodeStart,N=d.cursorNodeText,e.cursorNode)x=e.locStart(e.cursorNode),E=o.slice(x,e.locEnd(e.cursorNode));else{if(!e.nodeBeforeCursor&&!e.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");x=e.nodeBeforeCursor?e.locEnd(e.nodeBeforeCursor):0;let te=e.nodeAfterCursor?e.locStart(e.nodeAfterCursor):o.length;E=o.slice(x,te)}else x=0,E=o,T=0,N=d.formatted;let P=e.cursorOffset-x;if(E===N)return{formatted:d.formatted,cursorOffset:T+P,comments:y};let $=E.split("");$.splice(P,0,Vg);let V=N.split(""),Z=sC($,V),Q=T;for(let te of Z)if(te.removed){if(te.value.includes(Vg))break}else Q+=te.count;return{formatted:d.formatted,cursorOffset:Q,comments:y}}return{formatted:d.formatted,cursorOffset:-1,comments:y}}async function E4(r,e){let{ast:t,text:n}=await Co(r,e),[o,u]=b4(n,e,t)??[0,0],d=n.slice(o,u),y=Math.min(o,n.lastIndexOf(`
32
+ `,o)+1),x=n.slice(y,o).match(/^\s*/)[0],E=em(x,e.tabWidth),T=await Y2(d,{...e,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:e.cursorOffset>o&&e.cursorOffset<=u?e.cursorOffset-o:-1,endOfLine:"lf"},E),N=T.formatted.trimEnd(),{cursorOffset:P}=e;P>u?P+=N.length-d.length:T.cursorOffset>=0&&(P=T.cursorOffset+o);let $=n.slice(0,o)+N+n.slice(u);if(e.endOfLine!=="lf"){let V=W1(e.endOfLine);P>=0&&V===`\r
33
+ `&&(P+=Wg($.slice(0,P),`
34
+ `)),$=eu(0,$,`
35
+ `,V)}return{formatted:$,cursorOffset:P,comments:T.comments}}function B1(r,e,t){return typeof e!="number"||Number.isNaN(e)||e<0||e>r.length?t:e}function $g(r,e){let{cursorOffset:t,rangeStart:n,rangeEnd:o}=e;return t=B1(r,t,-1),n=B1(r,n,0),o=B1(r,o,r.length),{...e,cursorOffset:t,rangeStart:n,rangeEnd:o}}function B2(r,e){let{cursorOffset:t,rangeStart:n,rangeEnd:o,endOfLine:u}=$g(r,e),d=m7(r);if(d&&(r=r.slice(1),t--,n--,o--),u==="auto"&&(u=cC(r)),r.includes("\r")){let y=x=>Wg(r.slice(0,Math.max(x,0)),`\r
36
+ `);t-=y(t),n-=y(n),o-=y(o),r=dC(r)}return{hasBom:d,text:r,options:$g(r,{...e,cursorOffset:t,rangeStart:n,rangeEnd:o,endOfLine:u})}}async function Hg(r,e){let t=await sm(e);return!t.hasPragma||t.hasPragma(r)}async function C4(r,e){return(await sm(e)).hasIgnorePragma?.(r)}async function U2(r,e){let{hasBom:t,text:n,options:o}=B2(r,await ws(e));if(o.rangeStart>=o.rangeEnd&&n!==""||o.requirePragma&&!await Hg(n,o)||o.checkIgnorePragma&&await C4(n,o))return{formatted:r,cursorOffset:e.cursorOffset,comments:[]};let u;return o.rangeStart>0||o.rangeEnd<n.length?u=await E4(n,o):(!o.requirePragma&&o.insertPragma&&o.printer.insertPragma&&!await Hg(n,o)&&(n=o.printer.insertPragma(n)),u=await Y2(n,o)),t&&(u.formatted=f7(u.formatted),u.cursorOffset>=0&&u.cursorOffset++),u}async function S4(r,e,t){let{text:n,options:o}=B2(r,await ws(e)),u=await Co(n,o);return t&&(t.preprocessForPrint&&(u.ast=await R2(u.ast,o)),t.massage&&(u.ast=h4(u.ast,o))),u}async function v4(r,e){e=await ws(e);let t=await lu(r,e);return su(t,e)}async function T4(r,e){let t=HC(r),{formatted:n}=await U2(t,{...e,parser:"__js_expression"});return n}async function A4(r,e){e=await ws(e);let{ast:t}=await Co(r,e);return e.cursorOffset>=0&&(e={...e,...O2(t,e)}),lu(t,e)}async function _4(r,e){return su(r,await ws(e))}var ue={};j1(ue,{builders:()=>K4,printer:()=>F4,utils:()=>N4});var K4={join:t2,line:r2,softline:UC,hardline:ki,literalline:n2,group:e2,conditionalGroup:OC,fill:RC,lineSuffix:U1,lineSuffixBoundary:VC,cursor:Hn,breakParent:nu,ifBreak:MC,trim:$C,indent:Zl,indentIfBreak:YC,align:ys,addAlignmentToDoc:Zg,markAsRoot:Jg,dedentToRoot:LC,dedent:IC,hardlineWithoutBreakParent:J1,literallineWithoutBreakParent:i2,label:BC,concat:r=>r},F4={printDocToString:su},N4={willBreak:CC,traverseDoc:Q1,findInDoc:X1,mapDoc:iu,removeLines:TC,stripTrailingHardline:Qg,replaceEndOfLine:KC,canBreak:NC},P4="3.10.1",St={};j1(St,{addDanglingComment:()=>Vn,addLeadingComment:()=>xo,addTrailingComment:()=>Do,getAlignmentSize:()=>em,getIndentSize:()=>M4,getMaxContinuousCount:()=>U4,getNextNonSpaceNonCommentCharacter:()=>$4,getNextNonSpaceNonCommentCharacterIndex:()=>J4,getPreferredQuote:()=>j4,getStringWidth:()=>Z1,hasNewline:()=>en,hasNewlineInRange:()=>W4,hasSpaces:()=>Q4,isNextLineEmpty:()=>i6,isNextLineEmptyAfterIndex:()=>um,isPreviousLineEmpty:()=>e6,makeString:()=>r6,skip:()=>Eo,skipEverythingButNewLine:()=>p2,skipInlineComment:()=>om,skipNewline:()=>qn,skipSpaces:()=>rn,skipToLineEnd:()=>h2,skipTrailingComment:()=>am,skipWhitespace:()=>b7});function k4(r,e){if(e===!1)return!1;if(r.charAt(e)==="/"&&r.charAt(e+1)==="*"){for(let t=e+2;t<r.length;++t)if(r.charAt(t)==="*"&&r.charAt(t+1)==="/")return t+2}return e}var om=k4;function L4(r,e){return e===!1?!1:r.charAt(e)==="/"&&r.charAt(e+1)==="/"?p2(r,e):e}var am=L4;function I4(r,e){let t=null,n=e;for(;n!==t;)t=n,n=rn(r,n),n=om(r,n),n=am(r,n),n=qn(r,n);return n}var lm=I4;function R4(r,e){let t=null,n=e;for(;n!==t;)t=n,n=h2(r,n),n=om(r,n),n=rn(r,n);return n=am(r,n),n=qn(r,n),n!==!1&&en(r,n)}var um=R4;function O4(r,e){let t=r.lastIndexOf(`
37
+ `);return t===-1?0:em(r.slice(t+1).match(/^[\t ]*/)[0],e)}var M4=O4;function Y4(r){if(typeof r!="string")throw new TypeError("Expected a string");return r.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function B4(r,e){let t=r.matchAll(new RegExp(`(?:${Y4(e)})+`,"g"));return t.reduce||(t=[...t]),t.reduce((n,[o])=>Math.max(n,o.length),0)/e.length}var U4=B4;function V4(r,e){let t=lm(r,e);return t===!1?"":r.charAt(t)}var $4=V4,V2=Object.freeze({character:"'",codePoint:39}),$2=Object.freeze({character:'"',codePoint:34}),H4=Object.freeze({preferred:V2,alternate:$2}),q4=Object.freeze({preferred:$2,alternate:V2});function j4(r,e){let{preferred:t,alternate:n}=e===!0||e==="'"?H4:q4,{length:o}=r,u=0,d=0;for(let y=0;y<o;y++){let x=r.charCodeAt(y);x===t.codePoint?u++:x===n.codePoint&&d++}return(u>d?n:t).character}function G4(r,e,t){for(let n=e;n<t;++n)if(r.charAt(n)===`
38
+ `)return!0;return!1}var W4=G4;function z4(r,e,t={}){return rn(r,t.backwards?e-1:e,t)!==e}var Q4=z4;function X4(r,e,t){return lm(r,t(e))}function J4(r,e){return arguments.length===2||typeof e=="number"?lm(r,e):X4(...arguments)}function Z4(r,e,t){return im(r,t(e))}function e6(r,e){return arguments.length===2||typeof e=="number"?im(r,e):Z4(...arguments)}function t6(r,e,t){return um(r,t(e))}function r6(r,e,t){let n=e==='"'?"'":'"',o=eu(0,r,/\\(.)|(["'])/gs,(u,d,y)=>d===n?d:y===e?"\\"+y:y||(t&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(d)?d:"\\"+d));return e+o+e}function i6(r,e){return arguments.length===2||typeof e=="number"?um(r,e):t6(...arguments)}function $n(r,e=1){return async(...t)=>{let n=t[e]??{},o=n.plugins??[];return t[e]={...n,plugins:Array.isArray(o)?o:Object.values(o)},await r(...t)}}var H2=$n(U2);async function q2(r,e){let{formatted:t}=await H2(r,{...e,cursorOffset:-1});return t}async function n6(r,e){return await q2(r,e)===r}var s6=$n(b2,0),o6={parse:$n(S4),formatAST:$n(v4),formatDoc:$n(T4),printToDoc:$n(A4),printDocToString:$n(_4)};var{addLeadingComment:Lt,addTrailingComment:Zt,addDanglingComment:on,hasNewline:a6,hasNewlineInRange:l6,getNextNonSpaceNonCommentCharacter:gs,getNextNonSpaceNonCommentCharacterIndex:u6}=St;function j2(r,e,t,n,o){let{precedingNode:u,enclosingNode:d,followingNode:y}=r;return!!(J2(e,u,d,y,r,t)||c6(d,y,r)||hm(e,u,d,y,r,t)||pm(e,u,d,y,r,t)||z2(d,u,y,r)||Q2(d,u,y,r)||Z2(d,r)||b6(d,u,r)||x6(u,d,y,r)||dm(d,n,r,o)||E6(e,d,u,r,t)||C6(d,r)||X2(e,d,u,r,t))}function G2(r,e,t,n,o){let{precedingNode:u,enclosingNode:d,followingNode:y}=r;return!!(J2(e,u,d,y,r,t)||h6(d,u,y,r,e,t)||Z2(d,r)||hm(e,u,d,y,r,t)||pm(e,u,d,y,r,t)||z2(d,u,y,r)||Q2(d,u,y,r)||y6(d,r)||g6(u,d,r)||D6(d,r)||dm(d,n,r,o)||S6(d,y,r)||v6(d,y,r))}function W2(r,e,t,n,o){let{precedingNode:u,enclosingNode:d,followingNode:y}=r;return!!(hm(e,u,d,y,r,t)||pm(e,u,d,y,r,t)||p6(d,u,r)||f6(e,d,r,t)||X2(e,d,u,r,t)||dm(d,n,r,o)||m6(e,d,r,t)||d6(e,d,u,r,t)||T6(e,d,u,y,r)||w6(d,r))}function uu(r,e){if(!r.body){on(r,e);return}let t=r.body.filter(n=>n.type!=="EmptyStatement");t.length===0?on(r,e):Lt(t[0],e)}function cm(r,e){r.type==="BlockStatement"?uu(r,e):Lt(r,e)}function hm(r,e,t,n,o,u){return!t||t.type!=="IfStatement"||!n?!1:gs(r,u.locEnd(o))===")"?(Zt(e,o),!0):e===t.trueBody&&n===t.falseBody?(e.type==="ExpressionStatement"?Zt(e,o):on(t,o),!0):n.type==="ExpressionStatement"?(uu(n,o),!0):n.type==="IfStatement"?(cm(n.trueBody,o),!0):t.trueBody===n?(Lt(n,o),!0):!1}function pm(r,e,t,n,o,u){return!t||t.type!=="WhileStatement"||!n?!1:gs(r,u.locEnd(o))===")"?(Zt(e,o),!0):n.type==="BlockStatement"?(uu(n,o),!0):!1}function z2(r,e,t,n){return!r||r.type!=="TryStatement"&&r.type!=="CatchClause"||!t?!1:r.type==="CatchClause"&&e?(Zt(e,n),!0):t.type==="BlockStatement"?(uu(t,n),!0):t.type==="TryStatement"?(cm(t.finalizer,n),!0):t.type==="CatchClause"?(cm(t.body,n),!0):!1}function c6(r,e,t){return r&&r.type==="MemberExpression"&&e&&e.type==="Identifier"?(Lt(r,t),!0):!1}function h6(r,e,t,n,o,u){let d=e&&!l6(o,u.locEnd(e),u.locStart(n));return(!e||!d)&&r&&r.type==="ConditionalExpression"&&t?(Lt(t,n),!0):!1}function p6(r,e,t){return r&&(r.type==="ObjectProperty"||r.type==="Property")&&r.shorthand&&r.key===e&&r.value.type==="AssignmentPattern"?(Zt(r.value.left,t),!0):!1}function Q2(r,e,t,n){return r&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")&&r.decorators&&r.decorators.length>0&&!(t&&t.type==="Decorator")?(!r.decorators||r.decorators.length===0?Lt(r,n):Zt(r.decorators[r.decorators.length-1],n),!0):!1}function X2(r,e,t,n,o){return e&&t&&(e.type==="Property"||e.type==="MethodDefinition")&&t.type==="Identifier"&&e.key===t&&gs(r,o.locEnd(t))!==":"||t&&e&&t.type==="Decorator"&&(e.type==="ClassMethod"||e.type==="ClassProperty"||e.type==="TSAbstractClassProperty"||e.type==="TSAbstractMethodDefinition"||e.type==="MethodDefinition")?(Zt(t,n),!0):!1}function d6(r,e,t,n,o){return gs(r,o.locEnd(n))!=="("?!1:t&&e&&(e.type==="FunctionDeclaration"||e.type==="FunctionExpression"||e.type==="ClassMethod"||e.type==="MethodDefinition"||e.type==="ObjectMethod")?(Zt(t,n),!0):!1}function m6(r,e,t,n){if(!(e&&e.type==="ArrowFunctionExpression"))return!1;let o=u6(r,n.locEnd(t));return r.substr(o,2)==="=>"?(on(e,t),!0):!1}function f6(r,e,t,n){return gs(r,n.locEnd(t))!==")"?!1:e&&((e.type==="FunctionDeclaration"||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(e.body.type!=="CallExpression"||e.body.arguments.length===0)||e.type==="ClassMethod"||e.type==="ObjectMethod")&&e.params.length===0||(e.type==="CallExpression"||e.type==="NewExpression")&&e.arguments.length===0)?(on(e,t),!0):e&&e.type==="MethodDefinition"&&e.value.params.length===0?(on(e.value,t),!0):!1}function J2(r,e,t,n,o,u){return e&&e.type==="FunctionTypeParam"&&t&&t.type==="FunctionTypeAnnotation"&&n&&n.type!=="FunctionTypeParam"||e&&(e.type==="Identifier"||e.type==="AssignmentPattern")&&t&&(t.type==="ArrowFunctionExpression"||t.type==="FunctionExpression"||t.type==="FunctionDeclaration"||t.type==="ObjectMethod"||t.type==="ClassMethod")&&gs(r,u.locEnd(o))===")"?(Zt(e,o),!0):!1}function Z2(r,e){return r&&r.type==="ImportSpecifier"?(Lt(r,e),!0):!1}function y6(r,e){return r&&r.type==="LabeledStatement"?(Lt(r,e),!0):!1}function w6(r,e){return r&&(r.type==="ContinueStatement"||r.type==="BreakStatement")&&!r.label?(Zt(r,e),!0):!1}function g6(r,e,t){return e&&e.type==="CallExpression"&&r&&e.callee===r&&e.arguments.length>0?(Lt(e.arguments[0],t),!0):!1}function x6(r,e,t,n){return e&&(e.type==="UnionTypeAnnotation"||e.type==="TSUnionType")?(Zt(r,n),!0):!1}function D6(r,e){return r&&(r.type==="Property"||r.type==="ObjectProperty")?(Lt(r,e),!0):!1}function dm(r,e,t,n){return e&&e.body&&e.body.length===0?(n?on(e,t):Lt(e,t),!0):r&&r.type==="Program"&&r.body.length===0&&r.directives&&r.directives.length===0?(n?on(r,t):Lt(r,t),!0):!1}function b6(r,e,t){return r&&(r.type==="ForInStatement"||r.type==="ForOfStatement")?(Lt(r,t),!0):!1}function E6(r,e,t,n,o){return t&&t.type==="ImportSpecifier"&&e&&e.type==="ImportDeclaration"&&a6(r,o.locEnd(n))?(Zt(t,n),!0):!1}function C6(r,e){return r&&r.type==="AssignmentPattern"?(Lt(r,e),!0):!1}function S6(r,e,t){return r&&r.type==="TypeAlias"?(Lt(r,t),!0):!1}function v6(r,e,t){return r&&(r.type==="VariableDeclarator"||r.type==="AssignmentExpression")&&e&&(e.type==="ObjectExpression"||e.type==="ArrayExpression"||e.type==="TemplateLiteral"||e.type==="TaggedTemplateExpression")?(Lt(e,t),!0):!1}function T6(r,e,t,n,o){return!e||e.type!=="TSMappedType"?!1:n&&n.type==="TSTypeParameter"&&n.name?(Lt(n.name,o),!0):t&&t.type==="TSTypeParameter"&&t.constraint?(Zt(t.constraint,o),!0):!1}var{addLeadingComment:A6,addTrailingComment:_6,addDanglingComment:K6,getNextNonSpaceNonCommentCharacter:F6}=St;function N6({text:r,precedingNode:e,enclosingNode:t,followingNode:n,comment:o,options:u}){if(!t||t.type!=="ContractDefinition")return!1;let d=F6(r,u.locEnd(o));return n&&(n.type==="InheritanceSpecifier"||n===t.storageLayout)||d==="{"?e&&(e.type==="InheritanceSpecifier"||e===t.storageLayout)?(_6(e,o),!0):(A6(t,o),!0):t.subNodes.length===0?(K6(t,o),!0):!1}var ex=N6;var{addLeadingComment:tx,addTrailingComment:P6,addDanglingComment:k6,getNextNonSpaceNonCommentCharacter:L6}=St;function I6({text:r,precedingNode:e,enclosingNode:t,comment:n,options:o}){if(!t||t.type!=="ModifierInvocation")return!1;let u=L6(r,o.locEnd(n));return u==="("?(tx(t,n),!0):u===")"?e?(P6(e,n),!0):n.type==="LineComment"?(tx(t,n),!0):(k6(t,n),!0):!1}var rx=I6;var cu=[ex,rx];function ix(r,e,t,n,o){let{precedingNode:u,enclosingNode:d,followingNode:y}=r,x={text:e,precedingNode:u,enclosingNode:d,followingNode:y,comment:r,options:t};return!!(cu.some(E=>E(x))||j2(r,e,t,n,o))}function nx(r,e,t,n,o){let{precedingNode:u,enclosingNode:d,followingNode:y}=r,x={text:e,precedingNode:u,enclosingNode:d,followingNode:y,comment:r,options:t};return!!(cu.some(E=>E(x))||G2(r,e,t,n,o))}function sx(r,e,t,n,o){let{precedingNode:u,enclosingNode:d,followingNode:y}=r,x={text:e,precedingNode:u,enclosingNode:d,followingNode:y,comment:r,options:t};return!!(cu.some(E=>E(x))||W2(r,e,t,n,o))}function ox(r){return r.type==="BlockComment"}var{hardline:ax,join:R6}=ue.builders;function O6(r){let e=`*${r.value}*`.split(`
39
+ `);return e.length>1&&e.every(t=>t.trim()[0]==="*")}function M6(r){let e=r.value.split(`
40
+ `);return["/*",R6(ax,e.map((t,n)=>n===0?t.trimEnd():` ${n<e.length-1?t.trim():t.trimStart()}`)),"*/"]}function lx(r,e){let t=r.getValue();switch(t.type){case"BlockComment":{if(O6(t)){let n=M6(t);return t.trailing&&!St.hasNewline(e.originalText,e.locStart(t),{backwards:!0})?[ax,n]:n}return`/*${t.value}*/`}case"LineComment":return`//${t.value.trimEnd()}`;default:throw new Error(`Not a comment: ${JSON.stringify(t)}`)}}var B6=(1n<<64n)-1n;function hu(r,e){if(typeof r!="bigint"||r<0n||r>B6)throw new TypeError(`${e} must be a valid u64`);return r}function pu(r,e){if(hu(r,e),r>BigInt(Number.MAX_SAFE_INTEGER))throw new RangeError(`${e} exceeds JavaScript's safe integer range`);return Number(r)}var cx=0,fm=Symbol.dispose||Symbol.for("dispose"),Ui=(r,e="length")=>pu(r,e);function Vi(){throw{tag:"closed"}}var mm=class extends Error{toDebugString(){return this.message}};var So=class r{id;handler;#e=!0;#t=new Set;static _create(e){let t=new r;return e||console.trace("no handler"),t.id=++cx,t.handler=e,t}read(e){return Ui(e),this.#e||Vi(),this.handler.read?this.handler.read.call(this,e):this.handler.blockingRead.call(this,e)}blockingRead(e){return Ui(e),this.#e||Vi(),this.handler.blockingRead.call(this,e)}skip(e){if(Ui(e),this.#e||Vi(),this.handler.skip)return this.handler.skip.call(this,e);if(this.handler.read){let t=this.handler.read.call(this,e);return BigInt(t.byteLength)}return this.blockingSkip.call(this,e)}blockingSkip(e){if(Ui(e),this.#e||Vi(),this.handler.blockingSkip)return this.handler.blockingSkip.call(this,e);let t=this.handler.blockingRead.call(this,e);return BigInt(t.byteLength)}subscribe(){if(!this.#e)return di();let e=this.handler.subscribe?this.handler.subscribe.call(this):di();return e instanceof Wn&&(this.#t.add(e),e._onDispose(()=>this.#t.delete(e))),e}[fm](){if(this.#e){this.#e=!1;for(let e of this.#t)e._invalidate();this.#t.clear(),this.handler.drop&&this.handler.drop.call(this)}}},hx=So._create;delete So._create;var vo=class r{id;open;handler;#e=0n;#t=new Set;static _create(e){let t=new r;return e||console.trace("no handler"),t.id=++cx,t.open=!0,t.handler=e,t}checkWrite(){if(this.open||Vi(),this.handler.checkWrite){let e=this.handler.checkWrite.call(this);return Ui(e,"write permit"),this.#e=e,e}return this.#e=1000000n,this.#e}write(e){if(this.open||Vi(),BigInt(e.byteLength)>this.#e)throw new Error("write exceeds the permit returned by checkWrite");this.#e-=BigInt(e.byteLength),this.handler.write.call(this,e)}blockingWriteAndFlush(e){if(this.open||Vi(),e.byteLength>4096)throw new RangeError("blockingWriteAndFlush accepts at most 4096 bytes");if(this.handler.blockingWriteAndFlush)return this.handler.blockingWriteAndFlush.call(this,e);this.handler.write.call(this,e),this.handler.blockingFlush?this.handler.blockingFlush.call(this):this.handler.flush?.call(this)}flush(){this.open||Vi(),this.#e=0n,this.handler.flush&&this.handler.flush.call(this)}blockingFlush(){this.open||Vi(),this.handler.blockingFlush?this.handler.blockingFlush.call(this):this.handler.flush?.call(this)}writeZeroes(e){let t=Ui(e);if(e>this.#e)throw new Error("write exceeds the permit returned by checkWrite");this.write.call(this,new Uint8Array(t))}blockingWriteZeroesAndFlush(e){let t=Ui(e);if(t>4096)throw new RangeError("blockingWriteZeroesAndFlush accepts at most 4096 bytes");this.blockingWriteAndFlush.call(this,new Uint8Array(t))}splice(e,t){let n=Math.min(Ui(t),Number(this.checkWrite.call(this))),o=e.read(BigInt(n));return this.write.call(this,o),BigInt(o.byteLength)}blockingSplice(e,t){let n=Math.min(Ui(t),Number(this.checkWrite.call(this))),o=e.blockingRead(BigInt(n));return this.write.call(this,o),BigInt(o.byteLength)}subscribe(){if(!this.open)return di();let e=this.handler.subscribe?this.handler.subscribe.call(this):di();return e instanceof Wn&&(this.#t.add(e),e._onDispose(()=>this.#t.delete(e))),e}[fm](){if(this.open){this.open=!1,this.#e=0n;for(let e of this.#t)e._invalidate();this.#t.clear(),this.handler.drop?.call(this)}}},ym=vo._create;delete vo._create;var px={Error:mm},dx={InputStream:So,OutputStream:vo},Wn=class r{#e={ready:()=>!0,wait:()=>Promise.resolve()};#t=!1;#r=!1;#i=null;#n=[];#s;#a=new Promise(e=>this.#s=e);static _create(e){let t=new r;if(e instanceof Promise){let n=!1,o=e.then(()=>{n=!0},()=>{n=!0});t.#e={ready:()=>n,wait:()=>o}}else e&&(t.#e=e);return t}ready(){return this.#o(),this.#e.ready()}block(){return this.#o(),this.#e.ready()?Promise.resolve():(this.#i||(this.#i=Promise.race([Promise.resolve(this.#e.wait()),this.#a.then(()=>this.#o())]).finally(()=>{this.#i=null})),this.#i)}_onDispose(e){this.#r?e():this.#n.push(e)}_invalidate(){this.#t||this.#r||(this.#t=!0,this.#s())}#o(){if(this.#r)throw new Error("pollable has been disposed");if(this.#t)throw new Error("pollable's parent resource has been disposed")}[fm](){if(!this.#r){this.#r=!0,this.#s();for(let e of this.#n.splice(0))e()}}},di=Wn._create;delete Wn._create;function ux(r){if(r.length===0)throw new Error("poll list must not be empty");if(r.length>4294967295)throw new Error("poll list length exceeds u32 index range");let e=[];for(let t=0;t<r.length;t++)r[t].ready()&&e.push(t);return e.length>0?new Promise(t=>setTimeout(()=>{let n=[];for(let o=0;o<r.length;o++)r[o].ready()&&n.push(o);t(new Uint32Array(n))},0)):Promise.race(r.map(t=>t.block())).then(()=>{let t=[];for(let n=0;n<r.length;n++)r[n].ready()&&t.push(n);return new Uint32Array(t)})}function U6(r){return r.block()}var mx={Pollable:Wn,pollList:ux,pollOne:U6,poll:ux};var $6=[],H6=[],q6="/";var wm={getEnvironment(){return $6},getArguments(){return H6},initialCwd(){return q6}};var j6=Symbol.dispose??Symbol.for("dispose"),du=class extends Error{exitError=!0;code;constructor(e){super(`Component exited ${e===0?"successfully":"with error"}`),this.code=e}};function G6(r){return{exit(e){let t=e.tag==="err"?1:0;throw r?.(t),new du(t)},exitWithCode(e){throw r?.(e),new du(e)}}}var fx=G6();var W6=hx({blockingRead(){throw{tag:"closed"}},subscribe(){return di()},[j6](){}});function yx(r){let e=new TextDecoder,t="",n=()=>{let u=t.split(`
41
+ `);t=u.pop();for(let d of u)r(d.endsWith("\r")?d.slice(0,-1):d)},o=()=>{t+=e.decode(),t&&r(t),t=""};return{write(u){t+=e.decode(u,{stream:!0}),n()},flush:o,blockingFlush(){this.flush?.()},drop:o}}var z6=ym(yx(r=>console.log(r))),Q6=ym(yx(r=>console.error(r))),wx={getStdin(){return W6}},gx={getStdout(){return z6}},xx={getStderr(){return Q6}},gm=class{},xm=class{},Dx={TerminalInput:gm},bx={TerminalOutput:xm},Ex={getTerminalStderr(){}},Cx={getTerminalStdin(){}},Sx={getTerminalStdout(){}};var X6=2147483647;function J6(r){let e=Number((r+999999n)/1000000n);return new Promise(t=>{let n=()=>{if(e<=0){t();return}let o=Math.min(e,X6);e-=o,setTimeout(n,o)};n()})}var mu={resolution(){return BigInt(1e6)},now(){return BigInt(Math.floor(performance.now()*1e6))},subscribeInstant(r){r=hu(r,"instant");let e=mu.now();return r<=e?di():mu.subscribeDuration(r-e)},subscribeDuration(r){return r=hu(r,"duration"),r===0n?di():di(J6(r))}};var Dm=65536,bm,Em;var Cm,Sm,vx={insecureSeed(){return(Cm===void 0||Sm===void 0)&&(Cm=fu.getRandomU64(),Sm=fu.getRandomU64()),[Cm,Sm]}},fu={getRandomBytes(r){let e=pu(r,"random byte length"),t=new Uint8Array(e);if(e>Dm)for(let n=0;n<e;n+=Dm)crypto.getRandomValues(t.subarray(n,n+Dm));else crypto.getRandomValues(t);return t},getRandomU64(){return crypto.getRandomValues(new BigUint64Array(1))[0]},insecureRandom(){return(bm===void 0||Em===void 0)&&(bm=fu.getRandomU64(),Em=fu.getRandomU64()),[bm,Em]}};var{getEnvironment:Z6}=wm,{exit:eS}=fx,{getStderr:tS}=xx,{getStdin:rS}=wx,{getStdout:iS}=gx,{TerminalInput:Km}=Dx,{TerminalOutput:yu}=bx,{getTerminalStderr:nS}=Ex,{getTerminalStdin:sS}=Cx,{getTerminalStdout:oS}=Sx,{subscribeDuration:aS}=mu,{Error:Ao}=px,{Pollable:Ds,poll:lS}=mx,{InputStream:Fm,OutputStream:un}=dx,{insecureSeed:uS}=vx,_t=[],vm=new DataView(new ArrayBuffer),R=r=>vm.buffer===r.buffer?vm:vm=new DataView(r.buffer),De=()=>{},cS=typeof process<"u"&&process.versions&&process.versions.node,Tm;async function Am(r){return cS?(Tm=Tm||await import("node:fs/promises"),WebAssembly.compile(await Tm.readFile(r))):fetch(r).then(WebAssembly.compileStreaming)}function Kt(r){return typeof FinalizationRegistry>"u"?{unregister(){}}:new FinalizationRegistry(r)}function Lm(r){if(r&&hS.call(r,"payload"))return r.payload;if(r instanceof Error)throw r;return r}var nt=[],hS=Object.prototype.hasOwnProperty,_m=WebAssembly.instantiate,_=1<<30;function Qe(r,e){let t=r[0]&~_;return t===0?(r.push(0),r.push(e|_),(r.length>>1)-1):(r[0]=r[t<<1],r[t<<1]=0,r[(t<<1)+1]=e|_,t)}function oe(r,e){let t=r[e<<1],n=r[(e<<1)+1],o=(n&_)!==0,u=n&~_;if(n===0||(t&_)!==0)throw new TypeError("Invalid handle");return r[e<<1]=r[0]|_,r[0]=e|_,{rep:u,scope:t,own:o}}var Or=Symbol.for("cabiDispose"),I=Symbol("handle"),It=Symbol.for("cabiRep"),J=Symbol.dispose||Symbol.for("dispose"),Nm=r=>BigInt.asUintN(64,BigInt(r));function To(r){return r>>>0}var lt=new TextDecoder,pS=new TextEncoder,Bt=0;function lr(r,e,t){if(typeof r!="string")throw new TypeError("expected a string");if(r.length===0)return Bt=0,1;let n=pS.encode(r),o=e(0,0,1,n.length);return new Uint8Array(t.buffer).set(n,o),Bt=n.length,o}var an=Symbol.for("nodejs.util.inspect.custom"),re;function dS(r){let e;r?e={tag:"err",val:void 0}:e={tag:"ok",val:void 0},eS(e)}var Ts=[_,0],bs=new Map,kx=0;nt[0]=Ts;function mS(r){var e=r,t=Ts[(e<<1)+1]&~_,n=bs.get(t);n||(n=Object.create(Ds.prototype),Object.defineProperty(n,I,{writable:!0,value:e}),Object.defineProperty(n,It,{writable:!0,value:t})),_t.push(n),n.block();for(let o of _t)o[I]=void 0;_t=[]}var yn=[_,0],cn=new Map,Lx=0;nt[3]=yn;function fS(r){var e=r,t=yn[(e<<1)+1]&~_,n=cn.get(t);n||(n=Object.create(un.prototype),Object.defineProperty(n,I,{writable:!0,value:e}),Object.defineProperty(n,It,{writable:!0,value:t})),_t.push(n);let o=n.subscribe();for(let d of _t)d[I]=void 0;if(_t=[],!(o instanceof Ds))throw new TypeError('Resource error: Not a valid "Pollable" resource.');var u=o[I];if(!u){let d=o[It]||++kx;bs.set(d,o),u=Qe(Ts,d)}return u}var Im=[_,0],Pm=new Map,yS=0;nt[2]=Im;function wS(){let r=rS();if(!(r instanceof Fm))throw new TypeError('Resource error: Not a valid "InputStream" resource.');var e=r[I];if(!e){let t=r[It]||++yS;Pm.set(t,r),e=Qe(Im,t)}return e}function gS(){let r=iS();if(!(r instanceof un))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=r[I];if(!e){let t=r[It]||++Lx;cn.set(t,r),e=Qe(yn,t)}return e}function xS(){let r=tS();if(!(r instanceof un))throw new TypeError('Resource error: Not a valid "OutputStream" resource.');var e=r[I];if(!e){let t=r[It]||++Lx;cn.set(t,r),e=Qe(yn,t)}return e}function DS(r){let e=aS(BigInt.asUintN(64,r));if(!(e instanceof Ds))throw new TypeError('Resource error: Not a valid "Pollable" resource.');var t=e[I];if(!t){let n=e[It]||++kx;bs.set(n,e),t=Qe(Ts,n)}return t}var X,F,pt;function bS(r){let e=uS();var[t,n]=e;R(F).setBigInt64(r+0,Nm(t),!0),R(F).setBigInt64(r+8,Nm(n),!0)}function ES(r,e,t){var n=e,o=r,u=[];for(let V=0;V<n;V++){let Z=o+V*4;var d=R(F).getInt32(Z+0,!0),y=Ts[(d<<1)+1]&~_,x=bs.get(y);x||(x=Object.create(Ds.prototype),Object.defineProperty(x,I,{writable:!0,value:d}),Object.defineProperty(x,It,{writable:!0,value:y})),_t.push(x),u.push(x)}let E=lS(u);for(let V of _t)V[I]=void 0;_t=[];var T=E,N=T.length,P=pt(0,0,4,N*4),$=new Uint8Array(T.buffer,T.byteOffset,N*4);new Uint8Array(F.buffer,P,N*4).set($),R(F).setInt32(t+4,N,!0),R(F).setInt32(t+0,P,!0)}var Ko=[_,0],_o=new Map,Rm=0;nt[1]=Ko;function CS(r,e){var t=r,n=yn[(t<<1)+1]&~_,o=cn.get(n);o||(o=Object.create(un.prototype),Object.defineProperty(o,I,{writable:!0,value:t}),Object.defineProperty(o,It,{writable:!0,value:n})),_t.push(o);let u;try{u={tag:"ok",val:o.checkWrite()}}catch(E){u={tag:"err",val:Lm(E)}}for(let E of _t)E[I]=void 0;_t=[];var d=u;switch(d.tag){case"ok":{let E=d.val;R(F).setInt8(e+0,0,!0),R(F).setBigInt64(e+8,Nm(E),!0);break}case"err":{let E=d.val;R(F).setInt8(e+0,1,!0);var y=E;switch(y.tag){case"last-operation-failed":{let T=y.val;if(R(F).setInt8(e+8,0,!0),!(T instanceof Ao))throw new TypeError('Resource error: Not a valid "Error" resource.');var x=T[I];if(!x){let N=T[It]||++Rm;_o.set(N,T),x=Qe(Ko,N)}R(F).setInt32(e+12,x,!0);break}case"closed":{R(F).setInt8(e+8,1,!0);break}default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(y.tag)}\` (received \`${y}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function SS(r,e,t,n){var o=r,u=yn[(o<<1)+1]&~_,d=cn.get(u);d||(d=Object.create(un.prototype),Object.defineProperty(d,I,{writable:!0,value:o}),Object.defineProperty(d,It,{writable:!0,value:u})),_t.push(d);var y=e,x=t,E=new Uint8Array(F.buffer.slice(y,y+x*1));let T;try{T={tag:"ok",val:d.write(E)}}catch(V){T={tag:"err",val:Lm(V)}}for(let V of _t)V[I]=void 0;_t=[];var N=T;switch(N.tag){case"ok":{let V=N.val;R(F).setInt8(n+0,0,!0);break}case"err":{let V=N.val;R(F).setInt8(n+0,1,!0);var P=V;switch(P.tag){case"last-operation-failed":{let Z=P.val;if(R(F).setInt8(n+4,0,!0),!(Z instanceof Ao))throw new TypeError('Resource error: Not a valid "Error" resource.');var $=Z[I];if(!$){let Q=Z[It]||++Rm;_o.set(Q,Z),$=Qe(Ko,Q)}R(F).setInt32(n+8,$,!0);break}case"closed":{R(F).setInt8(n+4,1,!0);break}default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(P.tag)}\` (received \`${P}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function vS(r,e){var t=r,n=yn[(t<<1)+1]&~_,o=cn.get(n);o||(o=Object.create(un.prototype),Object.defineProperty(o,I,{writable:!0,value:t}),Object.defineProperty(o,It,{writable:!0,value:n})),_t.push(o);let u;try{u={tag:"ok",val:o.blockingFlush()}}catch(E){u={tag:"err",val:Lm(E)}}for(let E of _t)E[I]=void 0;_t=[];var d=u;switch(d.tag){case"ok":{let E=d.val;R(F).setInt8(e+0,0,!0);break}case"err":{let E=d.val;R(F).setInt8(e+0,1,!0);var y=E;switch(y.tag){case"last-operation-failed":{let T=y.val;if(R(F).setInt8(e+4,0,!0),!(T instanceof Ao))throw new TypeError('Resource error: Not a valid "Error" resource.');var x=T[I];if(!x){let N=T[It]||++Rm;_o.set(N,T),x=Qe(Ko,N)}R(F).setInt32(e+8,x,!0);break}case"closed":{R(F).setInt8(e+4,1,!0);break}default:throw new TypeError(`invalid variant tag value \`${JSON.stringify(y.tag)}\` (received \`${y}\`) specified for \`StreamError\``)}break}default:throw new TypeError("invalid variant specified for result")}}function TS(r){var t=Z6(),n=t.length,o=pt(0,0,4,n*16);for(let N=0;N<t.length;N++){let P=t[N],$=o+N*16;var[u,d]=P,y=lr(u,pt,F),x=Bt;R(F).setInt32($+4,x,!0),R(F).setInt32($+0,y,!0);var E=lr(d,pt,F),T=Bt;R(F).setInt32($+12,T,!0),R(F).setInt32($+8,E,!0)}R(F).setInt32(r+4,n,!0),R(F).setInt32(r+0,o,!0)}var Om=[_,0],km=new Map,AS=0;nt[4]=Om;function _S(r){var t=sS();if(t==null)R(F).setInt8(r+0,0,!0);else{let o=t;if(R(F).setInt8(r+0,1,!0),!(o instanceof Km))throw new TypeError('Resource error: Not a valid "TerminalInput" resource.');var n=o[I];if(!n){let u=o[It]||++AS;km.set(u,o),n=Qe(Om,u)}R(F).setInt32(r+4,n,!0)}}var Cu=[_,0],wu=new Map,Ix=0;nt[5]=Cu;function KS(r){var t=oS();if(t==null)R(F).setInt8(r+0,0,!0);else{let o=t;if(R(F).setInt8(r+0,1,!0),!(o instanceof yu))throw new TypeError('Resource error: Not a valid "TerminalOutput" resource.');var n=o[I];if(!n){let u=o[It]||++Ix;wu.set(u,o),n=Qe(Cu,u)}R(F).setInt32(r+4,n,!0)}}function FS(r){var t=nS();if(t==null)R(F).setInt8(r+0,0,!0);else{let o=t;if(R(F).setInt8(r+0,1,!0),!(o instanceof yu))throw new TypeError('Resource error: Not a valid "TerminalOutput" resource.');var n=o[I];if(!n){let u=o[It]||++Ix;wu.set(u,o),n=Qe(Cu,u)}R(F).setInt32(r+4,n,!0)}}var NS,wn,Zr,As,Rx,Ox,Mx,Yx,Mm,Ym,Bx,Es=class{constructor(){throw new Error('"TerminalKindExtensions" resource does not define a constructor')}};Es.isIdentifier=function(e){var n=Bx(f[e]);return!!n};var Ux;Es.isTrivia=function(e){var n=Ux(f[e]);return!!n};var Vx;Es.isValid=function(e){var n=Vx(f[e]);return!!n};var dt=[_,0],br=Kt(r=>{let{rep:e}=oe(dt,r);re[21](e)});nt[9]=dt;var Te=[_,0],mt=Kt(r=>{let{rep:e}=oe(Te,r);re[22](e)});nt[6]=Te;var $x,Be=class{constructor(){throw new Error('"NonterminalNode" resource does not define a constructor')}};Be.prototype[an]=function(r,e,t){let n=Object.getPrototypeOf(this)[an];try{return delete Object.getPrototypeOf(this)[an],t(this,{...e,depth:r,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[an]=n}};Be.create=function(e,t){var n=t,o=n.length,u=pt(0,0,4,o*4);for(let T=0;T<n.length;T++){let N=n[T],P=u+T*4;var d=N[I];if(!d)throw new TypeError('Resource error: Not a valid "Edge" resource.');br.unregister(N),N[J]=De,N[I]=void 0,R(F).setInt32(P+0,d,!0)}var x=$x(D[e],u,o),E=new.target===Be?this:Object.create(Be.prototype);return Object.defineProperty(E,I,{writable:!0,value:x}),mt.register(E,x,E),Object.defineProperty(E,J,{writable:!0,value:function(){mt.unregister(E),oe(Te,x),E[J]=De,E[I]=void 0,re[22](Te[(x<<1)+1]&~_)}}),E};var Hx;Object.defineProperty(Be.prototype,"id",{get:function(){var r=this[I];if(!r||(Te[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Te[(r<<1)+1]&~_;return Hx(e)>>>0}});var qx;Object.defineProperty(Be.prototype,"kind",{get:function(){var r=this[I];if(!r||(Te[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Te[(r<<1)+1]&~_;let t=qx(e);return D[t]}});var jx;Object.defineProperty(Be.prototype,"textLength",{get:function(){var r=this[I];if(!r||(Te[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var e=Te[(r<<1)+1]&~_;let t=jx(e);return{utf8:R(F).getInt32(t+0,!0)>>>0,utf16:R(F).getInt32(t+4,!0)>>>0,line:R(F).getInt32(t+8,!0)>>>0,column:R(F).getInt32(t+12,!0)>>>0}}});var Gx;Be.prototype.children=function(){var e=this[I];if(!e||(Te[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var t=Te[(e<<1)+1]&~_;let n=Gx(t);var o=R(F).getInt32(n+4,!0),u=R(F).getInt32(n+0,!0),d=[];for(let T=0;T<o;T++){let N=u+T*4;var y=R(F).getInt32(N+0,!0),x=new.target===vt?this:Object.create(vt.prototype);Object.defineProperty(x,I,{writable:!0,value:y}),br.register(x,y,x),Object.defineProperty(x,J,{writable:!0,value:function(){br.unregister(x),oe(dt,y),x[J]=De,x[I]=void 0,re[21](dt[(y<<1)+1]&~_)}}),d.push(x)}let E=d;return wn(n),E};var ur=[_,0],hn=Kt(r=>{let{rep:e}=oe(ur,r);re[20](e)});nt[11]=ur;var Wx;Be.prototype.descendants=function(){var e=this[I];if(!e||(Te[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var t=Te[(e<<1)+1]&~_,o=Wx(t),u=new.target===Er?this:Object.create(Er.prototype);return Object.defineProperty(u,I,{writable:!0,value:o}),hn.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){hn.unregister(u),oe(ur,o),u[J]=De,u[I]=void 0,re[20](ur[(o<<1)+1]&~_)}}),u};var zx;Be.prototype.unparse=function(){var e=this[I];if(!e||(Te[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var t=Te[(e<<1)+1]&~_;let n=zx(t);var o=R(F).getInt32(n+0,!0),u=R(F).getInt32(n+4,!0),d=lt.decode(new Uint8Array(F.buffer,o,u));let y=d;return Zr(n),y};var Qx;Be.prototype.toJson=function(){var e=this[I];if(!e||(Te[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var t=Te[(e<<1)+1]&~_;let n=Qx(t);var o=R(F).getInt32(n+0,!0),u=R(F).getInt32(n+4,!0),d=lt.decode(new Uint8Array(F.buffer,o,u));let y=d;return Zr(n),y};var ce=[_,0],At=Kt(r=>{let{rep:e}=oe(ce,r);re[19](e)});nt[8]=ce;var Xx;Be.prototype.createCursor=function(e){var t=this[I];if(!t||(Te[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var n=Te[(t<<1)+1]&~_,{utf8:o,utf16:u,line:d,column:y}=e,E=Xx(n,To(o),To(u),To(d),To(y)),T=new.target===ve?this:Object.create(ve.prototype);return Object.defineProperty(T,I,{writable:!0,value:E}),At.register(T,E,T),Object.defineProperty(T,J,{writable:!0,value:function(){At.unregister(T),oe(ce,E),T[J]=De,T[I]=void 0,re[19](ce[(E<<1)+1]&~_)}}),T};var qe=[_,0],er=Kt(r=>{let{rep:e}=oe(qe,r);re[26](e)});nt[7]=qe;var Jx,Ge=class{constructor(){throw new Error('"TerminalNode" resource does not define a constructor')}};Ge.prototype[an]=function(r,e,t){let n=Object.getPrototypeOf(this)[an];try{return delete Object.getPrototypeOf(this)[an],t(this,{...e,depth:r,getters:!0,showHidden:!0})}finally{Object.getPrototypeOf(this)[an]=n}};Ge.create=function(e,t){var n=lr(t,pt,F),o=Bt,d=Jx(f[e],n,o),y=new.target===Ge?this:Object.create(Ge.prototype);return Object.defineProperty(y,I,{writable:!0,value:d}),er.register(y,d,y),Object.defineProperty(y,J,{writable:!0,value:function(){er.unregister(y),oe(qe,d),y[J]=De,y[I]=void 0,re[26](qe[(d<<1)+1]&~_)}}),y};var Zx;Object.defineProperty(Ge.prototype,"id",{get:function(){var r=this[I];if(!r||(qe[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=qe[(r<<1)+1]&~_;return Zx(e)>>>0}});var eD;Object.defineProperty(Ge.prototype,"kind",{get:function(){var r=this[I];if(!r||(qe[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=qe[(r<<1)+1]&~_;let t=eD(e);return f[t]}});var tD;Object.defineProperty(Ge.prototype,"textLength",{get:function(){var r=this[I];if(!r||(qe[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var e=qe[(r<<1)+1]&~_;let t=tD(e);return{utf8:R(F).getInt32(t+0,!0)>>>0,utf16:R(F).getInt32(t+4,!0)>>>0,line:R(F).getInt32(t+8,!0)>>>0,column:R(F).getInt32(t+12,!0)>>>0}}});var rD;Ge.prototype.children=function(){var e=this[I];if(!e||(qe[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var t=qe[(e<<1)+1]&~_;let n=rD(t);var o=R(F).getInt32(n+4,!0),u=R(F).getInt32(n+0,!0),d=[];for(let T=0;T<o;T++){let N=u+T*4;var y=R(F).getInt32(N+0,!0),x=new.target===vt?this:Object.create(vt.prototype);Object.defineProperty(x,I,{writable:!0,value:y}),br.register(x,y,x),Object.defineProperty(x,J,{writable:!0,value:function(){br.unregister(x),oe(dt,y),x[J]=De,x[I]=void 0,re[21](dt[(y<<1)+1]&~_)}}),d.push(x)}let E=d;return wn(n),E};var iD;Ge.prototype.descendants=function(){var e=this[I];if(!e||(qe[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var t=qe[(e<<1)+1]&~_,o=iD(t),u=new.target===Er?this:Object.create(Er.prototype);return Object.defineProperty(u,I,{writable:!0,value:o}),hn.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){hn.unregister(u),oe(ur,o),u[J]=De,u[I]=void 0,re[20](ur[(o<<1)+1]&~_)}}),u};var nD;Ge.prototype.unparse=function(){var e=this[I];if(!e||(qe[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var t=qe[(e<<1)+1]&~_;let n=nD(t);var o=R(F).getInt32(n+0,!0),u=R(F).getInt32(n+4,!0),d=lt.decode(new Uint8Array(F.buffer,o,u));let y=d;return Zr(n),y};var sD;Ge.prototype.toJson=function(){var e=this[I];if(!e||(qe[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');var t=qe[(e<<1)+1]&~_;let n=sD(t);var o=R(F).getInt32(n+0,!0),u=R(F).getInt32(n+4,!0),d=lt.decode(new Uint8Array(F.buffer,o,u));let y=d;return Zr(n),y};var oD,vt=class{constructor(){throw new Error('"Edge" resource does not define a constructor')}};vt.createWithTerminal=function(e,t){var n=t[I];if(!n)throw new TypeError('Resource error: Not a valid "TerminalNode" resource.');er.unregister(t),t[J]=De,t[I]=void 0;var u=oD(A[e],n),d=new.target===vt?this:Object.create(vt.prototype);return Object.defineProperty(d,I,{writable:!0,value:u}),br.register(d,u,d),Object.defineProperty(d,J,{writable:!0,value:function(){br.unregister(d),oe(dt,u),d[J]=De,d[I]=void 0,re[21](dt[(u<<1)+1]&~_)}}),d};var aD;vt.createWithNonterminal=function(e,t){var n=t[I];if(!n)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');mt.unregister(t),t[J]=De,t[I]=void 0;var u=aD(A[e],n),d=new.target===vt?this:Object.create(vt.prototype);return Object.defineProperty(d,I,{writable:!0,value:u}),br.register(d,u,d),Object.defineProperty(d,J,{writable:!0,value:function(){br.unregister(d),oe(dt,u),d[J]=De,d[I]=void 0,re[21](dt[(u<<1)+1]&~_)}}),d};var lD;Object.defineProperty(vt.prototype,"label",{get:function(){var r=this[I];if(!r||(dt[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Edge" resource.');var e=dt[(r<<1)+1]&~_;let t=lD(e);return A[t]}});var uD;Object.defineProperty(vt.prototype,"node",{get:function(){var r=this[I];if(!r||(dt[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Edge" resource.');var e=dt[(r<<1)+1]&~_;let t=uD(e),n;switch(R(F).getUint8(t+0,!0)){case 0:{var o=R(F).getInt32(t+4,!0),u=new.target===Be?this:Object.create(Be.prototype);Object.defineProperty(u,I,{writable:!0,value:o}),mt.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){mt.unregister(u),oe(Te,o),u[J]=De,u[I]=void 0,re[22](Te[(o<<1)+1]&~_)}}),n=u;break}case 1:{var d=R(F).getInt32(t+4,!0),y=new.target===Ge?this:Object.create(Ge.prototype);Object.defineProperty(y,I,{writable:!0,value:d}),er.register(y,d,y),Object.defineProperty(y,J,{writable:!0,value:function(){er.unregister(y),oe(qe,d),y[J]=De,y[I]=void 0,re[26](qe[(d<<1)+1]&~_)}}),n=y;break}}return n}});var cD,ve=class{constructor(){throw new Error('"Cursor" resource does not define a constructor')}};ve.prototype.reset=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_;cD(t)};var hD;ve.prototype.complete=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_;hD(t)};var pD;ve.prototype.isCompleted=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=pD(t);return!!o};var dD;ve.prototype.clone=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=dD(t),u=new.target===ve?this:Object.create(ve.prototype);return Object.defineProperty(u,I,{writable:!0,value:o}),At.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){At.unregister(u),oe(ce,o),u[J]=De,u[I]=void 0,re[19](ce[(o<<1)+1]&~_)}}),u};var mD;ve.prototype.spawn=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=mD(t),u=new.target===ve?this:Object.create(ve.prototype);return Object.defineProperty(u,I,{writable:!0,value:o}),At.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){At.unregister(u),oe(ce,o),u[J]=De,u[I]=void 0,re[19](ce[(o<<1)+1]&~_)}}),u};var fD;Object.defineProperty(ve.prototype,"node",{get:function(){var r=this[I];if(!r||(ce[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ce[(r<<1)+1]&~_;let t=fD(e),n;switch(R(F).getUint8(t+0,!0)){case 0:{var o=R(F).getInt32(t+4,!0),u=new.target===Be?this:Object.create(Be.prototype);Object.defineProperty(u,I,{writable:!0,value:o}),mt.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){mt.unregister(u),oe(Te,o),u[J]=De,u[I]=void 0,re[22](Te[(o<<1)+1]&~_)}}),n=u;break}case 1:{var d=R(F).getInt32(t+4,!0),y=new.target===Ge?this:Object.create(Ge.prototype);Object.defineProperty(y,I,{writable:!0,value:d}),er.register(y,d,y),Object.defineProperty(y,J,{writable:!0,value:function(){er.unregister(y),oe(qe,d),y[J]=De,y[I]=void 0,re[26](qe[(d<<1)+1]&~_)}}),n=y;break}}return n}});var yD;Object.defineProperty(ve.prototype,"label",{get:function(){var r=this[I];if(!r||(ce[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ce[(r<<1)+1]&~_;let t=yD(e);return A[t]}});var wD;Object.defineProperty(ve.prototype,"textOffset",{get:function(){var r=this[I];if(!r||(ce[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ce[(r<<1)+1]&~_;let t=wD(e);return{utf8:R(F).getInt32(t+0,!0)>>>0,utf16:R(F).getInt32(t+4,!0)>>>0,line:R(F).getInt32(t+8,!0)>>>0,column:R(F).getInt32(t+12,!0)>>>0}}});var gD;Object.defineProperty(ve.prototype,"textRange",{get:function(){var r=this[I];if(!r||(ce[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ce[(r<<1)+1]&~_;let t=gD(e);return{start:{utf8:R(F).getInt32(t+0,!0)>>>0,utf16:R(F).getInt32(t+4,!0)>>>0,line:R(F).getInt32(t+8,!0)>>>0,column:R(F).getInt32(t+12,!0)>>>0},end:{utf8:R(F).getInt32(t+16,!0)>>>0,utf16:R(F).getInt32(t+20,!0)>>>0,line:R(F).getInt32(t+24,!0)>>>0,column:R(F).getInt32(t+28,!0)>>>0}}}});var xD;Object.defineProperty(ve.prototype,"depth",{get:function(){var r=this[I];if(!r||(ce[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var e=ce[(r<<1)+1]&~_;return xD(e)>>>0}});var DD;ve.prototype.children=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_;let n=DD(t);var o=R(F).getInt32(n+4,!0),u=R(F).getInt32(n+0,!0),d=[];for(let T=0;T<o;T++){let N=u+T*4;var y=R(F).getInt32(N+0,!0),x=new.target===vt?this:Object.create(vt.prototype);Object.defineProperty(x,I,{writable:!0,value:y}),br.register(x,y,x),Object.defineProperty(x,J,{writable:!0,value:function(){br.unregister(x),oe(dt,y),x[J]=De,x[I]=void 0,re[21](dt[(y<<1)+1]&~_)}}),d.push(x)}let E=d;return wn(n),E};var bD;ve.prototype.descendants=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=bD(t),u=new.target===Er?this:Object.create(Er.prototype);return Object.defineProperty(u,I,{writable:!0,value:o}),hn.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){hn.unregister(u),oe(ur,o),u[J]=De,u[I]=void 0,re[20](ur[(o<<1)+1]&~_)}}),u};var ED;ve.prototype.remainingNodes=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=ED(t),u=new.target===Er?this:Object.create(Er.prototype);return Object.defineProperty(u,I,{writable:!0,value:o}),hn.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){hn.unregister(u),oe(ur,o),u[J]=De,u[I]=void 0,re[20](ur[(o<<1)+1]&~_)}}),u};var pn=[_,0],Tx=Kt(r=>{let{rep:e}=oe(pn,r);re[18](e)});nt[10]=pn;var CD;ve.prototype.ancestors=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=CD(t),u=new.target===zn?this:Object.create(zn.prototype);return Object.defineProperty(u,I,{writable:!0,value:o}),Tx.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){Tx.unregister(u),oe(pn,o),u[J]=De,u[I]=void 0,re[18](pn[(o<<1)+1]&~_)}}),u};var SD;ve.prototype.goToNext=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=SD(t);return!!o};var vD;ve.prototype.goToNextNonDescendant=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=vD(t);return!!o};var TD;ve.prototype.goToPrevious=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=TD(t);return!!o};var AD;ve.prototype.goToParent=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=AD(t);return!!o};var _D;ve.prototype.goToFirstChild=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=_D(t);return!!o};var KD;ve.prototype.goToLastChild=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=KD(t);return!!o};var FD;ve.prototype.goToNthChild=function(e){var t=this[I];if(!t||(ce[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var n=ce[(t<<1)+1]&~_,u=FD(n,To(e));return!!u};var ND;ve.prototype.goToNextSibling=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=ND(t);return!!o};var PD;ve.prototype.goToPreviousSibling=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=PD(t);return!!o};var kD;ve.prototype.goToNextTerminal=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=kD(t);return!!o};var LD;ve.prototype.goToNextTerminalWithKind=function(e){var t=this[I];if(!t||(ce[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var n=ce[(t<<1)+1]&~_,u=LD(n,f[e]);return!!u};var ID;ve.prototype.goToNextTerminalWithKinds=function(e){var t=this[I];if(!t||(ce[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var n=ce[(t<<1)+1]&~_,o=e,u=o.length,d=pt(0,0,2,u*2);for(let E=0;E<o.length;E++){let T=o[E],N=d+E*2;R(F).setInt16(N+0,f[T],!0)}var x=ID(n,d,u);return!!x};var RD;ve.prototype.goToNextNonterminal=function(){var e=this[I];if(!e||(ce[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var t=ce[(e<<1)+1]&~_,o=RD(t);return!!o};var OD;ve.prototype.goToNextNonterminalWithKind=function(e){var t=this[I];if(!t||(ce[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var n=ce[(t<<1)+1]&~_,u=OD(n,D[e]);return!!u};var MD;ve.prototype.goToNextNonterminalWithKinds=function(e){var t=this[I];if(!t||(ce[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var n=ce[(t<<1)+1]&~_,o=e,u=o.length,d=pt(0,0,1,u*1);for(let E=0;E<o.length;E++){let T=o[E],N=d+E*1;R(F).setInt8(N+0,D[T],!0)}var x=MD(n,d,u);return!!x};var dn=[_,0],Ax=Kt(r=>{let{rep:e}=oe(dn,r);re[23](e)});nt[13]=dn;var mn=[_,0],_x=Kt(r=>{let{rep:e}=oe(mn,r);re[24](e)});nt[12]=mn;var YD;ve.prototype.query=function(e){var t=this[I];if(!t||(ce[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var n=ce[(t<<1)+1]&~_,o=e,u=o.length,d=pt(0,0,4,u*4);for(let P=0;P<o.length;P++){let $=o[P],V=d+P*4;var y=$[I];if(!y||(dn[(y<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Query" resource.');var x=dn[(y<<1)+1]&~_;R(F).setInt32(V+0,x,!0)}var T=YD(n,d,u),N=new.target===Qn?this:Object.create(Qn.prototype);return Object.defineProperty(N,I,{writable:!0,value:T}),_x.register(N,T,N),Object.defineProperty(N,J,{writable:!0,value:function(){_x.unregister(N),oe(mn,T),N[J]=De,N[I]=void 0,re[24](mn[(T<<1)+1]&~_)}}),N};var BD,Er=class{constructor(){throw new Error('"CursorIterator" resource does not define a constructor')}};Er.prototype[Symbol.iterator]=function(){return{next:()=>{let r=this.next();return{done:r==null,value:r}}}};Er.prototype.next=function(){var e=this[I];if(!e||(ur[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "CursorIterator" resource.');var t=ur[(e<<1)+1]&~_;let n=BD(t),o;if(R(F).getUint8(n+0,!0)){var u=R(F).getInt32(n+4,!0),d=new.target===vt?this:Object.create(vt.prototype);Object.defineProperty(d,I,{writable:!0,value:u}),br.register(d,u,d),Object.defineProperty(d,J,{writable:!0,value:function(){br.unregister(d),oe(dt,u),d[J]=De,d[I]=void 0,re[21](dt[(u<<1)+1]&~_)}}),o=d}else o=void 0;return o};var UD,zn=class{constructor(){throw new Error('"AncestorsIterator" resource does not define a constructor')}};zn.prototype[Symbol.iterator]=function(){return{next:()=>{let r=this.next();return{done:r==null,value:r}}}};zn.prototype.next=function(){var e=this[I];if(!e||(pn[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "AncestorsIterator" resource.');var t=pn[(e<<1)+1]&~_;let n=UD(t),o;if(R(F).getUint8(n+0,!0)){var u=R(F).getInt32(n+4,!0),d=new.target===Be?this:Object.create(Be.prototype);Object.defineProperty(d,I,{writable:!0,value:u}),mt.register(d,u,d),Object.defineProperty(d,J,{writable:!0,value:function(){mt.unregister(d),oe(Te,u),d[J]=De,d[I]=void 0,re[22](Te[(u<<1)+1]&~_)}}),o=d}else o=void 0;return o};var VD,xs=class{constructor(){throw new Error('"Query" resource does not define a constructor')}};xs.create=function(e){var t=lr(e,pt,F),n=Bt;let o=VD(t,n),u;if(R(F).getUint8(o+0,!0)){var d=R(F).getInt32(o+4,!0),y=R(F).getInt32(o+8,!0),x=lt.decode(new Uint8Array(F.buffer,d,y));u={tag:"err",val:{message:x,textRange:{start:{utf8:R(F).getInt32(o+12,!0)>>>0,utf16:R(F).getInt32(o+16,!0)>>>0,line:R(F).getInt32(o+20,!0)>>>0,column:R(F).getInt32(o+24,!0)>>>0},end:{utf8:R(F).getInt32(o+28,!0)>>>0,utf16:R(F).getInt32(o+32,!0)>>>0,line:R(F).getInt32(o+36,!0)>>>0,column:R(F).getInt32(o+40,!0)>>>0}}}}}else{var E=R(F).getInt32(o+4,!0),T=new.target===xs?this:Object.create(xs.prototype);Object.defineProperty(T,I,{writable:!0,value:E}),Ax.register(T,E,T),Object.defineProperty(T,J,{writable:!0,value:function(){Ax.unregister(T),oe(dn,E),T[J]=De,T[I]=void 0,re[23](dn[(E<<1)+1]&~_)}}),u={tag:"ok",val:T}}let N=u;if(As(o),typeof N=="object"&&N.tag==="err")throw N.val;return N.val};var $D,Qn=class{constructor(){throw new Error('"QueryMatchIterator" resource does not define a constructor')}};Qn.prototype[Symbol.iterator]=function(){return{next:()=>{let r=this.next();return{done:r==null,value:r}}}};Qn.prototype.next=function(){var e=this[I];if(!e||(mn[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "QueryMatchIterator" resource.');var t=mn[(e<<1)+1]&~_;let n=$D(t),o;if(R(F).getUint8(n+0,!0)){var u=R(F).getInt32(n+8,!0),d=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(d,I,{writable:!0,value:u}),At.register(d,u,d),Object.defineProperty(d,J,{writable:!0,value:function(){At.unregister(d),oe(ce,u),d[J]=De,d[I]=void 0,re[19](ce[(u<<1)+1]&~_)}});var y=R(F).getInt32(n+16,!0),x=R(F).getInt32(n+12,!0),E=[];for(let Ne=0;Ne<y;Ne++){let Oe=x+Ne*16;var T=R(F).getInt32(Oe+0,!0),N=R(F).getInt32(Oe+4,!0),P=lt.decode(new Uint8Array(F.buffer,T,N)),$=R(F).getInt32(Oe+12,!0),V=R(F).getInt32(Oe+8,!0),Z=[];for(let st=0;st<$;st++){let ot=V+st*4;var Q=R(F).getInt32(ot+0,!0),te=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(te,I,{writable:!0,value:Q}),At.register(te,Q,te),Object.defineProperty(te,J,{writable:!0,value:function(){At.unregister(te),oe(ce,Q),te[J]=De,te[I]=void 0,re[19](ce[(Q<<1)+1]&~_)}}),Z.push(te)}E.push([P,Z])}o={queryIndex:R(F).getInt32(n+4,!0)>>>0,root:d,captures:E.reduce((Ne,Oe)=>(Ne[Oe[0]]=Oe[1],Ne),{})}}else o=void 0;let Ee=o;return Rx(n),Ee};var HD,gu=class{constructor(){throw new Error('"TextIndexExtensions" resource does not define a constructor')}};gu.zero=function(){let e=HD();return{utf8:R(F).getInt32(e+0,!0)>>>0,utf16:R(F).getInt32(e+4,!0)>>>0,line:R(F).getInt32(e+8,!0)>>>0,column:R(F).getInt32(e+12,!0)>>>0}};var O={};O.AbicoderPragma="AbicoderPragma";O.AbicoderVersion="AbicoderVersion";O.AdditiveExpression="AdditiveExpression";O.AddressType="AddressType";O.AndExpression="AndExpression";O.ArgumentsDeclaration="ArgumentsDeclaration";O.ArrayExpression="ArrayExpression";O.ArrayTypeName="ArrayTypeName";O.ArrayValues="ArrayValues";O.AssemblyFlags="AssemblyFlags";O.AssemblyFlagsDeclaration="AssemblyFlagsDeclaration";O.AssemblyStatement="AssemblyStatement";O.AssignmentExpression="AssignmentExpression";O.BitwiseAndExpression="BitwiseAndExpression";O.BitwiseOrExpression="BitwiseOrExpression";O.BitwiseXorExpression="BitwiseXorExpression";O.Block="Block";O.BreakStatement="BreakStatement";O.CallOptions="CallOptions";O.CallOptionsExpression="CallOptionsExpression";O.CatchClause="CatchClause";O.CatchClauseError="CatchClauseError";O.CatchClauses="CatchClauses";O.ConditionalExpression="ConditionalExpression";O.ConstantDefinition="ConstantDefinition";O.ConstructorAttribute="ConstructorAttribute";O.ConstructorAttributes="ConstructorAttributes";O.ConstructorDefinition="ConstructorDefinition";O.ContinueStatement="ContinueStatement";O.ContractDefinition="ContractDefinition";O.ContractMember="ContractMember";O.ContractMembers="ContractMembers";O.ContractSpecifier="ContractSpecifier";O.ContractSpecifiers="ContractSpecifiers";O.DecimalNumberExpression="DecimalNumberExpression";O.DoWhileStatement="DoWhileStatement";O.ElementaryType="ElementaryType";O.ElseBranch="ElseBranch";O.EmitStatement="EmitStatement";O.EnumDefinition="EnumDefinition";O.EnumMembers="EnumMembers";O.EqualityExpression="EqualityExpression";O.ErrorDefinition="ErrorDefinition";O.ErrorParameter="ErrorParameter";O.ErrorParameters="ErrorParameters";O.ErrorParametersDeclaration="ErrorParametersDeclaration";O.EventDefinition="EventDefinition";O.EventParameter="EventParameter";O.EventParameters="EventParameters";O.EventParametersDeclaration="EventParametersDeclaration";O.ExperimentalFeature="ExperimentalFeature";O.ExperimentalPragma="ExperimentalPragma";O.ExponentiationExpression="ExponentiationExpression";O.Expression="Expression";O.ExpressionStatement="ExpressionStatement";O.FallbackFunctionAttribute="FallbackFunctionAttribute";O.FallbackFunctionAttributes="FallbackFunctionAttributes";O.FallbackFunctionDefinition="FallbackFunctionDefinition";O.ForStatement="ForStatement";O.ForStatementCondition="ForStatementCondition";O.ForStatementInitialization="ForStatementInitialization";O.FunctionAttribute="FunctionAttribute";O.FunctionAttributes="FunctionAttributes";O.FunctionBody="FunctionBody";O.FunctionCallExpression="FunctionCallExpression";O.FunctionDefinition="FunctionDefinition";O.FunctionName="FunctionName";O.FunctionType="FunctionType";O.FunctionTypeAttribute="FunctionTypeAttribute";O.FunctionTypeAttributes="FunctionTypeAttributes";O.HexNumberExpression="HexNumberExpression";O.HexStringLiteral="HexStringLiteral";O.HexStringLiterals="HexStringLiterals";O.IdentifierPath="IdentifierPath";O.IfStatement="IfStatement";O.ImportAlias="ImportAlias";O.ImportClause="ImportClause";O.ImportDeconstruction="ImportDeconstruction";O.ImportDeconstructionSymbol="ImportDeconstructionSymbol";O.ImportDeconstructionSymbols="ImportDeconstructionSymbols";O.ImportDirective="ImportDirective";O.IndexAccessEnd="IndexAccessEnd";O.IndexAccessExpression="IndexAccessExpression";O.InequalityExpression="InequalityExpression";O.InheritanceSpecifier="InheritanceSpecifier";O.InheritanceType="InheritanceType";O.InheritanceTypes="InheritanceTypes";O.InterfaceDefinition="InterfaceDefinition";O.InterfaceMembers="InterfaceMembers";O.LibraryDefinition="LibraryDefinition";O.LibraryMembers="LibraryMembers";O.MappingKey="MappingKey";O.MappingKeyType="MappingKeyType";O.MappingType="MappingType";O.MappingValue="MappingValue";O.MemberAccessExpression="MemberAccessExpression";O.ModifierAttribute="ModifierAttribute";O.ModifierAttributes="ModifierAttributes";O.ModifierDefinition="ModifierDefinition";O.ModifierInvocation="ModifierInvocation";O.MultiplicativeExpression="MultiplicativeExpression";O.NamedArgument="NamedArgument";O.NamedArgumentGroup="NamedArgumentGroup";O.NamedArguments="NamedArguments";O.NamedArgumentsDeclaration="NamedArgumentsDeclaration";O.NamedImport="NamedImport";O.NewExpression="NewExpression";O.NumberUnit="NumberUnit";O.OrExpression="OrExpression";O.OverridePaths="OverridePaths";O.OverridePathsDeclaration="OverridePathsDeclaration";O.OverrideSpecifier="OverrideSpecifier";O.Parameter="Parameter";O.Parameters="Parameters";O.ParametersDeclaration="ParametersDeclaration";O.PathImport="PathImport";O.PositionalArguments="PositionalArguments";O.PositionalArgumentsDeclaration="PositionalArgumentsDeclaration";O.PostfixExpression="PostfixExpression";O.Pragma="Pragma";O.PragmaDirective="PragmaDirective";O.PrefixExpression="PrefixExpression";O.ReceiveFunctionAttribute="ReceiveFunctionAttribute";O.ReceiveFunctionAttributes="ReceiveFunctionAttributes";O.ReceiveFunctionDefinition="ReceiveFunctionDefinition";O.ReturnStatement="ReturnStatement";O.ReturnsDeclaration="ReturnsDeclaration";O.RevertStatement="RevertStatement";O.ShiftExpression="ShiftExpression";O.SimpleVersionLiteral="SimpleVersionLiteral";O.SourceUnit="SourceUnit";O.SourceUnitMember="SourceUnitMember";O.SourceUnitMembers="SourceUnitMembers";O.StateVariableAttribute="StateVariableAttribute";O.StateVariableAttributes="StateVariableAttributes";O.StateVariableDefinition="StateVariableDefinition";O.StateVariableDefinitionValue="StateVariableDefinitionValue";O.Statement="Statement";O.Statements="Statements";O.StorageLayoutSpecifier="StorageLayoutSpecifier";O.StorageLocation="StorageLocation";O.StringExpression="StringExpression";O.StringLiteral="StringLiteral";O.StringLiterals="StringLiterals";O.StructDefinition="StructDefinition";O.StructMember="StructMember";O.StructMembers="StructMembers";O.ThrowStatement="ThrowStatement";O.TryStatement="TryStatement";O.TupleDeconstructionElement="TupleDeconstructionElement";O.TupleDeconstructionElements="TupleDeconstructionElements";O.TupleDeconstructionStatement="TupleDeconstructionStatement";O.TupleExpression="TupleExpression";O.TupleMember="TupleMember";O.TupleValue="TupleValue";O.TupleValues="TupleValues";O.TypeExpression="TypeExpression";O.TypeName="TypeName";O.TypedTupleMember="TypedTupleMember";O.UncheckedBlock="UncheckedBlock";O.UnicodeStringLiteral="UnicodeStringLiteral";O.UnicodeStringLiterals="UnicodeStringLiterals";O.UnnamedFunctionAttribute="UnnamedFunctionAttribute";O.UnnamedFunctionAttributes="UnnamedFunctionAttributes";O.UnnamedFunctionDefinition="UnnamedFunctionDefinition";O.UntypedTupleMember="UntypedTupleMember";O.UserDefinedValueTypeDefinition="UserDefinedValueTypeDefinition";O.UsingAlias="UsingAlias";O.UsingClause="UsingClause";O.UsingDeconstruction="UsingDeconstruction";O.UsingDeconstructionSymbol="UsingDeconstructionSymbol";O.UsingDeconstructionSymbols="UsingDeconstructionSymbols";O.UsingDirective="UsingDirective";O.UsingOperator="UsingOperator";O.UsingTarget="UsingTarget";O.VariableDeclarationStatement="VariableDeclarationStatement";O.VariableDeclarationType="VariableDeclarationType";O.VariableDeclarationValue="VariableDeclarationValue";O.VersionExpression="VersionExpression";O.VersionExpressionSet="VersionExpressionSet";O.VersionExpressionSets="VersionExpressionSets";O.VersionLiteral="VersionLiteral";O.VersionOperator="VersionOperator";O.VersionPragma="VersionPragma";O.VersionRange="VersionRange";O.VersionTerm="VersionTerm";O.WhileStatement="WhileStatement";O.YulArguments="YulArguments";O.YulAssignmentOperator="YulAssignmentOperator";O.YulBlock="YulBlock";O.YulBreakStatement="YulBreakStatement";O.YulColonAndEqual="YulColonAndEqual";O.YulContinueStatement="YulContinueStatement";O.YulDefaultCase="YulDefaultCase";O.YulEqualAndColon="YulEqualAndColon";O.YulExpression="YulExpression";O.YulForStatement="YulForStatement";O.YulFunctionCallExpression="YulFunctionCallExpression";O.YulFunctionDefinition="YulFunctionDefinition";O.YulIfStatement="YulIfStatement";O.YulLabel="YulLabel";O.YulLeaveStatement="YulLeaveStatement";O.YulLiteral="YulLiteral";O.YulParameters="YulParameters";O.YulParametersDeclaration="YulParametersDeclaration";O.YulPath="YulPath";O.YulPaths="YulPaths";O.YulReturnsDeclaration="YulReturnsDeclaration";O.YulStackAssignmentOperator="YulStackAssignmentOperator";O.YulStackAssignmentStatement="YulStackAssignmentStatement";O.YulStatement="YulStatement";O.YulStatements="YulStatements";O.YulSwitchCase="YulSwitchCase";O.YulSwitchCases="YulSwitchCases";O.YulSwitchStatement="YulSwitchStatement";O.YulValueCase="YulValueCase";O.YulVariableAssignmentStatement="YulVariableAssignmentStatement";O.YulVariableDeclarationStatement="YulVariableDeclarationStatement";O.YulVariableDeclarationValue="YulVariableDeclarationValue";O.YulVariableNames="YulVariableNames";var D={};D[D.AbicoderPragma=0]="AbicoderPragma";D[D.AbicoderVersion=1]="AbicoderVersion";D[D.AdditiveExpression=2]="AdditiveExpression";D[D.AddressType=3]="AddressType";D[D.AndExpression=4]="AndExpression";D[D.ArgumentsDeclaration=5]="ArgumentsDeclaration";D[D.ArrayExpression=6]="ArrayExpression";D[D.ArrayTypeName=7]="ArrayTypeName";D[D.ArrayValues=8]="ArrayValues";D[D.AssemblyFlags=9]="AssemblyFlags";D[D.AssemblyFlagsDeclaration=10]="AssemblyFlagsDeclaration";D[D.AssemblyStatement=11]="AssemblyStatement";D[D.AssignmentExpression=12]="AssignmentExpression";D[D.BitwiseAndExpression=13]="BitwiseAndExpression";D[D.BitwiseOrExpression=14]="BitwiseOrExpression";D[D.BitwiseXorExpression=15]="BitwiseXorExpression";D[D.Block=16]="Block";D[D.BreakStatement=17]="BreakStatement";D[D.CallOptions=18]="CallOptions";D[D.CallOptionsExpression=19]="CallOptionsExpression";D[D.CatchClause=20]="CatchClause";D[D.CatchClauseError=21]="CatchClauseError";D[D.CatchClauses=22]="CatchClauses";D[D.ConditionalExpression=23]="ConditionalExpression";D[D.ConstantDefinition=24]="ConstantDefinition";D[D.ConstructorAttribute=25]="ConstructorAttribute";D[D.ConstructorAttributes=26]="ConstructorAttributes";D[D.ConstructorDefinition=27]="ConstructorDefinition";D[D.ContinueStatement=28]="ContinueStatement";D[D.ContractDefinition=29]="ContractDefinition";D[D.ContractMember=30]="ContractMember";D[D.ContractMembers=31]="ContractMembers";D[D.ContractSpecifier=32]="ContractSpecifier";D[D.ContractSpecifiers=33]="ContractSpecifiers";D[D.DecimalNumberExpression=34]="DecimalNumberExpression";D[D.DoWhileStatement=35]="DoWhileStatement";D[D.ElementaryType=36]="ElementaryType";D[D.ElseBranch=37]="ElseBranch";D[D.EmitStatement=38]="EmitStatement";D[D.EnumDefinition=39]="EnumDefinition";D[D.EnumMembers=40]="EnumMembers";D[D.EqualityExpression=41]="EqualityExpression";D[D.ErrorDefinition=42]="ErrorDefinition";D[D.ErrorParameter=43]="ErrorParameter";D[D.ErrorParameters=44]="ErrorParameters";D[D.ErrorParametersDeclaration=45]="ErrorParametersDeclaration";D[D.EventDefinition=46]="EventDefinition";D[D.EventParameter=47]="EventParameter";D[D.EventParameters=48]="EventParameters";D[D.EventParametersDeclaration=49]="EventParametersDeclaration";D[D.ExperimentalFeature=50]="ExperimentalFeature";D[D.ExperimentalPragma=51]="ExperimentalPragma";D[D.ExponentiationExpression=52]="ExponentiationExpression";D[D.Expression=53]="Expression";D[D.ExpressionStatement=54]="ExpressionStatement";D[D.FallbackFunctionAttribute=55]="FallbackFunctionAttribute";D[D.FallbackFunctionAttributes=56]="FallbackFunctionAttributes";D[D.FallbackFunctionDefinition=57]="FallbackFunctionDefinition";D[D.ForStatement=58]="ForStatement";D[D.ForStatementCondition=59]="ForStatementCondition";D[D.ForStatementInitialization=60]="ForStatementInitialization";D[D.FunctionAttribute=61]="FunctionAttribute";D[D.FunctionAttributes=62]="FunctionAttributes";D[D.FunctionBody=63]="FunctionBody";D[D.FunctionCallExpression=64]="FunctionCallExpression";D[D.FunctionDefinition=65]="FunctionDefinition";D[D.FunctionName=66]="FunctionName";D[D.FunctionType=67]="FunctionType";D[D.FunctionTypeAttribute=68]="FunctionTypeAttribute";D[D.FunctionTypeAttributes=69]="FunctionTypeAttributes";D[D.HexNumberExpression=70]="HexNumberExpression";D[D.HexStringLiteral=71]="HexStringLiteral";D[D.HexStringLiterals=72]="HexStringLiterals";D[D.IdentifierPath=73]="IdentifierPath";D[D.IfStatement=74]="IfStatement";D[D.ImportAlias=75]="ImportAlias";D[D.ImportClause=76]="ImportClause";D[D.ImportDeconstruction=77]="ImportDeconstruction";D[D.ImportDeconstructionSymbol=78]="ImportDeconstructionSymbol";D[D.ImportDeconstructionSymbols=79]="ImportDeconstructionSymbols";D[D.ImportDirective=80]="ImportDirective";D[D.IndexAccessEnd=81]="IndexAccessEnd";D[D.IndexAccessExpression=82]="IndexAccessExpression";D[D.InequalityExpression=83]="InequalityExpression";D[D.InheritanceSpecifier=84]="InheritanceSpecifier";D[D.InheritanceType=85]="InheritanceType";D[D.InheritanceTypes=86]="InheritanceTypes";D[D.InterfaceDefinition=87]="InterfaceDefinition";D[D.InterfaceMembers=88]="InterfaceMembers";D[D.LibraryDefinition=89]="LibraryDefinition";D[D.LibraryMembers=90]="LibraryMembers";D[D.MappingKey=91]="MappingKey";D[D.MappingKeyType=92]="MappingKeyType";D[D.MappingType=93]="MappingType";D[D.MappingValue=94]="MappingValue";D[D.MemberAccessExpression=95]="MemberAccessExpression";D[D.ModifierAttribute=96]="ModifierAttribute";D[D.ModifierAttributes=97]="ModifierAttributes";D[D.ModifierDefinition=98]="ModifierDefinition";D[D.ModifierInvocation=99]="ModifierInvocation";D[D.MultiplicativeExpression=100]="MultiplicativeExpression";D[D.NamedArgument=101]="NamedArgument";D[D.NamedArgumentGroup=102]="NamedArgumentGroup";D[D.NamedArguments=103]="NamedArguments";D[D.NamedArgumentsDeclaration=104]="NamedArgumentsDeclaration";D[D.NamedImport=105]="NamedImport";D[D.NewExpression=106]="NewExpression";D[D.NumberUnit=107]="NumberUnit";D[D.OrExpression=108]="OrExpression";D[D.OverridePaths=109]="OverridePaths";D[D.OverridePathsDeclaration=110]="OverridePathsDeclaration";D[D.OverrideSpecifier=111]="OverrideSpecifier";D[D.Parameter=112]="Parameter";D[D.Parameters=113]="Parameters";D[D.ParametersDeclaration=114]="ParametersDeclaration";D[D.PathImport=115]="PathImport";D[D.PositionalArguments=116]="PositionalArguments";D[D.PositionalArgumentsDeclaration=117]="PositionalArgumentsDeclaration";D[D.PostfixExpression=118]="PostfixExpression";D[D.Pragma=119]="Pragma";D[D.PragmaDirective=120]="PragmaDirective";D[D.PrefixExpression=121]="PrefixExpression";D[D.ReceiveFunctionAttribute=122]="ReceiveFunctionAttribute";D[D.ReceiveFunctionAttributes=123]="ReceiveFunctionAttributes";D[D.ReceiveFunctionDefinition=124]="ReceiveFunctionDefinition";D[D.ReturnStatement=125]="ReturnStatement";D[D.ReturnsDeclaration=126]="ReturnsDeclaration";D[D.RevertStatement=127]="RevertStatement";D[D.ShiftExpression=128]="ShiftExpression";D[D.SimpleVersionLiteral=129]="SimpleVersionLiteral";D[D.SourceUnit=130]="SourceUnit";D[D.SourceUnitMember=131]="SourceUnitMember";D[D.SourceUnitMembers=132]="SourceUnitMembers";D[D.StateVariableAttribute=133]="StateVariableAttribute";D[D.StateVariableAttributes=134]="StateVariableAttributes";D[D.StateVariableDefinition=135]="StateVariableDefinition";D[D.StateVariableDefinitionValue=136]="StateVariableDefinitionValue";D[D.Statement=137]="Statement";D[D.Statements=138]="Statements";D[D.StorageLayoutSpecifier=139]="StorageLayoutSpecifier";D[D.StorageLocation=140]="StorageLocation";D[D.StringExpression=141]="StringExpression";D[D.StringLiteral=142]="StringLiteral";D[D.StringLiterals=143]="StringLiterals";D[D.StructDefinition=144]="StructDefinition";D[D.StructMember=145]="StructMember";D[D.StructMembers=146]="StructMembers";D[D.ThrowStatement=147]="ThrowStatement";D[D.TryStatement=148]="TryStatement";D[D.TupleDeconstructionElement=149]="TupleDeconstructionElement";D[D.TupleDeconstructionElements=150]="TupleDeconstructionElements";D[D.TupleDeconstructionStatement=151]="TupleDeconstructionStatement";D[D.TupleExpression=152]="TupleExpression";D[D.TupleMember=153]="TupleMember";D[D.TupleValue=154]="TupleValue";D[D.TupleValues=155]="TupleValues";D[D.TypeExpression=156]="TypeExpression";D[D.TypeName=157]="TypeName";D[D.TypedTupleMember=158]="TypedTupleMember";D[D.UncheckedBlock=159]="UncheckedBlock";D[D.UnicodeStringLiteral=160]="UnicodeStringLiteral";D[D.UnicodeStringLiterals=161]="UnicodeStringLiterals";D[D.UnnamedFunctionAttribute=162]="UnnamedFunctionAttribute";D[D.UnnamedFunctionAttributes=163]="UnnamedFunctionAttributes";D[D.UnnamedFunctionDefinition=164]="UnnamedFunctionDefinition";D[D.UntypedTupleMember=165]="UntypedTupleMember";D[D.UserDefinedValueTypeDefinition=166]="UserDefinedValueTypeDefinition";D[D.UsingAlias=167]="UsingAlias";D[D.UsingClause=168]="UsingClause";D[D.UsingDeconstruction=169]="UsingDeconstruction";D[D.UsingDeconstructionSymbol=170]="UsingDeconstructionSymbol";D[D.UsingDeconstructionSymbols=171]="UsingDeconstructionSymbols";D[D.UsingDirective=172]="UsingDirective";D[D.UsingOperator=173]="UsingOperator";D[D.UsingTarget=174]="UsingTarget";D[D.VariableDeclarationStatement=175]="VariableDeclarationStatement";D[D.VariableDeclarationType=176]="VariableDeclarationType";D[D.VariableDeclarationValue=177]="VariableDeclarationValue";D[D.VersionExpression=178]="VersionExpression";D[D.VersionExpressionSet=179]="VersionExpressionSet";D[D.VersionExpressionSets=180]="VersionExpressionSets";D[D.VersionLiteral=181]="VersionLiteral";D[D.VersionOperator=182]="VersionOperator";D[D.VersionPragma=183]="VersionPragma";D[D.VersionRange=184]="VersionRange";D[D.VersionTerm=185]="VersionTerm";D[D.WhileStatement=186]="WhileStatement";D[D.YulArguments=187]="YulArguments";D[D.YulAssignmentOperator=188]="YulAssignmentOperator";D[D.YulBlock=189]="YulBlock";D[D.YulBreakStatement=190]="YulBreakStatement";D[D.YulColonAndEqual=191]="YulColonAndEqual";D[D.YulContinueStatement=192]="YulContinueStatement";D[D.YulDefaultCase=193]="YulDefaultCase";D[D.YulEqualAndColon=194]="YulEqualAndColon";D[D.YulExpression=195]="YulExpression";D[D.YulForStatement=196]="YulForStatement";D[D.YulFunctionCallExpression=197]="YulFunctionCallExpression";D[D.YulFunctionDefinition=198]="YulFunctionDefinition";D[D.YulIfStatement=199]="YulIfStatement";D[D.YulLabel=200]="YulLabel";D[D.YulLeaveStatement=201]="YulLeaveStatement";D[D.YulLiteral=202]="YulLiteral";D[D.YulParameters=203]="YulParameters";D[D.YulParametersDeclaration=204]="YulParametersDeclaration";D[D.YulPath=205]="YulPath";D[D.YulPaths=206]="YulPaths";D[D.YulReturnsDeclaration=207]="YulReturnsDeclaration";D[D.YulStackAssignmentOperator=208]="YulStackAssignmentOperator";D[D.YulStackAssignmentStatement=209]="YulStackAssignmentStatement";D[D.YulStatement=210]="YulStatement";D[D.YulStatements=211]="YulStatements";D[D.YulSwitchCase=212]="YulSwitchCase";D[D.YulSwitchCases=213]="YulSwitchCases";D[D.YulSwitchStatement=214]="YulSwitchStatement";D[D.YulValueCase=215]="YulValueCase";D[D.YulVariableAssignmentStatement=216]="YulVariableAssignmentStatement";D[D.YulVariableDeclarationStatement=217]="YulVariableDeclarationStatement";D[D.YulVariableDeclarationValue=218]="YulVariableDeclarationValue";D[D.YulVariableNames=219]="YulVariableNames";var v={};v.Unrecognized="Unrecognized";v.Missing="Missing";v.ABIEncoderV2Keyword="ABIEncoderV2Keyword";v.AbicoderKeyword="AbicoderKeyword";v.AbicoderV1Keyword="AbicoderV1Keyword";v.AbicoderV2Keyword="AbicoderV2Keyword";v.AbstractKeyword="AbstractKeyword";v.AddressKeyword="AddressKeyword";v.AfterKeyword="AfterKeyword";v.AliasKeyword="AliasKeyword";v.Ampersand="Ampersand";v.AmpersandAmpersand="AmpersandAmpersand";v.AmpersandEqual="AmpersandEqual";v.AnonymousKeyword="AnonymousKeyword";v.ApplyKeyword="ApplyKeyword";v.AsKeyword="AsKeyword";v.AssemblyKeyword="AssemblyKeyword";v.Asterisk="Asterisk";v.AsteriskAsterisk="AsteriskAsterisk";v.AsteriskEqual="AsteriskEqual";v.AtKeyword="AtKeyword";v.AutoKeyword="AutoKeyword";v.Bang="Bang";v.BangEqual="BangEqual";v.Bar="Bar";v.BarBar="BarBar";v.BarEqual="BarEqual";v.BoolKeyword="BoolKeyword";v.BreakKeyword="BreakKeyword";v.ByteKeyword="ByteKeyword";v.BytesKeyword="BytesKeyword";v.CallDataKeyword="CallDataKeyword";v.Caret="Caret";v.CaretEqual="CaretEqual";v.CaseKeyword="CaseKeyword";v.CatchKeyword="CatchKeyword";v.CloseBrace="CloseBrace";v.CloseBracket="CloseBracket";v.CloseParen="CloseParen";v.Colon="Colon";v.ColonEqual="ColonEqual";v.Comma="Comma";v.ConstantKeyword="ConstantKeyword";v.ConstructorKeyword="ConstructorKeyword";v.ContinueKeyword="ContinueKeyword";v.ContractKeyword="ContractKeyword";v.CopyOfKeyword="CopyOfKeyword";v.DaysKeyword="DaysKeyword";v.DecimalLiteral="DecimalLiteral";v.DefaultKeyword="DefaultKeyword";v.DefineKeyword="DefineKeyword";v.DeleteKeyword="DeleteKeyword";v.DoKeyword="DoKeyword";v.DoubleQuotedHexStringLiteral="DoubleQuotedHexStringLiteral";v.DoubleQuotedStringLiteral="DoubleQuotedStringLiteral";v.DoubleQuotedUnicodeStringLiteral="DoubleQuotedUnicodeStringLiteral";v.DoubleQuotedVersionLiteral="DoubleQuotedVersionLiteral";v.ElseKeyword="ElseKeyword";v.EmitKeyword="EmitKeyword";v.EndOfLine="EndOfLine";v.EnumKeyword="EnumKeyword";v.Equal="Equal";v.EqualColon="EqualColon";v.EqualEqual="EqualEqual";v.EqualGreaterThan="EqualGreaterThan";v.ErrorKeyword="ErrorKeyword";v.EtherKeyword="EtherKeyword";v.EventKeyword="EventKeyword";v.ExperimentalKeyword="ExperimentalKeyword";v.ExternalKeyword="ExternalKeyword";v.FallbackKeyword="FallbackKeyword";v.FalseKeyword="FalseKeyword";v.FinalKeyword="FinalKeyword";v.FinneyKeyword="FinneyKeyword";v.FixedKeyword="FixedKeyword";v.ForKeyword="ForKeyword";v.FromKeyword="FromKeyword";v.FunctionKeyword="FunctionKeyword";v.GlobalKeyword="GlobalKeyword";v.GreaterThan="GreaterThan";v.GreaterThanEqual="GreaterThanEqual";v.GreaterThanGreaterThan="GreaterThanGreaterThan";v.GreaterThanGreaterThanEqual="GreaterThanGreaterThanEqual";v.GreaterThanGreaterThanGreaterThan="GreaterThanGreaterThanGreaterThan";v.GreaterThanGreaterThanGreaterThanEqual="GreaterThanGreaterThanGreaterThanEqual";v.GweiKeyword="GweiKeyword";v.HexKeyword="HexKeyword";v.HexLiteral="HexLiteral";v.HoursKeyword="HoursKeyword";v.Identifier="Identifier";v.IfKeyword="IfKeyword";v.ImmutableKeyword="ImmutableKeyword";v.ImplementsKeyword="ImplementsKeyword";v.ImportKeyword="ImportKeyword";v.InKeyword="InKeyword";v.IndexedKeyword="IndexedKeyword";v.InlineKeyword="InlineKeyword";v.IntKeyword="IntKeyword";v.InterfaceKeyword="InterfaceKeyword";v.InternalKeyword="InternalKeyword";v.IsKeyword="IsKeyword";v.LayoutKeyword="LayoutKeyword";v.LessThan="LessThan";v.LessThanEqual="LessThanEqual";v.LessThanLessThan="LessThanLessThan";v.LessThanLessThanEqual="LessThanLessThanEqual";v.LetKeyword="LetKeyword";v.LibraryKeyword="LibraryKeyword";v.MacroKeyword="MacroKeyword";v.MappingKeyword="MappingKeyword";v.MatchKeyword="MatchKeyword";v.MemoryKeyword="MemoryKeyword";v.Minus="Minus";v.MinusEqual="MinusEqual";v.MinusGreaterThan="MinusGreaterThan";v.MinusMinus="MinusMinus";v.MinutesKeyword="MinutesKeyword";v.ModifierKeyword="ModifierKeyword";v.MultiLineComment="MultiLineComment";v.MultiLineNatSpecComment="MultiLineNatSpecComment";v.MutableKeyword="MutableKeyword";v.NewKeyword="NewKeyword";v.NullKeyword="NullKeyword";v.OfKeyword="OfKeyword";v.OpenBrace="OpenBrace";v.OpenBracket="OpenBracket";v.OpenParen="OpenParen";v.OverrideKeyword="OverrideKeyword";v.PartialKeyword="PartialKeyword";v.PayableKeyword="PayableKeyword";v.Percent="Percent";v.PercentEqual="PercentEqual";v.Period="Period";v.Plus="Plus";v.PlusEqual="PlusEqual";v.PlusPlus="PlusPlus";v.PragmaKeyword="PragmaKeyword";v.PrivateKeyword="PrivateKeyword";v.PromiseKeyword="PromiseKeyword";v.PublicKeyword="PublicKeyword";v.PureKeyword="PureKeyword";v.QuestionMark="QuestionMark";v.ReceiveKeyword="ReceiveKeyword";v.ReferenceKeyword="ReferenceKeyword";v.RelocatableKeyword="RelocatableKeyword";v.ReturnKeyword="ReturnKeyword";v.ReturnsKeyword="ReturnsKeyword";v.RevertKeyword="RevertKeyword";v.SMTCheckerKeyword="SMTCheckerKeyword";v.SealedKeyword="SealedKeyword";v.SecondsKeyword="SecondsKeyword";v.Semicolon="Semicolon";v.SingleLineComment="SingleLineComment";v.SingleLineNatSpecComment="SingleLineNatSpecComment";v.SingleQuotedHexStringLiteral="SingleQuotedHexStringLiteral";v.SingleQuotedStringLiteral="SingleQuotedStringLiteral";v.SingleQuotedUnicodeStringLiteral="SingleQuotedUnicodeStringLiteral";v.SingleQuotedVersionLiteral="SingleQuotedVersionLiteral";v.SizeOfKeyword="SizeOfKeyword";v.Slash="Slash";v.SlashEqual="SlashEqual";v.SolidityKeyword="SolidityKeyword";v.StaticKeyword="StaticKeyword";v.StorageKeyword="StorageKeyword";v.StringKeyword="StringKeyword";v.StructKeyword="StructKeyword";v.SuperKeyword="SuperKeyword";v.SupportsKeyword="SupportsKeyword";v.SwitchKeyword="SwitchKeyword";v.SzaboKeyword="SzaboKeyword";v.ThisKeyword="ThisKeyword";v.ThrowKeyword="ThrowKeyword";v.Tilde="Tilde";v.TransientKeyword="TransientKeyword";v.TrueKeyword="TrueKeyword";v.TryKeyword="TryKeyword";v.TypeDefKeyword="TypeDefKeyword";v.TypeKeyword="TypeKeyword";v.TypeOfKeyword="TypeOfKeyword";v.UfixedKeyword="UfixedKeyword";v.UintKeyword="UintKeyword";v.UncheckedKeyword="UncheckedKeyword";v.UsingKeyword="UsingKeyword";v.VarKeyword="VarKeyword";v.VersionSpecifier="VersionSpecifier";v.ViewKeyword="ViewKeyword";v.VirtualKeyword="VirtualKeyword";v.WeeksKeyword="WeeksKeyword";v.WeiKeyword="WeiKeyword";v.WhileKeyword="WhileKeyword";v.Whitespace="Whitespace";v.YearsKeyword="YearsKeyword";v.YulAbstractKeyword="YulAbstractKeyword";v.YulAfterKeyword="YulAfterKeyword";v.YulAliasKeyword="YulAliasKeyword";v.YulAnonymousKeyword="YulAnonymousKeyword";v.YulApplyKeyword="YulApplyKeyword";v.YulAsKeyword="YulAsKeyword";v.YulAssemblyKeyword="YulAssemblyKeyword";v.YulAutoKeyword="YulAutoKeyword";v.YulBoolKeyword="YulBoolKeyword";v.YulBreakKeyword="YulBreakKeyword";v.YulBytesKeyword="YulBytesKeyword";v.YulCallDataKeyword="YulCallDataKeyword";v.YulCaseKeyword="YulCaseKeyword";v.YulCatchKeyword="YulCatchKeyword";v.YulConstantKeyword="YulConstantKeyword";v.YulConstructorKeyword="YulConstructorKeyword";v.YulContinueKeyword="YulContinueKeyword";v.YulContractKeyword="YulContractKeyword";v.YulCopyOfKeyword="YulCopyOfKeyword";v.YulDaysKeyword="YulDaysKeyword";v.YulDecimalLiteral="YulDecimalLiteral";v.YulDefaultKeyword="YulDefaultKeyword";v.YulDefineKeyword="YulDefineKeyword";v.YulDeleteKeyword="YulDeleteKeyword";v.YulDoKeyword="YulDoKeyword";v.YulElseKeyword="YulElseKeyword";v.YulEmitKeyword="YulEmitKeyword";v.YulEnumKeyword="YulEnumKeyword";v.YulEtherKeyword="YulEtherKeyword";v.YulEventKeyword="YulEventKeyword";v.YulExternalKeyword="YulExternalKeyword";v.YulFallbackKeyword="YulFallbackKeyword";v.YulFalseKeyword="YulFalseKeyword";v.YulFinalKeyword="YulFinalKeyword";v.YulFinneyKeyword="YulFinneyKeyword";v.YulFixedKeyword="YulFixedKeyword";v.YulForKeyword="YulForKeyword";v.YulFunctionKeyword="YulFunctionKeyword";v.YulGweiKeyword="YulGweiKeyword";v.YulHexKeyword="YulHexKeyword";v.YulHexLiteral="YulHexLiteral";v.YulHoursKeyword="YulHoursKeyword";v.YulIdentifier="YulIdentifier";v.YulIfKeyword="YulIfKeyword";v.YulImmutableKeyword="YulImmutableKeyword";v.YulImplementsKeyword="YulImplementsKeyword";v.YulImportKeyword="YulImportKeyword";v.YulInKeyword="YulInKeyword";v.YulIndexedKeyword="YulIndexedKeyword";v.YulInlineKeyword="YulInlineKeyword";v.YulIntKeyword="YulIntKeyword";v.YulInterfaceKeyword="YulInterfaceKeyword";v.YulInternalKeyword="YulInternalKeyword";v.YulIsKeyword="YulIsKeyword";v.YulLeaveKeyword="YulLeaveKeyword";v.YulLetKeyword="YulLetKeyword";v.YulLibraryKeyword="YulLibraryKeyword";v.YulMacroKeyword="YulMacroKeyword";v.YulMappingKeyword="YulMappingKeyword";v.YulMatchKeyword="YulMatchKeyword";v.YulMemoryKeyword="YulMemoryKeyword";v.YulMinutesKeyword="YulMinutesKeyword";v.YulModifierKeyword="YulModifierKeyword";v.YulMutableKeyword="YulMutableKeyword";v.YulNewKeyword="YulNewKeyword";v.YulNullKeyword="YulNullKeyword";v.YulOfKeyword="YulOfKeyword";v.YulOverrideKeyword="YulOverrideKeyword";v.YulPartialKeyword="YulPartialKeyword";v.YulPayableKeyword="YulPayableKeyword";v.YulPragmaKeyword="YulPragmaKeyword";v.YulPrivateKeyword="YulPrivateKeyword";v.YulPromiseKeyword="YulPromiseKeyword";v.YulPublicKeyword="YulPublicKeyword";v.YulPureKeyword="YulPureKeyword";v.YulReceiveKeyword="YulReceiveKeyword";v.YulReferenceKeyword="YulReferenceKeyword";v.YulRelocatableKeyword="YulRelocatableKeyword";v.YulReturnsKeyword="YulReturnsKeyword";v.YulSealedKeyword="YulSealedKeyword";v.YulSecondsKeyword="YulSecondsKeyword";v.YulSizeOfKeyword="YulSizeOfKeyword";v.YulStaticKeyword="YulStaticKeyword";v.YulStorageKeyword="YulStorageKeyword";v.YulStringKeyword="YulStringKeyword";v.YulStructKeyword="YulStructKeyword";v.YulSuperKeyword="YulSuperKeyword";v.YulSupportsKeyword="YulSupportsKeyword";v.YulSwitchKeyword="YulSwitchKeyword";v.YulSzaboKeyword="YulSzaboKeyword";v.YulThisKeyword="YulThisKeyword";v.YulThrowKeyword="YulThrowKeyword";v.YulTrueKeyword="YulTrueKeyword";v.YulTryKeyword="YulTryKeyword";v.YulTypeDefKeyword="YulTypeDefKeyword";v.YulTypeKeyword="YulTypeKeyword";v.YulTypeOfKeyword="YulTypeOfKeyword";v.YulUfixedKeyword="YulUfixedKeyword";v.YulUintKeyword="YulUintKeyword";v.YulUncheckedKeyword="YulUncheckedKeyword";v.YulUsingKeyword="YulUsingKeyword";v.YulVarKeyword="YulVarKeyword";v.YulViewKeyword="YulViewKeyword";v.YulVirtualKeyword="YulVirtualKeyword";v.YulWeeksKeyword="YulWeeksKeyword";v.YulWeiKeyword="YulWeiKeyword";v.YulWhileKeyword="YulWhileKeyword";v.YulYearsKeyword="YulYearsKeyword";var f={};f[f.Unrecognized=0]="Unrecognized";f[f.Missing=1]="Missing";f[f.ABIEncoderV2Keyword=2]="ABIEncoderV2Keyword";f[f.AbicoderKeyword=3]="AbicoderKeyword";f[f.AbicoderV1Keyword=4]="AbicoderV1Keyword";f[f.AbicoderV2Keyword=5]="AbicoderV2Keyword";f[f.AbstractKeyword=6]="AbstractKeyword";f[f.AddressKeyword=7]="AddressKeyword";f[f.AfterKeyword=8]="AfterKeyword";f[f.AliasKeyword=9]="AliasKeyword";f[f.Ampersand=10]="Ampersand";f[f.AmpersandAmpersand=11]="AmpersandAmpersand";f[f.AmpersandEqual=12]="AmpersandEqual";f[f.AnonymousKeyword=13]="AnonymousKeyword";f[f.ApplyKeyword=14]="ApplyKeyword";f[f.AsKeyword=15]="AsKeyword";f[f.AssemblyKeyword=16]="AssemblyKeyword";f[f.Asterisk=17]="Asterisk";f[f.AsteriskAsterisk=18]="AsteriskAsterisk";f[f.AsteriskEqual=19]="AsteriskEqual";f[f.AtKeyword=20]="AtKeyword";f[f.AutoKeyword=21]="AutoKeyword";f[f.Bang=22]="Bang";f[f.BangEqual=23]="BangEqual";f[f.Bar=24]="Bar";f[f.BarBar=25]="BarBar";f[f.BarEqual=26]="BarEqual";f[f.BoolKeyword=27]="BoolKeyword";f[f.BreakKeyword=28]="BreakKeyword";f[f.ByteKeyword=29]="ByteKeyword";f[f.BytesKeyword=30]="BytesKeyword";f[f.CallDataKeyword=31]="CallDataKeyword";f[f.Caret=32]="Caret";f[f.CaretEqual=33]="CaretEqual";f[f.CaseKeyword=34]="CaseKeyword";f[f.CatchKeyword=35]="CatchKeyword";f[f.CloseBrace=36]="CloseBrace";f[f.CloseBracket=37]="CloseBracket";f[f.CloseParen=38]="CloseParen";f[f.Colon=39]="Colon";f[f.ColonEqual=40]="ColonEqual";f[f.Comma=41]="Comma";f[f.ConstantKeyword=42]="ConstantKeyword";f[f.ConstructorKeyword=43]="ConstructorKeyword";f[f.ContinueKeyword=44]="ContinueKeyword";f[f.ContractKeyword=45]="ContractKeyword";f[f.CopyOfKeyword=46]="CopyOfKeyword";f[f.DaysKeyword=47]="DaysKeyword";f[f.DecimalLiteral=48]="DecimalLiteral";f[f.DefaultKeyword=49]="DefaultKeyword";f[f.DefineKeyword=50]="DefineKeyword";f[f.DeleteKeyword=51]="DeleteKeyword";f[f.DoKeyword=52]="DoKeyword";f[f.DoubleQuotedHexStringLiteral=53]="DoubleQuotedHexStringLiteral";f[f.DoubleQuotedStringLiteral=54]="DoubleQuotedStringLiteral";f[f.DoubleQuotedUnicodeStringLiteral=55]="DoubleQuotedUnicodeStringLiteral";f[f.DoubleQuotedVersionLiteral=56]="DoubleQuotedVersionLiteral";f[f.ElseKeyword=57]="ElseKeyword";f[f.EmitKeyword=58]="EmitKeyword";f[f.EndOfLine=59]="EndOfLine";f[f.EnumKeyword=60]="EnumKeyword";f[f.Equal=61]="Equal";f[f.EqualColon=62]="EqualColon";f[f.EqualEqual=63]="EqualEqual";f[f.EqualGreaterThan=64]="EqualGreaterThan";f[f.ErrorKeyword=65]="ErrorKeyword";f[f.EtherKeyword=66]="EtherKeyword";f[f.EventKeyword=67]="EventKeyword";f[f.ExperimentalKeyword=68]="ExperimentalKeyword";f[f.ExternalKeyword=69]="ExternalKeyword";f[f.FallbackKeyword=70]="FallbackKeyword";f[f.FalseKeyword=71]="FalseKeyword";f[f.FinalKeyword=72]="FinalKeyword";f[f.FinneyKeyword=73]="FinneyKeyword";f[f.FixedKeyword=74]="FixedKeyword";f[f.ForKeyword=75]="ForKeyword";f[f.FromKeyword=76]="FromKeyword";f[f.FunctionKeyword=77]="FunctionKeyword";f[f.GlobalKeyword=78]="GlobalKeyword";f[f.GreaterThan=79]="GreaterThan";f[f.GreaterThanEqual=80]="GreaterThanEqual";f[f.GreaterThanGreaterThan=81]="GreaterThanGreaterThan";f[f.GreaterThanGreaterThanEqual=82]="GreaterThanGreaterThanEqual";f[f.GreaterThanGreaterThanGreaterThan=83]="GreaterThanGreaterThanGreaterThan";f[f.GreaterThanGreaterThanGreaterThanEqual=84]="GreaterThanGreaterThanGreaterThanEqual";f[f.GweiKeyword=85]="GweiKeyword";f[f.HexKeyword=86]="HexKeyword";f[f.HexLiteral=87]="HexLiteral";f[f.HoursKeyword=88]="HoursKeyword";f[f.Identifier=89]="Identifier";f[f.IfKeyword=90]="IfKeyword";f[f.ImmutableKeyword=91]="ImmutableKeyword";f[f.ImplementsKeyword=92]="ImplementsKeyword";f[f.ImportKeyword=93]="ImportKeyword";f[f.InKeyword=94]="InKeyword";f[f.IndexedKeyword=95]="IndexedKeyword";f[f.InlineKeyword=96]="InlineKeyword";f[f.IntKeyword=97]="IntKeyword";f[f.InterfaceKeyword=98]="InterfaceKeyword";f[f.InternalKeyword=99]="InternalKeyword";f[f.IsKeyword=100]="IsKeyword";f[f.LayoutKeyword=101]="LayoutKeyword";f[f.LessThan=102]="LessThan";f[f.LessThanEqual=103]="LessThanEqual";f[f.LessThanLessThan=104]="LessThanLessThan";f[f.LessThanLessThanEqual=105]="LessThanLessThanEqual";f[f.LetKeyword=106]="LetKeyword";f[f.LibraryKeyword=107]="LibraryKeyword";f[f.MacroKeyword=108]="MacroKeyword";f[f.MappingKeyword=109]="MappingKeyword";f[f.MatchKeyword=110]="MatchKeyword";f[f.MemoryKeyword=111]="MemoryKeyword";f[f.Minus=112]="Minus";f[f.MinusEqual=113]="MinusEqual";f[f.MinusGreaterThan=114]="MinusGreaterThan";f[f.MinusMinus=115]="MinusMinus";f[f.MinutesKeyword=116]="MinutesKeyword";f[f.ModifierKeyword=117]="ModifierKeyword";f[f.MultiLineComment=118]="MultiLineComment";f[f.MultiLineNatSpecComment=119]="MultiLineNatSpecComment";f[f.MutableKeyword=120]="MutableKeyword";f[f.NewKeyword=121]="NewKeyword";f[f.NullKeyword=122]="NullKeyword";f[f.OfKeyword=123]="OfKeyword";f[f.OpenBrace=124]="OpenBrace";f[f.OpenBracket=125]="OpenBracket";f[f.OpenParen=126]="OpenParen";f[f.OverrideKeyword=127]="OverrideKeyword";f[f.PartialKeyword=128]="PartialKeyword";f[f.PayableKeyword=129]="PayableKeyword";f[f.Percent=130]="Percent";f[f.PercentEqual=131]="PercentEqual";f[f.Period=132]="Period";f[f.Plus=133]="Plus";f[f.PlusEqual=134]="PlusEqual";f[f.PlusPlus=135]="PlusPlus";f[f.PragmaKeyword=136]="PragmaKeyword";f[f.PrivateKeyword=137]="PrivateKeyword";f[f.PromiseKeyword=138]="PromiseKeyword";f[f.PublicKeyword=139]="PublicKeyword";f[f.PureKeyword=140]="PureKeyword";f[f.QuestionMark=141]="QuestionMark";f[f.ReceiveKeyword=142]="ReceiveKeyword";f[f.ReferenceKeyword=143]="ReferenceKeyword";f[f.RelocatableKeyword=144]="RelocatableKeyword";f[f.ReturnKeyword=145]="ReturnKeyword";f[f.ReturnsKeyword=146]="ReturnsKeyword";f[f.RevertKeyword=147]="RevertKeyword";f[f.SMTCheckerKeyword=148]="SMTCheckerKeyword";f[f.SealedKeyword=149]="SealedKeyword";f[f.SecondsKeyword=150]="SecondsKeyword";f[f.Semicolon=151]="Semicolon";f[f.SingleLineComment=152]="SingleLineComment";f[f.SingleLineNatSpecComment=153]="SingleLineNatSpecComment";f[f.SingleQuotedHexStringLiteral=154]="SingleQuotedHexStringLiteral";f[f.SingleQuotedStringLiteral=155]="SingleQuotedStringLiteral";f[f.SingleQuotedUnicodeStringLiteral=156]="SingleQuotedUnicodeStringLiteral";f[f.SingleQuotedVersionLiteral=157]="SingleQuotedVersionLiteral";f[f.SizeOfKeyword=158]="SizeOfKeyword";f[f.Slash=159]="Slash";f[f.SlashEqual=160]="SlashEqual";f[f.SolidityKeyword=161]="SolidityKeyword";f[f.StaticKeyword=162]="StaticKeyword";f[f.StorageKeyword=163]="StorageKeyword";f[f.StringKeyword=164]="StringKeyword";f[f.StructKeyword=165]="StructKeyword";f[f.SuperKeyword=166]="SuperKeyword";f[f.SupportsKeyword=167]="SupportsKeyword";f[f.SwitchKeyword=168]="SwitchKeyword";f[f.SzaboKeyword=169]="SzaboKeyword";f[f.ThisKeyword=170]="ThisKeyword";f[f.ThrowKeyword=171]="ThrowKeyword";f[f.Tilde=172]="Tilde";f[f.TransientKeyword=173]="TransientKeyword";f[f.TrueKeyword=174]="TrueKeyword";f[f.TryKeyword=175]="TryKeyword";f[f.TypeDefKeyword=176]="TypeDefKeyword";f[f.TypeKeyword=177]="TypeKeyword";f[f.TypeOfKeyword=178]="TypeOfKeyword";f[f.UfixedKeyword=179]="UfixedKeyword";f[f.UintKeyword=180]="UintKeyword";f[f.UncheckedKeyword=181]="UncheckedKeyword";f[f.UsingKeyword=182]="UsingKeyword";f[f.VarKeyword=183]="VarKeyword";f[f.VersionSpecifier=184]="VersionSpecifier";f[f.ViewKeyword=185]="ViewKeyword";f[f.VirtualKeyword=186]="VirtualKeyword";f[f.WeeksKeyword=187]="WeeksKeyword";f[f.WeiKeyword=188]="WeiKeyword";f[f.WhileKeyword=189]="WhileKeyword";f[f.Whitespace=190]="Whitespace";f[f.YearsKeyword=191]="YearsKeyword";f[f.YulAbstractKeyword=192]="YulAbstractKeyword";f[f.YulAfterKeyword=193]="YulAfterKeyword";f[f.YulAliasKeyword=194]="YulAliasKeyword";f[f.YulAnonymousKeyword=195]="YulAnonymousKeyword";f[f.YulApplyKeyword=196]="YulApplyKeyword";f[f.YulAsKeyword=197]="YulAsKeyword";f[f.YulAssemblyKeyword=198]="YulAssemblyKeyword";f[f.YulAutoKeyword=199]="YulAutoKeyword";f[f.YulBoolKeyword=200]="YulBoolKeyword";f[f.YulBreakKeyword=201]="YulBreakKeyword";f[f.YulBytesKeyword=202]="YulBytesKeyword";f[f.YulCallDataKeyword=203]="YulCallDataKeyword";f[f.YulCaseKeyword=204]="YulCaseKeyword";f[f.YulCatchKeyword=205]="YulCatchKeyword";f[f.YulConstantKeyword=206]="YulConstantKeyword";f[f.YulConstructorKeyword=207]="YulConstructorKeyword";f[f.YulContinueKeyword=208]="YulContinueKeyword";f[f.YulContractKeyword=209]="YulContractKeyword";f[f.YulCopyOfKeyword=210]="YulCopyOfKeyword";f[f.YulDaysKeyword=211]="YulDaysKeyword";f[f.YulDecimalLiteral=212]="YulDecimalLiteral";f[f.YulDefaultKeyword=213]="YulDefaultKeyword";f[f.YulDefineKeyword=214]="YulDefineKeyword";f[f.YulDeleteKeyword=215]="YulDeleteKeyword";f[f.YulDoKeyword=216]="YulDoKeyword";f[f.YulElseKeyword=217]="YulElseKeyword";f[f.YulEmitKeyword=218]="YulEmitKeyword";f[f.YulEnumKeyword=219]="YulEnumKeyword";f[f.YulEtherKeyword=220]="YulEtherKeyword";f[f.YulEventKeyword=221]="YulEventKeyword";f[f.YulExternalKeyword=222]="YulExternalKeyword";f[f.YulFallbackKeyword=223]="YulFallbackKeyword";f[f.YulFalseKeyword=224]="YulFalseKeyword";f[f.YulFinalKeyword=225]="YulFinalKeyword";f[f.YulFinneyKeyword=226]="YulFinneyKeyword";f[f.YulFixedKeyword=227]="YulFixedKeyword";f[f.YulForKeyword=228]="YulForKeyword";f[f.YulFunctionKeyword=229]="YulFunctionKeyword";f[f.YulGweiKeyword=230]="YulGweiKeyword";f[f.YulHexKeyword=231]="YulHexKeyword";f[f.YulHexLiteral=232]="YulHexLiteral";f[f.YulHoursKeyword=233]="YulHoursKeyword";f[f.YulIdentifier=234]="YulIdentifier";f[f.YulIfKeyword=235]="YulIfKeyword";f[f.YulImmutableKeyword=236]="YulImmutableKeyword";f[f.YulImplementsKeyword=237]="YulImplementsKeyword";f[f.YulImportKeyword=238]="YulImportKeyword";f[f.YulInKeyword=239]="YulInKeyword";f[f.YulIndexedKeyword=240]="YulIndexedKeyword";f[f.YulInlineKeyword=241]="YulInlineKeyword";f[f.YulIntKeyword=242]="YulIntKeyword";f[f.YulInterfaceKeyword=243]="YulInterfaceKeyword";f[f.YulInternalKeyword=244]="YulInternalKeyword";f[f.YulIsKeyword=245]="YulIsKeyword";f[f.YulLeaveKeyword=246]="YulLeaveKeyword";f[f.YulLetKeyword=247]="YulLetKeyword";f[f.YulLibraryKeyword=248]="YulLibraryKeyword";f[f.YulMacroKeyword=249]="YulMacroKeyword";f[f.YulMappingKeyword=250]="YulMappingKeyword";f[f.YulMatchKeyword=251]="YulMatchKeyword";f[f.YulMemoryKeyword=252]="YulMemoryKeyword";f[f.YulMinutesKeyword=253]="YulMinutesKeyword";f[f.YulModifierKeyword=254]="YulModifierKeyword";f[f.YulMutableKeyword=255]="YulMutableKeyword";f[f.YulNewKeyword=256]="YulNewKeyword";f[f.YulNullKeyword=257]="YulNullKeyword";f[f.YulOfKeyword=258]="YulOfKeyword";f[f.YulOverrideKeyword=259]="YulOverrideKeyword";f[f.YulPartialKeyword=260]="YulPartialKeyword";f[f.YulPayableKeyword=261]="YulPayableKeyword";f[f.YulPragmaKeyword=262]="YulPragmaKeyword";f[f.YulPrivateKeyword=263]="YulPrivateKeyword";f[f.YulPromiseKeyword=264]="YulPromiseKeyword";f[f.YulPublicKeyword=265]="YulPublicKeyword";f[f.YulPureKeyword=266]="YulPureKeyword";f[f.YulReceiveKeyword=267]="YulReceiveKeyword";f[f.YulReferenceKeyword=268]="YulReferenceKeyword";f[f.YulRelocatableKeyword=269]="YulRelocatableKeyword";f[f.YulReturnsKeyword=270]="YulReturnsKeyword";f[f.YulSealedKeyword=271]="YulSealedKeyword";f[f.YulSecondsKeyword=272]="YulSecondsKeyword";f[f.YulSizeOfKeyword=273]="YulSizeOfKeyword";f[f.YulStaticKeyword=274]="YulStaticKeyword";f[f.YulStorageKeyword=275]="YulStorageKeyword";f[f.YulStringKeyword=276]="YulStringKeyword";f[f.YulStructKeyword=277]="YulStructKeyword";f[f.YulSuperKeyword=278]="YulSuperKeyword";f[f.YulSupportsKeyword=279]="YulSupportsKeyword";f[f.YulSwitchKeyword=280]="YulSwitchKeyword";f[f.YulSzaboKeyword=281]="YulSzaboKeyword";f[f.YulThisKeyword=282]="YulThisKeyword";f[f.YulThrowKeyword=283]="YulThrowKeyword";f[f.YulTrueKeyword=284]="YulTrueKeyword";f[f.YulTryKeyword=285]="YulTryKeyword";f[f.YulTypeDefKeyword=286]="YulTypeDefKeyword";f[f.YulTypeKeyword=287]="YulTypeKeyword";f[f.YulTypeOfKeyword=288]="YulTypeOfKeyword";f[f.YulUfixedKeyword=289]="YulUfixedKeyword";f[f.YulUintKeyword=290]="YulUintKeyword";f[f.YulUncheckedKeyword=291]="YulUncheckedKeyword";f[f.YulUsingKeyword=292]="YulUsingKeyword";f[f.YulVarKeyword=293]="YulVarKeyword";f[f.YulViewKeyword=294]="YulViewKeyword";f[f.YulVirtualKeyword=295]="YulVirtualKeyword";f[f.YulWeeksKeyword=296]="YulWeeksKeyword";f[f.YulWeiKeyword=297]="YulWeiKeyword";f[f.YulWhileKeyword=298]="YulWhileKeyword";f[f.YulYearsKeyword=299]="YulYearsKeyword";var z={};z.Root="Root";z.Unrecognized="Unrecognized";z.Missing="Missing";z.Item="Item";z.Variant="Variant";z.Separator="Separator";z.Operand="Operand";z.LeftOperand="LeftOperand";z.RightOperand="RightOperand";z.LeadingTrivia="LeadingTrivia";z.TrailingTrivia="TrailingTrivia";z.AbicoderKeyword="AbicoderKeyword";z.AbstractKeyword="AbstractKeyword";z.AddressKeyword="AddressKeyword";z.Alias="Alias";z.AnonymousKeyword="AnonymousKeyword";z.Arguments="Arguments";z.AsKeyword="AsKeyword";z.AssemblyKeyword="AssemblyKeyword";z.Assignment="Assignment";z.Asterisk="Asterisk";z.AtKeyword="AtKeyword";z.Attributes="Attributes";z.Block="Block";z.Body="Body";z.BreakKeyword="BreakKeyword";z.CaseKeyword="CaseKeyword";z.Cases="Cases";z.CatchClauses="CatchClauses";z.CatchKeyword="CatchKeyword";z.Clause="Clause";z.CloseBrace="CloseBrace";z.CloseBracket="CloseBracket";z.CloseParen="CloseParen";z.Colon="Colon";z.Condition="Condition";z.ConstantKeyword="ConstantKeyword";z.ConstructorKeyword="ConstructorKeyword";z.ContinueKeyword="ContinueKeyword";z.ContractKeyword="ContractKeyword";z.DefaultKeyword="DefaultKeyword";z.DoKeyword="DoKeyword";z.Elements="Elements";z.ElseBranch="ElseBranch";z.ElseKeyword="ElseKeyword";z.EmitKeyword="EmitKeyword";z.End="End";z.EnumKeyword="EnumKeyword";z.Equal="Equal";z.EqualGreaterThan="EqualGreaterThan";z.Error="Error";z.ErrorKeyword="ErrorKeyword";z.Event="Event";z.EventKeyword="EventKeyword";z.ExperimentalKeyword="ExperimentalKeyword";z.Expression="Expression";z.FallbackKeyword="FallbackKeyword";z.FalseExpression="FalseExpression";z.Feature="Feature";z.Flags="Flags";z.ForKeyword="ForKeyword";z.FromKeyword="FromKeyword";z.FunctionKeyword="FunctionKeyword";z.GlobalKeyword="GlobalKeyword";z.Identifier="Identifier";z.IfKeyword="IfKeyword";z.ImportKeyword="ImportKeyword";z.Index="Index";z.IndexedKeyword="IndexedKeyword";z.Inheritance="Inheritance";z.Initialization="Initialization";z.InterfaceKeyword="InterfaceKeyword";z.IsKeyword="IsKeyword";z.Items="Items";z.Iterator="Iterator";z.KeyType="KeyType";z.Label="Label";z.LayoutKeyword="LayoutKeyword";z.LeaveKeyword="LeaveKeyword";z.LetKeyword="LetKeyword";z.LibraryKeyword="LibraryKeyword";z.Literal="Literal";z.MappingKeyword="MappingKeyword";z.Member="Member";z.Members="Members";z.Minus="Minus";z.MinusGreaterThan="MinusGreaterThan";z.ModifierKeyword="ModifierKeyword";z.Name="Name";z.NewKeyword="NewKeyword";z.OpenBrace="OpenBrace";z.OpenBracket="OpenBracket";z.OpenParen="OpenParen";z.Operator="Operator";z.Options="Options";z.Overridden="Overridden";z.OverrideKeyword="OverrideKeyword";z.Parameters="Parameters";z.Path="Path";z.Paths="Paths";z.PayableKeyword="PayableKeyword";z.Period="Period";z.Pragma="Pragma";z.PragmaKeyword="PragmaKeyword";z.QuestionMark="QuestionMark";z.ReceiveKeyword="ReceiveKeyword";z.ReturnKeyword="ReturnKeyword";z.Returns="Returns";z.ReturnsKeyword="ReturnsKeyword";z.RevertKeyword="RevertKeyword";z.Semicolon="Semicolon";z.Sets="Sets";z.SolidityKeyword="SolidityKeyword";z.Specifiers="Specifiers";z.Start="Start";z.Statements="Statements";z.StorageLocation="StorageLocation";z.StructKeyword="StructKeyword";z.SwitchKeyword="SwitchKeyword";z.Symbols="Symbols";z.Target="Target";z.ThrowKeyword="ThrowKeyword";z.TrueExpression="TrueExpression";z.TryKeyword="TryKeyword";z.TypeKeyword="TypeKeyword";z.TypeName="TypeName";z.Types="Types";z.UncheckedKeyword="UncheckedKeyword";z.Unit="Unit";z.UsingKeyword="UsingKeyword";z.Value="Value";z.ValueType="ValueType";z.VarKeyword="VarKeyword";z.Variable="Variable";z.VariableType="VariableType";z.Variables="Variables";z.Version="Version";z.WhileKeyword="WhileKeyword";var A={};A[A.Root=0]="Root";A[A.Unrecognized=1]="Unrecognized";A[A.Missing=2]="Missing";A[A.Item=3]="Item";A[A.Variant=4]="Variant";A[A.Separator=5]="Separator";A[A.Operand=6]="Operand";A[A.LeftOperand=7]="LeftOperand";A[A.RightOperand=8]="RightOperand";A[A.LeadingTrivia=9]="LeadingTrivia";A[A.TrailingTrivia=10]="TrailingTrivia";A[A.AbicoderKeyword=11]="AbicoderKeyword";A[A.AbstractKeyword=12]="AbstractKeyword";A[A.AddressKeyword=13]="AddressKeyword";A[A.Alias=14]="Alias";A[A.AnonymousKeyword=15]="AnonymousKeyword";A[A.Arguments=16]="Arguments";A[A.AsKeyword=17]="AsKeyword";A[A.AssemblyKeyword=18]="AssemblyKeyword";A[A.Assignment=19]="Assignment";A[A.Asterisk=20]="Asterisk";A[A.AtKeyword=21]="AtKeyword";A[A.Attributes=22]="Attributes";A[A.Block=23]="Block";A[A.Body=24]="Body";A[A.BreakKeyword=25]="BreakKeyword";A[A.CaseKeyword=26]="CaseKeyword";A[A.Cases=27]="Cases";A[A.CatchClauses=28]="CatchClauses";A[A.CatchKeyword=29]="CatchKeyword";A[A.Clause=30]="Clause";A[A.CloseBrace=31]="CloseBrace";A[A.CloseBracket=32]="CloseBracket";A[A.CloseParen=33]="CloseParen";A[A.Colon=34]="Colon";A[A.Condition=35]="Condition";A[A.ConstantKeyword=36]="ConstantKeyword";A[A.ConstructorKeyword=37]="ConstructorKeyword";A[A.ContinueKeyword=38]="ContinueKeyword";A[A.ContractKeyword=39]="ContractKeyword";A[A.DefaultKeyword=40]="DefaultKeyword";A[A.DoKeyword=41]="DoKeyword";A[A.Elements=42]="Elements";A[A.ElseBranch=43]="ElseBranch";A[A.ElseKeyword=44]="ElseKeyword";A[A.EmitKeyword=45]="EmitKeyword";A[A.End=46]="End";A[A.EnumKeyword=47]="EnumKeyword";A[A.Equal=48]="Equal";A[A.EqualGreaterThan=49]="EqualGreaterThan";A[A.Error=50]="Error";A[A.ErrorKeyword=51]="ErrorKeyword";A[A.Event=52]="Event";A[A.EventKeyword=53]="EventKeyword";A[A.ExperimentalKeyword=54]="ExperimentalKeyword";A[A.Expression=55]="Expression";A[A.FallbackKeyword=56]="FallbackKeyword";A[A.FalseExpression=57]="FalseExpression";A[A.Feature=58]="Feature";A[A.Flags=59]="Flags";A[A.ForKeyword=60]="ForKeyword";A[A.FromKeyword=61]="FromKeyword";A[A.FunctionKeyword=62]="FunctionKeyword";A[A.GlobalKeyword=63]="GlobalKeyword";A[A.Identifier=64]="Identifier";A[A.IfKeyword=65]="IfKeyword";A[A.ImportKeyword=66]="ImportKeyword";A[A.Index=67]="Index";A[A.IndexedKeyword=68]="IndexedKeyword";A[A.Inheritance=69]="Inheritance";A[A.Initialization=70]="Initialization";A[A.InterfaceKeyword=71]="InterfaceKeyword";A[A.IsKeyword=72]="IsKeyword";A[A.Items=73]="Items";A[A.Iterator=74]="Iterator";A[A.KeyType=75]="KeyType";A[A.Label=76]="Label";A[A.LayoutKeyword=77]="LayoutKeyword";A[A.LeaveKeyword=78]="LeaveKeyword";A[A.LetKeyword=79]="LetKeyword";A[A.LibraryKeyword=80]="LibraryKeyword";A[A.Literal=81]="Literal";A[A.MappingKeyword=82]="MappingKeyword";A[A.Member=83]="Member";A[A.Members=84]="Members";A[A.Minus=85]="Minus";A[A.MinusGreaterThan=86]="MinusGreaterThan";A[A.ModifierKeyword=87]="ModifierKeyword";A[A.Name=88]="Name";A[A.NewKeyword=89]="NewKeyword";A[A.OpenBrace=90]="OpenBrace";A[A.OpenBracket=91]="OpenBracket";A[A.OpenParen=92]="OpenParen";A[A.Operator=93]="Operator";A[A.Options=94]="Options";A[A.Overridden=95]="Overridden";A[A.OverrideKeyword=96]="OverrideKeyword";A[A.Parameters=97]="Parameters";A[A.Path=98]="Path";A[A.Paths=99]="Paths";A[A.PayableKeyword=100]="PayableKeyword";A[A.Period=101]="Period";A[A.Pragma=102]="Pragma";A[A.PragmaKeyword=103]="PragmaKeyword";A[A.QuestionMark=104]="QuestionMark";A[A.ReceiveKeyword=105]="ReceiveKeyword";A[A.ReturnKeyword=106]="ReturnKeyword";A[A.Returns=107]="Returns";A[A.ReturnsKeyword=108]="ReturnsKeyword";A[A.RevertKeyword=109]="RevertKeyword";A[A.Semicolon=110]="Semicolon";A[A.Sets=111]="Sets";A[A.SolidityKeyword=112]="SolidityKeyword";A[A.Specifiers=113]="Specifiers";A[A.Start=114]="Start";A[A.Statements=115]="Statements";A[A.StorageLocation=116]="StorageLocation";A[A.StructKeyword=117]="StructKeyword";A[A.SwitchKeyword=118]="SwitchKeyword";A[A.Symbols=119]="Symbols";A[A.Target=120]="Target";A[A.ThrowKeyword=121]="ThrowKeyword";A[A.TrueExpression=122]="TrueExpression";A[A.TryKeyword=123]="TryKeyword";A[A.TypeKeyword=124]="TypeKeyword";A[A.TypeName=125]="TypeName";A[A.Types=126]="Types";A[A.UncheckedKeyword=127]="UncheckedKeyword";A[A.Unit=128]="Unit";A[A.UsingKeyword=129]="UsingKeyword";A[A.Value=130]="Value";A[A.ValueType=131]="ValueType";A[A.VarKeyword=132]="VarKeyword";A[A.Variable=133]="Variable";A[A.VariableType=134]="VariableType";A[A.Variables=135]="Variables";A[A.Version=136]="Version";A[A.WhileKeyword=137]="WhileKeyword";var Fo={};Fo.NonterminalNode="NonterminalNode";Object.defineProperty(Be.prototype,"type",{get:function(){return Fo.NonterminalNode}});Be.prototype.asNonterminalNode=function(){return this};Be.prototype.isNonterminalNode=function(){return!0};Be.prototype.asTerminalNode=function(){};Be.prototype.isTerminalNode=function(){return!1};Fo.TerminalNode="TerminalNode";Object.defineProperty(Ge.prototype,"type",{get:function(){return Fo.TerminalNode}});Ge.prototype.asTerminalNode=function(){return this};Ge.prototype.isTerminalNode=function(){return!0};Ge.prototype.asNonterminalNode=function(){};Ge.prototype.isNonterminalNode=function(){return!1};var qD,Xn=class{constructor(){throw new Error('"Selectors" resource does not define a constructor')}};Xn.sequence=function(e){var t=e[I];if(!t||(Te[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var n=Te[(t<<1)+1]&~_;let o=qD(n),u;if(R(F).getUint8(o+0,!0)){var d=R(F).getInt32(o+4,!0),y=R(F).getInt32(o+8,!0),x=lt.decode(new Uint8Array(F.buffer,d,y));u={tag:"err",val:x}}else{var E=R(F).getInt32(o+8,!0),T=R(F).getInt32(o+4,!0),N=[];for(let te=0;te<E;te++){let Ee=T+te*12,Ne;if(R(F).getUint8(Ee+0,!0)){let Oe;switch(R(F).getUint8(Ee+4,!0)){case 0:{var P=R(F).getInt32(Ee+8,!0),$=new.target===Be?this:Object.create(Be.prototype);Object.defineProperty($,I,{writable:!0,value:P}),mt.register($,P,$),Object.defineProperty($,J,{writable:!0,value:function(){mt.unregister($),oe(Te,P),$[J]=De,$[I]=void 0,re[22](Te[(P<<1)+1]&~_)}}),Oe=$;break}case 1:{var V=R(F).getInt32(Ee+8,!0),Z=new.target===Ge?this:Object.create(Ge.prototype);Object.defineProperty(Z,I,{writable:!0,value:V}),er.register(Z,V,Z),Object.defineProperty(Z,J,{writable:!0,value:function(){er.unregister(Z),oe(qe,V),Z[J]=De,Z[I]=void 0,re[26](qe[(V<<1)+1]&~_)}}),Oe=Z;break}}Ne=Oe}else Ne=void 0;N.push(Ne)}u={tag:"ok",val:N}}let Q=u;if(Ox(o),typeof Q=="object"&&Q.tag==="err")throw Q.val;return Q.val};var jD;Xn.choice=function(e){var t=e[I];if(!t||(Te[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var n=Te[(t<<1)+1]&~_;let o=jD(n),u;if(R(F).getUint8(o+0,!0)){var d=R(F).getInt32(o+4,!0),y=R(F).getInt32(o+8,!0),x=lt.decode(new Uint8Array(F.buffer,d,y));u={tag:"err",val:x}}else{let V;switch(R(F).getUint8(o+4,!0)){case 0:{var E=R(F).getInt32(o+8,!0),T=new.target===Be?this:Object.create(Be.prototype);Object.defineProperty(T,I,{writable:!0,value:E}),mt.register(T,E,T),Object.defineProperty(T,J,{writable:!0,value:function(){mt.unregister(T),oe(Te,E),T[J]=De,T[I]=void 0,re[22](Te[(E<<1)+1]&~_)}}),V=T;break}case 1:{var N=R(F).getInt32(o+8,!0),P=new.target===Ge?this:Object.create(Ge.prototype);Object.defineProperty(P,I,{writable:!0,value:N}),er.register(P,N,P),Object.defineProperty(P,J,{writable:!0,value:function(){er.unregister(P),oe(qe,N),P[J]=De,P[I]=void 0,re[26](qe[(N<<1)+1]&~_)}}),V=P;break}}u={tag:"ok",val:V}}let $=u;if(As(o),typeof $=="object"&&$.tag==="err")throw $.val;return $.val};var GD;Xn.repeated=function(e){var t=e[I];if(!t||(Te[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var n=Te[(t<<1)+1]&~_;let o=GD(n),u;if(R(F).getUint8(o+0,!0)){var d=R(F).getInt32(o+4,!0),y=R(F).getInt32(o+8,!0),x=lt.decode(new Uint8Array(F.buffer,d,y));u={tag:"err",val:x}}else{var E=R(F).getInt32(o+8,!0),T=R(F).getInt32(o+4,!0),N=[];for(let te=0;te<E;te++){let Ee=T+te*8,Ne;switch(R(F).getUint8(Ee+0,!0)){case 0:{var P=R(F).getInt32(Ee+4,!0),$=new.target===Be?this:Object.create(Be.prototype);Object.defineProperty($,I,{writable:!0,value:P}),mt.register($,P,$),Object.defineProperty($,J,{writable:!0,value:function(){mt.unregister($),oe(Te,P),$[J]=De,$[I]=void 0,re[22](Te[(P<<1)+1]&~_)}}),Ne=$;break}case 1:{var V=R(F).getInt32(Ee+4,!0),Z=new.target===Ge?this:Object.create(Ge.prototype);Object.defineProperty(Z,I,{writable:!0,value:V}),er.register(Z,V,Z),Object.defineProperty(Z,J,{writable:!0,value:function(){er.unregister(Z),oe(qe,V),Z[J]=De,Z[I]=void 0,re[26](qe[(V<<1)+1]&~_)}}),Ne=Z;break}}N.push(Ne)}u={tag:"ok",val:N}}let Q=u;if(Mx(o),typeof Q=="object"&&Q.tag==="err")throw Q.val;return Q.val};var WD;Xn.separated=function(e){var t=e[I];if(!t||(Te[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "NonterminalNode" resource.');var n=Te[(t<<1)+1]&~_;let o=WD(n),u;if(R(F).getUint8(o+0,!0)){var d=R(F).getInt32(o+4,!0),y=R(F).getInt32(o+8,!0),x=lt.decode(new Uint8Array(F.buffer,d,y));u={tag:"err",val:x}}else{var E=R(F).getInt32(o+8,!0),T=R(F).getInt32(o+4,!0),N=[];for(let Oe=0;Oe<E;Oe++){let st=T+Oe*8;var P=R(F).getInt32(st+4,!0),$=R(F).getInt32(st+0,!0),V=[];for(let ot=0;ot<P;ot++){let xt=$+ot*8,Nr;switch(R(F).getUint8(xt+0,!0)){case 0:{var Z=R(F).getInt32(xt+4,!0),Q=new.target===Be?this:Object.create(Be.prototype);Object.defineProperty(Q,I,{writable:!0,value:Z}),mt.register(Q,Z,Q),Object.defineProperty(Q,J,{writable:!0,value:function(){mt.unregister(Q),oe(Te,Z),Q[J]=De,Q[I]=void 0,re[22](Te[(Z<<1)+1]&~_)}}),Nr=Q;break}case 1:{var te=R(F).getInt32(xt+4,!0),Ee=new.target===Ge?this:Object.create(Ge.prototype);Object.defineProperty(Ee,I,{writable:!0,value:te}),er.register(Ee,te,Ee),Object.defineProperty(Ee,J,{writable:!0,value:function(){er.unregister(Ee),oe(qe,te),Ee[J]=De,Ee[I]=void 0,re[26](qe[(te<<1)+1]&~_)}}),Nr=Ee;break}}V.push(Nr)}N.push(V)}u={tag:"ok",val:N}}let Ne=u;if(Yx(o),typeof Ne=="object"&&Ne.tag==="err")throw Ne.val;return Ne.val};var mi=[_,0],Kx=Kt(r=>{let{rep:e}=oe(mi,r);re[10](e)});nt[18]=mi;var Ut=[_,0],xu=Kt(r=>{let{rep:e}=oe(Ut,r);re[12](e)});nt[14]=Ut;var zD,Cs=class{constructor(){throw new Error('"BindingGraph" resource does not define a constructor')}};Cs.prototype.definitionAt=function(e){var t=this[I];if(!t||(mi[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "BindingGraph" resource.');var n=mi[(t<<1)+1]&~_,o=e[I];if(!o||(ce[(o<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var u=ce[(o<<1)+1]&~_;let d=zD(n,u),y;if(R(F).getUint8(d+0,!0)){var x=R(F).getInt32(d+4,!0),E=new.target===fi?this:Object.create(fi.prototype);Object.defineProperty(E,I,{writable:!0,value:x}),xu.register(E,x,E),Object.defineProperty(E,J,{writable:!0,value:function(){xu.unregister(E),oe(Ut,x),E[J]=De,E[I]=void 0,re[12](Ut[(x<<1)+1]&~_)}}),y=E}else y=void 0;return y};var cr=[_,0],Du=Kt(r=>{let{rep:e}=oe(cr,r);re[13](e)});nt[15]=cr;var QD;Cs.prototype.referenceAt=function(e){var t=this[I];if(!t||(mi[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "BindingGraph" resource.');var n=mi[(t<<1)+1]&~_,o=e[I];if(!o||(ce[(o<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var u=ce[(o<<1)+1]&~_;let d=QD(n,u),y;if(R(F).getUint8(d+0,!0)){var x=R(F).getInt32(d+4,!0),E=new.target===Hi?this:Object.create(Hi.prototype);Object.defineProperty(E,I,{writable:!0,value:x}),Du.register(E,x,E),Object.defineProperty(E,J,{writable:!0,value:function(){Du.unregister(E),oe(cr,x),E[J]=De,E[I]=void 0,re[13](cr[(x<<1)+1]&~_)}}),y=E}else y=void 0;return y};var XD,fi=class{constructor(){throw new Error('"Definition" resource does not define a constructor')}};Object.defineProperty(fi.prototype,"id",{get:function(){var r=this[I];if(!r||(Ut[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=Ut[(r<<1)+1]&~_;return XD(e)>>>0}});var hr=[_,0],Ss=Kt(r=>{let{rep:e}=oe(hr,r);re[14](e)});nt[17]=hr;var yi=[_,0],vs=Kt(r=>{let{rep:e}=oe(yi,r);re[11](e)});nt[16]=yi;var JD;Object.defineProperty(fi.prototype,"nameLocation",{get:function(){var r=this[I];if(!r||(Ut[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=Ut[(r<<1)+1]&~_;let t=JD(e),n;switch(R(F).getUint8(t+0,!0)){case 0:{var o=R(F).getInt32(t+4,!0),u=new.target===tr?this:Object.create(tr.prototype);Object.defineProperty(u,I,{writable:!0,value:o}),Ss.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){Ss.unregister(u),oe(hr,o),u[J]=De,u[I]=void 0,re[14](hr[(o<<1)+1]&~_)}}),n=u;break}case 1:{var d=R(F).getInt32(t+4,!0),y=new.target===Cr?this:Object.create(Cr.prototype);Object.defineProperty(y,I,{writable:!0,value:d}),vs.register(y,d,y),Object.defineProperty(y,J,{writable:!0,value:function(){vs.unregister(y),oe(yi,d),y[J]=De,y[I]=void 0,re[11](yi[(d<<1)+1]&~_)}}),n=y;break}}return n}});var ZD;Object.defineProperty(fi.prototype,"definiensLocation",{get:function(){var r=this[I];if(!r||(Ut[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Definition" resource.');var e=Ut[(r<<1)+1]&~_;let t=ZD(e),n;switch(R(F).getUint8(t+0,!0)){case 0:{var o=R(F).getInt32(t+4,!0),u=new.target===tr?this:Object.create(tr.prototype);Object.defineProperty(u,I,{writable:!0,value:o}),Ss.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){Ss.unregister(u),oe(hr,o),u[J]=De,u[I]=void 0,re[14](hr[(o<<1)+1]&~_)}}),n=u;break}case 1:{var d=R(F).getInt32(t+4,!0),y=new.target===Cr?this:Object.create(Cr.prototype);Object.defineProperty(y,I,{writable:!0,value:d}),vs.register(y,d,y),Object.defineProperty(y,J,{writable:!0,value:function(){vs.unregister(y),oe(yi,d),y[J]=De,y[I]=void 0,re[11](yi[(d<<1)+1]&~_)}}),n=y;break}}return n}});var e3;fi.prototype.references=function(){var e=this[I];if(!e||(Ut[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Definition" resource.');var t=Ut[(e<<1)+1]&~_;let n=e3(t);var o=R(F).getInt32(n+4,!0),u=R(F).getInt32(n+0,!0),d=[];for(let T=0;T<o;T++){let N=u+T*4;var y=R(F).getInt32(N+0,!0),x=new.target===Hi?this:Object.create(Hi.prototype);Object.defineProperty(x,I,{writable:!0,value:y}),Du.register(x,y,x),Object.defineProperty(x,J,{writable:!0,value:function(){Du.unregister(x),oe(cr,y),x[J]=De,x[I]=void 0,re[13](cr[(y<<1)+1]&~_)}}),d.push(x)}let E=d;return wn(n),E};var t3,Hi=class{constructor(){throw new Error('"Reference" resource does not define a constructor')}};Object.defineProperty(Hi.prototype,"id",{get:function(){var r=this[I];if(!r||(cr[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=cr[(r<<1)+1]&~_;return t3(e)>>>0}});var r3;Object.defineProperty(Hi.prototype,"location",{get:function(){var r=this[I];if(!r||(cr[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Reference" resource.');var e=cr[(r<<1)+1]&~_;let t=r3(e),n;switch(R(F).getUint8(t+0,!0)){case 0:{var o=R(F).getInt32(t+4,!0),u=new.target===tr?this:Object.create(tr.prototype);Object.defineProperty(u,I,{writable:!0,value:o}),Ss.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){Ss.unregister(u),oe(hr,o),u[J]=De,u[I]=void 0,re[14](hr[(o<<1)+1]&~_)}}),n=u;break}case 1:{var d=R(F).getInt32(t+4,!0),y=new.target===Cr?this:Object.create(Cr.prototype);Object.defineProperty(y,I,{writable:!0,value:d}),vs.register(y,d,y),Object.defineProperty(y,J,{writable:!0,value:function(){vs.unregister(y),oe(yi,d),y[J]=De,y[I]=void 0,re[11](yi[(d<<1)+1]&~_)}}),n=y;break}}return n}});var i3;Hi.prototype.definitions=function(){var e=this[I];if(!e||(cr[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Reference" resource.');var t=cr[(e<<1)+1]&~_;let n=i3(t);var o=R(F).getInt32(n+4,!0),u=R(F).getInt32(n+0,!0),d=[];for(let T=0;T<o;T++){let N=u+T*4;var y=R(F).getInt32(N+0,!0),x=new.target===fi?this:Object.create(fi.prototype);Object.defineProperty(x,I,{writable:!0,value:y}),xu.register(x,y,x),Object.defineProperty(x,J,{writable:!0,value:function(){xu.unregister(x),oe(Ut,y),x[J]=De,x[I]=void 0,re[12](Ut[(y<<1)+1]&~_)}}),d.push(x)}let E=d;return wn(n),E};var n3,tr=class{constructor(){throw new Error('"UserFileLocation" resource does not define a constructor')}};Object.defineProperty(tr.prototype,"fileId",{get:function(){var r=this[I];if(!r||(hr[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "UserFileLocation" resource.');var e=hr[(r<<1)+1]&~_;let t=n3(e);var n=R(F).getInt32(t+0,!0),o=R(F).getInt32(t+4,!0),u=lt.decode(new Uint8Array(F.buffer,n,o));let d=u;return Zr(t),d}});var s3;Object.defineProperty(tr.prototype,"cursor",{get:function(){var r=this[I];if(!r||(hr[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "UserFileLocation" resource.');var e=hr[(r<<1)+1]&~_,n=s3(e),o=new.target===ve?this:Object.create(ve.prototype);return Object.defineProperty(o,I,{writable:!0,value:n}),At.register(o,n,o),Object.defineProperty(o,J,{writable:!0,value:function(){At.unregister(o),oe(ce,n),o[J]=De,o[I]=void 0,re[19](ce[(n<<1)+1]&~_)}}),o}});var Su={};Su.UserFileLocation="UserFileLocation";Object.defineProperty(tr.prototype,"type",{get:function(){return Su.UserFileLocation}});tr.prototype.asUserFileLocation=function(){return this};tr.prototype.isUserFileLocation=function(){return!0};tr.prototype.asBuiltInLocation=function(){};tr.prototype.isBuiltInLocation=function(){return!1};var Cr=class{constructor(){throw new Error('"BuiltInLocation" resource does not define a constructor')}};Su.BuiltInLocation="BuiltInLocation";Object.defineProperty(Cr.prototype,"type",{get:function(){return Su.BuiltInLocation}});Cr.prototype.asBuiltInLocation=function(){return this};Cr.prototype.isBuiltInLocation=function(){return!0};Cr.prototype.asUserFileLocation=function(){};Cr.prototype.isUserFileLocation=function(){return!1};var Mr=[_,0],Fx=Kt(r=>{let{rep:e}=oe(Mr,r);re[29](e)});nt[23]=Mr;var o3,$i=class{constructor(){throw new Error('"Parser" resource does not define a constructor')}};$i.create=function(e){var t=lr(e,pt,F),n=Bt;let o=o3(t,n),u;if(R(F).getUint8(o+0,!0)){var d=R(F).getInt32(o+4,!0),y=R(F).getInt32(o+8,!0),x=lt.decode(new Uint8Array(F.buffer,d,y));u={tag:"err",val:x}}else{var E=R(F).getInt32(o+4,!0),T=new.target===$i?this:Object.create($i.prototype);Object.defineProperty(T,I,{writable:!0,value:E}),Fx.register(T,E,T),Object.defineProperty(T,J,{writable:!0,value:function(){Fx.unregister(T),oe(Mr,E),T[J]=De,T[I]=void 0,re[29](Mr[(E<<1)+1]&~_)}}),u={tag:"ok",val:T}}let N=u;if(As(o),typeof N=="object"&&N.tag==="err")throw N.val;return N.val};var a3;Object.defineProperty($i.prototype,"languageVersion",{get:function(){var r=this[I];if(!r||(Mr[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Parser" resource.');var e=Mr[(r<<1)+1]&~_;let t=a3(e);var n=R(F).getInt32(t+0,!0),o=R(F).getInt32(t+4,!0),u=lt.decode(new Uint8Array(F.buffer,n,o));let d=u;return Zr(t),d}});var Vt=[_,0],bu=Kt(r=>{let{rep:e}=oe(Vt,r);re[28](e)});nt[22]=Vt;var l3;$i.prototype.parseFileContents=function(e){var t=this[I];if(!t||(Mr[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Parser" resource.');var n=Mr[(t<<1)+1]&~_,o=lr(e,pt,F),u=Bt,y=l3(n,o,u),x=new.target===Jr?this:Object.create(Jr.prototype);return Object.defineProperty(x,I,{writable:!0,value:y}),bu.register(x,y,x),Object.defineProperty(x,J,{writable:!0,value:function(){bu.unregister(x),oe(Vt,y),x[J]=De,x[I]=void 0,re[28](Vt[(y<<1)+1]&~_)}}),x};var u3;$i.prototype.parseNonterminal=function(e,t){var n=this[I];if(!n||(Mr[(n<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Parser" resource.');var o=Mr[(n<<1)+1]&~_,u=lr(t,pt,F),d=Bt,x=u3(o,D[e],u,d),E=new.target===Jr?this:Object.create(Jr.prototype);return Object.defineProperty(E,I,{writable:!0,value:x}),bu.register(E,x,E),Object.defineProperty(E,J,{writable:!0,value:function(){bu.unregister(E),oe(Vt,x),E[J]=De,E[I]=void 0,re[28](Vt[(x<<1)+1]&~_)}}),E};var c3,Jr=class{constructor(){throw new Error('"ParseOutput" resource does not define a constructor')}};Object.defineProperty(Jr.prototype,"tree",{get:function(){var r=this[I];if(!r||(Vt[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var e=Vt[(r<<1)+1]&~_,n=c3(e),o=new.target===Be?this:Object.create(Be.prototype);return Object.defineProperty(o,I,{writable:!0,value:n}),mt.register(o,n,o),Object.defineProperty(o,J,{writable:!0,value:function(){mt.unregister(o),oe(Te,n),o[J]=De,o[I]=void 0,re[22](Te[(n<<1)+1]&~_)}}),o}});var h3;Jr.prototype.errors=function(){var e=this[I];if(!e||(Vt[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var t=Vt[(e<<1)+1]&~_;let n=h3(t);var o=R(F).getInt32(n+4,!0),u=R(F).getInt32(n+0,!0),d=[];for(let N=0;N<o;N++){let P=u+N*40;var y=R(F).getInt32(P+0,!0),x=R(F).getInt32(P+4,!0),E=lt.decode(new Uint8Array(F.buffer,y,x));d.push({message:E,textRange:{start:{utf8:R(F).getInt32(P+8,!0)>>>0,utf16:R(F).getInt32(P+12,!0)>>>0,line:R(F).getInt32(P+16,!0)>>>0,column:R(F).getInt32(P+20,!0)>>>0},end:{utf8:R(F).getInt32(P+24,!0)>>>0,utf16:R(F).getInt32(P+28,!0)>>>0,line:R(F).getInt32(P+32,!0)>>>0,column:R(F).getInt32(P+36,!0)>>>0}}})}let T=d;return Mm(n),T};var p3;Jr.prototype.isValid=function(){var e=this[I];if(!e||(Vt[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var t=Vt[(e<<1)+1]&~_,o=p3(t);return!!o};var d3;Jr.prototype.createTreeCursor=function(){var e=this[I];if(!e||(Vt[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "ParseOutput" resource.');var t=Vt[(e<<1)+1]&~_,o=d3(t),u=new.target===ve?this:Object.create(ve.prototype);return Object.defineProperty(u,I,{writable:!0,value:o}),At.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){At.unregister(u),oe(ce,o),u[J]=De,u[I]=void 0,re[19](ce[(o<<1)+1]&~_)}}),u};var Yr=[_,0],Nx=Kt(r=>{let{rep:e}=oe(Yr,r);re[17](e)});nt[21]=Yr;var m3,ln=class{constructor(){throw new Error('"InternalCompilationBuilder" resource does not define a constructor')}};ln.create=function(e){var t=lr(e,pt,F),n=Bt;let o=m3(t,n),u;if(R(F).getUint8(o+0,!0)){var d=R(F).getInt32(o+4,!0),y=R(F).getInt32(o+8,!0),x=lt.decode(new Uint8Array(F.buffer,d,y));u={tag:"err",val:x}}else{var E=R(F).getInt32(o+4,!0),T=new.target===ln?this:Object.create(ln.prototype);Object.defineProperty(T,I,{writable:!0,value:E}),Nx.register(T,E,T),Object.defineProperty(T,J,{writable:!0,value:function(){Nx.unregister(T),oe(Yr,E),T[J]=De,T[I]=void 0,re[17](Yr[(E<<1)+1]&~_)}}),u={tag:"ok",val:T}}let N=u;if(As(o),typeof N=="object"&&N.tag==="err")throw N.val;return N.val};var f3;ln.prototype.addFile=function(e,t){var n=this[I];if(!n||(Yr[(n<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var o=Yr[(n<<1)+1]&~_,u=lr(e,pt,F),d=Bt,y=lr(t,pt,F),x=Bt;let E=f3(o,u,d,y,x);var T=R(F).getInt32(E+4,!0),N=R(F).getInt32(E+0,!0),P=[];for(let Q=0;Q<T;Q++){let te=N+Q*4;var $=R(F).getInt32(te+0,!0),V=new.target===ve?this:Object.create(ve.prototype);Object.defineProperty(V,I,{writable:!0,value:$}),At.register(V,$,V),Object.defineProperty(V,J,{writable:!0,value:function(){At.unregister(V),oe(ce,$),V[J]=De,V[I]=void 0,re[19](ce[($<<1)+1]&~_)}}),P.push(V)}let Z={importPaths:P};return wn(E),Z};var y3;ln.prototype.resolveImport=function(e,t,n){var o=this[I];if(!o||(Yr[(o<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var u=Yr[(o<<1)+1]&~_,d=lr(e,pt,F),y=Bt,x=t[I];if(!x||(ce[(x<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "Cursor" resource.');var E=ce[(x<<1)+1]&~_,T=lr(n,pt,F),N=Bt;let P=y3(u,d,y,E,T,N),$;if(R(F).getUint8(P+0,!0)){var V=R(F).getInt32(P+4,!0),Z=R(F).getInt32(P+8,!0),Q=lt.decode(new Uint8Array(F.buffer,V,Z));$={tag:"err",val:Q}}else $={tag:"ok",val:void 0};let te=$;if(As(P),typeof te=="object"&&te.tag==="err")throw te.val;return te.val};var pr=[_,0],Px=Kt(r=>{let{rep:e}=oe(pr,r);re[15](e)});nt[20]=pr;var w3;ln.prototype.build=function(){var e=this[I];if(!e||(Yr[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "InternalCompilationBuilder" resource.');var t=Yr[(e<<1)+1]&~_,o=w3(t),u=new.target===fn?this:Object.create(fn.prototype);return Object.defineProperty(u,I,{writable:!0,value:o}),Px.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){Px.unregister(u),oe(pr,o),u[J]=De,u[I]=void 0,re[15](pr[(o<<1)+1]&~_)}}),u};var g3,fn=class{constructor(){throw new Error('"CompilationUnit" resource does not define a constructor')}};Object.defineProperty(fn.prototype,"languageVersion",{get:function(){var r=this[I];if(!r||(pr[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=pr[(r<<1)+1]&~_;let t=g3(e);var n=R(F).getInt32(t+0,!0),o=R(F).getInt32(t+4,!0),u=lt.decode(new Uint8Array(F.buffer,n,o));let d=u;return Zr(t),d}});var $t=[_,0],Eu=Kt(r=>{let{rep:e}=oe($t,r);re[16](e)});nt[19]=$t;var x3;fn.prototype.files=function(){var e=this[I];if(!e||(pr[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var t=pr[(e<<1)+1]&~_;let n=x3(t);var o=R(F).getInt32(n+4,!0),u=R(F).getInt32(n+0,!0),d=[];for(let T=0;T<o;T++){let N=u+T*4;var y=R(F).getInt32(N+0,!0),x=new.target===wi?this:Object.create(wi.prototype);Object.defineProperty(x,I,{writable:!0,value:y}),Eu.register(x,y,x),Object.defineProperty(x,J,{writable:!0,value:function(){Eu.unregister(x),oe($t,y),x[J]=De,x[I]=void 0,re[16]($t[(y<<1)+1]&~_)}}),d.push(x)}let E=d;return wn(n),E};var D3;fn.prototype.file=function(e){var t=this[I];if(!t||(pr[(t<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var n=pr[(t<<1)+1]&~_,o=lr(e,pt,F),u=Bt;let d=D3(n,o,u),y;if(R(F).getUint8(d+0,!0)){var x=R(F).getInt32(d+4,!0),E=new.target===wi?this:Object.create(wi.prototype);Object.defineProperty(E,I,{writable:!0,value:x}),Eu.register(E,x,E),Object.defineProperty(E,J,{writable:!0,value:function(){Eu.unregister(E),oe($t,x),E[J]=De,E[I]=void 0,re[16]($t[(x<<1)+1]&~_)}}),y=E}else y=void 0;return y};var b3;Object.defineProperty(fn.prototype,"bindingGraph",{get:function(){var r=this[I];if(!r||(pr[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "CompilationUnit" resource.');var e=pr[(r<<1)+1]&~_,n=b3(e),o=new.target===Cs?this:Object.create(Cs.prototype);return Object.defineProperty(o,I,{writable:!0,value:n}),Kx.register(o,n,o),Object.defineProperty(o,J,{writable:!0,value:function(){Kx.unregister(o),oe(mi,n),o[J]=De,o[I]=void 0,re[10](mi[(n<<1)+1]&~_)}}),o}});var E3,wi=class{constructor(){throw new Error('"File" resource does not define a constructor')}};Object.defineProperty(wi.prototype,"id",{get:function(){var r=this[I];if(!r||($t[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "File" resource.');var e=$t[(r<<1)+1]&~_;let t=E3(e);var n=R(F).getInt32(t+0,!0),o=R(F).getInt32(t+4,!0),u=lt.decode(new Uint8Array(F.buffer,n,o));let d=u;return Zr(t),d}});var C3;Object.defineProperty(wi.prototype,"tree",{get:function(){var r=this[I];if(!r||($t[(r<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "File" resource.');var e=$t[(r<<1)+1]&~_,n=C3(e),o=new.target===Be?this:Object.create(Be.prototype);return Object.defineProperty(o,I,{writable:!0,value:n}),mt.register(o,n,o),Object.defineProperty(o,J,{writable:!0,value:function(){mt.unregister(o),oe(Te,n),o[J]=De,o[I]=void 0,re[22](Te[(n<<1)+1]&~_)}}),o}});var S3;wi.prototype.errors=function(){var e=this[I];if(!e||($t[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "File" resource.');var t=$t[(e<<1)+1]&~_;let n=S3(t);var o=R(F).getInt32(n+4,!0),u=R(F).getInt32(n+0,!0),d=[];for(let N=0;N<o;N++){let P=u+N*40;var y=R(F).getInt32(P+0,!0),x=R(F).getInt32(P+4,!0),E=lt.decode(new Uint8Array(F.buffer,y,x));d.push({message:E,textRange:{start:{utf8:R(F).getInt32(P+8,!0)>>>0,utf16:R(F).getInt32(P+12,!0)>>>0,line:R(F).getInt32(P+16,!0)>>>0,column:R(F).getInt32(P+20,!0)>>>0},end:{utf8:R(F).getInt32(P+24,!0)>>>0,utf16:R(F).getInt32(P+28,!0)>>>0,line:R(F).getInt32(P+32,!0)>>>0,column:R(F).getInt32(P+36,!0)>>>0}}})}let T=d;return Mm(n),T};var v3;wi.prototype.createTreeCursor=function(){var e=this[I];if(!e||($t[(e<<1)+1]&_)===0)throw new TypeError('Resource error: Not a valid "File" resource.');var t=$t[(e<<1)+1]&~_,o=v3(t),u=new.target===ve?this:Object.create(ve.prototype);return Object.defineProperty(u,I,{writable:!0,value:o}),At.register(u,o,u),Object.defineProperty(u,J,{writable:!0,value:function(){At.unregister(u),oe(ce,o),u[J]=De,u[I]=void 0,re[19](ce[(o<<1)+1]&~_)}}),u};var T3,Jn=class{constructor(){throw new Error('"LanguageFacts" resource does not define a constructor')}};Jn.allVersions=function(){let e=T3();var t=R(F).getInt32(e+4,!0),n=R(F).getInt32(e+0,!0),o=[];for(let E=0;E<t;E++){let T=n+E*8;var u=R(F).getInt32(T+0,!0),d=R(F).getInt32(T+4,!0),y=lt.decode(new Uint8Array(F.buffer,u,d));o.push(y)}let x=o;return Ym(e),x};var A3;Jn.earliestVersion=function(){let e=A3();var t=R(F).getInt32(e+0,!0),n=R(F).getInt32(e+4,!0),o=lt.decode(new Uint8Array(F.buffer,t,n));let u=o;return Zr(e),u};var _3;Jn.latestVersion=function(){let e=_3();var t=R(F).getInt32(e+0,!0),n=R(F).getInt32(e+4,!0),o=lt.decode(new Uint8Array(F.buffer,t,n));let u=o;return Zr(e),u};var K3;Jn.inferLanguageVersions=function(e){var t=lr(e,pt,F),n=Bt;let o=K3(t,n);var u=R(F).getInt32(o+4,!0),d=R(F).getInt32(o+0,!0),y=[];for(let P=0;P<u;P++){let $=d+P*8;var x=R(F).getInt32($+0,!0),E=R(F).getInt32($+4,!0),T=lt.decode(new Uint8Array(F.buffer,x,E));y.push(T)}let N=y;return Ym(o),N};var PS=Qe.bind(null,Te);function kS(r){let e=oe(Te,r);e.own&&re[22](e.rep)}var LS=Qe.bind(null,qe);function IS(r){let e=oe(qe,r);e.own&&re[26](e.rep)}var RS=Qe.bind(null,Ut);function OS(r){let e=oe(Ut,r);e.own&&re[12](e.rep)}var MS=Qe.bind(null,cr);function YS(r){let e=oe(cr,r);e.own&&re[13](e.rep)}var BS=Qe.bind(null,yi);function US(r){let e=oe(yi,r);e.own&&re[11](e.rep)}var VS=Qe.bind(null,hr);function $S(r){let e=oe(hr,r);e.own&&re[14](e.rep)}var HS=Qe.bind(null,ce);function qS(r){let e=oe(ce,r);e.own&&re[19](e.rep)}var jS=Qe.bind(null,mi);function GS(r){let e=oe(mi,r);e.own&&re[10](e.rep)}var WS=Qe.bind(null,$t);function zS(r){let e=oe($t,r);e.own&&re[16](e.rep)}var QS=Qe.bind(null,pr);function XS(r){let e=oe(pr,r);e.own&&re[15](e.rep)}var JS=Qe.bind(null,Yr);function ZS(r){let e=oe(Yr,r);e.own&&re[17](e.rep)}var ev=Qe.bind(null,dt);function tv(r){let e=oe(dt,r);e.own&&re[21](e.rep)}var rv=Qe.bind(null,pn);function iv(r){let e=oe(pn,r);e.own&&re[18](e.rep)}var nv=Qe.bind(null,ur);function sv(r){let e=oe(ur,r);e.own&&re[20](e.rep)}var ov=Qe.bind(null,mn);function av(r){let e=oe(mn,r);e.own&&re[24](e.rep)}function lv(r){return Te[(r<<1)+1]&~_}function uv(r){return qe[(r<<1)+1]&~_}function cv(r){return dt[(r<<1)+1]&~_}var hv=Qe.bind(null,dn);function pv(r){let e=oe(dn,r);e.own&&re[23](e.rep)}var dv=Qe.bind(null,Vt);function mv(r){let e=oe(Vt,r);e.own&&re[28](e.rep)}var fv=Qe.bind(null,Mr);function yv(r){let e=oe(Mr,r);e.own&&re[29](e.rep)}function wv(r){let e=oe(Ko,r);if(e.own){let t=_o.get(e.rep);t?(t[J]&&t[J](),_o.delete(e.rep)):Ao[Or]&&Ao[Or](e.rep)}}function gv(r){let e=oe(Ts,r);if(e.own){let t=bs.get(e.rep);t?(t[J]&&t[J](),bs.delete(e.rep)):Ds[Or]&&Ds[Or](e.rep)}}function xv(r){let e=oe(Im,r);if(e.own){let t=Pm.get(e.rep);t?(t[J]&&t[J](),Pm.delete(e.rep)):Fm[Or]&&Fm[Or](e.rep)}}function Dv(r){let e=oe(yn,r);if(e.own){let t=cn.get(e.rep);t?(t[J]&&t[J](),cn.delete(e.rep)):un[Or]&&un[Or](e.rep)}}function bv(r){let e=oe(Om,r);if(e.own){let t=km.get(e.rep);t?(t[J]&&t[J](),km.delete(e.rep)):Km[Or]&&Km[Or](e.rep)}}function Ev(r){let e=oe(Cu,r);if(e.own){let t=wu.get(e.rep);t?(t[J]&&t[J](),wu.delete(e.rep)):yu[Or]&&yu[Or](e.rep)}}var Cv=(()=>{let r=(function*(){let y=Am(new URL("./9e1048905777a9eb184a.wasm",import.meta.url)),x=Am(new URL("./0808af9bee8157de6fd8.wasm",import.meta.url)),E=Am(new URL("./d7389a6652c8528e2873.wasm",import.meta.url));({exports:re}=yield _m(yield x)),{exports:X}=yield _m(yield y,{"[export]nomic-foundation:slang/bindings":{"[resource-drop]binding-graph":GS,"[resource-drop]built-in-location":US,"[resource-drop]definition":OS,"[resource-drop]reference":YS,"[resource-drop]user-file-location":$S,"[resource-new]binding-graph":jS,"[resource-new]built-in-location":BS,"[resource-new]definition":RS,"[resource-new]reference":MS,"[resource-new]user-file-location":VS},"[export]nomic-foundation:slang/compilation":{"[resource-drop]compilation-unit":XS,"[resource-drop]file":zS,"[resource-drop]internal-compilation-builder":ZS,"[resource-new]compilation-unit":QS,"[resource-new]file":WS,"[resource-new]internal-compilation-builder":JS},"[export]nomic-foundation:slang/cst":{"[resource-drop]ancestors-iterator":iv,"[resource-drop]cursor":qS,"[resource-drop]cursor-iterator":sv,"[resource-drop]edge":tv,"[resource-drop]nonterminal-node":kS,"[resource-drop]query":pv,"[resource-drop]query-match-iterator":av,"[resource-drop]terminal-node":IS,"[resource-new]ancestors-iterator":rv,"[resource-new]cursor":HS,"[resource-new]cursor-iterator":nv,"[resource-new]edge":ev,"[resource-new]nonterminal-node":PS,"[resource-new]query":hv,"[resource-new]query-match-iterator":ov,"[resource-new]terminal-node":LS,"[resource-rep]edge":cv,"[resource-rep]nonterminal-node":lv,"[resource-rep]terminal-node":uv},"[export]nomic-foundation:slang/parser":{"[resource-drop]parse-output":mv,"[resource-drop]parser":yv,"[resource-new]parse-output":dv,"[resource-new]parser":fv},"wasi:cli/environment@0.2.0":{"get-environment":re[5]},"wasi:cli/exit@0.2.0":{exit:dS},"wasi:cli/stderr@0.2.0":{"get-stderr":xS},"wasi:cli/stdin@0.2.0":{"get-stdin":wS},"wasi:cli/stdout@0.2.0":{"get-stdout":gS},"wasi:cli/terminal-input@0.2.0":{"[resource-drop]terminal-input":bv},"wasi:cli/terminal-output@0.2.0":{"[resource-drop]terminal-output":Ev},"wasi:cli/terminal-stderr@0.2.0":{"get-terminal-stderr":re[8]},"wasi:cli/terminal-stdin@0.2.0":{"get-terminal-stdin":re[6]},"wasi:cli/terminal-stdout@0.2.0":{"get-terminal-stdout":re[7]},"wasi:clocks/monotonic-clock@0.2.0":{"subscribe-duration":DS},"wasi:io/error@0.2.0":{"[resource-drop]error":wv},"wasi:io/poll@0.2.0":{"[method]pollable.block":mS,"[resource-drop]pollable":gv,poll:re[1]},"wasi:io/streams@0.2.0":{"[method]output-stream.blocking-flush":re[4],"[method]output-stream.check-write":re[2],"[method]output-stream.subscribe":fS,"[method]output-stream.write":re[3],"[resource-drop]input-stream":xv,"[resource-drop]output-stream":Dv},"wasi:random/insecure-seed@0.2.9":{"insecure-seed":re[0]}}),F=X.memory,pt=X.cabi_realloc,{exports:NS}=yield _m(yield E,{"":{$imports:re.$imports,0:bS,1:ES,10:X["nomic-foundation:slang/bindings#[dtor]binding-graph"],11:X["nomic-foundation:slang/bindings#[dtor]built-in-location"],12:X["nomic-foundation:slang/bindings#[dtor]definition"],13:X["nomic-foundation:slang/bindings#[dtor]reference"],14:X["nomic-foundation:slang/bindings#[dtor]user-file-location"],15:X["nomic-foundation:slang/compilation#[dtor]compilation-unit"],16:X["nomic-foundation:slang/compilation#[dtor]file"],17:X["nomic-foundation:slang/compilation#[dtor]internal-compilation-builder"],18:X["nomic-foundation:slang/cst#[dtor]ancestors-iterator"],19:X["nomic-foundation:slang/cst#[dtor]cursor"],2:CS,20:X["nomic-foundation:slang/cst#[dtor]cursor-iterator"],21:X["nomic-foundation:slang/cst#[dtor]edge"],22:X["nomic-foundation:slang/cst#[dtor]nonterminal-node"],23:X["nomic-foundation:slang/cst#[dtor]query"],24:X["nomic-foundation:slang/cst#[dtor]query-match-iterator"],25:X["nomic-foundation:slang/cst#[dtor]terminal-kind-extensions"],26:X["nomic-foundation:slang/cst#[dtor]terminal-node"],27:X["nomic-foundation:slang/cst#[dtor]text-index-extensions"],28:X["nomic-foundation:slang/parser#[dtor]parse-output"],29:X["nomic-foundation:slang/parser#[dtor]parser"],3:SS,30:X["nomic-foundation:slang/utils#[dtor]language-facts"],4:vS,5:TS,6:_S,7:KS,8:FS,9:X["nomic-foundation:slang/ast#[dtor]selectors"]}}),wn=X["cabi_post_nomic-foundation:slang/bindings#[method]definition.references"],Zr=X["cabi_post_nomic-foundation:slang/bindings#[method]user-file-location.file-id"],As=X["cabi_post_nomic-foundation:slang/ast#[static]selectors.choice"],Rx=X["cabi_post_nomic-foundation:slang/cst#[method]query-match-iterator.next"],Ox=X["cabi_post_nomic-foundation:slang/ast#[static]selectors.sequence"],Mx=X["cabi_post_nomic-foundation:slang/ast#[static]selectors.repeated"],Yx=X["cabi_post_nomic-foundation:slang/ast#[static]selectors.separated"],Mm=X["cabi_post_nomic-foundation:slang/compilation#[method]file.errors"],Ym=X["cabi_post_nomic-foundation:slang/utils#[static]language-facts.all-versions"],Bx=X["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-identifier"],Ux=X["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-trivia"],Vx=X["nomic-foundation:slang/cst#[static]terminal-kind-extensions.is-valid"],$x=X["nomic-foundation:slang/cst#[static]nonterminal-node.create"],Hx=X["nomic-foundation:slang/cst#[method]nonterminal-node.id"],qx=X["nomic-foundation:slang/cst#[method]nonterminal-node.kind"],jx=X["nomic-foundation:slang/cst#[method]nonterminal-node.text-length"],Gx=X["nomic-foundation:slang/cst#[method]nonterminal-node.children"],Wx=X["nomic-foundation:slang/cst#[method]nonterminal-node.descendants"],zx=X["nomic-foundation:slang/cst#[method]nonterminal-node.unparse"],Qx=X["nomic-foundation:slang/cst#[method]nonterminal-node.to-json"],Xx=X["nomic-foundation:slang/cst#[method]nonterminal-node.create-cursor"],Jx=X["nomic-foundation:slang/cst#[static]terminal-node.create"],Zx=X["nomic-foundation:slang/cst#[method]terminal-node.id"],eD=X["nomic-foundation:slang/cst#[method]terminal-node.kind"],tD=X["nomic-foundation:slang/cst#[method]terminal-node.text-length"],rD=X["nomic-foundation:slang/cst#[method]terminal-node.children"],iD=X["nomic-foundation:slang/cst#[method]terminal-node.descendants"],nD=X["nomic-foundation:slang/cst#[method]terminal-node.unparse"],sD=X["nomic-foundation:slang/cst#[method]terminal-node.to-json"],oD=X["nomic-foundation:slang/cst#[static]edge.create-with-terminal"],aD=X["nomic-foundation:slang/cst#[static]edge.create-with-nonterminal"],lD=X["nomic-foundation:slang/cst#[method]edge.label"],uD=X["nomic-foundation:slang/cst#[method]edge.node"],cD=X["nomic-foundation:slang/cst#[method]cursor.reset"],hD=X["nomic-foundation:slang/cst#[method]cursor.complete"],pD=X["nomic-foundation:slang/cst#[method]cursor.is-completed"],dD=X["nomic-foundation:slang/cst#[method]cursor.clone"],mD=X["nomic-foundation:slang/cst#[method]cursor.spawn"],fD=X["nomic-foundation:slang/cst#[method]cursor.node"],yD=X["nomic-foundation:slang/cst#[method]cursor.label"],wD=X["nomic-foundation:slang/cst#[method]cursor.text-offset"],gD=X["nomic-foundation:slang/cst#[method]cursor.text-range"],xD=X["nomic-foundation:slang/cst#[method]cursor.depth"],DD=X["nomic-foundation:slang/cst#[method]cursor.children"],bD=X["nomic-foundation:slang/cst#[method]cursor.descendants"],ED=X["nomic-foundation:slang/cst#[method]cursor.remaining-nodes"],CD=X["nomic-foundation:slang/cst#[method]cursor.ancestors"],SD=X["nomic-foundation:slang/cst#[method]cursor.go-to-next"],vD=X["nomic-foundation:slang/cst#[method]cursor.go-to-next-non-descendant"],TD=X["nomic-foundation:slang/cst#[method]cursor.go-to-previous"],AD=X["nomic-foundation:slang/cst#[method]cursor.go-to-parent"],_D=X["nomic-foundation:slang/cst#[method]cursor.go-to-first-child"],KD=X["nomic-foundation:slang/cst#[method]cursor.go-to-last-child"],FD=X["nomic-foundation:slang/cst#[method]cursor.go-to-nth-child"],ND=X["nomic-foundation:slang/cst#[method]cursor.go-to-next-sibling"],PD=X["nomic-foundation:slang/cst#[method]cursor.go-to-previous-sibling"],kD=X["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal"],LD=X["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kind"],ID=X["nomic-foundation:slang/cst#[method]cursor.go-to-next-terminal-with-kinds"],RD=X["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal"],OD=X["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kind"],MD=X["nomic-foundation:slang/cst#[method]cursor.go-to-next-nonterminal-with-kinds"],YD=X["nomic-foundation:slang/cst#[method]cursor.query"],BD=X["nomic-foundation:slang/cst#[method]cursor-iterator.next"],UD=X["nomic-foundation:slang/cst#[method]ancestors-iterator.next"],VD=X["nomic-foundation:slang/cst#[static]query.create"],$D=X["nomic-foundation:slang/cst#[method]query-match-iterator.next"],HD=X["nomic-foundation:slang/cst#[static]text-index-extensions.zero"],qD=X["nomic-foundation:slang/ast#[static]selectors.sequence"],jD=X["nomic-foundation:slang/ast#[static]selectors.choice"],GD=X["nomic-foundation:slang/ast#[static]selectors.repeated"],WD=X["nomic-foundation:slang/ast#[static]selectors.separated"],zD=X["nomic-foundation:slang/bindings#[method]binding-graph.definition-at"],QD=X["nomic-foundation:slang/bindings#[method]binding-graph.reference-at"],XD=X["nomic-foundation:slang/bindings#[method]definition.id"],JD=X["nomic-foundation:slang/bindings#[method]definition.name-location"],ZD=X["nomic-foundation:slang/bindings#[method]definition.definiens-location"],e3=X["nomic-foundation:slang/bindings#[method]definition.references"],t3=X["nomic-foundation:slang/bindings#[method]reference.id"],r3=X["nomic-foundation:slang/bindings#[method]reference.location"],i3=X["nomic-foundation:slang/bindings#[method]reference.definitions"],n3=X["nomic-foundation:slang/bindings#[method]user-file-location.file-id"],s3=X["nomic-foundation:slang/bindings#[method]user-file-location.cursor"],o3=X["nomic-foundation:slang/parser#[static]parser.create"],a3=X["nomic-foundation:slang/parser#[method]parser.language-version"],l3=X["nomic-foundation:slang/parser#[method]parser.parse-file-contents"],u3=X["nomic-foundation:slang/parser#[method]parser.parse-nonterminal"],c3=X["nomic-foundation:slang/parser#[method]parse-output.tree"],h3=X["nomic-foundation:slang/parser#[method]parse-output.errors"],p3=X["nomic-foundation:slang/parser#[method]parse-output.is-valid"],d3=X["nomic-foundation:slang/parser#[method]parse-output.create-tree-cursor"],m3=X["nomic-foundation:slang/compilation#[static]internal-compilation-builder.create"],f3=X["nomic-foundation:slang/compilation#[method]internal-compilation-builder.add-file"],y3=X["nomic-foundation:slang/compilation#[method]internal-compilation-builder.resolve-import"],w3=X["nomic-foundation:slang/compilation#[method]internal-compilation-builder.build"],g3=X["nomic-foundation:slang/compilation#[method]compilation-unit.language-version"],x3=X["nomic-foundation:slang/compilation#[method]compilation-unit.files"],D3=X["nomic-foundation:slang/compilation#[method]compilation-unit.file"],b3=X["nomic-foundation:slang/compilation#[method]compilation-unit.binding-graph"],E3=X["nomic-foundation:slang/compilation#[method]file.id"],C3=X["nomic-foundation:slang/compilation#[method]file.tree"],S3=X["nomic-foundation:slang/compilation#[method]file.errors"],v3=X["nomic-foundation:slang/compilation#[method]file.create-tree-cursor"],T3=X["nomic-foundation:slang/utils#[static]language-facts.all-versions"],A3=X["nomic-foundation:slang/utils#[static]language-facts.earliest-version"],_3=X["nomic-foundation:slang/utils#[static]language-facts.latest-version"],K3=X["nomic-foundation:slang/utils#[static]language-facts.infer-language-versions"]})(),e,t,n;function o(d){try{let y;do({value:d,done:y}=r.next(d));while(!(d instanceof Promise)&&!y);if(y)if(t)t(d);else return d;e||(e=new Promise((x,E)=>(t=x,n=E))),d.then(o,n)}catch(y){if(n)n(y);else throw y}}let u=o(null);return e||u})();await Cv;var M={Selectors:Xn};var rr={AncestorsIterator:zn,Cursor:ve,CursorIterator:Er,Edge:vt,EdgeLabel:z,NodeType:Fo,NonterminalKind:O,NonterminalNode:Be,Query:xs,QueryMatchIterator:Qn,TerminalKind:v,TerminalKindExtensions:Es,TerminalNode:Ge,TextIndexExtensions:gu},Bm={ParseOutput:Jr,Parser:$i},F3={LanguageFacts:Jn};var h=rr.NonterminalKind,Ht=rr.TerminalKind,qP=rr.TerminalKindExtensions,Tu=rr.EdgeLabel,Sv=rr.NodeType,N3=rr.NonterminalNode,Re=rr.TerminalNode,P3=rr.Edge,jP=rr.Cursor,GP=rr.CursorIterator,WP=rr.AncestorsIterator,zP=rr.Query,QP=rr.QueryMatchIterator,XP=rr.TextIndexExtensions;var{addDanglingComment:gn,addLeadingComment:Sr,addTrailingComment:ft,getNextNonSpaceNonCommentCharacter:qt,isNextLineEmpty:Au,makeString:k3}=St;function jt(r,e){r.items.length===0?gn(r,e,!1):Sr(r.items[0],e)}function Br(r,e){r.items.length===0?gn(r,e,!1):ft(r.items[r.items.length-1],e)}function vr(r,{precedingNode:e,followingNode:t,comment:n}){return e?.kind===r?(Br(e,n),!0):t?.kind===r?(jt(t,n),!0):!1}function Um(r){return r.enclosingNode?.kind!==h.Block?!1:vr(h.Statements,r)}function L3(r){return r.loc.start}function ut(r){return r.loc.end}function Vm({text:r,precedingNode:e,enclosingNode:t,followingNode:n,comment:o}){if(t?.kind!==h.ContractDefinition)return!1;let u=qt(r,ut(o));if(n?.kind===h.ContractSpecifiers||u!=="{"&&n?.kind===h.ContractMembers)return Sr(t,o),!0;if(e?.kind===h.ContractMembers)return Br(e,o),!0;if(u==="{"&&e?.kind===h.ContractSpecifiers){if(e.items.length===0)return ft(e,o),!0;let d=e.items[e.items.length-1];if(d.kind===h.InheritanceSpecifier)return Br(d.types,o),!0;if(d.kind===h.StorageLayoutSpecifier)return ft(d.expression,o),!0}return!1}function $m({precedingNode:r,enclosingNode:e,comment:t}){if(e?.kind!==h.ContractSpecifiers)return!1;if(r){if(r.kind===h.InheritanceSpecifier)return Br(r.types,t),!0;if(r.kind===h.StorageLayoutSpecifier)return ft(r.expression,t),!0}return!1}function Hm({enclosingNode:r,followingNode:e,comment:t}){return r?.kind!==h.ElseBranch?!1:e===r.body&&e.kind===h.IfStatement?(e.body.kind===h.Block?jt(e.body.statements,t):Sr(e.body,t),!0):!1}function qm({text:r,precedingNode:e,enclosingNode:t,followingNode:n,comment:o}){return t?.kind!==h.IfStatement?!1:qt(r,ut(o))===")"?(ft(e,o),!0):e===t.body&&n===t.elseBranch?(ft(e,o),!0):n?.kind===h.IfStatement?(n.body.kind===h.Block?jt(n.body.statements,o):Sr(n.body,o),!0):t.body===n?(n.kind===h.Block?jt(n.statements,o):Sr(n,o),!0):!1}function jm({text:r,precedingNode:e,enclosingNode:t,followingNode:n,comment:o}){if(t?.kind!==h.InterfaceDefinition)return!1;let u=qt(r,ut(o));return e?.kind===h.InterfaceMembers?(Br(e,o),!0):u==="{"&&n?.kind===h.InterfaceMembers?(jt(n,o),!0):!1}function Gm({text:r,precedingNode:e,enclosingNode:t,followingNode:n,comment:o}){if(t?.kind!==h.LibraryDefinition)return!1;let u=qt(r,ut(o));return e?.kind===h.LibraryMembers?(Br(e,o),!0):u==="{"&&n?.kind===h.LibraryMembers?(jt(n,o),!0):!1}function Wm({precedingNode:r,enclosingNode:e,followingNode:t,comment:n}){return e?.kind!==h.MemberAccessExpression?!1:t===e.operand?(Sr(t,n),!0):r===e.operand&&t===e.member?(ft(r,n),!0):r===e.member?(ft(r,n),!0):!1}function zm({text:r,precedingNode:e,enclosingNode:t,followingNode:n,comment:o}){if(t?.kind!==h.ModifierInvocation)return!1;let u=qt(r,ut(o));return e?.kind===h.IdentifierPath&&u==="("&&n?.kind===h.PositionalArgumentsDeclaration?(n.arguments.items.length===0?ft(t,o):jt(n.arguments,o),!0):!1}function Qm(r){return r.enclosingNode?.kind!==h.ParametersDeclaration?!1:vr(h.Parameters,r)}function Xm(r){return r.enclosingNode?.kind!==h.PositionalArgumentsDeclaration?!1:vr(h.PositionalArguments,r)}function Jm(r){return vr(h.SourceUnitMembers,r)}function Zm(r){return r.enclosingNode?.kind!==h.StructDefinition?!1:vr(h.StructMembers,r)}function e0({text:r,precedingNode:e,enclosingNode:t,comment:n}){return t?.kind!==h.TupleDeconstructionElements||qt(r,ut(n))!==","?!1:e&&e.kind===h.TupleDeconstructionElement?(e.member===void 0?gn(e,n,!1):ft(e.member,n),!0):!1}function t0({text:r,precedingNode:e,enclosingNode:t,comment:n}){if(t?.kind!==h.TupleDeconstructionStatement||qt(r,ut(n))!==")")return!1;if(e&&e.kind===h.TupleDeconstructionElements){let u=e.items.at(-1);return u.member===void 0?gn(u,n,!1):ft(u.member,n),!0}return!1}function r0({text:r,precedingNode:e,enclosingNode:t,followingNode:n,comment:o}){return t?.kind!==h.WhileStatement?!1:qt(r,ut(o))===")"&&t.condition===e?(ft(e,o),!0):t.body===n?(n.kind===h.Block?jt(n.statements,o):Sr(n,o),!0):!1}function i0(r){return r.enclosingNode?.kind!==h.YulBlock?!1:vr(h.YulStatements,r)}var I3=[Um,Vm,$m,Hm,qm,jm,Gm,Wm,zm,Qm,Xm,Jm,Zm,e0,t0,r0,i0];function n0(r,e){let{precedingNode:t,enclosingNode:n,followingNode:o}=r,u={text:e,precedingNode:t,enclosingNode:n,followingNode:o,comment:r};return I3.some(d=>d(u))}var R3={ownLine:n0,endOfLine:n0,remaining:n0};function We(r){let e=new Set(r);return t=>e.has(t.kind)}var Ur=We([Ht.MultiLineComment,Ht.MultiLineNatSpecComment]),_s=We([Ht.MultiLineComment,Ht.MultiLineNatSpecComment,Ht.SingleLineComment,Ht.SingleLineNatSpecComment]);function No({node:r}){if(_s(r))return r.print();throw new Error(`Not a comment: ${JSON.stringify(r)}`)}var vv=new Set(["loc","range","comments"]);function O3(){}O3.ignoredProperties=vv;var s0=O3;function M3(r,e){return e.range?e.range[r]:e.expression?.range?e.expression.range[r]:null}var Y3={locEnd:r=>M3(1,r),locStart:r=>M3(0,r)};var B3="Common",U3="JavaScript",Tv="Solidity",Av={bracketSpacing:{category:B3,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:B3,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},experimentalTernaries:{category:U3,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},experimentalOperatorPosition:{category:U3,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},compiler:{category:Tv,type:"string",description:"The Solidity compiler version to help us avoid critical errors in format for the wrong version."}},V3=Av;var S0=ai(H3(),1),G5=ai(p0(),1),v0=ai(ts(),1);function Ru(r){console.warn(`\x1B[2K\r[prettier-solidity] ${r}`)}var Rt=(r,e)=>r.type==="BinaryOperation"&&e.includes(r.operator)?{type:"TupleExpression",components:[r],isArray:!1}:r;function J9(r,e,t=e){let n=(0,G5.default)(t.compiler),o=S0.default.parse(r,{loc:!0,range:!0,comments:!0});return S0.default.visit(o,{PragmaDirective(u){u.name==="solidity"&&n&&((0,v0.default)(n,u.value)||Ru(`The compiler option is set to '${t.compiler}', which does not satisfy 'pragma solidity ${u.value}'.`))},ModifierDefinition(u){u.parameters||(u.parameters=[])},FunctionDefinition(u){u.isConstructor||u.modifiers.forEach(d=>{d.arguments?.length===0&&(d.arguments=null)})},ForStatement(u){u.initExpression&&(u.initExpression.omitSemicolon=!0),u.loopExpression.omitSemicolon=!0},HexLiteral(u){let d=u.value.slice(4,-1);u.value=t.singleQuote?`hex'${d}'`:`hex"${d}"`},Conditional(u){if(t.experimentalTernaries)for(;u.condition.type==="TupleExpression"&&!u.condition.isArray&&u.condition.components.length===1&&u.condition.components[0].type!=="Conditional";)[u.condition]=u.condition.components},BinaryOperation(u){switch(u.operator){case"+":case"-":u.left=Rt(u.left,["%"]),u.right=Rt(u.right,["%"]);break;case"*":u.left=Rt(u.left,["/","%"]);break;case"/":u.left=Rt(u.left,["*","%"]);break;case"%":u.left=Rt(u.left,["*","/","%"]);break;case"**":if(!n)break;if((0,v0.default)(n,">=0.8.0")){u.right=Rt(u.right,["**"]);break}if(u.right.type==="BinaryOperation"&&u.right.operator==="**"){let d={type:"BinaryOperation",operator:"**",left:u.left,right:u.right.left};u.left={type:"TupleExpression",components:[d],isArray:!1},u.right=u.right.right}break;case"<<":case">>":u.left=Rt(u.left,["+","-","*","/","**","<<",">>"]),u.right=Rt(u.right,["+","-","*","/","**"]);break;case"&":u.left=Rt(u.left,["+","-","*","/","**","<<",">>"]),u.right=Rt(u.right,["+","-","*","/","**","<<",">>"]);break;case"|":u.left=Rt(u.left,["+","-","*","/","**","<<",">>","&","^"]),u.right=Rt(u.right,["+","-","*","/","**","<<",">>","&","^"]);break;case"^":u.left=Rt(u.left,["+","-","*","/","**","<<",">>","&"]),u.right=Rt(u.right,["+","-","*","/","**","<<",">>","&"]);break;case"==":case"!=":u.left=Rt(u.left,["==","!="]);break;case"||":u.left=Rt(u.left,["&&"]),u.right=Rt(u.right,["&&"]);break;default:break}}}),o}var W5=J9;var $u={};gg($u,{ArrayTypeName:()=>Z9,AssemblyAssignment:()=>tT,AssemblyBlock:()=>sT,AssemblyCall:()=>oT,AssemblyCase:()=>aT,AssemblyFor:()=>uT,AssemblyFunctionDefinition:()=>cT,AssemblyIf:()=>hT,AssemblyLocalDefinition:()=>dT,AssemblyMemberAccess:()=>mT,AssemblyStackAssignment:()=>yT,AssemblySwitch:()=>gT,BinaryOperation:()=>AT,Block:()=>KT,BooleanLiteral:()=>FT,Break:()=>NT,BreakStatement:()=>PT,CatchClause:()=>LT,Conditional:()=>OT,Continue:()=>MT,ContinueStatement:()=>YT,ContractDefinition:()=>qT,CustomErrorDefinition:()=>GT,DecimalNumber:()=>WT,DoWhileStatement:()=>JT,ElementaryTypeName:()=>eA,EmitStatement:()=>tA,EnumDefinition:()=>nA,EnumValue:()=>sA,EventDefinition:()=>aA,ExpressionStatement:()=>uA,FileLevelConstant:()=>cA,ForStatement:()=>mA,FunctionCall:()=>DA,FunctionDefinition:()=>LA,FunctionTypeName:()=>YA,HexLiteral:()=>VA,HexNumber:()=>$A,Identifier:()=>HA,IfStatement:()=>WA,ImportDirective:()=>XA,IndexAccess:()=>t_,IndexRangeAccess:()=>r_,InheritanceSpecifier:()=>n_,InlineAssemblyStatement:()=>s_,LabelDefinition:()=>l_,Mapping:()=>u_,MemberAccess:()=>m_,ModifierDefinition:()=>b_,ModifierInvocation:()=>C_,NameValueExpression:()=>S_,NameValueList:()=>A_,NewExpression:()=>__,NumberLiteral:()=>K_,PragmaDirective:()=>F_,ReturnStatement:()=>I_,RevertStatement:()=>R_,SourceUnit:()=>M_,StateVariableDeclaration:()=>B_,StringLiteral:()=>$_,StructDefinition:()=>H_,ThrowStatement:()=>q_,TryStatement:()=>z_,TupleExpression:()=>J_,TypeDefinition:()=>Z_,UnaryOperation:()=>eK,UncheckedStatement:()=>rK,UserDefinedTypeName:()=>iK,UsingForDeclaration:()=>oK,VariableDeclaration:()=>wK,VariableDeclarationStatement:()=>bK,WhileStatement:()=>TK});var Z9={print:({node:r,path:e,print:t})=>[e.call(t,"baseTypeName"),"[",r.length?e.call(t,"length"):"","]"]};var{join:eT}=ue.builders,tT={print:({path:r,print:e})=>[eT(", ",r.map(e,"names"))," := ",r.call(e,"expression")]};var{group:z5,indent:Q5,join:X5,line:A0,softline:rT,hardline:T0}=ue.builders,{isNextLineEmpty:iT}=St,Ot=(r,e,t,n=()=>!0)=>{if(!r.comments)return"";function o(d){return!d.trailing&&!d.leading&&!d.printed&&n(d)}return X5(A0,e.map((d,y,x)=>{let E=d.getValue();if(!o(E))return null;E.printed=!0;let T=y===x.length-1||x.slice(y+1).findIndex(o)===-1;return[t.printer.printComment(d,t),!T&&St.isNextLineEmpty(t.originalText,t.locEnd(E))?T0:""]},"comments").filter(Boolean))};function xn(r,e,t,n){let o=[];return r.each(u=>{let d=u.getValue(),y=d.type;o.length!==0&&y!=="LabelDefinition"&&o.push(T0),o.push(n(u)),!u.isLast&&iT(t.originalText,t.locEnd(d)+1)&&o.push(T0)},e),o}var ct=(r,{firstSeparator:e=rT,lastSeparator:t=e,grouped:n=!0}={})=>{let o=[Q5([e,r]),t];return n?z5(o):o},Se=(r,{firstSeparator:e,separator:t=[",",A0],lastSeparator:n,grouped:o}={})=>ct(X5(t,r),{firstSeparator:e,lastSeparator:n,grouped:o}),Dn=(r,e)=>["TupleExpression","FunctionCall","IndexAccess","NameValueExpression","MemberAccess"].includes(e.type)?[" ",r]:z5(Q5([A0,r]));var{hardline:nT}=ue.builders,sT={print:({node:r,options:e,path:t,print:n})=>r.operations.length===0&&!r.comments?"{}":["{",ct([xn(t,"operations",e,n),Ot(r,t,e)],{firstSeparator:nT,grouped:!1}),"}"]};var oT={print:({node:r,path:e,print:t,options:n})=>r.arguments.length===0&&n.originalText.charAt(n.locEnd(r))!==")"?r.functionName:[r.functionName,"(",Se(e.map(t,"arguments")),")"]};var aT={print:({node:r,path:e,print:t})=>[r.default?"default":["case ",e.call(t,"value")]," ",e.call(t,"block")]};var{join:lT}=ue.builders,uT={print:({path:r,print:e})=>lT(" ",["for",r.call(e,"pre"),r.call(e,"condition"),r.call(e,"post"),r.call(e,"body")])};var{line:J5}=ue.builders,cT={print:({node:r,path:e,print:t})=>["function ",r.name,"(",Se(e.map(t,"arguments")),")",r.returnArguments.length===0?" ":ct(["->",Se(e.map(t,"returnArguments"),{firstSeparator:J5,lastSeparator:""})],{firstSeparator:J5}),e.call(t,"body")]};var hT={print:({path:r,print:e})=>["if ",r.call(e,"condition")," ",r.call(e,"body")]};var{line:pT}=ue.builders,dT={print:({node:r,path:e,print:t})=>{let n=["let",Se(e.map(t,"names"),{firstSeparator:pT})];return r.expression!==null&&(n.push(":= "),n.push(e.call(t,"expression"))),n}};var mT={print:({path:r,print:e})=>[r.call(e,"expression"),".",r.call(e,"memberName")]};var{hardline:fT}=ue.builders,yT={print:({node:r,path:e,print:t})=>[e.call(t,"expression"),fT,"=: ",r.name]};var{hardline:Z5,join:wT}=ue.builders,gT={print:({path:r,print:e})=>["switch ",r.call(e,"expression"),Z5,wT(Z5,r.map(e,"cases"))]};var N0={};gg(N0,{addition:()=>Mo,assignment:()=>_0,bit:()=>qi,equality:()=>Ar,exponentiation:()=>TT,inequality:()=>ei,logical:()=>ir,multiplication:()=>F0,shift:()=>rs});var _0={match:r=>["=","|=","^=","&=","<<=",">>=","+=","-=","*=","/=","%="].includes(r),print:(r,e,t)=>[e.call(t,"left"),` ${r.operator}`,Dn(e.call(t,"right"),r.right)]};var{group:xT,line:eb}=ue.builders,DT=(r,e,t,n)=>{let o=n.experimentalOperatorPosition==="end"?[" ",r.operator,eb,e.call(t,"right")]:[eb,r.operator," ",e.call(t,"right")],{parent:u}=e;return r.left.type!=="BinaryOperation"&&(u.type!=="BinaryOperation"||_0.match(u.operator))?xT(o):o},Ks=(r,e)=>(t,n,o,u)=>{let d=r(n),y=e(n);return d([n.call(o,"left"),y(DT(t,n,o,u))])};var Fs=({type:r,operator:e},t)=>r!=="BinaryOperation"||t.some(n=>n.match(e));var{group:bT}=ue.builders,Ou=r=>e=>t=>{let{parent:n}=e;return Fs(n,r)?bT(t):t};var{indent:ET}=ue.builders,K0=["ReturnStatement","IfStatement","ForStatement","WhileStatement"],Mu=r=>e=>t=>{for(let n=0,{node:o}=e;;n+=1){let u=e.getParentNode(n);if(K0.includes(u.type))return t;if(Fs(u,r))return ET(t);if(o===u.right)return t;o=u}};var Vr=r=>Ks(Ou(r),Mu(r));var{indent:CT}=ue.builders,ST=r=>e=>{for(let t=0,{node:n}=r;;t+=1){let o=r.getParentNode(t);if(K0.includes(o.type)||o.type==="Conditional"&&o.condition===n)return e;if(Fs(o,[]))return CT(e);if(n===o.right)return e;n=o}},ir={match:r=>["&&","||"].includes(r),print:Ks(Ou([]),ST)};var Ar={match:r=>["==","!="].includes(r),print:Vr([ir])};var ei={match:r=>["<",">","<=",">="].includes(r),print:Vr([ir,Ar])};var qi={match:r=>["&","|","^"].includes(r),print:Vr([ei,Ar,ir])};var rs={match:r=>["<<",">>"].includes(r),print:Vr([qi,ei,Ar,ir])};var Mo={match:r=>["+","-"].includes(r),print:Vr([rs,qi,ei,Ar,ir])};var F0={match:r=>["*","/","%"].includes(r),print:Vr([Mo,rs,qi,ei,Ar,ir])};var{group:vT}=ue.builders,TT={match:r=>r==="**",print:Ks(()=>r=>vT(r),Mu([F0,Mo,rs,qi,ei,Ar,ir]))};var AT={print:({node:r,path:e,print:t,options:n})=>{let o=Object.values(N0).find(u=>u.match(r.operator));if(o===void 0)throw new Error(`Assertion error: no printer found for operator ${JSON.stringify(r.operator)}`);return o.print(r,e,t,n)}};var{hardline:tb,indent:_T}=ue.builders,KT={print:({node:r,options:e,path:t,print:n})=>r.statements.length===0&&!r.comments?"{}":["{",_T([tb,xn(t,"statements",e,n),Ot(r,t,e)]),tb,"}"]};var FT={print:({node:r})=>r.value?"true":"false"};var NT={print:()=>"break"};var PT={print:()=>"break;"};var kT=(r,e,t)=>r.parameters?[r.kind||"","(",Se(e.map(t,"parameters")),") "]:"",LT={print:({node:r,path:e,print:t})=>["catch ",kT(r,e,t),e.call(t,"body")]};var{group:Yu,hardline:P0,ifBreak:rb,indent:k0,line:Bu}=ue.builders,IT=(r,e,t,n)=>{let{parent:o}=e,u=o.type==="Conditional",d=u&&o.trueExpression===r,y=r.falseExpression.type==="Conditional",x=e.call(t,"condition"),E=Yu([r.condition.type==="TupleExpression"?x:rb(["(",ct(x),")"],x)," ?"]),T=k0([d?P0:Bu,e.call(t,"trueExpression")]),N=Yu([E,T],{id:Symbol("Conditional.trueExpression")}),P=" ";!y&&(n.tabWidth>2||n.useTabs)&&(P=n.useTabs?" ":" ".repeat(n.tabWidth-1));let $=e.call(t,"falseExpression"),V=[u?P0:Bu,":",y?[" ",$]:rb([P,k0($)],[" ",$],{groupId:N.id})];return Yu([N,V])},RT=(r,e)=>Yu([r.call(e,"condition"),k0([r.parent.type==="Conditional"?P0:Bu,"? ",r.call(e,"trueExpression"),Bu,": ",r.call(e,"falseExpression")])]),OT={print:({node:r,path:e,print:t,options:n})=>n.experimentalTernaries?IT(r,e,t,n):RT(e,t)};var MT={print:()=>"continue"};var YT={print:()=>"continue;"};var{group:ib,hardline:BT,ifBreak:UT,line:Yo,softline:VT}=ue.builders,$T=(r,e,t)=>{let n=[];if(r.baseContracts.length>0&&n.push(["is",Se(e.map(t,"baseContracts"),{firstSeparator:Yo})]),r.storageLayout&&n.push(["layout at",ct(e.call(t,"storageLayout"),{firstSeparator:Yo,lastSeparator:r.baseContracts.length===0?Yo:""})]),n.length===0)return Yo;if(n.length===1)return[" ",n];let o=Symbol("ContractSpecifiers.inheritance");return Se([ib(n[0],{id:o}),n[1]],{firstSeparator:Yo,separator:UT("",VT,{groupId:o})})},HT=(r,e,t,n)=>{let o=Ot(r,e,t);return r.subNodes.length>0||o?.length?ct([xn(e,"subNodes",t,n),o],{firstSeparator:BT,grouped:!1}):""},qT={print:({node:r,options:e,path:t,print:n})=>[ib([r.kind==="abstract"?"abstract contract":r.kind," ",r.name,$T(r,t,n),"{"]),HT(r,t,e,n),"}"]};var jT=(r,e,t)=>r.parameters?.length>0?Se(e.map(t,"parameters")):"",GT={print:({node:r,path:e,print:t})=>["error ",r.name,"(",jT(r,e,t),");"]};var WT={print:({node:r})=>r.value};var{group:zT,indent:QT,line:nb}=ue.builders,XT=(r,e,t)=>r.body.type==="Block"?[" ",e.call(t,"body")," "]:zT([QT([nb,e.call(t,"body")]),nb]),JT={print:({node:r,path:e,print:t})=>["do",XT(r,e,t),"while (",ct(e.call(t,"condition")),");"]};var ZT=r=>r.stateMutability?.length>0?[" ",r.stateMutability]:"",eA={print:({node:r})=>[r.name,ZT(r)]};var tA={print:({path:r,print:e})=>["emit ",r.call(e,"eventCall"),";"]};var{group:rA,hardline:iA}=ue.builders,nA={print:({node:r,path:e,print:t})=>rA(["enum ",r.name," {",Se(e.map(t,"members"),{firstSeparator:iA}),"}"])};var sA={print:({node:r})=>r.name};var oA=(r,e,t)=>r.parameters?.length>0?Se(e.map(t,"parameters")):"",aA={print:({node:r,path:e,print:t})=>["event ",r.name,"(",oA(r,e,t),")",r.isAnonymous?" anonymous":"",";"]};var{hardline:lA}=ue.builders,uA={print:({node:r,options:e,path:t,print:n})=>{let o=[],{parent:u}=t;if(u.type==="IfStatement"&&r.comments?.length){let d=Ot(r,t,e);d?.length&&(o.push(d),o.push(lA))}return o.push(t.call(n,"expression")),o.push(r.omitSemicolon?"":";"),o}};var cA={print:({node:r,path:e,print:t})=>[e.call(t,"typeName")," constant ",r.name," =",Dn(e.call(t,"initialValue"),r.initialValue),";"]};var{group:hA,indent:pA,line:Uu}=ue.builders,sb=(r,e,t)=>[r.initExpression?e.call(t,"initExpression"):"",";"],ob=(r,e,t)=>[r.conditionExpression?e.call(t,"conditionExpression"):"",";"],dA=(r,e,t)=>r.body.type==="Block"?[" ",e.call(t,"body")]:hA(pA([Uu,e.call(t,"body")])),mA={print:({node:r,path:e,print:t})=>["for (",ct(r.loopExpression.expression?[sb(r,e,t),Uu,ob(r,e,t),Uu,e.call(t,"loopExpression")]:[sb(r,e,t),r.initExpression||r.conditionExpression?Uu:"",ob(r,e,t)]),")",dA(r,e,t)]};var{group:fA,indentIfBreak:yA,label:wA,line:ab,softline:L0}=ue.builders,gA=(r,e,t)=>{let n=r.map(e,"identifiers");return["{",Se(r.map(e,"arguments").map((o,u)=>[n[u],": ",o]),{firstSeparator:t.bracketSpacing?ab:L0,lastSeparator:[t.bracketSpacing?ab:L0,"})"]})]},xA=(r,e)=>Se(r.map(e,"arguments"),{lastSeparator:[L0,")"]}),DA={print:({node:r,path:e,print:t,options:n})=>{let o=e.call(t,"expression"),u=")";return r.arguments?.length>0&&(r.identifiers?.length>0?u=gA(e,t,n):u=xA(e,t)),o.label==="MemberAccessChain"?(o=fA(o.contents,{id:Symbol("FunctionCall.expression")}),u=yA(u,{groupId:o.id}),wA("MemberAccessChain",[o,"(",u])):[o,"(",u].flat()}};var{dedent:bA,group:I0,indent:EA,join:CA,line:ji}=ue.builders,{getNextNonSpaceNonCommentCharacter:SA}=St,vA=(r,e)=>{if(r.isConstructor&&!r.name)return"constructor";if(r.name)return`function ${r.name}`;if(r.isReceiveEther)return"receive";let t={fallback:"fallback",function:"function"},n=e.originalText.slice(e.locStart(r),e.locStart(r)+8);return t[n]},lb=(r,e,t,n,o)=>{if(e[r]?.length>0)return Se(t.map(n,r),{grouped:!1});if(e.comments?.length>0){let u=Ot(e,t,o,d=>SA(o.originalText,o.locEnd(d))===")");return u.length>0?ct(u):""}return""},TA=r=>r.visibility&&r.visibility!=="default"?[ji,r.visibility]:"",AA=r=>r.isVirtual?[ji,"virtual"]:"",_A=(r,e,t)=>r.override?r.override.length===0?[ji,"override"]:[ji,"override(",Se(e.map(t,"override")),")"]:"",KA=r=>r.stateMutability?[ji,r.stateMutability]:"",FA=(r,e,t)=>r.modifiers.length>0?[ji,CA(ji,e.map(t,"modifiers"))]:"",NA=(r,e,t,n)=>r.returnParameters?[ji,"returns (",I0(lb("returnParameters",r,e,t,n)),")"]:"",PA=r=>r.body?bA(ji):";",kA=(r,e,t)=>r.body?e.call(t,"body"):"",LA={print:({node:r,path:e,print:t,options:n})=>[I0([vA(r,n),"(",lb("parameters",r,e,t,n),")",EA(I0([Ot(r,e,n),TA(r),KA(r),AA(r),_A(r,e,t),FA(r,e,t),NA(r,e,t,n),PA(r)]))]),kA(r,e,t)]};var{group:ub,indent:IA,line:R0}=ue.builders,RA=(r,e,t)=>r.returnTypes.length>0?[R0,"returns (",Se(e.map(t,"returnTypes")),")"]:"",OA=r=>r.visibility&&r.visibility!=="default"?[R0,r.visibility]:"",MA=r=>r.stateMutability&&r.stateMutability!=="default"?[R0,r.stateMutability]:"",YA={print:({node:r,path:e,print:t})=>ub(["function(",Se(e.map(t,"parameterTypes"),{grouped:!1}),")",IA(ub([OA(r),MA(r),RA(r,e,t)]))])};function Gi(r,e){let t={quote:'"',regex:/"/g},n={quote:"'",regex:/'/g},o=e.singleQuote?n:t,u=o===n?t:n,d=!1;if(r.includes(o.quote)||r.includes(u.quote)){let x=(r.match(o.regex)||[]).length,E=(r.match(u.regex)||[]).length;d=x>E}let y=d?u.quote:o.quote;return St.makeString(r,y)}function cb(r){return r?.comments?.length>0&&r.comments.some(e=>e.value.trim()==="prettier-ignore")}var{join:BA,hardline:UA}=ue.builders,VA={print:({node:r,options:e})=>{let t=r.parts.map(n=>`hex${Gi(n,e)}`);return BA(UA,t)}};var $A={print:({node:r})=>r.value};var HA={print:({node:r})=>r.name};var{group:hb,hardline:O0,indent:pb,line:db}=ue.builders,qA=(r,e,t)=>{if(r.trueBody.type==="Block")return[" ",e.call(t,"trueBody")];let n=r.trueBody.type==="IfStatement";return hb(pb([n?O0:db,e.call(t,"trueBody")]))},jA=(r,e,t)=>r.falseBody.type==="Block"||r.falseBody.type==="IfStatement"?[" ",e.call(t,"falseBody")]:hb(pb([db,e.call(t,"falseBody")])),GA=(r,e,t,n)=>r.falseBody?[r.trueBody.type==="Block"&&n.length===0?" ":O0,"else",jA(r,e,t)]:"",WA={print:({node:r,options:e,path:t,print:n})=>{let u=(r.comments||[]).filter(y=>!y.leading&&!y.trailing),d=[];return d.push("if (",ct(t.call(n,"condition")),")"),d.push(qA(r,t,n)),u.length&&r.falseBody&&(d.push(O0),d.push(Ot(r,t,e))),d.push(GA(r,t,n,u)),d}};var fb=ai(p0(),1),yb=ai(ts(),1);var{group:zA,line:mb,softline:QA}=ue.builders,XA={print:({node:r,options:e})=>{let t=Gi(r.path,e),n;if(r.unitAlias)n=e.originalText.slice(e.locStart(r),e.locStart(r.pathLiteral)).includes("*")?["* as ",r.unitAlias," from ",t]:[t," as ",r.unitAlias];else if(r.symbolAliases){let o=(0,fb.default)(e.compiler),u=r.symbolAliases.map(([x,E])=>E?`${x} as ${E}`:x),d,y;o&&(0,yb.default)(o,">=0.7.4")&&u.length>1?(d=e.bracketSpacing?mb:QA,y=[",",mb]):(d=e.bracketSpacing?" ":"",y=", "),n=["{",Se(u,{firstSeparator:d,separator:y}),"} from ",t]}else n=t;return zA(["import ",n,";"])}};var{group:wb,indent:JA,indentIfBreak:ZA,label:e_,softline:gb}=ue.builders,t_={print:({path:r,print:e})=>{let t=r.call(e,"base"),n=wb([JA([gb,r.call(e,"index")]),gb,"]"]);return t.label==="MemberAccessChain"?(t=wb(t.contents,{id:Symbol("IndexAccess.base")}),n=ZA(n,{groupId:t.id}),e_("MemberAccessChain",[t,"[",n])):[t,"[",n].flat()}};var r_={print:({node:r,path:e,print:t})=>[e.call(t,"base"),"[",r.indexStart?e.call(t,"indexStart"):"",":",r.indexEnd?e.call(t,"indexEnd"):"","]"]};var i_=(r,e,t)=>r.arguments?.length?["(",Se(e.map(t,"arguments")),")"]:"",n_={print:({node:r,path:e,print:t})=>[e.call(t,"baseName"),i_(r,e,t)]};var s_={print:({node:r,path:e,print:t,options:n})=>["assembly ",r.language?`${Gi(r.language,n)} `:"",r.flags?.length>0?["(",Se(r.flags.map(o=>Gi(o,n))),") "]:"",e.call(t,"body")]};var{dedent:o_,line:a_}=ue.builders,l_={print:({node:r})=>[o_(a_),r.name,":"]};var xb=(r,e,t,n)=>e[`${r}Name`]?[t.call(n,`${r}Type`)," ",t.call(n,`${r}Name`)]:t.call(n,`${r}Type`),u_={print:({node:r,path:e,print:t})=>["mapping(",xb("key",r,e,t)," => ",xb("value",r,e,t),")"]};var{group:Db,indent:c_,label:bb,softline:h_}=ue.builders,p_=(r,e)=>{let t=0,n=r,o=e.getParentNode(t);for(;o&&["FunctionCall","IndexAccess","NameValueExpression","MemberAccess"].includes(o.type);){switch(o.type){case"MemberAccess":return!1;case"IndexAccess":if(n!==o.base)return!0;break;case"FunctionCall":if(n!==o.expression)return!0;break;default:break}t+=1,n=o,o=e.getParentNode(t)}return!0},d_=r=>{let e=r.findIndex(o=>o.label==="separator"),t=r.slice(0,e),n=Db(c_(r.slice(e)));return bb("MemberAccessChain",Db([t,n]))},m_={print:({node:r,path:e,print:t})=>{let n=e.call(t,"expression");Array.isArray(n)&&(n=n.flat());let o=[n,bb("separator",[h_,"."]),r.memberName].flat();return p_(r,e)?d_(o):o}};var{dedent:f_,group:Eb,indent:y_,line:Bo}=ue.builders,w_=(r,e,t)=>r.parameters?.length>0?["(",Se(e.map(t,"parameters"),{separator:[",",Bo]}),")"]:"()",g_=r=>r.isVirtual?[Bo,"virtual"]:"",x_=(r,e,t)=>r.override?r.override.length===0?[Bo,"override"]:[Bo,"override(",Se(e.map(t,"override")),")"]:"",D_=(r,e,t)=>r.body?r.isVirtual?Eb(e.call(t,"body")):[e.call(t,"body")]:";",b_={print:({node:r,path:e,print:t})=>["modifier ",r.name,w_(r,e,t),Eb(y_([g_(r),x_(r,e,t),r.body?f_(Bo):""])),D_(r,e,t)]};var E_=(r,e,t,n)=>r.arguments?r.arguments.length>0?["(",Se(e.map(t,"arguments")),")"]:"()":r.comments?.some(o=>!o.leading&&!o.trailing&&!o.printed)?["(",Ot(r,e,n),")"]:"",C_={print:({node:r,path:e,print:t,options:n})=>[r.name,E_(r,e,t,n)]};var S_={print:({path:r,print:e})=>[r.call(e,"expression"),"{",r.call(e,"arguments"),"}"]};var{line:v_,softline:T_}=ue.builders,A_={print:({node:r,path:e,print:t,options:n})=>Se(e.map(t,"arguments").map((o,u)=>[r.names[u],": ",o]),{firstSeparator:n.bracketSpacing?v_:T_})};var __={print:({path:r,print:e})=>["new ",r.call(e,"typeName")]};var K_={print:({node:r})=>r.subdenomination?[r.number," ",r.subdenomination]:r.number};var F_={print:({node:r})=>["pragma ",r.name," ",r.value,";"]};var{group:N_,indent:P_,line:k_}=ue.builders,L_=(r,e,t,n)=>r.expression?r.expression.type==="TupleExpression"||n.experimentalTernaries&&r.expression.type==="Conditional"?[" ",e.call(t,"expression")]:N_(P_([k_,e.call(t,"expression")])):"",I_={print:({node:r,path:e,print:t,options:n})=>["return",L_(r,e,t,n),";"]};var R_={print:({path:r,print:e})=>["revert ",r.call(e,"revertCall"),";"]};var{line:O_}=ue.builders,M_={print:({node:r,options:e,path:t,print:n})=>[xn(t,"children",e,n),Ot(r,t,e),e.parentParser?"":O_]};var Y_=(r,e,t)=>r.initialValue?[" =",Dn(e.call(t,"initialValue"),r.initialValue)]:"",B_={print:({node:r,path:e,print:t})=>[...e.map(t,"variables"),Y_(r,e,t),";"]};var{join:U_,hardline:V_}=ue.builders,$_={print:({node:r,options:e})=>{let t=r.parts.map((n,o)=>(r.isUnicode[o]?"unicode":"")+Gi(n,e));return U_(V_,t)}};var{hardline:M0}=ue.builders,H_={print:({node:r,path:e,print:t})=>["struct ",r.name," {",r.members.length>0?Se(e.map(t,"members"),{firstSeparator:M0,separator:[";",M0],lastSeparator:[";",M0]}):"","}"]};var q_={print:()=>"throw;"};var{join:j_,line:G_}=ue.builders,W_=(r,e,t)=>r.returnParameters?["returns (",Se(e.map(t,"returnParameters")),")"]:"",z_={print:({node:r,path:e,print:t})=>{let n=["try",ct(e.call(t,"expression"),{firstSeparator:G_})],o=W_(r,e,t);return o&&(n=n.concat([o," "])),n=n.concat([e.call(t,"body")," ",j_(" ",e.map(t,"catchClauses"))]),n}};var{group:Q_}=ue.builders,X_=(r,e,t)=>r.components?.length===1&&r.components[0].type==="BinaryOperation"?e.map(t,"components"):Se(e.map(t,"components")),J_={print:({node:r,path:e,print:t})=>Q_([r.isArray?"[":"(",X_(r,e,t),r.isArray?"]":")"])};var Z_={print:({node:r})=>["type ",r.name," is ",r.definition.name,";"]};var eK={print:({node:r,path:e,print:t})=>r.isPrefix?[r.operator,r.operator==="delete"?" ":"",e.call(t,"subExpression")]:[e.call(t,"subExpression"),r.operator]};var{group:tK}=ue.builders,rK={print:({path:r,print:e})=>tK(["unchecked ",r.call(e,"block")])};var iK={print:({node:r})=>r.namePath};var{line:nK,softline:sK}=ue.builders,oK={print:({node:r,path:e,print:t,options:n})=>["using ",r.functions?.length?["{",Se(r.functions.map((o,u)=>r.operators[u]?[o," as ",r.operators[u]]:o),{firstSeparator:n.bracketSpacing?nK:sK}),"}"]:r.libraryName," for ",r.typeName?e.call(t,"typeName"):"*",r.isGlobal?" global;":";"]};var{group:aK,indent:lK,line:Vu}=ue.builders,uK=r=>r.isIndexed?" indexed":"",cK=r=>r.visibility&&r.visibility!=="default"?[Vu,r.visibility]:"",hK=r=>r.isDeclaredConst?" constant":"",pK=r=>r.storageLocation&&r.visibility!=="default"?[Vu,r.storageLocation]:"",dK=r=>r.isImmutable?" immutable":"",mK=r=>r.isTransient?" transient":"",fK=(r,e,t)=>r.override?r.override.length===0?[Vu,"override"]:[Vu,"override(",Se(e.map(t,"override")),")"]:"",yK=r=>r.name?[" ",r.name]:"",wK={print:({node:r,path:e,print:t})=>r.typeName?aK([e.call(t,"typeName"),lK([uK(r),cK(r),hK(r),pK(r),dK(r),mK(r),fK(r,e,t),yK(r)])]):r.name};var{group:Cb,indentIfBreak:gK}=ue.builders,xK=(r,e)=>e?["(",Se(r),")"]:r,DK=(r,e,t)=>r.initialValue?[" =",Dn(e.call(t,"initialValue"),r.initialValue)]:"",bK={print:({node:r,path:e,print:t})=>{let n=r.variables.filter(d=>d?.typeName).length===0,o=Cb([n?"var ":"",xK(e.map(t,"variables"),r.variables.length>1||n)],{id:Symbol("VariableDeclarationStatement.variables")}),u=DK(r,e,t);return Cb([o,gK(u,{groupId:o.id}),r.omitSemicolon?"":";"])}};var{group:EK,indent:CK,line:SK}=ue.builders,vK=(r,e,t)=>r.body.type==="Block"?[" ",e.call(t,"body")]:EK(CK([SK,e.call(t,"body")])),TK={print:({node:r,path:e,print:t})=>["while (",ct(e.call(t,"condition")),")",vK(r,e,t)]};function Y0(r){let e=r.getValue();if(e===null||typeof e!="object")return;Object.keys(e).forEach(n=>{switch(n){case"loc":case"range":break;case"comments":r.each(o=>{let u=o.getValue();u.printed=!0},"comments");break;default:if(typeof e[n]=="object"){if(Array.isArray(e[n])){r.each(Y0,n);return}r.call(Y0,n)}}})}var Sb=Y0;function AK(r){let e;return()=>(typeof e>"u"&&(e=r()),e)}var _K=AK(()=>(Ru("The 'antlr' parser has been deprecated, please use 'slang' instead."),!0));function KK(r,e,t){_K();let n=r.getValue();if(n===null)return"";if(!(n.type in $u))throw new Error(`Unknown type: ${JSON.stringify(n.type)}`);return cb(n)?(Sb(r),e.originalText.slice(e.locStart(n),e.locEnd(n)+1)):$u[n.type].print({node:n,options:e,path:r,print:t})}var vb=KK;var Hu=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t]=M.Selectors.sequence(this.cst);return{members:new qf(t)}}),B(this.cst.kind,h.SourceUnit)}get members(){return this.fetch().members}},Uo=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{pragmaKeyword:t,pragma:new wf(n),semicolon:o}}),B(this.cst.kind,h.PragmaDirective)}get pragmaKeyword(){return this.fetch().pragmaKeyword}get pragma(){return this.fetch().pragma}get semicolon(){return this.fetch().semicolon}},Vo=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{abicoderKeyword:t,version:new gf(n)}}),B(this.cst.kind,h.AbicoderPragma)}get abicoderKeyword(){return this.fetch().abicoderKeyword}get version(){return this.fetch().version}},$o=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{experimentalKeyword:t,feature:new xf(n)}}),B(this.cst.kind,h.ExperimentalPragma)}get experimentalKeyword(){return this.fetch().experimentalKeyword}get feature(){return this.fetch().feature}},Ho=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{solidityKeyword:t,sets:new cy(n)}}),B(this.cst.kind,h.VersionPragma)}get solidityKeyword(){return this.fetch().solidityKeyword}get sets(){return this.fetch().sets}},qo=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{start:new fl(t),minus:n,end:new fl(o)}}),B(this.cst.kind,h.VersionRange)}get start(){return this.fetch().start}get minus(){return this.fetch().minus}get end(){return this.fetch().end}},jo=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{operator:t===void 0?void 0:new bf(t),literal:new fl(n)}}),B(this.cst.kind,h.VersionTerm)}get operator(){return this.fetch().operator}get literal(){return this.fetch().literal}},Go=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{importKeyword:t,clause:new Ef(n),semicolon:o}}),B(this.cst.kind,h.ImportDirective)}get importKeyword(){return this.fetch().importKeyword}get clause(){return this.fetch().clause}get semicolon(){return this.fetch().semicolon}},Wo=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{path:new sr(t),alias:n===void 0?void 0:new Xo(n)}}),B(this.cst.kind,h.PathImport)}get path(){return this.fetch().path}get alias(){return this.fetch().alias}},zo=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u]=M.Selectors.sequence(this.cst);return{asterisk:t,alias:new Xo(n),fromKeyword:o,path:new sr(u)}}),B(this.cst.kind,h.NamedImport)}get asterisk(){return this.fetch().asterisk}get alias(){return this.fetch().alias}get fromKeyword(){return this.fetch().fromKeyword}get path(){return this.fetch().path}},Qo=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{openBrace:t,symbols:new py(n),closeBrace:o,fromKeyword:u,path:new sr(d)}}),B(this.cst.kind,h.ImportDeconstruction)}get openBrace(){return this.fetch().openBrace}get symbols(){return this.fetch().symbols}get closeBrace(){return this.fetch().closeBrace}get fromKeyword(){return this.fetch().fromKeyword}get path(){return this.fetch().path}},B0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{name:t,alias:n===void 0?void 0:new Xo(n)}}),B(this.cst.kind,h.ImportDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}},Xo=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{asKeyword:t,identifier:n}}),B(this.cst.kind,h.ImportAlias)}get asKeyword(){return this.fetch().asKeyword}get identifier(){return this.fetch().identifier}},bn=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d,y]=M.Selectors.sequence(this.cst);return{usingKeyword:t,clause:new Cf(n),forKeyword:o,target:new vf(u),globalKeyword:d===void 0?void 0:d,semicolon:y}}),B(this.cst.kind,h.UsingDirective)}get usingKeyword(){return this.fetch().usingKeyword}get clause(){return this.fetch().clause}get forKeyword(){return this.fetch().forKeyword}get target(){return this.fetch().target}get globalKeyword(){return this.fetch().globalKeyword}get semicolon(){return this.fetch().semicolon}},Jo=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openBrace:t,symbols:new dy(n),closeBrace:o}}),B(this.cst.kind,h.UsingDeconstruction)}get openBrace(){return this.fetch().openBrace}get symbols(){return this.fetch().symbols}get closeBrace(){return this.fetch().closeBrace}},U0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{name:new Mt(t),alias:n===void 0?void 0:new V0(n)}}),B(this.cst.kind,h.UsingDeconstructionSymbol)}get name(){return this.fetch().name}get alias(){return this.fetch().alias}},V0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{asKeyword:t,operator:new Sf(n)}}),B(this.cst.kind,h.UsingAlias)}get asKeyword(){return this.fetch().asKeyword}get operator(){return this.fetch().operator}},Zo=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d,y,x]=M.Selectors.sequence(this.cst);return{abstractKeyword:t===void 0?void 0:t,contractKeyword:n,name:o,specifiers:new Gf(u),openBrace:d,members:new Wf(y),closeBrace:x}}),B(this.cst.kind,h.ContractDefinition)}get abstractKeyword(){return this.fetch().abstractKeyword}get contractKeyword(){return this.fetch().contractKeyword}get name(){return this.fetch().name}get specifiers(){return this.fetch().specifiers}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}},Ns=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{isKeyword:t,types:new my(n)}}),B(this.cst.kind,h.InheritanceSpecifier)}get isKeyword(){return this.fetch().isKeyword}get types(){return this.fetch().types}},$0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{typeName:new Mt(t),arguments:n===void 0?void 0:new ns(n)}}),B(this.cst.kind,h.InheritanceType)}get typeName(){return this.fetch().typeName}get arguments(){return this.fetch().arguments}},ea=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{layoutKeyword:t,atKeyword:n,expression:new Ce(o)}}),B(this.cst.kind,h.StorageLayoutSpecifier)}get layoutKeyword(){return this.fetch().layoutKeyword}get atKeyword(){return this.fetch().atKeyword}get expression(){return this.fetch().expression}},ta=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d,y]=M.Selectors.sequence(this.cst);return{interfaceKeyword:t,name:n,inheritance:o===void 0?void 0:new Ns(o),openBrace:u,members:new zf(d),closeBrace:y}}),B(this.cst.kind,h.InterfaceDefinition)}get interfaceKeyword(){return this.fetch().interfaceKeyword}get name(){return this.fetch().name}get inheritance(){return this.fetch().inheritance}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}},ra=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{libraryKeyword:t,name:n,openBrace:o,members:new Qf(u),closeBrace:d}}),B(this.cst.kind,h.LibraryDefinition)}get libraryKeyword(){return this.fetch().libraryKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}},En=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{structKeyword:t,name:n,openBrace:o,members:new Xf(u),closeBrace:d}}),B(this.cst.kind,h.StructDefinition)}get structKeyword(){return this.fetch().structKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}},H0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{typeName:new nr(t),name:n,semicolon:o}}),B(this.cst.kind,h.StructMember)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}get semicolon(){return this.fetch().semicolon}},Cn=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{enumKeyword:t,name:n,openBrace:o,members:new fy(u),closeBrace:d}}),B(this.cst.kind,h.EnumDefinition)}get enumKeyword(){return this.fetch().enumKeyword}get name(){return this.fetch().name}get openBrace(){return this.fetch().openBrace}get members(){return this.fetch().members}get closeBrace(){return this.fetch().closeBrace}},ia=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d,y]=M.Selectors.sequence(this.cst);return{typeName:new nr(t),constantKeyword:n,name:o,equal:u,value:new Ce(d),semicolon:y}}),B(this.cst.kind,h.ConstantDefinition)}get typeName(){return this.fetch().typeName}get constantKeyword(){return this.fetch().constantKeyword}get name(){return this.fetch().name}get equal(){return this.fetch().equal}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}},na=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{typeName:new nr(t),attributes:new Jf(n),name:o,value:u===void 0?void 0:new q0(u),semicolon:d}}),B(this.cst.kind,h.StateVariableDefinition)}get typeName(){return this.fetch().typeName}get attributes(){return this.fetch().attributes}get name(){return this.fetch().name}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}},q0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{equal:t,value:new Ce(n)}}),B(this.cst.kind,h.StateVariableDefinitionValue)}get equal(){return this.fetch().equal}get value(){return this.fetch().value}},Sn=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d,y]=M.Selectors.sequence(this.cst);return{functionKeyword:t,name:new _f(n),parameters:new ti(o),attributes:new Zf(u),returns:d===void 0?void 0:new Ps(d),body:new is(y)}}),B(this.cst.kind,h.FunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}get body(){return this.fetch().body}},ti=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openParen:t,parameters:new yy(n),closeParen:o}}),B(this.cst.kind,h.ParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}},j0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{typeName:new nr(t),storageLocation:n===void 0?void 0:new ks(n),name:o===void 0?void 0:o}}),B(this.cst.kind,h.Parameter)}get typeName(){return this.fetch().typeName}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}},Kr=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{overrideKeyword:t,overridden:n===void 0?void 0:new G0(n)}}),B(this.cst.kind,h.OverrideSpecifier)}get overrideKeyword(){return this.fetch().overrideKeyword}get overridden(){return this.fetch().overridden}},G0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openParen:t,paths:new wy(n),closeParen:o}}),B(this.cst.kind,h.OverridePathsDeclaration)}get openParen(){return this.fetch().openParen}get paths(){return this.fetch().paths}get closeParen(){return this.fetch().closeParen}},Ps=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{returnsKeyword:t,variables:new ti(n)}}),B(this.cst.kind,h.ReturnsDeclaration)}get returnsKeyword(){return this.fetch().returnsKeyword}get variables(){return this.fetch().variables}},sa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u]=M.Selectors.sequence(this.cst);return{constructorKeyword:t,parameters:new ti(n),attributes:new ey(o),body:new xi(u)}}),B(this.cst.kind,h.ConstructorDefinition)}get constructorKeyword(){return this.fetch().constructorKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}},oa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u]=M.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new ti(n),attributes:new ty(o),body:new is(u)}}),B(this.cst.kind,h.UnnamedFunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}},aa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{fallbackKeyword:t,parameters:new ti(n),attributes:new ry(o),returns:u===void 0?void 0:new Ps(u),body:new is(d)}}),B(this.cst.kind,h.FallbackFunctionDefinition)}get fallbackKeyword(){return this.fetch().fallbackKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}get body(){return this.fetch().body}},la=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u]=M.Selectors.sequence(this.cst);return{receiveKeyword:t,parameters:new ti(n),attributes:new iy(o),body:new is(u)}}),B(this.cst.kind,h.ReceiveFunctionDefinition)}get receiveKeyword(){return this.fetch().receiveKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}},ua=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{modifierKeyword:t,name:n,parameters:o===void 0?void 0:new ti(o),attributes:new ny(u),body:new is(d)}}),B(this.cst.kind,h.ModifierDefinition)}get modifierKeyword(){return this.fetch().modifierKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get body(){return this.fetch().body}},Fr=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{name:new Mt(t),arguments:n===void 0?void 0:new ns(n)}}),B(this.cst.kind,h.ModifierInvocation)}get name(){return this.fetch().name}get arguments(){return this.fetch().arguments}},vn=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{eventKeyword:t,name:n,parameters:new W0(o),anonymousKeyword:u===void 0?void 0:u,semicolon:d}}),B(this.cst.kind,h.EventDefinition)}get eventKeyword(){return this.fetch().eventKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get anonymousKeyword(){return this.fetch().anonymousKeyword}get semicolon(){return this.fetch().semicolon}},W0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openParen:t,parameters:new gy(n),closeParen:o}}),B(this.cst.kind,h.EventParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}},z0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{typeName:new nr(t),indexedKeyword:n===void 0?void 0:n,name:o===void 0?void 0:o}}),B(this.cst.kind,h.EventParameter)}get typeName(){return this.fetch().typeName}get indexedKeyword(){return this.fetch().indexedKeyword}get name(){return this.fetch().name}},Tn=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{typeKeyword:t,name:n,isKeyword:o,valueType:new $r(u),semicolon:d}}),B(this.cst.kind,h.UserDefinedValueTypeDefinition)}get typeKeyword(){return this.fetch().typeKeyword}get name(){return this.fetch().name}get isKeyword(){return this.fetch().isKeyword}get valueType(){return this.fetch().valueType}get semicolon(){return this.fetch().semicolon}},An=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u]=M.Selectors.sequence(this.cst);return{errorKeyword:t,name:n,members:new Q0(o),semicolon:u}}),B(this.cst.kind,h.ErrorDefinition)}get errorKeyword(){return this.fetch().errorKeyword}get name(){return this.fetch().name}get members(){return this.fetch().members}get semicolon(){return this.fetch().semicolon}},Q0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openParen:t,parameters:new xy(n),closeParen:o}}),B(this.cst.kind,h.ErrorParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}},X0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{typeName:new nr(t),name:n===void 0?void 0:n}}),B(this.cst.kind,h.ErrorParameter)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}},ca=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u]=M.Selectors.sequence(this.cst);return{operand:new nr(t),openBracket:n,index:o===void 0?void 0:new Ce(o),closeBracket:u}}),B(this.cst.kind,h.ArrayTypeName)}get operand(){return this.fetch().operand}get openBracket(){return this.fetch().openBracket}get index(){return this.fetch().index}get closeBracket(){return this.fetch().closeBracket}},ha=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u]=M.Selectors.sequence(this.cst);return{functionKeyword:t,parameters:new ti(n),attributes:new sy(o),returns:u===void 0?void 0:new Ps(u)}}),B(this.cst.kind,h.FunctionType)}get functionKeyword(){return this.fetch().functionKeyword}get parameters(){return this.fetch().parameters}get attributes(){return this.fetch().attributes}get returns(){return this.fetch().returns}},pa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d,y]=M.Selectors.sequence(this.cst);return{mappingKeyword:t,openParen:n,keyType:new J0(o),equalGreaterThan:u,valueType:new Z0(d),closeParen:y}}),B(this.cst.kind,h.MappingType)}get mappingKeyword(){return this.fetch().mappingKeyword}get openParen(){return this.fetch().openParen}get keyType(){return this.fetch().keyType}get equalGreaterThan(){return this.fetch().equalGreaterThan}get valueType(){return this.fetch().valueType}get closeParen(){return this.fetch().closeParen}},J0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{keyType:new Rf(t),name:n===void 0?void 0:n}}),B(this.cst.kind,h.MappingKey)}get keyType(){return this.fetch().keyType}get name(){return this.fetch().name}},Z0=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{typeName:new nr(t),name:n===void 0?void 0:n}}),B(this.cst.kind,h.MappingValue)}get typeName(){return this.fetch().typeName}get name(){return this.fetch().name}},ef=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{addressKeyword:t,payableKeyword:n===void 0?void 0:n}}),B(this.cst.kind,h.AddressType)}get addressKeyword(){return this.fetch().addressKeyword}get payableKeyword(){return this.fetch().payableKeyword}},xi=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openBrace:t,statements:new oy(n),closeBrace:o}}),B(this.cst.kind,h.Block)}get openBrace(){return this.fetch().openBrace}get statements(){return this.fetch().statements}get closeBrace(){return this.fetch().closeBrace}},da=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{uncheckedKeyword:t,block:new xi(n)}}),B(this.cst.kind,h.UncheckedBlock)}get uncheckedKeyword(){return this.fetch().uncheckedKeyword}get block(){return this.fetch().block}},Wi=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{expression:new Ce(t),semicolon:n}}),B(this.cst.kind,h.ExpressionStatement)}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}},ma=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u]=M.Selectors.sequence(this.cst);return{assemblyKeyword:t,label:n===void 0?void 0:new sr(n),flags:o===void 0?void 0:new tf(o),body:new _r(u)}}),B(this.cst.kind,h.AssemblyStatement)}get assemblyKeyword(){return this.fetch().assemblyKeyword}get label(){return this.fetch().label}get flags(){return this.fetch().flags}get body(){return this.fetch().body}},tf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openParen:t,flags:new Dy(n),closeParen:o}}),B(this.cst.kind,h.AssemblyFlagsDeclaration)}get openParen(){return this.fetch().openParen}get flags(){return this.fetch().flags}get closeParen(){return this.fetch().closeParen}},_n=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d,y,x]=M.Selectors.sequence(this.cst);return{varKeyword:t===void 0?void 0:t,openParen:n,elements:new by(o),closeParen:u,equal:d,expression:new Ce(y),semicolon:x}}),B(this.cst.kind,h.TupleDeconstructionStatement)}get varKeyword(){return this.fetch().varKeyword}get openParen(){return this.fetch().openParen}get elements(){return this.fetch().elements}get closeParen(){return this.fetch().closeParen}get equal(){return this.fetch().equal}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}},rf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t]=M.Selectors.sequence(this.cst);return{member:t===void 0?void 0:new Of(t)}}),B(this.cst.kind,h.TupleDeconstructionElement)}get member(){return this.fetch().member}},fa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{typeName:new nr(t),storageLocation:n===void 0?void 0:new ks(n),name:o}}),B(this.cst.kind,h.TypedTupleMember)}get typeName(){return this.fetch().typeName}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}},ya=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{storageLocation:t===void 0?void 0:new ks(t),name:n}}),B(this.cst.kind,h.UntypedTupleMember)}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}},Kn=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{variableType:new Mf(t),storageLocation:n===void 0?void 0:new ks(n),name:o,value:u===void 0?void 0:new nf(u),semicolon:d}}),B(this.cst.kind,h.VariableDeclarationStatement)}get variableType(){return this.fetch().variableType}get storageLocation(){return this.fetch().storageLocation}get name(){return this.fetch().name}get value(){return this.fetch().value}get semicolon(){return this.fetch().semicolon}},nf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{equal:t,expression:new Ce(n)}}),B(this.cst.kind,h.VariableDeclarationValue)}get equal(){return this.fetch().equal}get expression(){return this.fetch().expression}},wa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d,y]=M.Selectors.sequence(this.cst);return{ifKeyword:t,openParen:n,condition:new Ce(o),closeParen:u,body:new Fn(d),elseBranch:y===void 0?void 0:new sf(y)}}),B(this.cst.kind,h.IfStatement)}get ifKeyword(){return this.fetch().ifKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}get elseBranch(){return this.fetch().elseBranch}},sf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{elseKeyword:t,body:new Fn(n)}}),B(this.cst.kind,h.ElseBranch)}get elseKeyword(){return this.fetch().elseKeyword}get body(){return this.fetch().body}},ga=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d,y,x]=M.Selectors.sequence(this.cst);return{forKeyword:t,openParen:n,initialization:new Yf(o),condition:new Bf(u),iterator:d===void 0?void 0:new Ce(d),closeParen:y,body:new Fn(x)}}),B(this.cst.kind,h.ForStatement)}get forKeyword(){return this.fetch().forKeyword}get openParen(){return this.fetch().openParen}get initialization(){return this.fetch().initialization}get condition(){return this.fetch().condition}get iterator(){return this.fetch().iterator}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}},xa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{whileKeyword:t,openParen:n,condition:new Ce(o),closeParen:u,body:new Fn(d)}}),B(this.cst.kind,h.WhileStatement)}get whileKeyword(){return this.fetch().whileKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get body(){return this.fetch().body}},Da=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d,y,x]=M.Selectors.sequence(this.cst);return{doKeyword:t,body:new Fn(n),whileKeyword:o,openParen:u,condition:new Ce(d),closeParen:y,semicolon:x}}),B(this.cst.kind,h.DoWhileStatement)}get doKeyword(){return this.fetch().doKeyword}get body(){return this.fetch().body}get whileKeyword(){return this.fetch().whileKeyword}get openParen(){return this.fetch().openParen}get condition(){return this.fetch().condition}get closeParen(){return this.fetch().closeParen}get semicolon(){return this.fetch().semicolon}},ba=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{continueKeyword:t,semicolon:n}}),B(this.cst.kind,h.ContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}get semicolon(){return this.fetch().semicolon}},Ea=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{breakKeyword:t,semicolon:n}}),B(this.cst.kind,h.BreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}get semicolon(){return this.fetch().semicolon}},Ca=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{returnKeyword:t,expression:n===void 0?void 0:new Ce(n),semicolon:o}}),B(this.cst.kind,h.ReturnStatement)}get returnKeyword(){return this.fetch().returnKeyword}get expression(){return this.fetch().expression}get semicolon(){return this.fetch().semicolon}},Sa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u]=M.Selectors.sequence(this.cst);return{emitKeyword:t,event:new Mt(n),arguments:new ns(o),semicolon:u}}),B(this.cst.kind,h.EmitStatement)}get emitKeyword(){return this.fetch().emitKeyword}get event(){return this.fetch().event}get arguments(){return this.fetch().arguments}get semicolon(){return this.fetch().semicolon}},va=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{tryKeyword:t,expression:new Ce(n),returns:o===void 0?void 0:new Ps(o),body:new xi(u),catchClauses:new ay(d)}}),B(this.cst.kind,h.TryStatement)}get tryKeyword(){return this.fetch().tryKeyword}get expression(){return this.fetch().expression}get returns(){return this.fetch().returns}get body(){return this.fetch().body}get catchClauses(){return this.fetch().catchClauses}},of=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{catchKeyword:t,error:n===void 0?void 0:new af(n),body:new xi(o)}}),B(this.cst.kind,h.CatchClause)}get catchKeyword(){return this.fetch().catchKeyword}get error(){return this.fetch().error}get body(){return this.fetch().body}},af=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{name:t===void 0?void 0:t,parameters:new ti(n)}}),B(this.cst.kind,h.CatchClauseError)}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}},Ta=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u]=M.Selectors.sequence(this.cst);return{revertKeyword:t,error:new Mt(n),arguments:new ns(o),semicolon:u}}),B(this.cst.kind,h.RevertStatement)}get revertKeyword(){return this.fetch().revertKeyword}get error(){return this.fetch().error}get arguments(){return this.fetch().arguments}get semicolon(){return this.fetch().semicolon}},Aa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{throwKeyword:t,semicolon:n}}),B(this.cst.kind,h.ThrowStatement)}get throwKeyword(){return this.fetch().throwKeyword}get semicolon(){return this.fetch().semicolon}},_a=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{leftOperand:new Ce(t),operator:n,rightOperand:new Ce(o)}}),B(this.cst.kind,h.AssignmentExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}},Ka=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{operand:new Ce(t),questionMark:n,trueExpression:new Ce(o),colon:u,falseExpression:new Ce(d)}}),B(this.cst.kind,h.ConditionalExpression)}get operand(){return this.fetch().operand}get questionMark(){return this.fetch().questionMark}get trueExpression(){return this.fetch().trueExpression}get colon(){return this.fetch().colon}get falseExpression(){return this.fetch().falseExpression}},Fa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{leftOperand:new Ce(t),operator:n,rightOperand:new Ce(o)}}),B(this.cst.kind,h.OrExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}},Na=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{leftOperand:new Ce(t),operator:n,rightOperand:new Ce(o)}}),B(this.cst.kind,h.AndExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}},Pa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{leftOperand:new Ce(t),operator:n,rightOperand:new Ce(o)}}),B(this.cst.kind,h.EqualityExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}},ka=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{leftOperand:new Ce(t),operator:n,rightOperand:new Ce(o)}}),B(this.cst.kind,h.InequalityExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}},La=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{leftOperand:new Ce(t),operator:n,rightOperand:new Ce(o)}}),B(this.cst.kind,h.BitwiseOrExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}},Ia=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{leftOperand:new Ce(t),operator:n,rightOperand:new Ce(o)}}),B(this.cst.kind,h.BitwiseXorExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}},Ra=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{leftOperand:new Ce(t),operator:n,rightOperand:new Ce(o)}}),B(this.cst.kind,h.BitwiseAndExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}},Oa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{leftOperand:new Ce(t),operator:n,rightOperand:new Ce(o)}}),B(this.cst.kind,h.ShiftExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}},Ma=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{leftOperand:new Ce(t),operator:n,rightOperand:new Ce(o)}}),B(this.cst.kind,h.AdditiveExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}},Ya=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{leftOperand:new Ce(t),operator:n,rightOperand:new Ce(o)}}),B(this.cst.kind,h.MultiplicativeExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}},Ba=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{leftOperand:new Ce(t),operator:n,rightOperand:new Ce(o)}}),B(this.cst.kind,h.ExponentiationExpression)}get leftOperand(){return this.fetch().leftOperand}get operator(){return this.fetch().operator}get rightOperand(){return this.fetch().rightOperand}},Ua=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{operand:new Ce(t),operator:n}}),B(this.cst.kind,h.PostfixExpression)}get operand(){return this.fetch().operand}get operator(){return this.fetch().operator}},Va=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{operator:t,operand:new Ce(n)}}),B(this.cst.kind,h.PrefixExpression)}get operator(){return this.fetch().operator}get operand(){return this.fetch().operand}},$a=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{operand:new Ce(t),arguments:new ns(n)}}),B(this.cst.kind,h.FunctionCallExpression)}get operand(){return this.fetch().operand}get arguments(){return this.fetch().arguments}},Ha=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u]=M.Selectors.sequence(this.cst);return{operand:new Ce(t),openBrace:n,options:new Sy(o),closeBrace:u}}),B(this.cst.kind,h.CallOptionsExpression)}get operand(){return this.fetch().operand}get openBrace(){return this.fetch().openBrace}get options(){return this.fetch().options}get closeBrace(){return this.fetch().closeBrace}},qa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{operand:new Ce(t),period:n,member:o}}),B(this.cst.kind,h.MemberAccessExpression)}get operand(){return this.fetch().operand}get period(){return this.fetch().period}get member(){return this.fetch().member}},ja=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{operand:new Ce(t),openBracket:n,start:o===void 0?void 0:new Ce(o),end:u===void 0?void 0:new lf(u),closeBracket:d}}),B(this.cst.kind,h.IndexAccessExpression)}get operand(){return this.fetch().operand}get openBracket(){return this.fetch().openBracket}get start(){return this.fetch().start}get end(){return this.fetch().end}get closeBracket(){return this.fetch().closeBracket}},lf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{colon:t,end:n===void 0?void 0:new Ce(n)}}),B(this.cst.kind,h.IndexAccessEnd)}get colon(){return this.fetch().colon}get end(){return this.fetch().end}},Ga=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openParen:t,arguments:new Ey(n),closeParen:o}}),B(this.cst.kind,h.PositionalArgumentsDeclaration)}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}},Wa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openParen:t,arguments:n===void 0?void 0:new uf(n),closeParen:o}}),B(this.cst.kind,h.NamedArgumentsDeclaration)}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}},uf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openBrace:t,arguments:new Cy(n),closeBrace:o}}),B(this.cst.kind,h.NamedArgumentGroup)}get openBrace(){return this.fetch().openBrace}get arguments(){return this.fetch().arguments}get closeBrace(){return this.fetch().closeBrace}},qu=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{name:t,colon:n,value:new Ce(o)}}),B(this.cst.kind,h.NamedArgument)}get name(){return this.fetch().name}get colon(){return this.fetch().colon}get value(){return this.fetch().value}},za=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u]=M.Selectors.sequence(this.cst);return{typeKeyword:t,openParen:n,typeName:new nr(o),closeParen:u}}),B(this.cst.kind,h.TypeExpression)}get typeKeyword(){return this.fetch().typeKeyword}get openParen(){return this.fetch().openParen}get typeName(){return this.fetch().typeName}get closeParen(){return this.fetch().closeParen}},Qa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{newKeyword:t,typeName:new nr(n)}}),B(this.cst.kind,h.NewExpression)}get newKeyword(){return this.fetch().newKeyword}get typeName(){return this.fetch().typeName}},Xa=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openParen:t,items:new vy(n),closeParen:o}}),B(this.cst.kind,h.TupleExpression)}get openParen(){return this.fetch().openParen}get items(){return this.fetch().items}get closeParen(){return this.fetch().closeParen}},cf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t]=M.Selectors.sequence(this.cst);return{expression:t===void 0?void 0:new Ce(t)}}),B(this.cst.kind,h.TupleValue)}get expression(){return this.fetch().expression}},Ja=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openBracket:t,items:new Ty(n),closeBracket:o}}),B(this.cst.kind,h.ArrayExpression)}get openBracket(){return this.fetch().openBracket}get items(){return this.fetch().items}get closeBracket(){return this.fetch().closeBracket}},Za=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{literal:t,unit:n===void 0?void 0:new ju(n)}}),B(this.cst.kind,h.HexNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}},el=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{literal:t,unit:n===void 0?void 0:new ju(n)}}),B(this.cst.kind,h.DecimalNumberExpression)}get literal(){return this.fetch().literal}get unit(){return this.fetch().unit}},_r=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openBrace:t,statements:new ly(n),closeBrace:o}}),B(this.cst.kind,h.YulBlock)}get openBrace(){return this.fetch().openBrace}get statements(){return this.fetch().statements}get closeBrace(){return this.fetch().closeBrace}},tl=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{functionKeyword:t,name:n,parameters:new hf(o),returns:u===void 0?void 0:new pf(u),body:new _r(d)}}),B(this.cst.kind,h.YulFunctionDefinition)}get functionKeyword(){return this.fetch().functionKeyword}get name(){return this.fetch().name}get parameters(){return this.fetch().parameters}get returns(){return this.fetch().returns}get body(){return this.fetch().body}},hf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{openParen:t,parameters:new Ay(n),closeParen:o}}),B(this.cst.kind,h.YulParametersDeclaration)}get openParen(){return this.fetch().openParen}get parameters(){return this.fetch().parameters}get closeParen(){return this.fetch().closeParen}},pf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{minusGreaterThan:t,variables:new Wu(n)}}),B(this.cst.kind,h.YulReturnsDeclaration)}get minusGreaterThan(){return this.fetch().minusGreaterThan}get variables(){return this.fetch().variables}},rl=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{letKeyword:t,variables:new Wu(n),value:o===void 0?void 0:new df(o)}}),B(this.cst.kind,h.YulVariableDeclarationStatement)}get letKeyword(){return this.fetch().letKeyword}get variables(){return this.fetch().variables}get value(){return this.fetch().value}},df=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{assignment:new Gu(t),expression:new Hr(n)}}),B(this.cst.kind,h.YulVariableDeclarationValue)}get assignment(){return this.fetch().assignment}get expression(){return this.fetch().expression}},il=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{variables:new Ky(t),assignment:new Gu(n),expression:new Hr(o)}}),B(this.cst.kind,h.YulVariableAssignmentStatement)}get variables(){return this.fetch().variables}get assignment(){return this.fetch().assignment}get expression(){return this.fetch().expression}},mf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{colon:t,equal:n}}),B(this.cst.kind,h.YulColonAndEqual)}get colon(){return this.fetch().colon}get equal(){return this.fetch().equal}},nl=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{assignment:new $f(t),variable:n}}),B(this.cst.kind,h.YulStackAssignmentStatement)}get assignment(){return this.fetch().assignment}get variable(){return this.fetch().variable}},ff=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{equal:t,colon:n}}),B(this.cst.kind,h.YulEqualAndColon)}get equal(){return this.fetch().equal}get colon(){return this.fetch().colon}},sl=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{ifKeyword:t,condition:new Hr(n),body:new _r(o)}}),B(this.cst.kind,h.YulIfStatement)}get ifKeyword(){return this.fetch().ifKeyword}get condition(){return this.fetch().condition}get body(){return this.fetch().body}},ol=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u,d]=M.Selectors.sequence(this.cst);return{forKeyword:t,initialization:new _r(n),condition:new Hr(o),iterator:new _r(u),body:new _r(d)}}),B(this.cst.kind,h.YulForStatement)}get forKeyword(){return this.fetch().forKeyword}get initialization(){return this.fetch().initialization}get condition(){return this.fetch().condition}get iterator(){return this.fetch().iterator}get body(){return this.fetch().body}},al=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{switchKeyword:t,expression:new Hr(n),cases:new uy(o)}}),B(this.cst.kind,h.YulSwitchStatement)}get switchKeyword(){return this.fetch().switchKeyword}get expression(){return this.fetch().expression}get cases(){return this.fetch().cases}},ll=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{defaultKeyword:t,body:new _r(n)}}),B(this.cst.kind,h.YulDefaultCase)}get defaultKeyword(){return this.fetch().defaultKeyword}get body(){return this.fetch().body}},ul=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o]=M.Selectors.sequence(this.cst);return{caseKeyword:t,value:new Ls(n),body:new _r(o)}}),B(this.cst.kind,h.YulValueCase)}get caseKeyword(){return this.fetch().caseKeyword}get value(){return this.fetch().value}get body(){return this.fetch().body}},cl=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t]=M.Selectors.sequence(this.cst);return{leaveKeyword:t}}),B(this.cst.kind,h.YulLeaveStatement)}get leaveKeyword(){return this.fetch().leaveKeyword}},hl=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t]=M.Selectors.sequence(this.cst);return{breakKeyword:t}}),B(this.cst.kind,h.YulBreakStatement)}get breakKeyword(){return this.fetch().breakKeyword}},pl=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t]=M.Selectors.sequence(this.cst);return{continueKeyword:t}}),B(this.cst.kind,h.YulContinueStatement)}get continueKeyword(){return this.fetch().continueKeyword}},dl=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.sequence(this.cst);return{label:t,colon:n}}),B(this.cst.kind,h.YulLabel)}get label(){return this.fetch().label}get colon(){return this.fetch().colon}},ml=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n,o,u]=M.Selectors.sequence(this.cst);return{operand:new Hr(t),openParen:n,arguments:new _y(o),closeParen:u}}),B(this.cst.kind,h.YulFunctionCallExpression)}get operand(){return this.fetch().operand}get openParen(){return this.fetch().openParen}get arguments(){return this.fetch().arguments}get closeParen(){return this.fetch().closeParen}},yf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.PragmaDirective:return new Uo(t);case h.ImportDirective:return new Go(t);case h.ContractDefinition:return new Zo(t);case h.InterfaceDefinition:return new ta(t);case h.LibraryDefinition:return new ra(t);case h.StructDefinition:return new En(t);case h.EnumDefinition:return new Cn(t);case h.FunctionDefinition:return new Sn(t);case h.ErrorDefinition:return new An(t);case h.UserDefinedValueTypeDefinition:return new Tn(t);case h.UsingDirective:return new bn(t);case h.EventDefinition:return new vn(t);case h.ConstantDefinition:return new ia(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.SourceUnitMember)}get variant(){return this.fetch()}},wf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.VersionPragma:return new Ho(t);case h.AbicoderPragma:return new Vo(t);case h.ExperimentalPragma:return new $o(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.Pragma)}get variant(){return this.fetch()}},gf=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.choice(this.cst)),B(this.cst.kind,h.AbicoderVersion)}get variant(){return this.fetch()}},xf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===h.StringLiteral)return new sr(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),B(this.cst.kind,h.ExperimentalFeature)}get variant(){return this.fetch()}},Df=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.VersionRange:return new qo(t);case h.VersionTerm:return new jo(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.VersionExpression)}get variant(){return this.fetch()}},bf=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.choice(this.cst)),B(this.cst.kind,h.VersionOperator)}get variant(){return this.fetch()}},fl=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===h.SimpleVersionLiteral)return new hy(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),B(this.cst.kind,h.VersionLiteral)}get variant(){return this.fetch()}},Ef=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.PathImport:return new Wo(t);case h.NamedImport:return new zo(t);case h.ImportDeconstruction:return new Qo(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.ImportClause)}get variant(){return this.fetch()}},Cf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.IdentifierPath:return new Mt(t);case h.UsingDeconstruction:return new Jo(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.UsingClause)}get variant(){return this.fetch()}},Sf=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.choice(this.cst)),B(this.cst.kind,h.UsingOperator)}get variant(){return this.fetch()}},vf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===h.TypeName)return new nr(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),B(this.cst.kind,h.UsingTarget)}get variant(){return this.fetch()}},Tf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.InheritanceSpecifier:return new Ns(t);case h.StorageLayoutSpecifier:return new ea(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.ContractSpecifier)}get variant(){return this.fetch()}},yl=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.UsingDirective:return new bn(t);case h.FunctionDefinition:return new Sn(t);case h.ConstructorDefinition:return new sa(t);case h.ReceiveFunctionDefinition:return new la(t);case h.FallbackFunctionDefinition:return new aa(t);case h.ModifierDefinition:return new ua(t);case h.StructDefinition:return new En(t);case h.EnumDefinition:return new Cn(t);case h.EventDefinition:return new vn(t);case h.ErrorDefinition:return new An(t);case h.UserDefinedValueTypeDefinition:return new Tn(t);case h.StateVariableDefinition:return new na(t);case h.UnnamedFunctionDefinition:return new oa(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.ContractMember)}get variant(){return this.fetch()}},Af=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===h.OverrideSpecifier)return new Kr(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),B(this.cst.kind,h.StateVariableAttribute)}get variant(){return this.fetch()}},_f=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.choice(this.cst)),B(this.cst.kind,h.FunctionName)}get variant(){return this.fetch()}},Kf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case h.ModifierInvocation:return new Fr(t);case h.OverrideSpecifier:return new Kr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.FunctionAttribute)}get variant(){return this.fetch()}},is=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===h.Block)return new xi(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),B(this.cst.kind,h.FunctionBody)}get variant(){return this.fetch()}},Ff=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===h.ModifierInvocation)return new Fr(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),B(this.cst.kind,h.ConstructorAttribute)}get variant(){return this.fetch()}},Nf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===h.ModifierInvocation)return new Fr(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),B(this.cst.kind,h.UnnamedFunctionAttribute)}get variant(){return this.fetch()}},Pf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case h.ModifierInvocation:return new Fr(t);case h.OverrideSpecifier:return new Kr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.FallbackFunctionAttribute)}get variant(){return this.fetch()}},kf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case h.ModifierInvocation:return new Fr(t);case h.OverrideSpecifier:return new Kr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.ReceiveFunctionAttribute)}get variant(){return this.fetch()}},Lf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===h.OverrideSpecifier)return new Kr(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),B(this.cst.kind,h.ModifierAttribute)}get variant(){return this.fetch()}},nr=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.ArrayTypeName:return new ca(t);case h.FunctionType:return new ha(t);case h.MappingType:return new pa(t);case h.ElementaryType:return new $r(t);case h.IdentifierPath:return new Mt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.TypeName)}get variant(){return this.fetch()}},If=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.choice(this.cst)),B(this.cst.kind,h.FunctionTypeAttribute)}get variant(){return this.fetch()}},Rf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.ElementaryType:return new $r(t);case h.IdentifierPath:return new Mt(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.MappingKeyType)}get variant(){return this.fetch()}},$r=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===h.AddressType)return new ef(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),B(this.cst.kind,h.ElementaryType)}get variant(){return this.fetch()}},Fn=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.IfStatement:return new wa(t);case h.ForStatement:return new ga(t);case h.WhileStatement:return new xa(t);case h.DoWhileStatement:return new Da(t);case h.ContinueStatement:return new ba(t);case h.BreakStatement:return new Ea(t);case h.ReturnStatement:return new Ca(t);case h.ThrowStatement:return new Aa(t);case h.EmitStatement:return new Sa(t);case h.TryStatement:return new va(t);case h.RevertStatement:return new Ta(t);case h.AssemblyStatement:return new ma(t);case h.Block:return new xi(t);case h.UncheckedBlock:return new da(t);case h.TupleDeconstructionStatement:return new _n(t);case h.VariableDeclarationStatement:return new Kn(t);case h.ExpressionStatement:return new Wi(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.Statement)}get variant(){return this.fetch()}},Of=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.TypedTupleMember:return new fa(t);case h.UntypedTupleMember:return new ya(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.TupleMember)}get variant(){return this.fetch()}},Mf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===h.TypeName)return new nr(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),B(this.cst.kind,h.VariableDeclarationType)}get variant(){return this.fetch()}},ks=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.choice(this.cst)),B(this.cst.kind,h.StorageLocation)}get variant(){return this.fetch()}},Yf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case h.TupleDeconstructionStatement:return new _n(t);case h.VariableDeclarationStatement:return new Kn(t);case h.ExpressionStatement:return new Wi(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.ForStatementInitialization)}get variant(){return this.fetch()}},Bf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===h.ExpressionStatement)return new Wi(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),B(this.cst.kind,h.ForStatementCondition)}get variant(){return this.fetch()}},Ce=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case h.AssignmentExpression:return new _a(t);case h.ConditionalExpression:return new Ka(t);case h.OrExpression:return new Fa(t);case h.AndExpression:return new Na(t);case h.EqualityExpression:return new Pa(t);case h.InequalityExpression:return new ka(t);case h.BitwiseOrExpression:return new La(t);case h.BitwiseXorExpression:return new Ia(t);case h.BitwiseAndExpression:return new Ra(t);case h.ShiftExpression:return new Oa(t);case h.AdditiveExpression:return new Ma(t);case h.MultiplicativeExpression:return new Ya(t);case h.ExponentiationExpression:return new Ba(t);case h.PostfixExpression:return new Ua(t);case h.PrefixExpression:return new Va(t);case h.FunctionCallExpression:return new $a(t);case h.CallOptionsExpression:return new Ha(t);case h.MemberAccessExpression:return new qa(t);case h.IndexAccessExpression:return new ja(t);case h.NewExpression:return new Qa(t);case h.TupleExpression:return new Xa(t);case h.TypeExpression:return new za(t);case h.ArrayExpression:return new Ja(t);case h.HexNumberExpression:return new Za(t);case h.DecimalNumberExpression:return new el(t);case h.StringExpression:return new wl(t);case h.ElementaryType:return new $r(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.Expression)}get variant(){return this.fetch()}},ns=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.PositionalArgumentsDeclaration:return new Ga(t);case h.NamedArgumentsDeclaration:return new Wa(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.ArgumentsDeclaration)}get variant(){return this.fetch()}},ju=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.choice(this.cst)),B(this.cst.kind,h.NumberUnit)}get variant(){return this.fetch()}},wl=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.StringLiteral:return new sr(t);case h.StringLiterals:return new gl(t);case h.HexStringLiteral:return new zi(t);case h.HexStringLiterals:return new xl(t);case h.UnicodeStringLiterals:return new Dl(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.StringExpression)}get variant(){return this.fetch()}},sr=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.choice(this.cst)),B(this.cst.kind,h.StringLiteral)}get variant(){return this.fetch()}},zi=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.choice(this.cst)),B(this.cst.kind,h.HexStringLiteral)}get variant(){return this.fetch()}},Uf=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.choice(this.cst)),B(this.cst.kind,h.UnicodeStringLiteral)}get variant(){return this.fetch()}},Vf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.YulBlock:return new _r(t);case h.YulFunctionDefinition:return new tl(t);case h.YulStackAssignmentStatement:return new nl(t);case h.YulIfStatement:return new sl(t);case h.YulForStatement:return new ol(t);case h.YulSwitchStatement:return new al(t);case h.YulLeaveStatement:return new cl(t);case h.YulBreakStatement:return new hl(t);case h.YulContinueStatement:return new pl(t);case h.YulVariableAssignmentStatement:return new il(t);case h.YulLabel:return new dl(t);case h.YulVariableDeclarationStatement:return new rl(t);case h.YulExpression:return new Hr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.YulStatement)}get variant(){return this.fetch()}},Gu=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===h.YulColonAndEqual)return new mf(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),B(this.cst.kind,h.YulAssignmentOperator)}get variant(){return this.fetch()}},$f=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;if(t.kind===h.YulEqualAndColon)return new ff(t);throw new Error(`Unexpected variant: '${t.kind}'.`)}),B(this.cst.kind,h.YulStackAssignmentOperator)}get variant(){return this.fetch()}},Hf=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.YulDefaultCase:return new ll(t);case h.YulValueCase:return new ul(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.YulSwitchCase)}get variant(){return this.fetch()}},Hr=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);switch(t.kind){case h.YulFunctionCallExpression:return new ml(t);case h.YulLiteral:return new Ls(t);case h.YulPath:return new Is(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.YulExpression)}get variant(){return this.fetch()}},Ls=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let t=M.Selectors.choice(this.cst);if(t.isTerminalNode())return t;switch(t.kind){case h.HexStringLiteral:return new zi(t);case h.StringLiteral:return new sr(t);default:throw new Error(`Unexpected variant: '${t.kind}'.`)}}),B(this.cst.kind,h.YulLiteral)}get variant(){return this.fetch()}},qf=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new yf(n))),B(this.cst.kind,h.SourceUnitMembers)}get items(){return this.fetch()}},jf=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new Df(n))),B(this.cst.kind,h.VersionExpressionSet)}get items(){return this.fetch()}},Gf=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new Tf(n))),B(this.cst.kind,h.ContractSpecifiers)}get items(){return this.fetch()}},Wf=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new yl(n))),B(this.cst.kind,h.ContractMembers)}get items(){return this.fetch()}},zf=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new yl(n))),B(this.cst.kind,h.InterfaceMembers)}get items(){return this.fetch()}},Qf=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new yl(n))),B(this.cst.kind,h.LibraryMembers)}get items(){return this.fetch()}},Xf=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new H0(n))),B(this.cst.kind,h.StructMembers)}get items(){return this.fetch()}},Jf=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new Af(n))),B(this.cst.kind,h.StateVariableAttributes)}get items(){return this.fetch()}},Zf=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new Kf(n))),B(this.cst.kind,h.FunctionAttributes)}get items(){return this.fetch()}},ey=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new Ff(n))),B(this.cst.kind,h.ConstructorAttributes)}get items(){return this.fetch()}},ty=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new Nf(n))),B(this.cst.kind,h.UnnamedFunctionAttributes)}get items(){return this.fetch()}},ry=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new Pf(n))),B(this.cst.kind,h.FallbackFunctionAttributes)}get items(){return this.fetch()}},iy=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new kf(n))),B(this.cst.kind,h.ReceiveFunctionAttributes)}get items(){return this.fetch()}},ny=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new Lf(n))),B(this.cst.kind,h.ModifierAttributes)}get items(){return this.fetch()}},sy=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new If(n))),B(this.cst.kind,h.FunctionTypeAttributes)}get items(){return this.fetch()}},oy=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new Fn(n))),B(this.cst.kind,h.Statements)}get items(){return this.fetch()}},ay=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new of(n))),B(this.cst.kind,h.CatchClauses)}get items(){return this.fetch()}},gl=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new sr(n))),B(this.cst.kind,h.StringLiterals)}get items(){return this.fetch()}},xl=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new zi(n))),B(this.cst.kind,h.HexStringLiterals)}get items(){return this.fetch()}},Dl=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new Uf(n))),B(this.cst.kind,h.UnicodeStringLiterals)}get items(){return this.fetch()}},ly=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new Vf(n))),B(this.cst.kind,h.YulStatements)}get items(){return this.fetch()}},uy=class{constructor(e){this.cst=e,this.fetch=Y(()=>M.Selectors.repeated(this.cst).map(n=>new Hf(n))),B(this.cst.kind,h.YulSwitchCases)}get items(){return this.fetch()}},cy=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new jf(o)),separators:n}}),B(this.cst.kind,h.VersionExpressionSets)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},hy=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t,separators:n}}),B(this.cst.kind,h.SimpleVersionLiteral)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},py=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new B0(o)),separators:n}}),B(this.cst.kind,h.ImportDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},dy=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new U0(o)),separators:n}}),B(this.cst.kind,h.UsingDeconstructionSymbols)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},my=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new $0(o)),separators:n}}),B(this.cst.kind,h.InheritanceTypes)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},fy=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t,separators:n}}),B(this.cst.kind,h.EnumMembers)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},yy=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new j0(o)),separators:n}}),B(this.cst.kind,h.Parameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},wy=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new Mt(o)),separators:n}}),B(this.cst.kind,h.OverridePaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},gy=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new z0(o)),separators:n}}),B(this.cst.kind,h.EventParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},xy=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new X0(o)),separators:n}}),B(this.cst.kind,h.ErrorParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},Dy=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new sr(o)),separators:n}}),B(this.cst.kind,h.AssemblyFlags)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},by=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new rf(o)),separators:n}}),B(this.cst.kind,h.TupleDeconstructionElements)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},Ey=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new Ce(o)),separators:n}}),B(this.cst.kind,h.PositionalArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},Cy=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new qu(o)),separators:n}}),B(this.cst.kind,h.NamedArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},Sy=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new qu(o)),separators:n}}),B(this.cst.kind,h.CallOptions)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},vy=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new cf(o)),separators:n}}),B(this.cst.kind,h.TupleValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},Ty=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new Ce(o)),separators:n}}),B(this.cst.kind,h.ArrayValues)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},Mt=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t,separators:n}}),B(this.cst.kind,h.IdentifierPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},Ay=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t,separators:n}}),B(this.cst.kind,h.YulParameters)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},Wu=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t,separators:n}}),B(this.cst.kind,h.YulVariableNames)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},_y=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new Hr(o)),separators:n}}),B(this.cst.kind,h.YulArguments)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},Ky=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t.map(o=>new Is(o)),separators:n}}),B(this.cst.kind,h.YulPaths)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}},Is=class{constructor(e){this.cst=e,this.fetch=Y(()=>{let[t,n]=M.Selectors.separated(this.cst);return{items:t,separators:n}}),B(this.cst.kind,h.YulPath)}get items(){return this.fetch().items}get separators(){return this.fetch().separators}};function Y(r){let e;return()=>(e===void 0&&(e=r()),e)}function B(r,e){if(r!==e)throw new Error(`AST node '${e}' can only be initialized with a CST node of the same kind. Received '${r}' instead.`)}var Fy=Bm.Parser,n$=Bm.ParseOutput;var zu=F3.LanguageFacts;var Fb=ai(Ab(),1),_b=zu.allVersions(),bl=zu.latestVersion(),kK=Fy.create(bl);function Ny(r,e,t){if(!e.isValid())throw new Error(`We encountered the following syntax error:
42
+
43
+ ${e.errors()[0].message}
44
+
45
+ ${t}`);return{version:r,parseOutput:e}}function Kb(r,e,t){return Ny(e,Fy.create(e).parseNonterminal(h.SourceUnit,r),t)}function LK(r){let e=r.createTreeCursor(),t="";for(;e.goToNextNonterminalWithKind(h.PragmaDirective);)t+=`${e.node.unparse()}
46
+ `;return t}function Nb(r,{compiler:e}){let t=e&&(0,Fb.default)(_b,e);if(t)return Kb(r,t,`Based on the compiler option provided, we inferred your code to be using Solidity version ${e}. If you would like to change that, specify a different version in your \`.prettierrc\` file.`);let n=kK.parseNonterminal(h.SourceUnit,r),o=zu.inferLanguageVersions(LK(n)),u=o.length;if(u===0||u===_b.length)return Ny(bl,n,`We couldn't infer a Solidity version based on the pragma statements in your code so we defaulted to ${bl}. You might be attempting to use a syntax not yet supported by Slang or you might want to specify a version in your \`.prettierrc\` file.`);let d=o[u-1],y=`Based on the pragma statements, we inferred your code to be using Solidity version ${d}. If you would like to change that, update the pragmas in your source file, or specify a version in your \`.prettierrc\` file.`;return d===bl?Ny(bl,n,y):Kb(r,d,y)}var{breakParent:Pb,dedent:Qu,group:Ue,hardline:$e,ifBreak:El,indent:yt,indentIfBreak:kb,join:Xe,label:Py,line:de,literalline:Lb,softline:mr}=ue.builders;function IK(r){if(r.length<=1)return;let e=[];for(let t of r){if(t=t.trimStart(),!t.startsWith("*"))return;e.push(t)}return e}function RK(r){return Xe($e,r.map((e,t)=>`${t===0?"":" "}${e.trimEnd()}`))}function Xu(r){let e=r.value.slice(1).split(`
47
+ `),t=IK(e);return["/",t?RK(t):Xe(Lb,e)]}var Di=class{loc;value;leading;trailing;printed;placement;precedingNode;enclosingNode;followingNode;constructor(e,t,n){this.loc={start:t,end:n},this.value=e.slice(t,n)}};var Ju=class extends Di{kind=Ht.MultiLineComment;constructor(e,t,n){super(e,t,n)}print(){return Xu(this)}};var Zu=class extends Di{kind=Ht.MultiLineNatSpecComment;constructor(e,t,n){super(e,t,n)}print(){return Xu(this)}};var ec=class extends Di{kind=Ht.SingleLineComment;constructor(e,t,n){super(e,t,n)}print(){return this.value.trimEnd()}};var tc=class extends Di{kind=Ht.SingleLineNatSpecComment;constructor(e,t,n){super(e,t,n)}print(){return this.value.trimEnd()}};var OK=We([h.CatchClauses,h.HexStringLiterals,h.IdentifierPath,h.StringLiterals,h.UnicodeStringLiterals,h.YulPath,h.YulPaths,h.YulSwitchCases,h.YulVariableNames]);function Ib(r,e){let t=r.node,n=new Map,o=[],u=0;function d(y){let x=u,E=!1,T,N;if(r.goToFirstChild()){do{let $=r.label;if($===Tu.LeadingTrivia||$===Tu.TrailingTrivia){let Z=u,Q=r.textRange.end.utf16;if(e.startsWith("/",Z)){let te=Ne=>e.startsWith(Ne,Z),Ee=te("//")?te("///")?tc:ec:te("/**")&&!te("/**/")?Zu:Ju;o.push(new Ee(e,Z,Q))}u=Q;continue}$===Tu.Item&&(E=!0);let V=r.node;V.isTerminalNode()?(N={start:u,end:u+V.textLength.utf16},u=N.end):N=d(V),n.set(V.id,N),T??=N}while(r.goToNextSibling());r.goToParent()}let P=E&&!OK(y);return{start:P?x:T?.start??x,end:P?u:N?.end??x}}return n.set(t.id,d(t)),{locations:n,comments:o}}var b=class{comments;loc;constructor(e,t){let{id:n}=e instanceof Re?e:e.cst;this.loc=t.locations.get(n)}static createSynthetic(e){return Object.assign(Object.create(this.prototype),e)}};function Rb(r){return!r.trailing&&!r.leading&&!r.printed}function bi(r,e,t){let n=r.comments?.findLastIndex(Rb)??-1;return n===-1?[]:e.map(({node:o},u)=>Rb(o)?(o.printed=!0,u===n?[No(e),Ur(o)?"":Pb]:[No(e),$e,Au(t.originalText,ut(o))?$e:""]):"","comments")}function ze(r,{firstSeparator:e=mr,lastSeparator:t=e,grouped:n=e!==$e}={}){let o=[yt([e,r]),t];return n?Ue(o):o}function ky(r,e,t,n){return r.items.length>0?e.map(({node:o,isFirst:u,isLast:d})=>[!u&&o.kind!==h.YulLabel?$e:"",t(),!d&&Au(n.originalText,ut(o))?$e:""],"items"):bi(r,e,n)}function Ei(r,e,t,n){return r.items.length>0||(r.comments?.length??0)>0?ze(ky(r,e,t,n),{firstSeparator:$e}):""}function U({variant:r,loc:e}){return r.loc=e,r}function Pe(r,e=[]){return(t,n)=>{for(let[o,u]of e)if(t instanceof o)return U(new u(t,n));for(let[o,u]of r)if(t instanceof o)return new u(t,n);throw new Error(`Unexpected variant: ${JSON.stringify(t)}`)}}var rc=class extends b{kind=h.AbicoderVersion;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse()}print(){return this.variant}};var ic=class extends b{kind=h.AbicoderPragma;version;constructor(e,t){super(e,t),this.version=new rc(e.version,t)}print(e){return["abicoder ",e("version")]}};var Ly="'",Ob='"';function Rs(r,e){let t=e.singleQuote?Ly:Ob,n=t===Ly?Ob:Ly,o=0,u=0;for(let y of r)y===t?o++:y===n&&u++;let d=o>u?n:t;return k3(r,d)}var Dt=class extends b{kind=h.StringLiteral;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse(),this.variant=Rs(this.variant.slice(1,-1),t.options)}print(){return this.variant}};var ee=class extends b{kind;value;constructor(e,t){super(e,t),this.kind=e.kind,this.value=e.unparse()}print(){return this.value}};var nc=class extends b{kind=h.ExperimentalFeature;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=new Dt(n,t)}};var sc=class extends b{kind=h.ExperimentalPragma;feature;constructor(e,t){super(e,t),this.feature=U(new nc(e.feature,t))}print(e){return["experimental ",e("feature")]}};function Le(r,{firstSeparator:e,separator:t=[",",de],lastSeparator:n,grouped:o}={}){return ze(Xe(t,r),{firstSeparator:e,lastSeparator:n,grouped:o})}var oc=class extends b{kind=h.SimpleVersionLiteral;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new ee(n,t))}print(e,t){return Xe(".",t.map(e,"items"))}};var ss=class extends b{kind=h.VersionLiteral;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=new oc(n,t)}};var ac=class extends b{kind=h.VersionRange;start;end;constructor(e,t){super(e,t),this.start=U(new ss(e.start,t)),this.end=U(new ss(e.end,t))}print(e){return[e("start")," - ",e("end")]}};var lc=class extends b{kind=h.VersionOperator;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse()}print(){return this.variant}};var uc=class extends b{kind=h.VersionTerm;operator;literal;constructor(e,t){super(e,t),e.operator&&(this.operator=new lc(e.operator,t)),this.literal=U(new ss(e.literal,t))}print(e){return[e("operator"),e("literal")]}};var MK=Pe([[qo,ac],[jo,uc]]),cc=class extends b{kind=h.VersionExpression;variant;constructor(e,t){super(e,t),this.variant=MK(e.variant,t)}};var hc=class extends b{kind=h.VersionExpressionSet;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new cc(n,t)))}print(e,t){return Xe(" ",t.map(e,"items"))}};var pc=class extends b{kind=h.VersionExpressionSets;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new hc(n,t))}print(e,t,n){return Le(t.map(e,"items"),{separator:n.experimentalOperatorPosition==="end"?[" ||",de]:[de,"|| "]})}};var dc=class extends b{kind=h.VersionPragma;sets;constructor(e,t){super(e,t),this.sets=new pc(e.sets,t)}print(e){return["solidity ",e("sets")]}};var YK=Pe([[Vo,ic],[$o,sc],[Ho,dc]]),mc=class extends b{kind=h.Pragma;variant;constructor(e,t){super(e,t),this.variant=YK(e.variant,t)}};var fc=class extends b{kind=h.PragmaDirective;pragma;constructor(e,t){super(e,t),this.pragma=U(new mc(e.pragma,t))}print(e){return["pragma ",e("pragma"),";"]}};var Nn=class extends b{kind=h.ImportAlias;identifier;constructor(e,t){super(e,t),this.identifier=new ee(e.identifier,t)}print(e){return[" as ",e("identifier")]}};var yc=class extends b{kind=h.PathImport;path;alias;constructor(e,t){super(e,t),this.path=new Dt(e.path,t),e.alias&&(this.alias=new Nn(e.alias,t))}print(e){return[e("path"),e("alias")]}};var wc=class extends b{kind=h.NamedImport;alias;path;constructor(e,t){super(e,t),this.alias=new Nn(e.alias,t),this.path=new Dt(e.path,t)}print(e){return["*",e("alias")," from ",e("path")]}};var Mb=ai(ts(),1);var gc=class extends b{kind=h.ImportDeconstructionSymbol;name;alias;constructor(e,t){super(e,t),this.name=new ee(e.name,t),e.alias&&(this.alias=new Nn(e.alias,t))}print(e){return[e("name"),e("alias")]}};var xc=class extends b{kind=h.ImportDeconstructionSymbols;#e;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new gc(n,t)),this.#e=this.items.length>1&&(0,Mb.default)(t.compiler,">=0.7.4")}print(e,t,{bracketSpacing:n}){return Le(t.map(e,"items"),this.#e?{firstSeparator:n?de:mr}:{firstSeparator:n?" ":"",separator:", "})}};var Dc=class extends b{kind=h.ImportDeconstruction;symbols;path;constructor(e,t){super(e,t),this.symbols=new xc(e.symbols,t),this.path=new Dt(e.path,t)}print(e){return["{",e("symbols"),"} from ",e("path")]}};var BK=Pe([[Wo,yc],[zo,wc],[Qo,Dc]]),bc=class extends b{kind=h.ImportClause;variant;constructor(e,t){super(e,t),this.variant=BK(e.variant,t)}};var Ec=class extends b{kind=h.ImportDirective;clause;constructor(e,t){super(e,t),this.clause=U(new bc(e.clause,t))}print(e){return["import ",e("clause"),";"]}};var zb=ai(ts(),1);var bt=class extends b{kind=h.IdentifierPath;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new ee(n,t))}print(e,t){return Xe(".",t.map(e,"items"))}};var Cc=We([h.FunctionCallExpression,h.IndexAccessExpression,h.MemberAccessExpression]);function qr(r,e=!0,t={}){return e?Ue(yt([de,r]),t):[" ",r]}function Pn(r,e){return qr(r,e.kind!==h.ArrayExpression&&e.kind!==h.TupleExpression&&!Cc(e))}var Sc=class extends b{kind=h.AssignmentExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=U(new ae(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=U(new ae(e.rightOperand,t))}print(e){return[e("leftOperand"),` ${this.operator}`,Pn(e("rightOperand"),this.rightOperand)]}};function UK(r,e,t,{useTabs:n,tabWidth:o}){let u=t.parent,d=u.kind===h.ConditionalExpression,y=d&&u.trueExpression===r,x=r.falseExpression.kind,E=x===h.TupleExpression||x===h.ConditionalExpression,T=e("operand"),N=Ue([r.operand.kind===h.TupleExpression?T:El(["(",ze(T),")"],T)," ?"]),P=yt([y?$e:de,e("trueExpression")]),$=Symbol("Slang.ConditionalExpression.trueExpression"),V=Ue([N,P],{id:$}),Z=n?" ":o>2?" ".repeat(o-1):" ",Q=e("falseExpression"),te=[d?$e:de,":",E?[" ",Q]:El([Z,yt(Q)],[" ",Q],{groupId:$})];return Ue([V,te])}function VK(r,e){return Ue([r("operand"),yt([e.parent.kind===h.ConditionalExpression?$e:de,"? ",r("trueExpression"),de,": ",r("falseExpression")])])}function $K(r){return r.kind===h.TupleExpression?r.items.getSingleExpression():void 0}var vc=class extends b{kind=h.ConditionalExpression;operand;trueExpression;falseExpression;constructor(e,t){if(super(e,t),this.operand=U(new ae(e.operand,t)),this.trueExpression=U(new ae(e.trueExpression,t)),this.falseExpression=U(new ae(e.falseExpression,t)),t.options.experimentalTernaries){let n=this.operand.loc;for(let o;o=$K(this.operand),!(o===void 0||o.kind===h.ConditionalExpression);)this.operand=o;this.operand.loc=n}}print(e,t,n){return n.experimentalTernaries?UK(this,e,t,n):VK(e,t)}};var jr=We([h.AdditiveExpression,h.MultiplicativeExpression,h.ExponentiationExpression,h.AssignmentExpression,h.BitwiseAndExpression,h.BitwiseOrExpression,h.BitwiseXorExpression,h.EqualityExpression,h.InequalityExpression,h.AndExpression,h.OrExpression,h.ShiftExpression]);function HK({operator:r,leftOperand:e},t,n,o){let u=t("rightOperand"),d=o.experimentalOperatorPosition==="end"?[` ${r}`,de,u]:[de,`${r} `,u],y=n.parent;return!jr(e)&&(!jr(y)||y.kind===h.AssignmentExpression)?Ue(d):d}var Os=(r,e)=>(t,n,o,u)=>{let d=r(n),y=e(t,n);return d([o("leftOperand"),y(HK(t,o,n,u))])};var Iy=r=>e=>t=>{let n=e.parent;return jr(n)?r(n)?Ue(t):t:Ue(t)},qK=We([h.ReturnStatement,h.IfStatement,h.WhileStatement]),Ry=(r,e,t)=>qK(r)||r.kind===h.ExpressionStatement&&e.getNode(t+1).kind===h.ForStatement,Oy=r=>(e,t)=>n=>{for(let o=1,u=e,d;d=t.getNode(o),!Ry(d,t,o);o++,u=d){if(!jr(d))return yt(n);if(r(d))return yt(n);if(u===d.rightOperand)break}return n},Wt=r=>Os(Iy(r),Oy(r));var jK=Iy(()=>!1),GK=(r,e)=>t=>{for(let n=1,o=r,u;u=e.getNode(n),!(Ry(u,e,n)||u.kind===h.ConditionalExpression&&u.operand===o);n++,o=u){if(!jr(u))return yt(t);if(o===u.rightOperand)break}return t},Tc=Os(jK,GK);var Ms=class extends b{kind=h.TupleValue;expression;constructor(e,t){super(e,t),e.expression&&(this.expression=U(new ae(e.expression,t)))}print(e){return e("expression")}};var Ys=class extends b{kind=h.TupleValues;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new Ms(n,t))}getSingleExpression(){let e=this.items;return e.length===1?e[0].expression:void 0}print(e,t){let n=this.getSingleExpression(),o=t.map(e,"items");return n&&jr(n)?o:Le(o)}};var Bs=class extends b{kind=h.TupleExpression;items;constructor(e,t){super(e,t),this.items=new Ys(e.items,t)}print(e){return["(",e("items"),")"]}};function wt(r){let e=new Set(r);return t=>{if(jr(t)&&e.has(t.operator)){let n=t.loc;return Bs.createSynthetic({kind:h.TupleExpression,loc:{...n},comments:void 0,items:Ys.createSynthetic({kind:h.TupleValues,loc:{...n},comments:void 0,items:[Ms.createSynthetic({kind:h.TupleValue,loc:{...n},comments:void 0,expression:t})]})})}return t}}var Yb=wt(["&&"]),Ac=class extends b{kind=h.OrExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=U(new ae(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=U(new ae(e.rightOperand,t)),this.leftOperand=Yb(this.leftOperand),this.rightOperand=Yb(this.rightOperand)}print(e,t,n){return Tc(this,t,e,n)}};var _c=class extends b{kind=h.AndExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=U(new ae(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=U(new ae(e.rightOperand,t))}print(e,t,n){return Tc(this,t,e,n)}};var WK=wt(["==","!="]),zK=Wt(We([h.AndExpression,h.OrExpression])),Kc=class extends b{kind=h.EqualityExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=U(new ae(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=U(new ae(e.rightOperand,t)),this.leftOperand=WK(this.leftOperand)}print(e,t,n){return zK(this,t,e,n)}};var QK=Wt(We([h.EqualityExpression,h.AndExpression,h.OrExpression])),Fc=class extends b{kind=h.InequalityExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=U(new ae(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=U(new ae(e.rightOperand,t))}print(e,t,n){return QK(this,t,e,n)}};var Bb=wt(["+","-","*","/","**","<<",">>","&","^"]),XK=Wt(We([h.InequalityExpression,h.EqualityExpression,h.AndExpression,h.OrExpression])),Nc=class extends b{kind=h.BitwiseOrExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=U(new ae(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=U(new ae(e.rightOperand,t)),this.leftOperand=Bb(this.leftOperand),this.rightOperand=Bb(this.rightOperand)}print(e,t,n){return XK(this,t,e,n)}};var Ub=wt(["+","-","*","/","**","<<",">>","&"]),JK=Wt(We([h.InequalityExpression,h.EqualityExpression,h.AndExpression,h.OrExpression])),Pc=class extends b{kind=h.BitwiseXorExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=U(new ae(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=U(new ae(e.rightOperand,t)),this.leftOperand=Ub(this.leftOperand),this.rightOperand=Ub(this.rightOperand)}print(e,t,n){return JK(this,t,e,n)}};var Vb=wt(["+","-","*","/","**","<<",">>"]),ZK=Wt(We([h.InequalityExpression,h.EqualityExpression,h.AndExpression,h.OrExpression])),kc=class extends b{kind=h.BitwiseAndExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=U(new ae(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=U(new ae(e.rightOperand,t)),this.leftOperand=Vb(this.leftOperand),this.rightOperand=Vb(this.rightOperand)}print(e,t,n){return ZK(this,t,e,n)}};var eF=wt(["+","-","*","/","**","<<",">>"]),tF=wt(["+","-","*","/","**"]),rF=Wt(We([h.BitwiseAndExpression,h.BitwiseOrExpression,h.BitwiseXorExpression,h.InequalityExpression,h.EqualityExpression,h.AndExpression,h.OrExpression])),Lc=class extends b{kind=h.ShiftExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=U(new ae(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=U(new ae(e.rightOperand,t)),this.leftOperand=eF(this.leftOperand),this.rightOperand=tF(this.rightOperand)}print(e,t,n){return rF(this,t,e,n)}};var $b=wt(["%"]),iF=Wt(We([h.ShiftExpression,h.BitwiseAndExpression,h.BitwiseOrExpression,h.BitwiseXorExpression,h.InequalityExpression,h.EqualityExpression,h.AndExpression,h.OrExpression])),Ic=class extends b{kind=h.AdditiveExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=U(new ae(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=U(new ae(e.rightOperand,t)),this.leftOperand=$b(this.leftOperand),this.rightOperand=$b(this.rightOperand)}print(e,t,n){return iF(this,t,e,n)}};var nF={"*":wt(["/","%"]),"/":wt(["*","%"]),"%":wt(["*","/","%"])},sF=Wt(We([h.AdditiveExpression,h.ShiftExpression,h.BitwiseAndExpression,h.BitwiseOrExpression,h.BitwiseXorExpression,h.InequalityExpression,h.EqualityExpression,h.AndExpression,h.OrExpression])),Rc=class extends b{kind=h.MultiplicativeExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=U(new ae(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=U(new ae(e.rightOperand,t));let n=nF[this.operator];if(n===void 0)throw new Error(`Unexpected operator: ${this.operator}`);this.leftOperand=n(this.leftOperand)}print(e,t,n){return sF(this,t,e,n)}};var Hb=wt(["**"]),oF=We([h.MultiplicativeExpression,h.AdditiveExpression,h.ShiftExpression,h.BitwiseAndExpression,h.BitwiseOrExpression,h.BitwiseXorExpression,h.InequalityExpression,h.EqualityExpression,h.AndExpression,h.OrExpression]),aF=Os(()=>r=>Ue(r),Oy(oF)),Oc=class extends b{kind=h.ExponentiationExpression;leftOperand;operator;rightOperand;constructor(e,t){super(e,t),this.leftOperand=U(new ae(e.leftOperand,t)),this.operator=e.operator.unparse(),this.rightOperand=U(new ae(e.rightOperand,t)),this.rightOperand=Hb(this.rightOperand),this.leftOperand=Hb(this.leftOperand)}print(e,t,n){return aF(this,t,e,n)}};var Mc=class extends b{kind=h.PostfixExpression;operand;operator;constructor(e,t){super(e,t),this.operand=U(new ae(e.operand,t)),this.operator=e.operator.unparse()}print(e){return[e("operand"),this.operator]}};var Yc=class extends b{kind=h.PrefixExpression;operator;operand;constructor(e,t){super(e,t),this.operator=e.operator.unparse(),this.operand=U(new ae(e.operand,t)),this.operator==="delete"&&(this.operator="delete ")}print(e){return[this.operator,e("operand")]}};function Bc(r,e){return r.type==="label"&&r.label===e}function kn(r,e){let t=Symbol("Slang.GroupAndIndentIfBreakPair");return[Ue(r,{id:t}),kb(e,{groupId:t})]}var My=Symbol("MemberAccessChain");function Uc(r,e){return Bc(r,My)?{...r,contents:kn(r.contents,e)}:[r,e].flat()}var Vc=class extends b{kind=h.FunctionCallExpression;operand;arguments;constructor(e,t){super(e,t),this.operand=U(new ae(e.operand,t)),this.arguments=U(new Gr(e.arguments,t))}print(e){return Uc(e("operand"),e("arguments"))}};var Us=class extends b{kind=h.NamedArgument;name;value;constructor(e,t){super(e,t),this.name=new ee(e.name,t),this.value=U(new ae(e.value,t))}print(e){return[e("name"),": ",e("value")]}};var $c=class extends b{kind=h.CallOptions;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new Us(n,t))}print(e,t,n){return Le(t.map(e,"items"),{firstSeparator:n.bracketSpacing?de:mr})}};var Hc=class extends b{kind=h.CallOptionsExpression;operand;options;constructor(e,t){super(e,t),this.operand=U(new ae(e.operand,t)),this.options=new $c(e.options,t)}print(e){return[e("operand"),"{",e("options"),"}"]}};var qb=Symbol("separator");function lF(r,e){for(let t=1,n=r,o;o=e.getNode(t),!!Cc(o);t++,n=o)switch(o.kind){case h.MemberAccessExpression:return!1;case h.IndexAccessExpression:if(n!==o.operand)return!0;break;case h.FunctionCallExpression:if(n!==o.operand)return!0;break}return!0}function uF(r){let e=r.findIndex(t=>Bc(t,qb));return Py(My,[r.slice(0,e),Ue(yt(r.slice(e)))])}var qc=class extends b{kind=h.MemberAccessExpression;operand;member;constructor(e,t){super(e,t),this.operand=U(new ae(e.operand,t)),this.member=new ee(e.member,t)}print(e,t){let n=e("operand");Array.isArray(n)&&(n=n.flat());let o=[n,Py(qb,[mr,"."]),e("member")].flat();return lF(this,t)?uF(o):o}};var jc=class extends b{kind=h.IndexAccessEnd;end;constructor(e,t){super(e,t),e.end&&(this.end=U(new ae(e.end,t)))}print(e){return[":",e("end")]}};var Gc=class extends b{kind=h.IndexAccessExpression;operand;start;end;constructor(e,t){super(e,t),this.operand=U(new ae(e.operand,t)),e.start&&(this.start=U(new ae(e.start,t))),e.end&&(this.end=new jc(e.end,t))}print(e){return Uc(e("operand"),["[",ze([e("start"),e("end")]),"]"])}};var Wc=class extends b{kind=h.ArrayTypeName;operand;index;constructor(e,t){super(e,t),this.operand=U(new Je(e.operand,t)),e.index&&(this.index=U(new ae(e.index,t)))}print(e){return[e("operand"),"[",e("index"),"]"]}};function fr(r,e,t){let n=t("returns");return[Ue([r,t("parameters"),yt(Ue([t("attributes"),n&&[de,n],"body"in e&&e.body.kind===h.Block?Qu(de):""]))]),t("body")]}var Ci=class extends b{kind=h.StorageLocation;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse()}print(){return this.variant}};var zc=class extends b{kind=h.Parameter;typeName;storageLocation;name;constructor(e,t){super(e,t),this.typeName=U(new Je(e.typeName,t)),e.storageLocation&&(this.storageLocation=new Ci(e.storageLocation,t)),e.name&&(this.name=new ee(e.name,t))}print(e){let t=e("storageLocation"),n=e("name");return Ue([e("typeName"),t&&[" ",t],n&&[" ",n]])}};var Vs=class extends b{kind=h.Parameters;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new zc(n,t))}print(e,t,n){if(this.items.length>0)return Le(t.map(e,"items"),{grouped:!1});let o=bi(this,t,n);return o.length>0?ze(o):""}};var gt=class extends b{kind=h.ParametersDeclaration;parameters;constructor(e,t){super(e,t),this.parameters=new Vs(e.parameters,t)}print(e){return["(",e("parameters"),")"]}};var jb=new Set(["external","internal","public","private"]),Gb=new Set(["pure","constant","payable","view"]);function zt(r,e){let t=r instanceof ee,n=e instanceof ee;return t&&n?jb.has(r.value)?-1:jb.has(e.value)?1:Gb.has(r.value)?-1:Gb.has(e.value)?1:0:t?-1:n?1:r.kind===h.OverrideSpecifier&&e.kind===h.ModifierInvocation?-1:e.kind===h.OverrideSpecifier&&r.kind===h.ModifierInvocation?1:0}var Qc=class extends b{kind=h.FunctionTypeAttribute;variant;constructor(e,t){super(e,t),this.variant=new ee(e.variant,t)}};var Xc=class extends b{kind=h.FunctionTypeAttributes;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Qc(n,t))),this.items.sort(zt)}print(e,t){return t.map(()=>[de,e()],"items")}};var Si=class extends b{kind=h.ReturnsDeclaration;variables;constructor(e,t){super(e,t),this.variables=new gt(e.variables,t)}print(e){return["returns ",Ue(e("variables"))]}};var Jc=class extends b{kind=h.FunctionType;parameters;attributes;returns;constructor(e,t){super(e,t),this.parameters=new gt(e.parameters,t),this.attributes=new Xc(e.attributes,t),e.returns&&(this.returns=new Si(e.returns,t))}print(e){return fr("function",this,e)}};var Zc=class extends b{kind=h.AddressType;payableKeyword;constructor(e,t){super(e,t),this.payableKeyword=e.payableKeyword?.unparse()}print(){return`address${this.payableKeyword?" payable":""}`}};var vi=class extends b{kind=h.ElementaryType;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=new Zc(n,t)}};var cF=Pe([[Mt,bt]],[[$r,vi]]),eh=class extends b{kind=h.MappingKeyType;variant;constructor(e,t){super(e,t),this.variant=cF(e.variant,t)}};var th=class extends b{kind=h.MappingKey;keyType;name;constructor(e,t){super(e,t),this.keyType=U(new eh(e.keyType,t)),e.name&&(this.name=new ee(e.name,t))}print(e){let t=e("name");return[e("keyType"),t&&[" ",t]]}};var rh=class extends b{kind=h.MappingValue;typeName;name;constructor(e,t){super(e,t),this.typeName=U(new Je(e.typeName,t)),e.name&&(this.name=new ee(e.name,t))}print(e){let t=e("name");return[e("typeName"),t&&[" ",t]]}};var ih=class extends b{kind=h.MappingType;keyType;valueType;constructor(e,t){super(e,t),this.keyType=new th(e.keyType,t),this.valueType=new rh(e.valueType,t)}print(e){return["mapping(",e("keyType")," => ",e("valueType"),")"]}};var hF=Pe([[ca,Wc],[ha,Jc],[pa,ih],[Mt,bt]],[[$r,vi]]),Je=class extends b{kind=h.TypeName;variant;constructor(e,t){super(e,t),this.variant=hF(e.variant,t)}};var nh=class extends b{kind=h.NewExpression;typeName;constructor(e,t){super(e,t),this.typeName=U(new Je(e.typeName,t))}print(e){return["new ",e("typeName")]}};var sh=class extends b{kind=h.TypeExpression;typeName;constructor(e,t){super(e,t),this.typeName=U(new Je(e.typeName,t))}print(e){return["type(",e("typeName"),")"]}};var oh=class extends b{kind=h.ArrayValues;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new ae(n,t)))}print(e,t){return Le(t.map(e,"items"))}};var ah=class extends b{kind=h.ArrayExpression;items;constructor(e,t){super(e,t),this.items=new oh(e.items,t)}print(e){return["[",e("items"),"]"]}};var $s=class extends b{kind=h.NumberUnit;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse()}print(){return this.variant}};var lh=class extends b{kind=h.HexNumberExpression;literal;unit;constructor(e,t){super(e,t),this.literal=e.literal.unparse(),e.unit&&(this.unit=new $s(e.unit,t))}print(e){let t=e("unit");return[this.literal,t&&[" ",t]]}};var uh=class extends b{kind=h.DecimalNumberExpression;literal;unit;constructor(e,t){super(e,t),this.literal=e.literal.unparse(),e.unit&&(this.unit=new $s(e.unit,t))}print(e){let t=e("unit");return[this.literal,t&&[" ",t]]}};var ch=class extends b{kind=h.StringLiterals;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new Dt(n,t))}print(e,t){return Xe($e,t.map(e,"items"))}};var Ln=class extends b{kind=h.HexStringLiteral;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse(),this.variant=`hex${Rs(this.variant.slice(4,-1),t.options)}`}print(){return this.variant}};var hh=class extends b{kind=h.HexStringLiterals;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new Ln(n,t))}print(e,t){return Xe($e,t.map(e,"items"))}};var ph=class extends b{kind=h.UnicodeStringLiteral;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse(),this.variant=`unicode${Rs(this.variant.slice(8,-1),t.options)}`}print(){return this.variant}};var dh=class extends b{kind=h.UnicodeStringLiterals;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new ph(n,t))}print(e,t){return Xe($e,t.map(e,"items"))}};var pF=Pe([[sr,Dt],[gl,ch],[zi,Ln],[xl,hh],[Dl,dh]]),mh=class extends b{kind=h.StringExpression;variant;constructor(e,t){super(e,t),this.variant=pF(e.variant,t)}};var dF=Pe([[_a,Sc],[Ka,vc],[Fa,Ac],[Na,_c],[Pa,Kc],[ka,Fc],[La,Nc],[Ia,Pc],[Ra,kc],[Oa,Lc],[Ma,Ic],[Ya,Rc],[Ba,Oc],[Ua,Mc],[Va,Yc],[$a,Vc],[Ha,Hc],[qa,qc],[ja,Gc],[Qa,nh],[Xa,Bs],[za,sh],[Ja,ah],[Za,lh],[el,uh]],[[wl,mh],[$r,vi]]),ae=class extends b{kind=h.Expression;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=dF(n,t)}};var fh=class extends b{kind=h.PositionalArguments;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new ae(n,t)))}print(e,t,n){if(this.items.length>0)return Le(t.map(e,"items"));let o=bi(this,t,n);return o.length>0?ze(o):""}};var yh=class extends b{kind=h.PositionalArgumentsDeclaration;isEmpty;arguments;constructor(e,t){super(e,t),this.arguments=new fh(e.arguments,t),this.isEmpty=this.arguments.items.length===0&&e.cst.children().every(({node:n})=>!Ur(n))}print(e){return["(",e("arguments"),")"]}};var wh=class extends b{kind=h.NamedArguments;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new Us(n,t))}print(e,t,n){return Le(t.map(e,"items"),{firstSeparator:n.bracketSpacing?de:mr})}};var gh=class extends b{kind=h.NamedArgumentGroup;arguments;constructor(e,t){super(e,t),this.arguments=new wh(e.arguments,t)}print(e){return["{",e("arguments"),"}"]}};var xh=class extends b{kind=h.NamedArgumentsDeclaration;arguments;constructor(e,t){super(e,t),e.arguments&&(this.arguments=new gh(e.arguments,t))}print(e){return["(",e("arguments"),")"]}};var mF=Pe([[Ga,yh],[Wa,xh]]),Gr=class extends b{kind=h.ArgumentsDeclaration;variant;constructor(e,t){super(e,t),this.variant=mF(e.variant,t)}};var Dh=class extends b{kind=h.InheritanceType;typeName;arguments;constructor(e,t){super(e,t),this.typeName=new bt(e.typeName,t),e.arguments&&(this.arguments=U(new Gr(e.arguments,t)))}print(e){return[e("typeName"),e("arguments")]}};var bh=class extends b{kind=h.InheritanceTypes;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new Dh(n,t))}print(e,t){return Le(t.map(e,"items"),{firstSeparator:de})}};var Hs=class extends b{kind=h.InheritanceSpecifier;types;constructor(e,t){super(e,t),this.types=new bh(e.types,t)}print(e){return["is",e("types")]}};var Eh=class extends b{kind=h.StorageLayoutSpecifier;expression;constructor(e,t){super(e,t),this.expression=U(new ae(e.expression,t))}print(e,t){return["layout at",ze(e("expression"),{firstSeparator:de,lastSeparator:t.isFirst?de:""})]}};var fF=Pe([[Ns,Hs],[ea,Eh]]),Ch=class extends b{kind=h.ContractSpecifier;variant;constructor(e,t){super(e,t),this.variant=fF(e.variant,t)}};function yF({kind:r},{kind:e}){return r===h.InheritanceSpecifier&&e===h.StorageLayoutSpecifier?-1:e===h.InheritanceSpecifier&&r===h.StorageLayoutSpecifier?1:0}var Sh=class extends b{kind=h.ContractSpecifiers;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Ch(n,t))),this.items.sort(yF)}print(e,t){let[n,o]=t.map(e,"items");if(n===void 0)return"";if(o===void 0)return[" ",n];let u=Symbol("Slang.ContractSpecifiers.inheritance");return Le([Ue(n,{id:u}),o],{firstSeparator:de,separator:El("",mr,{groupId:u})})}};var vh=class extends b{kind=h.UsingOperator;variant;constructor(e,t){super(e,t),this.variant=e.variant.unparse()}print(){return this.variant}};var Th=class extends b{kind=h.UsingAlias;operator;constructor(e,t){super(e,t),this.operator=new vh(e.operator,t)}print(e){return[" as ",e("operator")]}};var Ah=class extends b{kind=h.UsingDeconstructionSymbol;name;alias;constructor(e,t){super(e,t),this.name=new bt(e.name,t),e.alias&&(this.alias=new Th(e.alias,t))}print(e){return[e("name"),e("alias")]}};var _h=class extends b{kind=h.UsingDeconstructionSymbols;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new Ah(n,t))}print(e,t,n){return Le(t.map(e,"items"),{firstSeparator:n.bracketSpacing?de:mr})}};var Kh=class extends b{kind=h.UsingDeconstruction;symbols;constructor(e,t){super(e,t),this.symbols=new _h(e.symbols,t)}print(e){return["{",e("symbols"),"}"]}};var wF=Pe([[Mt,bt],[Jo,Kh]]),Fh=class extends b{kind=h.UsingClause;variant;constructor(e,t){super(e,t),this.variant=wF(e.variant,t)}};var Nh=class extends b{kind=h.UsingTarget;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=U(new Je(n,t))}};var qs=class extends b{kind=h.UsingDirective;clause;target;globalKeyword;constructor(e,t){super(e,t),this.clause=U(new Fh(e.clause,t)),this.target=U(new Nh(e.target,t)),this.globalKeyword=e.globalKeyword?.unparse()}print(e){return["using ",e("clause")," for ",e("target"),this.globalKeyword?" global;":";"]}};var Wb=ai(ts(),1);var Ph=class extends b{kind=h.FunctionName;variant;constructor(e,t){super(e,t),this.variant=new ee(e.variant,t)}};var Wr=class extends b{kind=h.ModifierInvocation;name;arguments;constructor(e,t){super(e,t),this.name=new bt(e.name,t),e.arguments&&(this.arguments=U(new Gr(e.arguments,t)))}cleanModifierInvocationArguments(){this.arguments?.kind===h.PositionalArgumentsDeclaration&&this.arguments.isEmpty&&(this.arguments=void 0)}print(e){return[e("name"),e("arguments")]}};var kh=class extends b{kind=h.OverridePaths;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new bt(n,t))}print(e,t){return Le(t.map(e,"items"))}};var Lh=class extends b{kind=h.OverridePathsDeclaration;paths;constructor(e,t){super(e,t),this.paths=new kh(e.paths,t)}print(e){return["(",e("paths"),")"]}};var zr=class extends b{kind=h.OverrideSpecifier;overridden;constructor(e,t){super(e,t),e.overridden&&(this.overridden=new Lh(e.overridden,t))}print(e){return["override",e("overridden")]}};var gF=Pe([[Fr,Wr],[Kr,zr]]),Ih=class extends b{kind=h.FunctionAttribute;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=gF(n,t)}};var Rh=class extends b{kind=h.FunctionAttributes;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Ih(n,t))),this.items.sort(zt)}print(e,t){return t.map(()=>[de,e()],"items")}};var In=class extends b{kind=h.ExpressionStatement;expression;constructor(e,t){super(e,t),this.expression=U(new ae(e.expression,t))}print(e){return[e("expression"),";"]}};var Oh=class extends b{kind=h.VariableDeclarationType;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=U(new Je(n,t))}};var Mh=class extends b{kind=h.VariableDeclarationValue;expression;constructor(e,t){super(e,t),this.expression=U(new ae(e.expression,t))}print(e){return[" =",Pn(e("expression"),this.expression)]}};var js=class extends b{kind=h.VariableDeclarationStatement;variableType;storageLocation;name;value;constructor(e,t){super(e,t),this.variableType=U(new Oh(e.variableType,t)),e.storageLocation&&(this.storageLocation=new Ci(e.storageLocation,t)),this.name=new ee(e.name,t),e.value&&(this.value=new Mh(e.value,t))}print(e){return kn([e("variableType"),this.storageLocation?yt([de,e("storageLocation")]):""," ",e("name")],[e("value"),";"])}};var Yh=class extends b{kind=h.TypedTupleMember;typeName;storageLocation;name;constructor(e,t){super(e,t),this.typeName=U(new Je(e.typeName,t)),e.storageLocation&&(this.storageLocation=new Ci(e.storageLocation,t)),this.name=new ee(e.name,t)}print(e){let t=e("storageLocation");return[e("typeName"),t&&[" ",t]," ",e("name")]}};var Bh=class extends b{kind=h.UntypedTupleMember;storageLocation;name;constructor(e,t){super(e,t),e.storageLocation&&(this.storageLocation=new Ci(e.storageLocation,t)),this.name=new ee(e.name,t)}print(e){let t=e("storageLocation");return[t&&[t," "],e("name")]}};var xF=Pe([[fa,Yh],[ya,Bh]]),Uh=class extends b{kind=h.TupleMember;variant;constructor(e,t){super(e,t),this.variant=xF(e.variant,t)}};var Vh=class extends b{kind=h.TupleDeconstructionElement;member;constructor(e,t){super(e,t),e.member&&(this.member=U(new Uh(e.member,t)))}print(e,t,n){if(this.member)return e("member");let o=this.comments?.at(-1);return[bi(this,t,n),o&&!Ur(o)&&!t.isLast?$e:""]}};var $h=class extends b{kind=h.TupleDeconstructionElements;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new Vh(n,t))}print(e,t){let n=t.map(e,"items"),o=this.items[this.items.length-1];return n.length>1&&o.member===void 0&&!o.comments?.length?Le(n.slice(0,-1),{lastSeparator:[",",de]}):Le(n)}};var Gs=class extends b{kind=h.TupleDeconstructionStatement;varKeyword;elements;expression;constructor(e,t){super(e,t),this.varKeyword=e.varKeyword?.unparse(),this.elements=new $h(e.elements,t),this.expression=U(new ae(e.expression,t))}print(e){return kn([this.varKeyword?"var (":"(",e("elements"),") = "],[e("expression"),";"])}};var DF=We([h.Block,h.IfStatement]),Hh=class extends b{kind=h.ElseBranch;body;constructor(e,t){super(e,t),this.body=U(new yr(e.body,t))}print(e){return["else",qr(e("body"),!DF(this.body))]}};var qh=class extends b{kind=h.IfStatement;condition;body;elseBranch;constructor(e,t){super(e,t),this.condition=U(new ae(e.condition,t)),this.body=U(new yr(e.body,t)),e.elseBranch&&(this.elseBranch=new Hh(e.elseBranch,t))}print(e){let{kind:t,comments:n}=this.body;return["if (",ze(e("condition")),")",qr(e("body"),t!==h.Block,{shouldBreak:t===h.IfStatement}),this.elseBranch?[t!==h.Block||n?.some(o=>!Ur(o)||o.placement==="ownLine")?$e:" ",e("elseBranch")]:""]}};var bF=Pe([[Wi,In],[Kn,js],[_n,Gs]]),jh=class extends b{kind=h.ForStatementInitialization;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=bF(n,t)}};var Gh=class extends b{kind=h.ForStatementCondition;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=new In(n,t)}};var Wh=class extends b{kind=h.ForStatement;initialization;condition;iterator;body;constructor(e,t){super(e,t),this.initialization=U(new jh(e.initialization,t)),this.condition=U(new Gh(e.condition,t)),e.iterator&&(this.iterator=U(new ae(e.iterator,t))),this.body=U(new yr(e.body,t))}print(e){let t=e("initialization"),n=e("condition"),o=e("iterator");return["for (",ze(o===""?[t,t===";"&&n===";"?"":de,n]:[t,de,n,de,o]),")",qr(e("body"),this.body.kind!==h.Block)]}};var zh=class extends b{kind=h.WhileStatement;condition;body;constructor(e,t){super(e,t),this.condition=U(new ae(e.condition,t)),this.body=U(new yr(e.body,t))}print(e){return["while (",ze(e("condition")),")",qr(e("body"),this.body.kind!==h.Block)]}};var Qh=class extends b{kind=h.DoWhileStatement;body;condition;constructor(e,t){super(e,t),this.body=U(new yr(e.body,t)),this.condition=U(new ae(e.condition,t))}print(e){let t=e("body");return["do",this.body.kind===h.Block?[" ",t," "]:ze(t,{firstSeparator:de}),"while (",ze(e("condition")),");"]}};var Xh=class extends b{kind=h.ContinueStatement;constructor(e,t){super(e,t)}print(){return"continue;"}};var Jh=class extends b{kind=h.BreakStatement;constructor(e,t){super(e,t)}print(){return"break;"}};var Zh=class extends b{kind=h.ReturnStatement;expression;constructor(e,t){super(e,t),e.expression&&(this.expression=U(new ae(e.expression,t)))}print(e,t,n){let o=this.expression?.kind;return["return",o?qr(e("expression"),o!==h.TupleExpression&&(!n.experimentalTernaries||o!==h.ConditionalExpression)):"",";"]}};var ep=class extends b{kind=h.ThrowStatement;constructor(e,t){super(e,t)}print(){return"throw;"}};var tp=class extends b{kind=h.EmitStatement;event;arguments;constructor(e,t){super(e,t),this.event=new bt(e.event,t),this.arguments=U(new Gr(e.arguments,t))}print(e){return["emit ",e("event"),e("arguments"),";"]}};var rp=class extends b{kind=h.CatchClauseError;name;parameters;constructor(e,t){super(e,t),e.name&&(this.name=new ee(e.name,t)),this.parameters=new gt(e.parameters,t)}print(e){return[e("name"),Ue(e("parameters"))," "]}};var ip=class extends b{kind=h.CatchClause;error;body;constructor(e,t){super(e,t),e.error&&(this.error=new rp(e.error,t)),this.body=new wr(e.body,t)}print(e){return["catch ",e("error"),e("body")]}};var np=class extends b{kind=h.CatchClauses;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new ip(n,t))}print(e,t){return Xe(" ",t.map(e,"items"))}};var sp=class extends b{kind=h.TryStatement;expression;returns;body;catchClauses;constructor(e,t){super(e,t),this.expression=U(new ae(e.expression,t)),e.returns&&(this.returns=new Si(e.returns,t)),this.body=new wr(e.body,t),this.catchClauses=new np(e.catchClauses,t)}print(e){let t=e("returns");return["try",ze(e("expression"),{firstSeparator:de}),[t&&[t," "],e("body")," ",e("catchClauses")]]}};var op=class extends b{kind=h.RevertStatement;error;arguments;constructor(e,t){super(e,t),this.error=new bt(e.error,t),this.arguments=U(new Gr(e.arguments,t))}print(e){return["revert ",e("error"),e("arguments"),";"]}};var ap=class extends b{kind=h.AssemblyFlags;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new Dt(n,t))}print(e,t){return Le(t.map(e,"items"))}};var lp=class extends b{kind=h.AssemblyFlagsDeclaration;flags;constructor(e,t){super(e,t),this.flags=new ap(e.flags,t)}print(e){return["(",e("flags"),")"]}};var up=class extends b{kind=h.YulParameters;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new ee(n,t))}print(e,t){return Le(t.map(e,"items"))}};var cp=class extends b{kind=h.YulParametersDeclaration;parameters;constructor(e,t){super(e,t),this.parameters=new up(e.parameters,t)}print(e){return["(",e("parameters"),")"]}};var Ws=class extends b{kind=h.YulVariableNames;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new ee(n,t))}print(e,t){return Le(t.map(e,"items"),{firstSeparator:de,lastSeparator:""})}};var hp=class extends b{kind=h.YulReturnsDeclaration;variables;constructor(e,t){super(e,t),this.variables=new Ws(e.variables,t)}print(e){return ze(["->",e("variables")],{firstSeparator:de})}};var pp=class extends b{kind=h.YulFunctionDefinition;name;parameters;returns;body;constructor(e,t){super(e,t),this.name=new ee(e.name,t),this.parameters=new cp(e.parameters,t),e.returns&&(this.returns=new hp(e.returns,t)),this.body=new Ft(e.body,t)}print(e){return["function ",e("name"),e("parameters"),e("returns")||" ",e("body")]}};var dp=class extends b{kind=h.YulColonAndEqual;constructor(e,t){super(e,t)}print(){return":="}};var zs=class extends b{kind=h.YulAssignmentOperator;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=new dp(n,t)}};var mp=class extends b{kind=h.YulArguments;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Nt(n,t)))}print(e,t){return Le(t.map(e,"items"))}};var fp=class extends b{kind=h.YulFunctionCallExpression;operand;arguments;constructor(e,t){super(e,t),this.operand=U(new Nt(e.operand,t)),this.arguments=new mp(e.arguments,t)}print(e){return[e("operand"),"(",e("arguments"),")"]}};var EF=Pe([[zi,Ln],[sr,Dt]]),Qs=class extends b{kind=h.YulLiteral;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=EF(n,t)}};var Xs=class extends b{kind=h.YulPath;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new ee(n,t))}print(e,t){return Xe(".",t.map(e,"items"))}};var CF=Pe([[ml,fp],[Is,Xs]],[[Ls,Qs]]),Nt=class extends b{kind=h.YulExpression;variant;constructor(e,t){super(e,t),this.variant=CF(e.variant,t)}};var yp=class extends b{kind=h.YulVariableDeclarationValue;assignment;expression;constructor(e,t){super(e,t),this.assignment=U(new zs(e.assignment,t)),this.expression=U(new Nt(e.expression,t))}print(e){return[e("assignment")," ",e("expression")]}};var wp=class extends b{kind=h.YulVariableDeclarationStatement;variables;value;constructor(e,t){super(e,t),this.variables=new Ws(e.variables,t),e.value&&(this.value=new yp(e.value,t))}print(e){let t=e("value");return["let",e("variables"),t&&[" ",t]]}};var gp=class extends b{kind=h.YulPaths;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new Xs(n,t))}print(e,t){return Xe(", ",t.map(e,"items"))}};var xp=class extends b{kind=h.YulVariableAssignmentStatement;variables;assignment;expression;constructor(e,t){super(e,t),this.variables=new gp(e.variables,t),this.assignment=U(new zs(e.assignment,t)),this.expression=U(new Nt(e.expression,t))}print(e){return Xe(" ",[e("variables"),e("assignment"),e("expression")])}};var Dp=class extends b{kind=h.YulEqualAndColon;constructor(e,t){super(e,t)}print(){return"=:"}};var bp=class extends b{kind=h.YulStackAssignmentOperator;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=new Dp(n,t)}};var Ep=class extends b{kind=h.YulStackAssignmentStatement;assignment;variable;constructor(e,t){super(e,t),this.assignment=U(new bp(e.assignment,t)),this.variable=new ee(e.variable,t)}print(e){return[e("assignment"),ze(e("variable"),{firstSeparator:de,lastSeparator:""})]}};var Cp=class extends b{kind=h.YulIfStatement;condition;body;constructor(e,t){super(e,t),this.condition=U(new Nt(e.condition,t)),this.body=new Ft(e.body,t)}print(e){return["if ",e("condition")," ",e("body")]}};var Sp=class extends b{kind=h.YulForStatement;initialization;condition;iterator;body;constructor(e,t){super(e,t),this.initialization=new Ft(e.initialization,t),this.condition=U(new Nt(e.condition,t)),this.iterator=new Ft(e.iterator,t),this.body=new Ft(e.body,t)}print(e){return Xe(" ",["for",e("initialization"),e("condition"),e("iterator"),e("body")])}};var vp=class extends b{kind=h.YulDefaultCase;body;constructor(e,t){super(e,t),this.body=new Ft(e.body,t)}print(e){return["default ",e("body")]}};var Tp=class extends b{kind=h.YulValueCase;value;body;constructor(e,t){super(e,t),this.value=U(new Qs(e.value,t)),this.body=new Ft(e.body,t)}print(e){return["case ",e("value")," ",e("body")]}};var SF=Pe([[ll,vp],[ul,Tp]]),Ap=class extends b{kind=h.YulSwitchCase;variant;constructor(e,t){super(e,t),this.variant=SF(e.variant,t)}};var _p=class extends b{kind=h.YulSwitchCases;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Ap(n,t)))}print(e,t){return Xe($e,t.map(e,"items"))}};var Kp=class extends b{kind=h.YulSwitchStatement;expression;cases;constructor(e,t){super(e,t),this.expression=U(new Nt(e.expression,t)),this.cases=new _p(e.cases,t)}print(e){return["switch ",e("expression"),$e,e("cases")]}};var Fp=class extends b{kind=h.YulLeaveStatement;constructor(e,t){super(e,t)}print(){return"leave"}};var Np=class extends b{kind=h.YulBreakStatement;constructor(e,t){super(e,t)}print(){return"break"}};var Pp=class extends b{kind=h.YulContinueStatement;constructor(e,t){super(e,t)}print(){return"continue"}};var kp=class extends b{kind=h.YulLabel;label;constructor(e,t){super(e,t),this.label=new ee(e.label,t)}print(e){return[Qu(de),e("label"),":"]}};var vF=Pe([[tl,pp],[rl,wp],[il,xp],[nl,Ep],[sl,Cp],[ol,Sp],[al,Kp],[cl,Fp],[hl,Np],[pl,Pp],[dl,kp]],[[Hr,Nt]]),Lp=class extends b{kind=h.YulStatement;variant;constructor(e,t){super(e,t);let n=e.variant;this.variant=n instanceof _r?new Ft(n,t):vF(n,t)}};var Ip=class extends b{kind=h.YulStatements;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Lp(n,t)))}print(e,t,n){return Ei(this,t,e,n)}};var Ft=class extends b{kind=h.YulBlock;statements;constructor(e,t){super(e,t),this.statements=new Ip(e.statements,t)}print(e){return["{",e("statements"),"}"]}};var Rp=class extends b{kind=h.AssemblyStatement;label;flags;body;constructor(e,t){super(e,t),e.label&&(this.label=new Dt(e.label,t)),e.flags&&(this.flags=new lp(e.flags,t)),this.body=new Ft(e.body,t)}print(e){let t=e("label"),n=e("flags");return["assembly ",t&&[t," "],n&&[n," "],e("body")]}};var Op=class extends b{kind=h.UncheckedBlock;block;constructor(e,t){super(e,t),this.block=new wr(e.block,t)}print(e){return["unchecked ",e("block")]}};var TF=Pe([[Wi,In],[Kn,js],[_n,Gs],[wa,qh],[ga,Wh],[xa,zh],[Da,Qh],[ba,Xh],[Ea,Jh],[Ca,Zh],[Aa,ep],[Sa,tp],[va,sp],[Ta,op],[ma,Rp],[da,Op]]),yr=class extends b{kind=h.Statement;variant;constructor(e,t){super(e,t);let n=e.variant;this.variant=n instanceof xi?new wr(n,t):TF(n,t)}};var Mp=class extends b{kind=h.Statements;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new yr(n,t)))}print(e,t,n){return Ei(this,t,e,n)}};var wr=class extends b{kind=h.Block;statements;constructor(e,t){super(e,t),this.statements=new Mp(e.statements,t)}print(e){return["{",e("statements"),"}"]}};var Qr=class extends b{kind=h.FunctionBody;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=new wr(n,t)}};var Js=class extends b{kind=h.FunctionDefinition;name;parameters;attributes;returns;body;constructor(e,t){super(e,t),this.name=U(new Ph(e.name,t)),this.parameters=new gt(e.parameters,t),this.attributes=new Rh(e.attributes,t),e.returns&&(this.returns=new Si(e.returns,t)),this.body=U(new Qr(e.body,t)),(0,Wb.default)(t.compiler,">=0.5.0")&&this.cleanModifierInvocationArguments()}cleanModifierInvocationArguments(){for(let e of this.attributes.items)e.kind===h.ModifierInvocation&&e.cleanModifierInvocationArguments()}print(e){return fr(["function ",e("name")],this,e)}};var Yp=class extends b{kind=h.ConstructorAttribute;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=new Wr(n,t)}};var Bp=class extends b{kind=h.ConstructorAttributes;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Yp(n,t))),this.items.sort(zt)}print(e,t){return t.map(()=>[de,e()],"items")}};var Up=class extends b{kind=h.ConstructorDefinition;parameters;attributes;body;constructor(e,t){super(e,t),this.parameters=new gt(e.parameters,t),this.attributes=new Bp(e.attributes,t),this.body=new wr(e.body,t)}print(e){return fr("constructor",this,e)}};var AF=Pe([[Fr,Wr],[Kr,zr]]),Vp=class extends b{kind=h.ReceiveFunctionAttribute;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=AF(n,t)}};var $p=class extends b{kind=h.ReceiveFunctionAttributes;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Vp(n,t))),this.items.sort(zt)}print(e,t){return t.map(()=>[de,e()],"items")}};var Hp=class extends b{kind=h.ReceiveFunctionDefinition;parameters;attributes;body;constructor(e,t){super(e,t),this.parameters=new gt(e.parameters,t),this.attributes=new $p(e.attributes,t),this.body=U(new Qr(e.body,t));for(let n of this.attributes.items)n.kind===h.ModifierInvocation&&n.cleanModifierInvocationArguments()}print(e){return fr("receive",this,e)}};var _F=Pe([[Fr,Wr],[Kr,zr]]),qp=class extends b{kind=h.FallbackFunctionAttribute;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=_F(n,t)}};var jp=class extends b{kind=h.FallbackFunctionAttributes;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new qp(n,t))),this.items.sort(zt)}print(e,t){return t.map(()=>[de,e()],"items")}};var Gp=class extends b{kind=h.FallbackFunctionDefinition;parameters;attributes;returns;body;constructor(e,t){super(e,t),this.parameters=new gt(e.parameters,t),this.attributes=new jp(e.attributes,t),e.returns&&(this.returns=new Si(e.returns,t)),this.body=U(new Qr(e.body,t));for(let n of this.attributes.items)n.kind===h.ModifierInvocation&&n.cleanModifierInvocationArguments()}print(e){return fr("fallback",this,e)}};var Wp=class extends b{kind=h.UnnamedFunctionAttribute;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=new Wr(n,t)}};var zp=class extends b{kind=h.UnnamedFunctionAttributes;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Wp(n,t))),this.items.sort(zt)}print(e,t){return t.map(()=>[de,e()],"items")}};var Qp=class extends b{kind=h.UnnamedFunctionDefinition;parameters;attributes;body;constructor(e,t){super(e,t),this.parameters=new gt(e.parameters,t),this.attributes=new zp(e.attributes,t),this.body=U(new Qr(e.body,t));for(let n of this.attributes.items)n.kind===h.ModifierInvocation&&n.cleanModifierInvocationArguments()}print(e){return fr("function",this,e)}};var Xp=class extends b{kind=h.ModifierAttribute;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=new zr(n,t)}};var Jp=class extends b{kind=h.ModifierAttributes;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Xp(n,t))),this.items.sort(zt)}print(e,t){return t.map(()=>[de,e()],"items")}};var Zp=class extends b{kind=h.ModifierDefinition;name;parameters;attributes;body;constructor(e,t){if(super(e,t),this.name=new ee(e.name,t),e.parameters&&(this.parameters=new gt(e.parameters,t)),this.attributes=new Jp(e.attributes,t),this.body=U(new Qr(e.body,t)),!this.parameters){let n=this.attributes.loc.start,o={start:n,end:n};this.parameters=gt.createSynthetic({kind:h.ParametersDeclaration,loc:{...o},comments:void 0,parameters:Vs.createSynthetic({kind:h.Parameters,loc:{...o},comments:void 0,items:[]})})}}print(e){return fr(["modifier ",e("name")],this,e)}};var ed=class extends b{kind=h.StructMember;typeName;name;constructor(e,t){super(e,t),this.typeName=U(new Je(e.typeName,t)),this.name=new ee(e.name,t)}print(e){return[e("typeName")," ",e("name"),";"]}};var td=class extends b{kind=h.StructMembers;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new ed(n,t))}print(e,t,n){if(this.items.length>0)return Le(t.map(e,"items"),{firstSeparator:$e,separator:$e});let o=bi(this,t,n);return o.length>0?ze(o):""}};var Zs=class extends b{kind=h.StructDefinition;name;members;constructor(e,t){super(e,t),this.name=new ee(e.name,t),this.members=new td(e.members,t)}print(e){return["struct ",e("name")," {",e("members"),"}"]}};var rd=class extends b{kind=h.EnumMembers;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new ee(n,t))}print(e,t){return Le(t.map(e,"items"),{firstSeparator:$e})}};var eo=class extends b{kind=h.EnumDefinition;name;members;constructor(e,t){super(e,t),this.name=new ee(e.name,t),this.members=new rd(e.members,t)}print(e){return["enum ",e("name")," {",e("members"),"}"]}};var id=class extends b{kind=h.EventParameter;typeName;indexedKeyword;name;constructor(e,t){super(e,t),this.typeName=U(new Je(e.typeName,t)),this.indexedKeyword=e.indexedKeyword?.unparse(),e.name&&(this.name=new ee(e.name,t))}print(e){let t=e("name");return[e("typeName"),this.indexedKeyword?" indexed":"",t&&[" ",t]]}};var nd=class extends b{kind=h.EventParameters;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new id(n,t))}print(e,t){return this.items.length>0?Le(t.map(e,"items")):""}};var sd=class extends b{kind=h.EventParametersDeclaration;parameters;constructor(e,t){super(e,t),this.parameters=new nd(e.parameters,t)}print(e){return["(",e("parameters"),")"]}};var to=class extends b{kind=h.EventDefinition;name;parameters;anonymousKeyword;constructor(e,t){super(e,t),this.name=new ee(e.name,t),this.parameters=new sd(e.parameters,t),this.anonymousKeyword=e.anonymousKeyword?.unparse()}print(e){return["event ",e("name"),e("parameters"),this.anonymousKeyword?" anonymous;":";"]}};var od=class extends b{kind=h.StateVariableAttribute;variant;constructor(e,t){super(e,t);let n=e.variant;if(n instanceof Re){this.variant=new ee(n,t);return}this.variant=new zr(n,t)}};var ad=class extends b{kind=h.StateVariableAttributes;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new od(n,t))),this.items.sort(zt)}print(e,t){return t.map(()=>[de,e()],"items")}};var ld=class extends b{kind=h.StateVariableDefinitionValue;value;constructor(e,t){super(e,t),this.value=U(new ae(e.value,t))}print(e){return[" =",Pn(e("value"),this.value)]}};var ud=class extends b{kind=h.StateVariableDefinition;typeName;attributes;name;value;constructor(e,t){super(e,t),this.typeName=U(new Je(e.typeName,t)),this.attributes=new ad(e.attributes,t),this.name=new ee(e.name,t),e.value&&(this.value=new ld(e.value,t))}print(e){return kn([e("typeName"),yt(e("attributes"))," ",e("name")],[e("value"),";"])}};var cd=class extends b{kind=h.ErrorParameter;typeName;name;constructor(e,t){super(e,t),this.typeName=U(new Je(e.typeName,t)),e.name&&(this.name=new ee(e.name,t))}print(e){let t=e("name");return[e("typeName"),t&&[" ",t]]}};var hd=class extends b{kind=h.ErrorParameters;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>new cd(n,t))}print(e,t){return this.items.length>0?Le(t.map(e,"items")):""}};var pd=class extends b{kind=h.ErrorParametersDeclaration;parameters;constructor(e,t){super(e,t),this.parameters=new hd(e.parameters,t)}print(e){return["(",e("parameters"),")"]}};var ro=class extends b{kind=h.ErrorDefinition;name;members;constructor(e,t){super(e,t),this.name=new ee(e.name,t),this.members=new pd(e.members,t)}print(e){return["error ",e("name"),e("members"),";"]}};var io=class extends b{kind=h.UserDefinedValueTypeDefinition;name;valueType;constructor(e,t){super(e,t),this.name=new ee(e.name,t),this.valueType=U(new vi(e.valueType,t))}print(e){return["type ",e("name")," is ",e("valueType"),";"]}};var KF=Pe([[bn,qs],[Sn,Js],[sa,Up],[la,Hp],[aa,Gp],[oa,Qp],[ua,Zp],[En,Zs],[Cn,eo],[vn,to],[na,ud],[An,ro],[Tn,io]]),Rn=class extends b{kind=h.ContractMember;variant;constructor(e,t){super(e,t),this.variant=KF(e.variant,t)}};var dd=class extends b{kind=h.ContractMembers;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Rn(n,t)))}print(e,t,n){return Ei(this,t,e,n)}};var md=class extends b{kind=h.ContractDefinition;abstractKeyword;name;specifiers;members;constructor(e,t){if(super(e,t),this.abstractKeyword=e.abstractKeyword?.unparse(),this.name=new ee(e.name,t),this.specifiers=new Sh(e.specifiers,t),this.members=new dd(e.members,t),!(0,zb.default)(t.compiler,">=0.5.0"))for(let n of this.members.items)n.kind===h.FunctionDefinition&&n.name.value!==this.name.value&&n.cleanModifierInvocationArguments()}print(e){return[`${this.abstractKeyword?"abstract ":""}contract `,Ue([e("name"),e("specifiers"),this.specifiers.items.length>0?"":de,"{"]),e("members"),"}"]}};var fd=class extends b{kind=h.InterfaceMembers;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Rn(n,t)))}print(e,t,n){return Ei(this,t,e,n)}};var yd=class extends b{kind=h.InterfaceDefinition;name;inheritance;members;constructor(e,t){super(e,t),this.name=new ee(e.name,t),e.inheritance&&(this.inheritance=new Hs(e.inheritance,t)),this.members=new fd(e.members,t)}print(e){return["interface ",Ue([e("name"),this.inheritance?[" ",e("inheritance")]:de,"{"]),e("members"),"}"]}};var Qb=ai(ts(),1);var wd=class extends b{kind=h.LibraryMembers;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Rn(n,t)))}print(e,t,n){return Ei(this,t,e,n)}};var gd=class extends b{kind=h.LibraryDefinition;name;members;constructor(e,t){if(super(e,t),this.name=new ee(e.name,t),this.members=new wd(e.members,t),!(0,Qb.default)(t.compiler,">=0.5.0"))for(let n of this.members.items)n.kind===h.FunctionDefinition&&n.cleanModifierInvocationArguments()}print(e){return["library ",Ue([e("name"),de,"{"]),e("members"),"}"]}};var xd=class extends b{kind=h.ConstantDefinition;typeName;name;value;constructor(e,t){super(e,t),this.typeName=U(new Je(e.typeName,t)),this.name=new ee(e.name,t),this.value=U(new ae(e.value,t))}print(e){return[e("typeName")," constant ",e("name")," =",Pn(e("value"),this.value),";"]}};var FF=Pe([[Uo,fc],[Go,Ec],[Zo,md],[ta,yd],[ra,gd],[En,Zs],[Cn,eo],[Sn,Js],[ia,xd],[An,ro],[Tn,io],[bn,qs],[vn,to]]),Dd=class extends b{kind=h.SourceUnitMember;variant;constructor(e,t){super(e,t),this.variant=FF(e.variant,t)}};var bd=class extends b{kind=h.SourceUnitMembers;items;constructor(e,t){super(e,t),this.items=e.items.map(n=>U(new Dd(n,t)))}print(e,t,n){return ky(this,t,e,n)}};var Ed=class extends b{kind=h.SourceUnit;members;constructor(e,t){super(e,t),this.members=new bd(e.members,t)}print(e,t,n){return[e("members"),n.parentParser?"":de]}};function Yy(r,e){let{version:t,parseOutput:n}=Nb(r,e),{locations:o,comments:u}=Ib(n.createTreeCursor(),e.originalText),d=new Ed(new Hu(n.tree.asNonterminalNode()),{locations:o,options:e,compiler:t});return d.comments=u,d}function NF(r,e,t){return r.node.print(t,r,e)}var Xb=NF;function Jb({node:r}){return _s(r)?!1:!!r.comments?.some(e=>e.value.slice(2,Ur(e)?-2:void 0).trim()==="prettier-ignore")}var PF=new Set(["kind","loc","comments","print","isEmpty","cleanModifierInvocationArguments","getSingleExpression"]);function Zb(r,e){return Object.keys(r).filter(t=>!e.has(t)&&!PF.has(t))}var eE="slang",tE="antlr",rE="slang-ast",iE="antlr-ast",kF=[{linguistLanguageId:237469032,name:"Solidity",aceMode:"text",tmScope:"source.solidity",extensions:[".sol"],parsers:[eE,tE],vscodeLanguageIds:["solidity"]}],LF={astFormat:iE,parse:W5,...Y3},IF={astFormat:rE,parse:Yy,locStart:L3,locEnd:ut},RF={[eE]:IF,[tE]:LF},OF=({type:r})=>typeof r=="string"&&r!=="BlockComment"&&r!=="LineComment",MF=r=>r.kind&&!_s(r),YF={canAttachComment:OF,handleComments:{ownLine:ix,endOfLine:nx,remaining:sx},isBlockComment:ox,massageAstNode:s0,print:vb,printComment:lx},BF={canAttachComment:MF,handleComments:R3,isBlockComment:Ur,massageAstNode:s0,print:Xb,hasPrettierIgnore:Jb,getVisitorKeys:Zb,printComment:No},UF={[rE]:BF,[iE]:YF},VF={bracketSpacing:!1,tabWidth:4},By={languages:kF,parsers:RF,printers:UF,options:V3,defaultOptions:VF};var nE=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:{};nE.prettierPlugins??={};nE.prettierPlugins.solidity=By;var Y0e=By;export{Y0e as default};
48
+ //# sourceMappingURL=standalone.js.map