From 61a410f98f0fba087b4ada8c38381cfb3bfddb2a Mon Sep 17 00:00:00 2001 From: "Timothy J. Aveni" Date: Thu, 17 Sep 2026 14:34:16 -0700 Subject: [PATCH] Add queryable capability contracts and checked GraphQL artifacts --- grammar/QuixosCapability.g4 | 46 +- package.json | 3 +- proto/camino/schema.proto | 71 + src/bindings/index.ts | 10 +- src/capability-language/assembly.ts | 17 + .../generated/QuixosCapability.interp | 27 +- .../generated/QuixosCapability.tokens | 476 +-- .../generated/QuixosCapabilityLexer.interp | 35 +- .../generated/QuixosCapabilityLexer.tokens | 476 +-- .../generated/QuixosCapabilityLexer.ts | 1120 +++--- .../generated/QuixosCapabilityParser.ts | 3177 ++++++++++------- .../generated/QuixosCapabilityVisitor.ts | 21 + src/capability-language/parser.ts | 115 + src/capability-language/source-loader.ts | 9 +- src/capability-model/generics.ts | 8 +- src/capability-model/types.ts | 9 + src/capability-model/validation.ts | 42 + src/gen/camino/schema_pb.ts | 360 +- src/query/compile.ts | 381 ++ src/query/link.ts | 144 + src/query/proto.ts | 88 + src/query/schema.ts | 243 ++ src/query/types.ts | 90 + test/query-compiler.test.ts | 113 + test/query-contracts.test.ts | 41 + yarn-project.nix | 1 + yarn.lock | 8 + 27 files changed, 4798 insertions(+), 2333 deletions(-) create mode 100644 src/query/compile.ts create mode 100644 src/query/link.ts create mode 100644 src/query/proto.ts create mode 100644 src/query/schema.ts create mode 100644 src/query/types.ts create mode 100644 test/query-compiler.test.ts create mode 100644 test/query-contracts.test.ts diff --git a/grammar/QuixosCapability.g4 b/grammar/QuixosCapability.g4 index 38d4512..38b5ffd 100644 --- a/grammar/QuixosCapability.g4 +++ b/grammar/QuixosCapability.g4 @@ -100,7 +100,7 @@ operationMember ; valueMember - : VALUE identifier ID stringLiteral COLON valueType + : queryReadContract? VALUE identifier ID stringLiteral COLON valueType LBRACE valueMemberOperation* RBRACE ; @@ -111,10 +111,14 @@ valueMemberOperation ; relationshipMember - : RELATION identifier ID stringLiteral COLON cardinality targetConstraint ORDERED? + : queryReadContract? RELATION identifier ID stringLiteral COLON cardinality targetConstraint ORDERED? LBRACE relationshipOperation* RBRACE ; +queryReadContract + : QUERYABLE RPC? + ; + relationshipOperation : RESOLVE ID stringLiteral SEMI | CONNECT ID stringLiteral SEMI @@ -138,6 +142,21 @@ packageExport : packageOperationExport | packageFunctionExport | packageConstructorExport + | packageQuery + ; + +packageQuery + : QUERY identifier ID stringLiteral ROOT interfaceType + DOCUMENT stringLiteral OPERATION stringLiteral LBRACE queryClause* RBRACE + ; + +queryClause + : FRAGMENTS stringLiteral SEMI + | VIEW identifier AS interfaceType SEMI + | MAX identifier INTEGER SEMI + | ALLOW interfaceType DOT identifier identifier stringLiteral SEMI + | WATCH SEMI + | POLL INTEGER stringLiteral SEMI ; packageOperationExport @@ -252,7 +271,7 @@ relationshipMaterializationDecl ; operationBindingDecl - : BIND memberOperationRef TO operationProvider SEMI + : BIND memberOperationRef TO operationProvider (QUERY_REASON stringLiteral)? SEMI ; memberOperationRef @@ -371,6 +390,16 @@ jsonArray identifier : IDENTIFIER | SOURCE + | QUERY + | ROOT + | DOCUMENT + | FRAGMENTS + | VIEW + | MAX + | ALLOW + | POLL + | RPC + | QUERYABLE ; stringLiteral @@ -378,6 +407,17 @@ stringLiteral ; WORKSPACE: 'workspace'; +QUERY: 'query'; +ROOT: 'root'; +DOCUMENT: 'document'; +FRAGMENTS: 'fragments'; +VIEW: 'view'; +MAX: 'max'; +ALLOW: 'allow'; +POLL: 'poll'; +QUERYABLE: 'queryable'; +RPC: 'rpc'; +QUERY_REASON: 'query-reason'; TYPE: 'type'; OBJECT: 'object'; STORABLE: 'storable'; diff --git a/package.json b/package.json index bb98102..c499da9 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,8 @@ "@babel/parser": "^7.28.0", "@bufbuild/protobuf": "^2.12.1", "@bufbuild/protoc-gen-es": "^2.12.1", - "antlr4ng": "^3.0.16" + "antlr4ng": "^3.0.16", + "graphql": "16.11.0" }, "devDependencies": { "@types/node": "^24", diff --git a/proto/camino/schema.proto b/proto/camino/schema.proto index 7d25678..14e0192 100644 --- a/proto/camino/schema.proto +++ b/proto/camino/schema.proto @@ -70,4 +70,75 @@ message PersistencePlan { repeated AtomConformance conformances = 4; repeated StateAttachment states = 5; repeated EdgeAttachment edges = 6; + repeated InstalledQuery queries = 7; +} + +// Immutable checked query IR. Installed only with the checked persistence plan; +// query callers select its ID, never send or modify these definitions. +message QueryArgument { + oneof value { + string variable = 1; + string literal_json = 2; + QueryArgumentList list = 3; + QueryArgumentObject object = 4; + } +} +message QueryArgumentList { + repeated QueryArgument values = 1; +} +message QueryArgumentObject { + map fields = 1; +} +message QueryCondition { + bool include = 1; + QueryArgument value = 2; +} +message QuerySelection { + string name = 1; + string key = 2; + string interface_revision_id = 3; + string member_id = 4; + string target_interface_revision_id = 5; + repeated QueryCondition conditions = 6; + map arguments = 7; + repeated QuerySelection selection = 8; +} +message QueryReadBinding { + string atom_id = 1; + string interface_revision_id = 2; + string member_id = 3; + string getter_operation_id = 4; + string slot_id = 5; + string edge_type_id = 6; + string projection_id = 7; + bool rpc = 8; + string watch_start_operation_id = 9; + string watch_stop_operation_id = 10; + string field_name = 11; + string value_type_json = 12; + Cardinality cardinality = 13; +} +message QueryBudgets { + uint32 rows = 1; + uint32 depth = 2; + uint32 result_bytes = 3; + uint32 candidates = 4; + uint32 rpc_calls = 5; + uint32 concurrency = 6; + uint32 deadline_ms = 7; +} +message InstalledQuery { + string id = 1; + string definition_digest = 2; + string binding_digest = 3; + string root_interface_revision_id = 4; + repeated QuerySelection selection = 5; + repeated QueryReadBinding bindings = 6; + QueryBudgets budgets = 7; + string variables_type_json = 8; + string output_type_json = 9; + map variable_defaults = 10; + bool watch = 11; + uint32 polling_interval_ms = 12; + bool rpc_predicate_or_order = 13; } diff --git a/src/bindings/index.ts b/src/bindings/index.ts index bce2140..26e92f2 100644 --- a/src/bindings/index.ts +++ b/src/bindings/index.ts @@ -320,7 +320,13 @@ export const generateTypeScriptBindings = ( throw new Error(`Invalid message binding export ${binding.export}`); return `import { ${binding.export} as ${alias} } from ${q(binding.module)};`; }); - const signatures = `${object(contexts)} ${object(handlers)} ${object(results)} ${contracts.map((entry) => entry.type).join(" ")}`; + const queryVariables = object( + (pkg.checkedQueries ?? []).map((query) => [query.declaration.displayName, type(query.variables)]), + ); + const queryResults = object( + (pkg.checkedQueries ?? []).map((query) => [query.declaration.displayName, type(query.output)]), + ); + const signatures = `${object(contexts)} ${object(handlers)} ${object(results)} ${queryVariables} ${queryResults} ${contracts.map((entry) => entry.type).join(" ")}`; const typeImports = [ "BindingValue", "QxObjectRef", @@ -341,6 +347,8 @@ export const generateTypeScriptBindings = ( `\nexport const packageRevisionId = ${q(pkg.revisionId)};\n` + `declare const appliedType: unique symbol;\ntype QxApplied = string & {readonly [appliedType]: (value: [Definition, Arguments]) => [Definition, Arguments]};\n` + `export type Contexts = ${object(contexts)};\nexport type Results = ${object(results)};\nexport type Implementation = ${object(handlers)};\n` + + `export type QueryVariables = ${queryVariables};\nexport type QueryResults = ${queryResults};\n` + + `export const queries = ${JSON.stringify(Object.fromEntries((pkg.checkedQueries ?? []).map((query) => [query.declaration.displayName, { id: `${pkg.revisionId}:${query.declaration.id}`, definitionDigest: query.definitionDigest, rootInterfaceRevisionId: query.declaration.root, variables: query.variables, output: query.output, watch: query.declaration.watch }])), null, 2)} as const;\n` + `export const contracts = {${contracts.map((entry) => `${q(entry.iface.revisionId)}: ${entry.code}`).join(",\n")}};\n` + `export const interfaces = {${contracts .filter((entry) => contracts.filter((other) => other.iface.displayName === entry.iface.displayName).length === 1) diff --git a/src/capability-language/assembly.ts b/src/capability-language/assembly.ts index ca13370..55098e1 100644 --- a/src/capability-language/assembly.ts +++ b/src/capability-language/assembly.ts @@ -1,6 +1,8 @@ import { readFile, realpath } from "node:fs/promises"; import path from "node:path"; import { loadQxSources, resolveQxSources } from "./source-loader.js"; +import { compileRepositoryQuery } from "../query/compile.js"; +import { linkQueries } from "../query/link.js"; import { capabilityId, compileWorkspaceRevision, @@ -231,6 +233,16 @@ const createResourceGraphResolver = (quixosCommit: string, resolveResource: Capa } assertImportsMatchLock(manifestPath, compiled.resource.imports, lockResult.lock.resources); if (compiled.resource.kind === "package") { + const queryInterfaces = [ + ...(environment.interfaceClosure ?? []), + ...(compiled.resource.specializations ?? []), + ]; + if (compiled.resource.revision.queries?.length) + compiled.resource.revision.checkedQueries = await Promise.all( + compiled.resource.revision.queries.map((query) => + compileRepositoryQuery(snapshot.directory, query, queryInterfaces), + ), + ); let catalogText: string | undefined; try { catalogText = await readFile(path.join(snapshot.directory, "quixos.migrations.json"), "utf8"); @@ -389,6 +401,11 @@ export const compileWorkspaceRepository = async (options: { .join("\n")}`, ); } + const linkedQueries = linkQueries(workspace); + if (linkedQueries.length) { + workspace.linkedQueries = linkedQueries; + checked.plan.source.linkedQueries = structuredClone(linkedQueries); + } return { workspace, plan: checked.plan, diff --git a/src/capability-language/generated/QuixosCapability.interp b/src/capability-language/generated/QuixosCapability.interp index a4830e8..e087c40 100644 --- a/src/capability-language/generated/QuixosCapability.interp +++ b/src/capability-language/generated/QuixosCapability.interp @@ -1,6 +1,17 @@ token literal names: null 'workspace' +'query' +'root' +'document' +'fragments' +'view' +'max' +'allow' +'poll' +'queryable' +'rpc' +'query-reason' 'type' 'object' 'storable' @@ -122,6 +133,17 @@ null token symbolic names: null WORKSPACE +QUERY +ROOT +DOCUMENT +FRAGMENTS +VIEW +MAX +ALLOW +POLL +QUERYABLE +RPC +QUERY_REASON TYPE OBJECT STORABLE @@ -263,10 +285,13 @@ operationMember valueMember valueMemberOperation relationshipMember +queryReadContract relationshipOperation targetConstraint packageResourceDecl packageExport +packageQuery +queryClause packageOperationExport packageFunctionExport packageConstructorExport @@ -310,4 +335,4 @@ stringLiteral atn: -[4, 1, 118, 971, 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, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 145, 8, 0, 1, 1, 1, 1, 1, 1, 5, 1, 150, 8, 1, 10, 1, 12, 1, 153, 9, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 5, 3, 171, 8, 3, 10, 3, 12, 3, 174, 9, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 185, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 197, 8, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 217, 8, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 225, 8, 9, 1, 9, 1, 9, 1, 10, 5, 10, 230, 8, 10, 10, 10, 12, 10, 233, 9, 10, 1, 10, 1, 10, 1, 10, 3, 10, 238, 8, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 5, 10, 248, 8, 10, 10, 10, 12, 10, 251, 9, 10, 3, 10, 253, 8, 10, 1, 10, 1, 10, 5, 10, 257, 8, 10, 10, 10, 12, 10, 260, 9, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 268, 8, 11, 10, 11, 12, 11, 271, 9, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 279, 8, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 5, 12, 287, 8, 12, 10, 12, 12, 12, 290, 9, 12, 3, 12, 292, 8, 12, 3, 12, 294, 8, 12, 1, 13, 1, 13, 3, 13, 298, 8, 13, 1, 14, 1, 14, 1, 14, 1, 14, 5, 14, 304, 8, 14, 10, 14, 12, 14, 307, 9, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 318, 8, 15, 1, 16, 1, 16, 1, 16, 3, 16, 323, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 3, 17, 332, 8, 17, 1, 18, 3, 18, 335, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 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, 5, 19, 360, 8, 19, 10, 19, 12, 19, 363, 9, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 386, 8, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 3, 21, 396, 8, 21, 1, 21, 1, 21, 5, 21, 400, 8, 21, 10, 21, 12, 21, 403, 9, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 431, 8, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 438, 8, 23, 1, 23, 1, 23, 3, 23, 442, 8, 23, 1, 24, 5, 24, 445, 8, 24, 10, 24, 12, 24, 448, 9, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 3, 24, 458, 8, 24, 1, 24, 1, 24, 5, 24, 462, 8, 24, 10, 24, 12, 24, 465, 9, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 3, 25, 472, 8, 25, 1, 26, 1, 26, 1, 26, 3, 26, 477, 8, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 3, 26, 488, 8, 26, 1, 26, 1, 26, 1, 26, 3, 26, 493, 8, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 3, 27, 500, 8, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 3, 27, 509, 8, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 522, 8, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 5, 31, 541, 8, 31, 10, 31, 12, 31, 544, 9, 31, 3, 31, 546, 8, 31, 1, 31, 3, 31, 549, 8, 31, 1, 32, 1, 32, 1, 32, 5, 32, 554, 8, 32, 10, 32, 12, 32, 557, 9, 32, 1, 33, 1, 33, 1, 33, 5, 33, 562, 8, 33, 10, 33, 12, 33, 565, 9, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 595, 8, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 607, 8, 34, 1, 34, 1, 34, 3, 34, 611, 8, 34, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 617, 8, 35, 10, 35, 12, 35, 620, 9, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 3, 38, 631, 8, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 3, 39, 645, 8, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 3, 40, 655, 8, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 673, 8, 42, 1, 42, 1, 42, 3, 42, 677, 8, 42, 1, 42, 3, 42, 680, 8, 42, 1, 42, 1, 42, 3, 42, 684, 8, 42, 1, 42, 3, 42, 687, 8, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 3, 43, 696, 8, 43, 1, 43, 1, 43, 3, 43, 700, 8, 43, 1, 43, 1, 43, 3, 43, 704, 8, 43, 1, 43, 1, 43, 5, 43, 708, 8, 43, 10, 43, 12, 43, 711, 9, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 3, 44, 720, 8, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 764, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 783, 8, 50, 1, 50, 3, 50, 786, 8, 50, 3, 50, 788, 8, 50, 1, 51, 1, 51, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 5, 53, 797, 8, 53, 10, 53, 12, 53, 800, 9, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 814, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 830, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 839, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 847, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 857, 8, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 3, 55, 866, 8, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 3, 56, 884, 8, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 5, 56, 906, 8, 56, 10, 56, 12, 56, 909, 9, 56, 1, 56, 1, 56, 1, 56, 3, 56, 914, 8, 56, 3, 56, 916, 8, 56, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 59, 1, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 3, 60, 935, 8, 60, 1, 61, 1, 61, 1, 61, 1, 61, 5, 61, 941, 8, 61, 10, 61, 12, 61, 944, 9, 61, 3, 61, 946, 8, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 5, 63, 958, 8, 63, 10, 63, 12, 63, 961, 9, 63, 3, 63, 963, 8, 63, 1, 63, 1, 63, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 0, 0, 66, 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, 0, 7, 1, 0, 66, 70, 2, 0, 61, 65, 67, 68, 2, 0, 61, 62, 67, 68, 2, 0, 63, 65, 67, 68, 1, 0, 86, 93, 1, 0, 73, 76, 2, 0, 40, 40, 114, 114, 1036, 0, 144, 1, 0, 0, 0, 2, 146, 1, 0, 0, 0, 4, 156, 1, 0, 0, 0, 6, 160, 1, 0, 0, 0, 8, 184, 1, 0, 0, 0, 10, 196, 1, 0, 0, 0, 12, 198, 1, 0, 0, 0, 14, 205, 1, 0, 0, 0, 16, 216, 1, 0, 0, 0, 18, 218, 1, 0, 0, 0, 20, 231, 1, 0, 0, 0, 22, 263, 1, 0, 0, 0, 24, 293, 1, 0, 0, 0, 26, 295, 1, 0, 0, 0, 28, 299, 1, 0, 0, 0, 30, 317, 1, 0, 0, 0, 32, 319, 1, 0, 0, 0, 34, 331, 1, 0, 0, 0, 36, 334, 1, 0, 0, 0, 38, 351, 1, 0, 0, 0, 40, 385, 1, 0, 0, 0, 42, 387, 1, 0, 0, 0, 44, 430, 1, 0, 0, 0, 46, 441, 1, 0, 0, 0, 48, 446, 1, 0, 0, 0, 50, 471, 1, 0, 0, 0, 52, 473, 1, 0, 0, 0, 54, 496, 1, 0, 0, 0, 56, 512, 1, 0, 0, 0, 58, 525, 1, 0, 0, 0, 60, 528, 1, 0, 0, 0, 62, 548, 1, 0, 0, 0, 64, 550, 1, 0, 0, 0, 66, 558, 1, 0, 0, 0, 68, 610, 1, 0, 0, 0, 70, 612, 1, 0, 0, 0, 72, 623, 1, 0, 0, 0, 74, 625, 1, 0, 0, 0, 76, 630, 1, 0, 0, 0, 78, 632, 1, 0, 0, 0, 80, 654, 1, 0, 0, 0, 82, 656, 1, 0, 0, 0, 84, 665, 1, 0, 0, 0, 86, 690, 1, 0, 0, 0, 88, 719, 1, 0, 0, 0, 90, 721, 1, 0, 0, 0, 92, 728, 1, 0, 0, 0, 94, 742, 1, 0, 0, 0, 96, 748, 1, 0, 0, 0, 98, 763, 1, 0, 0, 0, 100, 787, 1, 0, 0, 0, 102, 789, 1, 0, 0, 0, 104, 791, 1, 0, 0, 0, 106, 793, 1, 0, 0, 0, 108, 856, 1, 0, 0, 0, 110, 858, 1, 0, 0, 0, 112, 915, 1, 0, 0, 0, 114, 917, 1, 0, 0, 0, 116, 922, 1, 0, 0, 0, 118, 924, 1, 0, 0, 0, 120, 934, 1, 0, 0, 0, 122, 936, 1, 0, 0, 0, 124, 949, 1, 0, 0, 0, 126, 953, 1, 0, 0, 0, 128, 966, 1, 0, 0, 0, 130, 968, 1, 0, 0, 0, 132, 133, 3, 6, 3, 0, 133, 134, 5, 0, 0, 1, 134, 145, 1, 0, 0, 0, 135, 136, 3, 20, 10, 0, 136, 137, 5, 0, 0, 1, 137, 145, 1, 0, 0, 0, 138, 139, 3, 48, 24, 0, 139, 140, 5, 0, 0, 1, 140, 145, 1, 0, 0, 0, 141, 142, 3, 2, 1, 0, 142, 143, 5, 0, 0, 1, 143, 145, 1, 0, 0, 0, 144, 132, 1, 0, 0, 0, 144, 135, 1, 0, 0, 0, 144, 138, 1, 0, 0, 0, 144, 141, 1, 0, 0, 0, 145, 1, 1, 0, 0, 0, 146, 147, 5, 7, 0, 0, 147, 151, 5, 102, 0, 0, 148, 150, 3, 8, 4, 0, 149, 148, 1, 0, 0, 0, 150, 153, 1, 0, 0, 0, 151, 149, 1, 0, 0, 0, 151, 152, 1, 0, 0, 0, 152, 154, 1, 0, 0, 0, 153, 151, 1, 0, 0, 0, 154, 155, 5, 103, 0, 0, 155, 3, 1, 0, 0, 0, 156, 157, 5, 8, 0, 0, 157, 158, 3, 130, 65, 0, 158, 159, 5, 99, 0, 0, 159, 5, 1, 0, 0, 0, 160, 161, 5, 1, 0, 0, 161, 162, 3, 128, 64, 0, 162, 163, 5, 49, 0, 0, 163, 164, 3, 130, 65, 0, 164, 165, 5, 43, 0, 0, 165, 166, 3, 130, 65, 0, 166, 167, 5, 42, 0, 0, 167, 168, 3, 130, 65, 0, 168, 172, 5, 102, 0, 0, 169, 171, 3, 8, 4, 0, 170, 169, 1, 0, 0, 0, 171, 174, 1, 0, 0, 0, 172, 170, 1, 0, 0, 0, 172, 173, 1, 0, 0, 0, 173, 175, 1, 0, 0, 0, 174, 172, 1, 0, 0, 0, 175, 176, 5, 103, 0, 0, 176, 7, 1, 0, 0, 0, 177, 185, 3, 4, 2, 0, 178, 185, 3, 18, 9, 0, 179, 185, 3, 10, 5, 0, 180, 185, 3, 74, 37, 0, 181, 185, 3, 86, 43, 0, 182, 185, 3, 110, 55, 0, 183, 185, 3, 32, 16, 0, 184, 177, 1, 0, 0, 0, 184, 178, 1, 0, 0, 0, 184, 179, 1, 0, 0, 0, 184, 180, 1, 0, 0, 0, 184, 181, 1, 0, 0, 0, 184, 182, 1, 0, 0, 0, 184, 183, 1, 0, 0, 0, 185, 9, 1, 0, 0, 0, 186, 187, 5, 8, 0, 0, 187, 188, 5, 11, 0, 0, 188, 189, 3, 128, 64, 0, 189, 190, 5, 99, 0, 0, 190, 197, 1, 0, 0, 0, 191, 192, 5, 8, 0, 0, 192, 193, 5, 13, 0, 0, 193, 194, 3, 128, 64, 0, 194, 195, 5, 99, 0, 0, 195, 197, 1, 0, 0, 0, 196, 186, 1, 0, 0, 0, 196, 191, 1, 0, 0, 0, 197, 11, 1, 0, 0, 0, 198, 199, 5, 9, 0, 0, 199, 200, 5, 10, 0, 0, 200, 201, 3, 128, 64, 0, 201, 202, 5, 49, 0, 0, 202, 203, 3, 130, 65, 0, 203, 204, 5, 99, 0, 0, 204, 13, 1, 0, 0, 0, 205, 206, 5, 9, 0, 0, 206, 207, 5, 11, 0, 0, 207, 208, 3, 128, 64, 0, 208, 209, 5, 43, 0, 0, 209, 210, 3, 130, 65, 0, 210, 211, 5, 99, 0, 0, 211, 15, 1, 0, 0, 0, 212, 217, 3, 10, 5, 0, 213, 217, 3, 12, 6, 0, 214, 217, 3, 14, 7, 0, 215, 217, 3, 32, 16, 0, 216, 212, 1, 0, 0, 0, 216, 213, 1, 0, 0, 0, 216, 214, 1, 0, 0, 0, 216, 215, 1, 0, 0, 0, 217, 17, 1, 0, 0, 0, 218, 219, 5, 10, 0, 0, 219, 220, 3, 128, 64, 0, 220, 221, 5, 49, 0, 0, 221, 224, 3, 130, 65, 0, 222, 223, 5, 50, 0, 0, 223, 225, 3, 130, 65, 0, 224, 222, 1, 0, 0, 0, 224, 225, 1, 0, 0, 0, 225, 226, 1, 0, 0, 0, 226, 227, 5, 99, 0, 0, 227, 19, 1, 0, 0, 0, 228, 230, 3, 16, 8, 0, 229, 228, 1, 0, 0, 0, 230, 233, 1, 0, 0, 0, 231, 229, 1, 0, 0, 0, 231, 232, 1, 0, 0, 0, 232, 234, 1, 0, 0, 0, 233, 231, 1, 0, 0, 0, 234, 235, 5, 11, 0, 0, 235, 237, 3, 128, 64, 0, 236, 238, 3, 22, 11, 0, 237, 236, 1, 0, 0, 0, 237, 238, 1, 0, 0, 0, 238, 239, 1, 0, 0, 0, 239, 240, 5, 49, 0, 0, 240, 241, 3, 130, 65, 0, 241, 242, 5, 43, 0, 0, 242, 252, 3, 130, 65, 0, 243, 244, 5, 54, 0, 0, 244, 249, 3, 26, 13, 0, 245, 246, 5, 100, 0, 0, 246, 248, 3, 26, 13, 0, 247, 245, 1, 0, 0, 0, 248, 251, 1, 0, 0, 0, 249, 247, 1, 0, 0, 0, 249, 250, 1, 0, 0, 0, 250, 253, 1, 0, 0, 0, 251, 249, 1, 0, 0, 0, 252, 243, 1, 0, 0, 0, 252, 253, 1, 0, 0, 0, 253, 254, 1, 0, 0, 0, 254, 258, 5, 102, 0, 0, 255, 257, 3, 34, 17, 0, 256, 255, 1, 0, 0, 0, 257, 260, 1, 0, 0, 0, 258, 256, 1, 0, 0, 0, 258, 259, 1, 0, 0, 0, 259, 261, 1, 0, 0, 0, 260, 258, 1, 0, 0, 0, 261, 262, 5, 103, 0, 0, 262, 21, 1, 0, 0, 0, 263, 264, 5, 108, 0, 0, 264, 269, 3, 24, 12, 0, 265, 266, 5, 100, 0, 0, 266, 268, 3, 24, 12, 0, 267, 265, 1, 0, 0, 0, 268, 271, 1, 0, 0, 0, 269, 267, 1, 0, 0, 0, 269, 270, 1, 0, 0, 0, 270, 272, 1, 0, 0, 0, 271, 269, 1, 0, 0, 0, 272, 273, 5, 109, 0, 0, 273, 23, 1, 0, 0, 0, 274, 275, 5, 14, 0, 0, 275, 278, 3, 128, 64, 0, 276, 277, 5, 98, 0, 0, 277, 279, 5, 4, 0, 0, 278, 276, 1, 0, 0, 0, 278, 279, 1, 0, 0, 0, 279, 294, 1, 0, 0, 0, 280, 281, 5, 3, 0, 0, 281, 291, 3, 128, 64, 0, 282, 283, 5, 5, 0, 0, 283, 288, 3, 26, 13, 0, 284, 285, 5, 110, 0, 0, 285, 287, 3, 26, 13, 0, 286, 284, 1, 0, 0, 0, 287, 290, 1, 0, 0, 0, 288, 286, 1, 0, 0, 0, 288, 289, 1, 0, 0, 0, 289, 292, 1, 0, 0, 0, 290, 288, 1, 0, 0, 0, 291, 282, 1, 0, 0, 0, 291, 292, 1, 0, 0, 0, 292, 294, 1, 0, 0, 0, 293, 274, 1, 0, 0, 0, 293, 280, 1, 0, 0, 0, 294, 25, 1, 0, 0, 0, 295, 297, 3, 128, 64, 0, 296, 298, 3, 28, 14, 0, 297, 296, 1, 0, 0, 0, 297, 298, 1, 0, 0, 0, 298, 27, 1, 0, 0, 0, 299, 300, 5, 108, 0, 0, 300, 305, 3, 30, 15, 0, 301, 302, 5, 100, 0, 0, 302, 304, 3, 30, 15, 0, 303, 301, 1, 0, 0, 0, 304, 307, 1, 0, 0, 0, 305, 303, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 308, 1, 0, 0, 0, 307, 305, 1, 0, 0, 0, 308, 309, 5, 109, 0, 0, 309, 29, 1, 0, 0, 0, 310, 311, 5, 10, 0, 0, 311, 318, 3, 128, 64, 0, 312, 313, 5, 11, 0, 0, 313, 318, 3, 26, 13, 0, 314, 315, 5, 3, 0, 0, 315, 318, 3, 128, 64, 0, 316, 318, 3, 112, 56, 0, 317, 310, 1, 0, 0, 0, 317, 312, 1, 0, 0, 0, 317, 314, 1, 0, 0, 0, 317, 316, 1, 0, 0, 0, 318, 31, 1, 0, 0, 0, 319, 320, 5, 2, 0, 0, 320, 322, 3, 128, 64, 0, 321, 323, 3, 22, 11, 0, 322, 321, 1, 0, 0, 0, 322, 323, 1, 0, 0, 0, 323, 324, 1, 0, 0, 0, 324, 325, 5, 111, 0, 0, 325, 326, 3, 112, 56, 0, 326, 327, 5, 99, 0, 0, 327, 33, 1, 0, 0, 0, 328, 332, 3, 38, 19, 0, 329, 332, 3, 42, 21, 0, 330, 332, 3, 36, 18, 0, 331, 328, 1, 0, 0, 0, 331, 329, 1, 0, 0, 0, 331, 330, 1, 0, 0, 0, 332, 35, 1, 0, 0, 0, 333, 335, 5, 24, 0, 0, 334, 333, 1, 0, 0, 0, 334, 335, 1, 0, 0, 0, 335, 336, 1, 0, 0, 0, 336, 337, 5, 16, 0, 0, 337, 338, 3, 128, 64, 0, 338, 339, 5, 49, 0, 0, 339, 340, 3, 130, 65, 0, 340, 341, 5, 98, 0, 0, 341, 342, 3, 112, 56, 0, 342, 343, 5, 97, 0, 0, 343, 344, 3, 112, 56, 0, 344, 345, 5, 102, 0, 0, 345, 346, 5, 66, 0, 0, 346, 347, 5, 49, 0, 0, 347, 348, 3, 130, 65, 0, 348, 349, 5, 99, 0, 0, 349, 350, 5, 103, 0, 0, 350, 37, 1, 0, 0, 0, 351, 352, 5, 14, 0, 0, 352, 353, 3, 128, 64, 0, 353, 354, 5, 49, 0, 0, 354, 355, 3, 130, 65, 0, 355, 356, 5, 98, 0, 0, 356, 357, 3, 112, 56, 0, 357, 361, 5, 102, 0, 0, 358, 360, 3, 40, 20, 0, 359, 358, 1, 0, 0, 0, 360, 363, 1, 0, 0, 0, 361, 359, 1, 0, 0, 0, 361, 362, 1, 0, 0, 0, 362, 364, 1, 0, 0, 0, 363, 361, 1, 0, 0, 0, 364, 365, 5, 103, 0, 0, 365, 39, 1, 0, 0, 0, 366, 367, 5, 56, 0, 0, 367, 368, 5, 49, 0, 0, 368, 369, 3, 130, 65, 0, 369, 370, 5, 99, 0, 0, 370, 386, 1, 0, 0, 0, 371, 372, 5, 57, 0, 0, 372, 373, 5, 49, 0, 0, 373, 374, 3, 130, 65, 0, 374, 375, 5, 99, 0, 0, 375, 386, 1, 0, 0, 0, 376, 377, 5, 58, 0, 0, 377, 378, 5, 59, 0, 0, 378, 379, 5, 49, 0, 0, 379, 380, 3, 130, 65, 0, 380, 381, 5, 60, 0, 0, 381, 382, 5, 49, 0, 0, 382, 383, 3, 130, 65, 0, 383, 384, 5, 99, 0, 0, 384, 386, 1, 0, 0, 0, 385, 366, 1, 0, 0, 0, 385, 371, 1, 0, 0, 0, 385, 376, 1, 0, 0, 0, 386, 41, 1, 0, 0, 0, 387, 388, 5, 15, 0, 0, 388, 389, 3, 128, 64, 0, 389, 390, 5, 49, 0, 0, 390, 391, 3, 130, 65, 0, 391, 392, 5, 98, 0, 0, 392, 393, 3, 118, 59, 0, 393, 395, 3, 46, 23, 0, 394, 396, 5, 77, 0, 0, 395, 394, 1, 0, 0, 0, 395, 396, 1, 0, 0, 0, 396, 397, 1, 0, 0, 0, 397, 401, 5, 102, 0, 0, 398, 400, 3, 44, 22, 0, 399, 398, 1, 0, 0, 0, 400, 403, 1, 0, 0, 0, 401, 399, 1, 0, 0, 0, 401, 402, 1, 0, 0, 0, 402, 404, 1, 0, 0, 0, 403, 401, 1, 0, 0, 0, 404, 405, 5, 103, 0, 0, 405, 43, 1, 0, 0, 0, 406, 407, 5, 63, 0, 0, 407, 408, 5, 49, 0, 0, 408, 409, 3, 130, 65, 0, 409, 410, 5, 99, 0, 0, 410, 431, 1, 0, 0, 0, 411, 412, 5, 64, 0, 0, 412, 413, 5, 49, 0, 0, 413, 414, 3, 130, 65, 0, 414, 415, 5, 99, 0, 0, 415, 431, 1, 0, 0, 0, 416, 417, 5, 65, 0, 0, 417, 418, 5, 49, 0, 0, 418, 419, 3, 130, 65, 0, 419, 420, 5, 99, 0, 0, 420, 431, 1, 0, 0, 0, 421, 422, 5, 58, 0, 0, 422, 423, 5, 59, 0, 0, 423, 424, 5, 49, 0, 0, 424, 425, 3, 130, 65, 0, 425, 426, 5, 60, 0, 0, 426, 427, 5, 49, 0, 0, 427, 428, 3, 130, 65, 0, 428, 429, 5, 99, 0, 0, 429, 431, 1, 0, 0, 0, 430, 406, 1, 0, 0, 0, 430, 411, 1, 0, 0, 0, 430, 416, 1, 0, 0, 0, 430, 421, 1, 0, 0, 0, 431, 45, 1, 0, 0, 0, 432, 433, 5, 10, 0, 0, 433, 442, 3, 128, 64, 0, 434, 435, 5, 11, 0, 0, 435, 437, 3, 128, 64, 0, 436, 438, 3, 28, 14, 0, 437, 436, 1, 0, 0, 0, 437, 438, 1, 0, 0, 0, 438, 442, 1, 0, 0, 0, 439, 440, 5, 3, 0, 0, 440, 442, 3, 128, 64, 0, 441, 432, 1, 0, 0, 0, 441, 434, 1, 0, 0, 0, 441, 439, 1, 0, 0, 0, 442, 47, 1, 0, 0, 0, 443, 445, 3, 16, 8, 0, 444, 443, 1, 0, 0, 0, 445, 448, 1, 0, 0, 0, 446, 444, 1, 0, 0, 0, 446, 447, 1, 0, 0, 0, 447, 449, 1, 0, 0, 0, 448, 446, 1, 0, 0, 0, 449, 450, 5, 13, 0, 0, 450, 451, 3, 128, 64, 0, 451, 452, 5, 49, 0, 0, 452, 453, 3, 130, 65, 0, 453, 454, 5, 43, 0, 0, 454, 457, 3, 130, 65, 0, 455, 456, 5, 44, 0, 0, 456, 458, 5, 112, 0, 0, 457, 455, 1, 0, 0, 0, 457, 458, 1, 0, 0, 0, 458, 459, 1, 0, 0, 0, 459, 463, 5, 102, 0, 0, 460, 462, 3, 50, 25, 0, 461, 460, 1, 0, 0, 0, 462, 465, 1, 0, 0, 0, 463, 461, 1, 0, 0, 0, 463, 464, 1, 0, 0, 0, 464, 466, 1, 0, 0, 0, 465, 463, 1, 0, 0, 0, 466, 467, 5, 103, 0, 0, 467, 49, 1, 0, 0, 0, 468, 472, 3, 52, 26, 0, 469, 472, 3, 54, 27, 0, 470, 472, 3, 56, 28, 0, 471, 468, 1, 0, 0, 0, 471, 469, 1, 0, 0, 0, 471, 470, 1, 0, 0, 0, 472, 51, 1, 0, 0, 0, 473, 474, 5, 16, 0, 0, 474, 476, 3, 128, 64, 0, 475, 477, 3, 22, 11, 0, 476, 475, 1, 0, 0, 0, 476, 477, 1, 0, 0, 0, 477, 478, 1, 0, 0, 0, 478, 479, 5, 49, 0, 0, 479, 480, 3, 130, 65, 0, 480, 481, 5, 98, 0, 0, 481, 482, 3, 112, 56, 0, 482, 483, 5, 97, 0, 0, 483, 484, 3, 112, 56, 0, 484, 485, 5, 51, 0, 0, 485, 487, 3, 60, 30, 0, 486, 488, 3, 58, 29, 0, 487, 486, 1, 0, 0, 0, 487, 488, 1, 0, 0, 0, 488, 489, 1, 0, 0, 0, 489, 490, 5, 53, 0, 0, 490, 492, 3, 62, 31, 0, 491, 493, 3, 66, 33, 0, 492, 491, 1, 0, 0, 0, 492, 493, 1, 0, 0, 0, 493, 494, 1, 0, 0, 0, 494, 495, 5, 99, 0, 0, 495, 53, 1, 0, 0, 0, 496, 497, 5, 17, 0, 0, 497, 499, 3, 128, 64, 0, 498, 500, 3, 22, 11, 0, 499, 498, 1, 0, 0, 0, 499, 500, 1, 0, 0, 0, 500, 501, 1, 0, 0, 0, 501, 502, 5, 49, 0, 0, 502, 503, 3, 130, 65, 0, 503, 504, 5, 98, 0, 0, 504, 505, 3, 112, 56, 0, 505, 506, 5, 97, 0, 0, 506, 508, 3, 112, 56, 0, 507, 509, 3, 66, 33, 0, 508, 507, 1, 0, 0, 0, 508, 509, 1, 0, 0, 0, 509, 510, 1, 0, 0, 0, 510, 511, 5, 99, 0, 0, 511, 55, 1, 0, 0, 0, 512, 513, 5, 18, 0, 0, 513, 514, 3, 128, 64, 0, 514, 515, 5, 49, 0, 0, 515, 516, 3, 130, 65, 0, 516, 517, 5, 19, 0, 0, 517, 518, 3, 128, 64, 0, 518, 519, 5, 98, 0, 0, 519, 521, 3, 112, 56, 0, 520, 522, 3, 66, 33, 0, 521, 520, 1, 0, 0, 0, 521, 522, 1, 0, 0, 0, 522, 523, 1, 0, 0, 0, 523, 524, 5, 99, 0, 0, 524, 57, 1, 0, 0, 0, 525, 526, 5, 52, 0, 0, 526, 527, 3, 112, 56, 0, 527, 59, 1, 0, 0, 0, 528, 529, 7, 0, 0, 0, 529, 61, 1, 0, 0, 0, 530, 549, 5, 55, 0, 0, 531, 532, 5, 10, 0, 0, 532, 549, 3, 128, 64, 0, 533, 534, 5, 3, 0, 0, 534, 549, 3, 128, 64, 0, 535, 536, 5, 12, 0, 0, 536, 545, 5, 104, 0, 0, 537, 542, 3, 26, 13, 0, 538, 539, 5, 100, 0, 0, 539, 541, 3, 26, 13, 0, 540, 538, 1, 0, 0, 0, 541, 544, 1, 0, 0, 0, 542, 540, 1, 0, 0, 0, 542, 543, 1, 0, 0, 0, 543, 546, 1, 0, 0, 0, 544, 542, 1, 0, 0, 0, 545, 537, 1, 0, 0, 0, 545, 546, 1, 0, 0, 0, 546, 547, 1, 0, 0, 0, 547, 549, 5, 105, 0, 0, 548, 530, 1, 0, 0, 0, 548, 531, 1, 0, 0, 0, 548, 533, 1, 0, 0, 0, 548, 535, 1, 0, 0, 0, 549, 63, 1, 0, 0, 0, 550, 555, 3, 128, 64, 0, 551, 552, 5, 100, 0, 0, 552, 554, 3, 128, 64, 0, 553, 551, 1, 0, 0, 0, 554, 557, 1, 0, 0, 0, 555, 553, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 65, 1, 0, 0, 0, 557, 555, 1, 0, 0, 0, 558, 559, 5, 54, 0, 0, 559, 563, 5, 102, 0, 0, 560, 562, 3, 68, 34, 0, 561, 560, 1, 0, 0, 0, 562, 565, 1, 0, 0, 0, 563, 561, 1, 0, 0, 0, 563, 564, 1, 0, 0, 0, 564, 566, 1, 0, 0, 0, 565, 563, 1, 0, 0, 0, 566, 567, 5, 103, 0, 0, 567, 67, 1, 0, 0, 0, 568, 569, 5, 28, 0, 0, 569, 570, 3, 128, 64, 0, 570, 571, 5, 49, 0, 0, 571, 572, 3, 130, 65, 0, 572, 573, 5, 98, 0, 0, 573, 574, 3, 112, 56, 0, 574, 575, 3, 70, 35, 0, 575, 576, 5, 99, 0, 0, 576, 611, 1, 0, 0, 0, 577, 578, 5, 29, 0, 0, 578, 579, 3, 128, 64, 0, 579, 580, 5, 49, 0, 0, 580, 581, 3, 130, 65, 0, 581, 582, 5, 98, 0, 0, 582, 583, 3, 118, 59, 0, 583, 584, 3, 46, 23, 0, 584, 585, 3, 70, 35, 0, 585, 586, 5, 99, 0, 0, 586, 611, 1, 0, 0, 0, 587, 588, 5, 11, 0, 0, 588, 589, 3, 128, 64, 0, 589, 590, 5, 49, 0, 0, 590, 591, 3, 130, 65, 0, 591, 592, 5, 98, 0, 0, 592, 594, 3, 128, 64, 0, 593, 595, 3, 28, 14, 0, 594, 593, 1, 0, 0, 0, 594, 595, 1, 0, 0, 0, 595, 596, 1, 0, 0, 0, 596, 597, 5, 99, 0, 0, 597, 611, 1, 0, 0, 0, 598, 599, 5, 18, 0, 0, 599, 600, 3, 128, 64, 0, 600, 601, 5, 49, 0, 0, 601, 602, 3, 130, 65, 0, 602, 603, 5, 98, 0, 0, 603, 606, 3, 128, 64, 0, 604, 605, 5, 20, 0, 0, 605, 607, 3, 112, 56, 0, 606, 604, 1, 0, 0, 0, 606, 607, 1, 0, 0, 0, 607, 608, 1, 0, 0, 0, 608, 609, 5, 99, 0, 0, 609, 611, 1, 0, 0, 0, 610, 568, 1, 0, 0, 0, 610, 577, 1, 0, 0, 0, 610, 587, 1, 0, 0, 0, 610, 598, 1, 0, 0, 0, 611, 69, 1, 0, 0, 0, 612, 613, 5, 104, 0, 0, 613, 618, 3, 72, 36, 0, 614, 615, 5, 100, 0, 0, 615, 617, 3, 72, 36, 0, 616, 614, 1, 0, 0, 0, 617, 620, 1, 0, 0, 0, 618, 616, 1, 0, 0, 0, 618, 619, 1, 0, 0, 0, 619, 621, 1, 0, 0, 0, 620, 618, 1, 0, 0, 0, 621, 622, 5, 105, 0, 0, 622, 71, 1, 0, 0, 0, 623, 624, 7, 1, 0, 0, 624, 73, 1, 0, 0, 0, 625, 626, 5, 27, 0, 0, 626, 627, 3, 76, 38, 0, 627, 75, 1, 0, 0, 0, 628, 631, 3, 78, 39, 0, 629, 631, 3, 82, 41, 0, 630, 628, 1, 0, 0, 0, 630, 629, 1, 0, 0, 0, 631, 77, 1, 0, 0, 0, 632, 633, 5, 28, 0, 0, 633, 634, 3, 128, 64, 0, 634, 635, 5, 49, 0, 0, 635, 636, 3, 130, 65, 0, 636, 637, 5, 37, 0, 0, 637, 638, 3, 128, 64, 0, 638, 639, 5, 98, 0, 0, 639, 640, 3, 112, 56, 0, 640, 641, 5, 38, 0, 0, 641, 644, 3, 80, 40, 0, 642, 643, 5, 39, 0, 0, 643, 645, 3, 120, 60, 0, 644, 642, 1, 0, 0, 0, 644, 645, 1, 0, 0, 0, 645, 646, 1, 0, 0, 0, 646, 647, 5, 99, 0, 0, 647, 79, 1, 0, 0, 0, 648, 655, 5, 71, 0, 0, 649, 650, 5, 72, 0, 0, 650, 651, 5, 106, 0, 0, 651, 652, 3, 112, 56, 0, 652, 653, 5, 107, 0, 0, 653, 655, 1, 0, 0, 0, 654, 648, 1, 0, 0, 0, 654, 649, 1, 0, 0, 0, 655, 81, 1, 0, 0, 0, 656, 657, 5, 29, 0, 0, 657, 658, 3, 128, 64, 0, 658, 659, 5, 49, 0, 0, 659, 660, 3, 130, 65, 0, 660, 661, 5, 102, 0, 0, 661, 662, 3, 84, 42, 0, 662, 663, 3, 84, 42, 0, 663, 664, 5, 103, 0, 0, 664, 83, 1, 0, 0, 0, 665, 666, 3, 46, 23, 0, 666, 667, 5, 30, 0, 0, 667, 668, 3, 128, 64, 0, 668, 669, 5, 49, 0, 0, 669, 670, 3, 130, 65, 0, 670, 672, 3, 118, 59, 0, 671, 673, 5, 77, 0, 0, 672, 671, 1, 0, 0, 0, 672, 673, 1, 0, 0, 0, 673, 676, 1, 0, 0, 0, 674, 675, 5, 45, 0, 0, 675, 677, 3, 130, 65, 0, 676, 674, 1, 0, 0, 0, 676, 677, 1, 0, 0, 0, 677, 679, 1, 0, 0, 0, 678, 680, 5, 46, 0, 0, 679, 678, 1, 0, 0, 0, 679, 680, 1, 0, 0, 0, 680, 683, 1, 0, 0, 0, 681, 682, 5, 47, 0, 0, 682, 684, 3, 130, 65, 0, 683, 681, 1, 0, 0, 0, 683, 684, 1, 0, 0, 0, 684, 686, 1, 0, 0, 0, 685, 687, 5, 48, 0, 0, 686, 685, 1, 0, 0, 0, 686, 687, 1, 0, 0, 0, 687, 688, 1, 0, 0, 0, 688, 689, 5, 99, 0, 0, 689, 85, 1, 0, 0, 0, 690, 691, 5, 21, 0, 0, 691, 692, 3, 128, 64, 0, 692, 693, 5, 22, 0, 0, 693, 695, 3, 128, 64, 0, 694, 696, 3, 28, 14, 0, 695, 694, 1, 0, 0, 0, 695, 696, 1, 0, 0, 0, 696, 699, 1, 0, 0, 0, 697, 698, 5, 49, 0, 0, 698, 700, 3, 130, 65, 0, 699, 697, 1, 0, 0, 0, 699, 700, 1, 0, 0, 0, 700, 703, 1, 0, 0, 0, 701, 702, 5, 44, 0, 0, 702, 704, 5, 112, 0, 0, 703, 701, 1, 0, 0, 0, 703, 704, 1, 0, 0, 0, 704, 705, 1, 0, 0, 0, 705, 709, 5, 102, 0, 0, 706, 708, 3, 88, 44, 0, 707, 706, 1, 0, 0, 0, 708, 711, 1, 0, 0, 0, 709, 707, 1, 0, 0, 0, 709, 710, 1, 0, 0, 0, 710, 712, 1, 0, 0, 0, 711, 709, 1, 0, 0, 0, 712, 713, 5, 103, 0, 0, 713, 87, 1, 0, 0, 0, 714, 715, 5, 26, 0, 0, 715, 720, 3, 76, 38, 0, 716, 720, 3, 94, 47, 0, 717, 720, 3, 90, 45, 0, 718, 720, 3, 92, 46, 0, 719, 714, 1, 0, 0, 0, 719, 716, 1, 0, 0, 0, 719, 717, 1, 0, 0, 0, 719, 718, 1, 0, 0, 0, 720, 89, 1, 0, 0, 0, 721, 722, 5, 23, 0, 0, 722, 723, 3, 128, 64, 0, 723, 724, 5, 25, 0, 0, 724, 725, 5, 28, 0, 0, 725, 726, 3, 128, 64, 0, 726, 727, 5, 99, 0, 0, 727, 91, 1, 0, 0, 0, 728, 729, 5, 34, 0, 0, 729, 730, 3, 128, 64, 0, 730, 731, 5, 35, 0, 0, 731, 732, 5, 36, 0, 0, 732, 733, 5, 32, 0, 0, 733, 734, 5, 18, 0, 0, 734, 735, 3, 128, 64, 0, 735, 736, 5, 33, 0, 0, 736, 737, 5, 29, 0, 0, 737, 738, 3, 128, 64, 0, 738, 739, 5, 101, 0, 0, 739, 740, 3, 128, 64, 0, 740, 741, 5, 99, 0, 0, 741, 93, 1, 0, 0, 0, 742, 743, 5, 23, 0, 0, 743, 744, 3, 96, 48, 0, 744, 745, 5, 25, 0, 0, 745, 746, 3, 100, 50, 0, 746, 747, 5, 99, 0, 0, 747, 95, 1, 0, 0, 0, 748, 749, 3, 128, 64, 0, 749, 750, 5, 101, 0, 0, 750, 751, 3, 98, 49, 0, 751, 97, 1, 0, 0, 0, 752, 764, 3, 128, 64, 0, 753, 764, 5, 66, 0, 0, 754, 764, 5, 56, 0, 0, 755, 764, 5, 57, 0, 0, 756, 764, 5, 63, 0, 0, 757, 764, 5, 64, 0, 0, 758, 764, 5, 65, 0, 0, 759, 764, 5, 67, 0, 0, 760, 764, 5, 68, 0, 0, 761, 764, 5, 69, 0, 0, 762, 764, 5, 70, 0, 0, 763, 752, 1, 0, 0, 0, 763, 753, 1, 0, 0, 0, 763, 754, 1, 0, 0, 0, 763, 755, 1, 0, 0, 0, 763, 756, 1, 0, 0, 0, 763, 757, 1, 0, 0, 0, 763, 758, 1, 0, 0, 0, 763, 759, 1, 0, 0, 0, 763, 760, 1, 0, 0, 0, 763, 761, 1, 0, 0, 0, 763, 762, 1, 0, 0, 0, 764, 99, 1, 0, 0, 0, 765, 766, 5, 28, 0, 0, 766, 767, 3, 128, 64, 0, 767, 768, 5, 101, 0, 0, 768, 769, 3, 102, 51, 0, 769, 788, 1, 0, 0, 0, 770, 771, 5, 29, 0, 0, 771, 772, 3, 128, 64, 0, 772, 773, 5, 101, 0, 0, 773, 774, 3, 128, 64, 0, 774, 775, 5, 101, 0, 0, 775, 776, 3, 104, 52, 0, 776, 788, 1, 0, 0, 0, 777, 778, 5, 13, 0, 0, 778, 779, 3, 128, 64, 0, 779, 780, 5, 101, 0, 0, 780, 782, 3, 128, 64, 0, 781, 783, 3, 28, 14, 0, 782, 781, 1, 0, 0, 0, 782, 783, 1, 0, 0, 0, 783, 785, 1, 0, 0, 0, 784, 786, 3, 106, 53, 0, 785, 784, 1, 0, 0, 0, 785, 786, 1, 0, 0, 0, 786, 788, 1, 0, 0, 0, 787, 765, 1, 0, 0, 0, 787, 770, 1, 0, 0, 0, 787, 777, 1, 0, 0, 0, 788, 101, 1, 0, 0, 0, 789, 790, 7, 2, 0, 0, 790, 103, 1, 0, 0, 0, 791, 792, 7, 3, 0, 0, 792, 105, 1, 0, 0, 0, 793, 794, 5, 31, 0, 0, 794, 798, 5, 102, 0, 0, 795, 797, 3, 108, 54, 0, 796, 795, 1, 0, 0, 0, 797, 800, 1, 0, 0, 0, 798, 796, 1, 0, 0, 0, 798, 799, 1, 0, 0, 0, 799, 801, 1, 0, 0, 0, 800, 798, 1, 0, 0, 0, 801, 802, 5, 103, 0, 0, 802, 107, 1, 0, 0, 0, 803, 804, 3, 128, 64, 0, 804, 805, 5, 25, 0, 0, 805, 806, 5, 28, 0, 0, 806, 813, 3, 128, 64, 0, 807, 808, 5, 33, 0, 0, 808, 809, 5, 29, 0, 0, 809, 810, 3, 128, 64, 0, 810, 811, 5, 101, 0, 0, 811, 812, 3, 128, 64, 0, 812, 814, 1, 0, 0, 0, 813, 807, 1, 0, 0, 0, 813, 814, 1, 0, 0, 0, 814, 815, 1, 0, 0, 0, 815, 816, 5, 99, 0, 0, 816, 857, 1, 0, 0, 0, 817, 818, 3, 128, 64, 0, 818, 819, 5, 25, 0, 0, 819, 820, 5, 29, 0, 0, 820, 821, 3, 128, 64, 0, 821, 822, 5, 101, 0, 0, 822, 829, 3, 128, 64, 0, 823, 824, 5, 33, 0, 0, 824, 825, 5, 29, 0, 0, 825, 826, 3, 128, 64, 0, 826, 827, 5, 101, 0, 0, 827, 828, 3, 128, 64, 0, 828, 830, 1, 0, 0, 0, 829, 823, 1, 0, 0, 0, 829, 830, 1, 0, 0, 0, 830, 831, 1, 0, 0, 0, 831, 832, 5, 99, 0, 0, 832, 857, 1, 0, 0, 0, 833, 834, 3, 128, 64, 0, 834, 835, 5, 25, 0, 0, 835, 836, 5, 11, 0, 0, 836, 838, 3, 128, 64, 0, 837, 839, 3, 28, 14, 0, 838, 837, 1, 0, 0, 0, 838, 839, 1, 0, 0, 0, 839, 846, 1, 0, 0, 0, 840, 841, 5, 33, 0, 0, 841, 842, 5, 29, 0, 0, 842, 843, 3, 128, 64, 0, 843, 844, 5, 101, 0, 0, 844, 845, 3, 128, 64, 0, 845, 847, 1, 0, 0, 0, 846, 840, 1, 0, 0, 0, 846, 847, 1, 0, 0, 0, 847, 848, 1, 0, 0, 0, 848, 849, 5, 99, 0, 0, 849, 857, 1, 0, 0, 0, 850, 851, 3, 128, 64, 0, 851, 852, 5, 25, 0, 0, 852, 853, 5, 18, 0, 0, 853, 854, 3, 128, 64, 0, 854, 855, 5, 99, 0, 0, 855, 857, 1, 0, 0, 0, 856, 803, 1, 0, 0, 0, 856, 817, 1, 0, 0, 0, 856, 833, 1, 0, 0, 0, 856, 850, 1, 0, 0, 0, 857, 109, 1, 0, 0, 0, 858, 859, 5, 18, 0, 0, 859, 860, 3, 128, 64, 0, 860, 861, 5, 25, 0, 0, 861, 862, 3, 128, 64, 0, 862, 863, 5, 101, 0, 0, 863, 865, 3, 128, 64, 0, 864, 866, 3, 106, 53, 0, 865, 864, 1, 0, 0, 0, 865, 866, 1, 0, 0, 0, 866, 867, 1, 0, 0, 0, 867, 868, 5, 99, 0, 0, 868, 111, 1, 0, 0, 0, 869, 916, 3, 116, 58, 0, 870, 916, 5, 78, 0, 0, 871, 916, 5, 79, 0, 0, 872, 873, 5, 80, 0, 0, 873, 916, 3, 130, 65, 0, 874, 875, 5, 81, 0, 0, 875, 876, 5, 108, 0, 0, 876, 877, 3, 128, 64, 0, 877, 878, 5, 109, 0, 0, 878, 916, 1, 0, 0, 0, 879, 880, 5, 82, 0, 0, 880, 881, 5, 108, 0, 0, 881, 883, 3, 128, 64, 0, 882, 884, 3, 28, 14, 0, 883, 882, 1, 0, 0, 0, 883, 884, 1, 0, 0, 0, 884, 885, 1, 0, 0, 0, 885, 886, 5, 109, 0, 0, 886, 916, 1, 0, 0, 0, 887, 888, 5, 6, 0, 0, 888, 889, 5, 108, 0, 0, 889, 890, 3, 128, 64, 0, 890, 891, 5, 109, 0, 0, 891, 916, 1, 0, 0, 0, 892, 893, 5, 83, 0, 0, 893, 894, 5, 108, 0, 0, 894, 895, 3, 112, 56, 0, 895, 896, 5, 109, 0, 0, 896, 916, 1, 0, 0, 0, 897, 898, 5, 84, 0, 0, 898, 899, 5, 108, 0, 0, 899, 900, 3, 112, 56, 0, 900, 901, 5, 109, 0, 0, 901, 916, 1, 0, 0, 0, 902, 903, 5, 85, 0, 0, 903, 907, 5, 102, 0, 0, 904, 906, 3, 114, 57, 0, 905, 904, 1, 0, 0, 0, 906, 909, 1, 0, 0, 0, 907, 905, 1, 0, 0, 0, 907, 908, 1, 0, 0, 0, 908, 910, 1, 0, 0, 0, 909, 907, 1, 0, 0, 0, 910, 916, 5, 103, 0, 0, 911, 913, 3, 128, 64, 0, 912, 914, 3, 28, 14, 0, 913, 912, 1, 0, 0, 0, 913, 914, 1, 0, 0, 0, 914, 916, 1, 0, 0, 0, 915, 869, 1, 0, 0, 0, 915, 870, 1, 0, 0, 0, 915, 871, 1, 0, 0, 0, 915, 872, 1, 0, 0, 0, 915, 874, 1, 0, 0, 0, 915, 879, 1, 0, 0, 0, 915, 887, 1, 0, 0, 0, 915, 892, 1, 0, 0, 0, 915, 897, 1, 0, 0, 0, 915, 902, 1, 0, 0, 0, 915, 911, 1, 0, 0, 0, 916, 113, 1, 0, 0, 0, 917, 918, 3, 128, 64, 0, 918, 919, 5, 98, 0, 0, 919, 920, 3, 112, 56, 0, 920, 921, 5, 99, 0, 0, 921, 115, 1, 0, 0, 0, 922, 923, 7, 4, 0, 0, 923, 117, 1, 0, 0, 0, 924, 925, 7, 5, 0, 0, 925, 119, 1, 0, 0, 0, 926, 935, 3, 130, 65, 0, 927, 935, 5, 112, 0, 0, 928, 935, 5, 113, 0, 0, 929, 935, 5, 94, 0, 0, 930, 935, 5, 95, 0, 0, 931, 935, 5, 96, 0, 0, 932, 935, 3, 122, 61, 0, 933, 935, 3, 126, 63, 0, 934, 926, 1, 0, 0, 0, 934, 927, 1, 0, 0, 0, 934, 928, 1, 0, 0, 0, 934, 929, 1, 0, 0, 0, 934, 930, 1, 0, 0, 0, 934, 931, 1, 0, 0, 0, 934, 932, 1, 0, 0, 0, 934, 933, 1, 0, 0, 0, 935, 121, 1, 0, 0, 0, 936, 945, 5, 102, 0, 0, 937, 942, 3, 124, 62, 0, 938, 939, 5, 100, 0, 0, 939, 941, 3, 124, 62, 0, 940, 938, 1, 0, 0, 0, 941, 944, 1, 0, 0, 0, 942, 940, 1, 0, 0, 0, 942, 943, 1, 0, 0, 0, 943, 946, 1, 0, 0, 0, 944, 942, 1, 0, 0, 0, 945, 937, 1, 0, 0, 0, 945, 946, 1, 0, 0, 0, 946, 947, 1, 0, 0, 0, 947, 948, 5, 103, 0, 0, 948, 123, 1, 0, 0, 0, 949, 950, 3, 130, 65, 0, 950, 951, 5, 98, 0, 0, 951, 952, 3, 120, 60, 0, 952, 125, 1, 0, 0, 0, 953, 962, 5, 104, 0, 0, 954, 959, 3, 120, 60, 0, 955, 956, 5, 100, 0, 0, 956, 958, 3, 120, 60, 0, 957, 955, 1, 0, 0, 0, 958, 961, 1, 0, 0, 0, 959, 957, 1, 0, 0, 0, 959, 960, 1, 0, 0, 0, 960, 963, 1, 0, 0, 0, 961, 959, 1, 0, 0, 0, 962, 954, 1, 0, 0, 0, 962, 963, 1, 0, 0, 0, 963, 964, 1, 0, 0, 0, 964, 965, 5, 105, 0, 0, 965, 127, 1, 0, 0, 0, 966, 967, 7, 6, 0, 0, 967, 129, 1, 0, 0, 0, 968, 969, 5, 115, 0, 0, 969, 131, 1, 0, 0, 0, 82, 144, 151, 172, 184, 196, 216, 224, 231, 237, 249, 252, 258, 269, 278, 288, 291, 293, 297, 305, 317, 322, 331, 334, 361, 385, 395, 401, 430, 437, 441, 446, 457, 463, 471, 476, 487, 492, 499, 508, 521, 542, 545, 548, 555, 563, 594, 606, 610, 618, 630, 644, 654, 672, 676, 679, 683, 686, 695, 699, 703, 709, 719, 763, 782, 785, 787, 798, 813, 829, 838, 846, 856, 865, 883, 907, 913, 915, 934, 942, 945, 959, 962] \ No newline at end of file +[4, 1, 129, 1043, 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, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 3, 0, 151, 8, 0, 1, 1, 1, 1, 1, 1, 5, 1, 156, 8, 1, 10, 1, 12, 1, 159, 9, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 5, 3, 177, 8, 3, 10, 3, 12, 3, 180, 9, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 3, 4, 191, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 203, 8, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 223, 8, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 231, 8, 9, 1, 9, 1, 9, 1, 10, 5, 10, 236, 8, 10, 10, 10, 12, 10, 239, 9, 10, 1, 10, 1, 10, 1, 10, 3, 10, 244, 8, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 5, 10, 254, 8, 10, 10, 10, 12, 10, 257, 9, 10, 3, 10, 259, 8, 10, 1, 10, 1, 10, 5, 10, 263, 8, 10, 10, 10, 12, 10, 266, 9, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 274, 8, 11, 10, 11, 12, 11, 277, 9, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 285, 8, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 5, 12, 293, 8, 12, 10, 12, 12, 12, 296, 9, 12, 3, 12, 298, 8, 12, 3, 12, 300, 8, 12, 1, 13, 1, 13, 3, 13, 304, 8, 13, 1, 14, 1, 14, 1, 14, 1, 14, 5, 14, 310, 8, 14, 10, 14, 12, 14, 313, 9, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 324, 8, 15, 1, 16, 1, 16, 1, 16, 3, 16, 329, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 3, 17, 338, 8, 17, 1, 18, 3, 18, 341, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 19, 3, 19, 359, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 5, 19, 369, 8, 19, 10, 19, 12, 19, 372, 9, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 3, 20, 395, 8, 20, 1, 21, 3, 21, 398, 8, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 3, 21, 408, 8, 21, 1, 21, 1, 21, 5, 21, 412, 8, 21, 10, 21, 12, 21, 415, 9, 21, 1, 21, 1, 21, 1, 22, 1, 22, 3, 22, 421, 8, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 447, 8, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 3, 24, 454, 8, 24, 1, 24, 1, 24, 3, 24, 458, 8, 24, 1, 25, 5, 25, 461, 8, 25, 10, 25, 12, 25, 464, 9, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 3, 25, 474, 8, 25, 1, 25, 1, 25, 5, 25, 478, 8, 25, 10, 25, 12, 25, 481, 9, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 3, 26, 489, 8, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 5, 27, 503, 8, 27, 10, 27, 12, 27, 506, 9, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 540, 8, 28, 1, 29, 1, 29, 1, 29, 3, 29, 545, 8, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 3, 29, 556, 8, 29, 1, 29, 1, 29, 1, 29, 3, 29, 561, 8, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 3, 30, 568, 8, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 3, 30, 577, 8, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 3, 31, 590, 8, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 5, 34, 609, 8, 34, 10, 34, 12, 34, 612, 9, 34, 3, 34, 614, 8, 34, 1, 34, 3, 34, 617, 8, 34, 1, 35, 1, 35, 1, 35, 5, 35, 622, 8, 35, 10, 35, 12, 35, 625, 9, 35, 1, 36, 1, 36, 1, 36, 5, 36, 630, 8, 36, 10, 36, 12, 36, 633, 9, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 663, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 675, 8, 37, 1, 37, 1, 37, 3, 37, 679, 8, 37, 1, 38, 1, 38, 1, 38, 1, 38, 5, 38, 685, 8, 38, 10, 38, 12, 38, 688, 9, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 3, 41, 699, 8, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 713, 8, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 3, 43, 723, 8, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 741, 8, 45, 1, 45, 1, 45, 3, 45, 745, 8, 45, 1, 45, 3, 45, 748, 8, 45, 1, 45, 1, 45, 3, 45, 752, 8, 45, 1, 45, 3, 45, 755, 8, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 764, 8, 46, 1, 46, 1, 46, 3, 46, 768, 8, 46, 1, 46, 1, 46, 3, 46, 772, 8, 46, 1, 46, 1, 46, 5, 46, 776, 8, 46, 10, 46, 12, 46, 779, 9, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 788, 8, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 817, 8, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 3, 52, 836, 8, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 3, 53, 855, 8, 53, 1, 53, 3, 53, 858, 8, 53, 3, 53, 860, 8, 53, 1, 54, 1, 54, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 5, 56, 869, 8, 56, 10, 56, 12, 56, 872, 9, 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, 3, 57, 886, 8, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 3, 57, 902, 8, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 3, 57, 911, 8, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 3, 57, 919, 8, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 3, 57, 929, 8, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 938, 8, 58, 1, 58, 1, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 3, 59, 956, 8, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 5, 59, 978, 8, 59, 10, 59, 12, 59, 981, 9, 59, 1, 59, 1, 59, 1, 59, 3, 59, 986, 8, 59, 3, 59, 988, 8, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 3, 63, 1007, 8, 63, 1, 64, 1, 64, 1, 64, 1, 64, 5, 64, 1013, 8, 64, 10, 64, 12, 64, 1016, 9, 64, 3, 64, 1018, 8, 64, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 5, 66, 1030, 8, 66, 10, 66, 12, 66, 1033, 9, 66, 3, 66, 1035, 8, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 68, 1, 68, 1, 68, 0, 0, 69, 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, 0, 7, 1, 0, 77, 81, 2, 0, 72, 76, 78, 79, 2, 0, 72, 73, 78, 79, 2, 0, 74, 76, 78, 79, 1, 0, 97, 104, 1, 0, 84, 87, 3, 0, 2, 11, 51, 51, 125, 125, 1116, 0, 150, 1, 0, 0, 0, 2, 152, 1, 0, 0, 0, 4, 162, 1, 0, 0, 0, 6, 166, 1, 0, 0, 0, 8, 190, 1, 0, 0, 0, 10, 202, 1, 0, 0, 0, 12, 204, 1, 0, 0, 0, 14, 211, 1, 0, 0, 0, 16, 222, 1, 0, 0, 0, 18, 224, 1, 0, 0, 0, 20, 237, 1, 0, 0, 0, 22, 269, 1, 0, 0, 0, 24, 299, 1, 0, 0, 0, 26, 301, 1, 0, 0, 0, 28, 305, 1, 0, 0, 0, 30, 323, 1, 0, 0, 0, 32, 325, 1, 0, 0, 0, 34, 337, 1, 0, 0, 0, 36, 340, 1, 0, 0, 0, 38, 358, 1, 0, 0, 0, 40, 394, 1, 0, 0, 0, 42, 397, 1, 0, 0, 0, 44, 418, 1, 0, 0, 0, 46, 446, 1, 0, 0, 0, 48, 457, 1, 0, 0, 0, 50, 462, 1, 0, 0, 0, 52, 488, 1, 0, 0, 0, 54, 490, 1, 0, 0, 0, 56, 539, 1, 0, 0, 0, 58, 541, 1, 0, 0, 0, 60, 564, 1, 0, 0, 0, 62, 580, 1, 0, 0, 0, 64, 593, 1, 0, 0, 0, 66, 596, 1, 0, 0, 0, 68, 616, 1, 0, 0, 0, 70, 618, 1, 0, 0, 0, 72, 626, 1, 0, 0, 0, 74, 678, 1, 0, 0, 0, 76, 680, 1, 0, 0, 0, 78, 691, 1, 0, 0, 0, 80, 693, 1, 0, 0, 0, 82, 698, 1, 0, 0, 0, 84, 700, 1, 0, 0, 0, 86, 722, 1, 0, 0, 0, 88, 724, 1, 0, 0, 0, 90, 733, 1, 0, 0, 0, 92, 758, 1, 0, 0, 0, 94, 787, 1, 0, 0, 0, 96, 789, 1, 0, 0, 0, 98, 796, 1, 0, 0, 0, 100, 810, 1, 0, 0, 0, 102, 820, 1, 0, 0, 0, 104, 835, 1, 0, 0, 0, 106, 859, 1, 0, 0, 0, 108, 861, 1, 0, 0, 0, 110, 863, 1, 0, 0, 0, 112, 865, 1, 0, 0, 0, 114, 928, 1, 0, 0, 0, 116, 930, 1, 0, 0, 0, 118, 987, 1, 0, 0, 0, 120, 989, 1, 0, 0, 0, 122, 994, 1, 0, 0, 0, 124, 996, 1, 0, 0, 0, 126, 1006, 1, 0, 0, 0, 128, 1008, 1, 0, 0, 0, 130, 1021, 1, 0, 0, 0, 132, 1025, 1, 0, 0, 0, 134, 1038, 1, 0, 0, 0, 136, 1040, 1, 0, 0, 0, 138, 139, 3, 6, 3, 0, 139, 140, 5, 0, 0, 1, 140, 151, 1, 0, 0, 0, 141, 142, 3, 20, 10, 0, 142, 143, 5, 0, 0, 1, 143, 151, 1, 0, 0, 0, 144, 145, 3, 50, 25, 0, 145, 146, 5, 0, 0, 1, 146, 151, 1, 0, 0, 0, 147, 148, 3, 2, 1, 0, 148, 149, 5, 0, 0, 1, 149, 151, 1, 0, 0, 0, 150, 138, 1, 0, 0, 0, 150, 141, 1, 0, 0, 0, 150, 144, 1, 0, 0, 0, 150, 147, 1, 0, 0, 0, 151, 1, 1, 0, 0, 0, 152, 153, 5, 18, 0, 0, 153, 157, 5, 113, 0, 0, 154, 156, 3, 8, 4, 0, 155, 154, 1, 0, 0, 0, 156, 159, 1, 0, 0, 0, 157, 155, 1, 0, 0, 0, 157, 158, 1, 0, 0, 0, 158, 160, 1, 0, 0, 0, 159, 157, 1, 0, 0, 0, 160, 161, 5, 114, 0, 0, 161, 3, 1, 0, 0, 0, 162, 163, 5, 19, 0, 0, 163, 164, 3, 136, 68, 0, 164, 165, 5, 110, 0, 0, 165, 5, 1, 0, 0, 0, 166, 167, 5, 1, 0, 0, 167, 168, 3, 134, 67, 0, 168, 169, 5, 60, 0, 0, 169, 170, 3, 136, 68, 0, 170, 171, 5, 54, 0, 0, 171, 172, 3, 136, 68, 0, 172, 173, 5, 53, 0, 0, 173, 174, 3, 136, 68, 0, 174, 178, 5, 113, 0, 0, 175, 177, 3, 8, 4, 0, 176, 175, 1, 0, 0, 0, 177, 180, 1, 0, 0, 0, 178, 176, 1, 0, 0, 0, 178, 179, 1, 0, 0, 0, 179, 181, 1, 0, 0, 0, 180, 178, 1, 0, 0, 0, 181, 182, 5, 114, 0, 0, 182, 7, 1, 0, 0, 0, 183, 191, 3, 4, 2, 0, 184, 191, 3, 18, 9, 0, 185, 191, 3, 10, 5, 0, 186, 191, 3, 80, 40, 0, 187, 191, 3, 92, 46, 0, 188, 191, 3, 116, 58, 0, 189, 191, 3, 32, 16, 0, 190, 183, 1, 0, 0, 0, 190, 184, 1, 0, 0, 0, 190, 185, 1, 0, 0, 0, 190, 186, 1, 0, 0, 0, 190, 187, 1, 0, 0, 0, 190, 188, 1, 0, 0, 0, 190, 189, 1, 0, 0, 0, 191, 9, 1, 0, 0, 0, 192, 193, 5, 19, 0, 0, 193, 194, 5, 22, 0, 0, 194, 195, 3, 134, 67, 0, 195, 196, 5, 110, 0, 0, 196, 203, 1, 0, 0, 0, 197, 198, 5, 19, 0, 0, 198, 199, 5, 24, 0, 0, 199, 200, 3, 134, 67, 0, 200, 201, 5, 110, 0, 0, 201, 203, 1, 0, 0, 0, 202, 192, 1, 0, 0, 0, 202, 197, 1, 0, 0, 0, 203, 11, 1, 0, 0, 0, 204, 205, 5, 20, 0, 0, 205, 206, 5, 21, 0, 0, 206, 207, 3, 134, 67, 0, 207, 208, 5, 60, 0, 0, 208, 209, 3, 136, 68, 0, 209, 210, 5, 110, 0, 0, 210, 13, 1, 0, 0, 0, 211, 212, 5, 20, 0, 0, 212, 213, 5, 22, 0, 0, 213, 214, 3, 134, 67, 0, 214, 215, 5, 54, 0, 0, 215, 216, 3, 136, 68, 0, 216, 217, 5, 110, 0, 0, 217, 15, 1, 0, 0, 0, 218, 223, 3, 10, 5, 0, 219, 223, 3, 12, 6, 0, 220, 223, 3, 14, 7, 0, 221, 223, 3, 32, 16, 0, 222, 218, 1, 0, 0, 0, 222, 219, 1, 0, 0, 0, 222, 220, 1, 0, 0, 0, 222, 221, 1, 0, 0, 0, 223, 17, 1, 0, 0, 0, 224, 225, 5, 21, 0, 0, 225, 226, 3, 134, 67, 0, 226, 227, 5, 60, 0, 0, 227, 230, 3, 136, 68, 0, 228, 229, 5, 61, 0, 0, 229, 231, 3, 136, 68, 0, 230, 228, 1, 0, 0, 0, 230, 231, 1, 0, 0, 0, 231, 232, 1, 0, 0, 0, 232, 233, 5, 110, 0, 0, 233, 19, 1, 0, 0, 0, 234, 236, 3, 16, 8, 0, 235, 234, 1, 0, 0, 0, 236, 239, 1, 0, 0, 0, 237, 235, 1, 0, 0, 0, 237, 238, 1, 0, 0, 0, 238, 240, 1, 0, 0, 0, 239, 237, 1, 0, 0, 0, 240, 241, 5, 22, 0, 0, 241, 243, 3, 134, 67, 0, 242, 244, 3, 22, 11, 0, 243, 242, 1, 0, 0, 0, 243, 244, 1, 0, 0, 0, 244, 245, 1, 0, 0, 0, 245, 246, 5, 60, 0, 0, 246, 247, 3, 136, 68, 0, 247, 248, 5, 54, 0, 0, 248, 258, 3, 136, 68, 0, 249, 250, 5, 65, 0, 0, 250, 255, 3, 26, 13, 0, 251, 252, 5, 111, 0, 0, 252, 254, 3, 26, 13, 0, 253, 251, 1, 0, 0, 0, 254, 257, 1, 0, 0, 0, 255, 253, 1, 0, 0, 0, 255, 256, 1, 0, 0, 0, 256, 259, 1, 0, 0, 0, 257, 255, 1, 0, 0, 0, 258, 249, 1, 0, 0, 0, 258, 259, 1, 0, 0, 0, 259, 260, 1, 0, 0, 0, 260, 264, 5, 113, 0, 0, 261, 263, 3, 34, 17, 0, 262, 261, 1, 0, 0, 0, 263, 266, 1, 0, 0, 0, 264, 262, 1, 0, 0, 0, 264, 265, 1, 0, 0, 0, 265, 267, 1, 0, 0, 0, 266, 264, 1, 0, 0, 0, 267, 268, 5, 114, 0, 0, 268, 21, 1, 0, 0, 0, 269, 270, 5, 119, 0, 0, 270, 275, 3, 24, 12, 0, 271, 272, 5, 111, 0, 0, 272, 274, 3, 24, 12, 0, 273, 271, 1, 0, 0, 0, 274, 277, 1, 0, 0, 0, 275, 273, 1, 0, 0, 0, 275, 276, 1, 0, 0, 0, 276, 278, 1, 0, 0, 0, 277, 275, 1, 0, 0, 0, 278, 279, 5, 120, 0, 0, 279, 23, 1, 0, 0, 0, 280, 281, 5, 25, 0, 0, 281, 284, 3, 134, 67, 0, 282, 283, 5, 109, 0, 0, 283, 285, 5, 15, 0, 0, 284, 282, 1, 0, 0, 0, 284, 285, 1, 0, 0, 0, 285, 300, 1, 0, 0, 0, 286, 287, 5, 14, 0, 0, 287, 297, 3, 134, 67, 0, 288, 289, 5, 16, 0, 0, 289, 294, 3, 26, 13, 0, 290, 291, 5, 121, 0, 0, 291, 293, 3, 26, 13, 0, 292, 290, 1, 0, 0, 0, 293, 296, 1, 0, 0, 0, 294, 292, 1, 0, 0, 0, 294, 295, 1, 0, 0, 0, 295, 298, 1, 0, 0, 0, 296, 294, 1, 0, 0, 0, 297, 288, 1, 0, 0, 0, 297, 298, 1, 0, 0, 0, 298, 300, 1, 0, 0, 0, 299, 280, 1, 0, 0, 0, 299, 286, 1, 0, 0, 0, 300, 25, 1, 0, 0, 0, 301, 303, 3, 134, 67, 0, 302, 304, 3, 28, 14, 0, 303, 302, 1, 0, 0, 0, 303, 304, 1, 0, 0, 0, 304, 27, 1, 0, 0, 0, 305, 306, 5, 119, 0, 0, 306, 311, 3, 30, 15, 0, 307, 308, 5, 111, 0, 0, 308, 310, 3, 30, 15, 0, 309, 307, 1, 0, 0, 0, 310, 313, 1, 0, 0, 0, 311, 309, 1, 0, 0, 0, 311, 312, 1, 0, 0, 0, 312, 314, 1, 0, 0, 0, 313, 311, 1, 0, 0, 0, 314, 315, 5, 120, 0, 0, 315, 29, 1, 0, 0, 0, 316, 317, 5, 21, 0, 0, 317, 324, 3, 134, 67, 0, 318, 319, 5, 22, 0, 0, 319, 324, 3, 26, 13, 0, 320, 321, 5, 14, 0, 0, 321, 324, 3, 134, 67, 0, 322, 324, 3, 118, 59, 0, 323, 316, 1, 0, 0, 0, 323, 318, 1, 0, 0, 0, 323, 320, 1, 0, 0, 0, 323, 322, 1, 0, 0, 0, 324, 31, 1, 0, 0, 0, 325, 326, 5, 13, 0, 0, 326, 328, 3, 134, 67, 0, 327, 329, 3, 22, 11, 0, 328, 327, 1, 0, 0, 0, 328, 329, 1, 0, 0, 0, 329, 330, 1, 0, 0, 0, 330, 331, 5, 122, 0, 0, 331, 332, 3, 118, 59, 0, 332, 333, 5, 110, 0, 0, 333, 33, 1, 0, 0, 0, 334, 338, 3, 38, 19, 0, 335, 338, 3, 42, 21, 0, 336, 338, 3, 36, 18, 0, 337, 334, 1, 0, 0, 0, 337, 335, 1, 0, 0, 0, 337, 336, 1, 0, 0, 0, 338, 35, 1, 0, 0, 0, 339, 341, 5, 35, 0, 0, 340, 339, 1, 0, 0, 0, 340, 341, 1, 0, 0, 0, 341, 342, 1, 0, 0, 0, 342, 343, 5, 27, 0, 0, 343, 344, 3, 134, 67, 0, 344, 345, 5, 60, 0, 0, 345, 346, 3, 136, 68, 0, 346, 347, 5, 109, 0, 0, 347, 348, 3, 118, 59, 0, 348, 349, 5, 108, 0, 0, 349, 350, 3, 118, 59, 0, 350, 351, 5, 113, 0, 0, 351, 352, 5, 77, 0, 0, 352, 353, 5, 60, 0, 0, 353, 354, 3, 136, 68, 0, 354, 355, 5, 110, 0, 0, 355, 356, 5, 114, 0, 0, 356, 37, 1, 0, 0, 0, 357, 359, 3, 44, 22, 0, 358, 357, 1, 0, 0, 0, 358, 359, 1, 0, 0, 0, 359, 360, 1, 0, 0, 0, 360, 361, 5, 25, 0, 0, 361, 362, 3, 134, 67, 0, 362, 363, 5, 60, 0, 0, 363, 364, 3, 136, 68, 0, 364, 365, 5, 109, 0, 0, 365, 366, 3, 118, 59, 0, 366, 370, 5, 113, 0, 0, 367, 369, 3, 40, 20, 0, 368, 367, 1, 0, 0, 0, 369, 372, 1, 0, 0, 0, 370, 368, 1, 0, 0, 0, 370, 371, 1, 0, 0, 0, 371, 373, 1, 0, 0, 0, 372, 370, 1, 0, 0, 0, 373, 374, 5, 114, 0, 0, 374, 39, 1, 0, 0, 0, 375, 376, 5, 67, 0, 0, 376, 377, 5, 60, 0, 0, 377, 378, 3, 136, 68, 0, 378, 379, 5, 110, 0, 0, 379, 395, 1, 0, 0, 0, 380, 381, 5, 68, 0, 0, 381, 382, 5, 60, 0, 0, 382, 383, 3, 136, 68, 0, 383, 384, 5, 110, 0, 0, 384, 395, 1, 0, 0, 0, 385, 386, 5, 69, 0, 0, 386, 387, 5, 70, 0, 0, 387, 388, 5, 60, 0, 0, 388, 389, 3, 136, 68, 0, 389, 390, 5, 71, 0, 0, 390, 391, 5, 60, 0, 0, 391, 392, 3, 136, 68, 0, 392, 393, 5, 110, 0, 0, 393, 395, 1, 0, 0, 0, 394, 375, 1, 0, 0, 0, 394, 380, 1, 0, 0, 0, 394, 385, 1, 0, 0, 0, 395, 41, 1, 0, 0, 0, 396, 398, 3, 44, 22, 0, 397, 396, 1, 0, 0, 0, 397, 398, 1, 0, 0, 0, 398, 399, 1, 0, 0, 0, 399, 400, 5, 26, 0, 0, 400, 401, 3, 134, 67, 0, 401, 402, 5, 60, 0, 0, 402, 403, 3, 136, 68, 0, 403, 404, 5, 109, 0, 0, 404, 405, 3, 124, 62, 0, 405, 407, 3, 48, 24, 0, 406, 408, 5, 88, 0, 0, 407, 406, 1, 0, 0, 0, 407, 408, 1, 0, 0, 0, 408, 409, 1, 0, 0, 0, 409, 413, 5, 113, 0, 0, 410, 412, 3, 46, 23, 0, 411, 410, 1, 0, 0, 0, 412, 415, 1, 0, 0, 0, 413, 411, 1, 0, 0, 0, 413, 414, 1, 0, 0, 0, 414, 416, 1, 0, 0, 0, 415, 413, 1, 0, 0, 0, 416, 417, 5, 114, 0, 0, 417, 43, 1, 0, 0, 0, 418, 420, 5, 10, 0, 0, 419, 421, 5, 11, 0, 0, 420, 419, 1, 0, 0, 0, 420, 421, 1, 0, 0, 0, 421, 45, 1, 0, 0, 0, 422, 423, 5, 74, 0, 0, 423, 424, 5, 60, 0, 0, 424, 425, 3, 136, 68, 0, 425, 426, 5, 110, 0, 0, 426, 447, 1, 0, 0, 0, 427, 428, 5, 75, 0, 0, 428, 429, 5, 60, 0, 0, 429, 430, 3, 136, 68, 0, 430, 431, 5, 110, 0, 0, 431, 447, 1, 0, 0, 0, 432, 433, 5, 76, 0, 0, 433, 434, 5, 60, 0, 0, 434, 435, 3, 136, 68, 0, 435, 436, 5, 110, 0, 0, 436, 447, 1, 0, 0, 0, 437, 438, 5, 69, 0, 0, 438, 439, 5, 70, 0, 0, 439, 440, 5, 60, 0, 0, 440, 441, 3, 136, 68, 0, 441, 442, 5, 71, 0, 0, 442, 443, 5, 60, 0, 0, 443, 444, 3, 136, 68, 0, 444, 445, 5, 110, 0, 0, 445, 447, 1, 0, 0, 0, 446, 422, 1, 0, 0, 0, 446, 427, 1, 0, 0, 0, 446, 432, 1, 0, 0, 0, 446, 437, 1, 0, 0, 0, 447, 47, 1, 0, 0, 0, 448, 449, 5, 21, 0, 0, 449, 458, 3, 134, 67, 0, 450, 451, 5, 22, 0, 0, 451, 453, 3, 134, 67, 0, 452, 454, 3, 28, 14, 0, 453, 452, 1, 0, 0, 0, 453, 454, 1, 0, 0, 0, 454, 458, 1, 0, 0, 0, 455, 456, 5, 14, 0, 0, 456, 458, 3, 134, 67, 0, 457, 448, 1, 0, 0, 0, 457, 450, 1, 0, 0, 0, 457, 455, 1, 0, 0, 0, 458, 49, 1, 0, 0, 0, 459, 461, 3, 16, 8, 0, 460, 459, 1, 0, 0, 0, 461, 464, 1, 0, 0, 0, 462, 460, 1, 0, 0, 0, 462, 463, 1, 0, 0, 0, 463, 465, 1, 0, 0, 0, 464, 462, 1, 0, 0, 0, 465, 466, 5, 24, 0, 0, 466, 467, 3, 134, 67, 0, 467, 468, 5, 60, 0, 0, 468, 469, 3, 136, 68, 0, 469, 470, 5, 54, 0, 0, 470, 473, 3, 136, 68, 0, 471, 472, 5, 55, 0, 0, 472, 474, 5, 123, 0, 0, 473, 471, 1, 0, 0, 0, 473, 474, 1, 0, 0, 0, 474, 475, 1, 0, 0, 0, 475, 479, 5, 113, 0, 0, 476, 478, 3, 52, 26, 0, 477, 476, 1, 0, 0, 0, 478, 481, 1, 0, 0, 0, 479, 477, 1, 0, 0, 0, 479, 480, 1, 0, 0, 0, 480, 482, 1, 0, 0, 0, 481, 479, 1, 0, 0, 0, 482, 483, 5, 114, 0, 0, 483, 51, 1, 0, 0, 0, 484, 489, 3, 58, 29, 0, 485, 489, 3, 60, 30, 0, 486, 489, 3, 62, 31, 0, 487, 489, 3, 54, 27, 0, 488, 484, 1, 0, 0, 0, 488, 485, 1, 0, 0, 0, 488, 486, 1, 0, 0, 0, 488, 487, 1, 0, 0, 0, 489, 53, 1, 0, 0, 0, 490, 491, 5, 2, 0, 0, 491, 492, 3, 134, 67, 0, 492, 493, 5, 60, 0, 0, 493, 494, 3, 136, 68, 0, 494, 495, 5, 3, 0, 0, 495, 496, 3, 26, 13, 0, 496, 497, 5, 4, 0, 0, 497, 498, 3, 136, 68, 0, 498, 499, 5, 27, 0, 0, 499, 500, 3, 136, 68, 0, 500, 504, 5, 113, 0, 0, 501, 503, 3, 56, 28, 0, 502, 501, 1, 0, 0, 0, 503, 506, 1, 0, 0, 0, 504, 502, 1, 0, 0, 0, 504, 505, 1, 0, 0, 0, 505, 507, 1, 0, 0, 0, 506, 504, 1, 0, 0, 0, 507, 508, 5, 114, 0, 0, 508, 55, 1, 0, 0, 0, 509, 510, 5, 5, 0, 0, 510, 511, 3, 136, 68, 0, 511, 512, 5, 110, 0, 0, 512, 540, 1, 0, 0, 0, 513, 514, 5, 6, 0, 0, 514, 515, 3, 134, 67, 0, 515, 516, 5, 33, 0, 0, 516, 517, 3, 26, 13, 0, 517, 518, 5, 110, 0, 0, 518, 540, 1, 0, 0, 0, 519, 520, 5, 7, 0, 0, 520, 521, 3, 134, 67, 0, 521, 522, 5, 123, 0, 0, 522, 523, 5, 110, 0, 0, 523, 540, 1, 0, 0, 0, 524, 525, 5, 8, 0, 0, 525, 526, 3, 26, 13, 0, 526, 527, 5, 112, 0, 0, 527, 528, 3, 134, 67, 0, 528, 529, 3, 134, 67, 0, 529, 530, 3, 136, 68, 0, 530, 531, 5, 110, 0, 0, 531, 540, 1, 0, 0, 0, 532, 533, 5, 69, 0, 0, 533, 540, 5, 110, 0, 0, 534, 535, 5, 9, 0, 0, 535, 536, 5, 123, 0, 0, 536, 537, 3, 136, 68, 0, 537, 538, 5, 110, 0, 0, 538, 540, 1, 0, 0, 0, 539, 509, 1, 0, 0, 0, 539, 513, 1, 0, 0, 0, 539, 519, 1, 0, 0, 0, 539, 524, 1, 0, 0, 0, 539, 532, 1, 0, 0, 0, 539, 534, 1, 0, 0, 0, 540, 57, 1, 0, 0, 0, 541, 542, 5, 27, 0, 0, 542, 544, 3, 134, 67, 0, 543, 545, 3, 22, 11, 0, 544, 543, 1, 0, 0, 0, 544, 545, 1, 0, 0, 0, 545, 546, 1, 0, 0, 0, 546, 547, 5, 60, 0, 0, 547, 548, 3, 136, 68, 0, 548, 549, 5, 109, 0, 0, 549, 550, 3, 118, 59, 0, 550, 551, 5, 108, 0, 0, 551, 552, 3, 118, 59, 0, 552, 553, 5, 62, 0, 0, 553, 555, 3, 66, 33, 0, 554, 556, 3, 64, 32, 0, 555, 554, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 557, 1, 0, 0, 0, 557, 558, 5, 64, 0, 0, 558, 560, 3, 68, 34, 0, 559, 561, 3, 72, 36, 0, 560, 559, 1, 0, 0, 0, 560, 561, 1, 0, 0, 0, 561, 562, 1, 0, 0, 0, 562, 563, 5, 110, 0, 0, 563, 59, 1, 0, 0, 0, 564, 565, 5, 28, 0, 0, 565, 567, 3, 134, 67, 0, 566, 568, 3, 22, 11, 0, 567, 566, 1, 0, 0, 0, 567, 568, 1, 0, 0, 0, 568, 569, 1, 0, 0, 0, 569, 570, 5, 60, 0, 0, 570, 571, 3, 136, 68, 0, 571, 572, 5, 109, 0, 0, 572, 573, 3, 118, 59, 0, 573, 574, 5, 108, 0, 0, 574, 576, 3, 118, 59, 0, 575, 577, 3, 72, 36, 0, 576, 575, 1, 0, 0, 0, 576, 577, 1, 0, 0, 0, 577, 578, 1, 0, 0, 0, 578, 579, 5, 110, 0, 0, 579, 61, 1, 0, 0, 0, 580, 581, 5, 29, 0, 0, 581, 582, 3, 134, 67, 0, 582, 583, 5, 60, 0, 0, 583, 584, 3, 136, 68, 0, 584, 585, 5, 30, 0, 0, 585, 586, 3, 134, 67, 0, 586, 587, 5, 109, 0, 0, 587, 589, 3, 118, 59, 0, 588, 590, 3, 72, 36, 0, 589, 588, 1, 0, 0, 0, 589, 590, 1, 0, 0, 0, 590, 591, 1, 0, 0, 0, 591, 592, 5, 110, 0, 0, 592, 63, 1, 0, 0, 0, 593, 594, 5, 63, 0, 0, 594, 595, 3, 118, 59, 0, 595, 65, 1, 0, 0, 0, 596, 597, 7, 0, 0, 0, 597, 67, 1, 0, 0, 0, 598, 617, 5, 66, 0, 0, 599, 600, 5, 21, 0, 0, 600, 617, 3, 134, 67, 0, 601, 602, 5, 14, 0, 0, 602, 617, 3, 134, 67, 0, 603, 604, 5, 23, 0, 0, 604, 613, 5, 115, 0, 0, 605, 610, 3, 26, 13, 0, 606, 607, 5, 111, 0, 0, 607, 609, 3, 26, 13, 0, 608, 606, 1, 0, 0, 0, 609, 612, 1, 0, 0, 0, 610, 608, 1, 0, 0, 0, 610, 611, 1, 0, 0, 0, 611, 614, 1, 0, 0, 0, 612, 610, 1, 0, 0, 0, 613, 605, 1, 0, 0, 0, 613, 614, 1, 0, 0, 0, 614, 615, 1, 0, 0, 0, 615, 617, 5, 116, 0, 0, 616, 598, 1, 0, 0, 0, 616, 599, 1, 0, 0, 0, 616, 601, 1, 0, 0, 0, 616, 603, 1, 0, 0, 0, 617, 69, 1, 0, 0, 0, 618, 623, 3, 134, 67, 0, 619, 620, 5, 111, 0, 0, 620, 622, 3, 134, 67, 0, 621, 619, 1, 0, 0, 0, 622, 625, 1, 0, 0, 0, 623, 621, 1, 0, 0, 0, 623, 624, 1, 0, 0, 0, 624, 71, 1, 0, 0, 0, 625, 623, 1, 0, 0, 0, 626, 627, 5, 65, 0, 0, 627, 631, 5, 113, 0, 0, 628, 630, 3, 74, 37, 0, 629, 628, 1, 0, 0, 0, 630, 633, 1, 0, 0, 0, 631, 629, 1, 0, 0, 0, 631, 632, 1, 0, 0, 0, 632, 634, 1, 0, 0, 0, 633, 631, 1, 0, 0, 0, 634, 635, 5, 114, 0, 0, 635, 73, 1, 0, 0, 0, 636, 637, 5, 39, 0, 0, 637, 638, 3, 134, 67, 0, 638, 639, 5, 60, 0, 0, 639, 640, 3, 136, 68, 0, 640, 641, 5, 109, 0, 0, 641, 642, 3, 118, 59, 0, 642, 643, 3, 76, 38, 0, 643, 644, 5, 110, 0, 0, 644, 679, 1, 0, 0, 0, 645, 646, 5, 40, 0, 0, 646, 647, 3, 134, 67, 0, 647, 648, 5, 60, 0, 0, 648, 649, 3, 136, 68, 0, 649, 650, 5, 109, 0, 0, 650, 651, 3, 124, 62, 0, 651, 652, 3, 48, 24, 0, 652, 653, 3, 76, 38, 0, 653, 654, 5, 110, 0, 0, 654, 679, 1, 0, 0, 0, 655, 656, 5, 22, 0, 0, 656, 657, 3, 134, 67, 0, 657, 658, 5, 60, 0, 0, 658, 659, 3, 136, 68, 0, 659, 660, 5, 109, 0, 0, 660, 662, 3, 134, 67, 0, 661, 663, 3, 28, 14, 0, 662, 661, 1, 0, 0, 0, 662, 663, 1, 0, 0, 0, 663, 664, 1, 0, 0, 0, 664, 665, 5, 110, 0, 0, 665, 679, 1, 0, 0, 0, 666, 667, 5, 29, 0, 0, 667, 668, 3, 134, 67, 0, 668, 669, 5, 60, 0, 0, 669, 670, 3, 136, 68, 0, 670, 671, 5, 109, 0, 0, 671, 674, 3, 134, 67, 0, 672, 673, 5, 31, 0, 0, 673, 675, 3, 118, 59, 0, 674, 672, 1, 0, 0, 0, 674, 675, 1, 0, 0, 0, 675, 676, 1, 0, 0, 0, 676, 677, 5, 110, 0, 0, 677, 679, 1, 0, 0, 0, 678, 636, 1, 0, 0, 0, 678, 645, 1, 0, 0, 0, 678, 655, 1, 0, 0, 0, 678, 666, 1, 0, 0, 0, 679, 75, 1, 0, 0, 0, 680, 681, 5, 115, 0, 0, 681, 686, 3, 78, 39, 0, 682, 683, 5, 111, 0, 0, 683, 685, 3, 78, 39, 0, 684, 682, 1, 0, 0, 0, 685, 688, 1, 0, 0, 0, 686, 684, 1, 0, 0, 0, 686, 687, 1, 0, 0, 0, 687, 689, 1, 0, 0, 0, 688, 686, 1, 0, 0, 0, 689, 690, 5, 116, 0, 0, 690, 77, 1, 0, 0, 0, 691, 692, 7, 1, 0, 0, 692, 79, 1, 0, 0, 0, 693, 694, 5, 38, 0, 0, 694, 695, 3, 82, 41, 0, 695, 81, 1, 0, 0, 0, 696, 699, 3, 84, 42, 0, 697, 699, 3, 88, 44, 0, 698, 696, 1, 0, 0, 0, 698, 697, 1, 0, 0, 0, 699, 83, 1, 0, 0, 0, 700, 701, 5, 39, 0, 0, 701, 702, 3, 134, 67, 0, 702, 703, 5, 60, 0, 0, 703, 704, 3, 136, 68, 0, 704, 705, 5, 48, 0, 0, 705, 706, 3, 134, 67, 0, 706, 707, 5, 109, 0, 0, 707, 708, 3, 118, 59, 0, 708, 709, 5, 49, 0, 0, 709, 712, 3, 86, 43, 0, 710, 711, 5, 50, 0, 0, 711, 713, 3, 126, 63, 0, 712, 710, 1, 0, 0, 0, 712, 713, 1, 0, 0, 0, 713, 714, 1, 0, 0, 0, 714, 715, 5, 110, 0, 0, 715, 85, 1, 0, 0, 0, 716, 723, 5, 82, 0, 0, 717, 718, 5, 83, 0, 0, 718, 719, 5, 117, 0, 0, 719, 720, 3, 118, 59, 0, 720, 721, 5, 118, 0, 0, 721, 723, 1, 0, 0, 0, 722, 716, 1, 0, 0, 0, 722, 717, 1, 0, 0, 0, 723, 87, 1, 0, 0, 0, 724, 725, 5, 40, 0, 0, 725, 726, 3, 134, 67, 0, 726, 727, 5, 60, 0, 0, 727, 728, 3, 136, 68, 0, 728, 729, 5, 113, 0, 0, 729, 730, 3, 90, 45, 0, 730, 731, 3, 90, 45, 0, 731, 732, 5, 114, 0, 0, 732, 89, 1, 0, 0, 0, 733, 734, 3, 48, 24, 0, 734, 735, 5, 41, 0, 0, 735, 736, 3, 134, 67, 0, 736, 737, 5, 60, 0, 0, 737, 738, 3, 136, 68, 0, 738, 740, 3, 124, 62, 0, 739, 741, 5, 88, 0, 0, 740, 739, 1, 0, 0, 0, 740, 741, 1, 0, 0, 0, 741, 744, 1, 0, 0, 0, 742, 743, 5, 56, 0, 0, 743, 745, 3, 136, 68, 0, 744, 742, 1, 0, 0, 0, 744, 745, 1, 0, 0, 0, 745, 747, 1, 0, 0, 0, 746, 748, 5, 57, 0, 0, 747, 746, 1, 0, 0, 0, 747, 748, 1, 0, 0, 0, 748, 751, 1, 0, 0, 0, 749, 750, 5, 58, 0, 0, 750, 752, 3, 136, 68, 0, 751, 749, 1, 0, 0, 0, 751, 752, 1, 0, 0, 0, 752, 754, 1, 0, 0, 0, 753, 755, 5, 59, 0, 0, 754, 753, 1, 0, 0, 0, 754, 755, 1, 0, 0, 0, 755, 756, 1, 0, 0, 0, 756, 757, 5, 110, 0, 0, 757, 91, 1, 0, 0, 0, 758, 759, 5, 32, 0, 0, 759, 760, 3, 134, 67, 0, 760, 761, 5, 33, 0, 0, 761, 763, 3, 134, 67, 0, 762, 764, 3, 28, 14, 0, 763, 762, 1, 0, 0, 0, 763, 764, 1, 0, 0, 0, 764, 767, 1, 0, 0, 0, 765, 766, 5, 60, 0, 0, 766, 768, 3, 136, 68, 0, 767, 765, 1, 0, 0, 0, 767, 768, 1, 0, 0, 0, 768, 771, 1, 0, 0, 0, 769, 770, 5, 55, 0, 0, 770, 772, 5, 123, 0, 0, 771, 769, 1, 0, 0, 0, 771, 772, 1, 0, 0, 0, 772, 773, 1, 0, 0, 0, 773, 777, 5, 113, 0, 0, 774, 776, 3, 94, 47, 0, 775, 774, 1, 0, 0, 0, 776, 779, 1, 0, 0, 0, 777, 775, 1, 0, 0, 0, 777, 778, 1, 0, 0, 0, 778, 780, 1, 0, 0, 0, 779, 777, 1, 0, 0, 0, 780, 781, 5, 114, 0, 0, 781, 93, 1, 0, 0, 0, 782, 783, 5, 37, 0, 0, 783, 788, 3, 82, 41, 0, 784, 788, 3, 100, 50, 0, 785, 788, 3, 96, 48, 0, 786, 788, 3, 98, 49, 0, 787, 782, 1, 0, 0, 0, 787, 784, 1, 0, 0, 0, 787, 785, 1, 0, 0, 0, 787, 786, 1, 0, 0, 0, 788, 95, 1, 0, 0, 0, 789, 790, 5, 34, 0, 0, 790, 791, 3, 134, 67, 0, 791, 792, 5, 36, 0, 0, 792, 793, 5, 39, 0, 0, 793, 794, 3, 134, 67, 0, 794, 795, 5, 110, 0, 0, 795, 97, 1, 0, 0, 0, 796, 797, 5, 45, 0, 0, 797, 798, 3, 134, 67, 0, 798, 799, 5, 46, 0, 0, 799, 800, 5, 47, 0, 0, 800, 801, 5, 43, 0, 0, 801, 802, 5, 29, 0, 0, 802, 803, 3, 134, 67, 0, 803, 804, 5, 44, 0, 0, 804, 805, 5, 40, 0, 0, 805, 806, 3, 134, 67, 0, 806, 807, 5, 112, 0, 0, 807, 808, 3, 134, 67, 0, 808, 809, 5, 110, 0, 0, 809, 99, 1, 0, 0, 0, 810, 811, 5, 34, 0, 0, 811, 812, 3, 102, 51, 0, 812, 813, 5, 36, 0, 0, 813, 816, 3, 106, 53, 0, 814, 815, 5, 12, 0, 0, 815, 817, 3, 136, 68, 0, 816, 814, 1, 0, 0, 0, 816, 817, 1, 0, 0, 0, 817, 818, 1, 0, 0, 0, 818, 819, 5, 110, 0, 0, 819, 101, 1, 0, 0, 0, 820, 821, 3, 134, 67, 0, 821, 822, 5, 112, 0, 0, 822, 823, 3, 104, 52, 0, 823, 103, 1, 0, 0, 0, 824, 836, 3, 134, 67, 0, 825, 836, 5, 77, 0, 0, 826, 836, 5, 67, 0, 0, 827, 836, 5, 68, 0, 0, 828, 836, 5, 74, 0, 0, 829, 836, 5, 75, 0, 0, 830, 836, 5, 76, 0, 0, 831, 836, 5, 78, 0, 0, 832, 836, 5, 79, 0, 0, 833, 836, 5, 80, 0, 0, 834, 836, 5, 81, 0, 0, 835, 824, 1, 0, 0, 0, 835, 825, 1, 0, 0, 0, 835, 826, 1, 0, 0, 0, 835, 827, 1, 0, 0, 0, 835, 828, 1, 0, 0, 0, 835, 829, 1, 0, 0, 0, 835, 830, 1, 0, 0, 0, 835, 831, 1, 0, 0, 0, 835, 832, 1, 0, 0, 0, 835, 833, 1, 0, 0, 0, 835, 834, 1, 0, 0, 0, 836, 105, 1, 0, 0, 0, 837, 838, 5, 39, 0, 0, 838, 839, 3, 134, 67, 0, 839, 840, 5, 112, 0, 0, 840, 841, 3, 108, 54, 0, 841, 860, 1, 0, 0, 0, 842, 843, 5, 40, 0, 0, 843, 844, 3, 134, 67, 0, 844, 845, 5, 112, 0, 0, 845, 846, 3, 134, 67, 0, 846, 847, 5, 112, 0, 0, 847, 848, 3, 110, 55, 0, 848, 860, 1, 0, 0, 0, 849, 850, 5, 24, 0, 0, 850, 851, 3, 134, 67, 0, 851, 852, 5, 112, 0, 0, 852, 854, 3, 134, 67, 0, 853, 855, 3, 28, 14, 0, 854, 853, 1, 0, 0, 0, 854, 855, 1, 0, 0, 0, 855, 857, 1, 0, 0, 0, 856, 858, 3, 112, 56, 0, 857, 856, 1, 0, 0, 0, 857, 858, 1, 0, 0, 0, 858, 860, 1, 0, 0, 0, 859, 837, 1, 0, 0, 0, 859, 842, 1, 0, 0, 0, 859, 849, 1, 0, 0, 0, 860, 107, 1, 0, 0, 0, 861, 862, 7, 2, 0, 0, 862, 109, 1, 0, 0, 0, 863, 864, 7, 3, 0, 0, 864, 111, 1, 0, 0, 0, 865, 866, 5, 42, 0, 0, 866, 870, 5, 113, 0, 0, 867, 869, 3, 114, 57, 0, 868, 867, 1, 0, 0, 0, 869, 872, 1, 0, 0, 0, 870, 868, 1, 0, 0, 0, 870, 871, 1, 0, 0, 0, 871, 873, 1, 0, 0, 0, 872, 870, 1, 0, 0, 0, 873, 874, 5, 114, 0, 0, 874, 113, 1, 0, 0, 0, 875, 876, 3, 134, 67, 0, 876, 877, 5, 36, 0, 0, 877, 878, 5, 39, 0, 0, 878, 885, 3, 134, 67, 0, 879, 880, 5, 44, 0, 0, 880, 881, 5, 40, 0, 0, 881, 882, 3, 134, 67, 0, 882, 883, 5, 112, 0, 0, 883, 884, 3, 134, 67, 0, 884, 886, 1, 0, 0, 0, 885, 879, 1, 0, 0, 0, 885, 886, 1, 0, 0, 0, 886, 887, 1, 0, 0, 0, 887, 888, 5, 110, 0, 0, 888, 929, 1, 0, 0, 0, 889, 890, 3, 134, 67, 0, 890, 891, 5, 36, 0, 0, 891, 892, 5, 40, 0, 0, 892, 893, 3, 134, 67, 0, 893, 894, 5, 112, 0, 0, 894, 901, 3, 134, 67, 0, 895, 896, 5, 44, 0, 0, 896, 897, 5, 40, 0, 0, 897, 898, 3, 134, 67, 0, 898, 899, 5, 112, 0, 0, 899, 900, 3, 134, 67, 0, 900, 902, 1, 0, 0, 0, 901, 895, 1, 0, 0, 0, 901, 902, 1, 0, 0, 0, 902, 903, 1, 0, 0, 0, 903, 904, 5, 110, 0, 0, 904, 929, 1, 0, 0, 0, 905, 906, 3, 134, 67, 0, 906, 907, 5, 36, 0, 0, 907, 908, 5, 22, 0, 0, 908, 910, 3, 134, 67, 0, 909, 911, 3, 28, 14, 0, 910, 909, 1, 0, 0, 0, 910, 911, 1, 0, 0, 0, 911, 918, 1, 0, 0, 0, 912, 913, 5, 44, 0, 0, 913, 914, 5, 40, 0, 0, 914, 915, 3, 134, 67, 0, 915, 916, 5, 112, 0, 0, 916, 917, 3, 134, 67, 0, 917, 919, 1, 0, 0, 0, 918, 912, 1, 0, 0, 0, 918, 919, 1, 0, 0, 0, 919, 920, 1, 0, 0, 0, 920, 921, 5, 110, 0, 0, 921, 929, 1, 0, 0, 0, 922, 923, 3, 134, 67, 0, 923, 924, 5, 36, 0, 0, 924, 925, 5, 29, 0, 0, 925, 926, 3, 134, 67, 0, 926, 927, 5, 110, 0, 0, 927, 929, 1, 0, 0, 0, 928, 875, 1, 0, 0, 0, 928, 889, 1, 0, 0, 0, 928, 905, 1, 0, 0, 0, 928, 922, 1, 0, 0, 0, 929, 115, 1, 0, 0, 0, 930, 931, 5, 29, 0, 0, 931, 932, 3, 134, 67, 0, 932, 933, 5, 36, 0, 0, 933, 934, 3, 134, 67, 0, 934, 935, 5, 112, 0, 0, 935, 937, 3, 134, 67, 0, 936, 938, 3, 112, 56, 0, 937, 936, 1, 0, 0, 0, 937, 938, 1, 0, 0, 0, 938, 939, 1, 0, 0, 0, 939, 940, 5, 110, 0, 0, 940, 117, 1, 0, 0, 0, 941, 988, 3, 122, 61, 0, 942, 988, 5, 89, 0, 0, 943, 988, 5, 90, 0, 0, 944, 945, 5, 91, 0, 0, 945, 988, 3, 136, 68, 0, 946, 947, 5, 92, 0, 0, 947, 948, 5, 119, 0, 0, 948, 949, 3, 134, 67, 0, 949, 950, 5, 120, 0, 0, 950, 988, 1, 0, 0, 0, 951, 952, 5, 93, 0, 0, 952, 953, 5, 119, 0, 0, 953, 955, 3, 134, 67, 0, 954, 956, 3, 28, 14, 0, 955, 954, 1, 0, 0, 0, 955, 956, 1, 0, 0, 0, 956, 957, 1, 0, 0, 0, 957, 958, 5, 120, 0, 0, 958, 988, 1, 0, 0, 0, 959, 960, 5, 17, 0, 0, 960, 961, 5, 119, 0, 0, 961, 962, 3, 134, 67, 0, 962, 963, 5, 120, 0, 0, 963, 988, 1, 0, 0, 0, 964, 965, 5, 94, 0, 0, 965, 966, 5, 119, 0, 0, 966, 967, 3, 118, 59, 0, 967, 968, 5, 120, 0, 0, 968, 988, 1, 0, 0, 0, 969, 970, 5, 95, 0, 0, 970, 971, 5, 119, 0, 0, 971, 972, 3, 118, 59, 0, 972, 973, 5, 120, 0, 0, 973, 988, 1, 0, 0, 0, 974, 975, 5, 96, 0, 0, 975, 979, 5, 113, 0, 0, 976, 978, 3, 120, 60, 0, 977, 976, 1, 0, 0, 0, 978, 981, 1, 0, 0, 0, 979, 977, 1, 0, 0, 0, 979, 980, 1, 0, 0, 0, 980, 982, 1, 0, 0, 0, 981, 979, 1, 0, 0, 0, 982, 988, 5, 114, 0, 0, 983, 985, 3, 134, 67, 0, 984, 986, 3, 28, 14, 0, 985, 984, 1, 0, 0, 0, 985, 986, 1, 0, 0, 0, 986, 988, 1, 0, 0, 0, 987, 941, 1, 0, 0, 0, 987, 942, 1, 0, 0, 0, 987, 943, 1, 0, 0, 0, 987, 944, 1, 0, 0, 0, 987, 946, 1, 0, 0, 0, 987, 951, 1, 0, 0, 0, 987, 959, 1, 0, 0, 0, 987, 964, 1, 0, 0, 0, 987, 969, 1, 0, 0, 0, 987, 974, 1, 0, 0, 0, 987, 983, 1, 0, 0, 0, 988, 119, 1, 0, 0, 0, 989, 990, 3, 134, 67, 0, 990, 991, 5, 109, 0, 0, 991, 992, 3, 118, 59, 0, 992, 993, 5, 110, 0, 0, 993, 121, 1, 0, 0, 0, 994, 995, 7, 4, 0, 0, 995, 123, 1, 0, 0, 0, 996, 997, 7, 5, 0, 0, 997, 125, 1, 0, 0, 0, 998, 1007, 3, 136, 68, 0, 999, 1007, 5, 123, 0, 0, 1000, 1007, 5, 124, 0, 0, 1001, 1007, 5, 105, 0, 0, 1002, 1007, 5, 106, 0, 0, 1003, 1007, 5, 107, 0, 0, 1004, 1007, 3, 128, 64, 0, 1005, 1007, 3, 132, 66, 0, 1006, 998, 1, 0, 0, 0, 1006, 999, 1, 0, 0, 0, 1006, 1000, 1, 0, 0, 0, 1006, 1001, 1, 0, 0, 0, 1006, 1002, 1, 0, 0, 0, 1006, 1003, 1, 0, 0, 0, 1006, 1004, 1, 0, 0, 0, 1006, 1005, 1, 0, 0, 0, 1007, 127, 1, 0, 0, 0, 1008, 1017, 5, 113, 0, 0, 1009, 1014, 3, 130, 65, 0, 1010, 1011, 5, 111, 0, 0, 1011, 1013, 3, 130, 65, 0, 1012, 1010, 1, 0, 0, 0, 1013, 1016, 1, 0, 0, 0, 1014, 1012, 1, 0, 0, 0, 1014, 1015, 1, 0, 0, 0, 1015, 1018, 1, 0, 0, 0, 1016, 1014, 1, 0, 0, 0, 1017, 1009, 1, 0, 0, 0, 1017, 1018, 1, 0, 0, 0, 1018, 1019, 1, 0, 0, 0, 1019, 1020, 5, 114, 0, 0, 1020, 129, 1, 0, 0, 0, 1021, 1022, 3, 136, 68, 0, 1022, 1023, 5, 109, 0, 0, 1023, 1024, 3, 126, 63, 0, 1024, 131, 1, 0, 0, 0, 1025, 1034, 5, 115, 0, 0, 1026, 1031, 3, 126, 63, 0, 1027, 1028, 5, 111, 0, 0, 1028, 1030, 3, 126, 63, 0, 1029, 1027, 1, 0, 0, 0, 1030, 1033, 1, 0, 0, 0, 1031, 1029, 1, 0, 0, 0, 1031, 1032, 1, 0, 0, 0, 1032, 1035, 1, 0, 0, 0, 1033, 1031, 1, 0, 0, 0, 1034, 1026, 1, 0, 0, 0, 1034, 1035, 1, 0, 0, 0, 1035, 1036, 1, 0, 0, 0, 1036, 1037, 5, 116, 0, 0, 1037, 133, 1, 0, 0, 0, 1038, 1039, 7, 6, 0, 0, 1039, 135, 1, 0, 0, 0, 1040, 1041, 5, 126, 0, 0, 1041, 137, 1, 0, 0, 0, 88, 150, 157, 178, 190, 202, 222, 230, 237, 243, 255, 258, 264, 275, 284, 294, 297, 299, 303, 311, 323, 328, 337, 340, 358, 370, 394, 397, 407, 413, 420, 446, 453, 457, 462, 473, 479, 488, 504, 539, 544, 555, 560, 567, 576, 589, 610, 613, 616, 623, 631, 662, 674, 678, 686, 698, 712, 722, 740, 744, 747, 751, 754, 763, 767, 771, 777, 787, 816, 835, 854, 857, 859, 870, 885, 901, 910, 918, 928, 937, 955, 979, 985, 987, 1006, 1014, 1017, 1031, 1034] \ No newline at end of file diff --git a/src/capability-language/generated/QuixosCapability.tokens b/src/capability-language/generated/QuixosCapability.tokens index ed12769..59cfd6f 100644 --- a/src/capability-language/generated/QuixosCapability.tokens +++ b/src/capability-language/generated/QuixosCapability.tokens @@ -1,229 +1,251 @@ WORKSPACE=1 -TYPE=2 -OBJECT=3 -STORABLE=4 -IMPLEMENTS=5 -REF=6 -FRAGMENT=7 -IMPORT=8 -EXTERNAL=9 -ATOM=10 -INTERFACE=11 -INTERFACES=12 -PACKAGE=13 -VALUE=14 -RELATION=15 -OPERATION=16 -FUNCTION=17 -CONSTRUCTOR=18 -CONSTRUCTS=19 -INPUT=20 -CONFORM=21 -AS=22 -BIND=23 -STATIC=24 -TO=25 -PRIVATE=26 -SHARED=27 -STATE=28 -EDGE=29 -PROJECTION=30 -WITH=31 -USING=32 -VIA=33 -MATERIALIZE=34 -IF=35 -ABSENT=36 -ON=37 -POLICY=38 -DEFAULT=39 -SOURCE=40 -REPOSITORY=41 -COMMIT=42 -REVISION=43 -SEMANTIC_MAJOR=44 -ON_DELETE=45 -RETAIN_OTHER=46 -KEYED=47 -PUBLIC_TRAVERSAL=48 -ID=49 -DOC=50 -MODE=51 -EMITS=52 -RECEIVER=53 -REQUIRES=54 -ANY=55 -GET=56 -SET=57 -WATCH=58 -START=59 -STOP=60 -READ=61 -WRITE=62 -RESOLVE=63 -CONNECT=64 -DISCONNECT=65 -CALL=66 -WATCH_START=67 -WATCH_STOP=68 -SUBSCRIBE=69 -UNSUBSCRIBE=70 -OPTIMISTIC_REGISTER=71 -CRDT=72 -OPTIONAL_ONE=73 -EXACTLY_ONE=74 -MANY_UNIQUE=75 -MANY=76 -ORDERED=77 -UNIT=78 -WATCH_HANDLE=79 -MESSAGE=80 -ATOM_REF=81 -INTERFACE_REF=82 -OPTIONAL=83 -LIST=84 -RECORD=85 -BOOL=86 -BYTES=87 -DOUBLE=88 -INT32=89 -INT64=90 -STRING=91 -UINT32=92 -UINT64=93 -TRUE=94 -FALSE=95 -NULL=96 -ARROW=97 -COLON=98 -SEMI=99 -COMMA=100 -DOT=101 -LBRACE=102 -RBRACE=103 -LBRACK=104 -RBRACK=105 -LPAREN=106 -RPAREN=107 -LT=108 -GT=109 -AMP=110 -EQUAL=111 -INTEGER=112 -JSON_NUMBER=113 -IDENTIFIER=114 -STRING_LITERAL=115 -LINE_COMMENT=116 -BLOCK_COMMENT=117 -WS=118 +QUERY=2 +ROOT=3 +DOCUMENT=4 +FRAGMENTS=5 +VIEW=6 +MAX=7 +ALLOW=8 +POLL=9 +QUERYABLE=10 +RPC=11 +QUERY_REASON=12 +TYPE=13 +OBJECT=14 +STORABLE=15 +IMPLEMENTS=16 +REF=17 +FRAGMENT=18 +IMPORT=19 +EXTERNAL=20 +ATOM=21 +INTERFACE=22 +INTERFACES=23 +PACKAGE=24 +VALUE=25 +RELATION=26 +OPERATION=27 +FUNCTION=28 +CONSTRUCTOR=29 +CONSTRUCTS=30 +INPUT=31 +CONFORM=32 +AS=33 +BIND=34 +STATIC=35 +TO=36 +PRIVATE=37 +SHARED=38 +STATE=39 +EDGE=40 +PROJECTION=41 +WITH=42 +USING=43 +VIA=44 +MATERIALIZE=45 +IF=46 +ABSENT=47 +ON=48 +POLICY=49 +DEFAULT=50 +SOURCE=51 +REPOSITORY=52 +COMMIT=53 +REVISION=54 +SEMANTIC_MAJOR=55 +ON_DELETE=56 +RETAIN_OTHER=57 +KEYED=58 +PUBLIC_TRAVERSAL=59 +ID=60 +DOC=61 +MODE=62 +EMITS=63 +RECEIVER=64 +REQUIRES=65 +ANY=66 +GET=67 +SET=68 +WATCH=69 +START=70 +STOP=71 +READ=72 +WRITE=73 +RESOLVE=74 +CONNECT=75 +DISCONNECT=76 +CALL=77 +WATCH_START=78 +WATCH_STOP=79 +SUBSCRIBE=80 +UNSUBSCRIBE=81 +OPTIMISTIC_REGISTER=82 +CRDT=83 +OPTIONAL_ONE=84 +EXACTLY_ONE=85 +MANY_UNIQUE=86 +MANY=87 +ORDERED=88 +UNIT=89 +WATCH_HANDLE=90 +MESSAGE=91 +ATOM_REF=92 +INTERFACE_REF=93 +OPTIONAL=94 +LIST=95 +RECORD=96 +BOOL=97 +BYTES=98 +DOUBLE=99 +INT32=100 +INT64=101 +STRING=102 +UINT32=103 +UINT64=104 +TRUE=105 +FALSE=106 +NULL=107 +ARROW=108 +COLON=109 +SEMI=110 +COMMA=111 +DOT=112 +LBRACE=113 +RBRACE=114 +LBRACK=115 +RBRACK=116 +LPAREN=117 +RPAREN=118 +LT=119 +GT=120 +AMP=121 +EQUAL=122 +INTEGER=123 +JSON_NUMBER=124 +IDENTIFIER=125 +STRING_LITERAL=126 +LINE_COMMENT=127 +BLOCK_COMMENT=128 +WS=129 'workspace'=1 -'type'=2 -'object'=3 -'storable'=4 -'implements'=5 -'ref'=6 -'fragment'=7 -'import'=8 -'external'=9 -'atom'=10 -'interface'=11 -'interfaces'=12 -'package'=13 -'value'=14 -'relation'=15 -'operation'=16 -'function'=17 -'constructor'=18 -'constructs'=19 -'input'=20 -'conform'=21 -'as'=22 -'bind'=23 -'static'=24 -'to'=25 -'private'=26 -'shared'=27 -'state'=28 -'edge'=29 -'projection'=30 -'with'=31 -'using'=32 -'via'=33 -'materialize'=34 -'if'=35 -'absent'=36 -'on'=37 -'policy'=38 -'default'=39 -'source'=40 -'repository'=41 -'commit'=42 -'revision'=43 -'semantic-major'=44 -'on-delete'=45 -'retain-other'=46 -'keyed'=47 -'public-traversal'=48 -'id'=49 -'doc'=50 -'mode'=51 -'emits'=52 -'receiver'=53 -'requires'=54 -'any'=55 -'get'=56 -'set'=57 -'watch'=58 -'start'=59 -'stop'=60 -'read'=61 -'write'=62 -'resolve'=63 -'connect'=64 -'disconnect'=65 -'call'=66 -'watch-start'=67 -'watch-stop'=68 -'subscribe'=69 -'unsubscribe'=70 -'optimistic-register'=71 -'crdt'=72 -'optional-one'=73 -'exactly-one'=74 -'many-unique'=75 -'many'=76 -'ordered'=77 -'unit'=78 -'watch-handle'=79 -'message'=80 -'atom-ref'=81 -'interface-ref'=82 -'optional'=83 -'list'=84 -'record'=85 -'bool'=86 -'bytes'=87 -'double'=88 -'int32'=89 -'int64'=90 -'string'=91 -'uint32'=92 -'uint64'=93 -'true'=94 -'false'=95 -'null'=96 -'->'=97 -':'=98 -';'=99 -','=100 -'.'=101 -'{'=102 -'}'=103 -'['=104 -']'=105 -'('=106 -')'=107 -'<'=108 -'>'=109 -'&'=110 -'='=111 +'query'=2 +'root'=3 +'document'=4 +'fragments'=5 +'view'=6 +'max'=7 +'allow'=8 +'poll'=9 +'queryable'=10 +'rpc'=11 +'query-reason'=12 +'type'=13 +'object'=14 +'storable'=15 +'implements'=16 +'ref'=17 +'fragment'=18 +'import'=19 +'external'=20 +'atom'=21 +'interface'=22 +'interfaces'=23 +'package'=24 +'value'=25 +'relation'=26 +'operation'=27 +'function'=28 +'constructor'=29 +'constructs'=30 +'input'=31 +'conform'=32 +'as'=33 +'bind'=34 +'static'=35 +'to'=36 +'private'=37 +'shared'=38 +'state'=39 +'edge'=40 +'projection'=41 +'with'=42 +'using'=43 +'via'=44 +'materialize'=45 +'if'=46 +'absent'=47 +'on'=48 +'policy'=49 +'default'=50 +'source'=51 +'repository'=52 +'commit'=53 +'revision'=54 +'semantic-major'=55 +'on-delete'=56 +'retain-other'=57 +'keyed'=58 +'public-traversal'=59 +'id'=60 +'doc'=61 +'mode'=62 +'emits'=63 +'receiver'=64 +'requires'=65 +'any'=66 +'get'=67 +'set'=68 +'watch'=69 +'start'=70 +'stop'=71 +'read'=72 +'write'=73 +'resolve'=74 +'connect'=75 +'disconnect'=76 +'call'=77 +'watch-start'=78 +'watch-stop'=79 +'subscribe'=80 +'unsubscribe'=81 +'optimistic-register'=82 +'crdt'=83 +'optional-one'=84 +'exactly-one'=85 +'many-unique'=86 +'many'=87 +'ordered'=88 +'unit'=89 +'watch-handle'=90 +'message'=91 +'atom-ref'=92 +'interface-ref'=93 +'optional'=94 +'list'=95 +'record'=96 +'bool'=97 +'bytes'=98 +'double'=99 +'int32'=100 +'int64'=101 +'string'=102 +'uint32'=103 +'uint64'=104 +'true'=105 +'false'=106 +'null'=107 +'->'=108 +':'=109 +';'=110 +','=111 +'.'=112 +'{'=113 +'}'=114 +'['=115 +']'=116 +'('=117 +')'=118 +'<'=119 +'>'=120 +'&'=121 +'='=122 diff --git a/src/capability-language/generated/QuixosCapabilityLexer.interp b/src/capability-language/generated/QuixosCapabilityLexer.interp index d67bca1..b6aa8a4 100644 --- a/src/capability-language/generated/QuixosCapabilityLexer.interp +++ b/src/capability-language/generated/QuixosCapabilityLexer.interp @@ -1,6 +1,17 @@ token literal names: null 'workspace' +'query' +'root' +'document' +'fragments' +'view' +'max' +'allow' +'poll' +'queryable' +'rpc' +'query-reason' 'type' 'object' 'storable' @@ -122,6 +133,17 @@ null token symbolic names: null WORKSPACE +QUERY +ROOT +DOCUMENT +FRAGMENTS +VIEW +MAX +ALLOW +POLL +QUERYABLE +RPC +QUERY_REASON TYPE OBJECT STORABLE @@ -242,6 +264,17 @@ WS rule names: WORKSPACE +QUERY +ROOT +DOCUMENT +FRAGMENTS +VIEW +MAX +ALLOW +POLL +QUERYABLE +RPC +QUERY_REASON TYPE OBJECT STORABLE @@ -370,4 +403,4 @@ mode names: DEFAULT_MODE atn: -[4, 0, 118, 1119, 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, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 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, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 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, 18, 1, 18, 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, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 26, 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, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 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, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 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, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 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, 56, 1, 56, 1, 56, 1, 56, 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, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 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, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 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, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 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, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 96, 1, 96, 1, 96, 1, 97, 1, 97, 1, 98, 1, 98, 1, 99, 1, 99, 1, 100, 1, 100, 1, 101, 1, 101, 1, 102, 1, 102, 1, 103, 1, 103, 1, 104, 1, 104, 1, 105, 1, 105, 1, 106, 1, 106, 1, 107, 1, 107, 1, 108, 1, 108, 1, 109, 1, 109, 1, 110, 1, 110, 1, 111, 3, 111, 1020, 8, 111, 1, 111, 4, 111, 1023, 8, 111, 11, 111, 12, 111, 1024, 1, 112, 3, 112, 1028, 8, 112, 1, 112, 1, 112, 1, 112, 5, 112, 1033, 8, 112, 10, 112, 12, 112, 1036, 9, 112, 3, 112, 1038, 8, 112, 1, 112, 1, 112, 4, 112, 1042, 8, 112, 11, 112, 12, 112, 1043, 3, 112, 1046, 8, 112, 1, 112, 1, 112, 3, 112, 1050, 8, 112, 1, 112, 4, 112, 1053, 8, 112, 11, 112, 12, 112, 1054, 3, 112, 1057, 8, 112, 1, 113, 1, 113, 5, 113, 1061, 8, 113, 10, 113, 12, 113, 1064, 9, 113, 1, 114, 1, 114, 1, 114, 5, 114, 1069, 8, 114, 10, 114, 12, 114, 1072, 9, 114, 1, 114, 1, 114, 1, 115, 1, 115, 1, 115, 1, 115, 1, 115, 1, 115, 1, 115, 1, 115, 3, 115, 1084, 8, 115, 1, 116, 1, 116, 1, 117, 1, 117, 1, 117, 1, 117, 5, 117, 1092, 8, 117, 10, 117, 12, 117, 1095, 9, 117, 1, 117, 1, 117, 1, 118, 1, 118, 1, 118, 1, 118, 5, 118, 1103, 8, 118, 10, 118, 12, 118, 1106, 9, 118, 1, 118, 1, 118, 1, 118, 1, 118, 1, 118, 1, 119, 4, 119, 1114, 8, 119, 11, 119, 12, 119, 1115, 1, 119, 1, 119, 1, 1104, 0, 120, 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, 104, 209, 105, 211, 106, 213, 107, 215, 108, 217, 109, 219, 110, 221, 111, 223, 112, 225, 113, 227, 114, 229, 115, 231, 0, 233, 0, 235, 116, 237, 117, 239, 118, 1, 0, 11, 1, 0, 48, 57, 1, 0, 49, 57, 2, 0, 69, 69, 101, 101, 2, 0, 43, 43, 45, 45, 3, 0, 65, 90, 95, 95, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 4, 0, 10, 10, 13, 13, 34, 34, 92, 92, 8, 0, 34, 34, 47, 47, 92, 92, 98, 98, 102, 102, 110, 110, 114, 114, 116, 116, 3, 0, 48, 57, 65, 70, 97, 102, 2, 0, 10, 10, 13, 13, 3, 0, 9, 10, 13, 13, 32, 32, 1133, 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, 207, 1, 0, 0, 0, 0, 209, 1, 0, 0, 0, 0, 211, 1, 0, 0, 0, 0, 213, 1, 0, 0, 0, 0, 215, 1, 0, 0, 0, 0, 217, 1, 0, 0, 0, 0, 219, 1, 0, 0, 0, 0, 221, 1, 0, 0, 0, 0, 223, 1, 0, 0, 0, 0, 225, 1, 0, 0, 0, 0, 227, 1, 0, 0, 0, 0, 229, 1, 0, 0, 0, 0, 235, 1, 0, 0, 0, 0, 237, 1, 0, 0, 0, 0, 239, 1, 0, 0, 0, 1, 241, 1, 0, 0, 0, 3, 251, 1, 0, 0, 0, 5, 256, 1, 0, 0, 0, 7, 263, 1, 0, 0, 0, 9, 272, 1, 0, 0, 0, 11, 283, 1, 0, 0, 0, 13, 287, 1, 0, 0, 0, 15, 296, 1, 0, 0, 0, 17, 303, 1, 0, 0, 0, 19, 312, 1, 0, 0, 0, 21, 317, 1, 0, 0, 0, 23, 327, 1, 0, 0, 0, 25, 338, 1, 0, 0, 0, 27, 346, 1, 0, 0, 0, 29, 352, 1, 0, 0, 0, 31, 361, 1, 0, 0, 0, 33, 371, 1, 0, 0, 0, 35, 380, 1, 0, 0, 0, 37, 392, 1, 0, 0, 0, 39, 403, 1, 0, 0, 0, 41, 409, 1, 0, 0, 0, 43, 417, 1, 0, 0, 0, 45, 420, 1, 0, 0, 0, 47, 425, 1, 0, 0, 0, 49, 432, 1, 0, 0, 0, 51, 435, 1, 0, 0, 0, 53, 443, 1, 0, 0, 0, 55, 450, 1, 0, 0, 0, 57, 456, 1, 0, 0, 0, 59, 461, 1, 0, 0, 0, 61, 472, 1, 0, 0, 0, 63, 477, 1, 0, 0, 0, 65, 483, 1, 0, 0, 0, 67, 487, 1, 0, 0, 0, 69, 499, 1, 0, 0, 0, 71, 502, 1, 0, 0, 0, 73, 509, 1, 0, 0, 0, 75, 512, 1, 0, 0, 0, 77, 519, 1, 0, 0, 0, 79, 527, 1, 0, 0, 0, 81, 534, 1, 0, 0, 0, 83, 545, 1, 0, 0, 0, 85, 552, 1, 0, 0, 0, 87, 561, 1, 0, 0, 0, 89, 576, 1, 0, 0, 0, 91, 586, 1, 0, 0, 0, 93, 599, 1, 0, 0, 0, 95, 605, 1, 0, 0, 0, 97, 622, 1, 0, 0, 0, 99, 625, 1, 0, 0, 0, 101, 629, 1, 0, 0, 0, 103, 634, 1, 0, 0, 0, 105, 640, 1, 0, 0, 0, 107, 649, 1, 0, 0, 0, 109, 658, 1, 0, 0, 0, 111, 662, 1, 0, 0, 0, 113, 666, 1, 0, 0, 0, 115, 670, 1, 0, 0, 0, 117, 676, 1, 0, 0, 0, 119, 682, 1, 0, 0, 0, 121, 687, 1, 0, 0, 0, 123, 692, 1, 0, 0, 0, 125, 698, 1, 0, 0, 0, 127, 706, 1, 0, 0, 0, 129, 714, 1, 0, 0, 0, 131, 725, 1, 0, 0, 0, 133, 730, 1, 0, 0, 0, 135, 742, 1, 0, 0, 0, 137, 753, 1, 0, 0, 0, 139, 763, 1, 0, 0, 0, 141, 775, 1, 0, 0, 0, 143, 795, 1, 0, 0, 0, 145, 800, 1, 0, 0, 0, 147, 813, 1, 0, 0, 0, 149, 825, 1, 0, 0, 0, 151, 837, 1, 0, 0, 0, 153, 842, 1, 0, 0, 0, 155, 850, 1, 0, 0, 0, 157, 855, 1, 0, 0, 0, 159, 868, 1, 0, 0, 0, 161, 876, 1, 0, 0, 0, 163, 885, 1, 0, 0, 0, 165, 899, 1, 0, 0, 0, 167, 908, 1, 0, 0, 0, 169, 913, 1, 0, 0, 0, 171, 920, 1, 0, 0, 0, 173, 925, 1, 0, 0, 0, 175, 931, 1, 0, 0, 0, 177, 938, 1, 0, 0, 0, 179, 944, 1, 0, 0, 0, 181, 950, 1, 0, 0, 0, 183, 957, 1, 0, 0, 0, 185, 964, 1, 0, 0, 0, 187, 971, 1, 0, 0, 0, 189, 976, 1, 0, 0, 0, 191, 982, 1, 0, 0, 0, 193, 987, 1, 0, 0, 0, 195, 990, 1, 0, 0, 0, 197, 992, 1, 0, 0, 0, 199, 994, 1, 0, 0, 0, 201, 996, 1, 0, 0, 0, 203, 998, 1, 0, 0, 0, 205, 1000, 1, 0, 0, 0, 207, 1002, 1, 0, 0, 0, 209, 1004, 1, 0, 0, 0, 211, 1006, 1, 0, 0, 0, 213, 1008, 1, 0, 0, 0, 215, 1010, 1, 0, 0, 0, 217, 1012, 1, 0, 0, 0, 219, 1014, 1, 0, 0, 0, 221, 1016, 1, 0, 0, 0, 223, 1019, 1, 0, 0, 0, 225, 1027, 1, 0, 0, 0, 227, 1058, 1, 0, 0, 0, 229, 1065, 1, 0, 0, 0, 231, 1075, 1, 0, 0, 0, 233, 1085, 1, 0, 0, 0, 235, 1087, 1, 0, 0, 0, 237, 1098, 1, 0, 0, 0, 239, 1113, 1, 0, 0, 0, 241, 242, 5, 119, 0, 0, 242, 243, 5, 111, 0, 0, 243, 244, 5, 114, 0, 0, 244, 245, 5, 107, 0, 0, 245, 246, 5, 115, 0, 0, 246, 247, 5, 112, 0, 0, 247, 248, 5, 97, 0, 0, 248, 249, 5, 99, 0, 0, 249, 250, 5, 101, 0, 0, 250, 2, 1, 0, 0, 0, 251, 252, 5, 116, 0, 0, 252, 253, 5, 121, 0, 0, 253, 254, 5, 112, 0, 0, 254, 255, 5, 101, 0, 0, 255, 4, 1, 0, 0, 0, 256, 257, 5, 111, 0, 0, 257, 258, 5, 98, 0, 0, 258, 259, 5, 106, 0, 0, 259, 260, 5, 101, 0, 0, 260, 261, 5, 99, 0, 0, 261, 262, 5, 116, 0, 0, 262, 6, 1, 0, 0, 0, 263, 264, 5, 115, 0, 0, 264, 265, 5, 116, 0, 0, 265, 266, 5, 111, 0, 0, 266, 267, 5, 114, 0, 0, 267, 268, 5, 97, 0, 0, 268, 269, 5, 98, 0, 0, 269, 270, 5, 108, 0, 0, 270, 271, 5, 101, 0, 0, 271, 8, 1, 0, 0, 0, 272, 273, 5, 105, 0, 0, 273, 274, 5, 109, 0, 0, 274, 275, 5, 112, 0, 0, 275, 276, 5, 108, 0, 0, 276, 277, 5, 101, 0, 0, 277, 278, 5, 109, 0, 0, 278, 279, 5, 101, 0, 0, 279, 280, 5, 110, 0, 0, 280, 281, 5, 116, 0, 0, 281, 282, 5, 115, 0, 0, 282, 10, 1, 0, 0, 0, 283, 284, 5, 114, 0, 0, 284, 285, 5, 101, 0, 0, 285, 286, 5, 102, 0, 0, 286, 12, 1, 0, 0, 0, 287, 288, 5, 102, 0, 0, 288, 289, 5, 114, 0, 0, 289, 290, 5, 97, 0, 0, 290, 291, 5, 103, 0, 0, 291, 292, 5, 109, 0, 0, 292, 293, 5, 101, 0, 0, 293, 294, 5, 110, 0, 0, 294, 295, 5, 116, 0, 0, 295, 14, 1, 0, 0, 0, 296, 297, 5, 105, 0, 0, 297, 298, 5, 109, 0, 0, 298, 299, 5, 112, 0, 0, 299, 300, 5, 111, 0, 0, 300, 301, 5, 114, 0, 0, 301, 302, 5, 116, 0, 0, 302, 16, 1, 0, 0, 0, 303, 304, 5, 101, 0, 0, 304, 305, 5, 120, 0, 0, 305, 306, 5, 116, 0, 0, 306, 307, 5, 101, 0, 0, 307, 308, 5, 114, 0, 0, 308, 309, 5, 110, 0, 0, 309, 310, 5, 97, 0, 0, 310, 311, 5, 108, 0, 0, 311, 18, 1, 0, 0, 0, 312, 313, 5, 97, 0, 0, 313, 314, 5, 116, 0, 0, 314, 315, 5, 111, 0, 0, 315, 316, 5, 109, 0, 0, 316, 20, 1, 0, 0, 0, 317, 318, 5, 105, 0, 0, 318, 319, 5, 110, 0, 0, 319, 320, 5, 116, 0, 0, 320, 321, 5, 101, 0, 0, 321, 322, 5, 114, 0, 0, 322, 323, 5, 102, 0, 0, 323, 324, 5, 97, 0, 0, 324, 325, 5, 99, 0, 0, 325, 326, 5, 101, 0, 0, 326, 22, 1, 0, 0, 0, 327, 328, 5, 105, 0, 0, 328, 329, 5, 110, 0, 0, 329, 330, 5, 116, 0, 0, 330, 331, 5, 101, 0, 0, 331, 332, 5, 114, 0, 0, 332, 333, 5, 102, 0, 0, 333, 334, 5, 97, 0, 0, 334, 335, 5, 99, 0, 0, 335, 336, 5, 101, 0, 0, 336, 337, 5, 115, 0, 0, 337, 24, 1, 0, 0, 0, 338, 339, 5, 112, 0, 0, 339, 340, 5, 97, 0, 0, 340, 341, 5, 99, 0, 0, 341, 342, 5, 107, 0, 0, 342, 343, 5, 97, 0, 0, 343, 344, 5, 103, 0, 0, 344, 345, 5, 101, 0, 0, 345, 26, 1, 0, 0, 0, 346, 347, 5, 118, 0, 0, 347, 348, 5, 97, 0, 0, 348, 349, 5, 108, 0, 0, 349, 350, 5, 117, 0, 0, 350, 351, 5, 101, 0, 0, 351, 28, 1, 0, 0, 0, 352, 353, 5, 114, 0, 0, 353, 354, 5, 101, 0, 0, 354, 355, 5, 108, 0, 0, 355, 356, 5, 97, 0, 0, 356, 357, 5, 116, 0, 0, 357, 358, 5, 105, 0, 0, 358, 359, 5, 111, 0, 0, 359, 360, 5, 110, 0, 0, 360, 30, 1, 0, 0, 0, 361, 362, 5, 111, 0, 0, 362, 363, 5, 112, 0, 0, 363, 364, 5, 101, 0, 0, 364, 365, 5, 114, 0, 0, 365, 366, 5, 97, 0, 0, 366, 367, 5, 116, 0, 0, 367, 368, 5, 105, 0, 0, 368, 369, 5, 111, 0, 0, 369, 370, 5, 110, 0, 0, 370, 32, 1, 0, 0, 0, 371, 372, 5, 102, 0, 0, 372, 373, 5, 117, 0, 0, 373, 374, 5, 110, 0, 0, 374, 375, 5, 99, 0, 0, 375, 376, 5, 116, 0, 0, 376, 377, 5, 105, 0, 0, 377, 378, 5, 111, 0, 0, 378, 379, 5, 110, 0, 0, 379, 34, 1, 0, 0, 0, 380, 381, 5, 99, 0, 0, 381, 382, 5, 111, 0, 0, 382, 383, 5, 110, 0, 0, 383, 384, 5, 115, 0, 0, 384, 385, 5, 116, 0, 0, 385, 386, 5, 114, 0, 0, 386, 387, 5, 117, 0, 0, 387, 388, 5, 99, 0, 0, 388, 389, 5, 116, 0, 0, 389, 390, 5, 111, 0, 0, 390, 391, 5, 114, 0, 0, 391, 36, 1, 0, 0, 0, 392, 393, 5, 99, 0, 0, 393, 394, 5, 111, 0, 0, 394, 395, 5, 110, 0, 0, 395, 396, 5, 115, 0, 0, 396, 397, 5, 116, 0, 0, 397, 398, 5, 114, 0, 0, 398, 399, 5, 117, 0, 0, 399, 400, 5, 99, 0, 0, 400, 401, 5, 116, 0, 0, 401, 402, 5, 115, 0, 0, 402, 38, 1, 0, 0, 0, 403, 404, 5, 105, 0, 0, 404, 405, 5, 110, 0, 0, 405, 406, 5, 112, 0, 0, 406, 407, 5, 117, 0, 0, 407, 408, 5, 116, 0, 0, 408, 40, 1, 0, 0, 0, 409, 410, 5, 99, 0, 0, 410, 411, 5, 111, 0, 0, 411, 412, 5, 110, 0, 0, 412, 413, 5, 102, 0, 0, 413, 414, 5, 111, 0, 0, 414, 415, 5, 114, 0, 0, 415, 416, 5, 109, 0, 0, 416, 42, 1, 0, 0, 0, 417, 418, 5, 97, 0, 0, 418, 419, 5, 115, 0, 0, 419, 44, 1, 0, 0, 0, 420, 421, 5, 98, 0, 0, 421, 422, 5, 105, 0, 0, 422, 423, 5, 110, 0, 0, 423, 424, 5, 100, 0, 0, 424, 46, 1, 0, 0, 0, 425, 426, 5, 115, 0, 0, 426, 427, 5, 116, 0, 0, 427, 428, 5, 97, 0, 0, 428, 429, 5, 116, 0, 0, 429, 430, 5, 105, 0, 0, 430, 431, 5, 99, 0, 0, 431, 48, 1, 0, 0, 0, 432, 433, 5, 116, 0, 0, 433, 434, 5, 111, 0, 0, 434, 50, 1, 0, 0, 0, 435, 436, 5, 112, 0, 0, 436, 437, 5, 114, 0, 0, 437, 438, 5, 105, 0, 0, 438, 439, 5, 118, 0, 0, 439, 440, 5, 97, 0, 0, 440, 441, 5, 116, 0, 0, 441, 442, 5, 101, 0, 0, 442, 52, 1, 0, 0, 0, 443, 444, 5, 115, 0, 0, 444, 445, 5, 104, 0, 0, 445, 446, 5, 97, 0, 0, 446, 447, 5, 114, 0, 0, 447, 448, 5, 101, 0, 0, 448, 449, 5, 100, 0, 0, 449, 54, 1, 0, 0, 0, 450, 451, 5, 115, 0, 0, 451, 452, 5, 116, 0, 0, 452, 453, 5, 97, 0, 0, 453, 454, 5, 116, 0, 0, 454, 455, 5, 101, 0, 0, 455, 56, 1, 0, 0, 0, 456, 457, 5, 101, 0, 0, 457, 458, 5, 100, 0, 0, 458, 459, 5, 103, 0, 0, 459, 460, 5, 101, 0, 0, 460, 58, 1, 0, 0, 0, 461, 462, 5, 112, 0, 0, 462, 463, 5, 114, 0, 0, 463, 464, 5, 111, 0, 0, 464, 465, 5, 106, 0, 0, 465, 466, 5, 101, 0, 0, 466, 467, 5, 99, 0, 0, 467, 468, 5, 116, 0, 0, 468, 469, 5, 105, 0, 0, 469, 470, 5, 111, 0, 0, 470, 471, 5, 110, 0, 0, 471, 60, 1, 0, 0, 0, 472, 473, 5, 119, 0, 0, 473, 474, 5, 105, 0, 0, 474, 475, 5, 116, 0, 0, 475, 476, 5, 104, 0, 0, 476, 62, 1, 0, 0, 0, 477, 478, 5, 117, 0, 0, 478, 479, 5, 115, 0, 0, 479, 480, 5, 105, 0, 0, 480, 481, 5, 110, 0, 0, 481, 482, 5, 103, 0, 0, 482, 64, 1, 0, 0, 0, 483, 484, 5, 118, 0, 0, 484, 485, 5, 105, 0, 0, 485, 486, 5, 97, 0, 0, 486, 66, 1, 0, 0, 0, 487, 488, 5, 109, 0, 0, 488, 489, 5, 97, 0, 0, 489, 490, 5, 116, 0, 0, 490, 491, 5, 101, 0, 0, 491, 492, 5, 114, 0, 0, 492, 493, 5, 105, 0, 0, 493, 494, 5, 97, 0, 0, 494, 495, 5, 108, 0, 0, 495, 496, 5, 105, 0, 0, 496, 497, 5, 122, 0, 0, 497, 498, 5, 101, 0, 0, 498, 68, 1, 0, 0, 0, 499, 500, 5, 105, 0, 0, 500, 501, 5, 102, 0, 0, 501, 70, 1, 0, 0, 0, 502, 503, 5, 97, 0, 0, 503, 504, 5, 98, 0, 0, 504, 505, 5, 115, 0, 0, 505, 506, 5, 101, 0, 0, 506, 507, 5, 110, 0, 0, 507, 508, 5, 116, 0, 0, 508, 72, 1, 0, 0, 0, 509, 510, 5, 111, 0, 0, 510, 511, 5, 110, 0, 0, 511, 74, 1, 0, 0, 0, 512, 513, 5, 112, 0, 0, 513, 514, 5, 111, 0, 0, 514, 515, 5, 108, 0, 0, 515, 516, 5, 105, 0, 0, 516, 517, 5, 99, 0, 0, 517, 518, 5, 121, 0, 0, 518, 76, 1, 0, 0, 0, 519, 520, 5, 100, 0, 0, 520, 521, 5, 101, 0, 0, 521, 522, 5, 102, 0, 0, 522, 523, 5, 97, 0, 0, 523, 524, 5, 117, 0, 0, 524, 525, 5, 108, 0, 0, 525, 526, 5, 116, 0, 0, 526, 78, 1, 0, 0, 0, 527, 528, 5, 115, 0, 0, 528, 529, 5, 111, 0, 0, 529, 530, 5, 117, 0, 0, 530, 531, 5, 114, 0, 0, 531, 532, 5, 99, 0, 0, 532, 533, 5, 101, 0, 0, 533, 80, 1, 0, 0, 0, 534, 535, 5, 114, 0, 0, 535, 536, 5, 101, 0, 0, 536, 537, 5, 112, 0, 0, 537, 538, 5, 111, 0, 0, 538, 539, 5, 115, 0, 0, 539, 540, 5, 105, 0, 0, 540, 541, 5, 116, 0, 0, 541, 542, 5, 111, 0, 0, 542, 543, 5, 114, 0, 0, 543, 544, 5, 121, 0, 0, 544, 82, 1, 0, 0, 0, 545, 546, 5, 99, 0, 0, 546, 547, 5, 111, 0, 0, 547, 548, 5, 109, 0, 0, 548, 549, 5, 109, 0, 0, 549, 550, 5, 105, 0, 0, 550, 551, 5, 116, 0, 0, 551, 84, 1, 0, 0, 0, 552, 553, 5, 114, 0, 0, 553, 554, 5, 101, 0, 0, 554, 555, 5, 118, 0, 0, 555, 556, 5, 105, 0, 0, 556, 557, 5, 115, 0, 0, 557, 558, 5, 105, 0, 0, 558, 559, 5, 111, 0, 0, 559, 560, 5, 110, 0, 0, 560, 86, 1, 0, 0, 0, 561, 562, 5, 115, 0, 0, 562, 563, 5, 101, 0, 0, 563, 564, 5, 109, 0, 0, 564, 565, 5, 97, 0, 0, 565, 566, 5, 110, 0, 0, 566, 567, 5, 116, 0, 0, 567, 568, 5, 105, 0, 0, 568, 569, 5, 99, 0, 0, 569, 570, 5, 45, 0, 0, 570, 571, 5, 109, 0, 0, 571, 572, 5, 97, 0, 0, 572, 573, 5, 106, 0, 0, 573, 574, 5, 111, 0, 0, 574, 575, 5, 114, 0, 0, 575, 88, 1, 0, 0, 0, 576, 577, 5, 111, 0, 0, 577, 578, 5, 110, 0, 0, 578, 579, 5, 45, 0, 0, 579, 580, 5, 100, 0, 0, 580, 581, 5, 101, 0, 0, 581, 582, 5, 108, 0, 0, 582, 583, 5, 101, 0, 0, 583, 584, 5, 116, 0, 0, 584, 585, 5, 101, 0, 0, 585, 90, 1, 0, 0, 0, 586, 587, 5, 114, 0, 0, 587, 588, 5, 101, 0, 0, 588, 589, 5, 116, 0, 0, 589, 590, 5, 97, 0, 0, 590, 591, 5, 105, 0, 0, 591, 592, 5, 110, 0, 0, 592, 593, 5, 45, 0, 0, 593, 594, 5, 111, 0, 0, 594, 595, 5, 116, 0, 0, 595, 596, 5, 104, 0, 0, 596, 597, 5, 101, 0, 0, 597, 598, 5, 114, 0, 0, 598, 92, 1, 0, 0, 0, 599, 600, 5, 107, 0, 0, 600, 601, 5, 101, 0, 0, 601, 602, 5, 121, 0, 0, 602, 603, 5, 101, 0, 0, 603, 604, 5, 100, 0, 0, 604, 94, 1, 0, 0, 0, 605, 606, 5, 112, 0, 0, 606, 607, 5, 117, 0, 0, 607, 608, 5, 98, 0, 0, 608, 609, 5, 108, 0, 0, 609, 610, 5, 105, 0, 0, 610, 611, 5, 99, 0, 0, 611, 612, 5, 45, 0, 0, 612, 613, 5, 116, 0, 0, 613, 614, 5, 114, 0, 0, 614, 615, 5, 97, 0, 0, 615, 616, 5, 118, 0, 0, 616, 617, 5, 101, 0, 0, 617, 618, 5, 114, 0, 0, 618, 619, 5, 115, 0, 0, 619, 620, 5, 97, 0, 0, 620, 621, 5, 108, 0, 0, 621, 96, 1, 0, 0, 0, 622, 623, 5, 105, 0, 0, 623, 624, 5, 100, 0, 0, 624, 98, 1, 0, 0, 0, 625, 626, 5, 100, 0, 0, 626, 627, 5, 111, 0, 0, 627, 628, 5, 99, 0, 0, 628, 100, 1, 0, 0, 0, 629, 630, 5, 109, 0, 0, 630, 631, 5, 111, 0, 0, 631, 632, 5, 100, 0, 0, 632, 633, 5, 101, 0, 0, 633, 102, 1, 0, 0, 0, 634, 635, 5, 101, 0, 0, 635, 636, 5, 109, 0, 0, 636, 637, 5, 105, 0, 0, 637, 638, 5, 116, 0, 0, 638, 639, 5, 115, 0, 0, 639, 104, 1, 0, 0, 0, 640, 641, 5, 114, 0, 0, 641, 642, 5, 101, 0, 0, 642, 643, 5, 99, 0, 0, 643, 644, 5, 101, 0, 0, 644, 645, 5, 105, 0, 0, 645, 646, 5, 118, 0, 0, 646, 647, 5, 101, 0, 0, 647, 648, 5, 114, 0, 0, 648, 106, 1, 0, 0, 0, 649, 650, 5, 114, 0, 0, 650, 651, 5, 101, 0, 0, 651, 652, 5, 113, 0, 0, 652, 653, 5, 117, 0, 0, 653, 654, 5, 105, 0, 0, 654, 655, 5, 114, 0, 0, 655, 656, 5, 101, 0, 0, 656, 657, 5, 115, 0, 0, 657, 108, 1, 0, 0, 0, 658, 659, 5, 97, 0, 0, 659, 660, 5, 110, 0, 0, 660, 661, 5, 121, 0, 0, 661, 110, 1, 0, 0, 0, 662, 663, 5, 103, 0, 0, 663, 664, 5, 101, 0, 0, 664, 665, 5, 116, 0, 0, 665, 112, 1, 0, 0, 0, 666, 667, 5, 115, 0, 0, 667, 668, 5, 101, 0, 0, 668, 669, 5, 116, 0, 0, 669, 114, 1, 0, 0, 0, 670, 671, 5, 119, 0, 0, 671, 672, 5, 97, 0, 0, 672, 673, 5, 116, 0, 0, 673, 674, 5, 99, 0, 0, 674, 675, 5, 104, 0, 0, 675, 116, 1, 0, 0, 0, 676, 677, 5, 115, 0, 0, 677, 678, 5, 116, 0, 0, 678, 679, 5, 97, 0, 0, 679, 680, 5, 114, 0, 0, 680, 681, 5, 116, 0, 0, 681, 118, 1, 0, 0, 0, 682, 683, 5, 115, 0, 0, 683, 684, 5, 116, 0, 0, 684, 685, 5, 111, 0, 0, 685, 686, 5, 112, 0, 0, 686, 120, 1, 0, 0, 0, 687, 688, 5, 114, 0, 0, 688, 689, 5, 101, 0, 0, 689, 690, 5, 97, 0, 0, 690, 691, 5, 100, 0, 0, 691, 122, 1, 0, 0, 0, 692, 693, 5, 119, 0, 0, 693, 694, 5, 114, 0, 0, 694, 695, 5, 105, 0, 0, 695, 696, 5, 116, 0, 0, 696, 697, 5, 101, 0, 0, 697, 124, 1, 0, 0, 0, 698, 699, 5, 114, 0, 0, 699, 700, 5, 101, 0, 0, 700, 701, 5, 115, 0, 0, 701, 702, 5, 111, 0, 0, 702, 703, 5, 108, 0, 0, 703, 704, 5, 118, 0, 0, 704, 705, 5, 101, 0, 0, 705, 126, 1, 0, 0, 0, 706, 707, 5, 99, 0, 0, 707, 708, 5, 111, 0, 0, 708, 709, 5, 110, 0, 0, 709, 710, 5, 110, 0, 0, 710, 711, 5, 101, 0, 0, 711, 712, 5, 99, 0, 0, 712, 713, 5, 116, 0, 0, 713, 128, 1, 0, 0, 0, 714, 715, 5, 100, 0, 0, 715, 716, 5, 105, 0, 0, 716, 717, 5, 115, 0, 0, 717, 718, 5, 99, 0, 0, 718, 719, 5, 111, 0, 0, 719, 720, 5, 110, 0, 0, 720, 721, 5, 110, 0, 0, 721, 722, 5, 101, 0, 0, 722, 723, 5, 99, 0, 0, 723, 724, 5, 116, 0, 0, 724, 130, 1, 0, 0, 0, 725, 726, 5, 99, 0, 0, 726, 727, 5, 97, 0, 0, 727, 728, 5, 108, 0, 0, 728, 729, 5, 108, 0, 0, 729, 132, 1, 0, 0, 0, 730, 731, 5, 119, 0, 0, 731, 732, 5, 97, 0, 0, 732, 733, 5, 116, 0, 0, 733, 734, 5, 99, 0, 0, 734, 735, 5, 104, 0, 0, 735, 736, 5, 45, 0, 0, 736, 737, 5, 115, 0, 0, 737, 738, 5, 116, 0, 0, 738, 739, 5, 97, 0, 0, 739, 740, 5, 114, 0, 0, 740, 741, 5, 116, 0, 0, 741, 134, 1, 0, 0, 0, 742, 743, 5, 119, 0, 0, 743, 744, 5, 97, 0, 0, 744, 745, 5, 116, 0, 0, 745, 746, 5, 99, 0, 0, 746, 747, 5, 104, 0, 0, 747, 748, 5, 45, 0, 0, 748, 749, 5, 115, 0, 0, 749, 750, 5, 116, 0, 0, 750, 751, 5, 111, 0, 0, 751, 752, 5, 112, 0, 0, 752, 136, 1, 0, 0, 0, 753, 754, 5, 115, 0, 0, 754, 755, 5, 117, 0, 0, 755, 756, 5, 98, 0, 0, 756, 757, 5, 115, 0, 0, 757, 758, 5, 99, 0, 0, 758, 759, 5, 114, 0, 0, 759, 760, 5, 105, 0, 0, 760, 761, 5, 98, 0, 0, 761, 762, 5, 101, 0, 0, 762, 138, 1, 0, 0, 0, 763, 764, 5, 117, 0, 0, 764, 765, 5, 110, 0, 0, 765, 766, 5, 115, 0, 0, 766, 767, 5, 117, 0, 0, 767, 768, 5, 98, 0, 0, 768, 769, 5, 115, 0, 0, 769, 770, 5, 99, 0, 0, 770, 771, 5, 114, 0, 0, 771, 772, 5, 105, 0, 0, 772, 773, 5, 98, 0, 0, 773, 774, 5, 101, 0, 0, 774, 140, 1, 0, 0, 0, 775, 776, 5, 111, 0, 0, 776, 777, 5, 112, 0, 0, 777, 778, 5, 116, 0, 0, 778, 779, 5, 105, 0, 0, 779, 780, 5, 109, 0, 0, 780, 781, 5, 105, 0, 0, 781, 782, 5, 115, 0, 0, 782, 783, 5, 116, 0, 0, 783, 784, 5, 105, 0, 0, 784, 785, 5, 99, 0, 0, 785, 786, 5, 45, 0, 0, 786, 787, 5, 114, 0, 0, 787, 788, 5, 101, 0, 0, 788, 789, 5, 103, 0, 0, 789, 790, 5, 105, 0, 0, 790, 791, 5, 115, 0, 0, 791, 792, 5, 116, 0, 0, 792, 793, 5, 101, 0, 0, 793, 794, 5, 114, 0, 0, 794, 142, 1, 0, 0, 0, 795, 796, 5, 99, 0, 0, 796, 797, 5, 114, 0, 0, 797, 798, 5, 100, 0, 0, 798, 799, 5, 116, 0, 0, 799, 144, 1, 0, 0, 0, 800, 801, 5, 111, 0, 0, 801, 802, 5, 112, 0, 0, 802, 803, 5, 116, 0, 0, 803, 804, 5, 105, 0, 0, 804, 805, 5, 111, 0, 0, 805, 806, 5, 110, 0, 0, 806, 807, 5, 97, 0, 0, 807, 808, 5, 108, 0, 0, 808, 809, 5, 45, 0, 0, 809, 810, 5, 111, 0, 0, 810, 811, 5, 110, 0, 0, 811, 812, 5, 101, 0, 0, 812, 146, 1, 0, 0, 0, 813, 814, 5, 101, 0, 0, 814, 815, 5, 120, 0, 0, 815, 816, 5, 97, 0, 0, 816, 817, 5, 99, 0, 0, 817, 818, 5, 116, 0, 0, 818, 819, 5, 108, 0, 0, 819, 820, 5, 121, 0, 0, 820, 821, 5, 45, 0, 0, 821, 822, 5, 111, 0, 0, 822, 823, 5, 110, 0, 0, 823, 824, 5, 101, 0, 0, 824, 148, 1, 0, 0, 0, 825, 826, 5, 109, 0, 0, 826, 827, 5, 97, 0, 0, 827, 828, 5, 110, 0, 0, 828, 829, 5, 121, 0, 0, 829, 830, 5, 45, 0, 0, 830, 831, 5, 117, 0, 0, 831, 832, 5, 110, 0, 0, 832, 833, 5, 105, 0, 0, 833, 834, 5, 113, 0, 0, 834, 835, 5, 117, 0, 0, 835, 836, 5, 101, 0, 0, 836, 150, 1, 0, 0, 0, 837, 838, 5, 109, 0, 0, 838, 839, 5, 97, 0, 0, 839, 840, 5, 110, 0, 0, 840, 841, 5, 121, 0, 0, 841, 152, 1, 0, 0, 0, 842, 843, 5, 111, 0, 0, 843, 844, 5, 114, 0, 0, 844, 845, 5, 100, 0, 0, 845, 846, 5, 101, 0, 0, 846, 847, 5, 114, 0, 0, 847, 848, 5, 101, 0, 0, 848, 849, 5, 100, 0, 0, 849, 154, 1, 0, 0, 0, 850, 851, 5, 117, 0, 0, 851, 852, 5, 110, 0, 0, 852, 853, 5, 105, 0, 0, 853, 854, 5, 116, 0, 0, 854, 156, 1, 0, 0, 0, 855, 856, 5, 119, 0, 0, 856, 857, 5, 97, 0, 0, 857, 858, 5, 116, 0, 0, 858, 859, 5, 99, 0, 0, 859, 860, 5, 104, 0, 0, 860, 861, 5, 45, 0, 0, 861, 862, 5, 104, 0, 0, 862, 863, 5, 97, 0, 0, 863, 864, 5, 110, 0, 0, 864, 865, 5, 100, 0, 0, 865, 866, 5, 108, 0, 0, 866, 867, 5, 101, 0, 0, 867, 158, 1, 0, 0, 0, 868, 869, 5, 109, 0, 0, 869, 870, 5, 101, 0, 0, 870, 871, 5, 115, 0, 0, 871, 872, 5, 115, 0, 0, 872, 873, 5, 97, 0, 0, 873, 874, 5, 103, 0, 0, 874, 875, 5, 101, 0, 0, 875, 160, 1, 0, 0, 0, 876, 877, 5, 97, 0, 0, 877, 878, 5, 116, 0, 0, 878, 879, 5, 111, 0, 0, 879, 880, 5, 109, 0, 0, 880, 881, 5, 45, 0, 0, 881, 882, 5, 114, 0, 0, 882, 883, 5, 101, 0, 0, 883, 884, 5, 102, 0, 0, 884, 162, 1, 0, 0, 0, 885, 886, 5, 105, 0, 0, 886, 887, 5, 110, 0, 0, 887, 888, 5, 116, 0, 0, 888, 889, 5, 101, 0, 0, 889, 890, 5, 114, 0, 0, 890, 891, 5, 102, 0, 0, 891, 892, 5, 97, 0, 0, 892, 893, 5, 99, 0, 0, 893, 894, 5, 101, 0, 0, 894, 895, 5, 45, 0, 0, 895, 896, 5, 114, 0, 0, 896, 897, 5, 101, 0, 0, 897, 898, 5, 102, 0, 0, 898, 164, 1, 0, 0, 0, 899, 900, 5, 111, 0, 0, 900, 901, 5, 112, 0, 0, 901, 902, 5, 116, 0, 0, 902, 903, 5, 105, 0, 0, 903, 904, 5, 111, 0, 0, 904, 905, 5, 110, 0, 0, 905, 906, 5, 97, 0, 0, 906, 907, 5, 108, 0, 0, 907, 166, 1, 0, 0, 0, 908, 909, 5, 108, 0, 0, 909, 910, 5, 105, 0, 0, 910, 911, 5, 115, 0, 0, 911, 912, 5, 116, 0, 0, 912, 168, 1, 0, 0, 0, 913, 914, 5, 114, 0, 0, 914, 915, 5, 101, 0, 0, 915, 916, 5, 99, 0, 0, 916, 917, 5, 111, 0, 0, 917, 918, 5, 114, 0, 0, 918, 919, 5, 100, 0, 0, 919, 170, 1, 0, 0, 0, 920, 921, 5, 98, 0, 0, 921, 922, 5, 111, 0, 0, 922, 923, 5, 111, 0, 0, 923, 924, 5, 108, 0, 0, 924, 172, 1, 0, 0, 0, 925, 926, 5, 98, 0, 0, 926, 927, 5, 121, 0, 0, 927, 928, 5, 116, 0, 0, 928, 929, 5, 101, 0, 0, 929, 930, 5, 115, 0, 0, 930, 174, 1, 0, 0, 0, 931, 932, 5, 100, 0, 0, 932, 933, 5, 111, 0, 0, 933, 934, 5, 117, 0, 0, 934, 935, 5, 98, 0, 0, 935, 936, 5, 108, 0, 0, 936, 937, 5, 101, 0, 0, 937, 176, 1, 0, 0, 0, 938, 939, 5, 105, 0, 0, 939, 940, 5, 110, 0, 0, 940, 941, 5, 116, 0, 0, 941, 942, 5, 51, 0, 0, 942, 943, 5, 50, 0, 0, 943, 178, 1, 0, 0, 0, 944, 945, 5, 105, 0, 0, 945, 946, 5, 110, 0, 0, 946, 947, 5, 116, 0, 0, 947, 948, 5, 54, 0, 0, 948, 949, 5, 52, 0, 0, 949, 180, 1, 0, 0, 0, 950, 951, 5, 115, 0, 0, 951, 952, 5, 116, 0, 0, 952, 953, 5, 114, 0, 0, 953, 954, 5, 105, 0, 0, 954, 955, 5, 110, 0, 0, 955, 956, 5, 103, 0, 0, 956, 182, 1, 0, 0, 0, 957, 958, 5, 117, 0, 0, 958, 959, 5, 105, 0, 0, 959, 960, 5, 110, 0, 0, 960, 961, 5, 116, 0, 0, 961, 962, 5, 51, 0, 0, 962, 963, 5, 50, 0, 0, 963, 184, 1, 0, 0, 0, 964, 965, 5, 117, 0, 0, 965, 966, 5, 105, 0, 0, 966, 967, 5, 110, 0, 0, 967, 968, 5, 116, 0, 0, 968, 969, 5, 54, 0, 0, 969, 970, 5, 52, 0, 0, 970, 186, 1, 0, 0, 0, 971, 972, 5, 116, 0, 0, 972, 973, 5, 114, 0, 0, 973, 974, 5, 117, 0, 0, 974, 975, 5, 101, 0, 0, 975, 188, 1, 0, 0, 0, 976, 977, 5, 102, 0, 0, 977, 978, 5, 97, 0, 0, 978, 979, 5, 108, 0, 0, 979, 980, 5, 115, 0, 0, 980, 981, 5, 101, 0, 0, 981, 190, 1, 0, 0, 0, 982, 983, 5, 110, 0, 0, 983, 984, 5, 117, 0, 0, 984, 985, 5, 108, 0, 0, 985, 986, 5, 108, 0, 0, 986, 192, 1, 0, 0, 0, 987, 988, 5, 45, 0, 0, 988, 989, 5, 62, 0, 0, 989, 194, 1, 0, 0, 0, 990, 991, 5, 58, 0, 0, 991, 196, 1, 0, 0, 0, 992, 993, 5, 59, 0, 0, 993, 198, 1, 0, 0, 0, 994, 995, 5, 44, 0, 0, 995, 200, 1, 0, 0, 0, 996, 997, 5, 46, 0, 0, 997, 202, 1, 0, 0, 0, 998, 999, 5, 123, 0, 0, 999, 204, 1, 0, 0, 0, 1000, 1001, 5, 125, 0, 0, 1001, 206, 1, 0, 0, 0, 1002, 1003, 5, 91, 0, 0, 1003, 208, 1, 0, 0, 0, 1004, 1005, 5, 93, 0, 0, 1005, 210, 1, 0, 0, 0, 1006, 1007, 5, 40, 0, 0, 1007, 212, 1, 0, 0, 0, 1008, 1009, 5, 41, 0, 0, 1009, 214, 1, 0, 0, 0, 1010, 1011, 5, 60, 0, 0, 1011, 216, 1, 0, 0, 0, 1012, 1013, 5, 62, 0, 0, 1013, 218, 1, 0, 0, 0, 1014, 1015, 5, 38, 0, 0, 1015, 220, 1, 0, 0, 0, 1016, 1017, 5, 61, 0, 0, 1017, 222, 1, 0, 0, 0, 1018, 1020, 5, 45, 0, 0, 1019, 1018, 1, 0, 0, 0, 1019, 1020, 1, 0, 0, 0, 1020, 1022, 1, 0, 0, 0, 1021, 1023, 7, 0, 0, 0, 1022, 1021, 1, 0, 0, 0, 1023, 1024, 1, 0, 0, 0, 1024, 1022, 1, 0, 0, 0, 1024, 1025, 1, 0, 0, 0, 1025, 224, 1, 0, 0, 0, 1026, 1028, 5, 45, 0, 0, 1027, 1026, 1, 0, 0, 0, 1027, 1028, 1, 0, 0, 0, 1028, 1037, 1, 0, 0, 0, 1029, 1038, 5, 48, 0, 0, 1030, 1034, 7, 1, 0, 0, 1031, 1033, 7, 0, 0, 0, 1032, 1031, 1, 0, 0, 0, 1033, 1036, 1, 0, 0, 0, 1034, 1032, 1, 0, 0, 0, 1034, 1035, 1, 0, 0, 0, 1035, 1038, 1, 0, 0, 0, 1036, 1034, 1, 0, 0, 0, 1037, 1029, 1, 0, 0, 0, 1037, 1030, 1, 0, 0, 0, 1038, 1045, 1, 0, 0, 0, 1039, 1041, 5, 46, 0, 0, 1040, 1042, 7, 0, 0, 0, 1041, 1040, 1, 0, 0, 0, 1042, 1043, 1, 0, 0, 0, 1043, 1041, 1, 0, 0, 0, 1043, 1044, 1, 0, 0, 0, 1044, 1046, 1, 0, 0, 0, 1045, 1039, 1, 0, 0, 0, 1045, 1046, 1, 0, 0, 0, 1046, 1056, 1, 0, 0, 0, 1047, 1049, 7, 2, 0, 0, 1048, 1050, 7, 3, 0, 0, 1049, 1048, 1, 0, 0, 0, 1049, 1050, 1, 0, 0, 0, 1050, 1052, 1, 0, 0, 0, 1051, 1053, 7, 0, 0, 0, 1052, 1051, 1, 0, 0, 0, 1053, 1054, 1, 0, 0, 0, 1054, 1052, 1, 0, 0, 0, 1054, 1055, 1, 0, 0, 0, 1055, 1057, 1, 0, 0, 0, 1056, 1047, 1, 0, 0, 0, 1056, 1057, 1, 0, 0, 0, 1057, 226, 1, 0, 0, 0, 1058, 1062, 7, 4, 0, 0, 1059, 1061, 7, 5, 0, 0, 1060, 1059, 1, 0, 0, 0, 1061, 1064, 1, 0, 0, 0, 1062, 1060, 1, 0, 0, 0, 1062, 1063, 1, 0, 0, 0, 1063, 228, 1, 0, 0, 0, 1064, 1062, 1, 0, 0, 0, 1065, 1070, 5, 34, 0, 0, 1066, 1069, 3, 231, 115, 0, 1067, 1069, 8, 6, 0, 0, 1068, 1066, 1, 0, 0, 0, 1068, 1067, 1, 0, 0, 0, 1069, 1072, 1, 0, 0, 0, 1070, 1068, 1, 0, 0, 0, 1070, 1071, 1, 0, 0, 0, 1071, 1073, 1, 0, 0, 0, 1072, 1070, 1, 0, 0, 0, 1073, 1074, 5, 34, 0, 0, 1074, 230, 1, 0, 0, 0, 1075, 1083, 5, 92, 0, 0, 1076, 1084, 7, 7, 0, 0, 1077, 1078, 5, 117, 0, 0, 1078, 1079, 3, 233, 116, 0, 1079, 1080, 3, 233, 116, 0, 1080, 1081, 3, 233, 116, 0, 1081, 1082, 3, 233, 116, 0, 1082, 1084, 1, 0, 0, 0, 1083, 1076, 1, 0, 0, 0, 1083, 1077, 1, 0, 0, 0, 1084, 232, 1, 0, 0, 0, 1085, 1086, 7, 8, 0, 0, 1086, 234, 1, 0, 0, 0, 1087, 1088, 5, 47, 0, 0, 1088, 1089, 5, 47, 0, 0, 1089, 1093, 1, 0, 0, 0, 1090, 1092, 8, 9, 0, 0, 1091, 1090, 1, 0, 0, 0, 1092, 1095, 1, 0, 0, 0, 1093, 1091, 1, 0, 0, 0, 1093, 1094, 1, 0, 0, 0, 1094, 1096, 1, 0, 0, 0, 1095, 1093, 1, 0, 0, 0, 1096, 1097, 6, 117, 0, 0, 1097, 236, 1, 0, 0, 0, 1098, 1099, 5, 47, 0, 0, 1099, 1100, 5, 42, 0, 0, 1100, 1104, 1, 0, 0, 0, 1101, 1103, 9, 0, 0, 0, 1102, 1101, 1, 0, 0, 0, 1103, 1106, 1, 0, 0, 0, 1104, 1105, 1, 0, 0, 0, 1104, 1102, 1, 0, 0, 0, 1105, 1107, 1, 0, 0, 0, 1106, 1104, 1, 0, 0, 0, 1107, 1108, 5, 42, 0, 0, 1108, 1109, 5, 47, 0, 0, 1109, 1110, 1, 0, 0, 0, 1110, 1111, 6, 118, 0, 0, 1111, 238, 1, 0, 0, 0, 1112, 1114, 7, 10, 0, 0, 1113, 1112, 1, 0, 0, 0, 1114, 1115, 1, 0, 0, 0, 1115, 1113, 1, 0, 0, 0, 1115, 1116, 1, 0, 0, 0, 1116, 1117, 1, 0, 0, 0, 1117, 1118, 6, 119, 0, 0, 1118, 240, 1, 0, 0, 0, 18, 0, 1019, 1024, 1027, 1034, 1037, 1043, 1045, 1049, 1054, 1056, 1062, 1068, 1070, 1083, 1093, 1104, 1115, 1, 0, 1, 0] \ No newline at end of file +[4, 0, 129, 1218, 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, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 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, 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, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 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, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 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, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 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, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 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, 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, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 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, 63, 1, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 67, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 71, 1, 71, 1, 71, 1, 71, 1, 71, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 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, 93, 1, 93, 1, 93, 1, 93, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 97, 1, 97, 1, 97, 1, 97, 1, 97, 1, 97, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 99, 1, 99, 1, 99, 1, 99, 1, 99, 1, 99, 1, 100, 1, 100, 1, 100, 1, 100, 1, 100, 1, 100, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 105, 1, 105, 1, 105, 1, 105, 1, 105, 1, 105, 1, 106, 1, 106, 1, 106, 1, 106, 1, 106, 1, 107, 1, 107, 1, 107, 1, 108, 1, 108, 1, 109, 1, 109, 1, 110, 1, 110, 1, 111, 1, 111, 1, 112, 1, 112, 1, 113, 1, 113, 1, 114, 1, 114, 1, 115, 1, 115, 1, 116, 1, 116, 1, 117, 1, 117, 1, 118, 1, 118, 1, 119, 1, 119, 1, 120, 1, 120, 1, 121, 1, 121, 1, 122, 3, 122, 1119, 8, 122, 1, 122, 4, 122, 1122, 8, 122, 11, 122, 12, 122, 1123, 1, 123, 3, 123, 1127, 8, 123, 1, 123, 1, 123, 1, 123, 5, 123, 1132, 8, 123, 10, 123, 12, 123, 1135, 9, 123, 3, 123, 1137, 8, 123, 1, 123, 1, 123, 4, 123, 1141, 8, 123, 11, 123, 12, 123, 1142, 3, 123, 1145, 8, 123, 1, 123, 1, 123, 3, 123, 1149, 8, 123, 1, 123, 4, 123, 1152, 8, 123, 11, 123, 12, 123, 1153, 3, 123, 1156, 8, 123, 1, 124, 1, 124, 5, 124, 1160, 8, 124, 10, 124, 12, 124, 1163, 9, 124, 1, 125, 1, 125, 1, 125, 5, 125, 1168, 8, 125, 10, 125, 12, 125, 1171, 9, 125, 1, 125, 1, 125, 1, 126, 1, 126, 1, 126, 1, 126, 1, 126, 1, 126, 1, 126, 1, 126, 3, 126, 1183, 8, 126, 1, 127, 1, 127, 1, 128, 1, 128, 1, 128, 1, 128, 5, 128, 1191, 8, 128, 10, 128, 12, 128, 1194, 9, 128, 1, 128, 1, 128, 1, 129, 1, 129, 1, 129, 1, 129, 5, 129, 1202, 8, 129, 10, 129, 12, 129, 1205, 9, 129, 1, 129, 1, 129, 1, 129, 1, 129, 1, 129, 1, 130, 4, 130, 1213, 8, 130, 11, 130, 12, 130, 1214, 1, 130, 1, 130, 1, 1203, 0, 131, 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, 104, 209, 105, 211, 106, 213, 107, 215, 108, 217, 109, 219, 110, 221, 111, 223, 112, 225, 113, 227, 114, 229, 115, 231, 116, 233, 117, 235, 118, 237, 119, 239, 120, 241, 121, 243, 122, 245, 123, 247, 124, 249, 125, 251, 126, 253, 0, 255, 0, 257, 127, 259, 128, 261, 129, 1, 0, 11, 1, 0, 48, 57, 1, 0, 49, 57, 2, 0, 69, 69, 101, 101, 2, 0, 43, 43, 45, 45, 3, 0, 65, 90, 95, 95, 97, 122, 4, 0, 48, 57, 65, 90, 95, 95, 97, 122, 4, 0, 10, 10, 13, 13, 34, 34, 92, 92, 8, 0, 34, 34, 47, 47, 92, 92, 98, 98, 102, 102, 110, 110, 114, 114, 116, 116, 3, 0, 48, 57, 65, 70, 97, 102, 2, 0, 10, 10, 13, 13, 3, 0, 9, 10, 13, 13, 32, 32, 1232, 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, 207, 1, 0, 0, 0, 0, 209, 1, 0, 0, 0, 0, 211, 1, 0, 0, 0, 0, 213, 1, 0, 0, 0, 0, 215, 1, 0, 0, 0, 0, 217, 1, 0, 0, 0, 0, 219, 1, 0, 0, 0, 0, 221, 1, 0, 0, 0, 0, 223, 1, 0, 0, 0, 0, 225, 1, 0, 0, 0, 0, 227, 1, 0, 0, 0, 0, 229, 1, 0, 0, 0, 0, 231, 1, 0, 0, 0, 0, 233, 1, 0, 0, 0, 0, 235, 1, 0, 0, 0, 0, 237, 1, 0, 0, 0, 0, 239, 1, 0, 0, 0, 0, 241, 1, 0, 0, 0, 0, 243, 1, 0, 0, 0, 0, 245, 1, 0, 0, 0, 0, 247, 1, 0, 0, 0, 0, 249, 1, 0, 0, 0, 0, 251, 1, 0, 0, 0, 0, 257, 1, 0, 0, 0, 0, 259, 1, 0, 0, 0, 0, 261, 1, 0, 0, 0, 1, 263, 1, 0, 0, 0, 3, 273, 1, 0, 0, 0, 5, 279, 1, 0, 0, 0, 7, 284, 1, 0, 0, 0, 9, 293, 1, 0, 0, 0, 11, 303, 1, 0, 0, 0, 13, 308, 1, 0, 0, 0, 15, 312, 1, 0, 0, 0, 17, 318, 1, 0, 0, 0, 19, 323, 1, 0, 0, 0, 21, 333, 1, 0, 0, 0, 23, 337, 1, 0, 0, 0, 25, 350, 1, 0, 0, 0, 27, 355, 1, 0, 0, 0, 29, 362, 1, 0, 0, 0, 31, 371, 1, 0, 0, 0, 33, 382, 1, 0, 0, 0, 35, 386, 1, 0, 0, 0, 37, 395, 1, 0, 0, 0, 39, 402, 1, 0, 0, 0, 41, 411, 1, 0, 0, 0, 43, 416, 1, 0, 0, 0, 45, 426, 1, 0, 0, 0, 47, 437, 1, 0, 0, 0, 49, 445, 1, 0, 0, 0, 51, 451, 1, 0, 0, 0, 53, 460, 1, 0, 0, 0, 55, 470, 1, 0, 0, 0, 57, 479, 1, 0, 0, 0, 59, 491, 1, 0, 0, 0, 61, 502, 1, 0, 0, 0, 63, 508, 1, 0, 0, 0, 65, 516, 1, 0, 0, 0, 67, 519, 1, 0, 0, 0, 69, 524, 1, 0, 0, 0, 71, 531, 1, 0, 0, 0, 73, 534, 1, 0, 0, 0, 75, 542, 1, 0, 0, 0, 77, 549, 1, 0, 0, 0, 79, 555, 1, 0, 0, 0, 81, 560, 1, 0, 0, 0, 83, 571, 1, 0, 0, 0, 85, 576, 1, 0, 0, 0, 87, 582, 1, 0, 0, 0, 89, 586, 1, 0, 0, 0, 91, 598, 1, 0, 0, 0, 93, 601, 1, 0, 0, 0, 95, 608, 1, 0, 0, 0, 97, 611, 1, 0, 0, 0, 99, 618, 1, 0, 0, 0, 101, 626, 1, 0, 0, 0, 103, 633, 1, 0, 0, 0, 105, 644, 1, 0, 0, 0, 107, 651, 1, 0, 0, 0, 109, 660, 1, 0, 0, 0, 111, 675, 1, 0, 0, 0, 113, 685, 1, 0, 0, 0, 115, 698, 1, 0, 0, 0, 117, 704, 1, 0, 0, 0, 119, 721, 1, 0, 0, 0, 121, 724, 1, 0, 0, 0, 123, 728, 1, 0, 0, 0, 125, 733, 1, 0, 0, 0, 127, 739, 1, 0, 0, 0, 129, 748, 1, 0, 0, 0, 131, 757, 1, 0, 0, 0, 133, 761, 1, 0, 0, 0, 135, 765, 1, 0, 0, 0, 137, 769, 1, 0, 0, 0, 139, 775, 1, 0, 0, 0, 141, 781, 1, 0, 0, 0, 143, 786, 1, 0, 0, 0, 145, 791, 1, 0, 0, 0, 147, 797, 1, 0, 0, 0, 149, 805, 1, 0, 0, 0, 151, 813, 1, 0, 0, 0, 153, 824, 1, 0, 0, 0, 155, 829, 1, 0, 0, 0, 157, 841, 1, 0, 0, 0, 159, 852, 1, 0, 0, 0, 161, 862, 1, 0, 0, 0, 163, 874, 1, 0, 0, 0, 165, 894, 1, 0, 0, 0, 167, 899, 1, 0, 0, 0, 169, 912, 1, 0, 0, 0, 171, 924, 1, 0, 0, 0, 173, 936, 1, 0, 0, 0, 175, 941, 1, 0, 0, 0, 177, 949, 1, 0, 0, 0, 179, 954, 1, 0, 0, 0, 181, 967, 1, 0, 0, 0, 183, 975, 1, 0, 0, 0, 185, 984, 1, 0, 0, 0, 187, 998, 1, 0, 0, 0, 189, 1007, 1, 0, 0, 0, 191, 1012, 1, 0, 0, 0, 193, 1019, 1, 0, 0, 0, 195, 1024, 1, 0, 0, 0, 197, 1030, 1, 0, 0, 0, 199, 1037, 1, 0, 0, 0, 201, 1043, 1, 0, 0, 0, 203, 1049, 1, 0, 0, 0, 205, 1056, 1, 0, 0, 0, 207, 1063, 1, 0, 0, 0, 209, 1070, 1, 0, 0, 0, 211, 1075, 1, 0, 0, 0, 213, 1081, 1, 0, 0, 0, 215, 1086, 1, 0, 0, 0, 217, 1089, 1, 0, 0, 0, 219, 1091, 1, 0, 0, 0, 221, 1093, 1, 0, 0, 0, 223, 1095, 1, 0, 0, 0, 225, 1097, 1, 0, 0, 0, 227, 1099, 1, 0, 0, 0, 229, 1101, 1, 0, 0, 0, 231, 1103, 1, 0, 0, 0, 233, 1105, 1, 0, 0, 0, 235, 1107, 1, 0, 0, 0, 237, 1109, 1, 0, 0, 0, 239, 1111, 1, 0, 0, 0, 241, 1113, 1, 0, 0, 0, 243, 1115, 1, 0, 0, 0, 245, 1118, 1, 0, 0, 0, 247, 1126, 1, 0, 0, 0, 249, 1157, 1, 0, 0, 0, 251, 1164, 1, 0, 0, 0, 253, 1174, 1, 0, 0, 0, 255, 1184, 1, 0, 0, 0, 257, 1186, 1, 0, 0, 0, 259, 1197, 1, 0, 0, 0, 261, 1212, 1, 0, 0, 0, 263, 264, 5, 119, 0, 0, 264, 265, 5, 111, 0, 0, 265, 266, 5, 114, 0, 0, 266, 267, 5, 107, 0, 0, 267, 268, 5, 115, 0, 0, 268, 269, 5, 112, 0, 0, 269, 270, 5, 97, 0, 0, 270, 271, 5, 99, 0, 0, 271, 272, 5, 101, 0, 0, 272, 2, 1, 0, 0, 0, 273, 274, 5, 113, 0, 0, 274, 275, 5, 117, 0, 0, 275, 276, 5, 101, 0, 0, 276, 277, 5, 114, 0, 0, 277, 278, 5, 121, 0, 0, 278, 4, 1, 0, 0, 0, 279, 280, 5, 114, 0, 0, 280, 281, 5, 111, 0, 0, 281, 282, 5, 111, 0, 0, 282, 283, 5, 116, 0, 0, 283, 6, 1, 0, 0, 0, 284, 285, 5, 100, 0, 0, 285, 286, 5, 111, 0, 0, 286, 287, 5, 99, 0, 0, 287, 288, 5, 117, 0, 0, 288, 289, 5, 109, 0, 0, 289, 290, 5, 101, 0, 0, 290, 291, 5, 110, 0, 0, 291, 292, 5, 116, 0, 0, 292, 8, 1, 0, 0, 0, 293, 294, 5, 102, 0, 0, 294, 295, 5, 114, 0, 0, 295, 296, 5, 97, 0, 0, 296, 297, 5, 103, 0, 0, 297, 298, 5, 109, 0, 0, 298, 299, 5, 101, 0, 0, 299, 300, 5, 110, 0, 0, 300, 301, 5, 116, 0, 0, 301, 302, 5, 115, 0, 0, 302, 10, 1, 0, 0, 0, 303, 304, 5, 118, 0, 0, 304, 305, 5, 105, 0, 0, 305, 306, 5, 101, 0, 0, 306, 307, 5, 119, 0, 0, 307, 12, 1, 0, 0, 0, 308, 309, 5, 109, 0, 0, 309, 310, 5, 97, 0, 0, 310, 311, 5, 120, 0, 0, 311, 14, 1, 0, 0, 0, 312, 313, 5, 97, 0, 0, 313, 314, 5, 108, 0, 0, 314, 315, 5, 108, 0, 0, 315, 316, 5, 111, 0, 0, 316, 317, 5, 119, 0, 0, 317, 16, 1, 0, 0, 0, 318, 319, 5, 112, 0, 0, 319, 320, 5, 111, 0, 0, 320, 321, 5, 108, 0, 0, 321, 322, 5, 108, 0, 0, 322, 18, 1, 0, 0, 0, 323, 324, 5, 113, 0, 0, 324, 325, 5, 117, 0, 0, 325, 326, 5, 101, 0, 0, 326, 327, 5, 114, 0, 0, 327, 328, 5, 121, 0, 0, 328, 329, 5, 97, 0, 0, 329, 330, 5, 98, 0, 0, 330, 331, 5, 108, 0, 0, 331, 332, 5, 101, 0, 0, 332, 20, 1, 0, 0, 0, 333, 334, 5, 114, 0, 0, 334, 335, 5, 112, 0, 0, 335, 336, 5, 99, 0, 0, 336, 22, 1, 0, 0, 0, 337, 338, 5, 113, 0, 0, 338, 339, 5, 117, 0, 0, 339, 340, 5, 101, 0, 0, 340, 341, 5, 114, 0, 0, 341, 342, 5, 121, 0, 0, 342, 343, 5, 45, 0, 0, 343, 344, 5, 114, 0, 0, 344, 345, 5, 101, 0, 0, 345, 346, 5, 97, 0, 0, 346, 347, 5, 115, 0, 0, 347, 348, 5, 111, 0, 0, 348, 349, 5, 110, 0, 0, 349, 24, 1, 0, 0, 0, 350, 351, 5, 116, 0, 0, 351, 352, 5, 121, 0, 0, 352, 353, 5, 112, 0, 0, 353, 354, 5, 101, 0, 0, 354, 26, 1, 0, 0, 0, 355, 356, 5, 111, 0, 0, 356, 357, 5, 98, 0, 0, 357, 358, 5, 106, 0, 0, 358, 359, 5, 101, 0, 0, 359, 360, 5, 99, 0, 0, 360, 361, 5, 116, 0, 0, 361, 28, 1, 0, 0, 0, 362, 363, 5, 115, 0, 0, 363, 364, 5, 116, 0, 0, 364, 365, 5, 111, 0, 0, 365, 366, 5, 114, 0, 0, 366, 367, 5, 97, 0, 0, 367, 368, 5, 98, 0, 0, 368, 369, 5, 108, 0, 0, 369, 370, 5, 101, 0, 0, 370, 30, 1, 0, 0, 0, 371, 372, 5, 105, 0, 0, 372, 373, 5, 109, 0, 0, 373, 374, 5, 112, 0, 0, 374, 375, 5, 108, 0, 0, 375, 376, 5, 101, 0, 0, 376, 377, 5, 109, 0, 0, 377, 378, 5, 101, 0, 0, 378, 379, 5, 110, 0, 0, 379, 380, 5, 116, 0, 0, 380, 381, 5, 115, 0, 0, 381, 32, 1, 0, 0, 0, 382, 383, 5, 114, 0, 0, 383, 384, 5, 101, 0, 0, 384, 385, 5, 102, 0, 0, 385, 34, 1, 0, 0, 0, 386, 387, 5, 102, 0, 0, 387, 388, 5, 114, 0, 0, 388, 389, 5, 97, 0, 0, 389, 390, 5, 103, 0, 0, 390, 391, 5, 109, 0, 0, 391, 392, 5, 101, 0, 0, 392, 393, 5, 110, 0, 0, 393, 394, 5, 116, 0, 0, 394, 36, 1, 0, 0, 0, 395, 396, 5, 105, 0, 0, 396, 397, 5, 109, 0, 0, 397, 398, 5, 112, 0, 0, 398, 399, 5, 111, 0, 0, 399, 400, 5, 114, 0, 0, 400, 401, 5, 116, 0, 0, 401, 38, 1, 0, 0, 0, 402, 403, 5, 101, 0, 0, 403, 404, 5, 120, 0, 0, 404, 405, 5, 116, 0, 0, 405, 406, 5, 101, 0, 0, 406, 407, 5, 114, 0, 0, 407, 408, 5, 110, 0, 0, 408, 409, 5, 97, 0, 0, 409, 410, 5, 108, 0, 0, 410, 40, 1, 0, 0, 0, 411, 412, 5, 97, 0, 0, 412, 413, 5, 116, 0, 0, 413, 414, 5, 111, 0, 0, 414, 415, 5, 109, 0, 0, 415, 42, 1, 0, 0, 0, 416, 417, 5, 105, 0, 0, 417, 418, 5, 110, 0, 0, 418, 419, 5, 116, 0, 0, 419, 420, 5, 101, 0, 0, 420, 421, 5, 114, 0, 0, 421, 422, 5, 102, 0, 0, 422, 423, 5, 97, 0, 0, 423, 424, 5, 99, 0, 0, 424, 425, 5, 101, 0, 0, 425, 44, 1, 0, 0, 0, 426, 427, 5, 105, 0, 0, 427, 428, 5, 110, 0, 0, 428, 429, 5, 116, 0, 0, 429, 430, 5, 101, 0, 0, 430, 431, 5, 114, 0, 0, 431, 432, 5, 102, 0, 0, 432, 433, 5, 97, 0, 0, 433, 434, 5, 99, 0, 0, 434, 435, 5, 101, 0, 0, 435, 436, 5, 115, 0, 0, 436, 46, 1, 0, 0, 0, 437, 438, 5, 112, 0, 0, 438, 439, 5, 97, 0, 0, 439, 440, 5, 99, 0, 0, 440, 441, 5, 107, 0, 0, 441, 442, 5, 97, 0, 0, 442, 443, 5, 103, 0, 0, 443, 444, 5, 101, 0, 0, 444, 48, 1, 0, 0, 0, 445, 446, 5, 118, 0, 0, 446, 447, 5, 97, 0, 0, 447, 448, 5, 108, 0, 0, 448, 449, 5, 117, 0, 0, 449, 450, 5, 101, 0, 0, 450, 50, 1, 0, 0, 0, 451, 452, 5, 114, 0, 0, 452, 453, 5, 101, 0, 0, 453, 454, 5, 108, 0, 0, 454, 455, 5, 97, 0, 0, 455, 456, 5, 116, 0, 0, 456, 457, 5, 105, 0, 0, 457, 458, 5, 111, 0, 0, 458, 459, 5, 110, 0, 0, 459, 52, 1, 0, 0, 0, 460, 461, 5, 111, 0, 0, 461, 462, 5, 112, 0, 0, 462, 463, 5, 101, 0, 0, 463, 464, 5, 114, 0, 0, 464, 465, 5, 97, 0, 0, 465, 466, 5, 116, 0, 0, 466, 467, 5, 105, 0, 0, 467, 468, 5, 111, 0, 0, 468, 469, 5, 110, 0, 0, 469, 54, 1, 0, 0, 0, 470, 471, 5, 102, 0, 0, 471, 472, 5, 117, 0, 0, 472, 473, 5, 110, 0, 0, 473, 474, 5, 99, 0, 0, 474, 475, 5, 116, 0, 0, 475, 476, 5, 105, 0, 0, 476, 477, 5, 111, 0, 0, 477, 478, 5, 110, 0, 0, 478, 56, 1, 0, 0, 0, 479, 480, 5, 99, 0, 0, 480, 481, 5, 111, 0, 0, 481, 482, 5, 110, 0, 0, 482, 483, 5, 115, 0, 0, 483, 484, 5, 116, 0, 0, 484, 485, 5, 114, 0, 0, 485, 486, 5, 117, 0, 0, 486, 487, 5, 99, 0, 0, 487, 488, 5, 116, 0, 0, 488, 489, 5, 111, 0, 0, 489, 490, 5, 114, 0, 0, 490, 58, 1, 0, 0, 0, 491, 492, 5, 99, 0, 0, 492, 493, 5, 111, 0, 0, 493, 494, 5, 110, 0, 0, 494, 495, 5, 115, 0, 0, 495, 496, 5, 116, 0, 0, 496, 497, 5, 114, 0, 0, 497, 498, 5, 117, 0, 0, 498, 499, 5, 99, 0, 0, 499, 500, 5, 116, 0, 0, 500, 501, 5, 115, 0, 0, 501, 60, 1, 0, 0, 0, 502, 503, 5, 105, 0, 0, 503, 504, 5, 110, 0, 0, 504, 505, 5, 112, 0, 0, 505, 506, 5, 117, 0, 0, 506, 507, 5, 116, 0, 0, 507, 62, 1, 0, 0, 0, 508, 509, 5, 99, 0, 0, 509, 510, 5, 111, 0, 0, 510, 511, 5, 110, 0, 0, 511, 512, 5, 102, 0, 0, 512, 513, 5, 111, 0, 0, 513, 514, 5, 114, 0, 0, 514, 515, 5, 109, 0, 0, 515, 64, 1, 0, 0, 0, 516, 517, 5, 97, 0, 0, 517, 518, 5, 115, 0, 0, 518, 66, 1, 0, 0, 0, 519, 520, 5, 98, 0, 0, 520, 521, 5, 105, 0, 0, 521, 522, 5, 110, 0, 0, 522, 523, 5, 100, 0, 0, 523, 68, 1, 0, 0, 0, 524, 525, 5, 115, 0, 0, 525, 526, 5, 116, 0, 0, 526, 527, 5, 97, 0, 0, 527, 528, 5, 116, 0, 0, 528, 529, 5, 105, 0, 0, 529, 530, 5, 99, 0, 0, 530, 70, 1, 0, 0, 0, 531, 532, 5, 116, 0, 0, 532, 533, 5, 111, 0, 0, 533, 72, 1, 0, 0, 0, 534, 535, 5, 112, 0, 0, 535, 536, 5, 114, 0, 0, 536, 537, 5, 105, 0, 0, 537, 538, 5, 118, 0, 0, 538, 539, 5, 97, 0, 0, 539, 540, 5, 116, 0, 0, 540, 541, 5, 101, 0, 0, 541, 74, 1, 0, 0, 0, 542, 543, 5, 115, 0, 0, 543, 544, 5, 104, 0, 0, 544, 545, 5, 97, 0, 0, 545, 546, 5, 114, 0, 0, 546, 547, 5, 101, 0, 0, 547, 548, 5, 100, 0, 0, 548, 76, 1, 0, 0, 0, 549, 550, 5, 115, 0, 0, 550, 551, 5, 116, 0, 0, 551, 552, 5, 97, 0, 0, 552, 553, 5, 116, 0, 0, 553, 554, 5, 101, 0, 0, 554, 78, 1, 0, 0, 0, 555, 556, 5, 101, 0, 0, 556, 557, 5, 100, 0, 0, 557, 558, 5, 103, 0, 0, 558, 559, 5, 101, 0, 0, 559, 80, 1, 0, 0, 0, 560, 561, 5, 112, 0, 0, 561, 562, 5, 114, 0, 0, 562, 563, 5, 111, 0, 0, 563, 564, 5, 106, 0, 0, 564, 565, 5, 101, 0, 0, 565, 566, 5, 99, 0, 0, 566, 567, 5, 116, 0, 0, 567, 568, 5, 105, 0, 0, 568, 569, 5, 111, 0, 0, 569, 570, 5, 110, 0, 0, 570, 82, 1, 0, 0, 0, 571, 572, 5, 119, 0, 0, 572, 573, 5, 105, 0, 0, 573, 574, 5, 116, 0, 0, 574, 575, 5, 104, 0, 0, 575, 84, 1, 0, 0, 0, 576, 577, 5, 117, 0, 0, 577, 578, 5, 115, 0, 0, 578, 579, 5, 105, 0, 0, 579, 580, 5, 110, 0, 0, 580, 581, 5, 103, 0, 0, 581, 86, 1, 0, 0, 0, 582, 583, 5, 118, 0, 0, 583, 584, 5, 105, 0, 0, 584, 585, 5, 97, 0, 0, 585, 88, 1, 0, 0, 0, 586, 587, 5, 109, 0, 0, 587, 588, 5, 97, 0, 0, 588, 589, 5, 116, 0, 0, 589, 590, 5, 101, 0, 0, 590, 591, 5, 114, 0, 0, 591, 592, 5, 105, 0, 0, 592, 593, 5, 97, 0, 0, 593, 594, 5, 108, 0, 0, 594, 595, 5, 105, 0, 0, 595, 596, 5, 122, 0, 0, 596, 597, 5, 101, 0, 0, 597, 90, 1, 0, 0, 0, 598, 599, 5, 105, 0, 0, 599, 600, 5, 102, 0, 0, 600, 92, 1, 0, 0, 0, 601, 602, 5, 97, 0, 0, 602, 603, 5, 98, 0, 0, 603, 604, 5, 115, 0, 0, 604, 605, 5, 101, 0, 0, 605, 606, 5, 110, 0, 0, 606, 607, 5, 116, 0, 0, 607, 94, 1, 0, 0, 0, 608, 609, 5, 111, 0, 0, 609, 610, 5, 110, 0, 0, 610, 96, 1, 0, 0, 0, 611, 612, 5, 112, 0, 0, 612, 613, 5, 111, 0, 0, 613, 614, 5, 108, 0, 0, 614, 615, 5, 105, 0, 0, 615, 616, 5, 99, 0, 0, 616, 617, 5, 121, 0, 0, 617, 98, 1, 0, 0, 0, 618, 619, 5, 100, 0, 0, 619, 620, 5, 101, 0, 0, 620, 621, 5, 102, 0, 0, 621, 622, 5, 97, 0, 0, 622, 623, 5, 117, 0, 0, 623, 624, 5, 108, 0, 0, 624, 625, 5, 116, 0, 0, 625, 100, 1, 0, 0, 0, 626, 627, 5, 115, 0, 0, 627, 628, 5, 111, 0, 0, 628, 629, 5, 117, 0, 0, 629, 630, 5, 114, 0, 0, 630, 631, 5, 99, 0, 0, 631, 632, 5, 101, 0, 0, 632, 102, 1, 0, 0, 0, 633, 634, 5, 114, 0, 0, 634, 635, 5, 101, 0, 0, 635, 636, 5, 112, 0, 0, 636, 637, 5, 111, 0, 0, 637, 638, 5, 115, 0, 0, 638, 639, 5, 105, 0, 0, 639, 640, 5, 116, 0, 0, 640, 641, 5, 111, 0, 0, 641, 642, 5, 114, 0, 0, 642, 643, 5, 121, 0, 0, 643, 104, 1, 0, 0, 0, 644, 645, 5, 99, 0, 0, 645, 646, 5, 111, 0, 0, 646, 647, 5, 109, 0, 0, 647, 648, 5, 109, 0, 0, 648, 649, 5, 105, 0, 0, 649, 650, 5, 116, 0, 0, 650, 106, 1, 0, 0, 0, 651, 652, 5, 114, 0, 0, 652, 653, 5, 101, 0, 0, 653, 654, 5, 118, 0, 0, 654, 655, 5, 105, 0, 0, 655, 656, 5, 115, 0, 0, 656, 657, 5, 105, 0, 0, 657, 658, 5, 111, 0, 0, 658, 659, 5, 110, 0, 0, 659, 108, 1, 0, 0, 0, 660, 661, 5, 115, 0, 0, 661, 662, 5, 101, 0, 0, 662, 663, 5, 109, 0, 0, 663, 664, 5, 97, 0, 0, 664, 665, 5, 110, 0, 0, 665, 666, 5, 116, 0, 0, 666, 667, 5, 105, 0, 0, 667, 668, 5, 99, 0, 0, 668, 669, 5, 45, 0, 0, 669, 670, 5, 109, 0, 0, 670, 671, 5, 97, 0, 0, 671, 672, 5, 106, 0, 0, 672, 673, 5, 111, 0, 0, 673, 674, 5, 114, 0, 0, 674, 110, 1, 0, 0, 0, 675, 676, 5, 111, 0, 0, 676, 677, 5, 110, 0, 0, 677, 678, 5, 45, 0, 0, 678, 679, 5, 100, 0, 0, 679, 680, 5, 101, 0, 0, 680, 681, 5, 108, 0, 0, 681, 682, 5, 101, 0, 0, 682, 683, 5, 116, 0, 0, 683, 684, 5, 101, 0, 0, 684, 112, 1, 0, 0, 0, 685, 686, 5, 114, 0, 0, 686, 687, 5, 101, 0, 0, 687, 688, 5, 116, 0, 0, 688, 689, 5, 97, 0, 0, 689, 690, 5, 105, 0, 0, 690, 691, 5, 110, 0, 0, 691, 692, 5, 45, 0, 0, 692, 693, 5, 111, 0, 0, 693, 694, 5, 116, 0, 0, 694, 695, 5, 104, 0, 0, 695, 696, 5, 101, 0, 0, 696, 697, 5, 114, 0, 0, 697, 114, 1, 0, 0, 0, 698, 699, 5, 107, 0, 0, 699, 700, 5, 101, 0, 0, 700, 701, 5, 121, 0, 0, 701, 702, 5, 101, 0, 0, 702, 703, 5, 100, 0, 0, 703, 116, 1, 0, 0, 0, 704, 705, 5, 112, 0, 0, 705, 706, 5, 117, 0, 0, 706, 707, 5, 98, 0, 0, 707, 708, 5, 108, 0, 0, 708, 709, 5, 105, 0, 0, 709, 710, 5, 99, 0, 0, 710, 711, 5, 45, 0, 0, 711, 712, 5, 116, 0, 0, 712, 713, 5, 114, 0, 0, 713, 714, 5, 97, 0, 0, 714, 715, 5, 118, 0, 0, 715, 716, 5, 101, 0, 0, 716, 717, 5, 114, 0, 0, 717, 718, 5, 115, 0, 0, 718, 719, 5, 97, 0, 0, 719, 720, 5, 108, 0, 0, 720, 118, 1, 0, 0, 0, 721, 722, 5, 105, 0, 0, 722, 723, 5, 100, 0, 0, 723, 120, 1, 0, 0, 0, 724, 725, 5, 100, 0, 0, 725, 726, 5, 111, 0, 0, 726, 727, 5, 99, 0, 0, 727, 122, 1, 0, 0, 0, 728, 729, 5, 109, 0, 0, 729, 730, 5, 111, 0, 0, 730, 731, 5, 100, 0, 0, 731, 732, 5, 101, 0, 0, 732, 124, 1, 0, 0, 0, 733, 734, 5, 101, 0, 0, 734, 735, 5, 109, 0, 0, 735, 736, 5, 105, 0, 0, 736, 737, 5, 116, 0, 0, 737, 738, 5, 115, 0, 0, 738, 126, 1, 0, 0, 0, 739, 740, 5, 114, 0, 0, 740, 741, 5, 101, 0, 0, 741, 742, 5, 99, 0, 0, 742, 743, 5, 101, 0, 0, 743, 744, 5, 105, 0, 0, 744, 745, 5, 118, 0, 0, 745, 746, 5, 101, 0, 0, 746, 747, 5, 114, 0, 0, 747, 128, 1, 0, 0, 0, 748, 749, 5, 114, 0, 0, 749, 750, 5, 101, 0, 0, 750, 751, 5, 113, 0, 0, 751, 752, 5, 117, 0, 0, 752, 753, 5, 105, 0, 0, 753, 754, 5, 114, 0, 0, 754, 755, 5, 101, 0, 0, 755, 756, 5, 115, 0, 0, 756, 130, 1, 0, 0, 0, 757, 758, 5, 97, 0, 0, 758, 759, 5, 110, 0, 0, 759, 760, 5, 121, 0, 0, 760, 132, 1, 0, 0, 0, 761, 762, 5, 103, 0, 0, 762, 763, 5, 101, 0, 0, 763, 764, 5, 116, 0, 0, 764, 134, 1, 0, 0, 0, 765, 766, 5, 115, 0, 0, 766, 767, 5, 101, 0, 0, 767, 768, 5, 116, 0, 0, 768, 136, 1, 0, 0, 0, 769, 770, 5, 119, 0, 0, 770, 771, 5, 97, 0, 0, 771, 772, 5, 116, 0, 0, 772, 773, 5, 99, 0, 0, 773, 774, 5, 104, 0, 0, 774, 138, 1, 0, 0, 0, 775, 776, 5, 115, 0, 0, 776, 777, 5, 116, 0, 0, 777, 778, 5, 97, 0, 0, 778, 779, 5, 114, 0, 0, 779, 780, 5, 116, 0, 0, 780, 140, 1, 0, 0, 0, 781, 782, 5, 115, 0, 0, 782, 783, 5, 116, 0, 0, 783, 784, 5, 111, 0, 0, 784, 785, 5, 112, 0, 0, 785, 142, 1, 0, 0, 0, 786, 787, 5, 114, 0, 0, 787, 788, 5, 101, 0, 0, 788, 789, 5, 97, 0, 0, 789, 790, 5, 100, 0, 0, 790, 144, 1, 0, 0, 0, 791, 792, 5, 119, 0, 0, 792, 793, 5, 114, 0, 0, 793, 794, 5, 105, 0, 0, 794, 795, 5, 116, 0, 0, 795, 796, 5, 101, 0, 0, 796, 146, 1, 0, 0, 0, 797, 798, 5, 114, 0, 0, 798, 799, 5, 101, 0, 0, 799, 800, 5, 115, 0, 0, 800, 801, 5, 111, 0, 0, 801, 802, 5, 108, 0, 0, 802, 803, 5, 118, 0, 0, 803, 804, 5, 101, 0, 0, 804, 148, 1, 0, 0, 0, 805, 806, 5, 99, 0, 0, 806, 807, 5, 111, 0, 0, 807, 808, 5, 110, 0, 0, 808, 809, 5, 110, 0, 0, 809, 810, 5, 101, 0, 0, 810, 811, 5, 99, 0, 0, 811, 812, 5, 116, 0, 0, 812, 150, 1, 0, 0, 0, 813, 814, 5, 100, 0, 0, 814, 815, 5, 105, 0, 0, 815, 816, 5, 115, 0, 0, 816, 817, 5, 99, 0, 0, 817, 818, 5, 111, 0, 0, 818, 819, 5, 110, 0, 0, 819, 820, 5, 110, 0, 0, 820, 821, 5, 101, 0, 0, 821, 822, 5, 99, 0, 0, 822, 823, 5, 116, 0, 0, 823, 152, 1, 0, 0, 0, 824, 825, 5, 99, 0, 0, 825, 826, 5, 97, 0, 0, 826, 827, 5, 108, 0, 0, 827, 828, 5, 108, 0, 0, 828, 154, 1, 0, 0, 0, 829, 830, 5, 119, 0, 0, 830, 831, 5, 97, 0, 0, 831, 832, 5, 116, 0, 0, 832, 833, 5, 99, 0, 0, 833, 834, 5, 104, 0, 0, 834, 835, 5, 45, 0, 0, 835, 836, 5, 115, 0, 0, 836, 837, 5, 116, 0, 0, 837, 838, 5, 97, 0, 0, 838, 839, 5, 114, 0, 0, 839, 840, 5, 116, 0, 0, 840, 156, 1, 0, 0, 0, 841, 842, 5, 119, 0, 0, 842, 843, 5, 97, 0, 0, 843, 844, 5, 116, 0, 0, 844, 845, 5, 99, 0, 0, 845, 846, 5, 104, 0, 0, 846, 847, 5, 45, 0, 0, 847, 848, 5, 115, 0, 0, 848, 849, 5, 116, 0, 0, 849, 850, 5, 111, 0, 0, 850, 851, 5, 112, 0, 0, 851, 158, 1, 0, 0, 0, 852, 853, 5, 115, 0, 0, 853, 854, 5, 117, 0, 0, 854, 855, 5, 98, 0, 0, 855, 856, 5, 115, 0, 0, 856, 857, 5, 99, 0, 0, 857, 858, 5, 114, 0, 0, 858, 859, 5, 105, 0, 0, 859, 860, 5, 98, 0, 0, 860, 861, 5, 101, 0, 0, 861, 160, 1, 0, 0, 0, 862, 863, 5, 117, 0, 0, 863, 864, 5, 110, 0, 0, 864, 865, 5, 115, 0, 0, 865, 866, 5, 117, 0, 0, 866, 867, 5, 98, 0, 0, 867, 868, 5, 115, 0, 0, 868, 869, 5, 99, 0, 0, 869, 870, 5, 114, 0, 0, 870, 871, 5, 105, 0, 0, 871, 872, 5, 98, 0, 0, 872, 873, 5, 101, 0, 0, 873, 162, 1, 0, 0, 0, 874, 875, 5, 111, 0, 0, 875, 876, 5, 112, 0, 0, 876, 877, 5, 116, 0, 0, 877, 878, 5, 105, 0, 0, 878, 879, 5, 109, 0, 0, 879, 880, 5, 105, 0, 0, 880, 881, 5, 115, 0, 0, 881, 882, 5, 116, 0, 0, 882, 883, 5, 105, 0, 0, 883, 884, 5, 99, 0, 0, 884, 885, 5, 45, 0, 0, 885, 886, 5, 114, 0, 0, 886, 887, 5, 101, 0, 0, 887, 888, 5, 103, 0, 0, 888, 889, 5, 105, 0, 0, 889, 890, 5, 115, 0, 0, 890, 891, 5, 116, 0, 0, 891, 892, 5, 101, 0, 0, 892, 893, 5, 114, 0, 0, 893, 164, 1, 0, 0, 0, 894, 895, 5, 99, 0, 0, 895, 896, 5, 114, 0, 0, 896, 897, 5, 100, 0, 0, 897, 898, 5, 116, 0, 0, 898, 166, 1, 0, 0, 0, 899, 900, 5, 111, 0, 0, 900, 901, 5, 112, 0, 0, 901, 902, 5, 116, 0, 0, 902, 903, 5, 105, 0, 0, 903, 904, 5, 111, 0, 0, 904, 905, 5, 110, 0, 0, 905, 906, 5, 97, 0, 0, 906, 907, 5, 108, 0, 0, 907, 908, 5, 45, 0, 0, 908, 909, 5, 111, 0, 0, 909, 910, 5, 110, 0, 0, 910, 911, 5, 101, 0, 0, 911, 168, 1, 0, 0, 0, 912, 913, 5, 101, 0, 0, 913, 914, 5, 120, 0, 0, 914, 915, 5, 97, 0, 0, 915, 916, 5, 99, 0, 0, 916, 917, 5, 116, 0, 0, 917, 918, 5, 108, 0, 0, 918, 919, 5, 121, 0, 0, 919, 920, 5, 45, 0, 0, 920, 921, 5, 111, 0, 0, 921, 922, 5, 110, 0, 0, 922, 923, 5, 101, 0, 0, 923, 170, 1, 0, 0, 0, 924, 925, 5, 109, 0, 0, 925, 926, 5, 97, 0, 0, 926, 927, 5, 110, 0, 0, 927, 928, 5, 121, 0, 0, 928, 929, 5, 45, 0, 0, 929, 930, 5, 117, 0, 0, 930, 931, 5, 110, 0, 0, 931, 932, 5, 105, 0, 0, 932, 933, 5, 113, 0, 0, 933, 934, 5, 117, 0, 0, 934, 935, 5, 101, 0, 0, 935, 172, 1, 0, 0, 0, 936, 937, 5, 109, 0, 0, 937, 938, 5, 97, 0, 0, 938, 939, 5, 110, 0, 0, 939, 940, 5, 121, 0, 0, 940, 174, 1, 0, 0, 0, 941, 942, 5, 111, 0, 0, 942, 943, 5, 114, 0, 0, 943, 944, 5, 100, 0, 0, 944, 945, 5, 101, 0, 0, 945, 946, 5, 114, 0, 0, 946, 947, 5, 101, 0, 0, 947, 948, 5, 100, 0, 0, 948, 176, 1, 0, 0, 0, 949, 950, 5, 117, 0, 0, 950, 951, 5, 110, 0, 0, 951, 952, 5, 105, 0, 0, 952, 953, 5, 116, 0, 0, 953, 178, 1, 0, 0, 0, 954, 955, 5, 119, 0, 0, 955, 956, 5, 97, 0, 0, 956, 957, 5, 116, 0, 0, 957, 958, 5, 99, 0, 0, 958, 959, 5, 104, 0, 0, 959, 960, 5, 45, 0, 0, 960, 961, 5, 104, 0, 0, 961, 962, 5, 97, 0, 0, 962, 963, 5, 110, 0, 0, 963, 964, 5, 100, 0, 0, 964, 965, 5, 108, 0, 0, 965, 966, 5, 101, 0, 0, 966, 180, 1, 0, 0, 0, 967, 968, 5, 109, 0, 0, 968, 969, 5, 101, 0, 0, 969, 970, 5, 115, 0, 0, 970, 971, 5, 115, 0, 0, 971, 972, 5, 97, 0, 0, 972, 973, 5, 103, 0, 0, 973, 974, 5, 101, 0, 0, 974, 182, 1, 0, 0, 0, 975, 976, 5, 97, 0, 0, 976, 977, 5, 116, 0, 0, 977, 978, 5, 111, 0, 0, 978, 979, 5, 109, 0, 0, 979, 980, 5, 45, 0, 0, 980, 981, 5, 114, 0, 0, 981, 982, 5, 101, 0, 0, 982, 983, 5, 102, 0, 0, 983, 184, 1, 0, 0, 0, 984, 985, 5, 105, 0, 0, 985, 986, 5, 110, 0, 0, 986, 987, 5, 116, 0, 0, 987, 988, 5, 101, 0, 0, 988, 989, 5, 114, 0, 0, 989, 990, 5, 102, 0, 0, 990, 991, 5, 97, 0, 0, 991, 992, 5, 99, 0, 0, 992, 993, 5, 101, 0, 0, 993, 994, 5, 45, 0, 0, 994, 995, 5, 114, 0, 0, 995, 996, 5, 101, 0, 0, 996, 997, 5, 102, 0, 0, 997, 186, 1, 0, 0, 0, 998, 999, 5, 111, 0, 0, 999, 1000, 5, 112, 0, 0, 1000, 1001, 5, 116, 0, 0, 1001, 1002, 5, 105, 0, 0, 1002, 1003, 5, 111, 0, 0, 1003, 1004, 5, 110, 0, 0, 1004, 1005, 5, 97, 0, 0, 1005, 1006, 5, 108, 0, 0, 1006, 188, 1, 0, 0, 0, 1007, 1008, 5, 108, 0, 0, 1008, 1009, 5, 105, 0, 0, 1009, 1010, 5, 115, 0, 0, 1010, 1011, 5, 116, 0, 0, 1011, 190, 1, 0, 0, 0, 1012, 1013, 5, 114, 0, 0, 1013, 1014, 5, 101, 0, 0, 1014, 1015, 5, 99, 0, 0, 1015, 1016, 5, 111, 0, 0, 1016, 1017, 5, 114, 0, 0, 1017, 1018, 5, 100, 0, 0, 1018, 192, 1, 0, 0, 0, 1019, 1020, 5, 98, 0, 0, 1020, 1021, 5, 111, 0, 0, 1021, 1022, 5, 111, 0, 0, 1022, 1023, 5, 108, 0, 0, 1023, 194, 1, 0, 0, 0, 1024, 1025, 5, 98, 0, 0, 1025, 1026, 5, 121, 0, 0, 1026, 1027, 5, 116, 0, 0, 1027, 1028, 5, 101, 0, 0, 1028, 1029, 5, 115, 0, 0, 1029, 196, 1, 0, 0, 0, 1030, 1031, 5, 100, 0, 0, 1031, 1032, 5, 111, 0, 0, 1032, 1033, 5, 117, 0, 0, 1033, 1034, 5, 98, 0, 0, 1034, 1035, 5, 108, 0, 0, 1035, 1036, 5, 101, 0, 0, 1036, 198, 1, 0, 0, 0, 1037, 1038, 5, 105, 0, 0, 1038, 1039, 5, 110, 0, 0, 1039, 1040, 5, 116, 0, 0, 1040, 1041, 5, 51, 0, 0, 1041, 1042, 5, 50, 0, 0, 1042, 200, 1, 0, 0, 0, 1043, 1044, 5, 105, 0, 0, 1044, 1045, 5, 110, 0, 0, 1045, 1046, 5, 116, 0, 0, 1046, 1047, 5, 54, 0, 0, 1047, 1048, 5, 52, 0, 0, 1048, 202, 1, 0, 0, 0, 1049, 1050, 5, 115, 0, 0, 1050, 1051, 5, 116, 0, 0, 1051, 1052, 5, 114, 0, 0, 1052, 1053, 5, 105, 0, 0, 1053, 1054, 5, 110, 0, 0, 1054, 1055, 5, 103, 0, 0, 1055, 204, 1, 0, 0, 0, 1056, 1057, 5, 117, 0, 0, 1057, 1058, 5, 105, 0, 0, 1058, 1059, 5, 110, 0, 0, 1059, 1060, 5, 116, 0, 0, 1060, 1061, 5, 51, 0, 0, 1061, 1062, 5, 50, 0, 0, 1062, 206, 1, 0, 0, 0, 1063, 1064, 5, 117, 0, 0, 1064, 1065, 5, 105, 0, 0, 1065, 1066, 5, 110, 0, 0, 1066, 1067, 5, 116, 0, 0, 1067, 1068, 5, 54, 0, 0, 1068, 1069, 5, 52, 0, 0, 1069, 208, 1, 0, 0, 0, 1070, 1071, 5, 116, 0, 0, 1071, 1072, 5, 114, 0, 0, 1072, 1073, 5, 117, 0, 0, 1073, 1074, 5, 101, 0, 0, 1074, 210, 1, 0, 0, 0, 1075, 1076, 5, 102, 0, 0, 1076, 1077, 5, 97, 0, 0, 1077, 1078, 5, 108, 0, 0, 1078, 1079, 5, 115, 0, 0, 1079, 1080, 5, 101, 0, 0, 1080, 212, 1, 0, 0, 0, 1081, 1082, 5, 110, 0, 0, 1082, 1083, 5, 117, 0, 0, 1083, 1084, 5, 108, 0, 0, 1084, 1085, 5, 108, 0, 0, 1085, 214, 1, 0, 0, 0, 1086, 1087, 5, 45, 0, 0, 1087, 1088, 5, 62, 0, 0, 1088, 216, 1, 0, 0, 0, 1089, 1090, 5, 58, 0, 0, 1090, 218, 1, 0, 0, 0, 1091, 1092, 5, 59, 0, 0, 1092, 220, 1, 0, 0, 0, 1093, 1094, 5, 44, 0, 0, 1094, 222, 1, 0, 0, 0, 1095, 1096, 5, 46, 0, 0, 1096, 224, 1, 0, 0, 0, 1097, 1098, 5, 123, 0, 0, 1098, 226, 1, 0, 0, 0, 1099, 1100, 5, 125, 0, 0, 1100, 228, 1, 0, 0, 0, 1101, 1102, 5, 91, 0, 0, 1102, 230, 1, 0, 0, 0, 1103, 1104, 5, 93, 0, 0, 1104, 232, 1, 0, 0, 0, 1105, 1106, 5, 40, 0, 0, 1106, 234, 1, 0, 0, 0, 1107, 1108, 5, 41, 0, 0, 1108, 236, 1, 0, 0, 0, 1109, 1110, 5, 60, 0, 0, 1110, 238, 1, 0, 0, 0, 1111, 1112, 5, 62, 0, 0, 1112, 240, 1, 0, 0, 0, 1113, 1114, 5, 38, 0, 0, 1114, 242, 1, 0, 0, 0, 1115, 1116, 5, 61, 0, 0, 1116, 244, 1, 0, 0, 0, 1117, 1119, 5, 45, 0, 0, 1118, 1117, 1, 0, 0, 0, 1118, 1119, 1, 0, 0, 0, 1119, 1121, 1, 0, 0, 0, 1120, 1122, 7, 0, 0, 0, 1121, 1120, 1, 0, 0, 0, 1122, 1123, 1, 0, 0, 0, 1123, 1121, 1, 0, 0, 0, 1123, 1124, 1, 0, 0, 0, 1124, 246, 1, 0, 0, 0, 1125, 1127, 5, 45, 0, 0, 1126, 1125, 1, 0, 0, 0, 1126, 1127, 1, 0, 0, 0, 1127, 1136, 1, 0, 0, 0, 1128, 1137, 5, 48, 0, 0, 1129, 1133, 7, 1, 0, 0, 1130, 1132, 7, 0, 0, 0, 1131, 1130, 1, 0, 0, 0, 1132, 1135, 1, 0, 0, 0, 1133, 1131, 1, 0, 0, 0, 1133, 1134, 1, 0, 0, 0, 1134, 1137, 1, 0, 0, 0, 1135, 1133, 1, 0, 0, 0, 1136, 1128, 1, 0, 0, 0, 1136, 1129, 1, 0, 0, 0, 1137, 1144, 1, 0, 0, 0, 1138, 1140, 5, 46, 0, 0, 1139, 1141, 7, 0, 0, 0, 1140, 1139, 1, 0, 0, 0, 1141, 1142, 1, 0, 0, 0, 1142, 1140, 1, 0, 0, 0, 1142, 1143, 1, 0, 0, 0, 1143, 1145, 1, 0, 0, 0, 1144, 1138, 1, 0, 0, 0, 1144, 1145, 1, 0, 0, 0, 1145, 1155, 1, 0, 0, 0, 1146, 1148, 7, 2, 0, 0, 1147, 1149, 7, 3, 0, 0, 1148, 1147, 1, 0, 0, 0, 1148, 1149, 1, 0, 0, 0, 1149, 1151, 1, 0, 0, 0, 1150, 1152, 7, 0, 0, 0, 1151, 1150, 1, 0, 0, 0, 1152, 1153, 1, 0, 0, 0, 1153, 1151, 1, 0, 0, 0, 1153, 1154, 1, 0, 0, 0, 1154, 1156, 1, 0, 0, 0, 1155, 1146, 1, 0, 0, 0, 1155, 1156, 1, 0, 0, 0, 1156, 248, 1, 0, 0, 0, 1157, 1161, 7, 4, 0, 0, 1158, 1160, 7, 5, 0, 0, 1159, 1158, 1, 0, 0, 0, 1160, 1163, 1, 0, 0, 0, 1161, 1159, 1, 0, 0, 0, 1161, 1162, 1, 0, 0, 0, 1162, 250, 1, 0, 0, 0, 1163, 1161, 1, 0, 0, 0, 1164, 1169, 5, 34, 0, 0, 1165, 1168, 3, 253, 126, 0, 1166, 1168, 8, 6, 0, 0, 1167, 1165, 1, 0, 0, 0, 1167, 1166, 1, 0, 0, 0, 1168, 1171, 1, 0, 0, 0, 1169, 1167, 1, 0, 0, 0, 1169, 1170, 1, 0, 0, 0, 1170, 1172, 1, 0, 0, 0, 1171, 1169, 1, 0, 0, 0, 1172, 1173, 5, 34, 0, 0, 1173, 252, 1, 0, 0, 0, 1174, 1182, 5, 92, 0, 0, 1175, 1183, 7, 7, 0, 0, 1176, 1177, 5, 117, 0, 0, 1177, 1178, 3, 255, 127, 0, 1178, 1179, 3, 255, 127, 0, 1179, 1180, 3, 255, 127, 0, 1180, 1181, 3, 255, 127, 0, 1181, 1183, 1, 0, 0, 0, 1182, 1175, 1, 0, 0, 0, 1182, 1176, 1, 0, 0, 0, 1183, 254, 1, 0, 0, 0, 1184, 1185, 7, 8, 0, 0, 1185, 256, 1, 0, 0, 0, 1186, 1187, 5, 47, 0, 0, 1187, 1188, 5, 47, 0, 0, 1188, 1192, 1, 0, 0, 0, 1189, 1191, 8, 9, 0, 0, 1190, 1189, 1, 0, 0, 0, 1191, 1194, 1, 0, 0, 0, 1192, 1190, 1, 0, 0, 0, 1192, 1193, 1, 0, 0, 0, 1193, 1195, 1, 0, 0, 0, 1194, 1192, 1, 0, 0, 0, 1195, 1196, 6, 128, 0, 0, 1196, 258, 1, 0, 0, 0, 1197, 1198, 5, 47, 0, 0, 1198, 1199, 5, 42, 0, 0, 1199, 1203, 1, 0, 0, 0, 1200, 1202, 9, 0, 0, 0, 1201, 1200, 1, 0, 0, 0, 1202, 1205, 1, 0, 0, 0, 1203, 1204, 1, 0, 0, 0, 1203, 1201, 1, 0, 0, 0, 1204, 1206, 1, 0, 0, 0, 1205, 1203, 1, 0, 0, 0, 1206, 1207, 5, 42, 0, 0, 1207, 1208, 5, 47, 0, 0, 1208, 1209, 1, 0, 0, 0, 1209, 1210, 6, 129, 0, 0, 1210, 260, 1, 0, 0, 0, 1211, 1213, 7, 10, 0, 0, 1212, 1211, 1, 0, 0, 0, 1213, 1214, 1, 0, 0, 0, 1214, 1212, 1, 0, 0, 0, 1214, 1215, 1, 0, 0, 0, 1215, 1216, 1, 0, 0, 0, 1216, 1217, 6, 130, 0, 0, 1217, 262, 1, 0, 0, 0, 18, 0, 1118, 1123, 1126, 1133, 1136, 1142, 1144, 1148, 1153, 1155, 1161, 1167, 1169, 1182, 1192, 1203, 1214, 1, 0, 1, 0] \ No newline at end of file diff --git a/src/capability-language/generated/QuixosCapabilityLexer.tokens b/src/capability-language/generated/QuixosCapabilityLexer.tokens index ed12769..59cfd6f 100644 --- a/src/capability-language/generated/QuixosCapabilityLexer.tokens +++ b/src/capability-language/generated/QuixosCapabilityLexer.tokens @@ -1,229 +1,251 @@ WORKSPACE=1 -TYPE=2 -OBJECT=3 -STORABLE=4 -IMPLEMENTS=5 -REF=6 -FRAGMENT=7 -IMPORT=8 -EXTERNAL=9 -ATOM=10 -INTERFACE=11 -INTERFACES=12 -PACKAGE=13 -VALUE=14 -RELATION=15 -OPERATION=16 -FUNCTION=17 -CONSTRUCTOR=18 -CONSTRUCTS=19 -INPUT=20 -CONFORM=21 -AS=22 -BIND=23 -STATIC=24 -TO=25 -PRIVATE=26 -SHARED=27 -STATE=28 -EDGE=29 -PROJECTION=30 -WITH=31 -USING=32 -VIA=33 -MATERIALIZE=34 -IF=35 -ABSENT=36 -ON=37 -POLICY=38 -DEFAULT=39 -SOURCE=40 -REPOSITORY=41 -COMMIT=42 -REVISION=43 -SEMANTIC_MAJOR=44 -ON_DELETE=45 -RETAIN_OTHER=46 -KEYED=47 -PUBLIC_TRAVERSAL=48 -ID=49 -DOC=50 -MODE=51 -EMITS=52 -RECEIVER=53 -REQUIRES=54 -ANY=55 -GET=56 -SET=57 -WATCH=58 -START=59 -STOP=60 -READ=61 -WRITE=62 -RESOLVE=63 -CONNECT=64 -DISCONNECT=65 -CALL=66 -WATCH_START=67 -WATCH_STOP=68 -SUBSCRIBE=69 -UNSUBSCRIBE=70 -OPTIMISTIC_REGISTER=71 -CRDT=72 -OPTIONAL_ONE=73 -EXACTLY_ONE=74 -MANY_UNIQUE=75 -MANY=76 -ORDERED=77 -UNIT=78 -WATCH_HANDLE=79 -MESSAGE=80 -ATOM_REF=81 -INTERFACE_REF=82 -OPTIONAL=83 -LIST=84 -RECORD=85 -BOOL=86 -BYTES=87 -DOUBLE=88 -INT32=89 -INT64=90 -STRING=91 -UINT32=92 -UINT64=93 -TRUE=94 -FALSE=95 -NULL=96 -ARROW=97 -COLON=98 -SEMI=99 -COMMA=100 -DOT=101 -LBRACE=102 -RBRACE=103 -LBRACK=104 -RBRACK=105 -LPAREN=106 -RPAREN=107 -LT=108 -GT=109 -AMP=110 -EQUAL=111 -INTEGER=112 -JSON_NUMBER=113 -IDENTIFIER=114 -STRING_LITERAL=115 -LINE_COMMENT=116 -BLOCK_COMMENT=117 -WS=118 +QUERY=2 +ROOT=3 +DOCUMENT=4 +FRAGMENTS=5 +VIEW=6 +MAX=7 +ALLOW=8 +POLL=9 +QUERYABLE=10 +RPC=11 +QUERY_REASON=12 +TYPE=13 +OBJECT=14 +STORABLE=15 +IMPLEMENTS=16 +REF=17 +FRAGMENT=18 +IMPORT=19 +EXTERNAL=20 +ATOM=21 +INTERFACE=22 +INTERFACES=23 +PACKAGE=24 +VALUE=25 +RELATION=26 +OPERATION=27 +FUNCTION=28 +CONSTRUCTOR=29 +CONSTRUCTS=30 +INPUT=31 +CONFORM=32 +AS=33 +BIND=34 +STATIC=35 +TO=36 +PRIVATE=37 +SHARED=38 +STATE=39 +EDGE=40 +PROJECTION=41 +WITH=42 +USING=43 +VIA=44 +MATERIALIZE=45 +IF=46 +ABSENT=47 +ON=48 +POLICY=49 +DEFAULT=50 +SOURCE=51 +REPOSITORY=52 +COMMIT=53 +REVISION=54 +SEMANTIC_MAJOR=55 +ON_DELETE=56 +RETAIN_OTHER=57 +KEYED=58 +PUBLIC_TRAVERSAL=59 +ID=60 +DOC=61 +MODE=62 +EMITS=63 +RECEIVER=64 +REQUIRES=65 +ANY=66 +GET=67 +SET=68 +WATCH=69 +START=70 +STOP=71 +READ=72 +WRITE=73 +RESOLVE=74 +CONNECT=75 +DISCONNECT=76 +CALL=77 +WATCH_START=78 +WATCH_STOP=79 +SUBSCRIBE=80 +UNSUBSCRIBE=81 +OPTIMISTIC_REGISTER=82 +CRDT=83 +OPTIONAL_ONE=84 +EXACTLY_ONE=85 +MANY_UNIQUE=86 +MANY=87 +ORDERED=88 +UNIT=89 +WATCH_HANDLE=90 +MESSAGE=91 +ATOM_REF=92 +INTERFACE_REF=93 +OPTIONAL=94 +LIST=95 +RECORD=96 +BOOL=97 +BYTES=98 +DOUBLE=99 +INT32=100 +INT64=101 +STRING=102 +UINT32=103 +UINT64=104 +TRUE=105 +FALSE=106 +NULL=107 +ARROW=108 +COLON=109 +SEMI=110 +COMMA=111 +DOT=112 +LBRACE=113 +RBRACE=114 +LBRACK=115 +RBRACK=116 +LPAREN=117 +RPAREN=118 +LT=119 +GT=120 +AMP=121 +EQUAL=122 +INTEGER=123 +JSON_NUMBER=124 +IDENTIFIER=125 +STRING_LITERAL=126 +LINE_COMMENT=127 +BLOCK_COMMENT=128 +WS=129 'workspace'=1 -'type'=2 -'object'=3 -'storable'=4 -'implements'=5 -'ref'=6 -'fragment'=7 -'import'=8 -'external'=9 -'atom'=10 -'interface'=11 -'interfaces'=12 -'package'=13 -'value'=14 -'relation'=15 -'operation'=16 -'function'=17 -'constructor'=18 -'constructs'=19 -'input'=20 -'conform'=21 -'as'=22 -'bind'=23 -'static'=24 -'to'=25 -'private'=26 -'shared'=27 -'state'=28 -'edge'=29 -'projection'=30 -'with'=31 -'using'=32 -'via'=33 -'materialize'=34 -'if'=35 -'absent'=36 -'on'=37 -'policy'=38 -'default'=39 -'source'=40 -'repository'=41 -'commit'=42 -'revision'=43 -'semantic-major'=44 -'on-delete'=45 -'retain-other'=46 -'keyed'=47 -'public-traversal'=48 -'id'=49 -'doc'=50 -'mode'=51 -'emits'=52 -'receiver'=53 -'requires'=54 -'any'=55 -'get'=56 -'set'=57 -'watch'=58 -'start'=59 -'stop'=60 -'read'=61 -'write'=62 -'resolve'=63 -'connect'=64 -'disconnect'=65 -'call'=66 -'watch-start'=67 -'watch-stop'=68 -'subscribe'=69 -'unsubscribe'=70 -'optimistic-register'=71 -'crdt'=72 -'optional-one'=73 -'exactly-one'=74 -'many-unique'=75 -'many'=76 -'ordered'=77 -'unit'=78 -'watch-handle'=79 -'message'=80 -'atom-ref'=81 -'interface-ref'=82 -'optional'=83 -'list'=84 -'record'=85 -'bool'=86 -'bytes'=87 -'double'=88 -'int32'=89 -'int64'=90 -'string'=91 -'uint32'=92 -'uint64'=93 -'true'=94 -'false'=95 -'null'=96 -'->'=97 -':'=98 -';'=99 -','=100 -'.'=101 -'{'=102 -'}'=103 -'['=104 -']'=105 -'('=106 -')'=107 -'<'=108 -'>'=109 -'&'=110 -'='=111 +'query'=2 +'root'=3 +'document'=4 +'fragments'=5 +'view'=6 +'max'=7 +'allow'=8 +'poll'=9 +'queryable'=10 +'rpc'=11 +'query-reason'=12 +'type'=13 +'object'=14 +'storable'=15 +'implements'=16 +'ref'=17 +'fragment'=18 +'import'=19 +'external'=20 +'atom'=21 +'interface'=22 +'interfaces'=23 +'package'=24 +'value'=25 +'relation'=26 +'operation'=27 +'function'=28 +'constructor'=29 +'constructs'=30 +'input'=31 +'conform'=32 +'as'=33 +'bind'=34 +'static'=35 +'to'=36 +'private'=37 +'shared'=38 +'state'=39 +'edge'=40 +'projection'=41 +'with'=42 +'using'=43 +'via'=44 +'materialize'=45 +'if'=46 +'absent'=47 +'on'=48 +'policy'=49 +'default'=50 +'source'=51 +'repository'=52 +'commit'=53 +'revision'=54 +'semantic-major'=55 +'on-delete'=56 +'retain-other'=57 +'keyed'=58 +'public-traversal'=59 +'id'=60 +'doc'=61 +'mode'=62 +'emits'=63 +'receiver'=64 +'requires'=65 +'any'=66 +'get'=67 +'set'=68 +'watch'=69 +'start'=70 +'stop'=71 +'read'=72 +'write'=73 +'resolve'=74 +'connect'=75 +'disconnect'=76 +'call'=77 +'watch-start'=78 +'watch-stop'=79 +'subscribe'=80 +'unsubscribe'=81 +'optimistic-register'=82 +'crdt'=83 +'optional-one'=84 +'exactly-one'=85 +'many-unique'=86 +'many'=87 +'ordered'=88 +'unit'=89 +'watch-handle'=90 +'message'=91 +'atom-ref'=92 +'interface-ref'=93 +'optional'=94 +'list'=95 +'record'=96 +'bool'=97 +'bytes'=98 +'double'=99 +'int32'=100 +'int64'=101 +'string'=102 +'uint32'=103 +'uint64'=104 +'true'=105 +'false'=106 +'null'=107 +'->'=108 +':'=109 +';'=110 +','=111 +'.'=112 +'{'=113 +'}'=114 +'['=115 +']'=116 +'('=117 +')'=118 +'<'=119 +'>'=120 +'&'=121 +'='=122 diff --git a/src/capability-language/generated/QuixosCapabilityLexer.ts b/src/capability-language/generated/QuixosCapabilityLexer.ts index c3baf4c..6a84196 100644 --- a/src/capability-language/generated/QuixosCapabilityLexer.ts +++ b/src/capability-language/generated/QuixosCapabilityLexer.ts @@ -5,130 +5,143 @@ import { Token } from "antlr4ng"; export class QuixosCapabilityLexer extends antlr.Lexer { public static readonly WORKSPACE = 1; - public static readonly TYPE = 2; - public static readonly OBJECT = 3; - public static readonly STORABLE = 4; - public static readonly IMPLEMENTS = 5; - public static readonly REF = 6; - public static readonly FRAGMENT = 7; - public static readonly IMPORT = 8; - public static readonly EXTERNAL = 9; - public static readonly ATOM = 10; - public static readonly INTERFACE = 11; - public static readonly INTERFACES = 12; - public static readonly PACKAGE = 13; - public static readonly VALUE = 14; - public static readonly RELATION = 15; - public static readonly OPERATION = 16; - public static readonly FUNCTION = 17; - public static readonly CONSTRUCTOR = 18; - public static readonly CONSTRUCTS = 19; - public static readonly INPUT = 20; - public static readonly CONFORM = 21; - public static readonly AS = 22; - public static readonly BIND = 23; - public static readonly STATIC = 24; - public static readonly TO = 25; - public static readonly PRIVATE = 26; - public static readonly SHARED = 27; - public static readonly STATE = 28; - public static readonly EDGE = 29; - public static readonly PROJECTION = 30; - public static readonly WITH = 31; - public static readonly USING = 32; - public static readonly VIA = 33; - public static readonly MATERIALIZE = 34; - public static readonly IF = 35; - public static readonly ABSENT = 36; - public static readonly ON = 37; - public static readonly POLICY = 38; - public static readonly DEFAULT = 39; - public static readonly SOURCE = 40; - public static readonly REPOSITORY = 41; - public static readonly COMMIT = 42; - public static readonly REVISION = 43; - public static readonly SEMANTIC_MAJOR = 44; - public static readonly ON_DELETE = 45; - public static readonly RETAIN_OTHER = 46; - public static readonly KEYED = 47; - public static readonly PUBLIC_TRAVERSAL = 48; - public static readonly ID = 49; - public static readonly DOC = 50; - public static readonly MODE = 51; - public static readonly EMITS = 52; - public static readonly RECEIVER = 53; - public static readonly REQUIRES = 54; - public static readonly ANY = 55; - public static readonly GET = 56; - public static readonly SET = 57; - public static readonly WATCH = 58; - public static readonly START = 59; - public static readonly STOP = 60; - public static readonly READ = 61; - public static readonly WRITE = 62; - public static readonly RESOLVE = 63; - public static readonly CONNECT = 64; - public static readonly DISCONNECT = 65; - public static readonly CALL = 66; - public static readonly WATCH_START = 67; - public static readonly WATCH_STOP = 68; - public static readonly SUBSCRIBE = 69; - public static readonly UNSUBSCRIBE = 70; - public static readonly OPTIMISTIC_REGISTER = 71; - public static readonly CRDT = 72; - public static readonly OPTIONAL_ONE = 73; - public static readonly EXACTLY_ONE = 74; - public static readonly MANY_UNIQUE = 75; - public static readonly MANY = 76; - public static readonly ORDERED = 77; - public static readonly UNIT = 78; - public static readonly WATCH_HANDLE = 79; - public static readonly MESSAGE = 80; - public static readonly ATOM_REF = 81; - public static readonly INTERFACE_REF = 82; - public static readonly OPTIONAL = 83; - public static readonly LIST = 84; - public static readonly RECORD = 85; - public static readonly BOOL = 86; - public static readonly BYTES = 87; - public static readonly DOUBLE = 88; - public static readonly INT32 = 89; - public static readonly INT64 = 90; - public static readonly STRING = 91; - public static readonly UINT32 = 92; - public static readonly UINT64 = 93; - public static readonly TRUE = 94; - public static readonly FALSE = 95; - public static readonly NULL = 96; - public static readonly ARROW = 97; - public static readonly COLON = 98; - public static readonly SEMI = 99; - public static readonly COMMA = 100; - public static readonly DOT = 101; - public static readonly LBRACE = 102; - public static readonly RBRACE = 103; - public static readonly LBRACK = 104; - public static readonly RBRACK = 105; - public static readonly LPAREN = 106; - public static readonly RPAREN = 107; - public static readonly LT = 108; - public static readonly GT = 109; - public static readonly AMP = 110; - public static readonly EQUAL = 111; - public static readonly INTEGER = 112; - public static readonly JSON_NUMBER = 113; - public static readonly IDENTIFIER = 114; - public static readonly STRING_LITERAL = 115; - public static readonly LINE_COMMENT = 116; - public static readonly BLOCK_COMMENT = 117; - public static readonly WS = 118; + public static readonly QUERY = 2; + public static readonly ROOT = 3; + public static readonly DOCUMENT = 4; + public static readonly FRAGMENTS = 5; + public static readonly VIEW = 6; + public static readonly MAX = 7; + public static readonly ALLOW = 8; + public static readonly POLL = 9; + public static readonly QUERYABLE = 10; + public static readonly RPC = 11; + public static readonly QUERY_REASON = 12; + public static readonly TYPE = 13; + public static readonly OBJECT = 14; + public static readonly STORABLE = 15; + public static readonly IMPLEMENTS = 16; + public static readonly REF = 17; + public static readonly FRAGMENT = 18; + public static readonly IMPORT = 19; + public static readonly EXTERNAL = 20; + public static readonly ATOM = 21; + public static readonly INTERFACE = 22; + public static readonly INTERFACES = 23; + public static readonly PACKAGE = 24; + public static readonly VALUE = 25; + public static readonly RELATION = 26; + public static readonly OPERATION = 27; + public static readonly FUNCTION = 28; + public static readonly CONSTRUCTOR = 29; + public static readonly CONSTRUCTS = 30; + public static readonly INPUT = 31; + public static readonly CONFORM = 32; + public static readonly AS = 33; + public static readonly BIND = 34; + public static readonly STATIC = 35; + public static readonly TO = 36; + public static readonly PRIVATE = 37; + public static readonly SHARED = 38; + public static readonly STATE = 39; + public static readonly EDGE = 40; + public static readonly PROJECTION = 41; + public static readonly WITH = 42; + public static readonly USING = 43; + public static readonly VIA = 44; + public static readonly MATERIALIZE = 45; + public static readonly IF = 46; + public static readonly ABSENT = 47; + public static readonly ON = 48; + public static readonly POLICY = 49; + public static readonly DEFAULT = 50; + public static readonly SOURCE = 51; + public static readonly REPOSITORY = 52; + public static readonly COMMIT = 53; + public static readonly REVISION = 54; + public static readonly SEMANTIC_MAJOR = 55; + public static readonly ON_DELETE = 56; + public static readonly RETAIN_OTHER = 57; + public static readonly KEYED = 58; + public static readonly PUBLIC_TRAVERSAL = 59; + public static readonly ID = 60; + public static readonly DOC = 61; + public static readonly MODE = 62; + public static readonly EMITS = 63; + public static readonly RECEIVER = 64; + public static readonly REQUIRES = 65; + public static readonly ANY = 66; + public static readonly GET = 67; + public static readonly SET = 68; + public static readonly WATCH = 69; + public static readonly START = 70; + public static readonly STOP = 71; + public static readonly READ = 72; + public static readonly WRITE = 73; + public static readonly RESOLVE = 74; + public static readonly CONNECT = 75; + public static readonly DISCONNECT = 76; + public static readonly CALL = 77; + public static readonly WATCH_START = 78; + public static readonly WATCH_STOP = 79; + public static readonly SUBSCRIBE = 80; + public static readonly UNSUBSCRIBE = 81; + public static readonly OPTIMISTIC_REGISTER = 82; + public static readonly CRDT = 83; + public static readonly OPTIONAL_ONE = 84; + public static readonly EXACTLY_ONE = 85; + public static readonly MANY_UNIQUE = 86; + public static readonly MANY = 87; + public static readonly ORDERED = 88; + public static readonly UNIT = 89; + public static readonly WATCH_HANDLE = 90; + public static readonly MESSAGE = 91; + public static readonly ATOM_REF = 92; + public static readonly INTERFACE_REF = 93; + public static readonly OPTIONAL = 94; + public static readonly LIST = 95; + public static readonly RECORD = 96; + public static readonly BOOL = 97; + public static readonly BYTES = 98; + public static readonly DOUBLE = 99; + public static readonly INT32 = 100; + public static readonly INT64 = 101; + public static readonly STRING = 102; + public static readonly UINT32 = 103; + public static readonly UINT64 = 104; + public static readonly TRUE = 105; + public static readonly FALSE = 106; + public static readonly NULL = 107; + public static readonly ARROW = 108; + public static readonly COLON = 109; + public static readonly SEMI = 110; + public static readonly COMMA = 111; + public static readonly DOT = 112; + public static readonly LBRACE = 113; + public static readonly RBRACE = 114; + public static readonly LBRACK = 115; + public static readonly RBRACK = 116; + public static readonly LPAREN = 117; + public static readonly RPAREN = 118; + public static readonly LT = 119; + public static readonly GT = 120; + public static readonly AMP = 121; + public static readonly EQUAL = 122; + public static readonly INTEGER = 123; + public static readonly JSON_NUMBER = 124; + public static readonly IDENTIFIER = 125; + public static readonly STRING_LITERAL = 126; + public static readonly LINE_COMMENT = 127; + public static readonly BLOCK_COMMENT = 128; + public static readonly WS = 129; public static readonly channelNames = [ "DEFAULT_TOKEN_CHANNEL", "HIDDEN" ]; public static readonly literalNames = [ - null, "'workspace'", "'type'", "'object'", "'storable'", "'implements'", + null, "'workspace'", "'query'", "'root'", "'document'", "'fragments'", + "'view'", "'max'", "'allow'", "'poll'", "'queryable'", "'rpc'", + "'query-reason'", "'type'", "'object'", "'storable'", "'implements'", "'ref'", "'fragment'", "'import'", "'external'", "'atom'", "'interface'", "'interfaces'", "'package'", "'value'", "'relation'", "'operation'", "'function'", "'constructor'", "'constructs'", "'input'", "'conform'", @@ -150,25 +163,27 @@ export class QuixosCapabilityLexer extends antlr.Lexer { ]; public static readonly symbolicNames = [ - null, "WORKSPACE", "TYPE", "OBJECT", "STORABLE", "IMPLEMENTS", "REF", - "FRAGMENT", "IMPORT", "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", - "PACKAGE", "VALUE", "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", - "CONSTRUCTS", "INPUT", "CONFORM", "AS", "BIND", "STATIC", "TO", - "PRIVATE", "SHARED", "STATE", "EDGE", "PROJECTION", "WITH", "USING", - "VIA", "MATERIALIZE", "IF", "ABSENT", "ON", "POLICY", "DEFAULT", - "SOURCE", "REPOSITORY", "COMMIT", "REVISION", "SEMANTIC_MAJOR", - "ON_DELETE", "RETAIN_OTHER", "KEYED", "PUBLIC_TRAVERSAL", "ID", - "DOC", "MODE", "EMITS", "RECEIVER", "REQUIRES", "ANY", "GET", "SET", - "WATCH", "START", "STOP", "READ", "WRITE", "RESOLVE", "CONNECT", - "DISCONNECT", "CALL", "WATCH_START", "WATCH_STOP", "SUBSCRIBE", - "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", - "MANY_UNIQUE", "MANY", "ORDERED", "UNIT", "WATCH_HANDLE", "MESSAGE", - "ATOM_REF", "INTERFACE_REF", "OPTIONAL", "LIST", "RECORD", "BOOL", - "BYTES", "DOUBLE", "INT32", "INT64", "STRING", "UINT32", "UINT64", - "TRUE", "FALSE", "NULL", "ARROW", "COLON", "SEMI", "COMMA", "DOT", - "LBRACE", "RBRACE", "LBRACK", "RBRACK", "LPAREN", "RPAREN", "LT", - "GT", "AMP", "EQUAL", "INTEGER", "JSON_NUMBER", "IDENTIFIER", "STRING_LITERAL", - "LINE_COMMENT", "BLOCK_COMMENT", "WS" + null, "WORKSPACE", "QUERY", "ROOT", "DOCUMENT", "FRAGMENTS", "VIEW", + "MAX", "ALLOW", "POLL", "QUERYABLE", "RPC", "QUERY_REASON", "TYPE", + "OBJECT", "STORABLE", "IMPLEMENTS", "REF", "FRAGMENT", "IMPORT", + "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", "PACKAGE", "VALUE", + "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", "CONSTRUCTS", + "INPUT", "CONFORM", "AS", "BIND", "STATIC", "TO", "PRIVATE", "SHARED", + "STATE", "EDGE", "PROJECTION", "WITH", "USING", "VIA", "MATERIALIZE", + "IF", "ABSENT", "ON", "POLICY", "DEFAULT", "SOURCE", "REPOSITORY", + "COMMIT", "REVISION", "SEMANTIC_MAJOR", "ON_DELETE", "RETAIN_OTHER", + "KEYED", "PUBLIC_TRAVERSAL", "ID", "DOC", "MODE", "EMITS", "RECEIVER", + "REQUIRES", "ANY", "GET", "SET", "WATCH", "START", "STOP", "READ", + "WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", "WATCH_START", + "WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", + "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", "MANY_UNIQUE", "MANY", "ORDERED", + "UNIT", "WATCH_HANDLE", "MESSAGE", "ATOM_REF", "INTERFACE_REF", + "OPTIONAL", "LIST", "RECORD", "BOOL", "BYTES", "DOUBLE", "INT32", + "INT64", "STRING", "UINT32", "UINT64", "TRUE", "FALSE", "NULL", + "ARROW", "COLON", "SEMI", "COMMA", "DOT", "LBRACE", "RBRACE", "LBRACK", + "RBRACK", "LPAREN", "RPAREN", "LT", "GT", "AMP", "EQUAL", "INTEGER", + "JSON_NUMBER", "IDENTIFIER", "STRING_LITERAL", "LINE_COMMENT", "BLOCK_COMMENT", + "WS" ]; public static readonly modeNames = [ @@ -176,16 +191,17 @@ export class QuixosCapabilityLexer extends antlr.Lexer { ]; public static readonly ruleNames = [ - "WORKSPACE", "TYPE", "OBJECT", "STORABLE", "IMPLEMENTS", "REF", - "FRAGMENT", "IMPORT", "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", - "PACKAGE", "VALUE", "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", - "CONSTRUCTS", "INPUT", "CONFORM", "AS", "BIND", "STATIC", "TO", - "PRIVATE", "SHARED", "STATE", "EDGE", "PROJECTION", "WITH", "USING", - "VIA", "MATERIALIZE", "IF", "ABSENT", "ON", "POLICY", "DEFAULT", - "SOURCE", "REPOSITORY", "COMMIT", "REVISION", "SEMANTIC_MAJOR", - "ON_DELETE", "RETAIN_OTHER", "KEYED", "PUBLIC_TRAVERSAL", "ID", - "DOC", "MODE", "EMITS", "RECEIVER", "REQUIRES", "ANY", "GET", "SET", - "WATCH", "START", "STOP", "READ", "WRITE", "RESOLVE", "CONNECT", + "WORKSPACE", "QUERY", "ROOT", "DOCUMENT", "FRAGMENTS", "VIEW", "MAX", + "ALLOW", "POLL", "QUERYABLE", "RPC", "QUERY_REASON", "TYPE", "OBJECT", + "STORABLE", "IMPLEMENTS", "REF", "FRAGMENT", "IMPORT", "EXTERNAL", + "ATOM", "INTERFACE", "INTERFACES", "PACKAGE", "VALUE", "RELATION", + "OPERATION", "FUNCTION", "CONSTRUCTOR", "CONSTRUCTS", "INPUT", "CONFORM", + "AS", "BIND", "STATIC", "TO", "PRIVATE", "SHARED", "STATE", "EDGE", + "PROJECTION", "WITH", "USING", "VIA", "MATERIALIZE", "IF", "ABSENT", + "ON", "POLICY", "DEFAULT", "SOURCE", "REPOSITORY", "COMMIT", "REVISION", + "SEMANTIC_MAJOR", "ON_DELETE", "RETAIN_OTHER", "KEYED", "PUBLIC_TRAVERSAL", + "ID", "DOC", "MODE", "EMITS", "RECEIVER", "REQUIRES", "ANY", "GET", + "SET", "WATCH", "START", "STOP", "READ", "WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", "WATCH_START", "WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", "MANY_UNIQUE", "MANY", "ORDERED", "UNIT", "WATCH_HANDLE", "MESSAGE", @@ -216,7 +232,7 @@ export class QuixosCapabilityLexer extends antlr.Lexer { public get modeNames(): string[] { return QuixosCapabilityLexer.modeNames; } public static readonly _serializedATN: number[] = [ - 4,0,118,1119,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, + 4,0,129,1218,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, @@ -235,391 +251,429 @@ export class QuixosCapabilityLexer extends antlr.Lexer { 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, - 1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,2, - 1,2,1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,4, - 1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,6,1,6, - 1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8, - 1,8,1,8,1,8,1,8,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1, - 10,1,10,1,10,1,10,1,10,1,10,1,10,1,11,1,11,1,11,1,11,1,11,1,11,1, - 11,1,11,1,11,1,11,1,11,1,12,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,13,1,14,1,14,1,14,1,14,1,14,1,14,1,14,1, - 14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,16,1, - 16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,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,18,1,18,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,22,1,22,1, - 22,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,24,1,24,1,24,1,25,1,25,1, - 25,1,25,1,25,1,25,1,25,1,25,1,26,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,28,1,29,1,29,1, - 29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,30,1,30,1,30,1,30,1, - 30,1,31,1,31,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,33,1,33,1, - 33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,33,1,34,1,34,1,34,1, - 35,1,35,1,35,1,35,1,35,1,35,1,35,1,36,1,36,1,36,1,37,1,37,1,37,1, - 37,1,37,1,37,1,37,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,39,1, - 39,1,39,1,39,1,39,1,39,1,39,1,40,1,40,1,40,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,41,1,42,1,42,1, - 42,1,42,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,43,1, - 43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,44,1,44,1,44,1,44,1, - 44,1,44,1,44,1,44,1,44,1,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1, - 45,1,45,1,45,1,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46,1,46,1,47,1, - 47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,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,50,1,50,1,50,1, - 50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1, - 52,1,52,1,52,1,52,1,53,1,53,1,53,1,53,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,56,1,56,1,56,1,56,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,59,1,59,1, - 59,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1, - 61,1,62,1,62,1,62,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,63,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1, - 64,1,64,1,65,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,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,67,1,67,1, - 67,1,67,1,67,1,67,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1,68,1, - 68,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,1, - 70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1, - 70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,72,1, - 72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,72,1,73,1, - 73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,74,1,74,1, - 74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,74,1,75,1,75,1,75,1, - 75,1,75,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1, - 77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1, - 78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,80,1,80,1,80,1, - 80,1,80,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1, - 81,1,81,1,81,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1, - 82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1, - 84,1,84,1,85,1,85,1,85,1,85,1,85,1,86,1,86,1,86,1,86,1,86,1,86,1, - 87,1,87,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1, - 89,1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1, - 91,1,91,1,91,1,91,1,91,1,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,95,1, - 95,1,95,1,95,1,95,1,96,1,96,1,96,1,97,1,97,1,98,1,98,1,99,1,99,1, - 100,1,100,1,101,1,101,1,102,1,102,1,103,1,103,1,104,1,104,1,105, - 1,105,1,106,1,106,1,107,1,107,1,108,1,108,1,109,1,109,1,110,1,110, - 1,111,3,111,1020,8,111,1,111,4,111,1023,8,111,11,111,12,111,1024, - 1,112,3,112,1028,8,112,1,112,1,112,1,112,5,112,1033,8,112,10,112, - 12,112,1036,9,112,3,112,1038,8,112,1,112,1,112,4,112,1042,8,112, - 11,112,12,112,1043,3,112,1046,8,112,1,112,1,112,3,112,1050,8,112, - 1,112,4,112,1053,8,112,11,112,12,112,1054,3,112,1057,8,112,1,113, - 1,113,5,113,1061,8,113,10,113,12,113,1064,9,113,1,114,1,114,1,114, - 5,114,1069,8,114,10,114,12,114,1072,9,114,1,114,1,114,1,115,1,115, - 1,115,1,115,1,115,1,115,1,115,1,115,3,115,1084,8,115,1,116,1,116, - 1,117,1,117,1,117,1,117,5,117,1092,8,117,10,117,12,117,1095,9,117, - 1,117,1,117,1,118,1,118,1,118,1,118,5,118,1103,8,118,10,118,12,118, - 1106,9,118,1,118,1,118,1,118,1,118,1,118,1,119,4,119,1114,8,119, - 11,119,12,119,1115,1,119,1,119,1,1104,0,120,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,104,209,105,211, - 106,213,107,215,108,217,109,219,110,221,111,223,112,225,113,227, - 114,229,115,231,0,233,0,235,116,237,117,239,118,1,0,11,1,0,48,57, - 1,0,49,57,2,0,69,69,101,101,2,0,43,43,45,45,3,0,65,90,95,95,97,122, - 4,0,48,57,65,90,95,95,97,122,4,0,10,10,13,13,34,34,92,92,8,0,34, - 34,47,47,92,92,98,98,102,102,110,110,114,114,116,116,3,0,48,57,65, - 70,97,102,2,0,10,10,13,13,3,0,9,10,13,13,32,32,1133,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,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0,213,1, - 0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0,0,0,0, - 223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,235,1,0, - 0,0,0,237,1,0,0,0,0,239,1,0,0,0,1,241,1,0,0,0,3,251,1,0,0,0,5,256, - 1,0,0,0,7,263,1,0,0,0,9,272,1,0,0,0,11,283,1,0,0,0,13,287,1,0,0, - 0,15,296,1,0,0,0,17,303,1,0,0,0,19,312,1,0,0,0,21,317,1,0,0,0,23, - 327,1,0,0,0,25,338,1,0,0,0,27,346,1,0,0,0,29,352,1,0,0,0,31,361, - 1,0,0,0,33,371,1,0,0,0,35,380,1,0,0,0,37,392,1,0,0,0,39,403,1,0, - 0,0,41,409,1,0,0,0,43,417,1,0,0,0,45,420,1,0,0,0,47,425,1,0,0,0, - 49,432,1,0,0,0,51,435,1,0,0,0,53,443,1,0,0,0,55,450,1,0,0,0,57,456, - 1,0,0,0,59,461,1,0,0,0,61,472,1,0,0,0,63,477,1,0,0,0,65,483,1,0, - 0,0,67,487,1,0,0,0,69,499,1,0,0,0,71,502,1,0,0,0,73,509,1,0,0,0, - 75,512,1,0,0,0,77,519,1,0,0,0,79,527,1,0,0,0,81,534,1,0,0,0,83,545, - 1,0,0,0,85,552,1,0,0,0,87,561,1,0,0,0,89,576,1,0,0,0,91,586,1,0, - 0,0,93,599,1,0,0,0,95,605,1,0,0,0,97,622,1,0,0,0,99,625,1,0,0,0, - 101,629,1,0,0,0,103,634,1,0,0,0,105,640,1,0,0,0,107,649,1,0,0,0, - 109,658,1,0,0,0,111,662,1,0,0,0,113,666,1,0,0,0,115,670,1,0,0,0, - 117,676,1,0,0,0,119,682,1,0,0,0,121,687,1,0,0,0,123,692,1,0,0,0, - 125,698,1,0,0,0,127,706,1,0,0,0,129,714,1,0,0,0,131,725,1,0,0,0, - 133,730,1,0,0,0,135,742,1,0,0,0,137,753,1,0,0,0,139,763,1,0,0,0, - 141,775,1,0,0,0,143,795,1,0,0,0,145,800,1,0,0,0,147,813,1,0,0,0, - 149,825,1,0,0,0,151,837,1,0,0,0,153,842,1,0,0,0,155,850,1,0,0,0, - 157,855,1,0,0,0,159,868,1,0,0,0,161,876,1,0,0,0,163,885,1,0,0,0, - 165,899,1,0,0,0,167,908,1,0,0,0,169,913,1,0,0,0,171,920,1,0,0,0, - 173,925,1,0,0,0,175,931,1,0,0,0,177,938,1,0,0,0,179,944,1,0,0,0, - 181,950,1,0,0,0,183,957,1,0,0,0,185,964,1,0,0,0,187,971,1,0,0,0, - 189,976,1,0,0,0,191,982,1,0,0,0,193,987,1,0,0,0,195,990,1,0,0,0, - 197,992,1,0,0,0,199,994,1,0,0,0,201,996,1,0,0,0,203,998,1,0,0,0, - 205,1000,1,0,0,0,207,1002,1,0,0,0,209,1004,1,0,0,0,211,1006,1,0, - 0,0,213,1008,1,0,0,0,215,1010,1,0,0,0,217,1012,1,0,0,0,219,1014, - 1,0,0,0,221,1016,1,0,0,0,223,1019,1,0,0,0,225,1027,1,0,0,0,227,1058, - 1,0,0,0,229,1065,1,0,0,0,231,1075,1,0,0,0,233,1085,1,0,0,0,235,1087, - 1,0,0,0,237,1098,1,0,0,0,239,1113,1,0,0,0,241,242,5,119,0,0,242, - 243,5,111,0,0,243,244,5,114,0,0,244,245,5,107,0,0,245,246,5,115, - 0,0,246,247,5,112,0,0,247,248,5,97,0,0,248,249,5,99,0,0,249,250, - 5,101,0,0,250,2,1,0,0,0,251,252,5,116,0,0,252,253,5,121,0,0,253, - 254,5,112,0,0,254,255,5,101,0,0,255,4,1,0,0,0,256,257,5,111,0,0, - 257,258,5,98,0,0,258,259,5,106,0,0,259,260,5,101,0,0,260,261,5,99, - 0,0,261,262,5,116,0,0,262,6,1,0,0,0,263,264,5,115,0,0,264,265,5, - 116,0,0,265,266,5,111,0,0,266,267,5,114,0,0,267,268,5,97,0,0,268, - 269,5,98,0,0,269,270,5,108,0,0,270,271,5,101,0,0,271,8,1,0,0,0,272, - 273,5,105,0,0,273,274,5,109,0,0,274,275,5,112,0,0,275,276,5,108, - 0,0,276,277,5,101,0,0,277,278,5,109,0,0,278,279,5,101,0,0,279,280, - 5,110,0,0,280,281,5,116,0,0,281,282,5,115,0,0,282,10,1,0,0,0,283, - 284,5,114,0,0,284,285,5,101,0,0,285,286,5,102,0,0,286,12,1,0,0,0, - 287,288,5,102,0,0,288,289,5,114,0,0,289,290,5,97,0,0,290,291,5,103, - 0,0,291,292,5,109,0,0,292,293,5,101,0,0,293,294,5,110,0,0,294,295, - 5,116,0,0,295,14,1,0,0,0,296,297,5,105,0,0,297,298,5,109,0,0,298, - 299,5,112,0,0,299,300,5,111,0,0,300,301,5,114,0,0,301,302,5,116, - 0,0,302,16,1,0,0,0,303,304,5,101,0,0,304,305,5,120,0,0,305,306,5, - 116,0,0,306,307,5,101,0,0,307,308,5,114,0,0,308,309,5,110,0,0,309, - 310,5,97,0,0,310,311,5,108,0,0,311,18,1,0,0,0,312,313,5,97,0,0,313, - 314,5,116,0,0,314,315,5,111,0,0,315,316,5,109,0,0,316,20,1,0,0,0, - 317,318,5,105,0,0,318,319,5,110,0,0,319,320,5,116,0,0,320,321,5, - 101,0,0,321,322,5,114,0,0,322,323,5,102,0,0,323,324,5,97,0,0,324, - 325,5,99,0,0,325,326,5,101,0,0,326,22,1,0,0,0,327,328,5,105,0,0, - 328,329,5,110,0,0,329,330,5,116,0,0,330,331,5,101,0,0,331,332,5, - 114,0,0,332,333,5,102,0,0,333,334,5,97,0,0,334,335,5,99,0,0,335, - 336,5,101,0,0,336,337,5,115,0,0,337,24,1,0,0,0,338,339,5,112,0,0, - 339,340,5,97,0,0,340,341,5,99,0,0,341,342,5,107,0,0,342,343,5,97, - 0,0,343,344,5,103,0,0,344,345,5,101,0,0,345,26,1,0,0,0,346,347,5, - 118,0,0,347,348,5,97,0,0,348,349,5,108,0,0,349,350,5,117,0,0,350, - 351,5,101,0,0,351,28,1,0,0,0,352,353,5,114,0,0,353,354,5,101,0,0, - 354,355,5,108,0,0,355,356,5,97,0,0,356,357,5,116,0,0,357,358,5,105, - 0,0,358,359,5,111,0,0,359,360,5,110,0,0,360,30,1,0,0,0,361,362,5, - 111,0,0,362,363,5,112,0,0,363,364,5,101,0,0,364,365,5,114,0,0,365, - 366,5,97,0,0,366,367,5,116,0,0,367,368,5,105,0,0,368,369,5,111,0, - 0,369,370,5,110,0,0,370,32,1,0,0,0,371,372,5,102,0,0,372,373,5,117, - 0,0,373,374,5,110,0,0,374,375,5,99,0,0,375,376,5,116,0,0,376,377, - 5,105,0,0,377,378,5,111,0,0,378,379,5,110,0,0,379,34,1,0,0,0,380, - 381,5,99,0,0,381,382,5,111,0,0,382,383,5,110,0,0,383,384,5,115,0, - 0,384,385,5,116,0,0,385,386,5,114,0,0,386,387,5,117,0,0,387,388, - 5,99,0,0,388,389,5,116,0,0,389,390,5,111,0,0,390,391,5,114,0,0,391, - 36,1,0,0,0,392,393,5,99,0,0,393,394,5,111,0,0,394,395,5,110,0,0, - 395,396,5,115,0,0,396,397,5,116,0,0,397,398,5,114,0,0,398,399,5, - 117,0,0,399,400,5,99,0,0,400,401,5,116,0,0,401,402,5,115,0,0,402, - 38,1,0,0,0,403,404,5,105,0,0,404,405,5,110,0,0,405,406,5,112,0,0, - 406,407,5,117,0,0,407,408,5,116,0,0,408,40,1,0,0,0,409,410,5,99, - 0,0,410,411,5,111,0,0,411,412,5,110,0,0,412,413,5,102,0,0,413,414, - 5,111,0,0,414,415,5,114,0,0,415,416,5,109,0,0,416,42,1,0,0,0,417, - 418,5,97,0,0,418,419,5,115,0,0,419,44,1,0,0,0,420,421,5,98,0,0,421, - 422,5,105,0,0,422,423,5,110,0,0,423,424,5,100,0,0,424,46,1,0,0,0, - 425,426,5,115,0,0,426,427,5,116,0,0,427,428,5,97,0,0,428,429,5,116, - 0,0,429,430,5,105,0,0,430,431,5,99,0,0,431,48,1,0,0,0,432,433,5, - 116,0,0,433,434,5,111,0,0,434,50,1,0,0,0,435,436,5,112,0,0,436,437, - 5,114,0,0,437,438,5,105,0,0,438,439,5,118,0,0,439,440,5,97,0,0,440, - 441,5,116,0,0,441,442,5,101,0,0,442,52,1,0,0,0,443,444,5,115,0,0, - 444,445,5,104,0,0,445,446,5,97,0,0,446,447,5,114,0,0,447,448,5,101, - 0,0,448,449,5,100,0,0,449,54,1,0,0,0,450,451,5,115,0,0,451,452,5, - 116,0,0,452,453,5,97,0,0,453,454,5,116,0,0,454,455,5,101,0,0,455, - 56,1,0,0,0,456,457,5,101,0,0,457,458,5,100,0,0,458,459,5,103,0,0, - 459,460,5,101,0,0,460,58,1,0,0,0,461,462,5,112,0,0,462,463,5,114, - 0,0,463,464,5,111,0,0,464,465,5,106,0,0,465,466,5,101,0,0,466,467, - 5,99,0,0,467,468,5,116,0,0,468,469,5,105,0,0,469,470,5,111,0,0,470, - 471,5,110,0,0,471,60,1,0,0,0,472,473,5,119,0,0,473,474,5,105,0,0, - 474,475,5,116,0,0,475,476,5,104,0,0,476,62,1,0,0,0,477,478,5,117, - 0,0,478,479,5,115,0,0,479,480,5,105,0,0,480,481,5,110,0,0,481,482, - 5,103,0,0,482,64,1,0,0,0,483,484,5,118,0,0,484,485,5,105,0,0,485, - 486,5,97,0,0,486,66,1,0,0,0,487,488,5,109,0,0,488,489,5,97,0,0,489, - 490,5,116,0,0,490,491,5,101,0,0,491,492,5,114,0,0,492,493,5,105, - 0,0,493,494,5,97,0,0,494,495,5,108,0,0,495,496,5,105,0,0,496,497, - 5,122,0,0,497,498,5,101,0,0,498,68,1,0,0,0,499,500,5,105,0,0,500, - 501,5,102,0,0,501,70,1,0,0,0,502,503,5,97,0,0,503,504,5,98,0,0,504, - 505,5,115,0,0,505,506,5,101,0,0,506,507,5,110,0,0,507,508,5,116, - 0,0,508,72,1,0,0,0,509,510,5,111,0,0,510,511,5,110,0,0,511,74,1, - 0,0,0,512,513,5,112,0,0,513,514,5,111,0,0,514,515,5,108,0,0,515, - 516,5,105,0,0,516,517,5,99,0,0,517,518,5,121,0,0,518,76,1,0,0,0, - 519,520,5,100,0,0,520,521,5,101,0,0,521,522,5,102,0,0,522,523,5, - 97,0,0,523,524,5,117,0,0,524,525,5,108,0,0,525,526,5,116,0,0,526, - 78,1,0,0,0,527,528,5,115,0,0,528,529,5,111,0,0,529,530,5,117,0,0, - 530,531,5,114,0,0,531,532,5,99,0,0,532,533,5,101,0,0,533,80,1,0, - 0,0,534,535,5,114,0,0,535,536,5,101,0,0,536,537,5,112,0,0,537,538, - 5,111,0,0,538,539,5,115,0,0,539,540,5,105,0,0,540,541,5,116,0,0, - 541,542,5,111,0,0,542,543,5,114,0,0,543,544,5,121,0,0,544,82,1,0, - 0,0,545,546,5,99,0,0,546,547,5,111,0,0,547,548,5,109,0,0,548,549, - 5,109,0,0,549,550,5,105,0,0,550,551,5,116,0,0,551,84,1,0,0,0,552, - 553,5,114,0,0,553,554,5,101,0,0,554,555,5,118,0,0,555,556,5,105, - 0,0,556,557,5,115,0,0,557,558,5,105,0,0,558,559,5,111,0,0,559,560, - 5,110,0,0,560,86,1,0,0,0,561,562,5,115,0,0,562,563,5,101,0,0,563, - 564,5,109,0,0,564,565,5,97,0,0,565,566,5,110,0,0,566,567,5,116,0, - 0,567,568,5,105,0,0,568,569,5,99,0,0,569,570,5,45,0,0,570,571,5, - 109,0,0,571,572,5,97,0,0,572,573,5,106,0,0,573,574,5,111,0,0,574, - 575,5,114,0,0,575,88,1,0,0,0,576,577,5,111,0,0,577,578,5,110,0,0, - 578,579,5,45,0,0,579,580,5,100,0,0,580,581,5,101,0,0,581,582,5,108, - 0,0,582,583,5,101,0,0,583,584,5,116,0,0,584,585,5,101,0,0,585,90, - 1,0,0,0,586,587,5,114,0,0,587,588,5,101,0,0,588,589,5,116,0,0,589, - 590,5,97,0,0,590,591,5,105,0,0,591,592,5,110,0,0,592,593,5,45,0, - 0,593,594,5,111,0,0,594,595,5,116,0,0,595,596,5,104,0,0,596,597, - 5,101,0,0,597,598,5,114,0,0,598,92,1,0,0,0,599,600,5,107,0,0,600, - 601,5,101,0,0,601,602,5,121,0,0,602,603,5,101,0,0,603,604,5,100, - 0,0,604,94,1,0,0,0,605,606,5,112,0,0,606,607,5,117,0,0,607,608,5, - 98,0,0,608,609,5,108,0,0,609,610,5,105,0,0,610,611,5,99,0,0,611, - 612,5,45,0,0,612,613,5,116,0,0,613,614,5,114,0,0,614,615,5,97,0, - 0,615,616,5,118,0,0,616,617,5,101,0,0,617,618,5,114,0,0,618,619, - 5,115,0,0,619,620,5,97,0,0,620,621,5,108,0,0,621,96,1,0,0,0,622, - 623,5,105,0,0,623,624,5,100,0,0,624,98,1,0,0,0,625,626,5,100,0,0, - 626,627,5,111,0,0,627,628,5,99,0,0,628,100,1,0,0,0,629,630,5,109, - 0,0,630,631,5,111,0,0,631,632,5,100,0,0,632,633,5,101,0,0,633,102, - 1,0,0,0,634,635,5,101,0,0,635,636,5,109,0,0,636,637,5,105,0,0,637, - 638,5,116,0,0,638,639,5,115,0,0,639,104,1,0,0,0,640,641,5,114,0, - 0,641,642,5,101,0,0,642,643,5,99,0,0,643,644,5,101,0,0,644,645,5, - 105,0,0,645,646,5,118,0,0,646,647,5,101,0,0,647,648,5,114,0,0,648, - 106,1,0,0,0,649,650,5,114,0,0,650,651,5,101,0,0,651,652,5,113,0, - 0,652,653,5,117,0,0,653,654,5,105,0,0,654,655,5,114,0,0,655,656, - 5,101,0,0,656,657,5,115,0,0,657,108,1,0,0,0,658,659,5,97,0,0,659, - 660,5,110,0,0,660,661,5,121,0,0,661,110,1,0,0,0,662,663,5,103,0, - 0,663,664,5,101,0,0,664,665,5,116,0,0,665,112,1,0,0,0,666,667,5, - 115,0,0,667,668,5,101,0,0,668,669,5,116,0,0,669,114,1,0,0,0,670, - 671,5,119,0,0,671,672,5,97,0,0,672,673,5,116,0,0,673,674,5,99,0, - 0,674,675,5,104,0,0,675,116,1,0,0,0,676,677,5,115,0,0,677,678,5, - 116,0,0,678,679,5,97,0,0,679,680,5,114,0,0,680,681,5,116,0,0,681, - 118,1,0,0,0,682,683,5,115,0,0,683,684,5,116,0,0,684,685,5,111,0, - 0,685,686,5,112,0,0,686,120,1,0,0,0,687,688,5,114,0,0,688,689,5, - 101,0,0,689,690,5,97,0,0,690,691,5,100,0,0,691,122,1,0,0,0,692,693, - 5,119,0,0,693,694,5,114,0,0,694,695,5,105,0,0,695,696,5,116,0,0, - 696,697,5,101,0,0,697,124,1,0,0,0,698,699,5,114,0,0,699,700,5,101, - 0,0,700,701,5,115,0,0,701,702,5,111,0,0,702,703,5,108,0,0,703,704, - 5,118,0,0,704,705,5,101,0,0,705,126,1,0,0,0,706,707,5,99,0,0,707, - 708,5,111,0,0,708,709,5,110,0,0,709,710,5,110,0,0,710,711,5,101, - 0,0,711,712,5,99,0,0,712,713,5,116,0,0,713,128,1,0,0,0,714,715,5, - 100,0,0,715,716,5,105,0,0,716,717,5,115,0,0,717,718,5,99,0,0,718, - 719,5,111,0,0,719,720,5,110,0,0,720,721,5,110,0,0,721,722,5,101, - 0,0,722,723,5,99,0,0,723,724,5,116,0,0,724,130,1,0,0,0,725,726,5, - 99,0,0,726,727,5,97,0,0,727,728,5,108,0,0,728,729,5,108,0,0,729, - 132,1,0,0,0,730,731,5,119,0,0,731,732,5,97,0,0,732,733,5,116,0,0, - 733,734,5,99,0,0,734,735,5,104,0,0,735,736,5,45,0,0,736,737,5,115, - 0,0,737,738,5,116,0,0,738,739,5,97,0,0,739,740,5,114,0,0,740,741, - 5,116,0,0,741,134,1,0,0,0,742,743,5,119,0,0,743,744,5,97,0,0,744, - 745,5,116,0,0,745,746,5,99,0,0,746,747,5,104,0,0,747,748,5,45,0, - 0,748,749,5,115,0,0,749,750,5,116,0,0,750,751,5,111,0,0,751,752, - 5,112,0,0,752,136,1,0,0,0,753,754,5,115,0,0,754,755,5,117,0,0,755, - 756,5,98,0,0,756,757,5,115,0,0,757,758,5,99,0,0,758,759,5,114,0, - 0,759,760,5,105,0,0,760,761,5,98,0,0,761,762,5,101,0,0,762,138,1, - 0,0,0,763,764,5,117,0,0,764,765,5,110,0,0,765,766,5,115,0,0,766, - 767,5,117,0,0,767,768,5,98,0,0,768,769,5,115,0,0,769,770,5,99,0, - 0,770,771,5,114,0,0,771,772,5,105,0,0,772,773,5,98,0,0,773,774,5, - 101,0,0,774,140,1,0,0,0,775,776,5,111,0,0,776,777,5,112,0,0,777, - 778,5,116,0,0,778,779,5,105,0,0,779,780,5,109,0,0,780,781,5,105, - 0,0,781,782,5,115,0,0,782,783,5,116,0,0,783,784,5,105,0,0,784,785, - 5,99,0,0,785,786,5,45,0,0,786,787,5,114,0,0,787,788,5,101,0,0,788, - 789,5,103,0,0,789,790,5,105,0,0,790,791,5,115,0,0,791,792,5,116, - 0,0,792,793,5,101,0,0,793,794,5,114,0,0,794,142,1,0,0,0,795,796, - 5,99,0,0,796,797,5,114,0,0,797,798,5,100,0,0,798,799,5,116,0,0,799, - 144,1,0,0,0,800,801,5,111,0,0,801,802,5,112,0,0,802,803,5,116,0, - 0,803,804,5,105,0,0,804,805,5,111,0,0,805,806,5,110,0,0,806,807, - 5,97,0,0,807,808,5,108,0,0,808,809,5,45,0,0,809,810,5,111,0,0,810, - 811,5,110,0,0,811,812,5,101,0,0,812,146,1,0,0,0,813,814,5,101,0, - 0,814,815,5,120,0,0,815,816,5,97,0,0,816,817,5,99,0,0,817,818,5, - 116,0,0,818,819,5,108,0,0,819,820,5,121,0,0,820,821,5,45,0,0,821, - 822,5,111,0,0,822,823,5,110,0,0,823,824,5,101,0,0,824,148,1,0,0, - 0,825,826,5,109,0,0,826,827,5,97,0,0,827,828,5,110,0,0,828,829,5, - 121,0,0,829,830,5,45,0,0,830,831,5,117,0,0,831,832,5,110,0,0,832, - 833,5,105,0,0,833,834,5,113,0,0,834,835,5,117,0,0,835,836,5,101, - 0,0,836,150,1,0,0,0,837,838,5,109,0,0,838,839,5,97,0,0,839,840,5, - 110,0,0,840,841,5,121,0,0,841,152,1,0,0,0,842,843,5,111,0,0,843, - 844,5,114,0,0,844,845,5,100,0,0,845,846,5,101,0,0,846,847,5,114, - 0,0,847,848,5,101,0,0,848,849,5,100,0,0,849,154,1,0,0,0,850,851, - 5,117,0,0,851,852,5,110,0,0,852,853,5,105,0,0,853,854,5,116,0,0, - 854,156,1,0,0,0,855,856,5,119,0,0,856,857,5,97,0,0,857,858,5,116, - 0,0,858,859,5,99,0,0,859,860,5,104,0,0,860,861,5,45,0,0,861,862, - 5,104,0,0,862,863,5,97,0,0,863,864,5,110,0,0,864,865,5,100,0,0,865, - 866,5,108,0,0,866,867,5,101,0,0,867,158,1,0,0,0,868,869,5,109,0, - 0,869,870,5,101,0,0,870,871,5,115,0,0,871,872,5,115,0,0,872,873, - 5,97,0,0,873,874,5,103,0,0,874,875,5,101,0,0,875,160,1,0,0,0,876, - 877,5,97,0,0,877,878,5,116,0,0,878,879,5,111,0,0,879,880,5,109,0, - 0,880,881,5,45,0,0,881,882,5,114,0,0,882,883,5,101,0,0,883,884,5, - 102,0,0,884,162,1,0,0,0,885,886,5,105,0,0,886,887,5,110,0,0,887, - 888,5,116,0,0,888,889,5,101,0,0,889,890,5,114,0,0,890,891,5,102, - 0,0,891,892,5,97,0,0,892,893,5,99,0,0,893,894,5,101,0,0,894,895, - 5,45,0,0,895,896,5,114,0,0,896,897,5,101,0,0,897,898,5,102,0,0,898, - 164,1,0,0,0,899,900,5,111,0,0,900,901,5,112,0,0,901,902,5,116,0, - 0,902,903,5,105,0,0,903,904,5,111,0,0,904,905,5,110,0,0,905,906, - 5,97,0,0,906,907,5,108,0,0,907,166,1,0,0,0,908,909,5,108,0,0,909, - 910,5,105,0,0,910,911,5,115,0,0,911,912,5,116,0,0,912,168,1,0,0, - 0,913,914,5,114,0,0,914,915,5,101,0,0,915,916,5,99,0,0,916,917,5, - 111,0,0,917,918,5,114,0,0,918,919,5,100,0,0,919,170,1,0,0,0,920, - 921,5,98,0,0,921,922,5,111,0,0,922,923,5,111,0,0,923,924,5,108,0, - 0,924,172,1,0,0,0,925,926,5,98,0,0,926,927,5,121,0,0,927,928,5,116, - 0,0,928,929,5,101,0,0,929,930,5,115,0,0,930,174,1,0,0,0,931,932, - 5,100,0,0,932,933,5,111,0,0,933,934,5,117,0,0,934,935,5,98,0,0,935, - 936,5,108,0,0,936,937,5,101,0,0,937,176,1,0,0,0,938,939,5,105,0, - 0,939,940,5,110,0,0,940,941,5,116,0,0,941,942,5,51,0,0,942,943,5, - 50,0,0,943,178,1,0,0,0,944,945,5,105,0,0,945,946,5,110,0,0,946,947, - 5,116,0,0,947,948,5,54,0,0,948,949,5,52,0,0,949,180,1,0,0,0,950, - 951,5,115,0,0,951,952,5,116,0,0,952,953,5,114,0,0,953,954,5,105, - 0,0,954,955,5,110,0,0,955,956,5,103,0,0,956,182,1,0,0,0,957,958, - 5,117,0,0,958,959,5,105,0,0,959,960,5,110,0,0,960,961,5,116,0,0, - 961,962,5,51,0,0,962,963,5,50,0,0,963,184,1,0,0,0,964,965,5,117, - 0,0,965,966,5,105,0,0,966,967,5,110,0,0,967,968,5,116,0,0,968,969, - 5,54,0,0,969,970,5,52,0,0,970,186,1,0,0,0,971,972,5,116,0,0,972, - 973,5,114,0,0,973,974,5,117,0,0,974,975,5,101,0,0,975,188,1,0,0, - 0,976,977,5,102,0,0,977,978,5,97,0,0,978,979,5,108,0,0,979,980,5, - 115,0,0,980,981,5,101,0,0,981,190,1,0,0,0,982,983,5,110,0,0,983, - 984,5,117,0,0,984,985,5,108,0,0,985,986,5,108,0,0,986,192,1,0,0, - 0,987,988,5,45,0,0,988,989,5,62,0,0,989,194,1,0,0,0,990,991,5,58, - 0,0,991,196,1,0,0,0,992,993,5,59,0,0,993,198,1,0,0,0,994,995,5,44, - 0,0,995,200,1,0,0,0,996,997,5,46,0,0,997,202,1,0,0,0,998,999,5,123, - 0,0,999,204,1,0,0,0,1000,1001,5,125,0,0,1001,206,1,0,0,0,1002,1003, - 5,91,0,0,1003,208,1,0,0,0,1004,1005,5,93,0,0,1005,210,1,0,0,0,1006, - 1007,5,40,0,0,1007,212,1,0,0,0,1008,1009,5,41,0,0,1009,214,1,0,0, - 0,1010,1011,5,60,0,0,1011,216,1,0,0,0,1012,1013,5,62,0,0,1013,218, - 1,0,0,0,1014,1015,5,38,0,0,1015,220,1,0,0,0,1016,1017,5,61,0,0,1017, - 222,1,0,0,0,1018,1020,5,45,0,0,1019,1018,1,0,0,0,1019,1020,1,0,0, - 0,1020,1022,1,0,0,0,1021,1023,7,0,0,0,1022,1021,1,0,0,0,1023,1024, - 1,0,0,0,1024,1022,1,0,0,0,1024,1025,1,0,0,0,1025,224,1,0,0,0,1026, - 1028,5,45,0,0,1027,1026,1,0,0,0,1027,1028,1,0,0,0,1028,1037,1,0, - 0,0,1029,1038,5,48,0,0,1030,1034,7,1,0,0,1031,1033,7,0,0,0,1032, - 1031,1,0,0,0,1033,1036,1,0,0,0,1034,1032,1,0,0,0,1034,1035,1,0,0, - 0,1035,1038,1,0,0,0,1036,1034,1,0,0,0,1037,1029,1,0,0,0,1037,1030, - 1,0,0,0,1038,1045,1,0,0,0,1039,1041,5,46,0,0,1040,1042,7,0,0,0,1041, - 1040,1,0,0,0,1042,1043,1,0,0,0,1043,1041,1,0,0,0,1043,1044,1,0,0, - 0,1044,1046,1,0,0,0,1045,1039,1,0,0,0,1045,1046,1,0,0,0,1046,1056, - 1,0,0,0,1047,1049,7,2,0,0,1048,1050,7,3,0,0,1049,1048,1,0,0,0,1049, - 1050,1,0,0,0,1050,1052,1,0,0,0,1051,1053,7,0,0,0,1052,1051,1,0,0, - 0,1053,1054,1,0,0,0,1054,1052,1,0,0,0,1054,1055,1,0,0,0,1055,1057, - 1,0,0,0,1056,1047,1,0,0,0,1056,1057,1,0,0,0,1057,226,1,0,0,0,1058, - 1062,7,4,0,0,1059,1061,7,5,0,0,1060,1059,1,0,0,0,1061,1064,1,0,0, - 0,1062,1060,1,0,0,0,1062,1063,1,0,0,0,1063,228,1,0,0,0,1064,1062, - 1,0,0,0,1065,1070,5,34,0,0,1066,1069,3,231,115,0,1067,1069,8,6,0, - 0,1068,1066,1,0,0,0,1068,1067,1,0,0,0,1069,1072,1,0,0,0,1070,1068, - 1,0,0,0,1070,1071,1,0,0,0,1071,1073,1,0,0,0,1072,1070,1,0,0,0,1073, - 1074,5,34,0,0,1074,230,1,0,0,0,1075,1083,5,92,0,0,1076,1084,7,7, - 0,0,1077,1078,5,117,0,0,1078,1079,3,233,116,0,1079,1080,3,233,116, - 0,1080,1081,3,233,116,0,1081,1082,3,233,116,0,1082,1084,1,0,0,0, - 1083,1076,1,0,0,0,1083,1077,1,0,0,0,1084,232,1,0,0,0,1085,1086,7, - 8,0,0,1086,234,1,0,0,0,1087,1088,5,47,0,0,1088,1089,5,47,0,0,1089, - 1093,1,0,0,0,1090,1092,8,9,0,0,1091,1090,1,0,0,0,1092,1095,1,0,0, - 0,1093,1091,1,0,0,0,1093,1094,1,0,0,0,1094,1096,1,0,0,0,1095,1093, - 1,0,0,0,1096,1097,6,117,0,0,1097,236,1,0,0,0,1098,1099,5,47,0,0, - 1099,1100,5,42,0,0,1100,1104,1,0,0,0,1101,1103,9,0,0,0,1102,1101, - 1,0,0,0,1103,1106,1,0,0,0,1104,1105,1,0,0,0,1104,1102,1,0,0,0,1105, - 1107,1,0,0,0,1106,1104,1,0,0,0,1107,1108,5,42,0,0,1108,1109,5,47, - 0,0,1109,1110,1,0,0,0,1110,1111,6,118,0,0,1111,238,1,0,0,0,1112, - 1114,7,10,0,0,1113,1112,1,0,0,0,1114,1115,1,0,0,0,1115,1113,1,0, - 0,0,1115,1116,1,0,0,0,1116,1117,1,0,0,0,1117,1118,6,119,0,0,1118, - 240,1,0,0,0,18,0,1019,1024,1027,1034,1037,1043,1045,1049,1054,1056, - 1062,1068,1070,1083,1093,1104,1115,1,0,1,0 + 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, + 1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1, + 1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,4,1,4, + 1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,4,1,5,1,5,1,5,1,5,1,5,1,6,1,6,1,6, + 1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,1,8,1,9,1,9,1,9,1,9, + 1,9,1,9,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1,10,1,11,1,11,1,11,1,11, + 1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,12,1,12,1,12,1,12, + 1,12,1,13,1,13,1,13,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,14, + 1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,1,15, + 1,15,1,15,1,16,1,16,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,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,21,1,21,1,21, + 1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22, + 1,22,1,22,1,22,1,22,1,22,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23, + 1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,1,25,1,25,1,25,1,25,1,25, + 1,25,1,25,1,26,1,26,1,26,1,26,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,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28, + 1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,29,1,29,1,29,1,29,1,29,1,29, + 1,29,1,29,1,29,1,29,1,29,1,30,1,30,1,30,1,30,1,30,1,30,1,31,1,31, + 1,31,1,31,1,31,1,31,1,31,1,31,1,32,1,32,1,32,1,33,1,33,1,33,1,33, + 1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,35,1,35,1,35,1,36,1,36, + 1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,1,37,1,37,1,37,1,37, + 1,38,1,38,1,38,1,38,1,38,1,38,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,40,1,40,1,40,1,41,1,41,1,41,1,41, + 1,41,1,42,1,42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,44,1,44, + 1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,45,1,45,1,45, + 1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,47,1,47,1,47,1,48,1,48,1,48, + 1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,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,51,1,51,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,53,1,53, + 1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54, + 1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,55,1,55,1,55,1,55, + 1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,56,1,56,1,56,1,56, + 1,56,1,56,1,56,1,56,1,56,1,56,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,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,61,1,61,1,61, + 1,61,1,61,1,62,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,63,1,63,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64,1,64, + 1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,68, + 1,68,1,68,1,68,1,68,1,68,1,69,1,69,1,69,1,69,1,69,1,69,1,70,1,70, + 1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,71,1,72,1,72,1,72,1,72,1,72, + 1,72,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74, + 1,74,1,74,1,74,1,74,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,75, + 1,75,1,75,1,76,1,76,1,76,1,76,1,76,1,77,1,77,1,77,1,77,1,77,1,77, + 1,77,1,77,1,77,1,77,1,77,1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,78, + 1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79,1,79, + 1,79,1,80,1,80,1,80,1,80,1,80,1,80,1,80,1,80,1,80,1,80,1,80,1,80, + 1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81, + 1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,83, + 1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,83,1,84, + 1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,85,1,85, + 1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,86,1,86,1,86, + 1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,87,1,88,1,88,1,88, + 1,88,1,88,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89,1,89, + 1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,91,1,91,1,91, + 1,91,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,1,92, + 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,93, + 1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,94,1,95,1,95,1,95,1,95,1,95, + 1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,1,97,1,97,1,97, + 1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,1,99,1,99,1,99,1,99, + 1,100,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,101,1,101,1,101, + 1,101,1,101,1,102,1,102,1,102,1,102,1,102,1,102,1,102,1,103,1,103, + 1,103,1,103,1,103,1,103,1,103,1,104,1,104,1,104,1,104,1,104,1,105, + 1,105,1,105,1,105,1,105,1,105,1,106,1,106,1,106,1,106,1,106,1,107, + 1,107,1,107,1,108,1,108,1,109,1,109,1,110,1,110,1,111,1,111,1,112, + 1,112,1,113,1,113,1,114,1,114,1,115,1,115,1,116,1,116,1,117,1,117, + 1,118,1,118,1,119,1,119,1,120,1,120,1,121,1,121,1,122,3,122,1119, + 8,122,1,122,4,122,1122,8,122,11,122,12,122,1123,1,123,3,123,1127, + 8,123,1,123,1,123,1,123,5,123,1132,8,123,10,123,12,123,1135,9,123, + 3,123,1137,8,123,1,123,1,123,4,123,1141,8,123,11,123,12,123,1142, + 3,123,1145,8,123,1,123,1,123,3,123,1149,8,123,1,123,4,123,1152,8, + 123,11,123,12,123,1153,3,123,1156,8,123,1,124,1,124,5,124,1160,8, + 124,10,124,12,124,1163,9,124,1,125,1,125,1,125,5,125,1168,8,125, + 10,125,12,125,1171,9,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126, + 1,126,1,126,1,126,3,126,1183,8,126,1,127,1,127,1,128,1,128,1,128, + 1,128,5,128,1191,8,128,10,128,12,128,1194,9,128,1,128,1,128,1,129, + 1,129,1,129,1,129,5,129,1202,8,129,10,129,12,129,1205,9,129,1,129, + 1,129,1,129,1,129,1,129,1,130,4,130,1213,8,130,11,130,12,130,1214, + 1,130,1,130,1,1203,0,131,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,104,209,105,211,106,213,107,215,108, + 217,109,219,110,221,111,223,112,225,113,227,114,229,115,231,116, + 233,117,235,118,237,119,239,120,241,121,243,122,245,123,247,124, + 249,125,251,126,253,0,255,0,257,127,259,128,261,129,1,0,11,1,0,48, + 57,1,0,49,57,2,0,69,69,101,101,2,0,43,43,45,45,3,0,65,90,95,95,97, + 122,4,0,48,57,65,90,95,95,97,122,4,0,10,10,13,13,34,34,92,92,8,0, + 34,34,47,47,92,92,98,98,102,102,110,110,114,114,116,116,3,0,48,57, + 65,70,97,102,2,0,10,10,13,13,3,0,9,10,13,13,32,32,1232,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,207,1,0,0,0,0,209,1,0,0,0,0,211,1,0,0,0,0, + 213,1,0,0,0,0,215,1,0,0,0,0,217,1,0,0,0,0,219,1,0,0,0,0,221,1,0, + 0,0,0,223,1,0,0,0,0,225,1,0,0,0,0,227,1,0,0,0,0,229,1,0,0,0,0,231, + 1,0,0,0,0,233,1,0,0,0,0,235,1,0,0,0,0,237,1,0,0,0,0,239,1,0,0,0, + 0,241,1,0,0,0,0,243,1,0,0,0,0,245,1,0,0,0,0,247,1,0,0,0,0,249,1, + 0,0,0,0,251,1,0,0,0,0,257,1,0,0,0,0,259,1,0,0,0,0,261,1,0,0,0,1, + 263,1,0,0,0,3,273,1,0,0,0,5,279,1,0,0,0,7,284,1,0,0,0,9,293,1,0, + 0,0,11,303,1,0,0,0,13,308,1,0,0,0,15,312,1,0,0,0,17,318,1,0,0,0, + 19,323,1,0,0,0,21,333,1,0,0,0,23,337,1,0,0,0,25,350,1,0,0,0,27,355, + 1,0,0,0,29,362,1,0,0,0,31,371,1,0,0,0,33,382,1,0,0,0,35,386,1,0, + 0,0,37,395,1,0,0,0,39,402,1,0,0,0,41,411,1,0,0,0,43,416,1,0,0,0, + 45,426,1,0,0,0,47,437,1,0,0,0,49,445,1,0,0,0,51,451,1,0,0,0,53,460, + 1,0,0,0,55,470,1,0,0,0,57,479,1,0,0,0,59,491,1,0,0,0,61,502,1,0, + 0,0,63,508,1,0,0,0,65,516,1,0,0,0,67,519,1,0,0,0,69,524,1,0,0,0, + 71,531,1,0,0,0,73,534,1,0,0,0,75,542,1,0,0,0,77,549,1,0,0,0,79,555, + 1,0,0,0,81,560,1,0,0,0,83,571,1,0,0,0,85,576,1,0,0,0,87,582,1,0, + 0,0,89,586,1,0,0,0,91,598,1,0,0,0,93,601,1,0,0,0,95,608,1,0,0,0, + 97,611,1,0,0,0,99,618,1,0,0,0,101,626,1,0,0,0,103,633,1,0,0,0,105, + 644,1,0,0,0,107,651,1,0,0,0,109,660,1,0,0,0,111,675,1,0,0,0,113, + 685,1,0,0,0,115,698,1,0,0,0,117,704,1,0,0,0,119,721,1,0,0,0,121, + 724,1,0,0,0,123,728,1,0,0,0,125,733,1,0,0,0,127,739,1,0,0,0,129, + 748,1,0,0,0,131,757,1,0,0,0,133,761,1,0,0,0,135,765,1,0,0,0,137, + 769,1,0,0,0,139,775,1,0,0,0,141,781,1,0,0,0,143,786,1,0,0,0,145, + 791,1,0,0,0,147,797,1,0,0,0,149,805,1,0,0,0,151,813,1,0,0,0,153, + 824,1,0,0,0,155,829,1,0,0,0,157,841,1,0,0,0,159,852,1,0,0,0,161, + 862,1,0,0,0,163,874,1,0,0,0,165,894,1,0,0,0,167,899,1,0,0,0,169, + 912,1,0,0,0,171,924,1,0,0,0,173,936,1,0,0,0,175,941,1,0,0,0,177, + 949,1,0,0,0,179,954,1,0,0,0,181,967,1,0,0,0,183,975,1,0,0,0,185, + 984,1,0,0,0,187,998,1,0,0,0,189,1007,1,0,0,0,191,1012,1,0,0,0,193, + 1019,1,0,0,0,195,1024,1,0,0,0,197,1030,1,0,0,0,199,1037,1,0,0,0, + 201,1043,1,0,0,0,203,1049,1,0,0,0,205,1056,1,0,0,0,207,1063,1,0, + 0,0,209,1070,1,0,0,0,211,1075,1,0,0,0,213,1081,1,0,0,0,215,1086, + 1,0,0,0,217,1089,1,0,0,0,219,1091,1,0,0,0,221,1093,1,0,0,0,223,1095, + 1,0,0,0,225,1097,1,0,0,0,227,1099,1,0,0,0,229,1101,1,0,0,0,231,1103, + 1,0,0,0,233,1105,1,0,0,0,235,1107,1,0,0,0,237,1109,1,0,0,0,239,1111, + 1,0,0,0,241,1113,1,0,0,0,243,1115,1,0,0,0,245,1118,1,0,0,0,247,1126, + 1,0,0,0,249,1157,1,0,0,0,251,1164,1,0,0,0,253,1174,1,0,0,0,255,1184, + 1,0,0,0,257,1186,1,0,0,0,259,1197,1,0,0,0,261,1212,1,0,0,0,263,264, + 5,119,0,0,264,265,5,111,0,0,265,266,5,114,0,0,266,267,5,107,0,0, + 267,268,5,115,0,0,268,269,5,112,0,0,269,270,5,97,0,0,270,271,5,99, + 0,0,271,272,5,101,0,0,272,2,1,0,0,0,273,274,5,113,0,0,274,275,5, + 117,0,0,275,276,5,101,0,0,276,277,5,114,0,0,277,278,5,121,0,0,278, + 4,1,0,0,0,279,280,5,114,0,0,280,281,5,111,0,0,281,282,5,111,0,0, + 282,283,5,116,0,0,283,6,1,0,0,0,284,285,5,100,0,0,285,286,5,111, + 0,0,286,287,5,99,0,0,287,288,5,117,0,0,288,289,5,109,0,0,289,290, + 5,101,0,0,290,291,5,110,0,0,291,292,5,116,0,0,292,8,1,0,0,0,293, + 294,5,102,0,0,294,295,5,114,0,0,295,296,5,97,0,0,296,297,5,103,0, + 0,297,298,5,109,0,0,298,299,5,101,0,0,299,300,5,110,0,0,300,301, + 5,116,0,0,301,302,5,115,0,0,302,10,1,0,0,0,303,304,5,118,0,0,304, + 305,5,105,0,0,305,306,5,101,0,0,306,307,5,119,0,0,307,12,1,0,0,0, + 308,309,5,109,0,0,309,310,5,97,0,0,310,311,5,120,0,0,311,14,1,0, + 0,0,312,313,5,97,0,0,313,314,5,108,0,0,314,315,5,108,0,0,315,316, + 5,111,0,0,316,317,5,119,0,0,317,16,1,0,0,0,318,319,5,112,0,0,319, + 320,5,111,0,0,320,321,5,108,0,0,321,322,5,108,0,0,322,18,1,0,0,0, + 323,324,5,113,0,0,324,325,5,117,0,0,325,326,5,101,0,0,326,327,5, + 114,0,0,327,328,5,121,0,0,328,329,5,97,0,0,329,330,5,98,0,0,330, + 331,5,108,0,0,331,332,5,101,0,0,332,20,1,0,0,0,333,334,5,114,0,0, + 334,335,5,112,0,0,335,336,5,99,0,0,336,22,1,0,0,0,337,338,5,113, + 0,0,338,339,5,117,0,0,339,340,5,101,0,0,340,341,5,114,0,0,341,342, + 5,121,0,0,342,343,5,45,0,0,343,344,5,114,0,0,344,345,5,101,0,0,345, + 346,5,97,0,0,346,347,5,115,0,0,347,348,5,111,0,0,348,349,5,110,0, + 0,349,24,1,0,0,0,350,351,5,116,0,0,351,352,5,121,0,0,352,353,5,112, + 0,0,353,354,5,101,0,0,354,26,1,0,0,0,355,356,5,111,0,0,356,357,5, + 98,0,0,357,358,5,106,0,0,358,359,5,101,0,0,359,360,5,99,0,0,360, + 361,5,116,0,0,361,28,1,0,0,0,362,363,5,115,0,0,363,364,5,116,0,0, + 364,365,5,111,0,0,365,366,5,114,0,0,366,367,5,97,0,0,367,368,5,98, + 0,0,368,369,5,108,0,0,369,370,5,101,0,0,370,30,1,0,0,0,371,372,5, + 105,0,0,372,373,5,109,0,0,373,374,5,112,0,0,374,375,5,108,0,0,375, + 376,5,101,0,0,376,377,5,109,0,0,377,378,5,101,0,0,378,379,5,110, + 0,0,379,380,5,116,0,0,380,381,5,115,0,0,381,32,1,0,0,0,382,383,5, + 114,0,0,383,384,5,101,0,0,384,385,5,102,0,0,385,34,1,0,0,0,386,387, + 5,102,0,0,387,388,5,114,0,0,388,389,5,97,0,0,389,390,5,103,0,0,390, + 391,5,109,0,0,391,392,5,101,0,0,392,393,5,110,0,0,393,394,5,116, + 0,0,394,36,1,0,0,0,395,396,5,105,0,0,396,397,5,109,0,0,397,398,5, + 112,0,0,398,399,5,111,0,0,399,400,5,114,0,0,400,401,5,116,0,0,401, + 38,1,0,0,0,402,403,5,101,0,0,403,404,5,120,0,0,404,405,5,116,0,0, + 405,406,5,101,0,0,406,407,5,114,0,0,407,408,5,110,0,0,408,409,5, + 97,0,0,409,410,5,108,0,0,410,40,1,0,0,0,411,412,5,97,0,0,412,413, + 5,116,0,0,413,414,5,111,0,0,414,415,5,109,0,0,415,42,1,0,0,0,416, + 417,5,105,0,0,417,418,5,110,0,0,418,419,5,116,0,0,419,420,5,101, + 0,0,420,421,5,114,0,0,421,422,5,102,0,0,422,423,5,97,0,0,423,424, + 5,99,0,0,424,425,5,101,0,0,425,44,1,0,0,0,426,427,5,105,0,0,427, + 428,5,110,0,0,428,429,5,116,0,0,429,430,5,101,0,0,430,431,5,114, + 0,0,431,432,5,102,0,0,432,433,5,97,0,0,433,434,5,99,0,0,434,435, + 5,101,0,0,435,436,5,115,0,0,436,46,1,0,0,0,437,438,5,112,0,0,438, + 439,5,97,0,0,439,440,5,99,0,0,440,441,5,107,0,0,441,442,5,97,0,0, + 442,443,5,103,0,0,443,444,5,101,0,0,444,48,1,0,0,0,445,446,5,118, + 0,0,446,447,5,97,0,0,447,448,5,108,0,0,448,449,5,117,0,0,449,450, + 5,101,0,0,450,50,1,0,0,0,451,452,5,114,0,0,452,453,5,101,0,0,453, + 454,5,108,0,0,454,455,5,97,0,0,455,456,5,116,0,0,456,457,5,105,0, + 0,457,458,5,111,0,0,458,459,5,110,0,0,459,52,1,0,0,0,460,461,5,111, + 0,0,461,462,5,112,0,0,462,463,5,101,0,0,463,464,5,114,0,0,464,465, + 5,97,0,0,465,466,5,116,0,0,466,467,5,105,0,0,467,468,5,111,0,0,468, + 469,5,110,0,0,469,54,1,0,0,0,470,471,5,102,0,0,471,472,5,117,0,0, + 472,473,5,110,0,0,473,474,5,99,0,0,474,475,5,116,0,0,475,476,5,105, + 0,0,476,477,5,111,0,0,477,478,5,110,0,0,478,56,1,0,0,0,479,480,5, + 99,0,0,480,481,5,111,0,0,481,482,5,110,0,0,482,483,5,115,0,0,483, + 484,5,116,0,0,484,485,5,114,0,0,485,486,5,117,0,0,486,487,5,99,0, + 0,487,488,5,116,0,0,488,489,5,111,0,0,489,490,5,114,0,0,490,58,1, + 0,0,0,491,492,5,99,0,0,492,493,5,111,0,0,493,494,5,110,0,0,494,495, + 5,115,0,0,495,496,5,116,0,0,496,497,5,114,0,0,497,498,5,117,0,0, + 498,499,5,99,0,0,499,500,5,116,0,0,500,501,5,115,0,0,501,60,1,0, + 0,0,502,503,5,105,0,0,503,504,5,110,0,0,504,505,5,112,0,0,505,506, + 5,117,0,0,506,507,5,116,0,0,507,62,1,0,0,0,508,509,5,99,0,0,509, + 510,5,111,0,0,510,511,5,110,0,0,511,512,5,102,0,0,512,513,5,111, + 0,0,513,514,5,114,0,0,514,515,5,109,0,0,515,64,1,0,0,0,516,517,5, + 97,0,0,517,518,5,115,0,0,518,66,1,0,0,0,519,520,5,98,0,0,520,521, + 5,105,0,0,521,522,5,110,0,0,522,523,5,100,0,0,523,68,1,0,0,0,524, + 525,5,115,0,0,525,526,5,116,0,0,526,527,5,97,0,0,527,528,5,116,0, + 0,528,529,5,105,0,0,529,530,5,99,0,0,530,70,1,0,0,0,531,532,5,116, + 0,0,532,533,5,111,0,0,533,72,1,0,0,0,534,535,5,112,0,0,535,536,5, + 114,0,0,536,537,5,105,0,0,537,538,5,118,0,0,538,539,5,97,0,0,539, + 540,5,116,0,0,540,541,5,101,0,0,541,74,1,0,0,0,542,543,5,115,0,0, + 543,544,5,104,0,0,544,545,5,97,0,0,545,546,5,114,0,0,546,547,5,101, + 0,0,547,548,5,100,0,0,548,76,1,0,0,0,549,550,5,115,0,0,550,551,5, + 116,0,0,551,552,5,97,0,0,552,553,5,116,0,0,553,554,5,101,0,0,554, + 78,1,0,0,0,555,556,5,101,0,0,556,557,5,100,0,0,557,558,5,103,0,0, + 558,559,5,101,0,0,559,80,1,0,0,0,560,561,5,112,0,0,561,562,5,114, + 0,0,562,563,5,111,0,0,563,564,5,106,0,0,564,565,5,101,0,0,565,566, + 5,99,0,0,566,567,5,116,0,0,567,568,5,105,0,0,568,569,5,111,0,0,569, + 570,5,110,0,0,570,82,1,0,0,0,571,572,5,119,0,0,572,573,5,105,0,0, + 573,574,5,116,0,0,574,575,5,104,0,0,575,84,1,0,0,0,576,577,5,117, + 0,0,577,578,5,115,0,0,578,579,5,105,0,0,579,580,5,110,0,0,580,581, + 5,103,0,0,581,86,1,0,0,0,582,583,5,118,0,0,583,584,5,105,0,0,584, + 585,5,97,0,0,585,88,1,0,0,0,586,587,5,109,0,0,587,588,5,97,0,0,588, + 589,5,116,0,0,589,590,5,101,0,0,590,591,5,114,0,0,591,592,5,105, + 0,0,592,593,5,97,0,0,593,594,5,108,0,0,594,595,5,105,0,0,595,596, + 5,122,0,0,596,597,5,101,0,0,597,90,1,0,0,0,598,599,5,105,0,0,599, + 600,5,102,0,0,600,92,1,0,0,0,601,602,5,97,0,0,602,603,5,98,0,0,603, + 604,5,115,0,0,604,605,5,101,0,0,605,606,5,110,0,0,606,607,5,116, + 0,0,607,94,1,0,0,0,608,609,5,111,0,0,609,610,5,110,0,0,610,96,1, + 0,0,0,611,612,5,112,0,0,612,613,5,111,0,0,613,614,5,108,0,0,614, + 615,5,105,0,0,615,616,5,99,0,0,616,617,5,121,0,0,617,98,1,0,0,0, + 618,619,5,100,0,0,619,620,5,101,0,0,620,621,5,102,0,0,621,622,5, + 97,0,0,622,623,5,117,0,0,623,624,5,108,0,0,624,625,5,116,0,0,625, + 100,1,0,0,0,626,627,5,115,0,0,627,628,5,111,0,0,628,629,5,117,0, + 0,629,630,5,114,0,0,630,631,5,99,0,0,631,632,5,101,0,0,632,102,1, + 0,0,0,633,634,5,114,0,0,634,635,5,101,0,0,635,636,5,112,0,0,636, + 637,5,111,0,0,637,638,5,115,0,0,638,639,5,105,0,0,639,640,5,116, + 0,0,640,641,5,111,0,0,641,642,5,114,0,0,642,643,5,121,0,0,643,104, + 1,0,0,0,644,645,5,99,0,0,645,646,5,111,0,0,646,647,5,109,0,0,647, + 648,5,109,0,0,648,649,5,105,0,0,649,650,5,116,0,0,650,106,1,0,0, + 0,651,652,5,114,0,0,652,653,5,101,0,0,653,654,5,118,0,0,654,655, + 5,105,0,0,655,656,5,115,0,0,656,657,5,105,0,0,657,658,5,111,0,0, + 658,659,5,110,0,0,659,108,1,0,0,0,660,661,5,115,0,0,661,662,5,101, + 0,0,662,663,5,109,0,0,663,664,5,97,0,0,664,665,5,110,0,0,665,666, + 5,116,0,0,666,667,5,105,0,0,667,668,5,99,0,0,668,669,5,45,0,0,669, + 670,5,109,0,0,670,671,5,97,0,0,671,672,5,106,0,0,672,673,5,111,0, + 0,673,674,5,114,0,0,674,110,1,0,0,0,675,676,5,111,0,0,676,677,5, + 110,0,0,677,678,5,45,0,0,678,679,5,100,0,0,679,680,5,101,0,0,680, + 681,5,108,0,0,681,682,5,101,0,0,682,683,5,116,0,0,683,684,5,101, + 0,0,684,112,1,0,0,0,685,686,5,114,0,0,686,687,5,101,0,0,687,688, + 5,116,0,0,688,689,5,97,0,0,689,690,5,105,0,0,690,691,5,110,0,0,691, + 692,5,45,0,0,692,693,5,111,0,0,693,694,5,116,0,0,694,695,5,104,0, + 0,695,696,5,101,0,0,696,697,5,114,0,0,697,114,1,0,0,0,698,699,5, + 107,0,0,699,700,5,101,0,0,700,701,5,121,0,0,701,702,5,101,0,0,702, + 703,5,100,0,0,703,116,1,0,0,0,704,705,5,112,0,0,705,706,5,117,0, + 0,706,707,5,98,0,0,707,708,5,108,0,0,708,709,5,105,0,0,709,710,5, + 99,0,0,710,711,5,45,0,0,711,712,5,116,0,0,712,713,5,114,0,0,713, + 714,5,97,0,0,714,715,5,118,0,0,715,716,5,101,0,0,716,717,5,114,0, + 0,717,718,5,115,0,0,718,719,5,97,0,0,719,720,5,108,0,0,720,118,1, + 0,0,0,721,722,5,105,0,0,722,723,5,100,0,0,723,120,1,0,0,0,724,725, + 5,100,0,0,725,726,5,111,0,0,726,727,5,99,0,0,727,122,1,0,0,0,728, + 729,5,109,0,0,729,730,5,111,0,0,730,731,5,100,0,0,731,732,5,101, + 0,0,732,124,1,0,0,0,733,734,5,101,0,0,734,735,5,109,0,0,735,736, + 5,105,0,0,736,737,5,116,0,0,737,738,5,115,0,0,738,126,1,0,0,0,739, + 740,5,114,0,0,740,741,5,101,0,0,741,742,5,99,0,0,742,743,5,101,0, + 0,743,744,5,105,0,0,744,745,5,118,0,0,745,746,5,101,0,0,746,747, + 5,114,0,0,747,128,1,0,0,0,748,749,5,114,0,0,749,750,5,101,0,0,750, + 751,5,113,0,0,751,752,5,117,0,0,752,753,5,105,0,0,753,754,5,114, + 0,0,754,755,5,101,0,0,755,756,5,115,0,0,756,130,1,0,0,0,757,758, + 5,97,0,0,758,759,5,110,0,0,759,760,5,121,0,0,760,132,1,0,0,0,761, + 762,5,103,0,0,762,763,5,101,0,0,763,764,5,116,0,0,764,134,1,0,0, + 0,765,766,5,115,0,0,766,767,5,101,0,0,767,768,5,116,0,0,768,136, + 1,0,0,0,769,770,5,119,0,0,770,771,5,97,0,0,771,772,5,116,0,0,772, + 773,5,99,0,0,773,774,5,104,0,0,774,138,1,0,0,0,775,776,5,115,0,0, + 776,777,5,116,0,0,777,778,5,97,0,0,778,779,5,114,0,0,779,780,5,116, + 0,0,780,140,1,0,0,0,781,782,5,115,0,0,782,783,5,116,0,0,783,784, + 5,111,0,0,784,785,5,112,0,0,785,142,1,0,0,0,786,787,5,114,0,0,787, + 788,5,101,0,0,788,789,5,97,0,0,789,790,5,100,0,0,790,144,1,0,0,0, + 791,792,5,119,0,0,792,793,5,114,0,0,793,794,5,105,0,0,794,795,5, + 116,0,0,795,796,5,101,0,0,796,146,1,0,0,0,797,798,5,114,0,0,798, + 799,5,101,0,0,799,800,5,115,0,0,800,801,5,111,0,0,801,802,5,108, + 0,0,802,803,5,118,0,0,803,804,5,101,0,0,804,148,1,0,0,0,805,806, + 5,99,0,0,806,807,5,111,0,0,807,808,5,110,0,0,808,809,5,110,0,0,809, + 810,5,101,0,0,810,811,5,99,0,0,811,812,5,116,0,0,812,150,1,0,0,0, + 813,814,5,100,0,0,814,815,5,105,0,0,815,816,5,115,0,0,816,817,5, + 99,0,0,817,818,5,111,0,0,818,819,5,110,0,0,819,820,5,110,0,0,820, + 821,5,101,0,0,821,822,5,99,0,0,822,823,5,116,0,0,823,152,1,0,0,0, + 824,825,5,99,0,0,825,826,5,97,0,0,826,827,5,108,0,0,827,828,5,108, + 0,0,828,154,1,0,0,0,829,830,5,119,0,0,830,831,5,97,0,0,831,832,5, + 116,0,0,832,833,5,99,0,0,833,834,5,104,0,0,834,835,5,45,0,0,835, + 836,5,115,0,0,836,837,5,116,0,0,837,838,5,97,0,0,838,839,5,114,0, + 0,839,840,5,116,0,0,840,156,1,0,0,0,841,842,5,119,0,0,842,843,5, + 97,0,0,843,844,5,116,0,0,844,845,5,99,0,0,845,846,5,104,0,0,846, + 847,5,45,0,0,847,848,5,115,0,0,848,849,5,116,0,0,849,850,5,111,0, + 0,850,851,5,112,0,0,851,158,1,0,0,0,852,853,5,115,0,0,853,854,5, + 117,0,0,854,855,5,98,0,0,855,856,5,115,0,0,856,857,5,99,0,0,857, + 858,5,114,0,0,858,859,5,105,0,0,859,860,5,98,0,0,860,861,5,101,0, + 0,861,160,1,0,0,0,862,863,5,117,0,0,863,864,5,110,0,0,864,865,5, + 115,0,0,865,866,5,117,0,0,866,867,5,98,0,0,867,868,5,115,0,0,868, + 869,5,99,0,0,869,870,5,114,0,0,870,871,5,105,0,0,871,872,5,98,0, + 0,872,873,5,101,0,0,873,162,1,0,0,0,874,875,5,111,0,0,875,876,5, + 112,0,0,876,877,5,116,0,0,877,878,5,105,0,0,878,879,5,109,0,0,879, + 880,5,105,0,0,880,881,5,115,0,0,881,882,5,116,0,0,882,883,5,105, + 0,0,883,884,5,99,0,0,884,885,5,45,0,0,885,886,5,114,0,0,886,887, + 5,101,0,0,887,888,5,103,0,0,888,889,5,105,0,0,889,890,5,115,0,0, + 890,891,5,116,0,0,891,892,5,101,0,0,892,893,5,114,0,0,893,164,1, + 0,0,0,894,895,5,99,0,0,895,896,5,114,0,0,896,897,5,100,0,0,897,898, + 5,116,0,0,898,166,1,0,0,0,899,900,5,111,0,0,900,901,5,112,0,0,901, + 902,5,116,0,0,902,903,5,105,0,0,903,904,5,111,0,0,904,905,5,110, + 0,0,905,906,5,97,0,0,906,907,5,108,0,0,907,908,5,45,0,0,908,909, + 5,111,0,0,909,910,5,110,0,0,910,911,5,101,0,0,911,168,1,0,0,0,912, + 913,5,101,0,0,913,914,5,120,0,0,914,915,5,97,0,0,915,916,5,99,0, + 0,916,917,5,116,0,0,917,918,5,108,0,0,918,919,5,121,0,0,919,920, + 5,45,0,0,920,921,5,111,0,0,921,922,5,110,0,0,922,923,5,101,0,0,923, + 170,1,0,0,0,924,925,5,109,0,0,925,926,5,97,0,0,926,927,5,110,0,0, + 927,928,5,121,0,0,928,929,5,45,0,0,929,930,5,117,0,0,930,931,5,110, + 0,0,931,932,5,105,0,0,932,933,5,113,0,0,933,934,5,117,0,0,934,935, + 5,101,0,0,935,172,1,0,0,0,936,937,5,109,0,0,937,938,5,97,0,0,938, + 939,5,110,0,0,939,940,5,121,0,0,940,174,1,0,0,0,941,942,5,111,0, + 0,942,943,5,114,0,0,943,944,5,100,0,0,944,945,5,101,0,0,945,946, + 5,114,0,0,946,947,5,101,0,0,947,948,5,100,0,0,948,176,1,0,0,0,949, + 950,5,117,0,0,950,951,5,110,0,0,951,952,5,105,0,0,952,953,5,116, + 0,0,953,178,1,0,0,0,954,955,5,119,0,0,955,956,5,97,0,0,956,957,5, + 116,0,0,957,958,5,99,0,0,958,959,5,104,0,0,959,960,5,45,0,0,960, + 961,5,104,0,0,961,962,5,97,0,0,962,963,5,110,0,0,963,964,5,100,0, + 0,964,965,5,108,0,0,965,966,5,101,0,0,966,180,1,0,0,0,967,968,5, + 109,0,0,968,969,5,101,0,0,969,970,5,115,0,0,970,971,5,115,0,0,971, + 972,5,97,0,0,972,973,5,103,0,0,973,974,5,101,0,0,974,182,1,0,0,0, + 975,976,5,97,0,0,976,977,5,116,0,0,977,978,5,111,0,0,978,979,5,109, + 0,0,979,980,5,45,0,0,980,981,5,114,0,0,981,982,5,101,0,0,982,983, + 5,102,0,0,983,184,1,0,0,0,984,985,5,105,0,0,985,986,5,110,0,0,986, + 987,5,116,0,0,987,988,5,101,0,0,988,989,5,114,0,0,989,990,5,102, + 0,0,990,991,5,97,0,0,991,992,5,99,0,0,992,993,5,101,0,0,993,994, + 5,45,0,0,994,995,5,114,0,0,995,996,5,101,0,0,996,997,5,102,0,0,997, + 186,1,0,0,0,998,999,5,111,0,0,999,1000,5,112,0,0,1000,1001,5,116, + 0,0,1001,1002,5,105,0,0,1002,1003,5,111,0,0,1003,1004,5,110,0,0, + 1004,1005,5,97,0,0,1005,1006,5,108,0,0,1006,188,1,0,0,0,1007,1008, + 5,108,0,0,1008,1009,5,105,0,0,1009,1010,5,115,0,0,1010,1011,5,116, + 0,0,1011,190,1,0,0,0,1012,1013,5,114,0,0,1013,1014,5,101,0,0,1014, + 1015,5,99,0,0,1015,1016,5,111,0,0,1016,1017,5,114,0,0,1017,1018, + 5,100,0,0,1018,192,1,0,0,0,1019,1020,5,98,0,0,1020,1021,5,111,0, + 0,1021,1022,5,111,0,0,1022,1023,5,108,0,0,1023,194,1,0,0,0,1024, + 1025,5,98,0,0,1025,1026,5,121,0,0,1026,1027,5,116,0,0,1027,1028, + 5,101,0,0,1028,1029,5,115,0,0,1029,196,1,0,0,0,1030,1031,5,100,0, + 0,1031,1032,5,111,0,0,1032,1033,5,117,0,0,1033,1034,5,98,0,0,1034, + 1035,5,108,0,0,1035,1036,5,101,0,0,1036,198,1,0,0,0,1037,1038,5, + 105,0,0,1038,1039,5,110,0,0,1039,1040,5,116,0,0,1040,1041,5,51,0, + 0,1041,1042,5,50,0,0,1042,200,1,0,0,0,1043,1044,5,105,0,0,1044,1045, + 5,110,0,0,1045,1046,5,116,0,0,1046,1047,5,54,0,0,1047,1048,5,52, + 0,0,1048,202,1,0,0,0,1049,1050,5,115,0,0,1050,1051,5,116,0,0,1051, + 1052,5,114,0,0,1052,1053,5,105,0,0,1053,1054,5,110,0,0,1054,1055, + 5,103,0,0,1055,204,1,0,0,0,1056,1057,5,117,0,0,1057,1058,5,105,0, + 0,1058,1059,5,110,0,0,1059,1060,5,116,0,0,1060,1061,5,51,0,0,1061, + 1062,5,50,0,0,1062,206,1,0,0,0,1063,1064,5,117,0,0,1064,1065,5,105, + 0,0,1065,1066,5,110,0,0,1066,1067,5,116,0,0,1067,1068,5,54,0,0,1068, + 1069,5,52,0,0,1069,208,1,0,0,0,1070,1071,5,116,0,0,1071,1072,5,114, + 0,0,1072,1073,5,117,0,0,1073,1074,5,101,0,0,1074,210,1,0,0,0,1075, + 1076,5,102,0,0,1076,1077,5,97,0,0,1077,1078,5,108,0,0,1078,1079, + 5,115,0,0,1079,1080,5,101,0,0,1080,212,1,0,0,0,1081,1082,5,110,0, + 0,1082,1083,5,117,0,0,1083,1084,5,108,0,0,1084,1085,5,108,0,0,1085, + 214,1,0,0,0,1086,1087,5,45,0,0,1087,1088,5,62,0,0,1088,216,1,0,0, + 0,1089,1090,5,58,0,0,1090,218,1,0,0,0,1091,1092,5,59,0,0,1092,220, + 1,0,0,0,1093,1094,5,44,0,0,1094,222,1,0,0,0,1095,1096,5,46,0,0,1096, + 224,1,0,0,0,1097,1098,5,123,0,0,1098,226,1,0,0,0,1099,1100,5,125, + 0,0,1100,228,1,0,0,0,1101,1102,5,91,0,0,1102,230,1,0,0,0,1103,1104, + 5,93,0,0,1104,232,1,0,0,0,1105,1106,5,40,0,0,1106,234,1,0,0,0,1107, + 1108,5,41,0,0,1108,236,1,0,0,0,1109,1110,5,60,0,0,1110,238,1,0,0, + 0,1111,1112,5,62,0,0,1112,240,1,0,0,0,1113,1114,5,38,0,0,1114,242, + 1,0,0,0,1115,1116,5,61,0,0,1116,244,1,0,0,0,1117,1119,5,45,0,0,1118, + 1117,1,0,0,0,1118,1119,1,0,0,0,1119,1121,1,0,0,0,1120,1122,7,0,0, + 0,1121,1120,1,0,0,0,1122,1123,1,0,0,0,1123,1121,1,0,0,0,1123,1124, + 1,0,0,0,1124,246,1,0,0,0,1125,1127,5,45,0,0,1126,1125,1,0,0,0,1126, + 1127,1,0,0,0,1127,1136,1,0,0,0,1128,1137,5,48,0,0,1129,1133,7,1, + 0,0,1130,1132,7,0,0,0,1131,1130,1,0,0,0,1132,1135,1,0,0,0,1133,1131, + 1,0,0,0,1133,1134,1,0,0,0,1134,1137,1,0,0,0,1135,1133,1,0,0,0,1136, + 1128,1,0,0,0,1136,1129,1,0,0,0,1137,1144,1,0,0,0,1138,1140,5,46, + 0,0,1139,1141,7,0,0,0,1140,1139,1,0,0,0,1141,1142,1,0,0,0,1142,1140, + 1,0,0,0,1142,1143,1,0,0,0,1143,1145,1,0,0,0,1144,1138,1,0,0,0,1144, + 1145,1,0,0,0,1145,1155,1,0,0,0,1146,1148,7,2,0,0,1147,1149,7,3,0, + 0,1148,1147,1,0,0,0,1148,1149,1,0,0,0,1149,1151,1,0,0,0,1150,1152, + 7,0,0,0,1151,1150,1,0,0,0,1152,1153,1,0,0,0,1153,1151,1,0,0,0,1153, + 1154,1,0,0,0,1154,1156,1,0,0,0,1155,1146,1,0,0,0,1155,1156,1,0,0, + 0,1156,248,1,0,0,0,1157,1161,7,4,0,0,1158,1160,7,5,0,0,1159,1158, + 1,0,0,0,1160,1163,1,0,0,0,1161,1159,1,0,0,0,1161,1162,1,0,0,0,1162, + 250,1,0,0,0,1163,1161,1,0,0,0,1164,1169,5,34,0,0,1165,1168,3,253, + 126,0,1166,1168,8,6,0,0,1167,1165,1,0,0,0,1167,1166,1,0,0,0,1168, + 1171,1,0,0,0,1169,1167,1,0,0,0,1169,1170,1,0,0,0,1170,1172,1,0,0, + 0,1171,1169,1,0,0,0,1172,1173,5,34,0,0,1173,252,1,0,0,0,1174,1182, + 5,92,0,0,1175,1183,7,7,0,0,1176,1177,5,117,0,0,1177,1178,3,255,127, + 0,1178,1179,3,255,127,0,1179,1180,3,255,127,0,1180,1181,3,255,127, + 0,1181,1183,1,0,0,0,1182,1175,1,0,0,0,1182,1176,1,0,0,0,1183,254, + 1,0,0,0,1184,1185,7,8,0,0,1185,256,1,0,0,0,1186,1187,5,47,0,0,1187, + 1188,5,47,0,0,1188,1192,1,0,0,0,1189,1191,8,9,0,0,1190,1189,1,0, + 0,0,1191,1194,1,0,0,0,1192,1190,1,0,0,0,1192,1193,1,0,0,0,1193,1195, + 1,0,0,0,1194,1192,1,0,0,0,1195,1196,6,128,0,0,1196,258,1,0,0,0,1197, + 1198,5,47,0,0,1198,1199,5,42,0,0,1199,1203,1,0,0,0,1200,1202,9,0, + 0,0,1201,1200,1,0,0,0,1202,1205,1,0,0,0,1203,1204,1,0,0,0,1203,1201, + 1,0,0,0,1204,1206,1,0,0,0,1205,1203,1,0,0,0,1206,1207,5,42,0,0,1207, + 1208,5,47,0,0,1208,1209,1,0,0,0,1209,1210,6,129,0,0,1210,260,1,0, + 0,0,1211,1213,7,10,0,0,1212,1211,1,0,0,0,1213,1214,1,0,0,0,1214, + 1212,1,0,0,0,1214,1215,1,0,0,0,1215,1216,1,0,0,0,1216,1217,6,130, + 0,0,1217,262,1,0,0,0,18,0,1118,1123,1126,1133,1136,1142,1144,1148, + 1153,1155,1161,1167,1169,1182,1192,1203,1214,1,0,1,0 ]; private static __ATN: antlr.ATN; diff --git a/src/capability-language/generated/QuixosCapabilityParser.ts b/src/capability-language/generated/QuixosCapabilityParser.ts index 5fcc69b..8c5197c 100644 --- a/src/capability-language/generated/QuixosCapabilityParser.ts +++ b/src/capability-language/generated/QuixosCapabilityParser.ts @@ -11,123 +11,134 @@ type int = number; export class QuixosCapabilityParser extends antlr.Parser { public static readonly WORKSPACE = 1; - public static readonly TYPE = 2; - public static readonly OBJECT = 3; - public static readonly STORABLE = 4; - public static readonly IMPLEMENTS = 5; - public static readonly REF = 6; - public static readonly FRAGMENT = 7; - public static readonly IMPORT = 8; - public static readonly EXTERNAL = 9; - public static readonly ATOM = 10; - public static readonly INTERFACE = 11; - public static readonly INTERFACES = 12; - public static readonly PACKAGE = 13; - public static readonly VALUE = 14; - public static readonly RELATION = 15; - public static readonly OPERATION = 16; - public static readonly FUNCTION = 17; - public static readonly CONSTRUCTOR = 18; - public static readonly CONSTRUCTS = 19; - public static readonly INPUT = 20; - public static readonly CONFORM = 21; - public static readonly AS = 22; - public static readonly BIND = 23; - public static readonly STATIC = 24; - public static readonly TO = 25; - public static readonly PRIVATE = 26; - public static readonly SHARED = 27; - public static readonly STATE = 28; - public static readonly EDGE = 29; - public static readonly PROJECTION = 30; - public static readonly WITH = 31; - public static readonly USING = 32; - public static readonly VIA = 33; - public static readonly MATERIALIZE = 34; - public static readonly IF = 35; - public static readonly ABSENT = 36; - public static readonly ON = 37; - public static readonly POLICY = 38; - public static readonly DEFAULT = 39; - public static readonly SOURCE = 40; - public static readonly REPOSITORY = 41; - public static readonly COMMIT = 42; - public static readonly REVISION = 43; - public static readonly SEMANTIC_MAJOR = 44; - public static readonly ON_DELETE = 45; - public static readonly RETAIN_OTHER = 46; - public static readonly KEYED = 47; - public static readonly PUBLIC_TRAVERSAL = 48; - public static readonly ID = 49; - public static readonly DOC = 50; - public static readonly MODE = 51; - public static readonly EMITS = 52; - public static readonly RECEIVER = 53; - public static readonly REQUIRES = 54; - public static readonly ANY = 55; - public static readonly GET = 56; - public static readonly SET = 57; - public static readonly WATCH = 58; - public static readonly START = 59; - public static readonly STOP = 60; - public static readonly READ = 61; - public static readonly WRITE = 62; - public static readonly RESOLVE = 63; - public static readonly CONNECT = 64; - public static readonly DISCONNECT = 65; - public static readonly CALL = 66; - public static readonly WATCH_START = 67; - public static readonly WATCH_STOP = 68; - public static readonly SUBSCRIBE = 69; - public static readonly UNSUBSCRIBE = 70; - public static readonly OPTIMISTIC_REGISTER = 71; - public static readonly CRDT = 72; - public static readonly OPTIONAL_ONE = 73; - public static readonly EXACTLY_ONE = 74; - public static readonly MANY_UNIQUE = 75; - public static readonly MANY = 76; - public static readonly ORDERED = 77; - public static readonly UNIT = 78; - public static readonly WATCH_HANDLE = 79; - public static readonly MESSAGE = 80; - public static readonly ATOM_REF = 81; - public static readonly INTERFACE_REF = 82; - public static readonly OPTIONAL = 83; - public static readonly LIST = 84; - public static readonly RECORD = 85; - public static readonly BOOL = 86; - public static readonly BYTES = 87; - public static readonly DOUBLE = 88; - public static readonly INT32 = 89; - public static readonly INT64 = 90; - public static readonly STRING = 91; - public static readonly UINT32 = 92; - public static readonly UINT64 = 93; - public static readonly TRUE = 94; - public static readonly FALSE = 95; - public static readonly NULL = 96; - public static readonly ARROW = 97; - public static readonly COLON = 98; - public static readonly SEMI = 99; - public static readonly COMMA = 100; - public static readonly DOT = 101; - public static readonly LBRACE = 102; - public static readonly RBRACE = 103; - public static readonly LBRACK = 104; - public static readonly RBRACK = 105; - public static readonly LPAREN = 106; - public static readonly RPAREN = 107; - public static readonly LT = 108; - public static readonly GT = 109; - public static readonly AMP = 110; - public static readonly EQUAL = 111; - public static readonly INTEGER = 112; - public static readonly JSON_NUMBER = 113; - public static readonly IDENTIFIER = 114; - public static readonly STRING_LITERAL = 115; - public static readonly LINE_COMMENT = 116; - public static readonly BLOCK_COMMENT = 117; - public static readonly WS = 118; + public static readonly QUERY = 2; + public static readonly ROOT = 3; + public static readonly DOCUMENT = 4; + public static readonly FRAGMENTS = 5; + public static readonly VIEW = 6; + public static readonly MAX = 7; + public static readonly ALLOW = 8; + public static readonly POLL = 9; + public static readonly QUERYABLE = 10; + public static readonly RPC = 11; + public static readonly QUERY_REASON = 12; + public static readonly TYPE = 13; + public static readonly OBJECT = 14; + public static readonly STORABLE = 15; + public static readonly IMPLEMENTS = 16; + public static readonly REF = 17; + public static readonly FRAGMENT = 18; + public static readonly IMPORT = 19; + public static readonly EXTERNAL = 20; + public static readonly ATOM = 21; + public static readonly INTERFACE = 22; + public static readonly INTERFACES = 23; + public static readonly PACKAGE = 24; + public static readonly VALUE = 25; + public static readonly RELATION = 26; + public static readonly OPERATION = 27; + public static readonly FUNCTION = 28; + public static readonly CONSTRUCTOR = 29; + public static readonly CONSTRUCTS = 30; + public static readonly INPUT = 31; + public static readonly CONFORM = 32; + public static readonly AS = 33; + public static readonly BIND = 34; + public static readonly STATIC = 35; + public static readonly TO = 36; + public static readonly PRIVATE = 37; + public static readonly SHARED = 38; + public static readonly STATE = 39; + public static readonly EDGE = 40; + public static readonly PROJECTION = 41; + public static readonly WITH = 42; + public static readonly USING = 43; + public static readonly VIA = 44; + public static readonly MATERIALIZE = 45; + public static readonly IF = 46; + public static readonly ABSENT = 47; + public static readonly ON = 48; + public static readonly POLICY = 49; + public static readonly DEFAULT = 50; + public static readonly SOURCE = 51; + public static readonly REPOSITORY = 52; + public static readonly COMMIT = 53; + public static readonly REVISION = 54; + public static readonly SEMANTIC_MAJOR = 55; + public static readonly ON_DELETE = 56; + public static readonly RETAIN_OTHER = 57; + public static readonly KEYED = 58; + public static readonly PUBLIC_TRAVERSAL = 59; + public static readonly ID = 60; + public static readonly DOC = 61; + public static readonly MODE = 62; + public static readonly EMITS = 63; + public static readonly RECEIVER = 64; + public static readonly REQUIRES = 65; + public static readonly ANY = 66; + public static readonly GET = 67; + public static readonly SET = 68; + public static readonly WATCH = 69; + public static readonly START = 70; + public static readonly STOP = 71; + public static readonly READ = 72; + public static readonly WRITE = 73; + public static readonly RESOLVE = 74; + public static readonly CONNECT = 75; + public static readonly DISCONNECT = 76; + public static readonly CALL = 77; + public static readonly WATCH_START = 78; + public static readonly WATCH_STOP = 79; + public static readonly SUBSCRIBE = 80; + public static readonly UNSUBSCRIBE = 81; + public static readonly OPTIMISTIC_REGISTER = 82; + public static readonly CRDT = 83; + public static readonly OPTIONAL_ONE = 84; + public static readonly EXACTLY_ONE = 85; + public static readonly MANY_UNIQUE = 86; + public static readonly MANY = 87; + public static readonly ORDERED = 88; + public static readonly UNIT = 89; + public static readonly WATCH_HANDLE = 90; + public static readonly MESSAGE = 91; + public static readonly ATOM_REF = 92; + public static readonly INTERFACE_REF = 93; + public static readonly OPTIONAL = 94; + public static readonly LIST = 95; + public static readonly RECORD = 96; + public static readonly BOOL = 97; + public static readonly BYTES = 98; + public static readonly DOUBLE = 99; + public static readonly INT32 = 100; + public static readonly INT64 = 101; + public static readonly STRING = 102; + public static readonly UINT32 = 103; + public static readonly UINT64 = 104; + public static readonly TRUE = 105; + public static readonly FALSE = 106; + public static readonly NULL = 107; + public static readonly ARROW = 108; + public static readonly COLON = 109; + public static readonly SEMI = 110; + public static readonly COMMA = 111; + public static readonly DOT = 112; + public static readonly LBRACE = 113; + public static readonly RBRACE = 114; + public static readonly LBRACK = 115; + public static readonly RBRACK = 116; + public static readonly LPAREN = 117; + public static readonly RPAREN = 118; + public static readonly LT = 119; + public static readonly GT = 120; + public static readonly AMP = 121; + public static readonly EQUAL = 122; + public static readonly INTEGER = 123; + public static readonly JSON_NUMBER = 124; + public static readonly IDENTIFIER = 125; + public static readonly STRING_LITERAL = 126; + public static readonly LINE_COMMENT = 127; + public static readonly BLOCK_COMMENT = 128; + public static readonly WS = 129; public static readonly RULE_document = 0; public static readonly RULE_fragmentDecl = 1; public static readonly RULE_sourceImportDecl = 2; @@ -150,53 +161,58 @@ export class QuixosCapabilityParser extends antlr.Parser { public static readonly RULE_valueMember = 19; public static readonly RULE_valueMemberOperation = 20; public static readonly RULE_relationshipMember = 21; - public static readonly RULE_relationshipOperation = 22; - public static readonly RULE_targetConstraint = 23; - public static readonly RULE_packageResourceDecl = 24; - public static readonly RULE_packageExport = 25; - public static readonly RULE_packageOperationExport = 26; - public static readonly RULE_packageFunctionExport = 27; - public static readonly RULE_packageConstructorExport = 28; - public static readonly RULE_eventClause = 29; - public static readonly RULE_operationMode = 30; - public static readonly RULE_receiverRequirement = 31; - public static readonly RULE_identifierList = 32; - public static readonly RULE_dependencyBlock = 33; - public static readonly RULE_dependencyPort = 34; - public static readonly RULE_primitiveList = 35; - public static readonly RULE_primitive = 36; - public static readonly RULE_sharedAttachmentDecl = 37; - public static readonly RULE_attachmentDecl = 38; - public static readonly RULE_stateDecl = 39; - public static readonly RULE_storagePolicy = 40; - public static readonly RULE_edgeDecl = 41; - public static readonly RULE_edgeEndpoint = 42; - public static readonly RULE_conformanceDecl = 43; - public static readonly RULE_conformanceItem = 44; - public static readonly RULE_stateFieldBindingDecl = 45; - public static readonly RULE_relationshipMaterializationDecl = 46; - public static readonly RULE_operationBindingDecl = 47; - public static readonly RULE_memberOperationRef = 48; - public static readonly RULE_operationName = 49; - public static readonly RULE_operationProvider = 50; - public static readonly RULE_statePrimitive = 51; - public static readonly RULE_edgePrimitive = 52; - public static readonly RULE_dependencyBindingBlock = 53; - public static readonly RULE_dependencyBinding = 54; - public static readonly RULE_constructorBindingDecl = 55; - public static readonly RULE_valueType = 56; - public static readonly RULE_recordField = 57; - public static readonly RULE_scalarType = 58; - public static readonly RULE_cardinality = 59; - public static readonly RULE_jsonLiteral = 60; - public static readonly RULE_jsonObject = 61; - public static readonly RULE_jsonMember = 62; - public static readonly RULE_jsonArray = 63; - public static readonly RULE_identifier = 64; - public static readonly RULE_stringLiteral = 65; + public static readonly RULE_queryReadContract = 22; + public static readonly RULE_relationshipOperation = 23; + public static readonly RULE_targetConstraint = 24; + public static readonly RULE_packageResourceDecl = 25; + public static readonly RULE_packageExport = 26; + public static readonly RULE_packageQuery = 27; + public static readonly RULE_queryClause = 28; + public static readonly RULE_packageOperationExport = 29; + public static readonly RULE_packageFunctionExport = 30; + public static readonly RULE_packageConstructorExport = 31; + public static readonly RULE_eventClause = 32; + public static readonly RULE_operationMode = 33; + public static readonly RULE_receiverRequirement = 34; + public static readonly RULE_identifierList = 35; + public static readonly RULE_dependencyBlock = 36; + public static readonly RULE_dependencyPort = 37; + public static readonly RULE_primitiveList = 38; + public static readonly RULE_primitive = 39; + public static readonly RULE_sharedAttachmentDecl = 40; + public static readonly RULE_attachmentDecl = 41; + public static readonly RULE_stateDecl = 42; + public static readonly RULE_storagePolicy = 43; + public static readonly RULE_edgeDecl = 44; + public static readonly RULE_edgeEndpoint = 45; + public static readonly RULE_conformanceDecl = 46; + public static readonly RULE_conformanceItem = 47; + public static readonly RULE_stateFieldBindingDecl = 48; + public static readonly RULE_relationshipMaterializationDecl = 49; + public static readonly RULE_operationBindingDecl = 50; + public static readonly RULE_memberOperationRef = 51; + public static readonly RULE_operationName = 52; + public static readonly RULE_operationProvider = 53; + public static readonly RULE_statePrimitive = 54; + public static readonly RULE_edgePrimitive = 55; + public static readonly RULE_dependencyBindingBlock = 56; + public static readonly RULE_dependencyBinding = 57; + public static readonly RULE_constructorBindingDecl = 58; + public static readonly RULE_valueType = 59; + public static readonly RULE_recordField = 60; + public static readonly RULE_scalarType = 61; + public static readonly RULE_cardinality = 62; + public static readonly RULE_jsonLiteral = 63; + public static readonly RULE_jsonObject = 64; + public static readonly RULE_jsonMember = 65; + public static readonly RULE_jsonArray = 66; + public static readonly RULE_identifier = 67; + public static readonly RULE_stringLiteral = 68; public static readonly literalNames = [ - null, "'workspace'", "'type'", "'object'", "'storable'", "'implements'", + null, "'workspace'", "'query'", "'root'", "'document'", "'fragments'", + "'view'", "'max'", "'allow'", "'poll'", "'queryable'", "'rpc'", + "'query-reason'", "'type'", "'object'", "'storable'", "'implements'", "'ref'", "'fragment'", "'import'", "'external'", "'atom'", "'interface'", "'interfaces'", "'package'", "'value'", "'relation'", "'operation'", "'function'", "'constructor'", "'constructs'", "'input'", "'conform'", @@ -218,25 +234,27 @@ export class QuixosCapabilityParser extends antlr.Parser { ]; public static readonly symbolicNames = [ - null, "WORKSPACE", "TYPE", "OBJECT", "STORABLE", "IMPLEMENTS", "REF", - "FRAGMENT", "IMPORT", "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", - "PACKAGE", "VALUE", "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", - "CONSTRUCTS", "INPUT", "CONFORM", "AS", "BIND", "STATIC", "TO", - "PRIVATE", "SHARED", "STATE", "EDGE", "PROJECTION", "WITH", "USING", - "VIA", "MATERIALIZE", "IF", "ABSENT", "ON", "POLICY", "DEFAULT", - "SOURCE", "REPOSITORY", "COMMIT", "REVISION", "SEMANTIC_MAJOR", - "ON_DELETE", "RETAIN_OTHER", "KEYED", "PUBLIC_TRAVERSAL", "ID", - "DOC", "MODE", "EMITS", "RECEIVER", "REQUIRES", "ANY", "GET", "SET", - "WATCH", "START", "STOP", "READ", "WRITE", "RESOLVE", "CONNECT", - "DISCONNECT", "CALL", "WATCH_START", "WATCH_STOP", "SUBSCRIBE", - "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", - "MANY_UNIQUE", "MANY", "ORDERED", "UNIT", "WATCH_HANDLE", "MESSAGE", - "ATOM_REF", "INTERFACE_REF", "OPTIONAL", "LIST", "RECORD", "BOOL", - "BYTES", "DOUBLE", "INT32", "INT64", "STRING", "UINT32", "UINT64", - "TRUE", "FALSE", "NULL", "ARROW", "COLON", "SEMI", "COMMA", "DOT", - "LBRACE", "RBRACE", "LBRACK", "RBRACK", "LPAREN", "RPAREN", "LT", - "GT", "AMP", "EQUAL", "INTEGER", "JSON_NUMBER", "IDENTIFIER", "STRING_LITERAL", - "LINE_COMMENT", "BLOCK_COMMENT", "WS" + null, "WORKSPACE", "QUERY", "ROOT", "DOCUMENT", "FRAGMENTS", "VIEW", + "MAX", "ALLOW", "POLL", "QUERYABLE", "RPC", "QUERY_REASON", "TYPE", + "OBJECT", "STORABLE", "IMPLEMENTS", "REF", "FRAGMENT", "IMPORT", + "EXTERNAL", "ATOM", "INTERFACE", "INTERFACES", "PACKAGE", "VALUE", + "RELATION", "OPERATION", "FUNCTION", "CONSTRUCTOR", "CONSTRUCTS", + "INPUT", "CONFORM", "AS", "BIND", "STATIC", "TO", "PRIVATE", "SHARED", + "STATE", "EDGE", "PROJECTION", "WITH", "USING", "VIA", "MATERIALIZE", + "IF", "ABSENT", "ON", "POLICY", "DEFAULT", "SOURCE", "REPOSITORY", + "COMMIT", "REVISION", "SEMANTIC_MAJOR", "ON_DELETE", "RETAIN_OTHER", + "KEYED", "PUBLIC_TRAVERSAL", "ID", "DOC", "MODE", "EMITS", "RECEIVER", + "REQUIRES", "ANY", "GET", "SET", "WATCH", "START", "STOP", "READ", + "WRITE", "RESOLVE", "CONNECT", "DISCONNECT", "CALL", "WATCH_START", + "WATCH_STOP", "SUBSCRIBE", "UNSUBSCRIBE", "OPTIMISTIC_REGISTER", + "CRDT", "OPTIONAL_ONE", "EXACTLY_ONE", "MANY_UNIQUE", "MANY", "ORDERED", + "UNIT", "WATCH_HANDLE", "MESSAGE", "ATOM_REF", "INTERFACE_REF", + "OPTIONAL", "LIST", "RECORD", "BOOL", "BYTES", "DOUBLE", "INT32", + "INT64", "STRING", "UINT32", "UINT64", "TRUE", "FALSE", "NULL", + "ARROW", "COLON", "SEMI", "COMMA", "DOT", "LBRACE", "RBRACE", "LBRACK", + "RBRACK", "LPAREN", "RPAREN", "LT", "GT", "AMP", "EQUAL", "INTEGER", + "JSON_NUMBER", "IDENTIFIER", "STRING_LITERAL", "LINE_COMMENT", "BLOCK_COMMENT", + "WS" ]; public static readonly ruleNames = [ "document", "fragmentDecl", "sourceImportDecl", "workspaceDecl", @@ -244,8 +262,9 @@ export class QuixosCapabilityParser extends antlr.Parser { "resourcePreamble", "atomDecl", "interfaceResourceDecl", "typeParameters", "typeParameter", "interfaceType", "typeArguments", "typeArgument", "typeAliasDecl", "interfaceMember", "operationMember", "valueMember", - "valueMemberOperation", "relationshipMember", "relationshipOperation", - "targetConstraint", "packageResourceDecl", "packageExport", "packageOperationExport", + "valueMemberOperation", "relationshipMember", "queryReadContract", + "relationshipOperation", "targetConstraint", "packageResourceDecl", + "packageExport", "packageQuery", "queryClause", "packageOperationExport", "packageFunctionExport", "packageConstructorExport", "eventClause", "operationMode", "receiverRequirement", "identifierList", "dependencyBlock", "dependencyPort", "primitiveList", "primitive", "sharedAttachmentDecl", @@ -276,42 +295,42 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new DocumentContext(this.context, this.state); this.enterRule(localContext, 0, QuixosCapabilityParser.RULE_document); try { - this.state = 144; + this.state = 150; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 0, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 132; + this.state = 138; this.workspaceDecl(); - this.state = 133; + this.state = 139; this.match(QuixosCapabilityParser.EOF); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 135; + this.state = 141; this.interfaceResourceDecl(); - this.state = 136; + this.state = 142; this.match(QuixosCapabilityParser.EOF); } break; case 3: this.enterOuterAlt(localContext, 3); { - this.state = 138; + this.state = 144; this.packageResourceDecl(); - this.state = 139; + this.state = 145; this.match(QuixosCapabilityParser.EOF); } break; case 4: this.enterOuterAlt(localContext, 4); { - this.state = 141; + this.state = 147; this.fragmentDecl(); - this.state = 142; + this.state = 148; this.match(QuixosCapabilityParser.EOF); } break; @@ -337,25 +356,25 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 146; + this.state = 152; this.match(QuixosCapabilityParser.FRAGMENT); - this.state = 147; + this.state = 153; this.match(QuixosCapabilityParser.LBRACE); - this.state = 151; + this.state = 157; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 136578308) !== 0)) { + while (((((_la - 13)) & ~0x1F) === 0 && ((1 << (_la - 13)) & 34144577) !== 0)) { { { - this.state = 148; + this.state = 154; this.workspaceItem(); } } - this.state = 153; + this.state = 159; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 154; + this.state = 160; this.match(QuixosCapabilityParser.RBRACE); } } @@ -378,11 +397,11 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 156; + this.state = 162; this.match(QuixosCapabilityParser.IMPORT); - this.state = 157; + this.state = 163; this.stringLiteral(); - this.state = 158; + this.state = 164; this.match(QuixosCapabilityParser.SEMI); } } @@ -406,39 +425,39 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 160; - this.match(QuixosCapabilityParser.WORKSPACE); - this.state = 161; - this.identifier(); - this.state = 162; - this.match(QuixosCapabilityParser.ID); - this.state = 163; - this.stringLiteral(); - this.state = 164; - this.match(QuixosCapabilityParser.REVISION); - this.state = 165; - this.stringLiteral(); this.state = 166; - this.match(QuixosCapabilityParser.COMMIT); + this.match(QuixosCapabilityParser.WORKSPACE); this.state = 167; - this.stringLiteral(); + this.identifier(); this.state = 168; - this.match(QuixosCapabilityParser.LBRACE); + this.match(QuixosCapabilityParser.ID); + this.state = 169; + this.stringLiteral(); + this.state = 170; + this.match(QuixosCapabilityParser.REVISION); + this.state = 171; + this.stringLiteral(); this.state = 172; + this.match(QuixosCapabilityParser.COMMIT); + this.state = 173; + this.stringLiteral(); + this.state = 174; + this.match(QuixosCapabilityParser.LBRACE); + this.state = 178; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 136578308) !== 0)) { + while (((((_la - 13)) & ~0x1F) === 0 && ((1 << (_la - 13)) & 34144577) !== 0)) { { { - this.state = 169; + this.state = 175; this.workspaceItem(); } } - this.state = 174; + this.state = 180; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 175; + this.state = 181; this.match(QuixosCapabilityParser.RBRACE); } } @@ -459,55 +478,55 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new WorkspaceItemContext(this.context, this.state); this.enterRule(localContext, 8, QuixosCapabilityParser.RULE_workspaceItem); try { - this.state = 184; + this.state = 190; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 3, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 177; + this.state = 183; this.sourceImportDecl(); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 178; + this.state = 184; this.atomDecl(); } break; case 3: this.enterOuterAlt(localContext, 3); { - this.state = 179; + this.state = 185; this.resourceImportDecl(); } break; case 4: this.enterOuterAlt(localContext, 4); { - this.state = 180; + this.state = 186; this.sharedAttachmentDecl(); } break; case 5: this.enterOuterAlt(localContext, 5); { - this.state = 181; + this.state = 187; this.conformanceDecl(); } break; case 6: this.enterOuterAlt(localContext, 6); { - this.state = 182; + this.state = 188; this.constructorBindingDecl(); } break; case 7: this.enterOuterAlt(localContext, 7); { - this.state = 183; + this.state = 189; this.typeAliasDecl(); } break; @@ -530,32 +549,32 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new ResourceImportDeclContext(this.context, this.state); this.enterRule(localContext, 10, QuixosCapabilityParser.RULE_resourceImportDecl); try { - this.state = 196; + this.state = 202; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 4, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 186; + this.state = 192; this.match(QuixosCapabilityParser.IMPORT); - this.state = 187; + this.state = 193; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 188; + this.state = 194; this.identifier(); - this.state = 189; + this.state = 195; this.match(QuixosCapabilityParser.SEMI); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 191; + this.state = 197; this.match(QuixosCapabilityParser.IMPORT); - this.state = 192; + this.state = 198; this.match(QuixosCapabilityParser.PACKAGE); - this.state = 193; + this.state = 199; this.identifier(); - this.state = 194; + this.state = 200; this.match(QuixosCapabilityParser.SEMI); } break; @@ -580,17 +599,17 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 198; + this.state = 204; this.match(QuixosCapabilityParser.EXTERNAL); - this.state = 199; + this.state = 205; this.match(QuixosCapabilityParser.ATOM); - this.state = 200; + this.state = 206; this.identifier(); - this.state = 201; + this.state = 207; this.match(QuixosCapabilityParser.ID); - this.state = 202; + this.state = 208; this.stringLiteral(); - this.state = 203; + this.state = 209; this.match(QuixosCapabilityParser.SEMI); } } @@ -613,17 +632,17 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 205; + this.state = 211; this.match(QuixosCapabilityParser.EXTERNAL); - this.state = 206; + this.state = 212; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 207; + this.state = 213; this.identifier(); - this.state = 208; + this.state = 214; this.match(QuixosCapabilityParser.REVISION); - this.state = 209; + this.state = 215; this.stringLiteral(); - this.state = 210; + this.state = 216; this.match(QuixosCapabilityParser.SEMI); } } @@ -644,34 +663,34 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new ResourcePreambleContext(this.context, this.state); this.enterRule(localContext, 16, QuixosCapabilityParser.RULE_resourcePreamble); try { - this.state = 216; + this.state = 222; this.errorHandler.sync(this); switch (this.interpreter.adaptivePredict(this.tokenStream, 5, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 212; + this.state = 218; this.resourceImportDecl(); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 213; + this.state = 219; this.externalAtomDecl(); } break; case 3: this.enterOuterAlt(localContext, 3); { - this.state = 214; + this.state = 220; this.externalInterfaceDecl(); } break; case 4: this.enterOuterAlt(localContext, 4); { - this.state = 215; + this.state = 221; this.typeAliasDecl(); } break; @@ -697,27 +716,27 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 218; - this.match(QuixosCapabilityParser.ATOM); - this.state = 219; - this.identifier(); - this.state = 220; - this.match(QuixosCapabilityParser.ID); - this.state = 221; - this.stringLiteral(); this.state = 224; + this.match(QuixosCapabilityParser.ATOM); + this.state = 225; + this.identifier(); + this.state = 226; + this.match(QuixosCapabilityParser.ID); + this.state = 227; + this.stringLiteral(); + this.state = 230; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 50) { + if (_la === 61) { { - this.state = 222; + this.state = 228; this.match(QuixosCapabilityParser.DOC); - this.state = 223; + this.state = 229; this.stringLiteral(); } } - this.state = 226; + this.state = 232; this.match(QuixosCapabilityParser.SEMI); } } @@ -741,87 +760,87 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 231; - this.errorHandler.sync(this); - _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 772) !== 0)) { - { - { - this.state = 228; - this.resourcePreamble(); - } - } - this.state = 233; - this.errorHandler.sync(this); - _la = this.tokenStream.LA(1); - } - this.state = 234; - this.match(QuixosCapabilityParser.INTERFACE); - this.state = 235; - this.identifier(); this.state = 237; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 1581056) !== 0)) { { - this.state = 236; + { + this.state = 234; + this.resourcePreamble(); + } + } + this.state = 239; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + this.state = 240; + this.match(QuixosCapabilityParser.INTERFACE); + this.state = 241; + this.identifier(); + this.state = 243; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 119) { + { + this.state = 242; this.typeParameters(); } } - this.state = 239; + this.state = 245; this.match(QuixosCapabilityParser.ID); - this.state = 240; + this.state = 246; this.stringLiteral(); - this.state = 241; + this.state = 247; this.match(QuixosCapabilityParser.REVISION); - this.state = 242; + this.state = 248; this.stringLiteral(); - this.state = 252; + this.state = 258; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 54) { + if (_la === 65) { { - this.state = 243; - this.match(QuixosCapabilityParser.REQUIRES); - this.state = 244; - this.interfaceType(); this.state = 249; + this.match(QuixosCapabilityParser.REQUIRES); + this.state = 250; + this.interfaceType(); + this.state = 255; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 111) { { { - this.state = 245; + this.state = 251; this.match(QuixosCapabilityParser.COMMA); - this.state = 246; + this.state = 252; this.interfaceType(); } } - this.state = 251; + this.state = 257; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } - this.state = 254; + this.state = 260; this.match(QuixosCapabilityParser.LBRACE); - this.state = 258; + this.state = 264; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 16891904) !== 0)) { + while (((((_la - 10)) & ~0x1F) === 0 && ((1 << (_la - 10)) & 33783809) !== 0)) { { { - this.state = 255; + this.state = 261; this.interfaceMember(); } } - this.state = 260; + this.state = 266; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 261; + this.state = 267; this.match(QuixosCapabilityParser.RBRACE); } } @@ -845,27 +864,27 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 263; - this.match(QuixosCapabilityParser.LT); - this.state = 264; - this.typeParameter(); this.state = 269; + this.match(QuixosCapabilityParser.LT); + this.state = 270; + this.typeParameter(); + this.state = 275; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 111) { { { - this.state = 265; + this.state = 271; this.match(QuixosCapabilityParser.COMMA); - this.state = 266; + this.state = 272; this.typeParameter(); } } - this.state = 271; + this.state = 277; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 272; + this.state = 278; this.match(QuixosCapabilityParser.GT); } } @@ -887,24 +906,24 @@ export class QuixosCapabilityParser extends antlr.Parser { this.enterRule(localContext, 24, QuixosCapabilityParser.RULE_typeParameter); let _la: number; try { - this.state = 293; + this.state = 299; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.VALUE: this.enterOuterAlt(localContext, 1); { - this.state = 274; + this.state = 280; this.match(QuixosCapabilityParser.VALUE); - this.state = 275; + this.state = 281; this.identifier(); - this.state = 278; + this.state = 284; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 98) { + if (_la === 109) { { - this.state = 276; + this.state = 282; this.match(QuixosCapabilityParser.COLON); - this.state = 277; + this.state = 283; this.match(QuixosCapabilityParser.STORABLE); } } @@ -914,32 +933,32 @@ export class QuixosCapabilityParser extends antlr.Parser { case QuixosCapabilityParser.OBJECT: this.enterOuterAlt(localContext, 2); { - this.state = 280; + this.state = 286; this.match(QuixosCapabilityParser.OBJECT); - this.state = 281; + this.state = 287; this.identifier(); - this.state = 291; + this.state = 297; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 5) { + if (_la === 16) { { - this.state = 282; - this.match(QuixosCapabilityParser.IMPLEMENTS); - this.state = 283; - this.interfaceType(); this.state = 288; + this.match(QuixosCapabilityParser.IMPLEMENTS); + this.state = 289; + this.interfaceType(); + this.state = 294; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 110) { + while (_la === 121) { { { - this.state = 284; + this.state = 290; this.match(QuixosCapabilityParser.AMP); - this.state = 285; + this.state = 291; this.interfaceType(); } } - this.state = 290; + this.state = 296; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } @@ -972,14 +991,14 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 295; + this.state = 301; this.identifier(); - this.state = 297; + this.state = 303; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 119) { { - this.state = 296; + this.state = 302; this.typeArguments(); } } @@ -1006,27 +1025,27 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 299; - this.match(QuixosCapabilityParser.LT); - this.state = 300; - this.typeArgument(); this.state = 305; + this.match(QuixosCapabilityParser.LT); + this.state = 306; + this.typeArgument(); + this.state = 311; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 111) { { { - this.state = 301; + this.state = 307; this.match(QuixosCapabilityParser.COMMA); - this.state = 302; + this.state = 308; this.typeArgument(); } } - this.state = 307; + this.state = 313; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 308; + this.state = 314; this.match(QuixosCapabilityParser.GT); } } @@ -1047,36 +1066,46 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new TypeArgumentContext(this.context, this.state); this.enterRule(localContext, 30, QuixosCapabilityParser.RULE_typeArgument); try { - this.state = 317; + this.state = 323; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.ATOM: this.enterOuterAlt(localContext, 1); { - this.state = 310; + this.state = 316; this.match(QuixosCapabilityParser.ATOM); - this.state = 311; + this.state = 317; this.identifier(); } break; case QuixosCapabilityParser.INTERFACE: this.enterOuterAlt(localContext, 2); { - this.state = 312; + this.state = 318; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 313; + this.state = 319; this.interfaceType(); } break; case QuixosCapabilityParser.OBJECT: this.enterOuterAlt(localContext, 3); { - this.state = 314; + this.state = 320; this.match(QuixosCapabilityParser.OBJECT); - this.state = 315; + this.state = 321; this.identifier(); } break; + case QuixosCapabilityParser.QUERY: + case QuixosCapabilityParser.ROOT: + case QuixosCapabilityParser.DOCUMENT: + case QuixosCapabilityParser.FRAGMENTS: + case QuixosCapabilityParser.VIEW: + case QuixosCapabilityParser.MAX: + case QuixosCapabilityParser.ALLOW: + case QuixosCapabilityParser.POLL: + case QuixosCapabilityParser.QUERYABLE: + case QuixosCapabilityParser.RPC: case QuixosCapabilityParser.REF: case QuixosCapabilityParser.SOURCE: case QuixosCapabilityParser.UNIT: @@ -1098,7 +1127,7 @@ export class QuixosCapabilityParser extends antlr.Parser { case QuixosCapabilityParser.IDENTIFIER: this.enterOuterAlt(localContext, 4); { - this.state = 316; + this.state = 322; this.valueType(); } break; @@ -1126,25 +1155,25 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 319; + this.state = 325; this.match(QuixosCapabilityParser.TYPE); - this.state = 320; + this.state = 326; this.identifier(); - this.state = 322; + this.state = 328; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 119) { { - this.state = 321; + this.state = 327; this.typeParameters(); } } - this.state = 324; + this.state = 330; this.match(QuixosCapabilityParser.EQUAL); - this.state = 325; + this.state = 331; this.valueType(); - this.state = 326; + this.state = 332; this.match(QuixosCapabilityParser.SEMI); } } @@ -1165,33 +1194,30 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new InterfaceMemberContext(this.context, this.state); this.enterRule(localContext, 34, QuixosCapabilityParser.RULE_interfaceMember); try { - this.state = 331; + this.state = 337; this.errorHandler.sync(this); - switch (this.tokenStream.LA(1)) { - case QuixosCapabilityParser.VALUE: + switch (this.interpreter.adaptivePredict(this.tokenStream, 21, this.context) ) { + case 1: this.enterOuterAlt(localContext, 1); { - this.state = 328; + this.state = 334; this.valueMember(); } break; - case QuixosCapabilityParser.RELATION: + case 2: this.enterOuterAlt(localContext, 2); { - this.state = 329; + this.state = 335; this.relationshipMember(); } break; - case QuixosCapabilityParser.OPERATION: - case QuixosCapabilityParser.STATIC: + case 3: this.enterOuterAlt(localContext, 3); { - this.state = 330; + this.state = 336; this.operationMember(); } break; - default: - throw new antlr.NoViableAltException(this); } } catch (re) { @@ -1214,43 +1240,43 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 334; + this.state = 340; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 24) { + if (_la === 35) { { - this.state = 333; + this.state = 339; this.match(QuixosCapabilityParser.STATIC); } } - this.state = 336; - this.match(QuixosCapabilityParser.OPERATION); - this.state = 337; - this.identifier(); - this.state = 338; - this.match(QuixosCapabilityParser.ID); - this.state = 339; - this.stringLiteral(); - this.state = 340; - this.match(QuixosCapabilityParser.COLON); - this.state = 341; - this.valueType(); this.state = 342; - this.match(QuixosCapabilityParser.ARROW); + this.match(QuixosCapabilityParser.OPERATION); this.state = 343; - this.valueType(); + this.identifier(); this.state = 344; - this.match(QuixosCapabilityParser.LBRACE); - this.state = 345; - this.match(QuixosCapabilityParser.CALL); - this.state = 346; this.match(QuixosCapabilityParser.ID); - this.state = 347; + this.state = 345; this.stringLiteral(); + this.state = 346; + this.match(QuixosCapabilityParser.COLON); + this.state = 347; + this.valueType(); this.state = 348; - this.match(QuixosCapabilityParser.SEMI); + this.match(QuixosCapabilityParser.ARROW); this.state = 349; + this.valueType(); + this.state = 350; + this.match(QuixosCapabilityParser.LBRACE); + this.state = 351; + this.match(QuixosCapabilityParser.CALL); + this.state = 352; + this.match(QuixosCapabilityParser.ID); + this.state = 353; + this.stringLiteral(); + this.state = 354; + this.match(QuixosCapabilityParser.SEMI); + this.state = 355; this.match(QuixosCapabilityParser.RBRACE); } } @@ -1274,35 +1300,45 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 351; - this.match(QuixosCapabilityParser.VALUE); - this.state = 352; - this.identifier(); - this.state = 353; - this.match(QuixosCapabilityParser.ID); - this.state = 354; - this.stringLiteral(); - this.state = 355; - this.match(QuixosCapabilityParser.COLON); - this.state = 356; - this.valueType(); - this.state = 357; - this.match(QuixosCapabilityParser.LBRACE); - this.state = 361; + this.state = 358; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (((((_la - 56)) & ~0x1F) === 0 && ((1 << (_la - 56)) & 7) !== 0)) { + if (_la === 10) { + { + this.state = 357; + this.queryReadContract(); + } + } + + this.state = 360; + this.match(QuixosCapabilityParser.VALUE); + this.state = 361; + this.identifier(); + this.state = 362; + this.match(QuixosCapabilityParser.ID); + this.state = 363; + this.stringLiteral(); + this.state = 364; + this.match(QuixosCapabilityParser.COLON); + this.state = 365; + this.valueType(); + this.state = 366; + this.match(QuixosCapabilityParser.LBRACE); + this.state = 370; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while (((((_la - 67)) & ~0x1F) === 0 && ((1 << (_la - 67)) & 7) !== 0)) { { { - this.state = 358; + this.state = 367; this.valueMemberOperation(); } } - this.state = 363; + this.state = 372; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 364; + this.state = 373; this.match(QuixosCapabilityParser.RBRACE); } } @@ -1323,53 +1359,53 @@ export class QuixosCapabilityParser extends antlr.Parser { let localContext = new ValueMemberOperationContext(this.context, this.state); this.enterRule(localContext, 40, QuixosCapabilityParser.RULE_valueMemberOperation); try { - this.state = 385; + this.state = 394; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.GET: this.enterOuterAlt(localContext, 1); { - this.state = 366; + this.state = 375; this.match(QuixosCapabilityParser.GET); - this.state = 367; + this.state = 376; this.match(QuixosCapabilityParser.ID); - this.state = 368; + this.state = 377; this.stringLiteral(); - this.state = 369; + this.state = 378; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.SET: this.enterOuterAlt(localContext, 2); { - this.state = 371; + this.state = 380; this.match(QuixosCapabilityParser.SET); - this.state = 372; + this.state = 381; this.match(QuixosCapabilityParser.ID); - this.state = 373; + this.state = 382; this.stringLiteral(); - this.state = 374; + this.state = 383; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.WATCH: this.enterOuterAlt(localContext, 3); { - this.state = 376; + this.state = 385; this.match(QuixosCapabilityParser.WATCH); - this.state = 377; + this.state = 386; this.match(QuixosCapabilityParser.START); - this.state = 378; + this.state = 387; this.match(QuixosCapabilityParser.ID); - this.state = 379; + this.state = 388; this.stringLiteral(); - this.state = 380; + this.state = 389; this.match(QuixosCapabilityParser.STOP); - this.state = 381; + this.state = 390; this.match(QuixosCapabilityParser.ID); - this.state = 382; + this.state = 391; this.stringLiteral(); - this.state = 383; + this.state = 392; this.match(QuixosCapabilityParser.SEMI); } break; @@ -1397,47 +1433,57 @@ export class QuixosCapabilityParser extends antlr.Parser { try { this.enterOuterAlt(localContext, 1); { - this.state = 387; - this.match(QuixosCapabilityParser.RELATION); - this.state = 388; - this.identifier(); - this.state = 389; - this.match(QuixosCapabilityParser.ID); - this.state = 390; - this.stringLiteral(); - this.state = 391; - this.match(QuixosCapabilityParser.COLON); - this.state = 392; - this.cardinality(); - this.state = 393; - this.targetConstraint(); - this.state = 395; + this.state = 397; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 77) { + if (_la === 10) { { - this.state = 394; + this.state = 396; + this.queryReadContract(); + } + } + + this.state = 399; + this.match(QuixosCapabilityParser.RELATION); + this.state = 400; + this.identifier(); + this.state = 401; + this.match(QuixosCapabilityParser.ID); + this.state = 402; + this.stringLiteral(); + this.state = 403; + this.match(QuixosCapabilityParser.COLON); + this.state = 404; + this.cardinality(); + this.state = 405; + this.targetConstraint(); + this.state = 407; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 88) { + { + this.state = 406; this.match(QuixosCapabilityParser.ORDERED); } } - this.state = 397; + this.state = 409; this.match(QuixosCapabilityParser.LBRACE); - this.state = 401; + this.state = 413; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (((((_la - 58)) & ~0x1F) === 0 && ((1 << (_la - 58)) & 225) !== 0)) { + while (((((_la - 69)) & ~0x1F) === 0 && ((1 << (_la - 69)) & 225) !== 0)) { { { - this.state = 398; + this.state = 410; this.relationshipOperation(); } } - this.state = 403; + this.state = 415; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 404; + this.state = 416; this.match(QuixosCapabilityParser.RBRACE); } } @@ -1454,70 +1500,104 @@ export class QuixosCapabilityParser extends antlr.Parser { } return localContext; } + public queryReadContract(): QueryReadContractContext { + let localContext = new QueryReadContractContext(this.context, this.state); + this.enterRule(localContext, 44, QuixosCapabilityParser.RULE_queryReadContract); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 418; + this.match(QuixosCapabilityParser.QUERYABLE); + this.state = 420; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 11) { + { + this.state = 419; + this.match(QuixosCapabilityParser.RPC); + } + } + + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } public relationshipOperation(): RelationshipOperationContext { let localContext = new RelationshipOperationContext(this.context, this.state); - this.enterRule(localContext, 44, QuixosCapabilityParser.RULE_relationshipOperation); + this.enterRule(localContext, 46, QuixosCapabilityParser.RULE_relationshipOperation); try { - this.state = 430; + this.state = 446; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.RESOLVE: this.enterOuterAlt(localContext, 1); { - this.state = 406; + this.state = 422; this.match(QuixosCapabilityParser.RESOLVE); - this.state = 407; + this.state = 423; this.match(QuixosCapabilityParser.ID); - this.state = 408; + this.state = 424; this.stringLiteral(); - this.state = 409; + this.state = 425; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.CONNECT: this.enterOuterAlt(localContext, 2); { - this.state = 411; + this.state = 427; this.match(QuixosCapabilityParser.CONNECT); - this.state = 412; + this.state = 428; this.match(QuixosCapabilityParser.ID); - this.state = 413; + this.state = 429; this.stringLiteral(); - this.state = 414; + this.state = 430; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.DISCONNECT: this.enterOuterAlt(localContext, 3); { - this.state = 416; + this.state = 432; this.match(QuixosCapabilityParser.DISCONNECT); - this.state = 417; + this.state = 433; this.match(QuixosCapabilityParser.ID); - this.state = 418; + this.state = 434; this.stringLiteral(); - this.state = 419; + this.state = 435; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.WATCH: this.enterOuterAlt(localContext, 4); { - this.state = 421; + this.state = 437; this.match(QuixosCapabilityParser.WATCH); - this.state = 422; + this.state = 438; this.match(QuixosCapabilityParser.START); - this.state = 423; + this.state = 439; this.match(QuixosCapabilityParser.ID); - this.state = 424; + this.state = 440; this.stringLiteral(); - this.state = 425; + this.state = 441; this.match(QuixosCapabilityParser.STOP); - this.state = 426; + this.state = 442; this.match(QuixosCapabilityParser.ID); - this.state = 427; + this.state = 443; this.stringLiteral(); - this.state = 428; + this.state = 444; this.match(QuixosCapabilityParser.SEMI); } break; @@ -1540,34 +1620,34 @@ export class QuixosCapabilityParser extends antlr.Parser { } public targetConstraint(): TargetConstraintContext { let localContext = new TargetConstraintContext(this.context, this.state); - this.enterRule(localContext, 46, QuixosCapabilityParser.RULE_targetConstraint); + this.enterRule(localContext, 48, QuixosCapabilityParser.RULE_targetConstraint); let _la: number; try { - this.state = 441; + this.state = 457; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.ATOM: this.enterOuterAlt(localContext, 1); { - this.state = 432; + this.state = 448; this.match(QuixosCapabilityParser.ATOM); - this.state = 433; + this.state = 449; this.identifier(); } break; case QuixosCapabilityParser.INTERFACE: this.enterOuterAlt(localContext, 2); { - this.state = 434; + this.state = 450; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 435; + this.state = 451; this.identifier(); - this.state = 437; + this.state = 453; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 119) { { - this.state = 436; + this.state = 452; this.typeArguments(); } } @@ -1577,9 +1657,9 @@ export class QuixosCapabilityParser extends antlr.Parser { case QuixosCapabilityParser.OBJECT: this.enterOuterAlt(localContext, 3); { - this.state = 439; + this.state = 455; this.match(QuixosCapabilityParser.OBJECT); - this.state = 440; + this.state = 456; this.identifier(); } break; @@ -1602,66 +1682,66 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageResourceDecl(): PackageResourceDeclContext { let localContext = new PackageResourceDeclContext(this.context, this.state); - this.enterRule(localContext, 48, QuixosCapabilityParser.RULE_packageResourceDecl); + this.enterRule(localContext, 50, QuixosCapabilityParser.RULE_packageResourceDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 446; + this.state = 462; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 772) !== 0)) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 1581056) !== 0)) { { { - this.state = 443; + this.state = 459; this.resourcePreamble(); } } - this.state = 448; + this.state = 464; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 449; + this.state = 465; this.match(QuixosCapabilityParser.PACKAGE); - this.state = 450; + this.state = 466; this.identifier(); - this.state = 451; + this.state = 467; this.match(QuixosCapabilityParser.ID); - this.state = 452; + this.state = 468; this.stringLiteral(); - this.state = 453; + this.state = 469; this.match(QuixosCapabilityParser.REVISION); - this.state = 454; + this.state = 470; this.stringLiteral(); - this.state = 457; + this.state = 473; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 44) { + if (_la === 55) { { - this.state = 455; + this.state = 471; this.match(QuixosCapabilityParser.SEMANTIC_MAJOR); - this.state = 456; + this.state = 472; this.match(QuixosCapabilityParser.INTEGER); } } - this.state = 459; + this.state = 475; this.match(QuixosCapabilityParser.LBRACE); - this.state = 463; + this.state = 479; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 458752) !== 0)) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 939524100) !== 0)) { { { - this.state = 460; + this.state = 476; this.packageExport(); } } - this.state = 465; + this.state = 481; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 466; + this.state = 482; this.match(QuixosCapabilityParser.RBRACE); } } @@ -1680,32 +1760,203 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageExport(): PackageExportContext { let localContext = new PackageExportContext(this.context, this.state); - this.enterRule(localContext, 50, QuixosCapabilityParser.RULE_packageExport); + this.enterRule(localContext, 52, QuixosCapabilityParser.RULE_packageExport); try { - this.state = 471; + this.state = 488; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.OPERATION: this.enterOuterAlt(localContext, 1); { - this.state = 468; + this.state = 484; this.packageOperationExport(); } break; case QuixosCapabilityParser.FUNCTION: this.enterOuterAlt(localContext, 2); { - this.state = 469; + this.state = 485; this.packageFunctionExport(); } break; case QuixosCapabilityParser.CONSTRUCTOR: this.enterOuterAlt(localContext, 3); { - this.state = 470; + this.state = 486; this.packageConstructorExport(); } break; + case QuixosCapabilityParser.QUERY: + this.enterOuterAlt(localContext, 4); + { + this.state = 487; + this.packageQuery(); + } + break; + default: + throw new antlr.NoViableAltException(this); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public packageQuery(): PackageQueryContext { + let localContext = new PackageQueryContext(this.context, this.state); + this.enterRule(localContext, 54, QuixosCapabilityParser.RULE_packageQuery); + let _la: number; + try { + this.enterOuterAlt(localContext, 1); + { + this.state = 490; + this.match(QuixosCapabilityParser.QUERY); + this.state = 491; + this.identifier(); + this.state = 492; + this.match(QuixosCapabilityParser.ID); + this.state = 493; + this.stringLiteral(); + this.state = 494; + this.match(QuixosCapabilityParser.ROOT); + this.state = 495; + this.interfaceType(); + this.state = 496; + this.match(QuixosCapabilityParser.DOCUMENT); + this.state = 497; + this.stringLiteral(); + this.state = 498; + this.match(QuixosCapabilityParser.OPERATION); + this.state = 499; + this.stringLiteral(); + this.state = 500; + this.match(QuixosCapabilityParser.LBRACE); + this.state = 504; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 992) !== 0) || _la === 69) { + { + { + this.state = 501; + this.queryClause(); + } + } + this.state = 506; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + } + this.state = 507; + this.match(QuixosCapabilityParser.RBRACE); + } + } + catch (re) { + if (re instanceof antlr.RecognitionException) { + this.errorHandler.reportError(this, re); + this.errorHandler.recover(this, re); + } else { + throw re; + } + } + finally { + this.exitRule(); + } + return localContext; + } + public queryClause(): QueryClauseContext { + let localContext = new QueryClauseContext(this.context, this.state); + this.enterRule(localContext, 56, QuixosCapabilityParser.RULE_queryClause); + try { + this.state = 539; + this.errorHandler.sync(this); + switch (this.tokenStream.LA(1)) { + case QuixosCapabilityParser.FRAGMENTS: + this.enterOuterAlt(localContext, 1); + { + this.state = 509; + this.match(QuixosCapabilityParser.FRAGMENTS); + this.state = 510; + this.stringLiteral(); + this.state = 511; + this.match(QuixosCapabilityParser.SEMI); + } + break; + case QuixosCapabilityParser.VIEW: + this.enterOuterAlt(localContext, 2); + { + this.state = 513; + this.match(QuixosCapabilityParser.VIEW); + this.state = 514; + this.identifier(); + this.state = 515; + this.match(QuixosCapabilityParser.AS); + this.state = 516; + this.interfaceType(); + this.state = 517; + this.match(QuixosCapabilityParser.SEMI); + } + break; + case QuixosCapabilityParser.MAX: + this.enterOuterAlt(localContext, 3); + { + this.state = 519; + this.match(QuixosCapabilityParser.MAX); + this.state = 520; + this.identifier(); + this.state = 521; + this.match(QuixosCapabilityParser.INTEGER); + this.state = 522; + this.match(QuixosCapabilityParser.SEMI); + } + break; + case QuixosCapabilityParser.ALLOW: + this.enterOuterAlt(localContext, 4); + { + this.state = 524; + this.match(QuixosCapabilityParser.ALLOW); + this.state = 525; + this.interfaceType(); + this.state = 526; + this.match(QuixosCapabilityParser.DOT); + this.state = 527; + this.identifier(); + this.state = 528; + this.identifier(); + this.state = 529; + this.stringLiteral(); + this.state = 530; + this.match(QuixosCapabilityParser.SEMI); + } + break; + case QuixosCapabilityParser.WATCH: + this.enterOuterAlt(localContext, 5); + { + this.state = 532; + this.match(QuixosCapabilityParser.WATCH); + this.state = 533; + this.match(QuixosCapabilityParser.SEMI); + } + break; + case QuixosCapabilityParser.POLL: + this.enterOuterAlt(localContext, 6); + { + this.state = 534; + this.match(QuixosCapabilityParser.POLL); + this.state = 535; + this.match(QuixosCapabilityParser.INTEGER); + this.state = 536; + this.stringLiteral(); + this.state = 537; + this.match(QuixosCapabilityParser.SEMI); + } + break; default: throw new antlr.NoViableAltException(this); } @@ -1725,66 +1976,66 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageOperationExport(): PackageOperationExportContext { let localContext = new PackageOperationExportContext(this.context, this.state); - this.enterRule(localContext, 52, QuixosCapabilityParser.RULE_packageOperationExport); + this.enterRule(localContext, 58, QuixosCapabilityParser.RULE_packageOperationExport); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 473; + this.state = 541; this.match(QuixosCapabilityParser.OPERATION); - this.state = 474; + this.state = 542; this.identifier(); - this.state = 476; + this.state = 544; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 119) { { - this.state = 475; + this.state = 543; this.typeParameters(); } } - this.state = 478; + this.state = 546; this.match(QuixosCapabilityParser.ID); - this.state = 479; + this.state = 547; this.stringLiteral(); - this.state = 480; + this.state = 548; this.match(QuixosCapabilityParser.COLON); - this.state = 481; + this.state = 549; this.valueType(); - this.state = 482; + this.state = 550; this.match(QuixosCapabilityParser.ARROW); - this.state = 483; + this.state = 551; this.valueType(); - this.state = 484; + this.state = 552; this.match(QuixosCapabilityParser.MODE); - this.state = 485; + this.state = 553; this.operationMode(); - this.state = 487; + this.state = 555; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 52) { + if (_la === 63) { { - this.state = 486; + this.state = 554; this.eventClause(); } } - this.state = 489; + this.state = 557; this.match(QuixosCapabilityParser.RECEIVER); - this.state = 490; + this.state = 558; this.receiverRequirement(); - this.state = 492; + this.state = 560; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 54) { + if (_la === 65) { { - this.state = 491; + this.state = 559; this.dependencyBlock(); } } - this.state = 494; + this.state = 562; this.match(QuixosCapabilityParser.SEMI); } } @@ -1803,48 +2054,48 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageFunctionExport(): PackageFunctionExportContext { let localContext = new PackageFunctionExportContext(this.context, this.state); - this.enterRule(localContext, 54, QuixosCapabilityParser.RULE_packageFunctionExport); + this.enterRule(localContext, 60, QuixosCapabilityParser.RULE_packageFunctionExport); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 496; + this.state = 564; this.match(QuixosCapabilityParser.FUNCTION); - this.state = 497; + this.state = 565; this.identifier(); - this.state = 499; + this.state = 567; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 119) { { - this.state = 498; + this.state = 566; this.typeParameters(); } } - this.state = 501; + this.state = 569; this.match(QuixosCapabilityParser.ID); - this.state = 502; + this.state = 570; this.stringLiteral(); - this.state = 503; + this.state = 571; this.match(QuixosCapabilityParser.COLON); - this.state = 504; + this.state = 572; this.valueType(); - this.state = 505; + this.state = 573; this.match(QuixosCapabilityParser.ARROW); - this.state = 506; + this.state = 574; this.valueType(); - this.state = 508; + this.state = 576; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 54) { + if (_la === 65) { { - this.state = 507; + this.state = 575; this.dependencyBlock(); } } - this.state = 510; + this.state = 578; this.match(QuixosCapabilityParser.SEMI); } } @@ -1863,38 +2114,38 @@ export class QuixosCapabilityParser extends antlr.Parser { } public packageConstructorExport(): PackageConstructorExportContext { let localContext = new PackageConstructorExportContext(this.context, this.state); - this.enterRule(localContext, 56, QuixosCapabilityParser.RULE_packageConstructorExport); + this.enterRule(localContext, 62, QuixosCapabilityParser.RULE_packageConstructorExport); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 512; + this.state = 580; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 513; + this.state = 581; this.identifier(); - this.state = 514; + this.state = 582; this.match(QuixosCapabilityParser.ID); - this.state = 515; + this.state = 583; this.stringLiteral(); - this.state = 516; + this.state = 584; this.match(QuixosCapabilityParser.CONSTRUCTS); - this.state = 517; + this.state = 585; this.identifier(); - this.state = 518; + this.state = 586; this.match(QuixosCapabilityParser.COLON); - this.state = 519; + this.state = 587; this.valueType(); - this.state = 521; + this.state = 589; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 54) { + if (_la === 65) { { - this.state = 520; + this.state = 588; this.dependencyBlock(); } } - this.state = 523; + this.state = 591; this.match(QuixosCapabilityParser.SEMI); } } @@ -1913,13 +2164,13 @@ export class QuixosCapabilityParser extends antlr.Parser { } public eventClause(): EventClauseContext { let localContext = new EventClauseContext(this.context, this.state); - this.enterRule(localContext, 58, QuixosCapabilityParser.RULE_eventClause); + this.enterRule(localContext, 64, QuixosCapabilityParser.RULE_eventClause); try { this.enterOuterAlt(localContext, 1); { - this.state = 525; + this.state = 593; this.match(QuixosCapabilityParser.EMITS); - this.state = 526; + this.state = 594; this.valueType(); } } @@ -1938,14 +2189,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public operationMode(): OperationModeContext { let localContext = new OperationModeContext(this.context, this.state); - this.enterRule(localContext, 60, QuixosCapabilityParser.RULE_operationMode); + this.enterRule(localContext, 66, QuixosCapabilityParser.RULE_operationMode); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 528; + this.state = 596; _la = this.tokenStream.LA(1); - if(!(((((_la - 66)) & ~0x1F) === 0 && ((1 << (_la - 66)) & 31) !== 0))) { + if(!(((((_la - 77)) & ~0x1F) === 0 && ((1 << (_la - 77)) & 31) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -1969,71 +2220,71 @@ export class QuixosCapabilityParser extends antlr.Parser { } public receiverRequirement(): ReceiverRequirementContext { let localContext = new ReceiverRequirementContext(this.context, this.state); - this.enterRule(localContext, 62, QuixosCapabilityParser.RULE_receiverRequirement); + this.enterRule(localContext, 68, QuixosCapabilityParser.RULE_receiverRequirement); let _la: number; try { - this.state = 548; + this.state = 616; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.ANY: this.enterOuterAlt(localContext, 1); { - this.state = 530; + this.state = 598; this.match(QuixosCapabilityParser.ANY); } break; case QuixosCapabilityParser.ATOM: this.enterOuterAlt(localContext, 2); { - this.state = 531; + this.state = 599; this.match(QuixosCapabilityParser.ATOM); - this.state = 532; + this.state = 600; this.identifier(); } break; case QuixosCapabilityParser.OBJECT: this.enterOuterAlt(localContext, 3); { - this.state = 533; + this.state = 601; this.match(QuixosCapabilityParser.OBJECT); - this.state = 534; + this.state = 602; this.identifier(); } break; case QuixosCapabilityParser.INTERFACES: this.enterOuterAlt(localContext, 4); { - this.state = 535; + this.state = 603; this.match(QuixosCapabilityParser.INTERFACES); - this.state = 536; + this.state = 604; this.match(QuixosCapabilityParser.LBRACK); - this.state = 545; + this.state = 613; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 40 || _la === 114) { + if ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4092) !== 0) || _la === 51 || _la === 125) { { - this.state = 537; + this.state = 605; this.interfaceType(); - this.state = 542; + this.state = 610; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 111) { { { - this.state = 538; + this.state = 606; this.match(QuixosCapabilityParser.COMMA); - this.state = 539; + this.state = 607; this.interfaceType(); } } - this.state = 544; + this.state = 612; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } - this.state = 547; + this.state = 615; this.match(QuixosCapabilityParser.RBRACK); } break; @@ -2056,26 +2307,26 @@ export class QuixosCapabilityParser extends antlr.Parser { } public identifierList(): IdentifierListContext { let localContext = new IdentifierListContext(this.context, this.state); - this.enterRule(localContext, 64, QuixosCapabilityParser.RULE_identifierList); + this.enterRule(localContext, 70, QuixosCapabilityParser.RULE_identifierList); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 550; + this.state = 618; this.identifier(); - this.state = 555; + this.state = 623; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 111) { { { - this.state = 551; + this.state = 619; this.match(QuixosCapabilityParser.COMMA); - this.state = 552; + this.state = 620; this.identifier(); } } - this.state = 557; + this.state = 625; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } @@ -2096,30 +2347,30 @@ export class QuixosCapabilityParser extends antlr.Parser { } public dependencyBlock(): DependencyBlockContext { let localContext = new DependencyBlockContext(this.context, this.state); - this.enterRule(localContext, 66, QuixosCapabilityParser.RULE_dependencyBlock); + this.enterRule(localContext, 72, QuixosCapabilityParser.RULE_dependencyBlock); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 558; + this.state = 626; this.match(QuixosCapabilityParser.REQUIRES); - this.state = 559; + this.state = 627; this.match(QuixosCapabilityParser.LBRACE); - this.state = 563; + this.state = 631; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 805570560) !== 0)) { + while (((((_la - 22)) & ~0x1F) === 0 && ((1 << (_la - 22)) & 393345) !== 0)) { { { - this.state = 560; + this.state = 628; this.dependencyPort(); } } - this.state = 565; + this.state = 633; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 566; + this.state = 634; this.match(QuixosCapabilityParser.RBRACE); } } @@ -2138,113 +2389,113 @@ export class QuixosCapabilityParser extends antlr.Parser { } public dependencyPort(): DependencyPortContext { let localContext = new DependencyPortContext(this.context, this.state); - this.enterRule(localContext, 68, QuixosCapabilityParser.RULE_dependencyPort); + this.enterRule(localContext, 74, QuixosCapabilityParser.RULE_dependencyPort); let _la: number; try { - this.state = 610; + this.state = 678; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.STATE: this.enterOuterAlt(localContext, 1); { - this.state = 568; + this.state = 636; this.match(QuixosCapabilityParser.STATE); - this.state = 569; + this.state = 637; this.identifier(); - this.state = 570; + this.state = 638; this.match(QuixosCapabilityParser.ID); - this.state = 571; + this.state = 639; this.stringLiteral(); - this.state = 572; + this.state = 640; this.match(QuixosCapabilityParser.COLON); - this.state = 573; + this.state = 641; this.valueType(); - this.state = 574; + this.state = 642; this.primitiveList(); - this.state = 575; + this.state = 643; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.EDGE: this.enterOuterAlt(localContext, 2); { - this.state = 577; + this.state = 645; this.match(QuixosCapabilityParser.EDGE); - this.state = 578; + this.state = 646; this.identifier(); - this.state = 579; + this.state = 647; this.match(QuixosCapabilityParser.ID); - this.state = 580; + this.state = 648; this.stringLiteral(); - this.state = 581; + this.state = 649; this.match(QuixosCapabilityParser.COLON); - this.state = 582; + this.state = 650; this.cardinality(); - this.state = 583; + this.state = 651; this.targetConstraint(); - this.state = 584; + this.state = 652; this.primitiveList(); - this.state = 585; + this.state = 653; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.INTERFACE: this.enterOuterAlt(localContext, 3); { - this.state = 587; + this.state = 655; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 588; + this.state = 656; this.identifier(); - this.state = 589; + this.state = 657; this.match(QuixosCapabilityParser.ID); - this.state = 590; + this.state = 658; this.stringLiteral(); - this.state = 591; + this.state = 659; this.match(QuixosCapabilityParser.COLON); - this.state = 592; + this.state = 660; this.identifier(); - this.state = 594; + this.state = 662; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 119) { { - this.state = 593; + this.state = 661; this.typeArguments(); } } - this.state = 596; + this.state = 664; this.match(QuixosCapabilityParser.SEMI); } break; case QuixosCapabilityParser.CONSTRUCTOR: this.enterOuterAlt(localContext, 4); { - this.state = 598; + this.state = 666; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 599; + this.state = 667; this.identifier(); - this.state = 600; + this.state = 668; this.match(QuixosCapabilityParser.ID); - this.state = 601; + this.state = 669; this.stringLiteral(); - this.state = 602; + this.state = 670; this.match(QuixosCapabilityParser.COLON); - this.state = 603; + this.state = 671; this.identifier(); - this.state = 606; + this.state = 674; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 20) { + if (_la === 31) { { - this.state = 604; + this.state = 672; this.match(QuixosCapabilityParser.INPUT); - this.state = 605; + this.state = 673; this.valueType(); } } - this.state = 608; + this.state = 676; this.match(QuixosCapabilityParser.SEMI); } break; @@ -2267,32 +2518,32 @@ export class QuixosCapabilityParser extends antlr.Parser { } public primitiveList(): PrimitiveListContext { let localContext = new PrimitiveListContext(this.context, this.state); - this.enterRule(localContext, 70, QuixosCapabilityParser.RULE_primitiveList); + this.enterRule(localContext, 76, QuixosCapabilityParser.RULE_primitiveList); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 612; + this.state = 680; this.match(QuixosCapabilityParser.LBRACK); - this.state = 613; + this.state = 681; this.primitive(); - this.state = 618; + this.state = 686; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 111) { { { - this.state = 614; + this.state = 682; this.match(QuixosCapabilityParser.COMMA); - this.state = 615; + this.state = 683; this.primitive(); } } - this.state = 620; + this.state = 688; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 621; + this.state = 689; this.match(QuixosCapabilityParser.RBRACK); } } @@ -2311,14 +2562,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public primitive(): PrimitiveContext { let localContext = new PrimitiveContext(this.context, this.state); - this.enterRule(localContext, 72, QuixosCapabilityParser.RULE_primitive); + this.enterRule(localContext, 78, QuixosCapabilityParser.RULE_primitive); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 623; + this.state = 691; _la = this.tokenStream.LA(1); - if(!(((((_la - 61)) & ~0x1F) === 0 && ((1 << (_la - 61)) & 223) !== 0))) { + if(!(((((_la - 72)) & ~0x1F) === 0 && ((1 << (_la - 72)) & 223) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -2342,13 +2593,13 @@ export class QuixosCapabilityParser extends antlr.Parser { } public sharedAttachmentDecl(): SharedAttachmentDeclContext { let localContext = new SharedAttachmentDeclContext(this.context, this.state); - this.enterRule(localContext, 74, QuixosCapabilityParser.RULE_sharedAttachmentDecl); + this.enterRule(localContext, 80, QuixosCapabilityParser.RULE_sharedAttachmentDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 625; + this.state = 693; this.match(QuixosCapabilityParser.SHARED); - this.state = 626; + this.state = 694; this.attachmentDecl(); } } @@ -2367,22 +2618,22 @@ export class QuixosCapabilityParser extends antlr.Parser { } public attachmentDecl(): AttachmentDeclContext { let localContext = new AttachmentDeclContext(this.context, this.state); - this.enterRule(localContext, 76, QuixosCapabilityParser.RULE_attachmentDecl); + this.enterRule(localContext, 82, QuixosCapabilityParser.RULE_attachmentDecl); try { - this.state = 630; + this.state = 698; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.STATE: this.enterOuterAlt(localContext, 1); { - this.state = 628; + this.state = 696; this.stateDecl(); } break; case QuixosCapabilityParser.EDGE: this.enterOuterAlt(localContext, 2); { - this.state = 629; + this.state = 697; this.edgeDecl(); } break; @@ -2405,44 +2656,44 @@ export class QuixosCapabilityParser extends antlr.Parser { } public stateDecl(): StateDeclContext { let localContext = new StateDeclContext(this.context, this.state); - this.enterRule(localContext, 78, QuixosCapabilityParser.RULE_stateDecl); + this.enterRule(localContext, 84, QuixosCapabilityParser.RULE_stateDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 632; + this.state = 700; this.match(QuixosCapabilityParser.STATE); - this.state = 633; + this.state = 701; this.identifier(); - this.state = 634; + this.state = 702; this.match(QuixosCapabilityParser.ID); - this.state = 635; + this.state = 703; this.stringLiteral(); - this.state = 636; + this.state = 704; this.match(QuixosCapabilityParser.ON); - this.state = 637; + this.state = 705; this.identifier(); - this.state = 638; + this.state = 706; this.match(QuixosCapabilityParser.COLON); - this.state = 639; + this.state = 707; this.valueType(); - this.state = 640; + this.state = 708; this.match(QuixosCapabilityParser.POLICY); - this.state = 641; + this.state = 709; this.storagePolicy(); - this.state = 644; + this.state = 712; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 39) { + if (_la === 50) { { - this.state = 642; + this.state = 710; this.match(QuixosCapabilityParser.DEFAULT); - this.state = 643; + this.state = 711; this.jsonLiteral(); } } - this.state = 646; + this.state = 714; this.match(QuixosCapabilityParser.SEMI); } } @@ -2461,28 +2712,28 @@ export class QuixosCapabilityParser extends antlr.Parser { } public storagePolicy(): StoragePolicyContext { let localContext = new StoragePolicyContext(this.context, this.state); - this.enterRule(localContext, 80, QuixosCapabilityParser.RULE_storagePolicy); + this.enterRule(localContext, 86, QuixosCapabilityParser.RULE_storagePolicy); try { - this.state = 654; + this.state = 722; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.OPTIMISTIC_REGISTER: this.enterOuterAlt(localContext, 1); { - this.state = 648; + this.state = 716; this.match(QuixosCapabilityParser.OPTIMISTIC_REGISTER); } break; case QuixosCapabilityParser.CRDT: this.enterOuterAlt(localContext, 2); { - this.state = 649; + this.state = 717; this.match(QuixosCapabilityParser.CRDT); - this.state = 650; + this.state = 718; this.match(QuixosCapabilityParser.LPAREN); - this.state = 651; + this.state = 719; this.valueType(); - this.state = 652; + this.state = 720; this.match(QuixosCapabilityParser.RPAREN); } break; @@ -2505,25 +2756,25 @@ export class QuixosCapabilityParser extends antlr.Parser { } public edgeDecl(): EdgeDeclContext { let localContext = new EdgeDeclContext(this.context, this.state); - this.enterRule(localContext, 82, QuixosCapabilityParser.RULE_edgeDecl); + this.enterRule(localContext, 88, QuixosCapabilityParser.RULE_edgeDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 656; + this.state = 724; this.match(QuixosCapabilityParser.EDGE); - this.state = 657; + this.state = 725; this.identifier(); - this.state = 658; + this.state = 726; this.match(QuixosCapabilityParser.ID); - this.state = 659; + this.state = 727; this.stringLiteral(); - this.state = 660; + this.state = 728; this.match(QuixosCapabilityParser.LBRACE); - this.state = 661; + this.state = 729; this.edgeEndpoint(); - this.state = 662; + this.state = 730; this.edgeEndpoint(); - this.state = 663; + this.state = 731; this.match(QuixosCapabilityParser.RBRACE); } } @@ -2542,78 +2793,78 @@ export class QuixosCapabilityParser extends antlr.Parser { } public edgeEndpoint(): EdgeEndpointContext { let localContext = new EdgeEndpointContext(this.context, this.state); - this.enterRule(localContext, 84, QuixosCapabilityParser.RULE_edgeEndpoint); + this.enterRule(localContext, 90, QuixosCapabilityParser.RULE_edgeEndpoint); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 665; + this.state = 733; this.targetConstraint(); - this.state = 666; + this.state = 734; this.match(QuixosCapabilityParser.PROJECTION); - this.state = 667; + this.state = 735; this.identifier(); - this.state = 668; + this.state = 736; this.match(QuixosCapabilityParser.ID); - this.state = 669; + this.state = 737; this.stringLiteral(); - this.state = 670; + this.state = 738; this.cardinality(); - this.state = 672; + this.state = 740; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 77) { + if (_la === 88) { { - this.state = 671; + this.state = 739; this.match(QuixosCapabilityParser.ORDERED); } } - this.state = 676; + this.state = 744; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 45) { + if (_la === 56) { { - this.state = 674; + this.state = 742; this.match(QuixosCapabilityParser.ON_DELETE); - this.state = 675; + this.state = 743; this.stringLiteral(); } } - this.state = 679; + this.state = 747; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 46) { + if (_la === 57) { { - this.state = 678; + this.state = 746; this.match(QuixosCapabilityParser.RETAIN_OTHER); } } - this.state = 683; + this.state = 751; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 47) { + if (_la === 58) { { - this.state = 681; + this.state = 749; this.match(QuixosCapabilityParser.KEYED); - this.state = 682; + this.state = 750; this.stringLiteral(); } } - this.state = 686; + this.state = 754; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 48) { + if (_la === 59) { { - this.state = 685; + this.state = 753; this.match(QuixosCapabilityParser.PUBLIC_TRAVERSAL); } } - this.state = 688; + this.state = 756; this.match(QuixosCapabilityParser.SEMI); } } @@ -2632,70 +2883,70 @@ export class QuixosCapabilityParser extends antlr.Parser { } public conformanceDecl(): ConformanceDeclContext { let localContext = new ConformanceDeclContext(this.context, this.state); - this.enterRule(localContext, 86, QuixosCapabilityParser.RULE_conformanceDecl); + this.enterRule(localContext, 92, QuixosCapabilityParser.RULE_conformanceDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 690; + this.state = 758; this.match(QuixosCapabilityParser.CONFORM); - this.state = 691; + this.state = 759; this.identifier(); - this.state = 692; + this.state = 760; this.match(QuixosCapabilityParser.AS); - this.state = 693; + this.state = 761; this.identifier(); - this.state = 695; + this.state = 763; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 119) { { - this.state = 694; + this.state = 762; this.typeArguments(); } } - this.state = 699; + this.state = 767; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 49) { + if (_la === 60) { { - this.state = 697; + this.state = 765; this.match(QuixosCapabilityParser.ID); - this.state = 698; + this.state = 766; this.stringLiteral(); } } - this.state = 703; + this.state = 771; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 44) { + if (_la === 55) { { - this.state = 701; + this.state = 769; this.match(QuixosCapabilityParser.SEMANTIC_MAJOR); - this.state = 702; + this.state = 770; this.match(QuixosCapabilityParser.INTEGER); } } - this.state = 705; + this.state = 773; this.match(QuixosCapabilityParser.LBRACE); - this.state = 709; + this.state = 777; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (((((_la - 23)) & ~0x1F) === 0 && ((1 << (_la - 23)) & 2057) !== 0)) { + while (((((_la - 34)) & ~0x1F) === 0 && ((1 << (_la - 34)) & 2057) !== 0)) { { { - this.state = 706; + this.state = 774; this.conformanceItem(); } } - this.state = 711; + this.state = 779; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 712; + this.state = 780; this.match(QuixosCapabilityParser.RBRACE); } } @@ -2714,38 +2965,38 @@ export class QuixosCapabilityParser extends antlr.Parser { } public conformanceItem(): ConformanceItemContext { let localContext = new ConformanceItemContext(this.context, this.state); - this.enterRule(localContext, 88, QuixosCapabilityParser.RULE_conformanceItem); + this.enterRule(localContext, 94, QuixosCapabilityParser.RULE_conformanceItem); try { - this.state = 719; + this.state = 787; this.errorHandler.sync(this); - switch (this.interpreter.adaptivePredict(this.tokenStream, 61, this.context) ) { + switch (this.interpreter.adaptivePredict(this.tokenStream, 66, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 714; + this.state = 782; this.match(QuixosCapabilityParser.PRIVATE); - this.state = 715; + this.state = 783; this.attachmentDecl(); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 716; + this.state = 784; this.operationBindingDecl(); } break; case 3: this.enterOuterAlt(localContext, 3); { - this.state = 717; + this.state = 785; this.stateFieldBindingDecl(); } break; case 4: this.enterOuterAlt(localContext, 4); { - this.state = 718; + this.state = 786; this.relationshipMaterializationDecl(); } break; @@ -2766,21 +3017,21 @@ export class QuixosCapabilityParser extends antlr.Parser { } public stateFieldBindingDecl(): StateFieldBindingDeclContext { let localContext = new StateFieldBindingDeclContext(this.context, this.state); - this.enterRule(localContext, 90, QuixosCapabilityParser.RULE_stateFieldBindingDecl); + this.enterRule(localContext, 96, QuixosCapabilityParser.RULE_stateFieldBindingDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 721; + this.state = 789; this.match(QuixosCapabilityParser.BIND); - this.state = 722; + this.state = 790; this.identifier(); - this.state = 723; + this.state = 791; this.match(QuixosCapabilityParser.TO); - this.state = 724; + this.state = 792; this.match(QuixosCapabilityParser.STATE); - this.state = 725; + this.state = 793; this.identifier(); - this.state = 726; + this.state = 794; this.match(QuixosCapabilityParser.SEMI); } } @@ -2799,35 +3050,35 @@ export class QuixosCapabilityParser extends antlr.Parser { } public relationshipMaterializationDecl(): RelationshipMaterializationDeclContext { let localContext = new RelationshipMaterializationDeclContext(this.context, this.state); - this.enterRule(localContext, 92, QuixosCapabilityParser.RULE_relationshipMaterializationDecl); + this.enterRule(localContext, 98, QuixosCapabilityParser.RULE_relationshipMaterializationDecl); try { this.enterOuterAlt(localContext, 1); { - this.state = 728; + this.state = 796; this.match(QuixosCapabilityParser.MATERIALIZE); - this.state = 729; + this.state = 797; this.identifier(); - this.state = 730; + this.state = 798; this.match(QuixosCapabilityParser.IF); - this.state = 731; + this.state = 799; this.match(QuixosCapabilityParser.ABSENT); - this.state = 732; + this.state = 800; this.match(QuixosCapabilityParser.USING); - this.state = 733; + this.state = 801; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 734; + this.state = 802; this.identifier(); - this.state = 735; + this.state = 803; this.match(QuixosCapabilityParser.VIA); - this.state = 736; + this.state = 804; this.match(QuixosCapabilityParser.EDGE); - this.state = 737; + this.state = 805; this.identifier(); - this.state = 738; + this.state = 806; this.match(QuixosCapabilityParser.DOT); - this.state = 739; + this.state = 807; this.identifier(); - this.state = 740; + this.state = 808; this.match(QuixosCapabilityParser.SEMI); } } @@ -2846,19 +3097,32 @@ export class QuixosCapabilityParser extends antlr.Parser { } public operationBindingDecl(): OperationBindingDeclContext { let localContext = new OperationBindingDeclContext(this.context, this.state); - this.enterRule(localContext, 94, QuixosCapabilityParser.RULE_operationBindingDecl); + this.enterRule(localContext, 100, QuixosCapabilityParser.RULE_operationBindingDecl); + let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 742; + this.state = 810; this.match(QuixosCapabilityParser.BIND); - this.state = 743; + this.state = 811; this.memberOperationRef(); - this.state = 744; + this.state = 812; this.match(QuixosCapabilityParser.TO); - this.state = 745; + this.state = 813; this.operationProvider(); - this.state = 746; + this.state = 816; + this.errorHandler.sync(this); + _la = this.tokenStream.LA(1); + if (_la === 12) { + { + this.state = 814; + this.match(QuixosCapabilityParser.QUERY_REASON); + this.state = 815; + this.stringLiteral(); + } + } + + this.state = 818; this.match(QuixosCapabilityParser.SEMI); } } @@ -2877,15 +3141,15 @@ export class QuixosCapabilityParser extends antlr.Parser { } public memberOperationRef(): MemberOperationRefContext { let localContext = new MemberOperationRefContext(this.context, this.state); - this.enterRule(localContext, 96, QuixosCapabilityParser.RULE_memberOperationRef); + this.enterRule(localContext, 102, QuixosCapabilityParser.RULE_memberOperationRef); try { this.enterOuterAlt(localContext, 1); { - this.state = 748; + this.state = 820; this.identifier(); - this.state = 749; + this.state = 821; this.match(QuixosCapabilityParser.DOT); - this.state = 750; + this.state = 822; this.operationName(); } } @@ -2904,86 +3168,96 @@ export class QuixosCapabilityParser extends antlr.Parser { } public operationName(): OperationNameContext { let localContext = new OperationNameContext(this.context, this.state); - this.enterRule(localContext, 98, QuixosCapabilityParser.RULE_operationName); + this.enterRule(localContext, 104, QuixosCapabilityParser.RULE_operationName); try { - this.state = 763; + this.state = 835; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { + case QuixosCapabilityParser.QUERY: + case QuixosCapabilityParser.ROOT: + case QuixosCapabilityParser.DOCUMENT: + case QuixosCapabilityParser.FRAGMENTS: + case QuixosCapabilityParser.VIEW: + case QuixosCapabilityParser.MAX: + case QuixosCapabilityParser.ALLOW: + case QuixosCapabilityParser.POLL: + case QuixosCapabilityParser.QUERYABLE: + case QuixosCapabilityParser.RPC: case QuixosCapabilityParser.SOURCE: case QuixosCapabilityParser.IDENTIFIER: this.enterOuterAlt(localContext, 1); { - this.state = 752; + this.state = 824; this.identifier(); } break; case QuixosCapabilityParser.CALL: this.enterOuterAlt(localContext, 2); { - this.state = 753; + this.state = 825; this.match(QuixosCapabilityParser.CALL); } break; case QuixosCapabilityParser.GET: this.enterOuterAlt(localContext, 3); { - this.state = 754; + this.state = 826; this.match(QuixosCapabilityParser.GET); } break; case QuixosCapabilityParser.SET: this.enterOuterAlt(localContext, 4); { - this.state = 755; + this.state = 827; this.match(QuixosCapabilityParser.SET); } break; case QuixosCapabilityParser.RESOLVE: this.enterOuterAlt(localContext, 5); { - this.state = 756; + this.state = 828; this.match(QuixosCapabilityParser.RESOLVE); } break; case QuixosCapabilityParser.CONNECT: this.enterOuterAlt(localContext, 6); { - this.state = 757; + this.state = 829; this.match(QuixosCapabilityParser.CONNECT); } break; case QuixosCapabilityParser.DISCONNECT: this.enterOuterAlt(localContext, 7); { - this.state = 758; + this.state = 830; this.match(QuixosCapabilityParser.DISCONNECT); } break; case QuixosCapabilityParser.WATCH_START: this.enterOuterAlt(localContext, 8); { - this.state = 759; + this.state = 831; this.match(QuixosCapabilityParser.WATCH_START); } break; case QuixosCapabilityParser.WATCH_STOP: this.enterOuterAlt(localContext, 9); { - this.state = 760; + this.state = 832; this.match(QuixosCapabilityParser.WATCH_STOP); } break; case QuixosCapabilityParser.SUBSCRIBE: this.enterOuterAlt(localContext, 10); { - this.state = 761; + this.state = 833; this.match(QuixosCapabilityParser.SUBSCRIBE); } break; case QuixosCapabilityParser.UNSUBSCRIBE: this.enterOuterAlt(localContext, 11); { - this.state = 762; + this.state = 834; this.match(QuixosCapabilityParser.UNSUBSCRIBE); } break; @@ -3006,69 +3280,69 @@ export class QuixosCapabilityParser extends antlr.Parser { } public operationProvider(): OperationProviderContext { let localContext = new OperationProviderContext(this.context, this.state); - this.enterRule(localContext, 100, QuixosCapabilityParser.RULE_operationProvider); + this.enterRule(localContext, 106, QuixosCapabilityParser.RULE_operationProvider); let _la: number; try { - this.state = 787; + this.state = 859; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.STATE: this.enterOuterAlt(localContext, 1); { - this.state = 765; + this.state = 837; this.match(QuixosCapabilityParser.STATE); - this.state = 766; + this.state = 838; this.identifier(); - this.state = 767; + this.state = 839; this.match(QuixosCapabilityParser.DOT); - this.state = 768; + this.state = 840; this.statePrimitive(); } break; case QuixosCapabilityParser.EDGE: this.enterOuterAlt(localContext, 2); { - this.state = 770; + this.state = 842; this.match(QuixosCapabilityParser.EDGE); - this.state = 771; + this.state = 843; this.identifier(); - this.state = 772; + this.state = 844; this.match(QuixosCapabilityParser.DOT); - this.state = 773; + this.state = 845; this.identifier(); - this.state = 774; + this.state = 846; this.match(QuixosCapabilityParser.DOT); - this.state = 775; + this.state = 847; this.edgePrimitive(); } break; case QuixosCapabilityParser.PACKAGE: this.enterOuterAlt(localContext, 3); { - this.state = 777; + this.state = 849; this.match(QuixosCapabilityParser.PACKAGE); - this.state = 778; + this.state = 850; this.identifier(); - this.state = 779; + this.state = 851; this.match(QuixosCapabilityParser.DOT); - this.state = 780; + this.state = 852; this.identifier(); - this.state = 782; + this.state = 854; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 119) { { - this.state = 781; + this.state = 853; this.typeArguments(); } } - this.state = 785; + this.state = 857; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 31) { + if (_la === 42) { { - this.state = 784; + this.state = 856; this.dependencyBindingBlock(); } } @@ -3094,14 +3368,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public statePrimitive(): StatePrimitiveContext { let localContext = new StatePrimitiveContext(this.context, this.state); - this.enterRule(localContext, 102, QuixosCapabilityParser.RULE_statePrimitive); + this.enterRule(localContext, 108, QuixosCapabilityParser.RULE_statePrimitive); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 789; + this.state = 861; _la = this.tokenStream.LA(1); - if(!(((((_la - 61)) & ~0x1F) === 0 && ((1 << (_la - 61)) & 195) !== 0))) { + if(!(((((_la - 72)) & ~0x1F) === 0 && ((1 << (_la - 72)) & 195) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -3125,14 +3399,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public edgePrimitive(): EdgePrimitiveContext { let localContext = new EdgePrimitiveContext(this.context, this.state); - this.enterRule(localContext, 104, QuixosCapabilityParser.RULE_edgePrimitive); + this.enterRule(localContext, 110, QuixosCapabilityParser.RULE_edgePrimitive); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 791; + this.state = 863; _la = this.tokenStream.LA(1); - if(!(((((_la - 63)) & ~0x1F) === 0 && ((1 << (_la - 63)) & 55) !== 0))) { + if(!(((((_la - 74)) & ~0x1F) === 0 && ((1 << (_la - 74)) & 55) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -3156,30 +3430,30 @@ export class QuixosCapabilityParser extends antlr.Parser { } public dependencyBindingBlock(): DependencyBindingBlockContext { let localContext = new DependencyBindingBlockContext(this.context, this.state); - this.enterRule(localContext, 106, QuixosCapabilityParser.RULE_dependencyBindingBlock); + this.enterRule(localContext, 112, QuixosCapabilityParser.RULE_dependencyBindingBlock); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 793; + this.state = 865; this.match(QuixosCapabilityParser.WITH); - this.state = 794; + this.state = 866; this.match(QuixosCapabilityParser.LBRACE); - this.state = 798; + this.state = 870; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 40 || _la === 114) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4092) !== 0) || _la === 51 || _la === 125) { { { - this.state = 795; + this.state = 867; this.dependencyBinding(); } } - this.state = 800; + this.state = 872; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 801; + this.state = 873; this.match(QuixosCapabilityParser.RBRACE); } } @@ -3198,137 +3472,137 @@ export class QuixosCapabilityParser extends antlr.Parser { } public dependencyBinding(): DependencyBindingContext { let localContext = new DependencyBindingContext(this.context, this.state); - this.enterRule(localContext, 108, QuixosCapabilityParser.RULE_dependencyBinding); + this.enterRule(localContext, 114, QuixosCapabilityParser.RULE_dependencyBinding); let _la: number; try { - this.state = 856; + this.state = 928; this.errorHandler.sync(this); - switch (this.interpreter.adaptivePredict(this.tokenStream, 71, this.context) ) { + switch (this.interpreter.adaptivePredict(this.tokenStream, 77, this.context) ) { case 1: this.enterOuterAlt(localContext, 1); { - this.state = 803; + this.state = 875; this.identifier(); - this.state = 804; + this.state = 876; this.match(QuixosCapabilityParser.TO); - this.state = 805; + this.state = 877; this.match(QuixosCapabilityParser.STATE); - this.state = 806; + this.state = 878; this.identifier(); - this.state = 813; + this.state = 885; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 33) { + if (_la === 44) { { - this.state = 807; + this.state = 879; this.match(QuixosCapabilityParser.VIA); - this.state = 808; + this.state = 880; this.match(QuixosCapabilityParser.EDGE); - this.state = 809; + this.state = 881; this.identifier(); - this.state = 810; + this.state = 882; this.match(QuixosCapabilityParser.DOT); - this.state = 811; + this.state = 883; this.identifier(); } } - this.state = 815; + this.state = 887; this.match(QuixosCapabilityParser.SEMI); } break; case 2: this.enterOuterAlt(localContext, 2); { - this.state = 817; + this.state = 889; this.identifier(); - this.state = 818; + this.state = 890; this.match(QuixosCapabilityParser.TO); - this.state = 819; + this.state = 891; this.match(QuixosCapabilityParser.EDGE); - this.state = 820; + this.state = 892; this.identifier(); - this.state = 821; + this.state = 893; this.match(QuixosCapabilityParser.DOT); - this.state = 822; + this.state = 894; this.identifier(); - this.state = 829; + this.state = 901; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 33) { + if (_la === 44) { { - this.state = 823; + this.state = 895; this.match(QuixosCapabilityParser.VIA); - this.state = 824; + this.state = 896; this.match(QuixosCapabilityParser.EDGE); - this.state = 825; + this.state = 897; this.identifier(); - this.state = 826; + this.state = 898; this.match(QuixosCapabilityParser.DOT); - this.state = 827; + this.state = 899; this.identifier(); } } - this.state = 831; + this.state = 903; this.match(QuixosCapabilityParser.SEMI); } break; case 3: this.enterOuterAlt(localContext, 3); { - this.state = 833; + this.state = 905; this.identifier(); - this.state = 834; + this.state = 906; this.match(QuixosCapabilityParser.TO); - this.state = 835; + this.state = 907; this.match(QuixosCapabilityParser.INTERFACE); - this.state = 836; + this.state = 908; this.identifier(); - this.state = 838; + this.state = 910; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 119) { { - this.state = 837; + this.state = 909; this.typeArguments(); } } - this.state = 846; + this.state = 918; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 33) { + if (_la === 44) { { - this.state = 840; + this.state = 912; this.match(QuixosCapabilityParser.VIA); - this.state = 841; + this.state = 913; this.match(QuixosCapabilityParser.EDGE); - this.state = 842; + this.state = 914; this.identifier(); - this.state = 843; + this.state = 915; this.match(QuixosCapabilityParser.DOT); - this.state = 844; + this.state = 916; this.identifier(); } } - this.state = 848; + this.state = 920; this.match(QuixosCapabilityParser.SEMI); } break; case 4: this.enterOuterAlt(localContext, 4); { - this.state = 850; + this.state = 922; this.identifier(); - this.state = 851; + this.state = 923; this.match(QuixosCapabilityParser.TO); - this.state = 852; + this.state = 924; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 853; + this.state = 925; this.identifier(); - this.state = 854; + this.state = 926; this.match(QuixosCapabilityParser.SEMI); } break; @@ -3349,34 +3623,34 @@ export class QuixosCapabilityParser extends antlr.Parser { } public constructorBindingDecl(): ConstructorBindingDeclContext { let localContext = new ConstructorBindingDeclContext(this.context, this.state); - this.enterRule(localContext, 110, QuixosCapabilityParser.RULE_constructorBindingDecl); + this.enterRule(localContext, 116, QuixosCapabilityParser.RULE_constructorBindingDecl); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 858; + this.state = 930; this.match(QuixosCapabilityParser.CONSTRUCTOR); - this.state = 859; + this.state = 931; this.identifier(); - this.state = 860; + this.state = 932; this.match(QuixosCapabilityParser.TO); - this.state = 861; + this.state = 933; this.identifier(); - this.state = 862; + this.state = 934; this.match(QuixosCapabilityParser.DOT); - this.state = 863; + this.state = 935; this.identifier(); - this.state = 865; + this.state = 937; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 31) { + if (_la === 42) { { - this.state = 864; + this.state = 936; this.dependencyBindingBlock(); } } - this.state = 867; + this.state = 939; this.match(QuixosCapabilityParser.SEMI); } } @@ -3395,10 +3669,10 @@ export class QuixosCapabilityParser extends antlr.Parser { } public valueType(): ValueTypeContext { let localContext = new ValueTypeContext(this.context, this.state); - this.enterRule(localContext, 112, QuixosCapabilityParser.RULE_valueType); + this.enterRule(localContext, 118, QuixosCapabilityParser.RULE_valueType); let _la: number; try { - this.state = 915; + this.state = 987; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.BOOL: @@ -3411,145 +3685,155 @@ export class QuixosCapabilityParser extends antlr.Parser { case QuixosCapabilityParser.UINT64: this.enterOuterAlt(localContext, 1); { - this.state = 869; + this.state = 941; this.scalarType(); } break; case QuixosCapabilityParser.UNIT: this.enterOuterAlt(localContext, 2); { - this.state = 870; + this.state = 942; this.match(QuixosCapabilityParser.UNIT); } break; case QuixosCapabilityParser.WATCH_HANDLE: this.enterOuterAlt(localContext, 3); { - this.state = 871; + this.state = 943; this.match(QuixosCapabilityParser.WATCH_HANDLE); } break; case QuixosCapabilityParser.MESSAGE: this.enterOuterAlt(localContext, 4); { - this.state = 872; + this.state = 944; this.match(QuixosCapabilityParser.MESSAGE); - this.state = 873; + this.state = 945; this.stringLiteral(); } break; case QuixosCapabilityParser.ATOM_REF: this.enterOuterAlt(localContext, 5); { - this.state = 874; + this.state = 946; this.match(QuixosCapabilityParser.ATOM_REF); - this.state = 875; + this.state = 947; this.match(QuixosCapabilityParser.LT); - this.state = 876; + this.state = 948; this.identifier(); - this.state = 877; + this.state = 949; this.match(QuixosCapabilityParser.GT); } break; case QuixosCapabilityParser.INTERFACE_REF: this.enterOuterAlt(localContext, 6); { - this.state = 879; + this.state = 951; this.match(QuixosCapabilityParser.INTERFACE_REF); - this.state = 880; + this.state = 952; this.match(QuixosCapabilityParser.LT); - this.state = 881; + this.state = 953; this.identifier(); - this.state = 883; + this.state = 955; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 119) { { - this.state = 882; + this.state = 954; this.typeArguments(); } } - this.state = 885; + this.state = 957; this.match(QuixosCapabilityParser.GT); } break; case QuixosCapabilityParser.REF: this.enterOuterAlt(localContext, 7); { - this.state = 887; + this.state = 959; this.match(QuixosCapabilityParser.REF); - this.state = 888; + this.state = 960; this.match(QuixosCapabilityParser.LT); - this.state = 889; + this.state = 961; this.identifier(); - this.state = 890; + this.state = 962; this.match(QuixosCapabilityParser.GT); } break; case QuixosCapabilityParser.OPTIONAL: this.enterOuterAlt(localContext, 8); { - this.state = 892; + this.state = 964; this.match(QuixosCapabilityParser.OPTIONAL); - this.state = 893; + this.state = 965; this.match(QuixosCapabilityParser.LT); - this.state = 894; + this.state = 966; this.valueType(); - this.state = 895; + this.state = 967; this.match(QuixosCapabilityParser.GT); } break; case QuixosCapabilityParser.LIST: this.enterOuterAlt(localContext, 9); { - this.state = 897; + this.state = 969; this.match(QuixosCapabilityParser.LIST); - this.state = 898; + this.state = 970; this.match(QuixosCapabilityParser.LT); - this.state = 899; + this.state = 971; this.valueType(); - this.state = 900; + this.state = 972; this.match(QuixosCapabilityParser.GT); } break; case QuixosCapabilityParser.RECORD: this.enterOuterAlt(localContext, 10); { - this.state = 902; + this.state = 974; this.match(QuixosCapabilityParser.RECORD); - this.state = 903; + this.state = 975; this.match(QuixosCapabilityParser.LBRACE); - this.state = 907; + this.state = 979; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 40 || _la === 114) { + while ((((_la) & ~0x1F) === 0 && ((1 << _la) & 4092) !== 0) || _la === 51 || _la === 125) { { { - this.state = 904; + this.state = 976; this.recordField(); } } - this.state = 909; + this.state = 981; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } - this.state = 910; + this.state = 982; this.match(QuixosCapabilityParser.RBRACE); } break; + case QuixosCapabilityParser.QUERY: + case QuixosCapabilityParser.ROOT: + case QuixosCapabilityParser.DOCUMENT: + case QuixosCapabilityParser.FRAGMENTS: + case QuixosCapabilityParser.VIEW: + case QuixosCapabilityParser.MAX: + case QuixosCapabilityParser.ALLOW: + case QuixosCapabilityParser.POLL: + case QuixosCapabilityParser.QUERYABLE: + case QuixosCapabilityParser.RPC: case QuixosCapabilityParser.SOURCE: case QuixosCapabilityParser.IDENTIFIER: this.enterOuterAlt(localContext, 11); { - this.state = 911; + this.state = 983; this.identifier(); - this.state = 913; + this.state = 985; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 108) { + if (_la === 119) { { - this.state = 912; + this.state = 984; this.typeArguments(); } } @@ -3575,17 +3859,17 @@ export class QuixosCapabilityParser extends antlr.Parser { } public recordField(): RecordFieldContext { let localContext = new RecordFieldContext(this.context, this.state); - this.enterRule(localContext, 114, QuixosCapabilityParser.RULE_recordField); + this.enterRule(localContext, 120, QuixosCapabilityParser.RULE_recordField); try { this.enterOuterAlt(localContext, 1); { - this.state = 917; + this.state = 989; this.identifier(); - this.state = 918; + this.state = 990; this.match(QuixosCapabilityParser.COLON); - this.state = 919; + this.state = 991; this.valueType(); - this.state = 920; + this.state = 992; this.match(QuixosCapabilityParser.SEMI); } } @@ -3604,14 +3888,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public scalarType(): ScalarTypeContext { let localContext = new ScalarTypeContext(this.context, this.state); - this.enterRule(localContext, 116, QuixosCapabilityParser.RULE_scalarType); + this.enterRule(localContext, 122, QuixosCapabilityParser.RULE_scalarType); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 922; + this.state = 994; _la = this.tokenStream.LA(1); - if(!(((((_la - 86)) & ~0x1F) === 0 && ((1 << (_la - 86)) & 255) !== 0))) { + if(!(((((_la - 97)) & ~0x1F) === 0 && ((1 << (_la - 97)) & 255) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -3635,14 +3919,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public cardinality(): CardinalityContext { let localContext = new CardinalityContext(this.context, this.state); - this.enterRule(localContext, 118, QuixosCapabilityParser.RULE_cardinality); + this.enterRule(localContext, 124, QuixosCapabilityParser.RULE_cardinality); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 924; + this.state = 996; _la = this.tokenStream.LA(1); - if(!(((((_la - 73)) & ~0x1F) === 0 && ((1 << (_la - 73)) & 15) !== 0))) { + if(!(((((_la - 84)) & ~0x1F) === 0 && ((1 << (_la - 84)) & 15) !== 0))) { this.errorHandler.recoverInline(this); } else { @@ -3666,64 +3950,64 @@ export class QuixosCapabilityParser extends antlr.Parser { } public jsonLiteral(): JsonLiteralContext { let localContext = new JsonLiteralContext(this.context, this.state); - this.enterRule(localContext, 120, QuixosCapabilityParser.RULE_jsonLiteral); + this.enterRule(localContext, 126, QuixosCapabilityParser.RULE_jsonLiteral); try { - this.state = 934; + this.state = 1006; this.errorHandler.sync(this); switch (this.tokenStream.LA(1)) { case QuixosCapabilityParser.STRING_LITERAL: this.enterOuterAlt(localContext, 1); { - this.state = 926; + this.state = 998; this.stringLiteral(); } break; case QuixosCapabilityParser.INTEGER: this.enterOuterAlt(localContext, 2); { - this.state = 927; + this.state = 999; this.match(QuixosCapabilityParser.INTEGER); } break; case QuixosCapabilityParser.JSON_NUMBER: this.enterOuterAlt(localContext, 3); { - this.state = 928; + this.state = 1000; this.match(QuixosCapabilityParser.JSON_NUMBER); } break; case QuixosCapabilityParser.TRUE: this.enterOuterAlt(localContext, 4); { - this.state = 929; + this.state = 1001; this.match(QuixosCapabilityParser.TRUE); } break; case QuixosCapabilityParser.FALSE: this.enterOuterAlt(localContext, 5); { - this.state = 930; + this.state = 1002; this.match(QuixosCapabilityParser.FALSE); } break; case QuixosCapabilityParser.NULL: this.enterOuterAlt(localContext, 6); { - this.state = 931; + this.state = 1003; this.match(QuixosCapabilityParser.NULL); } break; case QuixosCapabilityParser.LBRACE: this.enterOuterAlt(localContext, 7); { - this.state = 932; + this.state = 1004; this.jsonObject(); } break; case QuixosCapabilityParser.LBRACK: this.enterOuterAlt(localContext, 8); { - this.state = 933; + this.state = 1005; this.jsonArray(); } break; @@ -3746,40 +4030,40 @@ export class QuixosCapabilityParser extends antlr.Parser { } public jsonObject(): JsonObjectContext { let localContext = new JsonObjectContext(this.context, this.state); - this.enterRule(localContext, 122, QuixosCapabilityParser.RULE_jsonObject); + this.enterRule(localContext, 128, QuixosCapabilityParser.RULE_jsonObject); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 936; + this.state = 1008; this.match(QuixosCapabilityParser.LBRACE); - this.state = 945; + this.state = 1017; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (_la === 115) { + if (_la === 126) { { - this.state = 937; + this.state = 1009; this.jsonMember(); - this.state = 942; + this.state = 1014; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 111) { { { - this.state = 938; + this.state = 1010; this.match(QuixosCapabilityParser.COMMA); - this.state = 939; + this.state = 1011; this.jsonMember(); } } - this.state = 944; + this.state = 1016; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } - this.state = 947; + this.state = 1019; this.match(QuixosCapabilityParser.RBRACE); } } @@ -3798,15 +4082,15 @@ export class QuixosCapabilityParser extends antlr.Parser { } public jsonMember(): JsonMemberContext { let localContext = new JsonMemberContext(this.context, this.state); - this.enterRule(localContext, 124, QuixosCapabilityParser.RULE_jsonMember); + this.enterRule(localContext, 130, QuixosCapabilityParser.RULE_jsonMember); try { this.enterOuterAlt(localContext, 1); { - this.state = 949; + this.state = 1021; this.stringLiteral(); - this.state = 950; + this.state = 1022; this.match(QuixosCapabilityParser.COLON); - this.state = 951; + this.state = 1023; this.jsonLiteral(); } } @@ -3825,40 +4109,40 @@ export class QuixosCapabilityParser extends antlr.Parser { } public jsonArray(): JsonArrayContext { let localContext = new JsonArrayContext(this.context, this.state); - this.enterRule(localContext, 126, QuixosCapabilityParser.RULE_jsonArray); + this.enterRule(localContext, 132, QuixosCapabilityParser.RULE_jsonArray); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 953; + this.state = 1025; this.match(QuixosCapabilityParser.LBRACK); - this.state = 962; + this.state = 1034; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - if (((((_la - 94)) & ~0x1F) === 0 && ((1 << (_la - 94)) & 2884871) !== 0)) { + if (((((_la - 105)) & ~0x1F) === 0 && ((1 << (_la - 105)) & 2884871) !== 0)) { { - this.state = 954; + this.state = 1026; this.jsonLiteral(); - this.state = 959; + this.state = 1031; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); - while (_la === 100) { + while (_la === 111) { { { - this.state = 955; + this.state = 1027; this.match(QuixosCapabilityParser.COMMA); - this.state = 956; + this.state = 1028; this.jsonLiteral(); } } - this.state = 961; + this.state = 1033; this.errorHandler.sync(this); _la = this.tokenStream.LA(1); } } } - this.state = 964; + this.state = 1036; this.match(QuixosCapabilityParser.RBRACK); } } @@ -3877,14 +4161,14 @@ export class QuixosCapabilityParser extends antlr.Parser { } public identifier(): IdentifierContext { let localContext = new IdentifierContext(this.context, this.state); - this.enterRule(localContext, 128, QuixosCapabilityParser.RULE_identifier); + this.enterRule(localContext, 134, QuixosCapabilityParser.RULE_identifier); let _la: number; try { this.enterOuterAlt(localContext, 1); { - this.state = 966; + this.state = 1038; _la = this.tokenStream.LA(1); - if(!(_la === 40 || _la === 114)) { + if(!((((_la) & ~0x1F) === 0 && ((1 << _la) & 4092) !== 0) || _la === 51 || _la === 125)) { this.errorHandler.recoverInline(this); } else { @@ -3908,11 +4192,11 @@ export class QuixosCapabilityParser extends antlr.Parser { } public stringLiteral(): StringLiteralContext { let localContext = new StringLiteralContext(this.context, this.state); - this.enterRule(localContext, 130, QuixosCapabilityParser.RULE_stringLiteral); + this.enterRule(localContext, 136, QuixosCapabilityParser.RULE_stringLiteral); try { this.enterOuterAlt(localContext, 1); { - this.state = 968; + this.state = 1040; this.match(QuixosCapabilityParser.STRING_LITERAL); } } @@ -3931,7 +4215,7 @@ export class QuixosCapabilityParser extends antlr.Parser { } public static readonly _serializedATN: number[] = [ - 4,1,118,971,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, + 4,1,129,1043,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, @@ -3941,356 +4225,385 @@ export class QuixosCapabilityParser extends antlr.Parser { 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,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,3,0,145,8,0,1, - 1,1,1,1,1,5,1,150,8,1,10,1,12,1,153,9,1,1,1,1,1,1,2,1,2,1,2,1,2, - 1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,5,3,171,8,3,10,3,12,3,174, - 9,3,1,3,1,3,1,4,1,4,1,4,1,4,1,4,1,4,1,4,3,4,185,8,4,1,5,1,5,1,5, - 1,5,1,5,1,5,1,5,1,5,1,5,1,5,3,5,197,8,5,1,6,1,6,1,6,1,6,1,6,1,6, - 1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,3,8,217,8,8,1,9, - 1,9,1,9,1,9,1,9,1,9,3,9,225,8,9,1,9,1,9,1,10,5,10,230,8,10,10,10, - 12,10,233,9,10,1,10,1,10,1,10,3,10,238,8,10,1,10,1,10,1,10,1,10, - 1,10,1,10,1,10,1,10,5,10,248,8,10,10,10,12,10,251,9,10,3,10,253, - 8,10,1,10,1,10,5,10,257,8,10,10,10,12,10,260,9,10,1,10,1,10,1,11, - 1,11,1,11,1,11,5,11,268,8,11,10,11,12,11,271,9,11,1,11,1,11,1,12, - 1,12,1,12,1,12,3,12,279,8,12,1,12,1,12,1,12,1,12,1,12,1,12,5,12, - 287,8,12,10,12,12,12,290,9,12,3,12,292,8,12,3,12,294,8,12,1,13,1, - 13,3,13,298,8,13,1,14,1,14,1,14,1,14,5,14,304,8,14,10,14,12,14,307, - 9,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,1,15,3,15,318,8,15, - 1,16,1,16,1,16,3,16,323,8,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17, - 3,17,332,8,17,1,18,3,18,335,8,18,1,18,1,18,1,18,1,18,1,18,1,18,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,5,19,360,8,19,10,19,12,19,363,9,19,1,19,1,19,1, + 65,2,66,7,66,2,67,7,67,2,68,7,68,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0, + 1,0,1,0,1,0,1,0,3,0,151,8,0,1,1,1,1,1,1,5,1,156,8,1,10,1,12,1,159, + 9,1,1,1,1,1,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3,1,3, + 1,3,5,3,177,8,3,10,3,12,3,180,9,3,1,3,1,3,1,4,1,4,1,4,1,4,1,4,1, + 4,1,4,3,4,191,8,4,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,3,5,203, + 8,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,7,1,7,1,7,1,7,1,7,1,7,1,7,1,8, + 1,8,1,8,1,8,3,8,223,8,8,1,9,1,9,1,9,1,9,1,9,1,9,3,9,231,8,9,1,9, + 1,9,1,10,5,10,236,8,10,10,10,12,10,239,9,10,1,10,1,10,1,10,3,10, + 244,8,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,1,10,5,10,254,8,10,10, + 10,12,10,257,9,10,3,10,259,8,10,1,10,1,10,5,10,263,8,10,10,10,12, + 10,266,9,10,1,10,1,10,1,11,1,11,1,11,1,11,5,11,274,8,11,10,11,12, + 11,277,9,11,1,11,1,11,1,12,1,12,1,12,1,12,3,12,285,8,12,1,12,1,12, + 1,12,1,12,1,12,1,12,5,12,293,8,12,10,12,12,12,296,9,12,3,12,298, + 8,12,3,12,300,8,12,1,13,1,13,3,13,304,8,13,1,14,1,14,1,14,1,14,5, + 14,310,8,14,10,14,12,14,313,9,14,1,14,1,14,1,15,1,15,1,15,1,15,1, + 15,1,15,1,15,3,15,324,8,15,1,16,1,16,1,16,3,16,329,8,16,1,16,1,16, + 1,16,1,16,1,17,1,17,1,17,3,17,338,8,17,1,18,3,18,341,8,18,1,18,1, + 18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1,18,1, + 18,1,19,3,19,359,8,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,1,19,5, + 19,369,8,19,10,19,12,19,372,9,19,1,19,1,19,1,20,1,20,1,20,1,20,1, 20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1,20,1, - 20,1,20,1,20,1,20,1,20,1,20,3,20,386,8,20,1,21,1,21,1,21,1,21,1, - 21,1,21,1,21,1,21,3,21,396,8,21,1,21,1,21,5,21,400,8,21,10,21,12, - 21,403,9,21,1,21,1,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1, - 22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1, - 22,1,22,1,22,3,22,431,8,22,1,23,1,23,1,23,1,23,1,23,3,23,438,8,23, - 1,23,1,23,3,23,442,8,23,1,24,5,24,445,8,24,10,24,12,24,448,9,24, - 1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,3,24,458,8,24,1,24,1,24, - 5,24,462,8,24,10,24,12,24,465,9,24,1,24,1,24,1,25,1,25,1,25,3,25, - 472,8,25,1,26,1,26,1,26,3,26,477,8,26,1,26,1,26,1,26,1,26,1,26,1, - 26,1,26,1,26,1,26,3,26,488,8,26,1,26,1,26,1,26,3,26,493,8,26,1,26, - 1,26,1,27,1,27,1,27,3,27,500,8,27,1,27,1,27,1,27,1,27,1,27,1,27, - 1,27,3,27,509,8,27,1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28, - 1,28,1,28,3,28,522,8,28,1,28,1,28,1,29,1,29,1,29,1,30,1,30,1,31, - 1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,5,31,541,8,31,10,31, - 12,31,544,9,31,3,31,546,8,31,1,31,3,31,549,8,31,1,32,1,32,1,32,5, - 32,554,8,32,10,32,12,32,557,9,32,1,33,1,33,1,33,5,33,562,8,33,10, - 33,12,33,565,9,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1, - 34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1, - 34,1,34,1,34,1,34,1,34,1,34,3,34,595,8,34,1,34,1,34,1,34,1,34,1, - 34,1,34,1,34,1,34,1,34,1,34,3,34,607,8,34,1,34,1,34,3,34,611,8,34, - 1,35,1,35,1,35,1,35,5,35,617,8,35,10,35,12,35,620,9,35,1,35,1,35, - 1,36,1,36,1,37,1,37,1,37,1,38,1,38,3,38,631,8,38,1,39,1,39,1,39, - 1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,1,39,3,39,645,8,39,1,39, - 1,39,1,40,1,40,1,40,1,40,1,40,1,40,3,40,655,8,40,1,41,1,41,1,41, - 1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,1,42,1,42, - 3,42,673,8,42,1,42,1,42,3,42,677,8,42,1,42,3,42,680,8,42,1,42,1, - 42,3,42,684,8,42,1,42,3,42,687,8,42,1,42,1,42,1,43,1,43,1,43,1,43, - 1,43,3,43,696,8,43,1,43,1,43,3,43,700,8,43,1,43,1,43,3,43,704,8, - 43,1,43,1,43,5,43,708,8,43,10,43,12,43,711,9,43,1,43,1,43,1,44,1, - 44,1,44,1,44,1,44,3,44,720,8,44,1,45,1,45,1,45,1,45,1,45,1,45,1, - 45,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1,46,1, - 46,1,46,1,47,1,47,1,47,1,47,1,47,1,47,1,48,1,48,1,48,1,48,1,49,1, - 49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,3,49,764,8,49,1, - 50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1,50,1, - 50,1,50,1,50,1,50,3,50,783,8,50,1,50,3,50,786,8,50,3,50,788,8,50, - 1,51,1,51,1,52,1,52,1,53,1,53,1,53,5,53,797,8,53,10,53,12,53,800, - 9,53,1,53,1,53,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54, - 3,54,814,8,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54, - 1,54,1,54,1,54,1,54,3,54,830,8,54,1,54,1,54,1,54,1,54,1,54,1,54, - 1,54,3,54,839,8,54,1,54,1,54,1,54,1,54,1,54,1,54,3,54,847,8,54,1, - 54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,3,54,857,8,54,1,55,1,55,1, - 55,1,55,1,55,1,55,1,55,3,55,866,8,55,1,55,1,55,1,56,1,56,1,56,1, - 56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,3,56,884,8, - 56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,1, - 56,1,56,1,56,1,56,1,56,1,56,1,56,1,56,5,56,906,8,56,10,56,12,56, - 909,9,56,1,56,1,56,1,56,3,56,914,8,56,3,56,916,8,56,1,57,1,57,1, - 57,1,57,1,57,1,58,1,58,1,59,1,59,1,60,1,60,1,60,1,60,1,60,1,60,1, - 60,1,60,3,60,935,8,60,1,61,1,61,1,61,1,61,5,61,941,8,61,10,61,12, - 61,944,9,61,3,61,946,8,61,1,61,1,61,1,62,1,62,1,62,1,62,1,63,1,63, - 1,63,1,63,5,63,958,8,63,10,63,12,63,961,9,63,3,63,963,8,63,1,63, - 1,63,1,64,1,64,1,65,1,65,1,65,0,0,66,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,0,7,1,0,66,70,2, - 0,61,65,67,68,2,0,61,62,67,68,2,0,63,65,67,68,1,0,86,93,1,0,73,76, - 2,0,40,40,114,114,1036,0,144,1,0,0,0,2,146,1,0,0,0,4,156,1,0,0,0, - 6,160,1,0,0,0,8,184,1,0,0,0,10,196,1,0,0,0,12,198,1,0,0,0,14,205, - 1,0,0,0,16,216,1,0,0,0,18,218,1,0,0,0,20,231,1,0,0,0,22,263,1,0, - 0,0,24,293,1,0,0,0,26,295,1,0,0,0,28,299,1,0,0,0,30,317,1,0,0,0, - 32,319,1,0,0,0,34,331,1,0,0,0,36,334,1,0,0,0,38,351,1,0,0,0,40,385, - 1,0,0,0,42,387,1,0,0,0,44,430,1,0,0,0,46,441,1,0,0,0,48,446,1,0, - 0,0,50,471,1,0,0,0,52,473,1,0,0,0,54,496,1,0,0,0,56,512,1,0,0,0, - 58,525,1,0,0,0,60,528,1,0,0,0,62,548,1,0,0,0,64,550,1,0,0,0,66,558, - 1,0,0,0,68,610,1,0,0,0,70,612,1,0,0,0,72,623,1,0,0,0,74,625,1,0, - 0,0,76,630,1,0,0,0,78,632,1,0,0,0,80,654,1,0,0,0,82,656,1,0,0,0, - 84,665,1,0,0,0,86,690,1,0,0,0,88,719,1,0,0,0,90,721,1,0,0,0,92,728, - 1,0,0,0,94,742,1,0,0,0,96,748,1,0,0,0,98,763,1,0,0,0,100,787,1,0, - 0,0,102,789,1,0,0,0,104,791,1,0,0,0,106,793,1,0,0,0,108,856,1,0, - 0,0,110,858,1,0,0,0,112,915,1,0,0,0,114,917,1,0,0,0,116,922,1,0, - 0,0,118,924,1,0,0,0,120,934,1,0,0,0,122,936,1,0,0,0,124,949,1,0, - 0,0,126,953,1,0,0,0,128,966,1,0,0,0,130,968,1,0,0,0,132,133,3,6, - 3,0,133,134,5,0,0,1,134,145,1,0,0,0,135,136,3,20,10,0,136,137,5, - 0,0,1,137,145,1,0,0,0,138,139,3,48,24,0,139,140,5,0,0,1,140,145, - 1,0,0,0,141,142,3,2,1,0,142,143,5,0,0,1,143,145,1,0,0,0,144,132, - 1,0,0,0,144,135,1,0,0,0,144,138,1,0,0,0,144,141,1,0,0,0,145,1,1, - 0,0,0,146,147,5,7,0,0,147,151,5,102,0,0,148,150,3,8,4,0,149,148, - 1,0,0,0,150,153,1,0,0,0,151,149,1,0,0,0,151,152,1,0,0,0,152,154, - 1,0,0,0,153,151,1,0,0,0,154,155,5,103,0,0,155,3,1,0,0,0,156,157, - 5,8,0,0,157,158,3,130,65,0,158,159,5,99,0,0,159,5,1,0,0,0,160,161, - 5,1,0,0,161,162,3,128,64,0,162,163,5,49,0,0,163,164,3,130,65,0,164, - 165,5,43,0,0,165,166,3,130,65,0,166,167,5,42,0,0,167,168,3,130,65, - 0,168,172,5,102,0,0,169,171,3,8,4,0,170,169,1,0,0,0,171,174,1,0, - 0,0,172,170,1,0,0,0,172,173,1,0,0,0,173,175,1,0,0,0,174,172,1,0, - 0,0,175,176,5,103,0,0,176,7,1,0,0,0,177,185,3,4,2,0,178,185,3,18, - 9,0,179,185,3,10,5,0,180,185,3,74,37,0,181,185,3,86,43,0,182,185, - 3,110,55,0,183,185,3,32,16,0,184,177,1,0,0,0,184,178,1,0,0,0,184, - 179,1,0,0,0,184,180,1,0,0,0,184,181,1,0,0,0,184,182,1,0,0,0,184, - 183,1,0,0,0,185,9,1,0,0,0,186,187,5,8,0,0,187,188,5,11,0,0,188,189, - 3,128,64,0,189,190,5,99,0,0,190,197,1,0,0,0,191,192,5,8,0,0,192, - 193,5,13,0,0,193,194,3,128,64,0,194,195,5,99,0,0,195,197,1,0,0,0, - 196,186,1,0,0,0,196,191,1,0,0,0,197,11,1,0,0,0,198,199,5,9,0,0,199, - 200,5,10,0,0,200,201,3,128,64,0,201,202,5,49,0,0,202,203,3,130,65, - 0,203,204,5,99,0,0,204,13,1,0,0,0,205,206,5,9,0,0,206,207,5,11,0, - 0,207,208,3,128,64,0,208,209,5,43,0,0,209,210,3,130,65,0,210,211, - 5,99,0,0,211,15,1,0,0,0,212,217,3,10,5,0,213,217,3,12,6,0,214,217, - 3,14,7,0,215,217,3,32,16,0,216,212,1,0,0,0,216,213,1,0,0,0,216,214, - 1,0,0,0,216,215,1,0,0,0,217,17,1,0,0,0,218,219,5,10,0,0,219,220, - 3,128,64,0,220,221,5,49,0,0,221,224,3,130,65,0,222,223,5,50,0,0, - 223,225,3,130,65,0,224,222,1,0,0,0,224,225,1,0,0,0,225,226,1,0,0, - 0,226,227,5,99,0,0,227,19,1,0,0,0,228,230,3,16,8,0,229,228,1,0,0, - 0,230,233,1,0,0,0,231,229,1,0,0,0,231,232,1,0,0,0,232,234,1,0,0, - 0,233,231,1,0,0,0,234,235,5,11,0,0,235,237,3,128,64,0,236,238,3, - 22,11,0,237,236,1,0,0,0,237,238,1,0,0,0,238,239,1,0,0,0,239,240, - 5,49,0,0,240,241,3,130,65,0,241,242,5,43,0,0,242,252,3,130,65,0, - 243,244,5,54,0,0,244,249,3,26,13,0,245,246,5,100,0,0,246,248,3,26, - 13,0,247,245,1,0,0,0,248,251,1,0,0,0,249,247,1,0,0,0,249,250,1,0, - 0,0,250,253,1,0,0,0,251,249,1,0,0,0,252,243,1,0,0,0,252,253,1,0, - 0,0,253,254,1,0,0,0,254,258,5,102,0,0,255,257,3,34,17,0,256,255, - 1,0,0,0,257,260,1,0,0,0,258,256,1,0,0,0,258,259,1,0,0,0,259,261, - 1,0,0,0,260,258,1,0,0,0,261,262,5,103,0,0,262,21,1,0,0,0,263,264, - 5,108,0,0,264,269,3,24,12,0,265,266,5,100,0,0,266,268,3,24,12,0, - 267,265,1,0,0,0,268,271,1,0,0,0,269,267,1,0,0,0,269,270,1,0,0,0, - 270,272,1,0,0,0,271,269,1,0,0,0,272,273,5,109,0,0,273,23,1,0,0,0, - 274,275,5,14,0,0,275,278,3,128,64,0,276,277,5,98,0,0,277,279,5,4, - 0,0,278,276,1,0,0,0,278,279,1,0,0,0,279,294,1,0,0,0,280,281,5,3, - 0,0,281,291,3,128,64,0,282,283,5,5,0,0,283,288,3,26,13,0,284,285, - 5,110,0,0,285,287,3,26,13,0,286,284,1,0,0,0,287,290,1,0,0,0,288, - 286,1,0,0,0,288,289,1,0,0,0,289,292,1,0,0,0,290,288,1,0,0,0,291, - 282,1,0,0,0,291,292,1,0,0,0,292,294,1,0,0,0,293,274,1,0,0,0,293, - 280,1,0,0,0,294,25,1,0,0,0,295,297,3,128,64,0,296,298,3,28,14,0, - 297,296,1,0,0,0,297,298,1,0,0,0,298,27,1,0,0,0,299,300,5,108,0,0, - 300,305,3,30,15,0,301,302,5,100,0,0,302,304,3,30,15,0,303,301,1, - 0,0,0,304,307,1,0,0,0,305,303,1,0,0,0,305,306,1,0,0,0,306,308,1, - 0,0,0,307,305,1,0,0,0,308,309,5,109,0,0,309,29,1,0,0,0,310,311,5, - 10,0,0,311,318,3,128,64,0,312,313,5,11,0,0,313,318,3,26,13,0,314, - 315,5,3,0,0,315,318,3,128,64,0,316,318,3,112,56,0,317,310,1,0,0, - 0,317,312,1,0,0,0,317,314,1,0,0,0,317,316,1,0,0,0,318,31,1,0,0,0, - 319,320,5,2,0,0,320,322,3,128,64,0,321,323,3,22,11,0,322,321,1,0, - 0,0,322,323,1,0,0,0,323,324,1,0,0,0,324,325,5,111,0,0,325,326,3, - 112,56,0,326,327,5,99,0,0,327,33,1,0,0,0,328,332,3,38,19,0,329,332, - 3,42,21,0,330,332,3,36,18,0,331,328,1,0,0,0,331,329,1,0,0,0,331, - 330,1,0,0,0,332,35,1,0,0,0,333,335,5,24,0,0,334,333,1,0,0,0,334, - 335,1,0,0,0,335,336,1,0,0,0,336,337,5,16,0,0,337,338,3,128,64,0, - 338,339,5,49,0,0,339,340,3,130,65,0,340,341,5,98,0,0,341,342,3,112, - 56,0,342,343,5,97,0,0,343,344,3,112,56,0,344,345,5,102,0,0,345,346, - 5,66,0,0,346,347,5,49,0,0,347,348,3,130,65,0,348,349,5,99,0,0,349, - 350,5,103,0,0,350,37,1,0,0,0,351,352,5,14,0,0,352,353,3,128,64,0, - 353,354,5,49,0,0,354,355,3,130,65,0,355,356,5,98,0,0,356,357,3,112, - 56,0,357,361,5,102,0,0,358,360,3,40,20,0,359,358,1,0,0,0,360,363, - 1,0,0,0,361,359,1,0,0,0,361,362,1,0,0,0,362,364,1,0,0,0,363,361, - 1,0,0,0,364,365,5,103,0,0,365,39,1,0,0,0,366,367,5,56,0,0,367,368, - 5,49,0,0,368,369,3,130,65,0,369,370,5,99,0,0,370,386,1,0,0,0,371, - 372,5,57,0,0,372,373,5,49,0,0,373,374,3,130,65,0,374,375,5,99,0, - 0,375,386,1,0,0,0,376,377,5,58,0,0,377,378,5,59,0,0,378,379,5,49, - 0,0,379,380,3,130,65,0,380,381,5,60,0,0,381,382,5,49,0,0,382,383, - 3,130,65,0,383,384,5,99,0,0,384,386,1,0,0,0,385,366,1,0,0,0,385, - 371,1,0,0,0,385,376,1,0,0,0,386,41,1,0,0,0,387,388,5,15,0,0,388, - 389,3,128,64,0,389,390,5,49,0,0,390,391,3,130,65,0,391,392,5,98, - 0,0,392,393,3,118,59,0,393,395,3,46,23,0,394,396,5,77,0,0,395,394, - 1,0,0,0,395,396,1,0,0,0,396,397,1,0,0,0,397,401,5,102,0,0,398,400, - 3,44,22,0,399,398,1,0,0,0,400,403,1,0,0,0,401,399,1,0,0,0,401,402, - 1,0,0,0,402,404,1,0,0,0,403,401,1,0,0,0,404,405,5,103,0,0,405,43, - 1,0,0,0,406,407,5,63,0,0,407,408,5,49,0,0,408,409,3,130,65,0,409, - 410,5,99,0,0,410,431,1,0,0,0,411,412,5,64,0,0,412,413,5,49,0,0,413, - 414,3,130,65,0,414,415,5,99,0,0,415,431,1,0,0,0,416,417,5,65,0,0, - 417,418,5,49,0,0,418,419,3,130,65,0,419,420,5,99,0,0,420,431,1,0, - 0,0,421,422,5,58,0,0,422,423,5,59,0,0,423,424,5,49,0,0,424,425,3, - 130,65,0,425,426,5,60,0,0,426,427,5,49,0,0,427,428,3,130,65,0,428, - 429,5,99,0,0,429,431,1,0,0,0,430,406,1,0,0,0,430,411,1,0,0,0,430, - 416,1,0,0,0,430,421,1,0,0,0,431,45,1,0,0,0,432,433,5,10,0,0,433, - 442,3,128,64,0,434,435,5,11,0,0,435,437,3,128,64,0,436,438,3,28, - 14,0,437,436,1,0,0,0,437,438,1,0,0,0,438,442,1,0,0,0,439,440,5,3, - 0,0,440,442,3,128,64,0,441,432,1,0,0,0,441,434,1,0,0,0,441,439,1, - 0,0,0,442,47,1,0,0,0,443,445,3,16,8,0,444,443,1,0,0,0,445,448,1, - 0,0,0,446,444,1,0,0,0,446,447,1,0,0,0,447,449,1,0,0,0,448,446,1, - 0,0,0,449,450,5,13,0,0,450,451,3,128,64,0,451,452,5,49,0,0,452,453, - 3,130,65,0,453,454,5,43,0,0,454,457,3,130,65,0,455,456,5,44,0,0, - 456,458,5,112,0,0,457,455,1,0,0,0,457,458,1,0,0,0,458,459,1,0,0, - 0,459,463,5,102,0,0,460,462,3,50,25,0,461,460,1,0,0,0,462,465,1, - 0,0,0,463,461,1,0,0,0,463,464,1,0,0,0,464,466,1,0,0,0,465,463,1, - 0,0,0,466,467,5,103,0,0,467,49,1,0,0,0,468,472,3,52,26,0,469,472, - 3,54,27,0,470,472,3,56,28,0,471,468,1,0,0,0,471,469,1,0,0,0,471, - 470,1,0,0,0,472,51,1,0,0,0,473,474,5,16,0,0,474,476,3,128,64,0,475, - 477,3,22,11,0,476,475,1,0,0,0,476,477,1,0,0,0,477,478,1,0,0,0,478, - 479,5,49,0,0,479,480,3,130,65,0,480,481,5,98,0,0,481,482,3,112,56, - 0,482,483,5,97,0,0,483,484,3,112,56,0,484,485,5,51,0,0,485,487,3, - 60,30,0,486,488,3,58,29,0,487,486,1,0,0,0,487,488,1,0,0,0,488,489, - 1,0,0,0,489,490,5,53,0,0,490,492,3,62,31,0,491,493,3,66,33,0,492, - 491,1,0,0,0,492,493,1,0,0,0,493,494,1,0,0,0,494,495,5,99,0,0,495, - 53,1,0,0,0,496,497,5,17,0,0,497,499,3,128,64,0,498,500,3,22,11,0, - 499,498,1,0,0,0,499,500,1,0,0,0,500,501,1,0,0,0,501,502,5,49,0,0, - 502,503,3,130,65,0,503,504,5,98,0,0,504,505,3,112,56,0,505,506,5, - 97,0,0,506,508,3,112,56,0,507,509,3,66,33,0,508,507,1,0,0,0,508, - 509,1,0,0,0,509,510,1,0,0,0,510,511,5,99,0,0,511,55,1,0,0,0,512, - 513,5,18,0,0,513,514,3,128,64,0,514,515,5,49,0,0,515,516,3,130,65, - 0,516,517,5,19,0,0,517,518,3,128,64,0,518,519,5,98,0,0,519,521,3, - 112,56,0,520,522,3,66,33,0,521,520,1,0,0,0,521,522,1,0,0,0,522,523, - 1,0,0,0,523,524,5,99,0,0,524,57,1,0,0,0,525,526,5,52,0,0,526,527, - 3,112,56,0,527,59,1,0,0,0,528,529,7,0,0,0,529,61,1,0,0,0,530,549, - 5,55,0,0,531,532,5,10,0,0,532,549,3,128,64,0,533,534,5,3,0,0,534, - 549,3,128,64,0,535,536,5,12,0,0,536,545,5,104,0,0,537,542,3,26,13, - 0,538,539,5,100,0,0,539,541,3,26,13,0,540,538,1,0,0,0,541,544,1, - 0,0,0,542,540,1,0,0,0,542,543,1,0,0,0,543,546,1,0,0,0,544,542,1, - 0,0,0,545,537,1,0,0,0,545,546,1,0,0,0,546,547,1,0,0,0,547,549,5, - 105,0,0,548,530,1,0,0,0,548,531,1,0,0,0,548,533,1,0,0,0,548,535, - 1,0,0,0,549,63,1,0,0,0,550,555,3,128,64,0,551,552,5,100,0,0,552, - 554,3,128,64,0,553,551,1,0,0,0,554,557,1,0,0,0,555,553,1,0,0,0,555, - 556,1,0,0,0,556,65,1,0,0,0,557,555,1,0,0,0,558,559,5,54,0,0,559, - 563,5,102,0,0,560,562,3,68,34,0,561,560,1,0,0,0,562,565,1,0,0,0, - 563,561,1,0,0,0,563,564,1,0,0,0,564,566,1,0,0,0,565,563,1,0,0,0, - 566,567,5,103,0,0,567,67,1,0,0,0,568,569,5,28,0,0,569,570,3,128, - 64,0,570,571,5,49,0,0,571,572,3,130,65,0,572,573,5,98,0,0,573,574, - 3,112,56,0,574,575,3,70,35,0,575,576,5,99,0,0,576,611,1,0,0,0,577, - 578,5,29,0,0,578,579,3,128,64,0,579,580,5,49,0,0,580,581,3,130,65, - 0,581,582,5,98,0,0,582,583,3,118,59,0,583,584,3,46,23,0,584,585, - 3,70,35,0,585,586,5,99,0,0,586,611,1,0,0,0,587,588,5,11,0,0,588, - 589,3,128,64,0,589,590,5,49,0,0,590,591,3,130,65,0,591,592,5,98, - 0,0,592,594,3,128,64,0,593,595,3,28,14,0,594,593,1,0,0,0,594,595, - 1,0,0,0,595,596,1,0,0,0,596,597,5,99,0,0,597,611,1,0,0,0,598,599, - 5,18,0,0,599,600,3,128,64,0,600,601,5,49,0,0,601,602,3,130,65,0, - 602,603,5,98,0,0,603,606,3,128,64,0,604,605,5,20,0,0,605,607,3,112, - 56,0,606,604,1,0,0,0,606,607,1,0,0,0,607,608,1,0,0,0,608,609,5,99, - 0,0,609,611,1,0,0,0,610,568,1,0,0,0,610,577,1,0,0,0,610,587,1,0, - 0,0,610,598,1,0,0,0,611,69,1,0,0,0,612,613,5,104,0,0,613,618,3,72, - 36,0,614,615,5,100,0,0,615,617,3,72,36,0,616,614,1,0,0,0,617,620, - 1,0,0,0,618,616,1,0,0,0,618,619,1,0,0,0,619,621,1,0,0,0,620,618, - 1,0,0,0,621,622,5,105,0,0,622,71,1,0,0,0,623,624,7,1,0,0,624,73, - 1,0,0,0,625,626,5,27,0,0,626,627,3,76,38,0,627,75,1,0,0,0,628,631, - 3,78,39,0,629,631,3,82,41,0,630,628,1,0,0,0,630,629,1,0,0,0,631, - 77,1,0,0,0,632,633,5,28,0,0,633,634,3,128,64,0,634,635,5,49,0,0, - 635,636,3,130,65,0,636,637,5,37,0,0,637,638,3,128,64,0,638,639,5, - 98,0,0,639,640,3,112,56,0,640,641,5,38,0,0,641,644,3,80,40,0,642, - 643,5,39,0,0,643,645,3,120,60,0,644,642,1,0,0,0,644,645,1,0,0,0, - 645,646,1,0,0,0,646,647,5,99,0,0,647,79,1,0,0,0,648,655,5,71,0,0, - 649,650,5,72,0,0,650,651,5,106,0,0,651,652,3,112,56,0,652,653,5, - 107,0,0,653,655,1,0,0,0,654,648,1,0,0,0,654,649,1,0,0,0,655,81,1, - 0,0,0,656,657,5,29,0,0,657,658,3,128,64,0,658,659,5,49,0,0,659,660, - 3,130,65,0,660,661,5,102,0,0,661,662,3,84,42,0,662,663,3,84,42,0, - 663,664,5,103,0,0,664,83,1,0,0,0,665,666,3,46,23,0,666,667,5,30, - 0,0,667,668,3,128,64,0,668,669,5,49,0,0,669,670,3,130,65,0,670,672, - 3,118,59,0,671,673,5,77,0,0,672,671,1,0,0,0,672,673,1,0,0,0,673, - 676,1,0,0,0,674,675,5,45,0,0,675,677,3,130,65,0,676,674,1,0,0,0, - 676,677,1,0,0,0,677,679,1,0,0,0,678,680,5,46,0,0,679,678,1,0,0,0, - 679,680,1,0,0,0,680,683,1,0,0,0,681,682,5,47,0,0,682,684,3,130,65, - 0,683,681,1,0,0,0,683,684,1,0,0,0,684,686,1,0,0,0,685,687,5,48,0, - 0,686,685,1,0,0,0,686,687,1,0,0,0,687,688,1,0,0,0,688,689,5,99,0, - 0,689,85,1,0,0,0,690,691,5,21,0,0,691,692,3,128,64,0,692,693,5,22, - 0,0,693,695,3,128,64,0,694,696,3,28,14,0,695,694,1,0,0,0,695,696, - 1,0,0,0,696,699,1,0,0,0,697,698,5,49,0,0,698,700,3,130,65,0,699, - 697,1,0,0,0,699,700,1,0,0,0,700,703,1,0,0,0,701,702,5,44,0,0,702, - 704,5,112,0,0,703,701,1,0,0,0,703,704,1,0,0,0,704,705,1,0,0,0,705, - 709,5,102,0,0,706,708,3,88,44,0,707,706,1,0,0,0,708,711,1,0,0,0, - 709,707,1,0,0,0,709,710,1,0,0,0,710,712,1,0,0,0,711,709,1,0,0,0, - 712,713,5,103,0,0,713,87,1,0,0,0,714,715,5,26,0,0,715,720,3,76,38, - 0,716,720,3,94,47,0,717,720,3,90,45,0,718,720,3,92,46,0,719,714, - 1,0,0,0,719,716,1,0,0,0,719,717,1,0,0,0,719,718,1,0,0,0,720,89,1, - 0,0,0,721,722,5,23,0,0,722,723,3,128,64,0,723,724,5,25,0,0,724,725, - 5,28,0,0,725,726,3,128,64,0,726,727,5,99,0,0,727,91,1,0,0,0,728, - 729,5,34,0,0,729,730,3,128,64,0,730,731,5,35,0,0,731,732,5,36,0, - 0,732,733,5,32,0,0,733,734,5,18,0,0,734,735,3,128,64,0,735,736,5, - 33,0,0,736,737,5,29,0,0,737,738,3,128,64,0,738,739,5,101,0,0,739, - 740,3,128,64,0,740,741,5,99,0,0,741,93,1,0,0,0,742,743,5,23,0,0, - 743,744,3,96,48,0,744,745,5,25,0,0,745,746,3,100,50,0,746,747,5, - 99,0,0,747,95,1,0,0,0,748,749,3,128,64,0,749,750,5,101,0,0,750,751, - 3,98,49,0,751,97,1,0,0,0,752,764,3,128,64,0,753,764,5,66,0,0,754, - 764,5,56,0,0,755,764,5,57,0,0,756,764,5,63,0,0,757,764,5,64,0,0, - 758,764,5,65,0,0,759,764,5,67,0,0,760,764,5,68,0,0,761,764,5,69, - 0,0,762,764,5,70,0,0,763,752,1,0,0,0,763,753,1,0,0,0,763,754,1,0, - 0,0,763,755,1,0,0,0,763,756,1,0,0,0,763,757,1,0,0,0,763,758,1,0, - 0,0,763,759,1,0,0,0,763,760,1,0,0,0,763,761,1,0,0,0,763,762,1,0, - 0,0,764,99,1,0,0,0,765,766,5,28,0,0,766,767,3,128,64,0,767,768,5, - 101,0,0,768,769,3,102,51,0,769,788,1,0,0,0,770,771,5,29,0,0,771, - 772,3,128,64,0,772,773,5,101,0,0,773,774,3,128,64,0,774,775,5,101, - 0,0,775,776,3,104,52,0,776,788,1,0,0,0,777,778,5,13,0,0,778,779, - 3,128,64,0,779,780,5,101,0,0,780,782,3,128,64,0,781,783,3,28,14, - 0,782,781,1,0,0,0,782,783,1,0,0,0,783,785,1,0,0,0,784,786,3,106, - 53,0,785,784,1,0,0,0,785,786,1,0,0,0,786,788,1,0,0,0,787,765,1,0, - 0,0,787,770,1,0,0,0,787,777,1,0,0,0,788,101,1,0,0,0,789,790,7,2, - 0,0,790,103,1,0,0,0,791,792,7,3,0,0,792,105,1,0,0,0,793,794,5,31, - 0,0,794,798,5,102,0,0,795,797,3,108,54,0,796,795,1,0,0,0,797,800, - 1,0,0,0,798,796,1,0,0,0,798,799,1,0,0,0,799,801,1,0,0,0,800,798, - 1,0,0,0,801,802,5,103,0,0,802,107,1,0,0,0,803,804,3,128,64,0,804, - 805,5,25,0,0,805,806,5,28,0,0,806,813,3,128,64,0,807,808,5,33,0, - 0,808,809,5,29,0,0,809,810,3,128,64,0,810,811,5,101,0,0,811,812, - 3,128,64,0,812,814,1,0,0,0,813,807,1,0,0,0,813,814,1,0,0,0,814,815, - 1,0,0,0,815,816,5,99,0,0,816,857,1,0,0,0,817,818,3,128,64,0,818, - 819,5,25,0,0,819,820,5,29,0,0,820,821,3,128,64,0,821,822,5,101,0, - 0,822,829,3,128,64,0,823,824,5,33,0,0,824,825,5,29,0,0,825,826,3, - 128,64,0,826,827,5,101,0,0,827,828,3,128,64,0,828,830,1,0,0,0,829, - 823,1,0,0,0,829,830,1,0,0,0,830,831,1,0,0,0,831,832,5,99,0,0,832, - 857,1,0,0,0,833,834,3,128,64,0,834,835,5,25,0,0,835,836,5,11,0,0, - 836,838,3,128,64,0,837,839,3,28,14,0,838,837,1,0,0,0,838,839,1,0, - 0,0,839,846,1,0,0,0,840,841,5,33,0,0,841,842,5,29,0,0,842,843,3, - 128,64,0,843,844,5,101,0,0,844,845,3,128,64,0,845,847,1,0,0,0,846, - 840,1,0,0,0,846,847,1,0,0,0,847,848,1,0,0,0,848,849,5,99,0,0,849, - 857,1,0,0,0,850,851,3,128,64,0,851,852,5,25,0,0,852,853,5,18,0,0, - 853,854,3,128,64,0,854,855,5,99,0,0,855,857,1,0,0,0,856,803,1,0, - 0,0,856,817,1,0,0,0,856,833,1,0,0,0,856,850,1,0,0,0,857,109,1,0, - 0,0,858,859,5,18,0,0,859,860,3,128,64,0,860,861,5,25,0,0,861,862, - 3,128,64,0,862,863,5,101,0,0,863,865,3,128,64,0,864,866,3,106,53, - 0,865,864,1,0,0,0,865,866,1,0,0,0,866,867,1,0,0,0,867,868,5,99,0, - 0,868,111,1,0,0,0,869,916,3,116,58,0,870,916,5,78,0,0,871,916,5, - 79,0,0,872,873,5,80,0,0,873,916,3,130,65,0,874,875,5,81,0,0,875, - 876,5,108,0,0,876,877,3,128,64,0,877,878,5,109,0,0,878,916,1,0,0, - 0,879,880,5,82,0,0,880,881,5,108,0,0,881,883,3,128,64,0,882,884, - 3,28,14,0,883,882,1,0,0,0,883,884,1,0,0,0,884,885,1,0,0,0,885,886, - 5,109,0,0,886,916,1,0,0,0,887,888,5,6,0,0,888,889,5,108,0,0,889, - 890,3,128,64,0,890,891,5,109,0,0,891,916,1,0,0,0,892,893,5,83,0, - 0,893,894,5,108,0,0,894,895,3,112,56,0,895,896,5,109,0,0,896,916, - 1,0,0,0,897,898,5,84,0,0,898,899,5,108,0,0,899,900,3,112,56,0,900, - 901,5,109,0,0,901,916,1,0,0,0,902,903,5,85,0,0,903,907,5,102,0,0, - 904,906,3,114,57,0,905,904,1,0,0,0,906,909,1,0,0,0,907,905,1,0,0, - 0,907,908,1,0,0,0,908,910,1,0,0,0,909,907,1,0,0,0,910,916,5,103, - 0,0,911,913,3,128,64,0,912,914,3,28,14,0,913,912,1,0,0,0,913,914, - 1,0,0,0,914,916,1,0,0,0,915,869,1,0,0,0,915,870,1,0,0,0,915,871, - 1,0,0,0,915,872,1,0,0,0,915,874,1,0,0,0,915,879,1,0,0,0,915,887, - 1,0,0,0,915,892,1,0,0,0,915,897,1,0,0,0,915,902,1,0,0,0,915,911, - 1,0,0,0,916,113,1,0,0,0,917,918,3,128,64,0,918,919,5,98,0,0,919, - 920,3,112,56,0,920,921,5,99,0,0,921,115,1,0,0,0,922,923,7,4,0,0, - 923,117,1,0,0,0,924,925,7,5,0,0,925,119,1,0,0,0,926,935,3,130,65, - 0,927,935,5,112,0,0,928,935,5,113,0,0,929,935,5,94,0,0,930,935,5, - 95,0,0,931,935,5,96,0,0,932,935,3,122,61,0,933,935,3,126,63,0,934, - 926,1,0,0,0,934,927,1,0,0,0,934,928,1,0,0,0,934,929,1,0,0,0,934, - 930,1,0,0,0,934,931,1,0,0,0,934,932,1,0,0,0,934,933,1,0,0,0,935, - 121,1,0,0,0,936,945,5,102,0,0,937,942,3,124,62,0,938,939,5,100,0, - 0,939,941,3,124,62,0,940,938,1,0,0,0,941,944,1,0,0,0,942,940,1,0, - 0,0,942,943,1,0,0,0,943,946,1,0,0,0,944,942,1,0,0,0,945,937,1,0, - 0,0,945,946,1,0,0,0,946,947,1,0,0,0,947,948,5,103,0,0,948,123,1, - 0,0,0,949,950,3,130,65,0,950,951,5,98,0,0,951,952,3,120,60,0,952, - 125,1,0,0,0,953,962,5,104,0,0,954,959,3,120,60,0,955,956,5,100,0, - 0,956,958,3,120,60,0,957,955,1,0,0,0,958,961,1,0,0,0,959,957,1,0, - 0,0,959,960,1,0,0,0,960,963,1,0,0,0,961,959,1,0,0,0,962,954,1,0, - 0,0,962,963,1,0,0,0,963,964,1,0,0,0,964,965,5,105,0,0,965,127,1, - 0,0,0,966,967,7,6,0,0,967,129,1,0,0,0,968,969,5,115,0,0,969,131, - 1,0,0,0,82,144,151,172,184,196,216,224,231,237,249,252,258,269,278, - 288,291,293,297,305,317,322,331,334,361,385,395,401,430,437,441, - 446,457,463,471,476,487,492,499,508,521,542,545,548,555,563,594, - 606,610,618,630,644,654,672,676,679,683,686,695,699,703,709,719, - 763,782,785,787,798,813,829,838,846,856,865,883,907,913,915,934, - 942,945,959,962 + 20,1,20,3,20,395,8,20,1,21,3,21,398,8,21,1,21,1,21,1,21,1,21,1,21, + 1,21,1,21,1,21,3,21,408,8,21,1,21,1,21,5,21,412,8,21,10,21,12,21, + 415,9,21,1,21,1,21,1,22,1,22,3,22,421,8,22,1,23,1,23,1,23,1,23,1, + 23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1, + 23,1,23,1,23,1,23,1,23,1,23,1,23,3,23,447,8,23,1,24,1,24,1,24,1, + 24,1,24,3,24,454,8,24,1,24,1,24,3,24,458,8,24,1,25,5,25,461,8,25, + 10,25,12,25,464,9,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,1,25,3,25, + 474,8,25,1,25,1,25,5,25,478,8,25,10,25,12,25,481,9,25,1,25,1,25, + 1,26,1,26,1,26,1,26,3,26,489,8,26,1,27,1,27,1,27,1,27,1,27,1,27, + 1,27,1,27,1,27,1,27,1,27,1,27,5,27,503,8,27,10,27,12,27,506,9,27, + 1,27,1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28, + 1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28, + 1,28,1,28,1,28,1,28,1,28,1,28,3,28,540,8,28,1,29,1,29,1,29,3,29, + 545,8,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,1,29,3,29,556,8, + 29,1,29,1,29,1,29,3,29,561,8,29,1,29,1,29,1,30,1,30,1,30,3,30,568, + 8,30,1,30,1,30,1,30,1,30,1,30,1,30,1,30,3,30,577,8,30,1,30,1,30, + 1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,3,31,590,8,31,1,31, + 1,31,1,32,1,32,1,32,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34, + 1,34,1,34,1,34,5,34,609,8,34,10,34,12,34,612,9,34,3,34,614,8,34, + 1,34,3,34,617,8,34,1,35,1,35,1,35,5,35,622,8,35,10,35,12,35,625, + 9,35,1,36,1,36,1,36,5,36,630,8,36,10,36,12,36,633,9,36,1,36,1,36, + 1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37, + 1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37, + 3,37,663,8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37, + 3,37,675,8,37,1,37,1,37,3,37,679,8,37,1,38,1,38,1,38,1,38,5,38,685, + 8,38,10,38,12,38,688,9,38,1,38,1,38,1,39,1,39,1,40,1,40,1,40,1,41, + 1,41,3,41,699,8,41,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42, + 1,42,1,42,1,42,3,42,713,8,42,1,42,1,42,1,43,1,43,1,43,1,43,1,43, + 1,43,3,43,723,8,43,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,1,44, + 1,45,1,45,1,45,1,45,1,45,1,45,1,45,3,45,741,8,45,1,45,1,45,3,45, + 745,8,45,1,45,3,45,748,8,45,1,45,1,45,3,45,752,8,45,1,45,3,45,755, + 8,45,1,45,1,45,1,46,1,46,1,46,1,46,1,46,3,46,764,8,46,1,46,1,46, + 3,46,768,8,46,1,46,1,46,3,46,772,8,46,1,46,1,46,5,46,776,8,46,10, + 46,12,46,779,9,46,1,46,1,46,1,47,1,47,1,47,1,47,1,47,3,47,788,8, + 47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,1,49,1, + 49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,50,1, + 50,1,50,3,50,817,8,50,1,50,1,50,1,51,1,51,1,51,1,51,1,52,1,52,1, + 52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,1,52,3,52,836,8,52,1,53,1, + 53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1, + 53,1,53,1,53,3,53,855,8,53,1,53,3,53,858,8,53,3,53,860,8,53,1,54, + 1,54,1,55,1,55,1,56,1,56,1,56,5,56,869,8,56,10,56,12,56,872,9,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,3,57, + 886,8,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57, + 1,57,1,57,1,57,3,57,902,8,57,1,57,1,57,1,57,1,57,1,57,1,57,1,57, + 3,57,911,8,57,1,57,1,57,1,57,1,57,1,57,1,57,3,57,919,8,57,1,57,1, + 57,1,57,1,57,1,57,1,57,1,57,1,57,3,57,929,8,57,1,58,1,58,1,58,1, + 58,1,58,1,58,1,58,3,58,938,8,58,1,58,1,58,1,59,1,59,1,59,1,59,1, + 59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,3,59,956,8,59,1, + 59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1,59,1, + 59,1,59,1,59,1,59,1,59,1,59,1,59,5,59,978,8,59,10,59,12,59,981,9, + 59,1,59,1,59,1,59,3,59,986,8,59,3,59,988,8,59,1,60,1,60,1,60,1,60, + 1,60,1,61,1,61,1,62,1,62,1,63,1,63,1,63,1,63,1,63,1,63,1,63,1,63, + 3,63,1007,8,63,1,64,1,64,1,64,1,64,5,64,1013,8,64,10,64,12,64,1016, + 9,64,3,64,1018,8,64,1,64,1,64,1,65,1,65,1,65,1,65,1,66,1,66,1,66, + 1,66,5,66,1030,8,66,10,66,12,66,1033,9,66,3,66,1035,8,66,1,66,1, + 66,1,67,1,67,1,68,1,68,1,68,0,0,69,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,0,7, + 1,0,77,81,2,0,72,76,78,79,2,0,72,73,78,79,2,0,74,76,78,79,1,0,97, + 104,1,0,84,87,3,0,2,11,51,51,125,125,1116,0,150,1,0,0,0,2,152,1, + 0,0,0,4,162,1,0,0,0,6,166,1,0,0,0,8,190,1,0,0,0,10,202,1,0,0,0,12, + 204,1,0,0,0,14,211,1,0,0,0,16,222,1,0,0,0,18,224,1,0,0,0,20,237, + 1,0,0,0,22,269,1,0,0,0,24,299,1,0,0,0,26,301,1,0,0,0,28,305,1,0, + 0,0,30,323,1,0,0,0,32,325,1,0,0,0,34,337,1,0,0,0,36,340,1,0,0,0, + 38,358,1,0,0,0,40,394,1,0,0,0,42,397,1,0,0,0,44,418,1,0,0,0,46,446, + 1,0,0,0,48,457,1,0,0,0,50,462,1,0,0,0,52,488,1,0,0,0,54,490,1,0, + 0,0,56,539,1,0,0,0,58,541,1,0,0,0,60,564,1,0,0,0,62,580,1,0,0,0, + 64,593,1,0,0,0,66,596,1,0,0,0,68,616,1,0,0,0,70,618,1,0,0,0,72,626, + 1,0,0,0,74,678,1,0,0,0,76,680,1,0,0,0,78,691,1,0,0,0,80,693,1,0, + 0,0,82,698,1,0,0,0,84,700,1,0,0,0,86,722,1,0,0,0,88,724,1,0,0,0, + 90,733,1,0,0,0,92,758,1,0,0,0,94,787,1,0,0,0,96,789,1,0,0,0,98,796, + 1,0,0,0,100,810,1,0,0,0,102,820,1,0,0,0,104,835,1,0,0,0,106,859, + 1,0,0,0,108,861,1,0,0,0,110,863,1,0,0,0,112,865,1,0,0,0,114,928, + 1,0,0,0,116,930,1,0,0,0,118,987,1,0,0,0,120,989,1,0,0,0,122,994, + 1,0,0,0,124,996,1,0,0,0,126,1006,1,0,0,0,128,1008,1,0,0,0,130,1021, + 1,0,0,0,132,1025,1,0,0,0,134,1038,1,0,0,0,136,1040,1,0,0,0,138,139, + 3,6,3,0,139,140,5,0,0,1,140,151,1,0,0,0,141,142,3,20,10,0,142,143, + 5,0,0,1,143,151,1,0,0,0,144,145,3,50,25,0,145,146,5,0,0,1,146,151, + 1,0,0,0,147,148,3,2,1,0,148,149,5,0,0,1,149,151,1,0,0,0,150,138, + 1,0,0,0,150,141,1,0,0,0,150,144,1,0,0,0,150,147,1,0,0,0,151,1,1, + 0,0,0,152,153,5,18,0,0,153,157,5,113,0,0,154,156,3,8,4,0,155,154, + 1,0,0,0,156,159,1,0,0,0,157,155,1,0,0,0,157,158,1,0,0,0,158,160, + 1,0,0,0,159,157,1,0,0,0,160,161,5,114,0,0,161,3,1,0,0,0,162,163, + 5,19,0,0,163,164,3,136,68,0,164,165,5,110,0,0,165,5,1,0,0,0,166, + 167,5,1,0,0,167,168,3,134,67,0,168,169,5,60,0,0,169,170,3,136,68, + 0,170,171,5,54,0,0,171,172,3,136,68,0,172,173,5,53,0,0,173,174,3, + 136,68,0,174,178,5,113,0,0,175,177,3,8,4,0,176,175,1,0,0,0,177,180, + 1,0,0,0,178,176,1,0,0,0,178,179,1,0,0,0,179,181,1,0,0,0,180,178, + 1,0,0,0,181,182,5,114,0,0,182,7,1,0,0,0,183,191,3,4,2,0,184,191, + 3,18,9,0,185,191,3,10,5,0,186,191,3,80,40,0,187,191,3,92,46,0,188, + 191,3,116,58,0,189,191,3,32,16,0,190,183,1,0,0,0,190,184,1,0,0,0, + 190,185,1,0,0,0,190,186,1,0,0,0,190,187,1,0,0,0,190,188,1,0,0,0, + 190,189,1,0,0,0,191,9,1,0,0,0,192,193,5,19,0,0,193,194,5,22,0,0, + 194,195,3,134,67,0,195,196,5,110,0,0,196,203,1,0,0,0,197,198,5,19, + 0,0,198,199,5,24,0,0,199,200,3,134,67,0,200,201,5,110,0,0,201,203, + 1,0,0,0,202,192,1,0,0,0,202,197,1,0,0,0,203,11,1,0,0,0,204,205,5, + 20,0,0,205,206,5,21,0,0,206,207,3,134,67,0,207,208,5,60,0,0,208, + 209,3,136,68,0,209,210,5,110,0,0,210,13,1,0,0,0,211,212,5,20,0,0, + 212,213,5,22,0,0,213,214,3,134,67,0,214,215,5,54,0,0,215,216,3,136, + 68,0,216,217,5,110,0,0,217,15,1,0,0,0,218,223,3,10,5,0,219,223,3, + 12,6,0,220,223,3,14,7,0,221,223,3,32,16,0,222,218,1,0,0,0,222,219, + 1,0,0,0,222,220,1,0,0,0,222,221,1,0,0,0,223,17,1,0,0,0,224,225,5, + 21,0,0,225,226,3,134,67,0,226,227,5,60,0,0,227,230,3,136,68,0,228, + 229,5,61,0,0,229,231,3,136,68,0,230,228,1,0,0,0,230,231,1,0,0,0, + 231,232,1,0,0,0,232,233,5,110,0,0,233,19,1,0,0,0,234,236,3,16,8, + 0,235,234,1,0,0,0,236,239,1,0,0,0,237,235,1,0,0,0,237,238,1,0,0, + 0,238,240,1,0,0,0,239,237,1,0,0,0,240,241,5,22,0,0,241,243,3,134, + 67,0,242,244,3,22,11,0,243,242,1,0,0,0,243,244,1,0,0,0,244,245,1, + 0,0,0,245,246,5,60,0,0,246,247,3,136,68,0,247,248,5,54,0,0,248,258, + 3,136,68,0,249,250,5,65,0,0,250,255,3,26,13,0,251,252,5,111,0,0, + 252,254,3,26,13,0,253,251,1,0,0,0,254,257,1,0,0,0,255,253,1,0,0, + 0,255,256,1,0,0,0,256,259,1,0,0,0,257,255,1,0,0,0,258,249,1,0,0, + 0,258,259,1,0,0,0,259,260,1,0,0,0,260,264,5,113,0,0,261,263,3,34, + 17,0,262,261,1,0,0,0,263,266,1,0,0,0,264,262,1,0,0,0,264,265,1,0, + 0,0,265,267,1,0,0,0,266,264,1,0,0,0,267,268,5,114,0,0,268,21,1,0, + 0,0,269,270,5,119,0,0,270,275,3,24,12,0,271,272,5,111,0,0,272,274, + 3,24,12,0,273,271,1,0,0,0,274,277,1,0,0,0,275,273,1,0,0,0,275,276, + 1,0,0,0,276,278,1,0,0,0,277,275,1,0,0,0,278,279,5,120,0,0,279,23, + 1,0,0,0,280,281,5,25,0,0,281,284,3,134,67,0,282,283,5,109,0,0,283, + 285,5,15,0,0,284,282,1,0,0,0,284,285,1,0,0,0,285,300,1,0,0,0,286, + 287,5,14,0,0,287,297,3,134,67,0,288,289,5,16,0,0,289,294,3,26,13, + 0,290,291,5,121,0,0,291,293,3,26,13,0,292,290,1,0,0,0,293,296,1, + 0,0,0,294,292,1,0,0,0,294,295,1,0,0,0,295,298,1,0,0,0,296,294,1, + 0,0,0,297,288,1,0,0,0,297,298,1,0,0,0,298,300,1,0,0,0,299,280,1, + 0,0,0,299,286,1,0,0,0,300,25,1,0,0,0,301,303,3,134,67,0,302,304, + 3,28,14,0,303,302,1,0,0,0,303,304,1,0,0,0,304,27,1,0,0,0,305,306, + 5,119,0,0,306,311,3,30,15,0,307,308,5,111,0,0,308,310,3,30,15,0, + 309,307,1,0,0,0,310,313,1,0,0,0,311,309,1,0,0,0,311,312,1,0,0,0, + 312,314,1,0,0,0,313,311,1,0,0,0,314,315,5,120,0,0,315,29,1,0,0,0, + 316,317,5,21,0,0,317,324,3,134,67,0,318,319,5,22,0,0,319,324,3,26, + 13,0,320,321,5,14,0,0,321,324,3,134,67,0,322,324,3,118,59,0,323, + 316,1,0,0,0,323,318,1,0,0,0,323,320,1,0,0,0,323,322,1,0,0,0,324, + 31,1,0,0,0,325,326,5,13,0,0,326,328,3,134,67,0,327,329,3,22,11,0, + 328,327,1,0,0,0,328,329,1,0,0,0,329,330,1,0,0,0,330,331,5,122,0, + 0,331,332,3,118,59,0,332,333,5,110,0,0,333,33,1,0,0,0,334,338,3, + 38,19,0,335,338,3,42,21,0,336,338,3,36,18,0,337,334,1,0,0,0,337, + 335,1,0,0,0,337,336,1,0,0,0,338,35,1,0,0,0,339,341,5,35,0,0,340, + 339,1,0,0,0,340,341,1,0,0,0,341,342,1,0,0,0,342,343,5,27,0,0,343, + 344,3,134,67,0,344,345,5,60,0,0,345,346,3,136,68,0,346,347,5,109, + 0,0,347,348,3,118,59,0,348,349,5,108,0,0,349,350,3,118,59,0,350, + 351,5,113,0,0,351,352,5,77,0,0,352,353,5,60,0,0,353,354,3,136,68, + 0,354,355,5,110,0,0,355,356,5,114,0,0,356,37,1,0,0,0,357,359,3,44, + 22,0,358,357,1,0,0,0,358,359,1,0,0,0,359,360,1,0,0,0,360,361,5,25, + 0,0,361,362,3,134,67,0,362,363,5,60,0,0,363,364,3,136,68,0,364,365, + 5,109,0,0,365,366,3,118,59,0,366,370,5,113,0,0,367,369,3,40,20,0, + 368,367,1,0,0,0,369,372,1,0,0,0,370,368,1,0,0,0,370,371,1,0,0,0, + 371,373,1,0,0,0,372,370,1,0,0,0,373,374,5,114,0,0,374,39,1,0,0,0, + 375,376,5,67,0,0,376,377,5,60,0,0,377,378,3,136,68,0,378,379,5,110, + 0,0,379,395,1,0,0,0,380,381,5,68,0,0,381,382,5,60,0,0,382,383,3, + 136,68,0,383,384,5,110,0,0,384,395,1,0,0,0,385,386,5,69,0,0,386, + 387,5,70,0,0,387,388,5,60,0,0,388,389,3,136,68,0,389,390,5,71,0, + 0,390,391,5,60,0,0,391,392,3,136,68,0,392,393,5,110,0,0,393,395, + 1,0,0,0,394,375,1,0,0,0,394,380,1,0,0,0,394,385,1,0,0,0,395,41,1, + 0,0,0,396,398,3,44,22,0,397,396,1,0,0,0,397,398,1,0,0,0,398,399, + 1,0,0,0,399,400,5,26,0,0,400,401,3,134,67,0,401,402,5,60,0,0,402, + 403,3,136,68,0,403,404,5,109,0,0,404,405,3,124,62,0,405,407,3,48, + 24,0,406,408,5,88,0,0,407,406,1,0,0,0,407,408,1,0,0,0,408,409,1, + 0,0,0,409,413,5,113,0,0,410,412,3,46,23,0,411,410,1,0,0,0,412,415, + 1,0,0,0,413,411,1,0,0,0,413,414,1,0,0,0,414,416,1,0,0,0,415,413, + 1,0,0,0,416,417,5,114,0,0,417,43,1,0,0,0,418,420,5,10,0,0,419,421, + 5,11,0,0,420,419,1,0,0,0,420,421,1,0,0,0,421,45,1,0,0,0,422,423, + 5,74,0,0,423,424,5,60,0,0,424,425,3,136,68,0,425,426,5,110,0,0,426, + 447,1,0,0,0,427,428,5,75,0,0,428,429,5,60,0,0,429,430,3,136,68,0, + 430,431,5,110,0,0,431,447,1,0,0,0,432,433,5,76,0,0,433,434,5,60, + 0,0,434,435,3,136,68,0,435,436,5,110,0,0,436,447,1,0,0,0,437,438, + 5,69,0,0,438,439,5,70,0,0,439,440,5,60,0,0,440,441,3,136,68,0,441, + 442,5,71,0,0,442,443,5,60,0,0,443,444,3,136,68,0,444,445,5,110,0, + 0,445,447,1,0,0,0,446,422,1,0,0,0,446,427,1,0,0,0,446,432,1,0,0, + 0,446,437,1,0,0,0,447,47,1,0,0,0,448,449,5,21,0,0,449,458,3,134, + 67,0,450,451,5,22,0,0,451,453,3,134,67,0,452,454,3,28,14,0,453,452, + 1,0,0,0,453,454,1,0,0,0,454,458,1,0,0,0,455,456,5,14,0,0,456,458, + 3,134,67,0,457,448,1,0,0,0,457,450,1,0,0,0,457,455,1,0,0,0,458,49, + 1,0,0,0,459,461,3,16,8,0,460,459,1,0,0,0,461,464,1,0,0,0,462,460, + 1,0,0,0,462,463,1,0,0,0,463,465,1,0,0,0,464,462,1,0,0,0,465,466, + 5,24,0,0,466,467,3,134,67,0,467,468,5,60,0,0,468,469,3,136,68,0, + 469,470,5,54,0,0,470,473,3,136,68,0,471,472,5,55,0,0,472,474,5,123, + 0,0,473,471,1,0,0,0,473,474,1,0,0,0,474,475,1,0,0,0,475,479,5,113, + 0,0,476,478,3,52,26,0,477,476,1,0,0,0,478,481,1,0,0,0,479,477,1, + 0,0,0,479,480,1,0,0,0,480,482,1,0,0,0,481,479,1,0,0,0,482,483,5, + 114,0,0,483,51,1,0,0,0,484,489,3,58,29,0,485,489,3,60,30,0,486,489, + 3,62,31,0,487,489,3,54,27,0,488,484,1,0,0,0,488,485,1,0,0,0,488, + 486,1,0,0,0,488,487,1,0,0,0,489,53,1,0,0,0,490,491,5,2,0,0,491,492, + 3,134,67,0,492,493,5,60,0,0,493,494,3,136,68,0,494,495,5,3,0,0,495, + 496,3,26,13,0,496,497,5,4,0,0,497,498,3,136,68,0,498,499,5,27,0, + 0,499,500,3,136,68,0,500,504,5,113,0,0,501,503,3,56,28,0,502,501, + 1,0,0,0,503,506,1,0,0,0,504,502,1,0,0,0,504,505,1,0,0,0,505,507, + 1,0,0,0,506,504,1,0,0,0,507,508,5,114,0,0,508,55,1,0,0,0,509,510, + 5,5,0,0,510,511,3,136,68,0,511,512,5,110,0,0,512,540,1,0,0,0,513, + 514,5,6,0,0,514,515,3,134,67,0,515,516,5,33,0,0,516,517,3,26,13, + 0,517,518,5,110,0,0,518,540,1,0,0,0,519,520,5,7,0,0,520,521,3,134, + 67,0,521,522,5,123,0,0,522,523,5,110,0,0,523,540,1,0,0,0,524,525, + 5,8,0,0,525,526,3,26,13,0,526,527,5,112,0,0,527,528,3,134,67,0,528, + 529,3,134,67,0,529,530,3,136,68,0,530,531,5,110,0,0,531,540,1,0, + 0,0,532,533,5,69,0,0,533,540,5,110,0,0,534,535,5,9,0,0,535,536,5, + 123,0,0,536,537,3,136,68,0,537,538,5,110,0,0,538,540,1,0,0,0,539, + 509,1,0,0,0,539,513,1,0,0,0,539,519,1,0,0,0,539,524,1,0,0,0,539, + 532,1,0,0,0,539,534,1,0,0,0,540,57,1,0,0,0,541,542,5,27,0,0,542, + 544,3,134,67,0,543,545,3,22,11,0,544,543,1,0,0,0,544,545,1,0,0,0, + 545,546,1,0,0,0,546,547,5,60,0,0,547,548,3,136,68,0,548,549,5,109, + 0,0,549,550,3,118,59,0,550,551,5,108,0,0,551,552,3,118,59,0,552, + 553,5,62,0,0,553,555,3,66,33,0,554,556,3,64,32,0,555,554,1,0,0,0, + 555,556,1,0,0,0,556,557,1,0,0,0,557,558,5,64,0,0,558,560,3,68,34, + 0,559,561,3,72,36,0,560,559,1,0,0,0,560,561,1,0,0,0,561,562,1,0, + 0,0,562,563,5,110,0,0,563,59,1,0,0,0,564,565,5,28,0,0,565,567,3, + 134,67,0,566,568,3,22,11,0,567,566,1,0,0,0,567,568,1,0,0,0,568,569, + 1,0,0,0,569,570,5,60,0,0,570,571,3,136,68,0,571,572,5,109,0,0,572, + 573,3,118,59,0,573,574,5,108,0,0,574,576,3,118,59,0,575,577,3,72, + 36,0,576,575,1,0,0,0,576,577,1,0,0,0,577,578,1,0,0,0,578,579,5,110, + 0,0,579,61,1,0,0,0,580,581,5,29,0,0,581,582,3,134,67,0,582,583,5, + 60,0,0,583,584,3,136,68,0,584,585,5,30,0,0,585,586,3,134,67,0,586, + 587,5,109,0,0,587,589,3,118,59,0,588,590,3,72,36,0,589,588,1,0,0, + 0,589,590,1,0,0,0,590,591,1,0,0,0,591,592,5,110,0,0,592,63,1,0,0, + 0,593,594,5,63,0,0,594,595,3,118,59,0,595,65,1,0,0,0,596,597,7,0, + 0,0,597,67,1,0,0,0,598,617,5,66,0,0,599,600,5,21,0,0,600,617,3,134, + 67,0,601,602,5,14,0,0,602,617,3,134,67,0,603,604,5,23,0,0,604,613, + 5,115,0,0,605,610,3,26,13,0,606,607,5,111,0,0,607,609,3,26,13,0, + 608,606,1,0,0,0,609,612,1,0,0,0,610,608,1,0,0,0,610,611,1,0,0,0, + 611,614,1,0,0,0,612,610,1,0,0,0,613,605,1,0,0,0,613,614,1,0,0,0, + 614,615,1,0,0,0,615,617,5,116,0,0,616,598,1,0,0,0,616,599,1,0,0, + 0,616,601,1,0,0,0,616,603,1,0,0,0,617,69,1,0,0,0,618,623,3,134,67, + 0,619,620,5,111,0,0,620,622,3,134,67,0,621,619,1,0,0,0,622,625,1, + 0,0,0,623,621,1,0,0,0,623,624,1,0,0,0,624,71,1,0,0,0,625,623,1,0, + 0,0,626,627,5,65,0,0,627,631,5,113,0,0,628,630,3,74,37,0,629,628, + 1,0,0,0,630,633,1,0,0,0,631,629,1,0,0,0,631,632,1,0,0,0,632,634, + 1,0,0,0,633,631,1,0,0,0,634,635,5,114,0,0,635,73,1,0,0,0,636,637, + 5,39,0,0,637,638,3,134,67,0,638,639,5,60,0,0,639,640,3,136,68,0, + 640,641,5,109,0,0,641,642,3,118,59,0,642,643,3,76,38,0,643,644,5, + 110,0,0,644,679,1,0,0,0,645,646,5,40,0,0,646,647,3,134,67,0,647, + 648,5,60,0,0,648,649,3,136,68,0,649,650,5,109,0,0,650,651,3,124, + 62,0,651,652,3,48,24,0,652,653,3,76,38,0,653,654,5,110,0,0,654,679, + 1,0,0,0,655,656,5,22,0,0,656,657,3,134,67,0,657,658,5,60,0,0,658, + 659,3,136,68,0,659,660,5,109,0,0,660,662,3,134,67,0,661,663,3,28, + 14,0,662,661,1,0,0,0,662,663,1,0,0,0,663,664,1,0,0,0,664,665,5,110, + 0,0,665,679,1,0,0,0,666,667,5,29,0,0,667,668,3,134,67,0,668,669, + 5,60,0,0,669,670,3,136,68,0,670,671,5,109,0,0,671,674,3,134,67,0, + 672,673,5,31,0,0,673,675,3,118,59,0,674,672,1,0,0,0,674,675,1,0, + 0,0,675,676,1,0,0,0,676,677,5,110,0,0,677,679,1,0,0,0,678,636,1, + 0,0,0,678,645,1,0,0,0,678,655,1,0,0,0,678,666,1,0,0,0,679,75,1,0, + 0,0,680,681,5,115,0,0,681,686,3,78,39,0,682,683,5,111,0,0,683,685, + 3,78,39,0,684,682,1,0,0,0,685,688,1,0,0,0,686,684,1,0,0,0,686,687, + 1,0,0,0,687,689,1,0,0,0,688,686,1,0,0,0,689,690,5,116,0,0,690,77, + 1,0,0,0,691,692,7,1,0,0,692,79,1,0,0,0,693,694,5,38,0,0,694,695, + 3,82,41,0,695,81,1,0,0,0,696,699,3,84,42,0,697,699,3,88,44,0,698, + 696,1,0,0,0,698,697,1,0,0,0,699,83,1,0,0,0,700,701,5,39,0,0,701, + 702,3,134,67,0,702,703,5,60,0,0,703,704,3,136,68,0,704,705,5,48, + 0,0,705,706,3,134,67,0,706,707,5,109,0,0,707,708,3,118,59,0,708, + 709,5,49,0,0,709,712,3,86,43,0,710,711,5,50,0,0,711,713,3,126,63, + 0,712,710,1,0,0,0,712,713,1,0,0,0,713,714,1,0,0,0,714,715,5,110, + 0,0,715,85,1,0,0,0,716,723,5,82,0,0,717,718,5,83,0,0,718,719,5,117, + 0,0,719,720,3,118,59,0,720,721,5,118,0,0,721,723,1,0,0,0,722,716, + 1,0,0,0,722,717,1,0,0,0,723,87,1,0,0,0,724,725,5,40,0,0,725,726, + 3,134,67,0,726,727,5,60,0,0,727,728,3,136,68,0,728,729,5,113,0,0, + 729,730,3,90,45,0,730,731,3,90,45,0,731,732,5,114,0,0,732,89,1,0, + 0,0,733,734,3,48,24,0,734,735,5,41,0,0,735,736,3,134,67,0,736,737, + 5,60,0,0,737,738,3,136,68,0,738,740,3,124,62,0,739,741,5,88,0,0, + 740,739,1,0,0,0,740,741,1,0,0,0,741,744,1,0,0,0,742,743,5,56,0,0, + 743,745,3,136,68,0,744,742,1,0,0,0,744,745,1,0,0,0,745,747,1,0,0, + 0,746,748,5,57,0,0,747,746,1,0,0,0,747,748,1,0,0,0,748,751,1,0,0, + 0,749,750,5,58,0,0,750,752,3,136,68,0,751,749,1,0,0,0,751,752,1, + 0,0,0,752,754,1,0,0,0,753,755,5,59,0,0,754,753,1,0,0,0,754,755,1, + 0,0,0,755,756,1,0,0,0,756,757,5,110,0,0,757,91,1,0,0,0,758,759,5, + 32,0,0,759,760,3,134,67,0,760,761,5,33,0,0,761,763,3,134,67,0,762, + 764,3,28,14,0,763,762,1,0,0,0,763,764,1,0,0,0,764,767,1,0,0,0,765, + 766,5,60,0,0,766,768,3,136,68,0,767,765,1,0,0,0,767,768,1,0,0,0, + 768,771,1,0,0,0,769,770,5,55,0,0,770,772,5,123,0,0,771,769,1,0,0, + 0,771,772,1,0,0,0,772,773,1,0,0,0,773,777,5,113,0,0,774,776,3,94, + 47,0,775,774,1,0,0,0,776,779,1,0,0,0,777,775,1,0,0,0,777,778,1,0, + 0,0,778,780,1,0,0,0,779,777,1,0,0,0,780,781,5,114,0,0,781,93,1,0, + 0,0,782,783,5,37,0,0,783,788,3,82,41,0,784,788,3,100,50,0,785,788, + 3,96,48,0,786,788,3,98,49,0,787,782,1,0,0,0,787,784,1,0,0,0,787, + 785,1,0,0,0,787,786,1,0,0,0,788,95,1,0,0,0,789,790,5,34,0,0,790, + 791,3,134,67,0,791,792,5,36,0,0,792,793,5,39,0,0,793,794,3,134,67, + 0,794,795,5,110,0,0,795,97,1,0,0,0,796,797,5,45,0,0,797,798,3,134, + 67,0,798,799,5,46,0,0,799,800,5,47,0,0,800,801,5,43,0,0,801,802, + 5,29,0,0,802,803,3,134,67,0,803,804,5,44,0,0,804,805,5,40,0,0,805, + 806,3,134,67,0,806,807,5,112,0,0,807,808,3,134,67,0,808,809,5,110, + 0,0,809,99,1,0,0,0,810,811,5,34,0,0,811,812,3,102,51,0,812,813,5, + 36,0,0,813,816,3,106,53,0,814,815,5,12,0,0,815,817,3,136,68,0,816, + 814,1,0,0,0,816,817,1,0,0,0,817,818,1,0,0,0,818,819,5,110,0,0,819, + 101,1,0,0,0,820,821,3,134,67,0,821,822,5,112,0,0,822,823,3,104,52, + 0,823,103,1,0,0,0,824,836,3,134,67,0,825,836,5,77,0,0,826,836,5, + 67,0,0,827,836,5,68,0,0,828,836,5,74,0,0,829,836,5,75,0,0,830,836, + 5,76,0,0,831,836,5,78,0,0,832,836,5,79,0,0,833,836,5,80,0,0,834, + 836,5,81,0,0,835,824,1,0,0,0,835,825,1,0,0,0,835,826,1,0,0,0,835, + 827,1,0,0,0,835,828,1,0,0,0,835,829,1,0,0,0,835,830,1,0,0,0,835, + 831,1,0,0,0,835,832,1,0,0,0,835,833,1,0,0,0,835,834,1,0,0,0,836, + 105,1,0,0,0,837,838,5,39,0,0,838,839,3,134,67,0,839,840,5,112,0, + 0,840,841,3,108,54,0,841,860,1,0,0,0,842,843,5,40,0,0,843,844,3, + 134,67,0,844,845,5,112,0,0,845,846,3,134,67,0,846,847,5,112,0,0, + 847,848,3,110,55,0,848,860,1,0,0,0,849,850,5,24,0,0,850,851,3,134, + 67,0,851,852,5,112,0,0,852,854,3,134,67,0,853,855,3,28,14,0,854, + 853,1,0,0,0,854,855,1,0,0,0,855,857,1,0,0,0,856,858,3,112,56,0,857, + 856,1,0,0,0,857,858,1,0,0,0,858,860,1,0,0,0,859,837,1,0,0,0,859, + 842,1,0,0,0,859,849,1,0,0,0,860,107,1,0,0,0,861,862,7,2,0,0,862, + 109,1,0,0,0,863,864,7,3,0,0,864,111,1,0,0,0,865,866,5,42,0,0,866, + 870,5,113,0,0,867,869,3,114,57,0,868,867,1,0,0,0,869,872,1,0,0,0, + 870,868,1,0,0,0,870,871,1,0,0,0,871,873,1,0,0,0,872,870,1,0,0,0, + 873,874,5,114,0,0,874,113,1,0,0,0,875,876,3,134,67,0,876,877,5,36, + 0,0,877,878,5,39,0,0,878,885,3,134,67,0,879,880,5,44,0,0,880,881, + 5,40,0,0,881,882,3,134,67,0,882,883,5,112,0,0,883,884,3,134,67,0, + 884,886,1,0,0,0,885,879,1,0,0,0,885,886,1,0,0,0,886,887,1,0,0,0, + 887,888,5,110,0,0,888,929,1,0,0,0,889,890,3,134,67,0,890,891,5,36, + 0,0,891,892,5,40,0,0,892,893,3,134,67,0,893,894,5,112,0,0,894,901, + 3,134,67,0,895,896,5,44,0,0,896,897,5,40,0,0,897,898,3,134,67,0, + 898,899,5,112,0,0,899,900,3,134,67,0,900,902,1,0,0,0,901,895,1,0, + 0,0,901,902,1,0,0,0,902,903,1,0,0,0,903,904,5,110,0,0,904,929,1, + 0,0,0,905,906,3,134,67,0,906,907,5,36,0,0,907,908,5,22,0,0,908,910, + 3,134,67,0,909,911,3,28,14,0,910,909,1,0,0,0,910,911,1,0,0,0,911, + 918,1,0,0,0,912,913,5,44,0,0,913,914,5,40,0,0,914,915,3,134,67,0, + 915,916,5,112,0,0,916,917,3,134,67,0,917,919,1,0,0,0,918,912,1,0, + 0,0,918,919,1,0,0,0,919,920,1,0,0,0,920,921,5,110,0,0,921,929,1, + 0,0,0,922,923,3,134,67,0,923,924,5,36,0,0,924,925,5,29,0,0,925,926, + 3,134,67,0,926,927,5,110,0,0,927,929,1,0,0,0,928,875,1,0,0,0,928, + 889,1,0,0,0,928,905,1,0,0,0,928,922,1,0,0,0,929,115,1,0,0,0,930, + 931,5,29,0,0,931,932,3,134,67,0,932,933,5,36,0,0,933,934,3,134,67, + 0,934,935,5,112,0,0,935,937,3,134,67,0,936,938,3,112,56,0,937,936, + 1,0,0,0,937,938,1,0,0,0,938,939,1,0,0,0,939,940,5,110,0,0,940,117, + 1,0,0,0,941,988,3,122,61,0,942,988,5,89,0,0,943,988,5,90,0,0,944, + 945,5,91,0,0,945,988,3,136,68,0,946,947,5,92,0,0,947,948,5,119,0, + 0,948,949,3,134,67,0,949,950,5,120,0,0,950,988,1,0,0,0,951,952,5, + 93,0,0,952,953,5,119,0,0,953,955,3,134,67,0,954,956,3,28,14,0,955, + 954,1,0,0,0,955,956,1,0,0,0,956,957,1,0,0,0,957,958,5,120,0,0,958, + 988,1,0,0,0,959,960,5,17,0,0,960,961,5,119,0,0,961,962,3,134,67, + 0,962,963,5,120,0,0,963,988,1,0,0,0,964,965,5,94,0,0,965,966,5,119, + 0,0,966,967,3,118,59,0,967,968,5,120,0,0,968,988,1,0,0,0,969,970, + 5,95,0,0,970,971,5,119,0,0,971,972,3,118,59,0,972,973,5,120,0,0, + 973,988,1,0,0,0,974,975,5,96,0,0,975,979,5,113,0,0,976,978,3,120, + 60,0,977,976,1,0,0,0,978,981,1,0,0,0,979,977,1,0,0,0,979,980,1,0, + 0,0,980,982,1,0,0,0,981,979,1,0,0,0,982,988,5,114,0,0,983,985,3, + 134,67,0,984,986,3,28,14,0,985,984,1,0,0,0,985,986,1,0,0,0,986,988, + 1,0,0,0,987,941,1,0,0,0,987,942,1,0,0,0,987,943,1,0,0,0,987,944, + 1,0,0,0,987,946,1,0,0,0,987,951,1,0,0,0,987,959,1,0,0,0,987,964, + 1,0,0,0,987,969,1,0,0,0,987,974,1,0,0,0,987,983,1,0,0,0,988,119, + 1,0,0,0,989,990,3,134,67,0,990,991,5,109,0,0,991,992,3,118,59,0, + 992,993,5,110,0,0,993,121,1,0,0,0,994,995,7,4,0,0,995,123,1,0,0, + 0,996,997,7,5,0,0,997,125,1,0,0,0,998,1007,3,136,68,0,999,1007,5, + 123,0,0,1000,1007,5,124,0,0,1001,1007,5,105,0,0,1002,1007,5,106, + 0,0,1003,1007,5,107,0,0,1004,1007,3,128,64,0,1005,1007,3,132,66, + 0,1006,998,1,0,0,0,1006,999,1,0,0,0,1006,1000,1,0,0,0,1006,1001, + 1,0,0,0,1006,1002,1,0,0,0,1006,1003,1,0,0,0,1006,1004,1,0,0,0,1006, + 1005,1,0,0,0,1007,127,1,0,0,0,1008,1017,5,113,0,0,1009,1014,3,130, + 65,0,1010,1011,5,111,0,0,1011,1013,3,130,65,0,1012,1010,1,0,0,0, + 1013,1016,1,0,0,0,1014,1012,1,0,0,0,1014,1015,1,0,0,0,1015,1018, + 1,0,0,0,1016,1014,1,0,0,0,1017,1009,1,0,0,0,1017,1018,1,0,0,0,1018, + 1019,1,0,0,0,1019,1020,5,114,0,0,1020,129,1,0,0,0,1021,1022,3,136, + 68,0,1022,1023,5,109,0,0,1023,1024,3,126,63,0,1024,131,1,0,0,0,1025, + 1034,5,115,0,0,1026,1031,3,126,63,0,1027,1028,5,111,0,0,1028,1030, + 3,126,63,0,1029,1027,1,0,0,0,1030,1033,1,0,0,0,1031,1029,1,0,0,0, + 1031,1032,1,0,0,0,1032,1035,1,0,0,0,1033,1031,1,0,0,0,1034,1026, + 1,0,0,0,1034,1035,1,0,0,0,1035,1036,1,0,0,0,1036,1037,5,116,0,0, + 1037,133,1,0,0,0,1038,1039,7,6,0,0,1039,135,1,0,0,0,1040,1041,5, + 126,0,0,1041,137,1,0,0,0,88,150,157,178,190,202,222,230,237,243, + 255,258,264,275,284,294,297,299,303,311,323,328,337,340,358,370, + 394,397,407,413,420,446,453,457,462,473,479,488,504,539,544,555, + 560,567,576,589,610,613,616,623,631,662,674,678,686,698,712,722, + 740,744,747,751,754,763,767,771,777,787,816,835,854,857,859,870, + 885,901,910,918,928,937,955,979,985,987,1006,1014,1017,1031,1034 ]; private static __ATN: antlr.ATN; @@ -5110,6 +5423,9 @@ export class ValueMemberContext extends antlr.ParserRuleContext { public RBRACE(): antlr.TerminalNode { return this.getToken(QuixosCapabilityParser.RBRACE, 0)!; } + public queryReadContract(): QueryReadContractContext | null { + return this.getRuleContext(0, QueryReadContractContext); + } public valueMemberOperation(): ValueMemberOperationContext[]; public valueMemberOperation(i: number): ValueMemberOperationContext | null; public valueMemberOperation(i?: number): ValueMemberOperationContext[] | ValueMemberOperationContext | null { @@ -5216,6 +5532,9 @@ export class RelationshipMemberContext extends antlr.ParserRuleContext { public RBRACE(): antlr.TerminalNode { return this.getToken(QuixosCapabilityParser.RBRACE, 0)!; } + public queryReadContract(): QueryReadContractContext | null { + return this.getRuleContext(0, QueryReadContractContext); + } public ORDERED(): antlr.TerminalNode | null { return this.getToken(QuixosCapabilityParser.ORDERED, 0); } @@ -5241,6 +5560,29 @@ export class RelationshipMemberContext extends antlr.ParserRuleContext { } +export class QueryReadContractContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public QUERYABLE(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.QUERYABLE, 0)!; + } + public RPC(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.RPC, 0); + } + public override get ruleIndex(): number { + return QuixosCapabilityParser.RULE_queryReadContract; + } + public override accept(visitor: QuixosCapabilityVisitor): Result | null { + if (visitor.visitQueryReadContract) { + return visitor.visitQueryReadContract(this); + } else { + return visitor.visitChildren(this); + } + } +} + + export class RelationshipOperationContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); @@ -5410,6 +5752,9 @@ export class PackageExportContext extends antlr.ParserRuleContext { public packageConstructorExport(): PackageConstructorExportContext | null { return this.getRuleContext(0, PackageConstructorExportContext); } + public packageQuery(): PackageQueryContext | null { + return this.getRuleContext(0, PackageQueryContext); + } public override get ruleIndex(): number { return QuixosCapabilityParser.RULE_packageExport; } @@ -5423,6 +5768,130 @@ export class PackageExportContext extends antlr.ParserRuleContext { } +export class PackageQueryContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public QUERY(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.QUERY, 0)!; + } + public identifier(): IdentifierContext { + return this.getRuleContext(0, IdentifierContext)!; + } + public ID(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.ID, 0)!; + } + public stringLiteral(): StringLiteralContext[]; + public stringLiteral(i: number): StringLiteralContext | null; + public stringLiteral(i?: number): StringLiteralContext[] | StringLiteralContext | null { + if (i === undefined) { + return this.getRuleContexts(StringLiteralContext); + } + + return this.getRuleContext(i, StringLiteralContext); + } + public ROOT(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.ROOT, 0)!; + } + public interfaceType(): InterfaceTypeContext { + return this.getRuleContext(0, InterfaceTypeContext)!; + } + public DOCUMENT(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.DOCUMENT, 0)!; + } + public OPERATION(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.OPERATION, 0)!; + } + public LBRACE(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.LBRACE, 0)!; + } + public RBRACE(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.RBRACE, 0)!; + } + public queryClause(): QueryClauseContext[]; + public queryClause(i: number): QueryClauseContext | null; + public queryClause(i?: number): QueryClauseContext[] | QueryClauseContext | null { + if (i === undefined) { + return this.getRuleContexts(QueryClauseContext); + } + + return this.getRuleContext(i, QueryClauseContext); + } + public override get ruleIndex(): number { + return QuixosCapabilityParser.RULE_packageQuery; + } + public override accept(visitor: QuixosCapabilityVisitor): Result | null { + if (visitor.visitPackageQuery) { + return visitor.visitPackageQuery(this); + } else { + return visitor.visitChildren(this); + } + } +} + + +export class QueryClauseContext extends antlr.ParserRuleContext { + public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { + super(parent, invokingState); + } + public FRAGMENTS(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.FRAGMENTS, 0); + } + public stringLiteral(): StringLiteralContext | null { + return this.getRuleContext(0, StringLiteralContext); + } + public SEMI(): antlr.TerminalNode { + return this.getToken(QuixosCapabilityParser.SEMI, 0)!; + } + public VIEW(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.VIEW, 0); + } + public identifier(): IdentifierContext[]; + public identifier(i: number): IdentifierContext | null; + public identifier(i?: number): IdentifierContext[] | IdentifierContext | null { + if (i === undefined) { + return this.getRuleContexts(IdentifierContext); + } + + return this.getRuleContext(i, IdentifierContext); + } + public AS(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.AS, 0); + } + public interfaceType(): InterfaceTypeContext | null { + return this.getRuleContext(0, InterfaceTypeContext); + } + public MAX(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.MAX, 0); + } + public INTEGER(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.INTEGER, 0); + } + public ALLOW(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.ALLOW, 0); + } + public DOT(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.DOT, 0); + } + public WATCH(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.WATCH, 0); + } + public POLL(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.POLL, 0); + } + public override get ruleIndex(): number { + return QuixosCapabilityParser.RULE_queryClause; + } + public override accept(visitor: QuixosCapabilityVisitor): Result | null { + if (visitor.visitQueryClause) { + return visitor.visitQueryClause(this); + } else { + return visitor.visitChildren(this); + } + } +} + + export class PackageOperationExportContext extends antlr.ParserRuleContext { public constructor(parent: antlr.ParserRuleContext | null, invokingState: number) { super(parent, invokingState); @@ -6366,6 +6835,12 @@ export class OperationBindingDeclContext extends antlr.ParserRuleContext { public SEMI(): antlr.TerminalNode { return this.getToken(QuixosCapabilityParser.SEMI, 0)!; } + public QUERY_REASON(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.QUERY_REASON, 0); + } + public stringLiteral(): StringLiteralContext | null { + return this.getRuleContext(0, StringLiteralContext); + } public override get ruleIndex(): number { return QuixosCapabilityParser.RULE_operationBindingDecl; } @@ -7051,6 +7526,36 @@ export class IdentifierContext extends antlr.ParserRuleContext { public SOURCE(): antlr.TerminalNode | null { return this.getToken(QuixosCapabilityParser.SOURCE, 0); } + public QUERY(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.QUERY, 0); + } + public ROOT(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.ROOT, 0); + } + public DOCUMENT(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.DOCUMENT, 0); + } + public FRAGMENTS(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.FRAGMENTS, 0); + } + public VIEW(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.VIEW, 0); + } + public MAX(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.MAX, 0); + } + public ALLOW(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.ALLOW, 0); + } + public POLL(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.POLL, 0); + } + public RPC(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.RPC, 0); + } + public QUERYABLE(): antlr.TerminalNode | null { + return this.getToken(QuixosCapabilityParser.QUERYABLE, 0); + } public override get ruleIndex(): number { return QuixosCapabilityParser.RULE_identifier; } diff --git a/src/capability-language/generated/QuixosCapabilityVisitor.ts b/src/capability-language/generated/QuixosCapabilityVisitor.ts index d0a54ca..a65a130 100644 --- a/src/capability-language/generated/QuixosCapabilityVisitor.ts +++ b/src/capability-language/generated/QuixosCapabilityVisitor.ts @@ -24,10 +24,13 @@ import { OperationMemberContext } from "./QuixosCapabilityParser.js"; import { ValueMemberContext } from "./QuixosCapabilityParser.js"; import { ValueMemberOperationContext } from "./QuixosCapabilityParser.js"; import { RelationshipMemberContext } from "./QuixosCapabilityParser.js"; +import { QueryReadContractContext } from "./QuixosCapabilityParser.js"; import { RelationshipOperationContext } from "./QuixosCapabilityParser.js"; import { TargetConstraintContext } from "./QuixosCapabilityParser.js"; import { PackageResourceDeclContext } from "./QuixosCapabilityParser.js"; import { PackageExportContext } from "./QuixosCapabilityParser.js"; +import { PackageQueryContext } from "./QuixosCapabilityParser.js"; +import { QueryClauseContext } from "./QuixosCapabilityParser.js"; import { PackageOperationExportContext } from "./QuixosCapabilityParser.js"; import { PackageFunctionExportContext } from "./QuixosCapabilityParser.js"; import { PackageConstructorExportContext } from "./QuixosCapabilityParser.js"; @@ -210,6 +213,12 @@ export class QuixosCapabilityVisitor extends AbstractParseTreeVisitor Result; + /** + * Visit a parse tree produced by `QuixosCapabilityParser.queryReadContract`. + * @param ctx the parse tree + * @return the visitor result + */ + visitQueryReadContract?: (ctx: QueryReadContractContext) => Result; /** * Visit a parse tree produced by `QuixosCapabilityParser.relationshipOperation`. * @param ctx the parse tree @@ -234,6 +243,18 @@ export class QuixosCapabilityVisitor extends AbstractParseTreeVisitor Result; + /** + * Visit a parse tree produced by `QuixosCapabilityParser.packageQuery`. + * @param ctx the parse tree + * @return the visitor result + */ + visitPackageQuery?: (ctx: PackageQueryContext) => Result; + /** + * Visit a parse tree produced by `QuixosCapabilityParser.queryClause`. + * @param ctx the parse tree + * @return the visitor result + */ + visitQueryClause?: (ctx: QueryClauseContext) => Result; /** * Visit a parse tree produced by `QuixosCapabilityParser.packageOperationExport`. * @param ctx the parse tree diff --git a/src/capability-language/parser.ts b/src/capability-language/parser.ts index 4a83b3a..6390482 100644 --- a/src/capability-language/parser.ts +++ b/src/capability-language/parser.ts @@ -46,6 +46,7 @@ import { specializePackageExport, } from "../capability-model/index.js"; import { GenericSourceTypes } from "./generic-types.js"; +import { defaultQueryBudgets, type QueryDeclaration, type QueryBudgets, type QueryUse } from "../query/types.js"; import { QuixosCapabilityLexer } from "./generated/QuixosCapabilityLexer.js"; import { QuixosCapabilityParser, @@ -463,6 +464,13 @@ const lowerValueMember = (state: LoweringState, context: ValueMemberContext): In } return { kind: "value", + ...(context.queryReadContract() + ? { + queryRead: { + execution: context.queryReadContract()!.RPC() ? ("rpc-permitted" as const) : ("native" as const), + }, + } + : {}), id: capabilityId.member(stringValue(context.stringLiteral())), displayName: memberName, valueType: memberValueType, @@ -527,6 +535,13 @@ const lowerRelationshipMember = ( } return { kind: "relationship", + ...(context.queryReadContract() + ? { + queryRead: { + execution: context.queryReadContract()!.RPC() ? ("rpc-permitted" as const) : ("native" as const), + }, + } + : {}), id: capabilityId.member(stringValue(context.stringLiteral())), displayName: identifier(context.identifier()), target, @@ -672,6 +687,13 @@ const lowerInterfaceTemplate = ( const type = types.expression(value.valueType()); return { kind: "value", + ...(value.queryReadContract() + ? { + queryRead: { + execution: value.queryReadContract()!.RPC() ? ("rpc-permitted" as const) : ("native" as const), + }, + } + : {}), id: capabilityId.member(stringValue(value.stringLiteral())), displayName: identifier(value.identifier()), valueType: type, @@ -725,6 +747,13 @@ const lowerInterfaceTemplate = ( : { kind: cardinality === "optional-one" ? "optional" : "list", value: targetType }; return { kind: "relationship", + ...(relationship.queryReadContract() + ? { + queryRead: { + execution: relationship.queryReadContract()!.RPC() ? ("rpc-permitted" as const) : ("native" as const), + }, + } + : {}), id: capabilityId.member(stringValue(relationship.stringLiteral())), displayName: identifier(relationship.identifier()), target, @@ -1130,7 +1159,91 @@ const lowerPackage = ( ): PackageRevision => { const alias = identifier(context.identifier()); const genericExports: GenericPackageExport[] = []; + const queries: QueryDeclaration[] = []; const exports = context.packageExport().flatMap((exportContext): PackageExport[] => { + const query = exportContext.packageQuery(); + if (query) { + const close = (ctx: import("./generated/QuixosCapabilityParser.js").InterfaceTypeContext) => + new TypeSubstitution(state.types.environment()).application(state.types.interface(ctx)); + const declaration: QueryDeclaration = { + id: stringValue(query.stringLiteral(0)), + displayName: identifier(query.identifier()), + root: close(query.interfaceType()), + document: stringValue(query.stringLiteral(1)), + operation: stringValue(query.stringLiteral(2)), + fragments: [], + views: [], + allowances: [], + budgets: { ...defaultQueryBudgets }, + watch: false, + }; + const budgetNames: Record = { + rows: "rows", + depth: "depth", + "result-bytes": "resultBytes", + candidates: "candidates", + "rpc-calls": "rpcCalls", + concurrency: "concurrency", + "deadline-ms": "deadlineMs", + }; + const assigned = new Set(); + for (const clause of query.queryClause()) { + if (clause.FRAGMENTS()) declaration.fragments.push(stringValue(clause.stringLiteral()!)); + else if (clause.VIEW()) { + const name = identifier(clause.identifier(0)); + const atomId = requireSymbol(state, state.atoms, name, clause, "atom"); + if (atomId) declaration.views.push({ atomId, interfaceRevisionId: close(clause.interfaceType()!) }); + } else if (clause.MAX()) { + const name = identifier(clause.identifier(0)); + const key = budgetNames[name], + n = Number(clause.INTEGER()!.getText()); + if (!key || assigned.has(name) || !Number.isSafeInteger(n) || n < 1 || n > defaultQueryBudgets[key]) + loweringIssue( + state, + clause, + "invalid-query-budget", + `Invalid, duplicate, or excessive query budget ${name}`, + ); + else { + declaration.budgets[key] = n; + assigned.add(name); + } + } else if (clause.ALLOW()) { + const interfaceRevisionId = close(clause.interfaceType()!); + const contract = [...state.types.interfaces.values(), ...state.types.applications.values()].find( + (entry) => entry.revisionId === interfaceRevisionId, + ); + const member = contract?.members.find((entry) => entry.displayName === identifier(clause.identifier(0))); + const use = identifier(clause.identifier(1)); + const reason = stringValue(clause.stringLiteral()!); + if (!member || !["select", "predicate", "order"].includes(use) || !reason.trim()) + loweringIssue( + state, + clause, + "invalid-query-allowance", + "Query allowances name an exact member, use (select/predicate/order), and nonempty reason", + ); + else + declaration.allowances.push({ interfaceRevisionId, memberId: member.id, uses: [use as QueryUse], reason }); + } else if (clause.WATCH()) declaration.watch = true; + else if (clause.POLL()) { + const intervalMs = Number(clause.INTEGER()!.getText()), + reason = stringValue(clause.stringLiteral()!); + if (declaration.polling || !Number.isSafeInteger(intervalMs) || intervalMs < 1000 || !reason.trim()) + loweringIssue( + state, + clause, + "invalid-query-polling", + "Polling needs one interval of at least 1000ms and a reason", + ); + else declaration.polling = { intervalMs, reason }; + } + } + if (queries.some((entry) => entry.id === declaration.id || entry.displayName === declaration.displayName)) + loweringIssue(state, query, "duplicate-query", "Duplicate query name or ID"); + queries.push(declaration); + return []; + } const operation = exportContext.packageOperationExport(); const generic = operation ?? exportContext.packageFunctionExport(); if (generic?.typeParameters()) { @@ -1162,6 +1275,7 @@ const lowerPackage = ( displayName: alias, source, exports, + ...(queries.length ? { queries } : {}), ...(genericExports.length ? { genericExports } : {}), }; }; @@ -1568,6 +1682,7 @@ const lowerConformance = ( ? [ { operationId, + ...(bindingContext.stringLiteral() ? { queryReason: stringValue(bindingContext.stringLiteral()!) } : {}), binding: { kind: "package" as const, packageRevisionId: packageSymbol.revisionId, diff --git a/src/capability-language/source-loader.ts b/src/capability-language/source-loader.ts index 7ca00b1..89d63e5 100644 --- a/src/capability-language/source-loader.ts +++ b/src/capability-language/source-loader.ts @@ -4,13 +4,20 @@ import { parseQx, validateQxImportPath, walkSyntax } from "./source.js"; export const readQxSource = async (root: string, name: string) => { validateQxImportPath(name); + return readRepositorySource(root, name); +}; + +/** Refuse symlinks at every component, including the final source file. */ +export const readRepositorySource = async (root: string, name: string) => { + if (!/^(?:[A-Za-z0-9_-][A-Za-z0-9_.-]*\/)*[A-Za-z0-9_-][A-Za-z0-9_.-]*$/.test(name)) + throw new Error(`Invalid repository-relative source path: ${name}`); let current = path.resolve(root); const segments = name.split("/"); for (const [index, segment] of segments.entries()) { current = path.join(current, segment); const stat = await lstat(current); if (stat.isSymbolicLink() || (index === segments.length - 1 ? !stat.isFile() : !stat.isDirectory())) - throw new Error(`QX imports must be ordinary files beneath ordinary directories: ${name}`); + throw new Error(`Sources must be ordinary files beneath ordinary directories: ${name}`); } return readFile(current, "utf8"); }; diff --git a/src/capability-model/generics.ts b/src/capability-model/generics.ts index 3b592aa..bc2ba0f 100644 --- a/src/capability-model/generics.ts +++ b/src/capability-model/generics.ts @@ -87,11 +87,17 @@ export const instantiateInterface = ( const common = { id: member.id, displayName: member.displayName, operations: member.operations.map(operation) }; switch (member.kind) { case "value": - return { ...common, kind: "value", valueType: substitution.value(member.valueType, member.displayName) }; + return { + ...common, + kind: "value", + ...(member.queryRead ? { queryRead: { ...member.queryRead } } : {}), + valueType: substitution.value(member.valueType, member.displayName), + }; case "relationship": return { ...common, kind: "relationship", + ...(member.queryRead ? { queryRead: { ...member.queryRead } } : {}), target: substitution.object(member.target, member.displayName), cardinality: member.cardinality, ordered: member.ordered, diff --git a/src/capability-model/types.ts b/src/capability-model/types.ts index 00602f6..ff6c6f1 100644 --- a/src/capability-model/types.ts +++ b/src/capability-model/types.ts @@ -116,6 +116,8 @@ export interface InterfaceOperation { eventType?: Type; } +export type QueryReadContract = { execution: "native" | "rpc-permitted" }; + interface InterfaceMemberBase { id: MemberId; displayName: string; @@ -124,6 +126,7 @@ interface InterfaceMemberBase { export interface ValueInterfaceMember extends InterfaceMemberBase { kind: "value"; + queryRead?: QueryReadContract; valueType: Type; } @@ -141,6 +144,7 @@ export interface RelationshipInterfaceMember< Target = EdgeEndpointConstraint, > extends InterfaceMemberBase { kind: "relationship"; + queryRead?: QueryReadContract; target: Target; cardinality: EdgeCardinality; ordered: boolean; @@ -270,6 +274,8 @@ export interface PackageConstructorExport extends PackageExportBase { export type PackageExport = PackageOperationExport | PackageFunctionExport | PackageConstructorExport; export interface PackageRevision { + queries?: import("../query/types.js").QueryDeclaration[]; + checkedQueries?: import("../query/types.js").CheckedQuery[]; genericExports?: import("./generic-packages.js").GenericPackageExport[]; argumentRequirements?: { target: ObjectExpectation; required: InterfaceRevisionId }[]; migrationCatalog?: import("./migrations.js").MigrationCatalog; @@ -342,6 +348,8 @@ export type Binding = export interface OperationBinding { operationId: OperationId; binding: Binding; + /** Required for package-backed reads of an RPC-permitted queryable field. */ + queryReason?: string; } export interface Conformance { @@ -363,6 +371,7 @@ export interface AtomConstructorBinding { } export interface WorkspaceRevision { + linkedQueries?: import("../query/link.js").LinkedQuery[]; id: WorkspaceRevisionId; workspaceId: WorkspaceId; parentRevisionIds: WorkspaceRevisionId[]; diff --git a/src/capability-model/validation.ts b/src/capability-model/validation.ts index bcd3e73..6377d35 100644 --- a/src/capability-model/validation.ts +++ b/src/capability-model/validation.ts @@ -40,6 +40,8 @@ import { specializePackageExport } from "./generic-packages.js"; import { isDeepStrictEqual } from "node:util"; export type CapabilityValidationIssueCode = + | "invalid-query-contract" + | "query-provider-reason-required" | "invalid-semantic-major" | "duplicate-conformance-id" | "required-value" @@ -502,6 +504,21 @@ const collectIdentityIndexes = ( const operations = new Map(); for (const [memberIndex, member] of revision.members.entries()) { const memberPath = `${path}.members[${memberIndex}]`; + if (member.kind !== "operation" && member.queryRead) { + const contract = member.queryRead.execution; + const getter = member.kind === "value" ? "get" : "resolve"; + if (contract !== "native" && contract !== "rpc-permitted") + issue(issues, "invalid-query-contract", memberPath, "Unknown query execution contract"); + if (member.operations.filter((operation) => operation.displayName === getter).length !== 1) + issue(issues, "invalid-query-contract", memberPath, `Queryable members require exactly one ${getter}`); + if (member.kind === "relationship" && contract === "rpc-permitted") + issue(issues, "invalid-query-contract", memberPath, "RPC query relationships are not supported"); + if (member.kind === "value") { + const type = member.valueType.kind === "optional" ? member.valueType.value : member.valueType; + if (type.kind !== "scalar") + issue(issues, "invalid-query-contract", memberPath, "Queryable values must be scalar or optional scalar"); + } + } requireText(issues, member.id, `${memberPath}.id`, "Member ID"); requireText(issues, member.displayName, `${memberPath}.displayName`, "Member name"); if (memberIds.has(member.id)) { @@ -1424,6 +1441,31 @@ const validateConformances = ( } const operation = operationEntry.operation; const binding = entry.binding; + const member = operationEntry.member; + if ( + member.kind !== "operation" && + member.queryRead && + operation.displayName === (member.kind === "value" ? "get" : "resolve") + ) { + const native = + member.kind === "value" + ? binding.kind === "state" && binding.primitive === "read" + : binding.kind === "edge" && binding.primitive === "resolve"; + if (!native && (member.queryRead.execution === "native" || binding.kind !== "package")) + issue( + issues, + "invalid-query-contract", + bindingPath, + "This queryable contract requires a native read binding; a justification cannot weaken it", + ); + else if (!native && !entry.queryReason?.trim()) + issue( + issues, + "query-provider-reason-required", + bindingPath, + "Package-backed query reads require a concrete query-reason justification", + ); + } if (operation.scope === "class" && (!conformance.id || operation.mode !== "call")) { issue( issues, diff --git a/src/gen/camino/schema_pb.ts b/src/gen/camino/schema_pb.ts index 3cbbaef..43f11a1 100644 --- a/src/gen/camino/schema_pb.ts +++ b/src/gen/camino/schema_pb.ts @@ -10,7 +10,7 @@ import type { Message } from "@bufbuild/protobuf"; * Describes the file camino/schema.proto. */ export const file_camino_schema: GenFile = /*@__PURE__*/ - fileDesc("ChNjYW1pbm8vc2NoZW1hLnByb3RvEgZjYW1pbm8iNwoOQXRvbURlZmluaXRpb24SDwoHYXRvbV9pZBgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkiWQoPQXRvbUNvbmZvcm1hbmNlEg8KB2F0b21faWQYASABKAkSHQoVaW50ZXJmYWNlX3JldmlzaW9uX2lkGAIgASgJEhYKDmNvbmZvcm1hbmNlX2lkGAMgASgJIsIBCg9TdGF0ZUF0dGFjaG1lbnQSDwoHc2xvdF9pZBgBIAEoCRIYChBhdHRhY2hlZF9hdG9tX2lkGAIgASgJEhQKDGRpc3BsYXlfbmFtZRgDIAEoCRIXCg92YWx1ZV90eXBlX2pzb24YBCABKAkSGwoTc3RvcmFnZV9wb2xpY3lfanNvbhgFIAEoCRIaChJkZWZhdWx0X3ZhbHVlX2pzb24YBiABKAkSHAoUb3duZXJfY29uZm9ybWFuY2VfaWQYByABKAkiUAoSRW5kcG9pbnRDb25zdHJhaW50EhEKB2F0b21faWQYASABKAlIABIfChVpbnRlcmZhY2VfcmV2aXNpb25faWQYAiABKAlIAEIGCgRraW5kIvsBCgxFZGdlRW5kcG9pbnQSFQoNcHJvamVjdGlvbl9pZBgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSLgoKY29uc3RyYWludBgDIAEoCzIaLmNhbWluby5FbmRwb2ludENvbnN0cmFpbnQSKAoLY2FyZGluYWxpdHkYBCABKA4yEy5jYW1pbm8uQ2FyZGluYWxpdHkSDwoHb3JkZXJlZBgFIAEoCBIRCglvbl9kZWxldGUYBiABKAkSFAoMcmV0YWluX290aGVyGAcgASgIEhAKCGtleV90eXBlGAggASgJEhgKEHB1YmxpY190cmF2ZXJzYWwYCSABKAgipQEKDkVkZ2VBdHRhY2htZW50EhQKDGVkZ2VfdHlwZV9pZBgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSIwoFZmlyc3QYAyABKAsyFC5jYW1pbm8uRWRnZUVuZHBvaW50EiQKBnNlY29uZBgEIAEoCzIULmNhbWluby5FZGdlRW5kcG9pbnQSHAoUb3duZXJfY29uZm9ybWFuY2VfaWQYBSABKAki7AEKD1BlcnNpc3RlbmNlUGxhbhIUCgx3b3Jrc3BhY2VfaWQYASABKAkSHQoVd29ya3NwYWNlX3JldmlzaW9uX2lkGAIgASgJEiUKBWF0b21zGAMgAygLMhYuY2FtaW5vLkF0b21EZWZpbml0aW9uEi0KDGNvbmZvcm1hbmNlcxgEIAMoCzIXLmNhbWluby5BdG9tQ29uZm9ybWFuY2USJwoGc3RhdGVzGAUgAygLMhcuY2FtaW5vLlN0YXRlQXR0YWNobWVudBIlCgVlZGdlcxgGIAMoCzIWLmNhbWluby5FZGdlQXR0YWNobWVudCpoCgtDYXJkaW5hbGl0eRIbChdDQVJESU5BTElUWV9VTlNQRUNJRklFRBAAEhAKDE9QVElPTkFMX09ORRABEg8KC0VYQUNUTFlfT05FEAISCAoETUFOWRADEg8KC01BTllfVU5JUVVFEARiBnByb3RvMw"); + fileDesc("ChNjYW1pbm8vc2NoZW1hLnByb3RvEgZjYW1pbm8iNwoOQXRvbURlZmluaXRpb24SDwoHYXRvbV9pZBgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkiWQoPQXRvbUNvbmZvcm1hbmNlEg8KB2F0b21faWQYASABKAkSHQoVaW50ZXJmYWNlX3JldmlzaW9uX2lkGAIgASgJEhYKDmNvbmZvcm1hbmNlX2lkGAMgASgJIsIBCg9TdGF0ZUF0dGFjaG1lbnQSDwoHc2xvdF9pZBgBIAEoCRIYChBhdHRhY2hlZF9hdG9tX2lkGAIgASgJEhQKDGRpc3BsYXlfbmFtZRgDIAEoCRIXCg92YWx1ZV90eXBlX2pzb24YBCABKAkSGwoTc3RvcmFnZV9wb2xpY3lfanNvbhgFIAEoCRIaChJkZWZhdWx0X3ZhbHVlX2pzb24YBiABKAkSHAoUb3duZXJfY29uZm9ybWFuY2VfaWQYByABKAkiUAoSRW5kcG9pbnRDb25zdHJhaW50EhEKB2F0b21faWQYASABKAlIABIfChVpbnRlcmZhY2VfcmV2aXNpb25faWQYAiABKAlIAEIGCgRraW5kIvsBCgxFZGdlRW5kcG9pbnQSFQoNcHJvamVjdGlvbl9pZBgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSLgoKY29uc3RyYWludBgDIAEoCzIaLmNhbWluby5FbmRwb2ludENvbnN0cmFpbnQSKAoLY2FyZGluYWxpdHkYBCABKA4yEy5jYW1pbm8uQ2FyZGluYWxpdHkSDwoHb3JkZXJlZBgFIAEoCBIRCglvbl9kZWxldGUYBiABKAkSFAoMcmV0YWluX290aGVyGAcgASgIEhAKCGtleV90eXBlGAggASgJEhgKEHB1YmxpY190cmF2ZXJzYWwYCSABKAgipQEKDkVkZ2VBdHRhY2htZW50EhQKDGVkZ2VfdHlwZV9pZBgBIAEoCRIUCgxkaXNwbGF5X25hbWUYAiABKAkSIwoFZmlyc3QYAyABKAsyFC5jYW1pbm8uRWRnZUVuZHBvaW50EiQKBnNlY29uZBgEIAEoCzIULmNhbWluby5FZGdlRW5kcG9pbnQSHAoUb3duZXJfY29uZm9ybWFuY2VfaWQYBSABKAkilQIKD1BlcnNpc3RlbmNlUGxhbhIUCgx3b3Jrc3BhY2VfaWQYASABKAkSHQoVd29ya3NwYWNlX3JldmlzaW9uX2lkGAIgASgJEiUKBWF0b21zGAMgAygLMhYuY2FtaW5vLkF0b21EZWZpbml0aW9uEi0KDGNvbmZvcm1hbmNlcxgEIAMoCzIXLmNhbWluby5BdG9tQ29uZm9ybWFuY2USJwoGc3RhdGVzGAUgAygLMhcuY2FtaW5vLlN0YXRlQXR0YWNobWVudBIlCgVlZGdlcxgGIAMoCzIWLmNhbWluby5FZGdlQXR0YWNobWVudBInCgdxdWVyaWVzGAcgAygLMhYuY2FtaW5vLkluc3RhbGxlZFF1ZXJ5Ip4BCg1RdWVyeUFyZ3VtZW50EhIKCHZhcmlhYmxlGAEgASgJSAASFgoMbGl0ZXJhbF9qc29uGAIgASgJSAASKQoEbGlzdBgDIAEoCzIZLmNhbWluby5RdWVyeUFyZ3VtZW50TGlzdEgAEi0KBm9iamVjdBgEIAEoCzIbLmNhbWluby5RdWVyeUFyZ3VtZW50T2JqZWN0SABCBwoFdmFsdWUiOgoRUXVlcnlBcmd1bWVudExpc3QSJQoGdmFsdWVzGAEgAygLMhUuY2FtaW5vLlF1ZXJ5QXJndW1lbnQilAEKE1F1ZXJ5QXJndW1lbnRPYmplY3QSNwoGZmllbGRzGAEgAygLMicuY2FtaW5vLlF1ZXJ5QXJndW1lbnRPYmplY3QuRmllbGRzRW50cnkaRAoLRmllbGRzRW50cnkSCwoDa2V5GAEgASgJEiQKBXZhbHVlGAIgASgLMhUuY2FtaW5vLlF1ZXJ5QXJndW1lbnQ6AjgBIkcKDlF1ZXJ5Q29uZGl0aW9uEg8KB2luY2x1ZGUYASABKAgSJAoFdmFsdWUYAiABKAsyFS5jYW1pbm8uUXVlcnlBcmd1bWVudCLdAgoOUXVlcnlTZWxlY3Rpb24SDAoEbmFtZRgBIAEoCRILCgNrZXkYAiABKAkSHQoVaW50ZXJmYWNlX3JldmlzaW9uX2lkGAMgASgJEhEKCW1lbWJlcl9pZBgEIAEoCRIkChx0YXJnZXRfaW50ZXJmYWNlX3JldmlzaW9uX2lkGAUgASgJEioKCmNvbmRpdGlvbnMYBiADKAsyFi5jYW1pbm8uUXVlcnlDb25kaXRpb24SOAoJYXJndW1lbnRzGAcgAygLMiUuY2FtaW5vLlF1ZXJ5U2VsZWN0aW9uLkFyZ3VtZW50c0VudHJ5EikKCXNlbGVjdGlvbhgIIAMoCzIWLmNhbWluby5RdWVyeVNlbGVjdGlvbhpHCg5Bcmd1bWVudHNFbnRyeRILCgNrZXkYASABKAkSJAoFdmFsdWUYAiABKAsyFS5jYW1pbm8uUXVlcnlBcmd1bWVudDoCOAEi1wIKEFF1ZXJ5UmVhZEJpbmRpbmcSDwoHYXRvbV9pZBgBIAEoCRIdChVpbnRlcmZhY2VfcmV2aXNpb25faWQYAiABKAkSEQoJbWVtYmVyX2lkGAMgASgJEhsKE2dldHRlcl9vcGVyYXRpb25faWQYBCABKAkSDwoHc2xvdF9pZBgFIAEoCRIUCgxlZGdlX3R5cGVfaWQYBiABKAkSFQoNcHJvamVjdGlvbl9pZBgHIAEoCRILCgNycGMYCCABKAgSIAoYd2F0Y2hfc3RhcnRfb3BlcmF0aW9uX2lkGAkgASgJEh8KF3dhdGNoX3N0b3Bfb3BlcmF0aW9uX2lkGAogASgJEhIKCmZpZWxkX25hbWUYCyABKAkSFwoPdmFsdWVfdHlwZV9qc29uGAwgASgJEigKC2NhcmRpbmFsaXR5GA0gASgOMhMuY2FtaW5vLkNhcmRpbmFsaXR5IpIBCgxRdWVyeUJ1ZGdldHMSDAoEcm93cxgBIAEoDRINCgVkZXB0aBgCIAEoDRIUCgxyZXN1bHRfYnl0ZXMYAyABKA0SEgoKY2FuZGlkYXRlcxgEIAEoDRIRCglycGNfY2FsbHMYBSABKA0SEwoLY29uY3VycmVuY3kYBiABKA0SEwoLZGVhZGxpbmVfbXMYByABKA0ijQQKDkluc3RhbGxlZFF1ZXJ5EgoKAmlkGAEgASgJEhkKEWRlZmluaXRpb25fZGlnZXN0GAIgASgJEhYKDmJpbmRpbmdfZGlnZXN0GAMgASgJEiIKGnJvb3RfaW50ZXJmYWNlX3JldmlzaW9uX2lkGAQgASgJEikKCXNlbGVjdGlvbhgFIAMoCzIWLmNhbWluby5RdWVyeVNlbGVjdGlvbhIqCghiaW5kaW5ncxgGIAMoCzIYLmNhbWluby5RdWVyeVJlYWRCaW5kaW5nEiUKB2J1ZGdldHMYByABKAsyFC5jYW1pbm8uUXVlcnlCdWRnZXRzEhsKE3ZhcmlhYmxlc190eXBlX2pzb24YCCABKAkSGAoQb3V0cHV0X3R5cGVfanNvbhgJIAEoCRJHChF2YXJpYWJsZV9kZWZhdWx0cxgKIAMoCzIsLmNhbWluby5JbnN0YWxsZWRRdWVyeS5WYXJpYWJsZURlZmF1bHRzRW50cnkSDQoFd2F0Y2gYCyABKAgSGwoTcG9sbGluZ19pbnRlcnZhbF9tcxgMIAEoDRIeChZycGNfcHJlZGljYXRlX29yX29yZGVyGA0gASgIGk4KFVZhcmlhYmxlRGVmYXVsdHNFbnRyeRILCgNrZXkYASABKAkSJAoFdmFsdWUYAiABKAsyFS5jYW1pbm8uUXVlcnlBcmd1bWVudDoCOAEqaAoLQ2FyZGluYWxpdHkSGwoXQ0FSRElOQUxJVFlfVU5TUEVDSUZJRUQQABIQCgxPUFRJT05BTF9PTkUQARIPCgtFWEFDVExZX09ORRACEggKBE1BTlkQAxIPCgtNQU5ZX1VOSVFVRRAEYgZwcm90bzM"); /** * @generated from message camino.AtomDefinition @@ -273,6 +273,11 @@ export type PersistencePlan = Message<"camino.PersistencePlan"> & { * @generated from field: repeated camino.EdgeAttachment edges = 6; */ edges: EdgeAttachment[]; + + /** + * @generated from field: repeated camino.InstalledQuery queries = 7; + */ + queries: InstalledQuery[]; }; /** @@ -282,6 +287,359 @@ export type PersistencePlan = Message<"camino.PersistencePlan"> & { export const PersistencePlanSchema: GenMessage = /*@__PURE__*/ messageDesc(file_camino_schema, 6); +/** + * Immutable checked query IR. Installed only with the checked persistence plan; + * query callers select its ID, never send or modify these definitions. + * + * @generated from message camino.QueryArgument + */ +export type QueryArgument = Message<"camino.QueryArgument"> & { + /** + * @generated from oneof camino.QueryArgument.value + */ + value: { + /** + * @generated from field: string variable = 1; + */ + value: string; + case: "variable"; + } | { + /** + * @generated from field: string literal_json = 2; + */ + value: string; + case: "literalJson"; + } | { + /** + * @generated from field: camino.QueryArgumentList list = 3; + */ + value: QueryArgumentList; + case: "list"; + } | { + /** + * @generated from field: camino.QueryArgumentObject object = 4; + */ + value: QueryArgumentObject; + case: "object"; + } | { case: undefined; value?: undefined }; +}; + +/** + * Describes the message camino.QueryArgument. + * Use `create(QueryArgumentSchema)` to create a new message. + */ +export const QueryArgumentSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 7); + +/** + * @generated from message camino.QueryArgumentList + */ +export type QueryArgumentList = Message<"camino.QueryArgumentList"> & { + /** + * @generated from field: repeated camino.QueryArgument values = 1; + */ + values: QueryArgument[]; +}; + +/** + * Describes the message camino.QueryArgumentList. + * Use `create(QueryArgumentListSchema)` to create a new message. + */ +export const QueryArgumentListSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 8); + +/** + * @generated from message camino.QueryArgumentObject + */ +export type QueryArgumentObject = Message<"camino.QueryArgumentObject"> & { + /** + * @generated from field: map fields = 1; + */ + fields: { [key: string]: QueryArgument }; +}; + +/** + * Describes the message camino.QueryArgumentObject. + * Use `create(QueryArgumentObjectSchema)` to create a new message. + */ +export const QueryArgumentObjectSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 9); + +/** + * @generated from message camino.QueryCondition + */ +export type QueryCondition = Message<"camino.QueryCondition"> & { + /** + * @generated from field: bool include = 1; + */ + include: boolean; + + /** + * @generated from field: camino.QueryArgument value = 2; + */ + value?: QueryArgument | undefined; +}; + +/** + * Describes the message camino.QueryCondition. + * Use `create(QueryConditionSchema)` to create a new message. + */ +export const QueryConditionSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 10); + +/** + * @generated from message camino.QuerySelection + */ +export type QuerySelection = Message<"camino.QuerySelection"> & { + /** + * @generated from field: string name = 1; + */ + name: string; + + /** + * @generated from field: string key = 2; + */ + key: string; + + /** + * @generated from field: string interface_revision_id = 3; + */ + interfaceRevisionId: string; + + /** + * @generated from field: string member_id = 4; + */ + memberId: string; + + /** + * @generated from field: string target_interface_revision_id = 5; + */ + targetInterfaceRevisionId: string; + + /** + * @generated from field: repeated camino.QueryCondition conditions = 6; + */ + conditions: QueryCondition[]; + + /** + * @generated from field: map arguments = 7; + */ + arguments: { [key: string]: QueryArgument }; + + /** + * @generated from field: repeated camino.QuerySelection selection = 8; + */ + selection: QuerySelection[]; +}; + +/** + * Describes the message camino.QuerySelection. + * Use `create(QuerySelectionSchema)` to create a new message. + */ +export const QuerySelectionSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 11); + +/** + * @generated from message camino.QueryReadBinding + */ +export type QueryReadBinding = Message<"camino.QueryReadBinding"> & { + /** + * @generated from field: string atom_id = 1; + */ + atomId: string; + + /** + * @generated from field: string interface_revision_id = 2; + */ + interfaceRevisionId: string; + + /** + * @generated from field: string member_id = 3; + */ + memberId: string; + + /** + * @generated from field: string getter_operation_id = 4; + */ + getterOperationId: string; + + /** + * @generated from field: string slot_id = 5; + */ + slotId: string; + + /** + * @generated from field: string edge_type_id = 6; + */ + edgeTypeId: string; + + /** + * @generated from field: string projection_id = 7; + */ + projectionId: string; + + /** + * @generated from field: bool rpc = 8; + */ + rpc: boolean; + + /** + * @generated from field: string watch_start_operation_id = 9; + */ + watchStartOperationId: string; + + /** + * @generated from field: string watch_stop_operation_id = 10; + */ + watchStopOperationId: string; + + /** + * @generated from field: string field_name = 11; + */ + fieldName: string; + + /** + * @generated from field: string value_type_json = 12; + */ + valueTypeJson: string; + + /** + * @generated from field: camino.Cardinality cardinality = 13; + */ + cardinality: Cardinality; +}; + +/** + * Describes the message camino.QueryReadBinding. + * Use `create(QueryReadBindingSchema)` to create a new message. + */ +export const QueryReadBindingSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 12); + +/** + * @generated from message camino.QueryBudgets + */ +export type QueryBudgets = Message<"camino.QueryBudgets"> & { + /** + * @generated from field: uint32 rows = 1; + */ + rows: number; + + /** + * @generated from field: uint32 depth = 2; + */ + depth: number; + + /** + * @generated from field: uint32 result_bytes = 3; + */ + resultBytes: number; + + /** + * @generated from field: uint32 candidates = 4; + */ + candidates: number; + + /** + * @generated from field: uint32 rpc_calls = 5; + */ + rpcCalls: number; + + /** + * @generated from field: uint32 concurrency = 6; + */ + concurrency: number; + + /** + * @generated from field: uint32 deadline_ms = 7; + */ + deadlineMs: number; +}; + +/** + * Describes the message camino.QueryBudgets. + * Use `create(QueryBudgetsSchema)` to create a new message. + */ +export const QueryBudgetsSchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 13); + +/** + * @generated from message camino.InstalledQuery + */ +export type InstalledQuery = Message<"camino.InstalledQuery"> & { + /** + * @generated from field: string id = 1; + */ + id: string; + + /** + * @generated from field: string definition_digest = 2; + */ + definitionDigest: string; + + /** + * @generated from field: string binding_digest = 3; + */ + bindingDigest: string; + + /** + * @generated from field: string root_interface_revision_id = 4; + */ + rootInterfaceRevisionId: string; + + /** + * @generated from field: repeated camino.QuerySelection selection = 5; + */ + selection: QuerySelection[]; + + /** + * @generated from field: repeated camino.QueryReadBinding bindings = 6; + */ + bindings: QueryReadBinding[]; + + /** + * @generated from field: camino.QueryBudgets budgets = 7; + */ + budgets?: QueryBudgets | undefined; + + /** + * @generated from field: string variables_type_json = 8; + */ + variablesTypeJson: string; + + /** + * @generated from field: string output_type_json = 9; + */ + outputTypeJson: string; + + /** + * @generated from field: map variable_defaults = 10; + */ + variableDefaults: { [key: string]: QueryArgument }; + + /** + * @generated from field: bool watch = 11; + */ + watch: boolean; + + /** + * @generated from field: uint32 polling_interval_ms = 12; + */ + pollingIntervalMs: number; + + /** + * @generated from field: bool rpc_predicate_or_order = 13; + */ + rpcPredicateOrOrder: boolean; +}; + +/** + * Describes the message camino.InstalledQuery. + * Use `create(InstalledQuerySchema)` to create a new message. + */ +export const InstalledQuerySchema: GenMessage = /*@__PURE__*/ + messageDesc(file_camino_schema, 14); + /** * @generated from enum camino.Cardinality */ diff --git a/src/query/compile.ts b/src/query/compile.ts new file mode 100644 index 0000000..fab02be --- /dev/null +++ b/src/query/compile.ts @@ -0,0 +1,381 @@ +import { + parse, + Source, + validate, + specifiedRules, + print, + printSchema, + visit, + TypeInfo, + visitWithTypeInfo, + getNamedType, + isNonNullType, + isListType, + isObjectType, + isInputObjectType, + isScalarType, + isEnumType, + typeFromAST, + type GraphQLType, + type SelectionSetNode, + type FragmentDefinitionNode, + type ValueNode, + type ASTNode, + type DocumentNode, + type DirectiveNode, +} from "graphql"; +import { createHash } from "node:crypto"; +import { readRepositorySource } from "../capability-language/source-loader.js"; +import { + valueType, + type InterfaceRevision, + type ValueType, + type InterfaceRevisionId, +} from "../capability-model/types.js"; +import { querySchema } from "./schema.js"; +import { + QueryCompileError, + type QueryDeclaration, + type CheckedQuery, + type QueryFieldEffect, + type QueryUse, + type QueryArgument, + type QuerySelection, +} from "./types.js"; + +const fail = (code: string, message: string, node?: ASTNode): never => { + const token = node?.loc?.startToken; + throw new QueryCompileError( + code, + message, + token + ? { + file: node!.loc!.source.name, + line: token.line, + column: token.column, + } + : undefined, + ); +}; +const shapeScalar = (name: string): ValueType => { + switch (name) { + case "Boolean": + return valueType.bool; + case "Int": + return valueType.int32; + case "Int64": + return valueType.int64; + case "UInt32": + return valueType.uint32; + case "UInt64": + return valueType.uint64; + case "Float": + return valueType.double; + case "Bytes": + return valueType.bytes; + default: + return valueType.string; + } +}; + +/** Only immutable repository sources call this. Runtime requests never compile documents. */ +export async function compileQuery( + declaration: QueryDeclaration, + interfaces: readonly InterfaceRevision[], + read: (name: string) => Promise, +): Promise { + const paths = [declaration.document, ...declaration.fragments]; + if (paths.length > 128 || new Set(paths).size !== paths.length) + fail("QUERY_SOURCE_LIMIT", "Query files must be distinct and bounded to 128"); + const definitions: DocumentNode["definitions"][number][] = []; + let totalBytes = 0; + for (const path of paths) { + if ( + !path.endsWith(".graphql") || + path.startsWith("/") || + path.split(/[\\/]/).some((part) => !part || part === "." || part === "..") + ) + fail("QUERY_SOURCE_PATH", `Invalid query source path ${path}`); + const text = await read(path); + totalBytes += Buffer.byteLength(text); + if (totalBytes > 262144) fail("QUERY_SOURCE_LIMIT", "Query sources exceed 256 KiB"); + const document = parse(new Source(text, path), { maxTokens: 10000 }); + definitions.push(...document.definitions); + } + const document: DocumentNode = { kind: "Document" as DocumentNode["kind"], definitions }; + const generated = querySchema(declaration, interfaces); + const operations = definitions.filter((entry) => entry.kind === "OperationDefinition"); + if ( + operations.length !== 1 || + operations[0]!.operation !== "query" || + operations[0]!.name?.value !== declaration.operation + ) + fail("QUERY_UNSUPPORTED_FEATURE", "Exactly one named query matching the declaration is required"); + visit(document, { + Field(node) { + if (node.name.value.startsWith("__")) fail("QUERY_UNSUPPORTED_FEATURE", "Introspection is not supported", node); + }, + Directive(node) { + if (!["include", "skip"].includes(node.name.value)) + fail("QUERY_UNSUPPORTED_FEATURE", `Unsupported directive ${node.name.value}`, node); + }, + InlineFragment(node) { + fail("QUERY_UNSUPPORTED_FEATURE", "Use named fragments on the exact selected type", node); + }, + }); + const errors = validate(generated.schema, document, specifiedRules, { maxErrors: 20 }); + if (errors.length) { + const error = errors[0]!; + fail("QUERY_VALIDATION", error.message, error.nodes?.[0]); + } + const effects = new Map(); + const mark = (id: InterfaceRevisionId, name: string, use: QueryUse, node: ASTNode) => { + const contract = generated.contracts.get(id)!; + const member = contract.members.find((entry) => entry.displayName === name); + if (!member || member.kind === "operation" || !member.queryRead) + return fail("QUERY_FIELD_NOT_QUERYABLE", `${contract.displayName}.${name} is not queryable`, node); + const key = `${id}\0${member.id}`; + const effect = effects.get(key) ?? { + interfaceRevisionId: id, + memberId: member.id, + uses: [], + execution: member.queryRead.execution, + }; + if (!effect.uses.includes(use)) effect.uses.push(use); + effects.set(key, effect); + if ( + effect.execution === "rpc-permitted" && + !declaration.allowances.some( + (allow) => + allow.interfaceRevisionId === id && + allow.memberId === member.id && + allow.uses.includes(use) && + allow.reason.trim(), + ) + ) + fail("QUERY_RPC_CONSUMER_REASON", `${contract.displayName}.${name} needs an allowance for ${use}`, node); + if ( + declaration.watch && + effect.execution === "rpc-permitted" && + !declaration.polling && + !member.operations.some((op) => op.displayName === "watch-start") + ) + fail( + "QUERY_WATCH_UNSUPPORTED", + `${contract.displayName}.${name} has no watch; explicitly acknowledge polling or use a one-shot query`, + node, + ); + }; + const inputEffects = (id: InterfaceRevisionId, value: ValueNode, use: "predicate" | "order") => { + if (value.kind === "Variable") { + // A dynamic filter may name any field in its declared input type. + for (const member of generated.contracts.get(id)!.members) + if (member.kind === "value" && member.queryRead) mark(id, member.displayName, use, value); + } else if (value.kind === "ListValue") value.values.forEach((child) => inputEffects(id, child, use)); + else if (value.kind === "ObjectValue") + for (const field of value.fields) { + if (use === "predicate" && ["and", "or", "not"].includes(field.name.value)) inputEffects(id, field.value, use); + else mark(id, field.name.value, use, field); + } + }; + const info = new TypeInfo(generated.schema); + let hasContinuation = false; + visit( + document, + visitWithTypeInfo(info, { + Field(node) { + const parent = info.getParentType(); + const contract = parent && generated.byName.get(parent.name); + if (!contract || node.name.value === "_qx") return; + mark(contract.revisionId, node.name.value, "select", node); + const member = contract.members.find((entry) => entry.displayName === node.name.value)!; + if (member.kind !== "relationship" || (member.cardinality !== "many" && member.cardinality !== "many-unique")) + return; + const target = generated.target(member); + for (const argument of node.arguments ?? []) { + if (argument.name.value === "where") inputEffects(target, argument.value, "predicate"); + if (argument.name.value === "orderBy") inputEffects(target, argument.value, "order"); + if (argument.name.value === "after") hasContinuation = true; + if ( + argument.name.value === "first" && + argument.value.kind !== "Variable" && + (argument.value.kind !== "IntValue" || + Number(argument.value.value) < 1 || + Number(argument.value.value) > declaration.budgets.rows) + ) + fail("QUERY_ROW_LIMIT", `first must be between 1 and ${declaration.budgets.rows}`, argument); + } + }, + FragmentSpread(node) { + const fragment = definitions.find( + (entry) => entry.kind === "FragmentDefinition" && entry.name.value === node.name.value, + ) as FragmentDefinitionNode; + if (fragment.typeCondition.name.value !== info.getParentType()?.name) + fail("QUERY_UNSUPPORTED_FEATURE", "Fragments must select the exact current type", node); + }, + }), + ); + if ( + hasContinuation && + [...effects.values()].some( + (effect) => effect.execution === "rpc-permitted" && effect.uses.some((use) => use !== "select"), + ) + ) + fail("QUERY_UNSUPPORTED_FEATURE", "RPC predicates/order support bounded first windows, not continuation"); + const fragments = new Map( + definitions + .filter((entry): entry is FragmentDefinitionNode => entry.kind === "FragmentDefinition") + .map((entry) => [entry.name.value, entry]), + ); + let expandedFields = 0; + const output = (type: GraphQLType, selections?: SelectionSetNode, depth = 0): ValueType => { + if (depth > declaration.budgets.depth * 4 + 4) fail("QUERY_DEPTH_LIMIT", "Expanded query exceeds its depth budget"); + if (isNonNullType(type)) return required(type.ofType, selections, depth); + return valueType.optional(required(type, selections, depth)); + }; + const required = (type: GraphQLType, selections?: SelectionSetNode, depth = 0): ValueType => { + if (isListType(type)) return valueType.list(output(type.ofType, selections, depth)); + if (isObjectType(type)) { + const fields: Record = {}; + const add = (set: SelectionSetNode) => { + for (const selection of set.selections) { + if (++expandedFields > 10000) fail("QUERY_WORK_LIMIT", "Expanded query exceeds 10000 fields", selection); + if (selection.kind === "FragmentSpread") { + add(fragments.get(selection.name.value)!.selectionSet); + continue; + } + if (selection.kind !== "Field") continue; + const key = selection.alias?.value ?? selection.name.value; + const field = type.getFields()[selection.name.value]!; + fields[key] = output(field.type, selection.selectionSet, depth + 1); + if (selection.name.value === "_qx") { + const contract = generated.byName.get(type.name)!; + const metadataFields: Record = {}; + for (const metadata of selection.selectionSet?.selections ?? []) { + if (metadata.kind !== "Field" || metadata.name.value !== "ref") + fail("QUERY_UNSUPPORTED_FEATURE", "Select _qx.ref directly", metadata); + else metadataFields[metadata.alias?.value ?? "ref"] = valueType.interfaceRef(contract.revisionId); + } + fields[key] = { kind: "record", fields: metadataFields }; + } + if (selection.directives?.length && fields[key]!.kind !== "optional") + fields[key] = valueType.optional(fields[key]!); + } + }; + if (selections) add(selections); + return { kind: "record", fields }; + } + return shapeScalar(getNamedType(type)!.name); + }; + const variables: Record = {}; + const inputShape = (type: GraphQLType, seen = new Set()): ValueType => { + if (isNonNullType(type)) return inputRequired(type.ofType, seen); + return valueType.optional(inputRequired(type, seen)); + }; + const inputRequired = (type: GraphQLType, seen: Set): ValueType => { + if (isListType(type)) return valueType.list(inputShape(type.ofType, seen)); + if (isInputObjectType(type)) { + // Recursive boolean filter inputs need generated recursive TS shapes; never degrade to any. + if (seen.has(type.name)) + fail( + "QUERY_UNSUPPORTED_FEATURE", + "Pass scalar variables inside fixed filter expressions instead of a whole recursive filter", + ); + return { + kind: "record", + fields: Object.fromEntries( + Object.entries(type.getFields()).map(([key, field]) => [ + key, + inputShape(field.type, new Set([...seen, type.name])), + ]), + ), + }; + } + if (isScalarType(type) || isEnumType(type)) return shapeScalar(type.name); + return fail("QUERY_VARIABLE_TYPE", "Unsupported variable type"); + }; + for (const variable of operations[0]!.variableDefinitions ?? []) + variables[variable.variable.name.value] = inputShape(typeFromAST(generated.schema, variable.type)!); + const result = required(generated.schema.getQueryType()!, operations[0]!.selectionSet); + const argument = (node: ValueNode): QueryArgument => { + switch (node.kind) { + case "Variable": + return { kind: "variable", name: node.name.value }; + case "ListValue": + return { kind: "list", values: node.values.map(argument) }; + case "ObjectValue": + return { + kind: "object", + fields: Object.fromEntries(node.fields.map((field) => [field.name.value, argument(field.value)])), + }; + case "NullValue": + return { kind: "literal", value: null }; + case "BooleanValue": + return { kind: "literal", value: node.value }; + // Int literals stay decimal until their checked field codec interprets them. + default: + return { kind: "literal", value: node.value }; + } + }; + const conditions = (directives: readonly DirectiveNode[] = []) => + directives.map((directive) => ({ + include: directive.name.value === "include", + value: argument(directive.arguments!.find((entry) => entry.name.value === "if")!.value), + })); + const selection = ( + set: SelectionSetNode, + parent: import("graphql").GraphQLObjectType, + inherited: QuerySelection["conditions"] = [], + ): QuerySelection[] => + set.selections.flatMap((node): QuerySelection[] => { + if (node.kind === "FragmentSpread") + return selection(fragments.get(node.name.value)!.selectionSet, parent, [ + ...inherited, + ...conditions(node.directives), + ]); + if (node.kind !== "Field") return []; + const contract = generated.byName.get(parent.name); + const member = contract?.members.find((entry) => entry.displayName === node.name.value); + const type = getNamedType(parent.getFields()[node.name.value]!.type); + return [ + { + name: node.name.value, + key: node.alias?.value ?? node.name.value, + ...(member && contract ? { interfaceRevisionId: contract.revisionId, memberId: member.id } : {}), + ...(member?.kind === "relationship" ? { targetInterfaceRevisionId: generated.target(member) } : {}), + conditions: [...inherited, ...conditions(node.directives)], + arguments: Object.fromEntries( + (node.arguments ?? []).map((entry) => [entry.name.value, argument(entry.value)]), + ), + selection: node.selectionSet && isObjectType(type) ? selection(node.selectionSet, type) : [], + }, + ]; + }); + const normalized = print(document), + schema = printSchema(generated.schema); + const definitionDigest = createHash("sha256") + .update(JSON.stringify({ semantics: 1, declaration, normalized, interfaces })) + .digest("hex"); + return { + declaration, + definitionDigest, + document: normalized, + schema, + variables: { kind: "record", fields: variables }, + output: result, + effects: [...effects.values()], + selection: selection(operations[0]!.selectionSet, generated.schema.getQueryType()!), + variableDefaults: Object.fromEntries( + (operations[0]!.variableDefinitions ?? []) + .filter((entry) => entry.defaultValue) + .map((entry) => [entry.variable.name.value, argument(entry.defaultValue!)]), + ), + sourceFiles: paths, + }; +} + +export const compileRepositoryQuery = ( + root: string, + declaration: QueryDeclaration, + interfaces: readonly InterfaceRevision[], +) => compileQuery(declaration, interfaces, (name) => readRepositorySource(root, name)); diff --git a/src/query/link.ts b/src/query/link.ts new file mode 100644 index 0000000..f5ad886 --- /dev/null +++ b/src/query/link.ts @@ -0,0 +1,144 @@ +import { createHash } from "node:crypto"; +import type { + WorkspaceRevision, + Binding, + AtomId, + InterfaceRevisionId, + MemberId, + PersistentAttachment, +} from "../capability-model/types.js"; +import { QueryCompileError, type CheckedQuery } from "./types.js"; +import { queryRuntimePlan } from "./proto.js"; + +export interface LinkedQueryField { + atomId: AtomId; + interfaceRevisionId: InterfaceRevisionId; + memberId: MemberId; + getter: string; + binding: Binding; + watch?: { start: string; stop: string; binding: Binding }; +} +export interface LinkedQuery { + runtime?: import("@bufbuild/protobuf").JsonValue; + id: string; + packageRevisionId: string; + checked: CheckedQuery; + bindingDigest: string; + fields: LinkedQueryField[]; + attachments: PersistentAttachment[]; +} + +/** Link every possible implementation, including atoms absent from today's data. */ +export function linkQueries(workspace: WorkspaceRevision): LinkedQuery[] { + const interfaces = new Map(workspace.interfaceImports.map((entry) => [entry.revisionId, entry])); + const attachments = [ + ...workspace.sharedAttachments, + ...workspace.conformances.flatMap((entry) => entry.privateAttachments), + ]; + const linked: LinkedQuery[] = []; + for (const pkg of workspace.packageImports) + for (const declaration of pkg.queries ?? []) { + const checked = pkg.checkedQueries?.find((query) => query.declaration.id === declaration.id); + if (!checked || JSON.stringify(checked.declaration) !== JSON.stringify(declaration)) + throw new QueryCompileError( + "QUERY_ARTIFACT_MISSING", + `${pkg.displayName}.${declaration.displayName} has no checked source artifact`, + ); + const fields: LinkedQueryField[] = []; + const needed = new Set(); + for (const view of declaration.views) + if ( + !workspace.conformances.some( + (entry) => entry.atomId === view.atomId && entry.interfaceRevisionId === view.interfaceRevisionId, + ) + ) + throw new QueryCompileError( + "QUERY_VIEW_REQUIRED", + `${view.atomId} does not conform to declared query view ${view.interfaceRevisionId}`, + ); + for (const effect of checked.effects) { + const contract = interfaces.get(effect.interfaceRevisionId); + const member = contract?.members.find((entry) => entry.id === effect.memberId); + if (!member || member.kind === "operation" || member.queryRead?.execution !== effect.execution) + throw new QueryCompileError( + "QUERY_STALE_CONTRACT", + `Query field ${effect.interfaceRevisionId}.${effect.memberId} changed`, + ); + const getter = member.operations.find((op) => op.displayName === (member.kind === "value" ? "get" : "resolve")); + if (!getter) throw new QueryCompileError("QUERY_CONTRACT", `Missing getter ${effect.memberId}`); + for (const conformance of workspace.conformances.filter( + (entry) => entry.interfaceRevisionId === effect.interfaceRevisionId, + )) { + const provider = conformance.operationBindings.find((entry) => entry.operationId === getter.id); + if (!provider) + throw new QueryCompileError("QUERY_CONTRACT", `Missing binding ${conformance.atomId}.${getter.id}`); + const binding = provider.binding; + if (binding.kind === "package") { + if (effect.execution !== "rpc-permitted") + throw new QueryCompileError( + "QUERY_NATIVE_BINDING_REQUIRED", + `Native query field ${effect.memberId} binds package code`, + ); + if (!provider.queryReason?.trim()) + throw new QueryCompileError( + "QUERY_RPC_PROVIDER_REASON", + `Package query field ${effect.memberId} needs query-reason`, + ); + } else if (binding.kind === "state" && binding.primitive === "read") needed.add(binding.slotId); + else if (binding.kind === "edge" && binding.primitive === "resolve") needed.add(binding.edgeTypeId); + else + throw new QueryCompileError( + "QUERY_NATIVE_BINDING_REQUIRED", + `Unsupported query read binding ${effect.memberId}`, + ); + const start = member.operations.find((op) => op.displayName === "watch-start"); + const stop = member.operations.find((op) => op.displayName === "watch-stop"); + const watch = start && stop && conformance.operationBindings.find((entry) => entry.operationId === start.id); + if ( + binding.kind === "state" && + watch && + (watch.binding.kind !== "state" || + watch.binding.slotId !== binding.slotId || + watch.binding.primitive !== "watch-start") + ) + throw new QueryCompileError( + "QUERY_WATCH_CONTRACT", + `Native query field ${effect.memberId} watch disagrees with its getter`, + ); + if ( + binding.kind === "edge" && + watch && + (watch.binding.kind !== "edge" || + watch.binding.edgeTypeId !== binding.edgeTypeId || + watch.binding.projectionId !== binding.projectionId) + ) + throw new QueryCompileError( + "QUERY_WATCH_CONTRACT", + `Native query relation ${effect.memberId} watch disagrees with its resolver`, + ); + fields.push({ + atomId: conformance.atomId, + interfaceRevisionId: effect.interfaceRevisionId, + memberId: effect.memberId, + getter: getter.id, + binding, + ...(watch && start && stop ? { watch: { start: start.id, stop: stop.id, binding: watch.binding } } : {}), + }); + } + } + const storage = attachments.filter((entry) => needed.has(entry.id)); + const bindingDigest = createHash("sha256") + .update(JSON.stringify({ definition: checked.definitionDigest, fields, storage })) + .digest("hex"); + linked.push({ + id: `${pkg.revisionId}:${declaration.id}`, + packageRevisionId: pkg.revisionId, + checked, + bindingDigest, + fields, + attachments: storage, + }); + } + for (const entry of linked) entry.runtime = queryRuntimePlan(entry, workspace); + return linked; +} diff --git a/src/query/proto.ts b/src/query/proto.ts new file mode 100644 index 0000000..e6c02fb --- /dev/null +++ b/src/query/proto.ts @@ -0,0 +1,88 @@ +import { create, toJson } from "@bufbuild/protobuf"; +import { + InstalledQuerySchema, + QueryArgumentSchema, + QuerySelectionSchema, + QueryReadBindingSchema, + Cardinality, + type QueryArgument as WireArgument, +} from "../gen/camino/schema_pb.js"; +import type { LinkedQuery } from "./link.js"; +import type { QueryArgument, QuerySelection } from "./types.js"; +import type { WorkspaceRevision } from "../capability-model/types.js"; + +const argument = (entry: QueryArgument): WireArgument => { + switch (entry.kind) { + case "variable": + return create(QueryArgumentSchema, { value: { case: "variable", value: entry.name } }); + case "literal": + return create(QueryArgumentSchema, { value: { case: "literalJson", value: JSON.stringify(entry.value) } }); + case "list": + return create(QueryArgumentSchema, { value: { case: "list", value: { values: entry.values.map(argument) } } }); + case "object": + return create(QueryArgumentSchema, { + value: { + case: "object", + value: { fields: Object.fromEntries(Object.entries(entry.fields).map(([k, v]) => [k, argument(v)])) }, + }, + }); + } +}; +const selection = (entry: QuerySelection): import("../gen/camino/schema_pb.js").QuerySelection => + create(QuerySelectionSchema, { + ...entry, + conditions: entry.conditions.map((condition) => ({ include: condition.include, value: argument(condition.value) })), + arguments: Object.fromEntries(Object.entries(entry.arguments).map(([k, v]) => [k, argument(v)])), + selection: entry.selection.map(selection), + }); + +export const queryRuntimePlan = (linked: LinkedQuery, workspace: WorkspaceRevision) => + toJson( + InstalledQuerySchema, + create(InstalledQuerySchema, { + id: linked.id, + definitionDigest: linked.checked.definitionDigest, + bindingDigest: linked.bindingDigest, + rootInterfaceRevisionId: linked.checked.declaration.root, + selection: linked.checked.selection.map(selection), + budgets: linked.checked.declaration.budgets, + variablesTypeJson: JSON.stringify(linked.checked.variables), + outputTypeJson: JSON.stringify(linked.checked.output), + variableDefaults: Object.fromEntries( + Object.entries(linked.checked.variableDefaults).map(([k, v]) => [k, argument(v)]), + ), + watch: linked.checked.declaration.watch, + pollingIntervalMs: linked.checked.declaration.polling?.intervalMs, + rpcPredicateOrOrder: linked.checked.effects.some( + (effect) => effect.execution === "rpc-permitted" && effect.uses.some((use) => use !== "select"), + ), + bindings: linked.fields.map((field) => { + const member = workspace.interfaceImports + .find((entry) => entry.revisionId === field.interfaceRevisionId)! + .members.find((entry) => entry.id === field.memberId)!; + return create(QueryReadBindingSchema, { + atomId: field.atomId, + interfaceRevisionId: field.interfaceRevisionId, + memberId: field.memberId, + getterOperationId: field.getter, + fieldName: member.displayName, + valueTypeJson: member.kind === "value" ? JSON.stringify(member.valueType) : "", + cardinality: + member.kind === "relationship" + ? { + "optional-one": Cardinality.OPTIONAL_ONE, + "exactly-one": Cardinality.EXACTLY_ONE, + many: Cardinality.MANY, + "many-unique": Cardinality.MANY_UNIQUE, + }[member.cardinality] + : undefined, + slotId: field.binding.kind === "state" ? field.binding.slotId : "", + edgeTypeId: field.binding.kind === "edge" ? field.binding.edgeTypeId : "", + projectionId: field.binding.kind === "edge" ? field.binding.projectionId : "", + rpc: field.binding.kind === "package", + watchStartOperationId: field.watch?.start, + watchStopOperationId: field.watch?.stop, + }); + }), + }), + ); diff --git a/src/query/schema.ts b/src/query/schema.ts new file mode 100644 index 0000000..8c92811 --- /dev/null +++ b/src/query/schema.ts @@ -0,0 +1,243 @@ +import { + GraphQLBoolean, + GraphQLString, + GraphQLInt, + GraphQLFloat, + GraphQLScalarType, + GraphQLObjectType, + GraphQLInputObjectType, + GraphQLEnumType, + GraphQLList, + GraphQLNonNull, + GraphQLSchema, + type GraphQLOutputType, + type GraphQLInputType, + type GraphQLFieldConfigMap, + type GraphQLInputFieldConfigMap, +} from "graphql"; +import { createHash } from "node:crypto"; +import type { + InterfaceRevision, + InterfaceRevisionId, + ValueType, + RelationshipInterfaceMember, +} from "../capability-model/types.js"; +import { QueryCompileError, type QueryDeclaration } from "./types.js"; + +// Validate losslessly; callers carry decimal strings across JSON transports. +function integerParser(name: string, min: bigint, max: bigint, value: unknown): string { + if ( + typeof value !== "string" && + typeof value !== "bigint" && + !(typeof value === "number" && Number.isSafeInteger(value)) + ) + throw new Error(`${name} requires a canonical integer`); + const text = String(value); + if (!/^-?(0|[1-9][0-9]*)$/.test(text) || text === "-0") throw new Error(`${name} requires a canonical integer`); + const n = BigInt(text); + if (n < min || n > max) throw new Error(`${name} out of range`); + return text; +} +const integerScalar = (name: string, min: bigint, max: bigint) => { + const parse = (v: unknown) => integerParser(name, min, max, v); + return new GraphQLScalarType({ + name, + serialize: parse, + parseValue: parse, + parseLiteral(node) { + if (node.kind !== "IntValue" && node.kind !== "StringValue") throw new Error(`${name} requires an integer`); + return parse(node.value); + }, + }); +}; +export const queryScalars = { + bool: GraphQLBoolean, + string: GraphQLString, + int32: GraphQLInt, + int64: integerScalar("Int64", -(1n << 63n), (1n << 63n) - 1n), + uint32: integerScalar("UInt32", 0n, (1n << 32n) - 1n), + uint64: integerScalar("UInt64", 0n, (1n << 64n) - 1n), + double: GraphQLFloat, + bytes: new GraphQLScalarType({ name: "Bytes" }), +}; +export const cursorScalar = new GraphQLScalarType({ + name: "Cursor", + parseValue(value) { + if (typeof value !== "string" || value.length > 4096) throw new Error("Invalid cursor"); + return value; + }, +}); +export const referenceScalar = new GraphQLScalarType({ name: "ManagedReference" }); + +export function querySchema(declaration: QueryDeclaration, interfaces: readonly InterfaceRevision[]) { + const contracts = new Map(interfaces.map((entry) => [entry.revisionId, entry])); + const objects = new Map(); + const filters = new Map(); + const orders = new Map(); + const byName = new Map(); + const comparisons = new Map(); + const metadata = new GraphQLObjectType({ + name: "QxMetadata", + fields: { ref: { type: new GraphQLNonNull(referenceScalar) } }, + }); + const pageInfo = new GraphQLObjectType({ + name: "QxPageInfo", + fields: { + hasNextPage: { type: new GraphQLNonNull(GraphQLBoolean) }, + endCursor: { type: cursorScalar }, + }, + }); + const direction = new GraphQLEnumType({ name: "QxDirection", values: { ASC: {}, DESC: {} } }); + const contract = (id: InterfaceRevisionId) => { + const found = contracts.get(id); + if (!found || found.template) throw new QueryCompileError("QUERY_CONTRACT", `Expected closed interface ${id}`); + return found; + }; + const name = (id: InterfaceRevisionId) => { + const revision = contract(id); + const result = + revision.displayName + + (revision.application ? `_${createHash("sha256").update(id).digest("hex").slice(0, 12)}` : ""); + if (!/^[_A-Za-z][_0-9A-Za-z]*$/.test(result) || result.startsWith("__") || result.startsWith("Qx")) + throw new QueryCompileError("QUERY_SCHEMA_NAME", `Unsupported query interface name ${result}`); + const existing = byName.get(result); + if (existing && existing.revisionId !== id) + throw new QueryCompileError("QUERY_SCHEMA_NAME", `Conflicting query interface name ${result}`); + byName.set(result, revision); + return result; + }; + const target = (member: RelationshipInterfaceMember): InterfaceRevisionId => { + if (member.target.kind === "interface") return member.target.interfaceRevisionId; + const atomId = member.target.atomId; + const views = declaration.views.filter((entry) => entry.atomId === atomId); + if (views.length !== 1) + throw new QueryCompileError( + "QUERY_VIEW_REQUIRED", + `Declare exactly one interface view for ${member.target.atomId}`, + ); + return views[0]!.interfaceRevisionId; + }; + const scalar = (type: ValueType): GraphQLOutputType & GraphQLInputType => { + if (type.kind === "optional") return scalar(type.value); + if (type.kind !== "scalar") + throw new QueryCompileError("QUERY_TYPE", "Only scalar/optional scalar query fields are supported"); + return queryScalars[type.name]; + }; + const comparison = (type: ValueType) => { + const base = type.kind === "optional" ? type.value : type; + const value = scalar(base); + const key = String(value); + let result = comparisons.get(key); + if (!result) { + const fields: GraphQLInputFieldConfigMap = { eq: { type: value }, isNull: { type: GraphQLBoolean } }; + if (base.kind === "scalar" && base.name !== "bool" && base.name !== "bytes") + for (const op of ["lt", "lte", "gt", "gte"]) fields[op] = { type: value }; + result = new GraphQLInputObjectType({ name: `QxCompare${key}`, fields }); + comparisons.set(key, result); + } + return result; + }; + const filter = (id: InterfaceRevisionId): GraphQLInputObjectType => { + const existing = filters.get(id); + if (existing) return existing; + const result = new GraphQLInputObjectType({ + name: `${name(id)}Where`, + fields: () => { + const fields: GraphQLInputFieldConfigMap = { + and: { type: new GraphQLList(new GraphQLNonNull(result)) }, + or: { type: new GraphQLList(new GraphQLNonNull(result)) }, + not: { type: result }, + }; + for (const member of contract(id).members) + if (member.kind === "value" && member.queryRead) { + if (member.displayName in fields) + throw new QueryCompileError("QUERY_SCHEMA_NAME", `Reserved predicate name ${member.displayName}`); + fields[member.displayName] = { type: comparison(member.valueType) }; + } + return fields; + }, + }); + filters.set(id, result); + return result; + }; + const order = (id: InterfaceRevisionId) => { + let result = orders.get(id); + if (!result) { + const fields: GraphQLInputFieldConfigMap = {}; + for (const member of contract(id).members) { + if (member.kind !== "value" || !member.queryRead) continue; + const t = member.valueType.kind === "optional" ? member.valueType.value : member.valueType; + if (t.kind === "scalar" && t.name !== "bytes") fields[member.displayName] = { type: direction }; + } + if (Object.keys(fields).length === 0) return undefined; + result = new GraphQLInputObjectType({ name: `${name(id)}Order`, fields }); + orders.set(id, result); + } + return result; + }; + const object = (id: InterfaceRevisionId): GraphQLObjectType => { + const existing = objects.get(id); + if (existing) return existing; + const result = new GraphQLObjectType({ + name: name(id), + fields: () => { + const fields: GraphQLFieldConfigMap = { _qx: { type: new GraphQLNonNull(metadata) } }; + for (const member of contract(id).members) { + if (member.kind === "operation" || !member.queryRead) continue; + if (!/^[_A-Za-z][_0-9A-Za-z]*$/.test(member.displayName) || member.displayName.startsWith("_")) + throw new QueryCompileError("QUERY_SCHEMA_NAME", `Unsupported query field name ${member.displayName}`); + if (member.kind === "value") { + const type = scalar(member.valueType); + fields[member.displayName] = { + type: member.valueType.kind === "optional" ? type : new GraphQLNonNull(type), + }; + } else { + const targetId = target(member), + node = object(targetId); + if (member.cardinality === "exactly-one" || member.cardinality === "optional-one") + fields[member.displayName] = { + type: member.cardinality === "exactly-one" ? new GraphQLNonNull(node) : node, + }; + else { + const entry = new GraphQLObjectType({ + name: `${name(id)}_${member.displayName}_Entry`, + fields: { + key: { type: new GraphQLNonNull(GraphQLString) }, + cursor: { type: cursorScalar }, + node: { type: new GraphQLNonNull(node) }, + }, + }); + const connection = new GraphQLObjectType({ + name: `${name(id)}_${member.displayName}_Connection`, + fields: { + entries: { type: new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(entry))) }, + pageInfo: { type: new GraphQLNonNull(pageInfo) }, + }, + }); + const ordering = order(targetId); + fields[member.displayName] = { + type: new GraphQLNonNull(connection), + args: { + first: { type: new GraphQLNonNull(GraphQLInt) }, + after: { type: cursorScalar }, + where: { type: filter(targetId) }, + ...(ordering ? { orderBy: { type: new GraphQLList(new GraphQLNonNull(ordering)) } } : {}), + }, + }; + } + } + } + return fields; + }, + }); + objects.set(id, result); + return result; + }; + const schema = new GraphQLSchema({ + query: new GraphQLObjectType({ + name: "QxQuery", + fields: { root: { type: new GraphQLNonNull(object(declaration.root)) } }, + }), + }); + return { schema, byName, target, contracts }; +} diff --git a/src/query/types.ts b/src/query/types.ts new file mode 100644 index 0000000..12bc2bc --- /dev/null +++ b/src/query/types.ts @@ -0,0 +1,90 @@ +import type { AtomId, InterfaceRevisionId, MemberId, ValueType } from "../capability-model/types.js"; + +export type QueryUse = "select" | "predicate" | "order"; +export interface QueryAllowance { + interfaceRevisionId: InterfaceRevisionId; + memberId: MemberId; + uses: QueryUse[]; + reason: string; +} +export interface QueryBudgets { + rows: number; + depth: number; + resultBytes: number; + candidates: number; + rpcCalls: number; + concurrency: number; + deadlineMs: number; +} +export const defaultQueryBudgets: Readonly = Object.freeze({ + rows: 100, + depth: 8, + resultBytes: 1048576, + candidates: 100, + rpcCalls: 200, + concurrency: 8, + deadlineMs: 10000, +}); +export interface QueryDeclaration { + id: string; + displayName: string; + root: InterfaceRevisionId; + document: string; + operation: string; + fragments: string[]; + views: { atomId: AtomId; interfaceRevisionId: InterfaceRevisionId }[]; + allowances: QueryAllowance[]; + budgets: QueryBudgets; + watch: boolean; + polling?: { intervalMs: number; reason: string }; +} +export interface QueryFieldEffect { + interfaceRevisionId: InterfaceRevisionId; + memberId: MemberId; + uses: QueryUse[]; + execution: "native" | "rpc-permitted"; +} +export interface QuerySourceLocation { + file: string; + line: number; + column: number; +} +export class QueryCompileError extends Error { + constructor( + readonly code: string, + message: string, + readonly location?: QuerySourceLocation, + ) { + super(message); + this.name = "QueryCompileError"; + } +} +export interface CheckedQuery { + declaration: QueryDeclaration; + definitionDigest: string; + /** Fixed, validated document: never supplied by runtime callers. */ + document: string; + schema: string; + variables: ValueType; + output: ValueType; + effects: QueryFieldEffect[]; + selection: QuerySelection[]; + variableDefaults: Record; + sourceFiles: string[]; +} + +export type QueryArgument = + | { kind: "variable"; name: string } + | { kind: "literal"; value: string | number | boolean | null } + | { kind: "list"; values: QueryArgument[] } + | { kind: "object"; fields: Record }; +export interface QuerySelection { + name: string; + key: string; + interfaceRevisionId?: InterfaceRevisionId; + memberId?: MemberId; + targetInterfaceRevisionId?: InterfaceRevisionId; + conditions: { include: boolean; value: QueryArgument }[]; + arguments: Record; + selection: QuerySelection[]; +} diff --git a/test/query-compiler.test.ts b/test/query-compiler.test.ts new file mode 100644 index 0000000..b333962 --- /dev/null +++ b/test/query-compiler.test.ts @@ -0,0 +1,113 @@ +import assert from "node:assert/strict"; +import { test } from "node:test"; +import { compileCapabilityResourceSource } from "../src/capability-language/index.js"; +import { compileQuery } from "../src/query/compile.js"; +import { QueryCompileError } from "../src/query/types.js"; +import type { InterfaceRevision } from "../src/capability-model/types.js"; + +const source = { repository: "https://example.test/queries.git", commit: "a".repeat(40) }; +const iface = (text: string, dependencies: InterfaceRevision[] = []) => { + const compiled = compileCapabilityResourceSource(text, { + source, + environment: { + interfaces: new Map(dependencies.map((entry) => [entry.displayName, entry])), + interfaceClosure: dependencies, + }, + }); + assert.ok(compiled.ok, JSON.stringify(compiled.diagnostics)); + assert.equal(compiled.resource.kind, "interface"); + if (compiled.resource.kind !== "interface") throw new Error("interface required"); + return compiled.resource.revision; +}; +const facts = iface(`interface TaskFacts id "facts" revision "facts@1" { + queryable value title id "title" : string { get id "title:get"; } + queryable value done id "done" : bool { get id "done:get"; } + queryable value due id "due" : optional { get id "due:get"; } + queryable rpc value score id "score" : int32 { get id "score:get"; } + value hidden id "hidden" : string { get id "hidden:get"; } +}`); +const collection = iface( + `import interface TaskFacts; +interface Tasks id "tasks" revision "tasks@1" { + queryable relation items id "items" : many interface TaskFacts ordered { resolve id "items:resolve"; } +}`, + [facts], +); +function fixture(clauses = "") { + const result = compileCapabilityResourceSource( + `import interface Tasks; import interface TaskFacts; +package Queries id "queries" revision "queries@1" { + query Upcoming id "upcoming" root Tasks document "queries/upcoming.graphql" operation "Upcoming" { + fragments "queries/row.graphql"; max rows 30; ${clauses} + } +}`, + { + source, + environment: { + interfaces: new Map([ + ["Tasks", collection], + ["TaskFacts", facts], + ]), + interfaceClosure: [collection, facts], + }, + }, + ); + assert.ok(result.ok, JSON.stringify(result.diagnostics)); + assert.equal(result.resource.kind, "package"); + if (result.resource.kind !== "package") throw new Error("package required"); + assert.equal(result.resource.revision.exports.length, 0); + return result.resource.revision.queries![0]!; +} +const document = `query Upcoming($first: Int!, $before: Int64!) { + root { items(first: $first, where: {done: {eq: false}, due: {lt: $before}}, orderBy: [{due: ASC}]) { + entries { key node { _qx { ref } ...Row } } pageInfo { hasNextPage endCursor } + } } +}`; +const compile = (query = document, row = "fragment Row on TaskFacts { title due }", clauses = "") => + compileQuery(fixture(clauses), [collection, facts], async (name) => (name.endsWith("row.graphql") ? row : query)); + +test("fixed GraphQL yields exact effects, typed references and distinct query artifacts", async () => { + const checked = await compile(); + assert.deepEqual(checked.variables, { + kind: "record", + fields: { + first: { kind: "scalar", name: "int32" }, + before: { kind: "scalar", name: "int64" }, + }, + }); + assert.match(JSON.stringify(checked.output), /"kind":"object-ref"/); + assert.ok( + checked.effects.some( + (effect) => effect.memberId === "due" && effect.uses.includes("order") && effect.uses.includes("predicate"), + ), + ); + assert.equal(checked.definitionDigest, (await compile()).definitionDigest); + assert.notEqual( + checked.definitionDigest, + (await compile(document, "fragment Row on TaskFacts { title }")).definitionDigest, + ); +}); + +test("query allowlist and two-sided RPC effects fail during compilation", async () => { + const rejects = (promise: Promise, code: string) => + assert.rejects(promise, (error: unknown) => error instanceof QueryCompileError && error.code === code); + await rejects(compile(document, "fragment Row on TaskFacts { hidden }"), "QUERY_VALIDATION"); + await rejects(compile(document, "fragment Row on TaskFacts { score }"), "QUERY_RPC_CONSUMER_REASON"); + await compile( + document, + "fragment Row on TaskFacts { score }", + 'allow TaskFacts.score select "Only the visible page is enriched";', + ); + await rejects( + compile(document, "fragment Row on TaskFacts { score }", 'watch; allow TaskFacts.score select "Visible rows";'), + "QUERY_WATCH_UNSUPPORTED", + ); + await compile( + document, + "fragment Row on TaskFacts { score }", + 'watch; poll 5000 "External score has no push API"; allow TaskFacts.score select "Visible rows";', + ); + await rejects(compile(document.replace("first: $first", "first: 31")), "QUERY_VALIDATION"); + await rejects(compile(document.replace("...Row", "__typename ...Row")), "QUERY_UNSUPPORTED_FEATURE"); + await rejects(compile(document, "fragment Row on TaskFacts { ...Row }"), "QUERY_VALIDATION"); +}); diff --git a/test/query-contracts.test.ts b/test/query-contracts.test.ts new file mode 100644 index 0000000..c8f15f2 --- /dev/null +++ b/test/query-contracts.test.ts @@ -0,0 +1,41 @@ +import assert from "node:assert/strict"; +import { test } from "node:test"; +import { compileCapabilityResourceSource } from "../src/capability-language/index.js"; +import { + capabilityFixtureSource, + capabilityResourceSources, + compileCapabilityFixture, +} from "./fixtures/capability-model.js"; + +test("query contracts retain native reads and explicitly acknowledged package reads", () => { + const named = capabilityResourceSources.named.replace("value name", "queryable value name"); + const native = compileCapabilityFixture({ named }); + assert.equal(native.ok, true, JSON.stringify(native.diagnostics)); + const summary = capabilityResourceSources.summary.replace("value summary", "queryable rpc value summary"); + const missing = compileCapabilityFixture({ summary }); + assert.equal(missing.ok, false); + assert.ok(missing.diagnostics.some((issue) => issue.code === "query-provider-reason-required")); + const workspace = capabilityFixtureSource.replace( + "person to constructor Person;\n };", + 'person to constructor Person;\n } query-reason "Summary needs package execution; bounded query callers acknowledge this cost";', + ); + const allowed = compileCapabilityFixture({ named, summary, workspace }); + assert.equal(allowed.ok, true, JSON.stringify(allowed.diagnostics)); + const denied = compileCapabilityFixture({ summary: summary.replace("queryable rpc", "queryable"), workspace }); + assert.equal(denied.ok, false); + assert.ok(denied.diagnostics.some((issue) => issue.code === "invalid-query-contract")); +}); + +test("queryable fields need one authoritative getter and supported values", () => { + const compile = (member: string) => + compileCapabilityResourceSource(`interface Facts id "facts" revision "facts@1" { ${member} }`, { + source: { repository: "https://example.test/facts.git", commit: "a".repeat(40) }, + }); + assert.equal(compile('queryable value title id "title" : string { get id "title:get"; }').ok, true); + for (const member of [ + 'queryable value title id "title" : string { set id "title:set"; }', + 'queryable value title id "title" : list { get id "title:get"; }', + 'queryable value title id "title" : string { get id "title:get"; get id "other:get"; }', + ]) + assert.equal(compile(member).ok, false, member); +}); diff --git a/yarn-project.nix b/yarn-project.nix index b773583..1c9620f 100644 --- a/yarn-project.nix +++ b/yarn-project.nix @@ -174,6 +174,7 @@ cacheEntries = { "commander@npm:13.1.0" = { filename = "commander-npm-13.1.0-bdbbfaaf9d-7b8c5544bb.zip"; hash = "sha512-e4xVRLunBPvoS3yrLgQ9+FhtXBFKTFtgf4OuUGBwiUDtC1vVg4z4zidTnN4mXBy9Wc48jGsBftPuyJQ+OkFRZA=="; }; "debug@npm:4.4.3" = { filename = "debug-npm-4.4.3-0105c6123a-d79136ec6c.zip"; hash = "sha512-15E27GyD7L79D2pVk9pqnJHsTX3cS1TIg9bnHsmsy19noaXpbQCjKBlrW1yG02XpjYo6cIVqrxa057GYXmf1pg=="; }; "fast-printf@npm:1.6.10" = { filename = "fast-printf-npm-1.6.10-c05cca9b81-630cccbef8.zip"; hash = "sha512-YwzMvvg0mm7q2plYyTkenRS1vZUn3SjZ5+nylbAGxkDdyo/CRwz/VepcbJLKUwSIu62/fCT0hSrYw02RVdqddQ=="; }; +"graphql@npm:16.11.0" = { filename = "graphql-npm-16.11.0-836e6ade28-124da7860a.zip"; hash = "sha512-Ek2nhgoikums8v7Qxx/A9qm5yoZdOQ0RK91WPB9HQ1cUFQHBKJH0Fk/phDFXZHNq1n9wUhnGL3WAaB1DGoXbiA=="; }; "he@npm:1.2.0" = { filename = "he-npm-1.2.0-3b73a2ff07-a27d478bef.zip"; hash = "sha512-on1Hi+/jyBkvAGzdBjmmZ5iXnfpuISXGrFgqGaXr/sYq2D6DguYDYXDYc/RuRTan55W/i5W/fCR/TMCCXMyMFw=="; }; "luxon@npm:3.5.0" = { filename = "luxon-npm-3.5.0-92bb977f7f-335789bba9.zip"; hash = "sha512-M1eJu6lQd9uDHvmYlO2t6yMCOz6yE3obVqzQ0pAIK2kc95MUPWnjC8Bp7JXwtJ82QZ9I6VHGgBTxn/4SBF40lA=="; }; "ms@npm:2.1.3" = { filename = "ms-npm-2.1.3-81ff3cfac1-d924b57e73.zip"; hash = "sha512-2SS1fnMSs7Y60h/Fs9wK9eeNYaH8fPtUV+2vJjJr9ivlMHzIf/toYu8cKzOwIzzbXU8BxMlYzA1mCUi2Wih6SA=="; }; diff --git a/yarn.lock b/yarn.lock index 1ee94ec..fb471a2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -85,6 +85,7 @@ __metadata: "@types/node": "npm:^24" antlr-ng: "npm:^1.0.10" antlr4ng: "npm:^3.0.16" + graphql: "npm:16.11.0" typescript: "npm:^7.0.2" bin: quixos-capability-compile: dist/src/capability-language/cli.js @@ -321,6 +322,13 @@ __metadata: languageName: node linkType: hard +"graphql@npm:16.11.0": + version: 16.11.0 + resolution: "graphql@npm:16.11.0" + checksum: 10c0/124da7860a2292e9acf2fed0c71fc0f6a9b9ca865d390d112bdd563c1f474357141501c12891f4164fe984315764736ad67f705219c62f7580681d431a85db88 + languageName: node + linkType: hard + "he@npm:1.2.0": version: 1.2.0 resolution: "he@npm:1.2.0"