From 40353c3ee5efc72ba18c2f9d8c090b851dafd5b7 Mon Sep 17 00:00:00 2001 From: Tom Owers Date: Mon, 15 Jan 2024 18:15:48 +0000 Subject: [PATCH 1/9] Allow a placeholder to be used in place of a select statement in a union all --- hogql_parser/HogQLParser.cpp | 2262 +++++++-------- hogql_parser/HogQLParser.h | 53 +- hogql_parser/HogQLParser.interp | 3 +- hogql_parser/HogQLParserBaseVisitor.h | 4 + hogql_parser/HogQLParserVisitor.h | 2 + hogql_parser/parser.cpp | 15 +- posthog/hogql/grammar/HogQLParser.g4 | 4 +- posthog/hogql/grammar/HogQLParser.interp | 3 +- posthog/hogql/grammar/HogQLParser.py | 2434 +++++++++-------- posthog/hogql/grammar/HogQLParserVisitor.py | 5 + posthog/hogql/parser.py | 10 +- .../insights/stickiness_query_runner.py | 2 +- 12 files changed, 2491 insertions(+), 2306 deletions(-) diff --git a/hogql_parser/HogQLParser.cpp b/hogql_parser/HogQLParser.cpp index e31a7a0f6c353..cd3d673a32bd0 100644 --- a/hogql_parser/HogQLParser.cpp +++ b/hogql_parser/HogQLParser.cpp @@ -52,10 +52,10 @@ void hogqlparserParserInitialize() { #endif auto staticData = std::make_unique( std::vector{ - "select", "selectUnionStmt", "selectStmtWithParens", "selectStmt", - "withClause", "topClause", "fromClause", "arrayJoinClause", "windowClause", - "prewhereClause", "whereClause", "groupByClause", "havingClause", - "orderByClause", "projectionOrderByClause", "limitAndOffsetClause", + "select", "selectUnionStmt", "selectStmtWithParens", "selectStmtWithPlaceholder", + "selectStmt", "withClause", "topClause", "fromClause", "arrayJoinClause", + "windowClause", "prewhereClause", "whereClause", "groupByClause", + "havingClause", "orderByClause", "projectionOrderByClause", "limitAndOffsetClause", "offsetOnlyClause", "settingsClause", "joinExpr", "joinOp", "joinOpCross", "joinConstraintClause", "sampleClause", "orderExprList", "orderExpr", "ratioExpr", "settingExprList", "settingExpr", "windowExpr", "winPartitionByClause", @@ -127,7 +127,7 @@ void hogqlparserParserInitialize() { } ); static const int32_t serializedATNSegment[] = { - 4,1,242,978,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, + 4,1,242,984,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, @@ -135,355 +135,357 @@ void hogqlparserParserInitialize() { 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,1,0,1,0,1,0,3,0, - 128,8,0,1,0,1,0,1,1,1,1,1,1,1,1,5,1,136,8,1,10,1,12,1,139,9,1,1,2,1,2, - 1,2,1,2,1,2,3,2,146,8,2,1,3,3,3,149,8,3,1,3,1,3,3,3,153,8,3,1,3,3,3,156, - 8,3,1,3,1,3,3,3,160,8,3,1,3,3,3,163,8,3,1,3,3,3,166,8,3,1,3,3,3,169,8, - 3,1,3,3,3,172,8,3,1,3,1,3,3,3,176,8,3,1,3,1,3,3,3,180,8,3,1,3,3,3,183, - 8,3,1,3,3,3,186,8,3,1,3,3,3,189,8,3,1,3,1,3,3,3,193,8,3,1,3,3,3,196,8, - 3,1,4,1,4,1,4,1,5,1,5,1,5,1,5,3,5,205,8,5,1,6,1,6,1,6,1,7,3,7,211,8,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,8,1,8,1,8,1,8,5, - 8,230,8,8,10,8,12,8,233,9,8,1,9,1,9,1,9,1,10,1,10,1,10,1,11,1,11,1,11, - 1,11,1,11,1,11,1,11,1,11,3,11,249,8,11,1,12,1,12,1,12,1,13,1,13,1,13, - 1,13,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,3,15,266,8,15,1,15,1,15, - 1,15,1,15,3,15,272,8,15,1,15,1,15,1,15,1,15,3,15,278,8,15,1,15,1,15,1, - 15,1,15,1,15,1,15,1,15,1,15,1,15,3,15,289,8,15,3,15,291,8,15,1,16,1,16, - 1,16,1,17,1,17,1,17,1,18,1,18,1,18,3,18,302,8,18,1,18,3,18,305,8,18,1, - 18,1,18,1,18,1,18,3,18,311,8,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,319, - 8,18,1,18,1,18,1,18,1,18,5,18,325,8,18,10,18,12,18,328,9,18,1,19,3,19, - 331,8,19,1,19,1,19,1,19,3,19,336,8,19,1,19,3,19,339,8,19,1,19,3,19,342, - 8,19,1,19,1,19,3,19,346,8,19,1,19,1,19,3,19,350,8,19,1,19,3,19,353,8, - 19,3,19,355,8,19,1,19,3,19,358,8,19,1,19,1,19,3,19,362,8,19,1,19,1,19, - 3,19,366,8,19,1,19,3,19,369,8,19,3,19,371,8,19,3,19,373,8,19,1,20,1,20, - 1,20,3,20,378,8,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21,3,21, - 389,8,21,1,22,1,22,1,22,1,22,3,22,395,8,22,1,23,1,23,1,23,5,23,400,8, - 23,10,23,12,23,403,9,23,1,24,1,24,3,24,407,8,24,1,24,1,24,3,24,411,8, - 24,1,24,1,24,3,24,415,8,24,1,25,1,25,1,25,1,25,3,25,421,8,25,3,25,423, - 8,25,1,26,1,26,1,26,5,26,428,8,26,10,26,12,26,431,9,26,1,27,1,27,1,27, - 1,27,1,28,3,28,438,8,28,1,28,3,28,441,8,28,1,28,3,28,444,8,28,1,29,1, - 29,1,29,1,29,1,30,1,30,1,30,1,30,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1, - 32,1,32,3,32,463,8,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,3,33,477,8,33,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1, - 35,1,35,1,35,1,35,5,35,491,8,35,10,35,12,35,494,9,35,1,35,1,35,1,35,1, - 35,1,35,1,35,1,35,5,35,503,8,35,10,35,12,35,506,9,35,1,35,1,35,1,35,1, - 35,1,35,1,35,1,35,5,35,515,8,35,10,35,12,35,518,9,35,1,35,1,35,1,35,1, - 35,1,35,3,35,525,8,35,1,35,1,35,3,35,529,8,35,1,36,1,36,1,36,5,36,534, - 8,36,10,36,12,36,537,9,36,1,37,1,37,1,37,3,37,542,8,37,1,37,1,37,1,37, - 1,37,1,37,4,37,549,8,37,11,37,12,37,550,1,37,1,37,3,37,555,8,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,1,37,1,37,1,37,1,37, - 3,37,586,8,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,603,8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37, - 1,37,1,37,1,37,3,37,615,8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37, - 3,37,625,8,37,1,37,3,37,628,8,37,1,37,1,37,3,37,632,8,37,1,37,3,37,635, - 8,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,648, - 8,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,665,8,37,1,37,1,37,3,37,669,8,37,1,37,1,37,1,37,1,37,3, - 37,675,8,37,1,37,1,37,1,37,1,37,1,37,3,37,682,8,37,1,37,1,37,1,37,1,37, - 1,37,1,37,1,37,1,37,1,37,1,37,3,37,694,8,37,1,37,1,37,3,37,698,8,37,1, - 37,3,37,701,8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,3,37,710,8,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,724,8,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,751,8,37, - 1,37,1,37,1,37,1,37,1,37,1,37,1,37,3,37,760,8,37,5,37,762,8,37,10,37, - 12,37,765,9,37,1,38,1,38,1,38,5,38,770,8,38,10,38,12,38,773,9,38,1,39, - 1,39,3,39,777,8,39,1,40,1,40,1,40,1,40,5,40,783,8,40,10,40,12,40,786, - 9,40,1,40,1,40,1,40,1,40,1,40,5,40,793,8,40,10,40,12,40,796,9,40,3,40, - 798,8,40,1,40,1,40,1,40,1,41,1,41,1,41,5,41,806,8,41,10,41,12,41,809, - 9,41,1,41,1,41,1,41,1,41,1,41,1,41,5,41,817,8,41,10,41,12,41,820,9,41, - 1,41,1,41,3,41,824,8,41,1,41,1,41,1,41,1,41,1,41,3,41,831,8,41,1,42,1, - 42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,3,42,844,8,42,1,43,1, - 43,1,43,5,43,849,8,43,10,43,12,43,852,9,43,1,44,1,44,1,44,1,44,1,44,1, - 44,1,44,1,44,1,44,1,44,3,44,864,8,44,1,45,1,45,1,45,1,45,3,45,870,8,45, - 1,45,3,45,873,8,45,1,46,1,46,1,46,5,46,878,8,46,10,46,12,46,881,9,46, - 1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,3,47,892,8,47,1,47,1,47, - 1,47,1,47,3,47,898,8,47,5,47,900,8,47,10,47,12,47,903,9,47,1,48,1,48, - 1,48,3,48,908,8,48,1,48,1,48,1,49,1,49,1,49,3,49,915,8,49,1,49,1,49,1, - 50,1,50,1,50,5,50,922,8,50,10,50,12,50,925,9,50,1,51,1,51,1,52,1,52,1, - 52,1,52,1,52,1,52,3,52,935,8,52,3,52,937,8,52,1,53,3,53,940,8,53,1,53, - 1,53,1,53,1,53,1,53,1,53,3,53,948,8,53,1,54,1,54,1,54,3,54,953,8,54,1, - 55,1,55,1,56,1,56,1,57,1,57,1,58,1,58,3,58,963,8,58,1,59,1,59,1,59,3, - 59,968,8,59,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,0,3,36,74,94, - 62,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,0,16,2,0,32, - 32,141,141,2,0,84,84,96,96,3,0,4,4,8,8,12,12,4,0,4,4,7,8,12,12,147,147, - 2,0,96,96,140,140,2,0,4,4,8,8,2,0,11,11,42,43,2,0,62,62,93,93,2,0,133, - 133,143,143,3,0,17,17,95,95,170,170,2,0,79,79,98,98,1,0,197,198,2,0,208, - 208,228,228,8,0,37,37,76,76,108,108,110,110,132,132,145,145,185,185,190, - 190,13,0,2,24,26,36,38,75,77,81,83,107,109,109,111,112,114,115,117,130, - 133,144,146,184,186,189,191,192,4,0,36,36,62,62,77,77,91,91,1105,0,127, - 1,0,0,0,2,131,1,0,0,0,4,145,1,0,0,0,6,148,1,0,0,0,8,197,1,0,0,0,10,200, - 1,0,0,0,12,206,1,0,0,0,14,210,1,0,0,0,16,216,1,0,0,0,18,234,1,0,0,0,20, - 237,1,0,0,0,22,240,1,0,0,0,24,250,1,0,0,0,26,253,1,0,0,0,28,257,1,0,0, - 0,30,290,1,0,0,0,32,292,1,0,0,0,34,295,1,0,0,0,36,310,1,0,0,0,38,372, - 1,0,0,0,40,377,1,0,0,0,42,388,1,0,0,0,44,390,1,0,0,0,46,396,1,0,0,0,48, - 404,1,0,0,0,50,422,1,0,0,0,52,424,1,0,0,0,54,432,1,0,0,0,56,437,1,0,0, - 0,58,445,1,0,0,0,60,449,1,0,0,0,62,453,1,0,0,0,64,462,1,0,0,0,66,476, - 1,0,0,0,68,478,1,0,0,0,70,528,1,0,0,0,72,530,1,0,0,0,74,668,1,0,0,0,76, - 766,1,0,0,0,78,776,1,0,0,0,80,797,1,0,0,0,82,830,1,0,0,0,84,843,1,0,0, - 0,86,845,1,0,0,0,88,863,1,0,0,0,90,872,1,0,0,0,92,874,1,0,0,0,94,891, - 1,0,0,0,96,904,1,0,0,0,98,914,1,0,0,0,100,918,1,0,0,0,102,926,1,0,0,0, - 104,936,1,0,0,0,106,939,1,0,0,0,108,952,1,0,0,0,110,954,1,0,0,0,112,956, - 1,0,0,0,114,958,1,0,0,0,116,962,1,0,0,0,118,967,1,0,0,0,120,969,1,0,0, - 0,122,973,1,0,0,0,124,128,3,2,1,0,125,128,3,6,3,0,126,128,3,82,41,0,127, - 124,1,0,0,0,127,125,1,0,0,0,127,126,1,0,0,0,128,129,1,0,0,0,129,130,5, - 0,0,1,130,1,1,0,0,0,131,137,3,4,2,0,132,133,5,176,0,0,133,134,5,4,0,0, - 134,136,3,4,2,0,135,132,1,0,0,0,136,139,1,0,0,0,137,135,1,0,0,0,137,138, - 1,0,0,0,138,3,1,0,0,0,139,137,1,0,0,0,140,146,3,6,3,0,141,142,5,220,0, - 0,142,143,3,2,1,0,143,144,5,236,0,0,144,146,1,0,0,0,145,140,1,0,0,0,145, - 141,1,0,0,0,146,5,1,0,0,0,147,149,3,8,4,0,148,147,1,0,0,0,148,149,1,0, - 0,0,149,150,1,0,0,0,150,152,5,146,0,0,151,153,5,49,0,0,152,151,1,0,0, - 0,152,153,1,0,0,0,153,155,1,0,0,0,154,156,3,10,5,0,155,154,1,0,0,0,155, - 156,1,0,0,0,156,157,1,0,0,0,157,159,3,72,36,0,158,160,3,12,6,0,159,158, - 1,0,0,0,159,160,1,0,0,0,160,162,1,0,0,0,161,163,3,14,7,0,162,161,1,0, - 0,0,162,163,1,0,0,0,163,165,1,0,0,0,164,166,3,18,9,0,165,164,1,0,0,0, - 165,166,1,0,0,0,166,168,1,0,0,0,167,169,3,20,10,0,168,167,1,0,0,0,168, - 169,1,0,0,0,169,171,1,0,0,0,170,172,3,22,11,0,171,170,1,0,0,0,171,172, - 1,0,0,0,172,175,1,0,0,0,173,174,5,189,0,0,174,176,7,0,0,0,175,173,1,0, - 0,0,175,176,1,0,0,0,176,179,1,0,0,0,177,178,5,189,0,0,178,180,5,169,0, - 0,179,177,1,0,0,0,179,180,1,0,0,0,180,182,1,0,0,0,181,183,3,24,12,0,182, - 181,1,0,0,0,182,183,1,0,0,0,183,185,1,0,0,0,184,186,3,16,8,0,185,184, - 1,0,0,0,185,186,1,0,0,0,186,188,1,0,0,0,187,189,3,26,13,0,188,187,1,0, - 0,0,188,189,1,0,0,0,189,192,1,0,0,0,190,193,3,30,15,0,191,193,3,32,16, - 0,192,190,1,0,0,0,192,191,1,0,0,0,192,193,1,0,0,0,193,195,1,0,0,0,194, - 196,3,34,17,0,195,194,1,0,0,0,195,196,1,0,0,0,196,7,1,0,0,0,197,198,5, - 189,0,0,198,199,3,86,43,0,199,9,1,0,0,0,200,201,5,168,0,0,201,204,5,198, - 0,0,202,203,5,189,0,0,203,205,5,164,0,0,204,202,1,0,0,0,204,205,1,0,0, - 0,205,11,1,0,0,0,206,207,5,68,0,0,207,208,3,36,18,0,208,13,1,0,0,0,209, - 211,7,1,0,0,210,209,1,0,0,0,210,211,1,0,0,0,211,212,1,0,0,0,212,213,5, - 9,0,0,213,214,5,90,0,0,214,215,3,72,36,0,215,15,1,0,0,0,216,217,5,188, - 0,0,217,218,3,118,59,0,218,219,5,10,0,0,219,220,5,220,0,0,220,221,3,56, - 28,0,221,231,5,236,0,0,222,223,5,206,0,0,223,224,3,118,59,0,224,225,5, - 10,0,0,225,226,5,220,0,0,226,227,3,56,28,0,227,228,5,236,0,0,228,230, - 1,0,0,0,229,222,1,0,0,0,230,233,1,0,0,0,231,229,1,0,0,0,231,232,1,0,0, - 0,232,17,1,0,0,0,233,231,1,0,0,0,234,235,5,129,0,0,235,236,3,74,37,0, - 236,19,1,0,0,0,237,238,5,187,0,0,238,239,3,74,37,0,239,21,1,0,0,0,240, - 241,5,73,0,0,241,248,5,18,0,0,242,243,7,0,0,0,243,244,5,220,0,0,244,245, - 3,72,36,0,245,246,5,236,0,0,246,249,1,0,0,0,247,249,3,72,36,0,248,242, - 1,0,0,0,248,247,1,0,0,0,249,23,1,0,0,0,250,251,5,74,0,0,251,252,3,74, - 37,0,252,25,1,0,0,0,253,254,5,122,0,0,254,255,5,18,0,0,255,256,3,46,23, - 0,256,27,1,0,0,0,257,258,5,122,0,0,258,259,5,18,0,0,259,260,3,72,36,0, - 260,29,1,0,0,0,261,262,5,99,0,0,262,265,3,74,37,0,263,264,5,206,0,0,264, - 266,3,74,37,0,265,263,1,0,0,0,265,266,1,0,0,0,266,271,1,0,0,0,267,268, - 5,189,0,0,268,272,5,164,0,0,269,270,5,18,0,0,270,272,3,72,36,0,271,267, - 1,0,0,0,271,269,1,0,0,0,271,272,1,0,0,0,272,291,1,0,0,0,273,274,5,99, - 0,0,274,277,3,74,37,0,275,276,5,189,0,0,276,278,5,164,0,0,277,275,1,0, - 0,0,277,278,1,0,0,0,278,279,1,0,0,0,279,280,5,118,0,0,280,281,3,74,37, - 0,281,291,1,0,0,0,282,283,5,99,0,0,283,284,3,74,37,0,284,285,5,118,0, - 0,285,288,3,74,37,0,286,287,5,18,0,0,287,289,3,72,36,0,288,286,1,0,0, - 0,288,289,1,0,0,0,289,291,1,0,0,0,290,261,1,0,0,0,290,273,1,0,0,0,290, - 282,1,0,0,0,291,31,1,0,0,0,292,293,5,118,0,0,293,294,3,74,37,0,294,33, - 1,0,0,0,295,296,5,150,0,0,296,297,3,52,26,0,297,35,1,0,0,0,298,299,6, - 18,-1,0,299,301,3,94,47,0,300,302,5,61,0,0,301,300,1,0,0,0,301,302,1, - 0,0,0,302,304,1,0,0,0,303,305,3,44,22,0,304,303,1,0,0,0,304,305,1,0,0, - 0,305,311,1,0,0,0,306,307,5,220,0,0,307,308,3,36,18,0,308,309,5,236,0, - 0,309,311,1,0,0,0,310,298,1,0,0,0,310,306,1,0,0,0,311,326,1,0,0,0,312, - 313,10,3,0,0,313,314,3,40,20,0,314,315,3,36,18,4,315,325,1,0,0,0,316, - 318,10,4,0,0,317,319,3,38,19,0,318,317,1,0,0,0,318,319,1,0,0,0,319,320, - 1,0,0,0,320,321,5,90,0,0,321,322,3,36,18,0,322,323,3,42,21,0,323,325, - 1,0,0,0,324,312,1,0,0,0,324,316,1,0,0,0,325,328,1,0,0,0,326,324,1,0,0, - 0,326,327,1,0,0,0,327,37,1,0,0,0,328,326,1,0,0,0,329,331,7,2,0,0,330, - 329,1,0,0,0,330,331,1,0,0,0,331,332,1,0,0,0,332,339,5,84,0,0,333,335, - 5,84,0,0,334,336,7,2,0,0,335,334,1,0,0,0,335,336,1,0,0,0,336,339,1,0, - 0,0,337,339,7,2,0,0,338,330,1,0,0,0,338,333,1,0,0,0,338,337,1,0,0,0,339, - 373,1,0,0,0,340,342,7,3,0,0,341,340,1,0,0,0,341,342,1,0,0,0,342,343,1, - 0,0,0,343,345,7,4,0,0,344,346,5,123,0,0,345,344,1,0,0,0,345,346,1,0,0, - 0,346,355,1,0,0,0,347,349,7,4,0,0,348,350,5,123,0,0,349,348,1,0,0,0,349, - 350,1,0,0,0,350,352,1,0,0,0,351,353,7,3,0,0,352,351,1,0,0,0,352,353,1, - 0,0,0,353,355,1,0,0,0,354,341,1,0,0,0,354,347,1,0,0,0,355,373,1,0,0,0, - 356,358,7,5,0,0,357,356,1,0,0,0,357,358,1,0,0,0,358,359,1,0,0,0,359,361, - 5,69,0,0,360,362,5,123,0,0,361,360,1,0,0,0,361,362,1,0,0,0,362,371,1, - 0,0,0,363,365,5,69,0,0,364,366,5,123,0,0,365,364,1,0,0,0,365,366,1,0, - 0,0,366,368,1,0,0,0,367,369,7,5,0,0,368,367,1,0,0,0,368,369,1,0,0,0,369, - 371,1,0,0,0,370,357,1,0,0,0,370,363,1,0,0,0,371,373,1,0,0,0,372,338,1, - 0,0,0,372,354,1,0,0,0,372,370,1,0,0,0,373,39,1,0,0,0,374,375,5,31,0,0, - 375,378,5,90,0,0,376,378,5,206,0,0,377,374,1,0,0,0,377,376,1,0,0,0,378, - 41,1,0,0,0,379,380,5,119,0,0,380,389,3,72,36,0,381,382,5,179,0,0,382, - 383,5,220,0,0,383,384,3,72,36,0,384,385,5,236,0,0,385,389,1,0,0,0,386, - 387,5,179,0,0,387,389,3,72,36,0,388,379,1,0,0,0,388,381,1,0,0,0,388,386, - 1,0,0,0,389,43,1,0,0,0,390,391,5,144,0,0,391,394,3,50,25,0,392,393,5, - 118,0,0,393,395,3,50,25,0,394,392,1,0,0,0,394,395,1,0,0,0,395,45,1,0, - 0,0,396,401,3,48,24,0,397,398,5,206,0,0,398,400,3,48,24,0,399,397,1,0, - 0,0,400,403,1,0,0,0,401,399,1,0,0,0,401,402,1,0,0,0,402,47,1,0,0,0,403, - 401,1,0,0,0,404,406,3,74,37,0,405,407,7,6,0,0,406,405,1,0,0,0,406,407, - 1,0,0,0,407,410,1,0,0,0,408,409,5,117,0,0,409,411,7,7,0,0,410,408,1,0, - 0,0,410,411,1,0,0,0,411,414,1,0,0,0,412,413,5,26,0,0,413,415,5,200,0, - 0,414,412,1,0,0,0,414,415,1,0,0,0,415,49,1,0,0,0,416,423,3,122,61,0,417, - 420,3,106,53,0,418,419,5,238,0,0,419,421,3,106,53,0,420,418,1,0,0,0,420, - 421,1,0,0,0,421,423,1,0,0,0,422,416,1,0,0,0,422,417,1,0,0,0,423,51,1, - 0,0,0,424,429,3,54,27,0,425,426,5,206,0,0,426,428,3,54,27,0,427,425,1, - 0,0,0,428,431,1,0,0,0,429,427,1,0,0,0,429,430,1,0,0,0,430,53,1,0,0,0, - 431,429,1,0,0,0,432,433,3,118,59,0,433,434,5,212,0,0,434,435,3,108,54, - 0,435,55,1,0,0,0,436,438,3,58,29,0,437,436,1,0,0,0,437,438,1,0,0,0,438, - 440,1,0,0,0,439,441,3,60,30,0,440,439,1,0,0,0,440,441,1,0,0,0,441,443, - 1,0,0,0,442,444,3,62,31,0,443,442,1,0,0,0,443,444,1,0,0,0,444,57,1,0, - 0,0,445,446,5,126,0,0,446,447,5,18,0,0,447,448,3,72,36,0,448,59,1,0,0, - 0,449,450,5,122,0,0,450,451,5,18,0,0,451,452,3,46,23,0,452,61,1,0,0,0, - 453,454,7,8,0,0,454,455,3,64,32,0,455,63,1,0,0,0,456,463,3,66,33,0,457, - 458,5,16,0,0,458,459,3,66,33,0,459,460,5,6,0,0,460,461,3,66,33,0,461, - 463,1,0,0,0,462,456,1,0,0,0,462,457,1,0,0,0,463,65,1,0,0,0,464,465,5, - 33,0,0,465,477,5,142,0,0,466,467,5,175,0,0,467,477,5,128,0,0,468,469, - 5,175,0,0,469,477,5,64,0,0,470,471,3,106,53,0,471,472,5,128,0,0,472,477, - 1,0,0,0,473,474,3,106,53,0,474,475,5,64,0,0,475,477,1,0,0,0,476,464,1, - 0,0,0,476,466,1,0,0,0,476,468,1,0,0,0,476,470,1,0,0,0,476,473,1,0,0,0, - 477,67,1,0,0,0,478,479,3,74,37,0,479,480,5,0,0,1,480,69,1,0,0,0,481,529, - 3,118,59,0,482,483,3,118,59,0,483,484,5,220,0,0,484,485,3,118,59,0,485, - 492,3,70,35,0,486,487,5,206,0,0,487,488,3,118,59,0,488,489,3,70,35,0, - 489,491,1,0,0,0,490,486,1,0,0,0,491,494,1,0,0,0,492,490,1,0,0,0,492,493, - 1,0,0,0,493,495,1,0,0,0,494,492,1,0,0,0,495,496,5,236,0,0,496,529,1,0, - 0,0,497,498,3,118,59,0,498,499,5,220,0,0,499,504,3,120,60,0,500,501,5, - 206,0,0,501,503,3,120,60,0,502,500,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,236,0, - 0,508,529,1,0,0,0,509,510,3,118,59,0,510,511,5,220,0,0,511,516,3,70,35, - 0,512,513,5,206,0,0,513,515,3,70,35,0,514,512,1,0,0,0,515,518,1,0,0,0, - 516,514,1,0,0,0,516,517,1,0,0,0,517,519,1,0,0,0,518,516,1,0,0,0,519,520, - 5,236,0,0,520,529,1,0,0,0,521,522,3,118,59,0,522,524,5,220,0,0,523,525, - 3,72,36,0,524,523,1,0,0,0,524,525,1,0,0,0,525,526,1,0,0,0,526,527,5,236, - 0,0,527,529,1,0,0,0,528,481,1,0,0,0,528,482,1,0,0,0,528,497,1,0,0,0,528, - 509,1,0,0,0,528,521,1,0,0,0,529,71,1,0,0,0,530,535,3,74,37,0,531,532, - 5,206,0,0,532,534,3,74,37,0,533,531,1,0,0,0,534,537,1,0,0,0,535,533,1, - 0,0,0,535,536,1,0,0,0,536,73,1,0,0,0,537,535,1,0,0,0,538,539,6,37,-1, - 0,539,541,5,19,0,0,540,542,3,74,37,0,541,540,1,0,0,0,541,542,1,0,0,0, - 542,548,1,0,0,0,543,544,5,186,0,0,544,545,3,74,37,0,545,546,5,163,0,0, - 546,547,3,74,37,0,547,549,1,0,0,0,548,543,1,0,0,0,549,550,1,0,0,0,550, - 548,1,0,0,0,550,551,1,0,0,0,551,554,1,0,0,0,552,553,5,52,0,0,553,555, - 3,74,37,0,554,552,1,0,0,0,554,555,1,0,0,0,555,556,1,0,0,0,556,557,5,53, - 0,0,557,669,1,0,0,0,558,559,5,20,0,0,559,560,5,220,0,0,560,561,3,74,37, - 0,561,562,5,10,0,0,562,563,3,70,35,0,563,564,5,236,0,0,564,669,1,0,0, - 0,565,566,5,36,0,0,566,669,5,200,0,0,567,568,5,59,0,0,568,569,5,220,0, - 0,569,570,3,110,55,0,570,571,5,68,0,0,571,572,3,74,37,0,572,573,5,236, - 0,0,573,669,1,0,0,0,574,575,5,86,0,0,575,576,3,74,37,0,576,577,3,110, - 55,0,577,669,1,0,0,0,578,579,5,155,0,0,579,580,5,220,0,0,580,581,3,74, - 37,0,581,582,5,68,0,0,582,585,3,74,37,0,583,584,5,65,0,0,584,586,3,74, - 37,0,585,583,1,0,0,0,585,586,1,0,0,0,586,587,1,0,0,0,587,588,5,236,0, - 0,588,669,1,0,0,0,589,590,5,166,0,0,590,669,5,200,0,0,591,592,5,171,0, - 0,592,593,5,220,0,0,593,594,7,9,0,0,594,595,5,200,0,0,595,596,5,68,0, - 0,596,597,3,74,37,0,597,598,5,236,0,0,598,669,1,0,0,0,599,600,3,118,59, - 0,600,602,5,220,0,0,601,603,3,72,36,0,602,601,1,0,0,0,602,603,1,0,0,0, - 603,604,1,0,0,0,604,605,5,236,0,0,605,606,1,0,0,0,606,607,5,125,0,0,607, - 608,5,220,0,0,608,609,3,56,28,0,609,610,5,236,0,0,610,669,1,0,0,0,611, - 612,3,118,59,0,612,614,5,220,0,0,613,615,3,72,36,0,614,613,1,0,0,0,614, - 615,1,0,0,0,615,616,1,0,0,0,616,617,5,236,0,0,617,618,1,0,0,0,618,619, - 5,125,0,0,619,620,3,118,59,0,620,669,1,0,0,0,621,627,3,118,59,0,622,624, - 5,220,0,0,623,625,3,72,36,0,624,623,1,0,0,0,624,625,1,0,0,0,625,626,1, - 0,0,0,626,628,5,236,0,0,627,622,1,0,0,0,627,628,1,0,0,0,628,629,1,0,0, - 0,629,631,5,220,0,0,630,632,5,49,0,0,631,630,1,0,0,0,631,632,1,0,0,0, - 632,634,1,0,0,0,633,635,3,76,38,0,634,633,1,0,0,0,634,635,1,0,0,0,635, - 636,1,0,0,0,636,637,5,236,0,0,637,669,1,0,0,0,638,669,3,82,41,0,639,669, - 3,108,54,0,640,641,5,208,0,0,641,669,3,74,37,18,642,643,5,115,0,0,643, - 669,3,74,37,12,644,645,3,98,49,0,645,646,5,210,0,0,646,648,1,0,0,0,647, - 644,1,0,0,0,647,648,1,0,0,0,648,649,1,0,0,0,649,669,5,202,0,0,650,651, - 5,220,0,0,651,652,3,2,1,0,652,653,5,236,0,0,653,669,1,0,0,0,654,655,5, - 220,0,0,655,656,3,74,37,0,656,657,5,236,0,0,657,669,1,0,0,0,658,659,5, - 220,0,0,659,660,3,72,36,0,660,661,5,236,0,0,661,669,1,0,0,0,662,664,5, - 219,0,0,663,665,3,72,36,0,664,663,1,0,0,0,664,665,1,0,0,0,665,666,1,0, - 0,0,666,669,5,235,0,0,667,669,3,90,45,0,668,538,1,0,0,0,668,558,1,0,0, - 0,668,565,1,0,0,0,668,567,1,0,0,0,668,574,1,0,0,0,668,578,1,0,0,0,668, - 589,1,0,0,0,668,591,1,0,0,0,668,599,1,0,0,0,668,611,1,0,0,0,668,621,1, - 0,0,0,668,638,1,0,0,0,668,639,1,0,0,0,668,640,1,0,0,0,668,642,1,0,0,0, - 668,647,1,0,0,0,668,650,1,0,0,0,668,654,1,0,0,0,668,658,1,0,0,0,668,662, - 1,0,0,0,668,667,1,0,0,0,669,763,1,0,0,0,670,674,10,17,0,0,671,675,5,202, - 0,0,672,675,5,238,0,0,673,675,5,227,0,0,674,671,1,0,0,0,674,672,1,0,0, - 0,674,673,1,0,0,0,675,676,1,0,0,0,676,762,3,74,37,18,677,681,10,16,0, - 0,678,682,5,228,0,0,679,682,5,208,0,0,680,682,5,207,0,0,681,678,1,0,0, - 0,681,679,1,0,0,0,681,680,1,0,0,0,682,683,1,0,0,0,683,762,3,74,37,17, - 684,709,10,15,0,0,685,710,5,211,0,0,686,710,5,212,0,0,687,710,5,223,0, - 0,688,710,5,221,0,0,689,710,5,222,0,0,690,710,5,213,0,0,691,710,5,214, - 0,0,692,694,5,115,0,0,693,692,1,0,0,0,693,694,1,0,0,0,694,695,1,0,0,0, - 695,697,5,80,0,0,696,698,5,25,0,0,697,696,1,0,0,0,697,698,1,0,0,0,698, - 710,1,0,0,0,699,701,5,115,0,0,700,699,1,0,0,0,700,701,1,0,0,0,701,702, - 1,0,0,0,702,710,7,10,0,0,703,710,5,232,0,0,704,710,5,233,0,0,705,710, - 5,225,0,0,706,710,5,216,0,0,707,710,5,217,0,0,708,710,5,224,0,0,709,685, - 1,0,0,0,709,686,1,0,0,0,709,687,1,0,0,0,709,688,1,0,0,0,709,689,1,0,0, - 0,709,690,1,0,0,0,709,691,1,0,0,0,709,693,1,0,0,0,709,700,1,0,0,0,709, - 703,1,0,0,0,709,704,1,0,0,0,709,705,1,0,0,0,709,706,1,0,0,0,709,707,1, - 0,0,0,709,708,1,0,0,0,710,711,1,0,0,0,711,762,3,74,37,16,712,713,10,13, - 0,0,713,714,5,226,0,0,714,762,3,74,37,14,715,716,10,11,0,0,716,717,5, - 6,0,0,717,762,3,74,37,12,718,719,10,10,0,0,719,720,5,121,0,0,720,762, - 3,74,37,11,721,723,10,9,0,0,722,724,5,115,0,0,723,722,1,0,0,0,723,724, - 1,0,0,0,724,725,1,0,0,0,725,726,5,16,0,0,726,727,3,74,37,0,727,728,5, - 6,0,0,728,729,3,74,37,10,729,762,1,0,0,0,730,731,10,8,0,0,731,732,5,229, - 0,0,732,733,3,74,37,0,733,734,5,205,0,0,734,735,3,74,37,8,735,762,1,0, - 0,0,736,737,10,21,0,0,737,738,5,219,0,0,738,739,3,74,37,0,739,740,5,235, - 0,0,740,762,1,0,0,0,741,742,10,20,0,0,742,743,5,210,0,0,743,762,5,198, - 0,0,744,745,10,19,0,0,745,746,5,210,0,0,746,762,3,118,59,0,747,748,10, - 14,0,0,748,750,5,88,0,0,749,751,5,115,0,0,750,749,1,0,0,0,750,751,1,0, - 0,0,751,752,1,0,0,0,752,762,5,116,0,0,753,759,10,7,0,0,754,760,3,116, - 58,0,755,756,5,10,0,0,756,760,3,118,59,0,757,758,5,10,0,0,758,760,5,200, - 0,0,759,754,1,0,0,0,759,755,1,0,0,0,759,757,1,0,0,0,760,762,1,0,0,0,761, - 670,1,0,0,0,761,677,1,0,0,0,761,684,1,0,0,0,761,712,1,0,0,0,761,715,1, - 0,0,0,761,718,1,0,0,0,761,721,1,0,0,0,761,730,1,0,0,0,761,736,1,0,0,0, - 761,741,1,0,0,0,761,744,1,0,0,0,761,747,1,0,0,0,761,753,1,0,0,0,762,765, - 1,0,0,0,763,761,1,0,0,0,763,764,1,0,0,0,764,75,1,0,0,0,765,763,1,0,0, - 0,766,771,3,78,39,0,767,768,5,206,0,0,768,770,3,78,39,0,769,767,1,0,0, - 0,770,773,1,0,0,0,771,769,1,0,0,0,771,772,1,0,0,0,772,77,1,0,0,0,773, - 771,1,0,0,0,774,777,3,80,40,0,775,777,3,74,37,0,776,774,1,0,0,0,776,775, - 1,0,0,0,777,79,1,0,0,0,778,779,5,220,0,0,779,784,3,118,59,0,780,781,5, - 206,0,0,781,783,3,118,59,0,782,780,1,0,0,0,783,786,1,0,0,0,784,782,1, - 0,0,0,784,785,1,0,0,0,785,787,1,0,0,0,786,784,1,0,0,0,787,788,5,236,0, - 0,788,798,1,0,0,0,789,794,3,118,59,0,790,791,5,206,0,0,791,793,3,118, - 59,0,792,790,1,0,0,0,793,796,1,0,0,0,794,792,1,0,0,0,794,795,1,0,0,0, - 795,798,1,0,0,0,796,794,1,0,0,0,797,778,1,0,0,0,797,789,1,0,0,0,798,799, - 1,0,0,0,799,800,5,201,0,0,800,801,3,74,37,0,801,81,1,0,0,0,802,803,5, - 222,0,0,803,807,3,118,59,0,804,806,3,84,42,0,805,804,1,0,0,0,806,809, - 1,0,0,0,807,805,1,0,0,0,807,808,1,0,0,0,808,810,1,0,0,0,809,807,1,0,0, - 0,810,811,5,238,0,0,811,812,5,214,0,0,812,831,1,0,0,0,813,814,5,222,0, - 0,814,818,3,118,59,0,815,817,3,84,42,0,816,815,1,0,0,0,817,820,1,0,0, - 0,818,816,1,0,0,0,818,819,1,0,0,0,819,821,1,0,0,0,820,818,1,0,0,0,821, - 823,5,214,0,0,822,824,3,82,41,0,823,822,1,0,0,0,823,824,1,0,0,0,824,825, - 1,0,0,0,825,826,5,222,0,0,826,827,5,238,0,0,827,828,3,118,59,0,828,829, - 5,214,0,0,829,831,1,0,0,0,830,802,1,0,0,0,830,813,1,0,0,0,831,83,1,0, - 0,0,832,833,3,118,59,0,833,834,5,212,0,0,834,835,5,200,0,0,835,844,1, - 0,0,0,836,837,3,118,59,0,837,838,5,212,0,0,838,839,5,218,0,0,839,840, - 3,74,37,0,840,841,5,234,0,0,841,844,1,0,0,0,842,844,3,118,59,0,843,832, - 1,0,0,0,843,836,1,0,0,0,843,842,1,0,0,0,844,85,1,0,0,0,845,850,3,88,44, - 0,846,847,5,206,0,0,847,849,3,88,44,0,848,846,1,0,0,0,849,852,1,0,0,0, - 850,848,1,0,0,0,850,851,1,0,0,0,851,87,1,0,0,0,852,850,1,0,0,0,853,854, - 3,118,59,0,854,855,5,10,0,0,855,856,5,220,0,0,856,857,3,2,1,0,857,858, - 5,236,0,0,858,864,1,0,0,0,859,860,3,74,37,0,860,861,5,10,0,0,861,862, - 3,118,59,0,862,864,1,0,0,0,863,853,1,0,0,0,863,859,1,0,0,0,864,89,1,0, - 0,0,865,873,3,122,61,0,866,867,3,98,49,0,867,868,5,210,0,0,868,870,1, - 0,0,0,869,866,1,0,0,0,869,870,1,0,0,0,870,871,1,0,0,0,871,873,3,92,46, - 0,872,865,1,0,0,0,872,869,1,0,0,0,873,91,1,0,0,0,874,879,3,118,59,0,875, - 876,5,210,0,0,876,878,3,118,59,0,877,875,1,0,0,0,878,881,1,0,0,0,879, - 877,1,0,0,0,879,880,1,0,0,0,880,93,1,0,0,0,881,879,1,0,0,0,882,883,6, - 47,-1,0,883,892,3,98,49,0,884,892,3,96,48,0,885,886,5,220,0,0,886,887, - 3,2,1,0,887,888,5,236,0,0,888,892,1,0,0,0,889,892,3,82,41,0,890,892,3, - 122,61,0,891,882,1,0,0,0,891,884,1,0,0,0,891,885,1,0,0,0,891,889,1,0, - 0,0,891,890,1,0,0,0,892,901,1,0,0,0,893,897,10,3,0,0,894,898,3,116,58, - 0,895,896,5,10,0,0,896,898,3,118,59,0,897,894,1,0,0,0,897,895,1,0,0,0, - 898,900,1,0,0,0,899,893,1,0,0,0,900,903,1,0,0,0,901,899,1,0,0,0,901,902, - 1,0,0,0,902,95,1,0,0,0,903,901,1,0,0,0,904,905,3,118,59,0,905,907,5,220, - 0,0,906,908,3,100,50,0,907,906,1,0,0,0,907,908,1,0,0,0,908,909,1,0,0, - 0,909,910,5,236,0,0,910,97,1,0,0,0,911,912,3,102,51,0,912,913,5,210,0, - 0,913,915,1,0,0,0,914,911,1,0,0,0,914,915,1,0,0,0,915,916,1,0,0,0,916, - 917,3,118,59,0,917,99,1,0,0,0,918,923,3,74,37,0,919,920,5,206,0,0,920, - 922,3,74,37,0,921,919,1,0,0,0,922,925,1,0,0,0,923,921,1,0,0,0,923,924, - 1,0,0,0,924,101,1,0,0,0,925,923,1,0,0,0,926,927,3,118,59,0,927,103,1, - 0,0,0,928,937,5,196,0,0,929,930,5,210,0,0,930,937,7,11,0,0,931,932,5, - 198,0,0,932,934,5,210,0,0,933,935,7,11,0,0,934,933,1,0,0,0,934,935,1, - 0,0,0,935,937,1,0,0,0,936,928,1,0,0,0,936,929,1,0,0,0,936,931,1,0,0,0, - 937,105,1,0,0,0,938,940,7,12,0,0,939,938,1,0,0,0,939,940,1,0,0,0,940, - 947,1,0,0,0,941,948,3,104,52,0,942,948,5,197,0,0,943,948,5,198,0,0,944, - 948,5,199,0,0,945,948,5,82,0,0,946,948,5,113,0,0,947,941,1,0,0,0,947, - 942,1,0,0,0,947,943,1,0,0,0,947,944,1,0,0,0,947,945,1,0,0,0,947,946,1, - 0,0,0,948,107,1,0,0,0,949,953,3,106,53,0,950,953,5,200,0,0,951,953,5, - 116,0,0,952,949,1,0,0,0,952,950,1,0,0,0,952,951,1,0,0,0,953,109,1,0,0, - 0,954,955,7,13,0,0,955,111,1,0,0,0,956,957,7,14,0,0,957,113,1,0,0,0,958, - 959,7,15,0,0,959,115,1,0,0,0,960,963,5,195,0,0,961,963,3,114,57,0,962, - 960,1,0,0,0,962,961,1,0,0,0,963,117,1,0,0,0,964,968,5,195,0,0,965,968, - 3,110,55,0,966,968,3,112,56,0,967,964,1,0,0,0,967,965,1,0,0,0,967,966, - 1,0,0,0,968,119,1,0,0,0,969,970,5,200,0,0,970,971,5,212,0,0,971,972,3, - 106,53,0,972,121,1,0,0,0,973,974,5,218,0,0,974,975,3,118,59,0,975,976, - 5,234,0,0,976,123,1,0,0,0,120,127,137,145,148,152,155,159,162,165,168, - 171,175,179,182,185,188,192,195,204,210,231,248,265,271,277,288,290,301, - 304,310,318,324,326,330,335,338,341,345,349,352,354,357,361,365,368,370, - 372,377,388,394,401,406,410,414,420,422,429,437,440,443,462,476,492,504, - 516,524,528,535,541,550,554,585,602,614,624,627,631,634,647,664,668,674, - 681,693,697,700,709,723,750,759,761,763,771,776,784,794,797,807,818,823, - 830,843,850,863,869,872,879,891,897,901,907,914,923,934,936,939,947,952, - 962,967 + 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,1,0,1, + 0,1,0,3,0,130,8,0,1,0,1,0,1,1,1,1,1,1,1,1,5,1,138,8,1,10,1,12,1,141,9, + 1,1,2,1,2,1,2,1,2,1,2,3,2,148,8,2,1,3,1,3,3,3,152,8,3,1,4,3,4,155,8,4, + 1,4,1,4,3,4,159,8,4,1,4,3,4,162,8,4,1,4,1,4,3,4,166,8,4,1,4,3,4,169,8, + 4,1,4,3,4,172,8,4,1,4,3,4,175,8,4,1,4,3,4,178,8,4,1,4,1,4,3,4,182,8,4, + 1,4,1,4,3,4,186,8,4,1,4,3,4,189,8,4,1,4,3,4,192,8,4,1,4,3,4,195,8,4,1, + 4,1,4,3,4,199,8,4,1,4,3,4,202,8,4,1,5,1,5,1,5,1,6,1,6,1,6,1,6,3,6,211, + 8,6,1,7,1,7,1,7,1,8,3,8,217,8,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,9,1,9,1,9,5,9,236,8,9,10,9,12,9,239,9,9,1,10,1,10, + 1,10,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,255, + 8,12,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,16,1,16, + 1,16,1,16,3,16,272,8,16,1,16,1,16,1,16,1,16,3,16,278,8,16,1,16,1,16,1, + 16,1,16,3,16,284,8,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,3, + 16,295,8,16,3,16,297,8,16,1,17,1,17,1,17,1,18,1,18,1,18,1,19,1,19,1,19, + 3,19,308,8,19,1,19,3,19,311,8,19,1,19,1,19,1,19,1,19,3,19,317,8,19,1, + 19,1,19,1,19,1,19,1,19,1,19,3,19,325,8,19,1,19,1,19,1,19,1,19,5,19,331, + 8,19,10,19,12,19,334,9,19,1,20,3,20,337,8,20,1,20,1,20,1,20,3,20,342, + 8,20,1,20,3,20,345,8,20,1,20,3,20,348,8,20,1,20,1,20,3,20,352,8,20,1, + 20,1,20,3,20,356,8,20,1,20,3,20,359,8,20,3,20,361,8,20,1,20,3,20,364, + 8,20,1,20,1,20,3,20,368,8,20,1,20,1,20,3,20,372,8,20,1,20,3,20,375,8, + 20,3,20,377,8,20,3,20,379,8,20,1,21,1,21,1,21,3,21,384,8,21,1,22,1,22, + 1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,395,8,22,1,23,1,23,1,23,1,23, + 3,23,401,8,23,1,24,1,24,1,24,5,24,406,8,24,10,24,12,24,409,9,24,1,25, + 1,25,3,25,413,8,25,1,25,1,25,3,25,417,8,25,1,25,1,25,3,25,421,8,25,1, + 26,1,26,1,26,1,26,3,26,427,8,26,3,26,429,8,26,1,27,1,27,1,27,5,27,434, + 8,27,10,27,12,27,437,9,27,1,28,1,28,1,28,1,28,1,29,3,29,444,8,29,1,29, + 3,29,447,8,29,1,29,3,29,450,8,29,1,30,1,30,1,30,1,30,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,33,3,33,469,8,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,3,34,483,8,34,1, + 35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,5,36,497,8, + 36,10,36,12,36,500,9,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,5,36,509,8, + 36,10,36,12,36,512,9,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,5,36,521,8, + 36,10,36,12,36,524,9,36,1,36,1,36,1,36,1,36,1,36,3,36,531,8,36,1,36,1, + 36,3,36,535,8,36,1,37,1,37,1,37,5,37,540,8,37,10,37,12,37,543,9,37,1, + 38,1,38,1,38,3,38,548,8,38,1,38,1,38,1,38,1,38,1,38,4,38,555,8,38,11, + 38,12,38,556,1,38,1,38,3,38,561,8,38,1,38,1,38,1,38,1,38,1,38,1,38,1, + 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1, + 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,592,8,38,1,38,1,38,1, + 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,609, + 8,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,621,8,38, + 1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,631,8,38,1,38,3,38,634,8, + 38,1,38,1,38,3,38,638,8,38,1,38,3,38,641,8,38,1,38,1,38,1,38,1,38,1,38, + 1,38,1,38,1,38,1,38,1,38,1,38,3,38,654,8,38,1,38,1,38,1,38,1,38,1,38, + 1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,671,8,38,1,38, + 1,38,3,38,675,8,38,1,38,1,38,1,38,1,38,3,38,681,8,38,1,38,1,38,1,38,1, + 38,1,38,3,38,688,8,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1, + 38,3,38,700,8,38,1,38,1,38,3,38,704,8,38,1,38,3,38,707,8,38,1,38,1,38, + 1,38,1,38,1,38,1,38,1,38,3,38,716,8,38,1,38,1,38,1,38,1,38,1,38,1,38, + 1,38,1,38,1,38,1,38,1,38,1,38,3,38,730,8,38,1,38,1,38,1,38,1,38,1,38, + 1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38, + 1,38,1,38,1,38,1,38,1,38,1,38,3,38,757,8,38,1,38,1,38,1,38,1,38,1,38, + 1,38,1,38,3,38,766,8,38,5,38,768,8,38,10,38,12,38,771,9,38,1,39,1,39, + 1,39,5,39,776,8,39,10,39,12,39,779,9,39,1,40,1,40,3,40,783,8,40,1,41, + 1,41,1,41,1,41,5,41,789,8,41,10,41,12,41,792,9,41,1,41,1,41,1,41,1,41, + 1,41,5,41,799,8,41,10,41,12,41,802,9,41,3,41,804,8,41,1,41,1,41,1,41, + 1,42,1,42,1,42,5,42,812,8,42,10,42,12,42,815,9,42,1,42,1,42,1,42,1,42, + 1,42,1,42,5,42,823,8,42,10,42,12,42,826,9,42,1,42,1,42,3,42,830,8,42, + 1,42,1,42,1,42,1,42,1,42,3,42,837,8,42,1,43,1,43,1,43,1,43,1,43,1,43, + 1,43,1,43,1,43,1,43,1,43,3,43,850,8,43,1,44,1,44,1,44,5,44,855,8,44,10, + 44,12,44,858,9,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,3, + 45,870,8,45,1,46,1,46,1,46,1,46,3,46,876,8,46,1,46,3,46,879,8,46,1,47, + 1,47,1,47,5,47,884,8,47,10,47,12,47,887,9,47,1,48,1,48,1,48,1,48,1,48, + 1,48,1,48,1,48,1,48,3,48,898,8,48,1,48,1,48,1,48,1,48,3,48,904,8,48,5, + 48,906,8,48,10,48,12,48,909,9,48,1,49,1,49,1,49,3,49,914,8,49,1,49,1, + 49,1,50,1,50,1,50,3,50,921,8,50,1,50,1,50,1,51,1,51,1,51,5,51,928,8,51, + 10,51,12,51,931,9,51,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,941, + 8,53,3,53,943,8,53,1,54,3,54,946,8,54,1,54,1,54,1,54,1,54,1,54,1,54,3, + 54,954,8,54,1,55,1,55,1,55,3,55,959,8,55,1,56,1,56,1,57,1,57,1,58,1,58, + 1,59,1,59,3,59,969,8,59,1,60,1,60,1,60,3,60,974,8,60,1,61,1,61,1,61,1, + 61,1,62,1,62,1,62,1,62,1,62,0,3,38,76,96,63,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,0,16,2,0,32,32,141,141,2,0,84,84,96,96, + 3,0,4,4,8,8,12,12,4,0,4,4,7,8,12,12,147,147,2,0,96,96,140,140,2,0,4,4, + 8,8,2,0,11,11,42,43,2,0,62,62,93,93,2,0,133,133,143,143,3,0,17,17,95, + 95,170,170,2,0,79,79,98,98,1,0,197,198,2,0,208,208,228,228,8,0,37,37, + 76,76,108,108,110,110,132,132,145,145,185,185,190,190,13,0,2,24,26,36, + 38,75,77,81,83,107,109,109,111,112,114,115,117,130,133,144,146,184,186, + 189,191,192,4,0,36,36,62,62,77,77,91,91,1111,0,129,1,0,0,0,2,133,1,0, + 0,0,4,147,1,0,0,0,6,151,1,0,0,0,8,154,1,0,0,0,10,203,1,0,0,0,12,206,1, + 0,0,0,14,212,1,0,0,0,16,216,1,0,0,0,18,222,1,0,0,0,20,240,1,0,0,0,22, + 243,1,0,0,0,24,246,1,0,0,0,26,256,1,0,0,0,28,259,1,0,0,0,30,263,1,0,0, + 0,32,296,1,0,0,0,34,298,1,0,0,0,36,301,1,0,0,0,38,316,1,0,0,0,40,378, + 1,0,0,0,42,383,1,0,0,0,44,394,1,0,0,0,46,396,1,0,0,0,48,402,1,0,0,0,50, + 410,1,0,0,0,52,428,1,0,0,0,54,430,1,0,0,0,56,438,1,0,0,0,58,443,1,0,0, + 0,60,451,1,0,0,0,62,455,1,0,0,0,64,459,1,0,0,0,66,468,1,0,0,0,68,482, + 1,0,0,0,70,484,1,0,0,0,72,534,1,0,0,0,74,536,1,0,0,0,76,674,1,0,0,0,78, + 772,1,0,0,0,80,782,1,0,0,0,82,803,1,0,0,0,84,836,1,0,0,0,86,849,1,0,0, + 0,88,851,1,0,0,0,90,869,1,0,0,0,92,878,1,0,0,0,94,880,1,0,0,0,96,897, + 1,0,0,0,98,910,1,0,0,0,100,920,1,0,0,0,102,924,1,0,0,0,104,932,1,0,0, + 0,106,942,1,0,0,0,108,945,1,0,0,0,110,958,1,0,0,0,112,960,1,0,0,0,114, + 962,1,0,0,0,116,964,1,0,0,0,118,968,1,0,0,0,120,973,1,0,0,0,122,975,1, + 0,0,0,124,979,1,0,0,0,126,130,3,2,1,0,127,130,3,8,4,0,128,130,3,84,42, + 0,129,126,1,0,0,0,129,127,1,0,0,0,129,128,1,0,0,0,130,131,1,0,0,0,131, + 132,5,0,0,1,132,1,1,0,0,0,133,139,3,4,2,0,134,135,5,176,0,0,135,136,5, + 4,0,0,136,138,3,4,2,0,137,134,1,0,0,0,138,141,1,0,0,0,139,137,1,0,0,0, + 139,140,1,0,0,0,140,3,1,0,0,0,141,139,1,0,0,0,142,148,3,6,3,0,143,144, + 5,220,0,0,144,145,3,2,1,0,145,146,5,236,0,0,146,148,1,0,0,0,147,142,1, + 0,0,0,147,143,1,0,0,0,148,5,1,0,0,0,149,152,3,8,4,0,150,152,3,124,62, + 0,151,149,1,0,0,0,151,150,1,0,0,0,152,7,1,0,0,0,153,155,3,10,5,0,154, + 153,1,0,0,0,154,155,1,0,0,0,155,156,1,0,0,0,156,158,5,146,0,0,157,159, + 5,49,0,0,158,157,1,0,0,0,158,159,1,0,0,0,159,161,1,0,0,0,160,162,3,12, + 6,0,161,160,1,0,0,0,161,162,1,0,0,0,162,163,1,0,0,0,163,165,3,74,37,0, + 164,166,3,14,7,0,165,164,1,0,0,0,165,166,1,0,0,0,166,168,1,0,0,0,167, + 169,3,16,8,0,168,167,1,0,0,0,168,169,1,0,0,0,169,171,1,0,0,0,170,172, + 3,20,10,0,171,170,1,0,0,0,171,172,1,0,0,0,172,174,1,0,0,0,173,175,3,22, + 11,0,174,173,1,0,0,0,174,175,1,0,0,0,175,177,1,0,0,0,176,178,3,24,12, + 0,177,176,1,0,0,0,177,178,1,0,0,0,178,181,1,0,0,0,179,180,5,189,0,0,180, + 182,7,0,0,0,181,179,1,0,0,0,181,182,1,0,0,0,182,185,1,0,0,0,183,184,5, + 189,0,0,184,186,5,169,0,0,185,183,1,0,0,0,185,186,1,0,0,0,186,188,1,0, + 0,0,187,189,3,26,13,0,188,187,1,0,0,0,188,189,1,0,0,0,189,191,1,0,0,0, + 190,192,3,18,9,0,191,190,1,0,0,0,191,192,1,0,0,0,192,194,1,0,0,0,193, + 195,3,28,14,0,194,193,1,0,0,0,194,195,1,0,0,0,195,198,1,0,0,0,196,199, + 3,32,16,0,197,199,3,34,17,0,198,196,1,0,0,0,198,197,1,0,0,0,198,199,1, + 0,0,0,199,201,1,0,0,0,200,202,3,36,18,0,201,200,1,0,0,0,201,202,1,0,0, + 0,202,9,1,0,0,0,203,204,5,189,0,0,204,205,3,88,44,0,205,11,1,0,0,0,206, + 207,5,168,0,0,207,210,5,198,0,0,208,209,5,189,0,0,209,211,5,164,0,0,210, + 208,1,0,0,0,210,211,1,0,0,0,211,13,1,0,0,0,212,213,5,68,0,0,213,214,3, + 38,19,0,214,15,1,0,0,0,215,217,7,1,0,0,216,215,1,0,0,0,216,217,1,0,0, + 0,217,218,1,0,0,0,218,219,5,9,0,0,219,220,5,90,0,0,220,221,3,74,37,0, + 221,17,1,0,0,0,222,223,5,188,0,0,223,224,3,120,60,0,224,225,5,10,0,0, + 225,226,5,220,0,0,226,227,3,58,29,0,227,237,5,236,0,0,228,229,5,206,0, + 0,229,230,3,120,60,0,230,231,5,10,0,0,231,232,5,220,0,0,232,233,3,58, + 29,0,233,234,5,236,0,0,234,236,1,0,0,0,235,228,1,0,0,0,236,239,1,0,0, + 0,237,235,1,0,0,0,237,238,1,0,0,0,238,19,1,0,0,0,239,237,1,0,0,0,240, + 241,5,129,0,0,241,242,3,76,38,0,242,21,1,0,0,0,243,244,5,187,0,0,244, + 245,3,76,38,0,245,23,1,0,0,0,246,247,5,73,0,0,247,254,5,18,0,0,248,249, + 7,0,0,0,249,250,5,220,0,0,250,251,3,74,37,0,251,252,5,236,0,0,252,255, + 1,0,0,0,253,255,3,74,37,0,254,248,1,0,0,0,254,253,1,0,0,0,255,25,1,0, + 0,0,256,257,5,74,0,0,257,258,3,76,38,0,258,27,1,0,0,0,259,260,5,122,0, + 0,260,261,5,18,0,0,261,262,3,48,24,0,262,29,1,0,0,0,263,264,5,122,0,0, + 264,265,5,18,0,0,265,266,3,74,37,0,266,31,1,0,0,0,267,268,5,99,0,0,268, + 271,3,76,38,0,269,270,5,206,0,0,270,272,3,76,38,0,271,269,1,0,0,0,271, + 272,1,0,0,0,272,277,1,0,0,0,273,274,5,189,0,0,274,278,5,164,0,0,275,276, + 5,18,0,0,276,278,3,74,37,0,277,273,1,0,0,0,277,275,1,0,0,0,277,278,1, + 0,0,0,278,297,1,0,0,0,279,280,5,99,0,0,280,283,3,76,38,0,281,282,5,189, + 0,0,282,284,5,164,0,0,283,281,1,0,0,0,283,284,1,0,0,0,284,285,1,0,0,0, + 285,286,5,118,0,0,286,287,3,76,38,0,287,297,1,0,0,0,288,289,5,99,0,0, + 289,290,3,76,38,0,290,291,5,118,0,0,291,294,3,76,38,0,292,293,5,18,0, + 0,293,295,3,74,37,0,294,292,1,0,0,0,294,295,1,0,0,0,295,297,1,0,0,0,296, + 267,1,0,0,0,296,279,1,0,0,0,296,288,1,0,0,0,297,33,1,0,0,0,298,299,5, + 118,0,0,299,300,3,76,38,0,300,35,1,0,0,0,301,302,5,150,0,0,302,303,3, + 54,27,0,303,37,1,0,0,0,304,305,6,19,-1,0,305,307,3,96,48,0,306,308,5, + 61,0,0,307,306,1,0,0,0,307,308,1,0,0,0,308,310,1,0,0,0,309,311,3,46,23, + 0,310,309,1,0,0,0,310,311,1,0,0,0,311,317,1,0,0,0,312,313,5,220,0,0,313, + 314,3,38,19,0,314,315,5,236,0,0,315,317,1,0,0,0,316,304,1,0,0,0,316,312, + 1,0,0,0,317,332,1,0,0,0,318,319,10,3,0,0,319,320,3,42,21,0,320,321,3, + 38,19,4,321,331,1,0,0,0,322,324,10,4,0,0,323,325,3,40,20,0,324,323,1, + 0,0,0,324,325,1,0,0,0,325,326,1,0,0,0,326,327,5,90,0,0,327,328,3,38,19, + 0,328,329,3,44,22,0,329,331,1,0,0,0,330,318,1,0,0,0,330,322,1,0,0,0,331, + 334,1,0,0,0,332,330,1,0,0,0,332,333,1,0,0,0,333,39,1,0,0,0,334,332,1, + 0,0,0,335,337,7,2,0,0,336,335,1,0,0,0,336,337,1,0,0,0,337,338,1,0,0,0, + 338,345,5,84,0,0,339,341,5,84,0,0,340,342,7,2,0,0,341,340,1,0,0,0,341, + 342,1,0,0,0,342,345,1,0,0,0,343,345,7,2,0,0,344,336,1,0,0,0,344,339,1, + 0,0,0,344,343,1,0,0,0,345,379,1,0,0,0,346,348,7,3,0,0,347,346,1,0,0,0, + 347,348,1,0,0,0,348,349,1,0,0,0,349,351,7,4,0,0,350,352,5,123,0,0,351, + 350,1,0,0,0,351,352,1,0,0,0,352,361,1,0,0,0,353,355,7,4,0,0,354,356,5, + 123,0,0,355,354,1,0,0,0,355,356,1,0,0,0,356,358,1,0,0,0,357,359,7,3,0, + 0,358,357,1,0,0,0,358,359,1,0,0,0,359,361,1,0,0,0,360,347,1,0,0,0,360, + 353,1,0,0,0,361,379,1,0,0,0,362,364,7,5,0,0,363,362,1,0,0,0,363,364,1, + 0,0,0,364,365,1,0,0,0,365,367,5,69,0,0,366,368,5,123,0,0,367,366,1,0, + 0,0,367,368,1,0,0,0,368,377,1,0,0,0,369,371,5,69,0,0,370,372,5,123,0, + 0,371,370,1,0,0,0,371,372,1,0,0,0,372,374,1,0,0,0,373,375,7,5,0,0,374, + 373,1,0,0,0,374,375,1,0,0,0,375,377,1,0,0,0,376,363,1,0,0,0,376,369,1, + 0,0,0,377,379,1,0,0,0,378,344,1,0,0,0,378,360,1,0,0,0,378,376,1,0,0,0, + 379,41,1,0,0,0,380,381,5,31,0,0,381,384,5,90,0,0,382,384,5,206,0,0,383, + 380,1,0,0,0,383,382,1,0,0,0,384,43,1,0,0,0,385,386,5,119,0,0,386,395, + 3,74,37,0,387,388,5,179,0,0,388,389,5,220,0,0,389,390,3,74,37,0,390,391, + 5,236,0,0,391,395,1,0,0,0,392,393,5,179,0,0,393,395,3,74,37,0,394,385, + 1,0,0,0,394,387,1,0,0,0,394,392,1,0,0,0,395,45,1,0,0,0,396,397,5,144, + 0,0,397,400,3,52,26,0,398,399,5,118,0,0,399,401,3,52,26,0,400,398,1,0, + 0,0,400,401,1,0,0,0,401,47,1,0,0,0,402,407,3,50,25,0,403,404,5,206,0, + 0,404,406,3,50,25,0,405,403,1,0,0,0,406,409,1,0,0,0,407,405,1,0,0,0,407, + 408,1,0,0,0,408,49,1,0,0,0,409,407,1,0,0,0,410,412,3,76,38,0,411,413, + 7,6,0,0,412,411,1,0,0,0,412,413,1,0,0,0,413,416,1,0,0,0,414,415,5,117, + 0,0,415,417,7,7,0,0,416,414,1,0,0,0,416,417,1,0,0,0,417,420,1,0,0,0,418, + 419,5,26,0,0,419,421,5,200,0,0,420,418,1,0,0,0,420,421,1,0,0,0,421,51, + 1,0,0,0,422,429,3,124,62,0,423,426,3,108,54,0,424,425,5,238,0,0,425,427, + 3,108,54,0,426,424,1,0,0,0,426,427,1,0,0,0,427,429,1,0,0,0,428,422,1, + 0,0,0,428,423,1,0,0,0,429,53,1,0,0,0,430,435,3,56,28,0,431,432,5,206, + 0,0,432,434,3,56,28,0,433,431,1,0,0,0,434,437,1,0,0,0,435,433,1,0,0,0, + 435,436,1,0,0,0,436,55,1,0,0,0,437,435,1,0,0,0,438,439,3,120,60,0,439, + 440,5,212,0,0,440,441,3,110,55,0,441,57,1,0,0,0,442,444,3,60,30,0,443, + 442,1,0,0,0,443,444,1,0,0,0,444,446,1,0,0,0,445,447,3,62,31,0,446,445, + 1,0,0,0,446,447,1,0,0,0,447,449,1,0,0,0,448,450,3,64,32,0,449,448,1,0, + 0,0,449,450,1,0,0,0,450,59,1,0,0,0,451,452,5,126,0,0,452,453,5,18,0,0, + 453,454,3,74,37,0,454,61,1,0,0,0,455,456,5,122,0,0,456,457,5,18,0,0,457, + 458,3,48,24,0,458,63,1,0,0,0,459,460,7,8,0,0,460,461,3,66,33,0,461,65, + 1,0,0,0,462,469,3,68,34,0,463,464,5,16,0,0,464,465,3,68,34,0,465,466, + 5,6,0,0,466,467,3,68,34,0,467,469,1,0,0,0,468,462,1,0,0,0,468,463,1,0, + 0,0,469,67,1,0,0,0,470,471,5,33,0,0,471,483,5,142,0,0,472,473,5,175,0, + 0,473,483,5,128,0,0,474,475,5,175,0,0,475,483,5,64,0,0,476,477,3,108, + 54,0,477,478,5,128,0,0,478,483,1,0,0,0,479,480,3,108,54,0,480,481,5,64, + 0,0,481,483,1,0,0,0,482,470,1,0,0,0,482,472,1,0,0,0,482,474,1,0,0,0,482, + 476,1,0,0,0,482,479,1,0,0,0,483,69,1,0,0,0,484,485,3,76,38,0,485,486, + 5,0,0,1,486,71,1,0,0,0,487,535,3,120,60,0,488,489,3,120,60,0,489,490, + 5,220,0,0,490,491,3,120,60,0,491,498,3,72,36,0,492,493,5,206,0,0,493, + 494,3,120,60,0,494,495,3,72,36,0,495,497,1,0,0,0,496,492,1,0,0,0,497, + 500,1,0,0,0,498,496,1,0,0,0,498,499,1,0,0,0,499,501,1,0,0,0,500,498,1, + 0,0,0,501,502,5,236,0,0,502,535,1,0,0,0,503,504,3,120,60,0,504,505,5, + 220,0,0,505,510,3,122,61,0,506,507,5,206,0,0,507,509,3,122,61,0,508,506, + 1,0,0,0,509,512,1,0,0,0,510,508,1,0,0,0,510,511,1,0,0,0,511,513,1,0,0, + 0,512,510,1,0,0,0,513,514,5,236,0,0,514,535,1,0,0,0,515,516,3,120,60, + 0,516,517,5,220,0,0,517,522,3,72,36,0,518,519,5,206,0,0,519,521,3,72, + 36,0,520,518,1,0,0,0,521,524,1,0,0,0,522,520,1,0,0,0,522,523,1,0,0,0, + 523,525,1,0,0,0,524,522,1,0,0,0,525,526,5,236,0,0,526,535,1,0,0,0,527, + 528,3,120,60,0,528,530,5,220,0,0,529,531,3,74,37,0,530,529,1,0,0,0,530, + 531,1,0,0,0,531,532,1,0,0,0,532,533,5,236,0,0,533,535,1,0,0,0,534,487, + 1,0,0,0,534,488,1,0,0,0,534,503,1,0,0,0,534,515,1,0,0,0,534,527,1,0,0, + 0,535,73,1,0,0,0,536,541,3,76,38,0,537,538,5,206,0,0,538,540,3,76,38, + 0,539,537,1,0,0,0,540,543,1,0,0,0,541,539,1,0,0,0,541,542,1,0,0,0,542, + 75,1,0,0,0,543,541,1,0,0,0,544,545,6,38,-1,0,545,547,5,19,0,0,546,548, + 3,76,38,0,547,546,1,0,0,0,547,548,1,0,0,0,548,554,1,0,0,0,549,550,5,186, + 0,0,550,551,3,76,38,0,551,552,5,163,0,0,552,553,3,76,38,0,553,555,1,0, + 0,0,554,549,1,0,0,0,555,556,1,0,0,0,556,554,1,0,0,0,556,557,1,0,0,0,557, + 560,1,0,0,0,558,559,5,52,0,0,559,561,3,76,38,0,560,558,1,0,0,0,560,561, + 1,0,0,0,561,562,1,0,0,0,562,563,5,53,0,0,563,675,1,0,0,0,564,565,5,20, + 0,0,565,566,5,220,0,0,566,567,3,76,38,0,567,568,5,10,0,0,568,569,3,72, + 36,0,569,570,5,236,0,0,570,675,1,0,0,0,571,572,5,36,0,0,572,675,5,200, + 0,0,573,574,5,59,0,0,574,575,5,220,0,0,575,576,3,112,56,0,576,577,5,68, + 0,0,577,578,3,76,38,0,578,579,5,236,0,0,579,675,1,0,0,0,580,581,5,86, + 0,0,581,582,3,76,38,0,582,583,3,112,56,0,583,675,1,0,0,0,584,585,5,155, + 0,0,585,586,5,220,0,0,586,587,3,76,38,0,587,588,5,68,0,0,588,591,3,76, + 38,0,589,590,5,65,0,0,590,592,3,76,38,0,591,589,1,0,0,0,591,592,1,0,0, + 0,592,593,1,0,0,0,593,594,5,236,0,0,594,675,1,0,0,0,595,596,5,166,0,0, + 596,675,5,200,0,0,597,598,5,171,0,0,598,599,5,220,0,0,599,600,7,9,0,0, + 600,601,5,200,0,0,601,602,5,68,0,0,602,603,3,76,38,0,603,604,5,236,0, + 0,604,675,1,0,0,0,605,606,3,120,60,0,606,608,5,220,0,0,607,609,3,74,37, + 0,608,607,1,0,0,0,608,609,1,0,0,0,609,610,1,0,0,0,610,611,5,236,0,0,611, + 612,1,0,0,0,612,613,5,125,0,0,613,614,5,220,0,0,614,615,3,58,29,0,615, + 616,5,236,0,0,616,675,1,0,0,0,617,618,3,120,60,0,618,620,5,220,0,0,619, + 621,3,74,37,0,620,619,1,0,0,0,620,621,1,0,0,0,621,622,1,0,0,0,622,623, + 5,236,0,0,623,624,1,0,0,0,624,625,5,125,0,0,625,626,3,120,60,0,626,675, + 1,0,0,0,627,633,3,120,60,0,628,630,5,220,0,0,629,631,3,74,37,0,630,629, + 1,0,0,0,630,631,1,0,0,0,631,632,1,0,0,0,632,634,5,236,0,0,633,628,1,0, + 0,0,633,634,1,0,0,0,634,635,1,0,0,0,635,637,5,220,0,0,636,638,5,49,0, + 0,637,636,1,0,0,0,637,638,1,0,0,0,638,640,1,0,0,0,639,641,3,78,39,0,640, + 639,1,0,0,0,640,641,1,0,0,0,641,642,1,0,0,0,642,643,5,236,0,0,643,675, + 1,0,0,0,644,675,3,84,42,0,645,675,3,110,55,0,646,647,5,208,0,0,647,675, + 3,76,38,18,648,649,5,115,0,0,649,675,3,76,38,12,650,651,3,100,50,0,651, + 652,5,210,0,0,652,654,1,0,0,0,653,650,1,0,0,0,653,654,1,0,0,0,654,655, + 1,0,0,0,655,675,5,202,0,0,656,657,5,220,0,0,657,658,3,2,1,0,658,659,5, + 236,0,0,659,675,1,0,0,0,660,661,5,220,0,0,661,662,3,76,38,0,662,663,5, + 236,0,0,663,675,1,0,0,0,664,665,5,220,0,0,665,666,3,74,37,0,666,667,5, + 236,0,0,667,675,1,0,0,0,668,670,5,219,0,0,669,671,3,74,37,0,670,669,1, + 0,0,0,670,671,1,0,0,0,671,672,1,0,0,0,672,675,5,235,0,0,673,675,3,92, + 46,0,674,544,1,0,0,0,674,564,1,0,0,0,674,571,1,0,0,0,674,573,1,0,0,0, + 674,580,1,0,0,0,674,584,1,0,0,0,674,595,1,0,0,0,674,597,1,0,0,0,674,605, + 1,0,0,0,674,617,1,0,0,0,674,627,1,0,0,0,674,644,1,0,0,0,674,645,1,0,0, + 0,674,646,1,0,0,0,674,648,1,0,0,0,674,653,1,0,0,0,674,656,1,0,0,0,674, + 660,1,0,0,0,674,664,1,0,0,0,674,668,1,0,0,0,674,673,1,0,0,0,675,769,1, + 0,0,0,676,680,10,17,0,0,677,681,5,202,0,0,678,681,5,238,0,0,679,681,5, + 227,0,0,680,677,1,0,0,0,680,678,1,0,0,0,680,679,1,0,0,0,681,682,1,0,0, + 0,682,768,3,76,38,18,683,687,10,16,0,0,684,688,5,228,0,0,685,688,5,208, + 0,0,686,688,5,207,0,0,687,684,1,0,0,0,687,685,1,0,0,0,687,686,1,0,0,0, + 688,689,1,0,0,0,689,768,3,76,38,17,690,715,10,15,0,0,691,716,5,211,0, + 0,692,716,5,212,0,0,693,716,5,223,0,0,694,716,5,221,0,0,695,716,5,222, + 0,0,696,716,5,213,0,0,697,716,5,214,0,0,698,700,5,115,0,0,699,698,1,0, + 0,0,699,700,1,0,0,0,700,701,1,0,0,0,701,703,5,80,0,0,702,704,5,25,0,0, + 703,702,1,0,0,0,703,704,1,0,0,0,704,716,1,0,0,0,705,707,5,115,0,0,706, + 705,1,0,0,0,706,707,1,0,0,0,707,708,1,0,0,0,708,716,7,10,0,0,709,716, + 5,232,0,0,710,716,5,233,0,0,711,716,5,225,0,0,712,716,5,216,0,0,713,716, + 5,217,0,0,714,716,5,224,0,0,715,691,1,0,0,0,715,692,1,0,0,0,715,693,1, + 0,0,0,715,694,1,0,0,0,715,695,1,0,0,0,715,696,1,0,0,0,715,697,1,0,0,0, + 715,699,1,0,0,0,715,706,1,0,0,0,715,709,1,0,0,0,715,710,1,0,0,0,715,711, + 1,0,0,0,715,712,1,0,0,0,715,713,1,0,0,0,715,714,1,0,0,0,716,717,1,0,0, + 0,717,768,3,76,38,16,718,719,10,13,0,0,719,720,5,226,0,0,720,768,3,76, + 38,14,721,722,10,11,0,0,722,723,5,6,0,0,723,768,3,76,38,12,724,725,10, + 10,0,0,725,726,5,121,0,0,726,768,3,76,38,11,727,729,10,9,0,0,728,730, + 5,115,0,0,729,728,1,0,0,0,729,730,1,0,0,0,730,731,1,0,0,0,731,732,5,16, + 0,0,732,733,3,76,38,0,733,734,5,6,0,0,734,735,3,76,38,10,735,768,1,0, + 0,0,736,737,10,8,0,0,737,738,5,229,0,0,738,739,3,76,38,0,739,740,5,205, + 0,0,740,741,3,76,38,8,741,768,1,0,0,0,742,743,10,21,0,0,743,744,5,219, + 0,0,744,745,3,76,38,0,745,746,5,235,0,0,746,768,1,0,0,0,747,748,10,20, + 0,0,748,749,5,210,0,0,749,768,5,198,0,0,750,751,10,19,0,0,751,752,5,210, + 0,0,752,768,3,120,60,0,753,754,10,14,0,0,754,756,5,88,0,0,755,757,5,115, + 0,0,756,755,1,0,0,0,756,757,1,0,0,0,757,758,1,0,0,0,758,768,5,116,0,0, + 759,765,10,7,0,0,760,766,3,118,59,0,761,762,5,10,0,0,762,766,3,120,60, + 0,763,764,5,10,0,0,764,766,5,200,0,0,765,760,1,0,0,0,765,761,1,0,0,0, + 765,763,1,0,0,0,766,768,1,0,0,0,767,676,1,0,0,0,767,683,1,0,0,0,767,690, + 1,0,0,0,767,718,1,0,0,0,767,721,1,0,0,0,767,724,1,0,0,0,767,727,1,0,0, + 0,767,736,1,0,0,0,767,742,1,0,0,0,767,747,1,0,0,0,767,750,1,0,0,0,767, + 753,1,0,0,0,767,759,1,0,0,0,768,771,1,0,0,0,769,767,1,0,0,0,769,770,1, + 0,0,0,770,77,1,0,0,0,771,769,1,0,0,0,772,777,3,80,40,0,773,774,5,206, + 0,0,774,776,3,80,40,0,775,773,1,0,0,0,776,779,1,0,0,0,777,775,1,0,0,0, + 777,778,1,0,0,0,778,79,1,0,0,0,779,777,1,0,0,0,780,783,3,82,41,0,781, + 783,3,76,38,0,782,780,1,0,0,0,782,781,1,0,0,0,783,81,1,0,0,0,784,785, + 5,220,0,0,785,790,3,120,60,0,786,787,5,206,0,0,787,789,3,120,60,0,788, + 786,1,0,0,0,789,792,1,0,0,0,790,788,1,0,0,0,790,791,1,0,0,0,791,793,1, + 0,0,0,792,790,1,0,0,0,793,794,5,236,0,0,794,804,1,0,0,0,795,800,3,120, + 60,0,796,797,5,206,0,0,797,799,3,120,60,0,798,796,1,0,0,0,799,802,1,0, + 0,0,800,798,1,0,0,0,800,801,1,0,0,0,801,804,1,0,0,0,802,800,1,0,0,0,803, + 784,1,0,0,0,803,795,1,0,0,0,804,805,1,0,0,0,805,806,5,201,0,0,806,807, + 3,76,38,0,807,83,1,0,0,0,808,809,5,222,0,0,809,813,3,120,60,0,810,812, + 3,86,43,0,811,810,1,0,0,0,812,815,1,0,0,0,813,811,1,0,0,0,813,814,1,0, + 0,0,814,816,1,0,0,0,815,813,1,0,0,0,816,817,5,238,0,0,817,818,5,214,0, + 0,818,837,1,0,0,0,819,820,5,222,0,0,820,824,3,120,60,0,821,823,3,86,43, + 0,822,821,1,0,0,0,823,826,1,0,0,0,824,822,1,0,0,0,824,825,1,0,0,0,825, + 827,1,0,0,0,826,824,1,0,0,0,827,829,5,214,0,0,828,830,3,84,42,0,829,828, + 1,0,0,0,829,830,1,0,0,0,830,831,1,0,0,0,831,832,5,222,0,0,832,833,5,238, + 0,0,833,834,3,120,60,0,834,835,5,214,0,0,835,837,1,0,0,0,836,808,1,0, + 0,0,836,819,1,0,0,0,837,85,1,0,0,0,838,839,3,120,60,0,839,840,5,212,0, + 0,840,841,5,200,0,0,841,850,1,0,0,0,842,843,3,120,60,0,843,844,5,212, + 0,0,844,845,5,218,0,0,845,846,3,76,38,0,846,847,5,234,0,0,847,850,1,0, + 0,0,848,850,3,120,60,0,849,838,1,0,0,0,849,842,1,0,0,0,849,848,1,0,0, + 0,850,87,1,0,0,0,851,856,3,90,45,0,852,853,5,206,0,0,853,855,3,90,45, + 0,854,852,1,0,0,0,855,858,1,0,0,0,856,854,1,0,0,0,856,857,1,0,0,0,857, + 89,1,0,0,0,858,856,1,0,0,0,859,860,3,120,60,0,860,861,5,10,0,0,861,862, + 5,220,0,0,862,863,3,2,1,0,863,864,5,236,0,0,864,870,1,0,0,0,865,866,3, + 76,38,0,866,867,5,10,0,0,867,868,3,120,60,0,868,870,1,0,0,0,869,859,1, + 0,0,0,869,865,1,0,0,0,870,91,1,0,0,0,871,879,3,124,62,0,872,873,3,100, + 50,0,873,874,5,210,0,0,874,876,1,0,0,0,875,872,1,0,0,0,875,876,1,0,0, + 0,876,877,1,0,0,0,877,879,3,94,47,0,878,871,1,0,0,0,878,875,1,0,0,0,879, + 93,1,0,0,0,880,885,3,120,60,0,881,882,5,210,0,0,882,884,3,120,60,0,883, + 881,1,0,0,0,884,887,1,0,0,0,885,883,1,0,0,0,885,886,1,0,0,0,886,95,1, + 0,0,0,887,885,1,0,0,0,888,889,6,48,-1,0,889,898,3,100,50,0,890,898,3, + 98,49,0,891,892,5,220,0,0,892,893,3,2,1,0,893,894,5,236,0,0,894,898,1, + 0,0,0,895,898,3,84,42,0,896,898,3,124,62,0,897,888,1,0,0,0,897,890,1, + 0,0,0,897,891,1,0,0,0,897,895,1,0,0,0,897,896,1,0,0,0,898,907,1,0,0,0, + 899,903,10,3,0,0,900,904,3,118,59,0,901,902,5,10,0,0,902,904,3,120,60, + 0,903,900,1,0,0,0,903,901,1,0,0,0,904,906,1,0,0,0,905,899,1,0,0,0,906, + 909,1,0,0,0,907,905,1,0,0,0,907,908,1,0,0,0,908,97,1,0,0,0,909,907,1, + 0,0,0,910,911,3,120,60,0,911,913,5,220,0,0,912,914,3,102,51,0,913,912, + 1,0,0,0,913,914,1,0,0,0,914,915,1,0,0,0,915,916,5,236,0,0,916,99,1,0, + 0,0,917,918,3,104,52,0,918,919,5,210,0,0,919,921,1,0,0,0,920,917,1,0, + 0,0,920,921,1,0,0,0,921,922,1,0,0,0,922,923,3,120,60,0,923,101,1,0,0, + 0,924,929,3,76,38,0,925,926,5,206,0,0,926,928,3,76,38,0,927,925,1,0,0, + 0,928,931,1,0,0,0,929,927,1,0,0,0,929,930,1,0,0,0,930,103,1,0,0,0,931, + 929,1,0,0,0,932,933,3,120,60,0,933,105,1,0,0,0,934,943,5,196,0,0,935, + 936,5,210,0,0,936,943,7,11,0,0,937,938,5,198,0,0,938,940,5,210,0,0,939, + 941,7,11,0,0,940,939,1,0,0,0,940,941,1,0,0,0,941,943,1,0,0,0,942,934, + 1,0,0,0,942,935,1,0,0,0,942,937,1,0,0,0,943,107,1,0,0,0,944,946,7,12, + 0,0,945,944,1,0,0,0,945,946,1,0,0,0,946,953,1,0,0,0,947,954,3,106,53, + 0,948,954,5,197,0,0,949,954,5,198,0,0,950,954,5,199,0,0,951,954,5,82, + 0,0,952,954,5,113,0,0,953,947,1,0,0,0,953,948,1,0,0,0,953,949,1,0,0,0, + 953,950,1,0,0,0,953,951,1,0,0,0,953,952,1,0,0,0,954,109,1,0,0,0,955,959, + 3,108,54,0,956,959,5,200,0,0,957,959,5,116,0,0,958,955,1,0,0,0,958,956, + 1,0,0,0,958,957,1,0,0,0,959,111,1,0,0,0,960,961,7,13,0,0,961,113,1,0, + 0,0,962,963,7,14,0,0,963,115,1,0,0,0,964,965,7,15,0,0,965,117,1,0,0,0, + 966,969,5,195,0,0,967,969,3,116,58,0,968,966,1,0,0,0,968,967,1,0,0,0, + 969,119,1,0,0,0,970,974,5,195,0,0,971,974,3,112,56,0,972,974,3,114,57, + 0,973,970,1,0,0,0,973,971,1,0,0,0,973,972,1,0,0,0,974,121,1,0,0,0,975, + 976,5,200,0,0,976,977,5,212,0,0,977,978,3,108,54,0,978,123,1,0,0,0,979, + 980,5,218,0,0,980,981,3,120,60,0,981,982,5,234,0,0,982,125,1,0,0,0,121, + 129,139,147,151,154,158,161,165,168,171,174,177,181,185,188,191,194,198, + 201,210,216,237,254,271,277,283,294,296,307,310,316,324,330,332,336,341, + 344,347,351,355,358,360,363,367,371,374,376,378,383,394,400,407,412,416, + 420,426,428,435,443,446,449,468,482,498,510,522,530,534,541,547,556,560, + 591,608,620,630,633,637,640,653,670,674,680,687,699,703,706,715,729,756, + 765,767,769,777,782,790,800,803,813,824,829,836,849,856,869,875,878,885, + 897,903,907,913,920,929,940,942,945,953,958,968,973 }; staticData->serializedATN = antlr4::atn::SerializedATNView(serializedATNSegment, sizeof(serializedATNSegment) / sizeof(serializedATNSegment[0])); @@ -580,23 +582,23 @@ HogQLParser::SelectContext* HogQLParser::select() { }); try { enterOuterAlt(_localctx, 1); - setState(127); + setState(129); _errHandler->sync(this); switch (getInterpreter()->adaptivePredict(_input, 0, _ctx)) { case 1: { - setState(124); + setState(126); selectUnionStmt(); break; } case 2: { - setState(125); + setState(127); selectStmt(); break; } case 3: { - setState(126); + setState(128); hogqlxTagElement(); break; } @@ -604,7 +606,7 @@ HogQLParser::SelectContext* HogQLParser::select() { default: break; } - setState(129); + setState(131); match(HogQLParser::EOF); } @@ -674,19 +676,19 @@ HogQLParser::SelectUnionStmtContext* HogQLParser::selectUnionStmt() { }); try { enterOuterAlt(_localctx, 1); - setState(131); + setState(133); selectStmtWithParens(); - setState(137); + setState(139); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::UNION) { - setState(132); + setState(134); match(HogQLParser::UNION); - setState(133); + setState(135); match(HogQLParser::ALL); - setState(134); + setState(136); selectStmtWithParens(); - setState(139); + setState(141); _errHandler->sync(this); _la = _input->LA(1); } @@ -707,8 +709,8 @@ HogQLParser::SelectStmtWithParensContext::SelectStmtWithParensContext(ParserRule : ParserRuleContext(parent, invokingState) { } -HogQLParser::SelectStmtContext* HogQLParser::SelectStmtWithParensContext::selectStmt() { - return getRuleContext(0); +HogQLParser::SelectStmtWithPlaceholderContext* HogQLParser::SelectStmtWithParensContext::selectStmtWithPlaceholder() { + return getRuleContext(0); } tree::TerminalNode* HogQLParser::SelectStmtWithParensContext::LPAREN() { @@ -748,24 +750,25 @@ HogQLParser::SelectStmtWithParensContext* HogQLParser::selectStmtWithParens() { exitRule(); }); try { - setState(145); + setState(147); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::SELECT: - case HogQLParser::WITH: { + case HogQLParser::WITH: + case HogQLParser::LBRACE: { enterOuterAlt(_localctx, 1); - setState(140); - selectStmt(); + setState(142); + selectStmtWithPlaceholder(); break; } case HogQLParser::LPAREN: { enterOuterAlt(_localctx, 2); - setState(141); + setState(143); match(HogQLParser::LPAREN); - setState(142); + setState(144); selectUnionStmt(); - setState(143); + setState(145); match(HogQLParser::RPAREN); break; } @@ -784,6 +787,77 @@ HogQLParser::SelectStmtWithParensContext* HogQLParser::selectStmtWithParens() { return _localctx; } +//----------------- SelectStmtWithPlaceholderContext ------------------------------------------------------------------ + +HogQLParser::SelectStmtWithPlaceholderContext::SelectStmtWithPlaceholderContext(ParserRuleContext *parent, size_t invokingState) + : ParserRuleContext(parent, invokingState) { +} + +HogQLParser::SelectStmtContext* HogQLParser::SelectStmtWithPlaceholderContext::selectStmt() { + return getRuleContext(0); +} + +HogQLParser::PlaceholderContext* HogQLParser::SelectStmtWithPlaceholderContext::placeholder() { + return getRuleContext(0); +} + + +size_t HogQLParser::SelectStmtWithPlaceholderContext::getRuleIndex() const { + return HogQLParser::RuleSelectStmtWithPlaceholder; +} + + +std::any HogQLParser::SelectStmtWithPlaceholderContext::accept(tree::ParseTreeVisitor *visitor) { + if (auto parserVisitor = dynamic_cast(visitor)) + return parserVisitor->visitSelectStmtWithPlaceholder(this); + else + return visitor->visitChildren(this); +} + +HogQLParser::SelectStmtWithPlaceholderContext* HogQLParser::selectStmtWithPlaceholder() { + SelectStmtWithPlaceholderContext *_localctx = _tracker.createInstance(_ctx, getState()); + enterRule(_localctx, 6, HogQLParser::RuleSelectStmtWithPlaceholder); + +#if __cplusplus > 201703L + auto onExit = finally([=, this] { +#else + auto onExit = finally([=] { +#endif + exitRule(); + }); + try { + setState(151); + _errHandler->sync(this); + switch (_input->LA(1)) { + case HogQLParser::SELECT: + case HogQLParser::WITH: { + enterOuterAlt(_localctx, 1); + setState(149); + selectStmt(); + break; + } + + case HogQLParser::LBRACE: { + enterOuterAlt(_localctx, 2); + setState(150); + placeholder(); + break; + } + + default: + throw NoViableAltException(this); + } + + } + catch (RecognitionException &e) { + _errHandler->reportError(this, e); + _localctx->exception = std::current_exception(); + _errHandler->recover(this, _localctx->exception); + } + + return _localctx; +} + //----------------- SelectStmtContext ------------------------------------------------------------------ HogQLParser::SelectStmtContext::SelectStmtContext(ParserRuleContext *parent, size_t invokingState) @@ -889,7 +963,7 @@ std::any HogQLParser::SelectStmtContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::SelectStmtContext* HogQLParser::selectStmt() { SelectStmtContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 6, HogQLParser::RuleSelectStmt); + enterRule(_localctx, 8, HogQLParser::RuleSelectStmt); size_t _la = 0; #if __cplusplus > 201703L @@ -901,22 +975,22 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() { }); try { enterOuterAlt(_localctx, 1); - setState(148); + setState(154); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::WITH) { - setState(147); + setState(153); antlrcpp::downCast(_localctx)->with = withClause(); } - setState(150); + setState(156); match(HogQLParser::SELECT); - setState(152); + setState(158); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 4, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 5, _ctx)) { case 1: { - setState(151); + setState(157); match(HogQLParser::DISTINCT); break; } @@ -924,12 +998,12 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() { default: break; } - setState(155); + setState(161); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 5, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 6, _ctx)) { case 1: { - setState(154); + setState(160); topClause(); break; } @@ -937,58 +1011,58 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() { default: break; } - setState(157); + setState(163); antlrcpp::downCast(_localctx)->columns = columnExprList(); - setState(159); + setState(165); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::FROM) { - setState(158); + setState(164); antlrcpp::downCast(_localctx)->from = fromClause(); } - setState(162); + setState(168); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::ARRAY || _la == HogQLParser::INNER || _la == HogQLParser::LEFT) { - setState(161); + setState(167); arrayJoinClause(); } - setState(165); + setState(171); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::PREWHERE) { - setState(164); + setState(170); prewhereClause(); } - setState(168); + setState(174); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::WHERE) { - setState(167); + setState(173); antlrcpp::downCast(_localctx)->where = whereClause(); } - setState(171); + setState(177); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::GROUP) { - setState(170); + setState(176); groupByClause(); } - setState(175); + setState(181); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 11, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 12, _ctx)) { case 1: { - setState(173); + setState(179); match(HogQLParser::WITH); - setState(174); + setState(180); _la = _input->LA(1); if (!(_la == HogQLParser::CUBE || _la == HogQLParser::ROLLUP)) { _errHandler->recoverInline(this); @@ -1003,51 +1077,51 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() { default: break; } - setState(179); + setState(185); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::WITH) { - setState(177); + setState(183); match(HogQLParser::WITH); - setState(178); + setState(184); match(HogQLParser::TOTALS); } - setState(182); + setState(188); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::HAVING) { - setState(181); + setState(187); havingClause(); } - setState(185); + setState(191); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::WINDOW) { - setState(184); + setState(190); windowClause(); } - setState(188); + setState(194); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::ORDER) { - setState(187); + setState(193); orderByClause(); } - setState(192); + setState(198); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::LIMIT: { - setState(190); + setState(196); limitAndOffsetClause(); break; } case HogQLParser::OFFSET: { - setState(191); + setState(197); offsetOnlyClause(); break; } @@ -1062,12 +1136,12 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() { default: break; } - setState(195); + setState(201); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::SETTINGS) { - setState(194); + setState(200); settingsClause(); } @@ -1110,7 +1184,7 @@ std::any HogQLParser::WithClauseContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::WithClauseContext* HogQLParser::withClause() { WithClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 8, HogQLParser::RuleWithClause); + enterRule(_localctx, 10, HogQLParser::RuleWithClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1121,9 +1195,9 @@ HogQLParser::WithClauseContext* HogQLParser::withClause() { }); try { enterOuterAlt(_localctx, 1); - setState(197); + setState(203); match(HogQLParser::WITH); - setState(198); + setState(204); withExprList(); } @@ -1173,7 +1247,7 @@ std::any HogQLParser::TopClauseContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::TopClauseContext* HogQLParser::topClause() { TopClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 10, HogQLParser::RuleTopClause); + enterRule(_localctx, 12, HogQLParser::RuleTopClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1184,18 +1258,18 @@ HogQLParser::TopClauseContext* HogQLParser::topClause() { }); try { enterOuterAlt(_localctx, 1); - setState(200); + setState(206); match(HogQLParser::TOP); - setState(201); + setState(207); match(HogQLParser::DECIMAL_LITERAL); - setState(204); + setState(210); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 18, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 19, _ctx)) { case 1: { - setState(202); + setState(208); match(HogQLParser::WITH); - setState(203); + setState(209); match(HogQLParser::TIES); break; } @@ -1243,7 +1317,7 @@ std::any HogQLParser::FromClauseContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::FromClauseContext* HogQLParser::fromClause() { FromClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 12, HogQLParser::RuleFromClause); + enterRule(_localctx, 14, HogQLParser::RuleFromClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1254,9 +1328,9 @@ HogQLParser::FromClauseContext* HogQLParser::fromClause() { }); try { enterOuterAlt(_localctx, 1); - setState(206); + setState(212); match(HogQLParser::FROM); - setState(207); + setState(213); joinExpr(0); } @@ -1310,7 +1384,7 @@ std::any HogQLParser::ArrayJoinClauseContext::accept(tree::ParseTreeVisitor *vis HogQLParser::ArrayJoinClauseContext* HogQLParser::arrayJoinClause() { ArrayJoinClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 14, HogQLParser::RuleArrayJoinClause); + enterRule(_localctx, 16, HogQLParser::RuleArrayJoinClause); size_t _la = 0; #if __cplusplus > 201703L @@ -1322,14 +1396,14 @@ HogQLParser::ArrayJoinClauseContext* HogQLParser::arrayJoinClause() { }); try { enterOuterAlt(_localctx, 1); - setState(210); + setState(216); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::INNER || _la == HogQLParser::LEFT) { - setState(209); + setState(215); _la = _input->LA(1); if (!(_la == HogQLParser::INNER @@ -1341,11 +1415,11 @@ HogQLParser::ArrayJoinClauseContext* HogQLParser::arrayJoinClause() { consume(); } } - setState(212); + setState(218); match(HogQLParser::ARRAY); - setState(213); + setState(219); match(HogQLParser::JOIN); - setState(214); + setState(220); columnExprList(); } @@ -1431,7 +1505,7 @@ std::any HogQLParser::WindowClauseContext::accept(tree::ParseTreeVisitor *visito HogQLParser::WindowClauseContext* HogQLParser::windowClause() { WindowClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 16, HogQLParser::RuleWindowClause); + enterRule(_localctx, 18, HogQLParser::RuleWindowClause); size_t _la = 0; #if __cplusplus > 201703L @@ -1443,35 +1517,35 @@ HogQLParser::WindowClauseContext* HogQLParser::windowClause() { }); try { enterOuterAlt(_localctx, 1); - setState(216); + setState(222); match(HogQLParser::WINDOW); - setState(217); + setState(223); identifier(); - setState(218); + setState(224); match(HogQLParser::AS); - setState(219); + setState(225); match(HogQLParser::LPAREN); - setState(220); + setState(226); windowExpr(); - setState(221); + setState(227); match(HogQLParser::RPAREN); - setState(231); + setState(237); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(222); + setState(228); match(HogQLParser::COMMA); - setState(223); + setState(229); identifier(); - setState(224); + setState(230); match(HogQLParser::AS); - setState(225); + setState(231); match(HogQLParser::LPAREN); - setState(226); + setState(232); windowExpr(); - setState(227); - match(HogQLParser::RPAREN); setState(233); + match(HogQLParser::RPAREN); + setState(239); _errHandler->sync(this); _la = _input->LA(1); } @@ -1515,7 +1589,7 @@ std::any HogQLParser::PrewhereClauseContext::accept(tree::ParseTreeVisitor *visi HogQLParser::PrewhereClauseContext* HogQLParser::prewhereClause() { PrewhereClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 18, HogQLParser::RulePrewhereClause); + enterRule(_localctx, 20, HogQLParser::RulePrewhereClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1526,9 +1600,9 @@ HogQLParser::PrewhereClauseContext* HogQLParser::prewhereClause() { }); try { enterOuterAlt(_localctx, 1); - setState(234); + setState(240); match(HogQLParser::PREWHERE); - setState(235); + setState(241); columnExpr(0); } @@ -1570,7 +1644,7 @@ std::any HogQLParser::WhereClauseContext::accept(tree::ParseTreeVisitor *visitor HogQLParser::WhereClauseContext* HogQLParser::whereClause() { WhereClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 20, HogQLParser::RuleWhereClause); + enterRule(_localctx, 22, HogQLParser::RuleWhereClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1581,9 +1655,9 @@ HogQLParser::WhereClauseContext* HogQLParser::whereClause() { }); try { enterOuterAlt(_localctx, 1); - setState(237); + setState(243); match(HogQLParser::WHERE); - setState(238); + setState(244); columnExpr(0); } @@ -1645,7 +1719,7 @@ std::any HogQLParser::GroupByClauseContext::accept(tree::ParseTreeVisitor *visit HogQLParser::GroupByClauseContext* HogQLParser::groupByClause() { GroupByClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 22, HogQLParser::RuleGroupByClause); + enterRule(_localctx, 24, HogQLParser::RuleGroupByClause); size_t _la = 0; #if __cplusplus > 201703L @@ -1657,15 +1731,15 @@ HogQLParser::GroupByClauseContext* HogQLParser::groupByClause() { }); try { enterOuterAlt(_localctx, 1); - setState(240); + setState(246); match(HogQLParser::GROUP); - setState(241); + setState(247); match(HogQLParser::BY); - setState(248); + setState(254); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 21, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 22, _ctx)) { case 1: { - setState(242); + setState(248); _la = _input->LA(1); if (!(_la == HogQLParser::CUBE || _la == HogQLParser::ROLLUP)) { _errHandler->recoverInline(this); @@ -1674,17 +1748,17 @@ HogQLParser::GroupByClauseContext* HogQLParser::groupByClause() { _errHandler->reportMatch(this); consume(); } - setState(243); + setState(249); match(HogQLParser::LPAREN); - setState(244); + setState(250); columnExprList(); - setState(245); + setState(251); match(HogQLParser::RPAREN); break; } case 2: { - setState(247); + setState(253); columnExprList(); break; } @@ -1732,7 +1806,7 @@ std::any HogQLParser::HavingClauseContext::accept(tree::ParseTreeVisitor *visito HogQLParser::HavingClauseContext* HogQLParser::havingClause() { HavingClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 24, HogQLParser::RuleHavingClause); + enterRule(_localctx, 26, HogQLParser::RuleHavingClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1743,9 +1817,9 @@ HogQLParser::HavingClauseContext* HogQLParser::havingClause() { }); try { enterOuterAlt(_localctx, 1); - setState(250); + setState(256); match(HogQLParser::HAVING); - setState(251); + setState(257); columnExpr(0); } @@ -1791,7 +1865,7 @@ std::any HogQLParser::OrderByClauseContext::accept(tree::ParseTreeVisitor *visit HogQLParser::OrderByClauseContext* HogQLParser::orderByClause() { OrderByClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 26, HogQLParser::RuleOrderByClause); + enterRule(_localctx, 28, HogQLParser::RuleOrderByClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1802,11 +1876,11 @@ HogQLParser::OrderByClauseContext* HogQLParser::orderByClause() { }); try { enterOuterAlt(_localctx, 1); - setState(253); + setState(259); match(HogQLParser::ORDER); - setState(254); + setState(260); match(HogQLParser::BY); - setState(255); + setState(261); orderExprList(); } @@ -1852,7 +1926,7 @@ std::any HogQLParser::ProjectionOrderByClauseContext::accept(tree::ParseTreeVisi HogQLParser::ProjectionOrderByClauseContext* HogQLParser::projectionOrderByClause() { ProjectionOrderByClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 28, HogQLParser::RuleProjectionOrderByClause); + enterRule(_localctx, 30, HogQLParser::RuleProjectionOrderByClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1863,11 +1937,11 @@ HogQLParser::ProjectionOrderByClauseContext* HogQLParser::projectionOrderByClaus }); try { enterOuterAlt(_localctx, 1); - setState(257); + setState(263); match(HogQLParser::ORDER); - setState(258); + setState(264); match(HogQLParser::BY); - setState(259); + setState(265); columnExprList(); } @@ -1937,7 +2011,7 @@ std::any HogQLParser::LimitAndOffsetClauseContext::accept(tree::ParseTreeVisitor HogQLParser::LimitAndOffsetClauseContext* HogQLParser::limitAndOffsetClause() { LimitAndOffsetClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 30, HogQLParser::RuleLimitAndOffsetClause); + enterRule(_localctx, 32, HogQLParser::RuleLimitAndOffsetClause); size_t _la = 0; #if __cplusplus > 201703L @@ -1948,40 +2022,40 @@ HogQLParser::LimitAndOffsetClauseContext* HogQLParser::limitAndOffsetClause() { exitRule(); }); try { - setState(290); + setState(296); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 26, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 27, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(261); + setState(267); match(HogQLParser::LIMIT); - setState(262); + setState(268); columnExpr(0); - setState(265); + setState(271); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::COMMA) { - setState(263); + setState(269); match(HogQLParser::COMMA); - setState(264); + setState(270); columnExpr(0); } - setState(271); + setState(277); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::WITH: { - setState(267); + setState(273); match(HogQLParser::WITH); - setState(268); + setState(274); match(HogQLParser::TIES); break; } case HogQLParser::BY: { - setState(269); + setState(275); match(HogQLParser::BY); - setState(270); + setState(276); columnExprList(); break; } @@ -2001,45 +2075,45 @@ HogQLParser::LimitAndOffsetClauseContext* HogQLParser::limitAndOffsetClause() { case 2: { enterOuterAlt(_localctx, 2); - setState(273); + setState(279); match(HogQLParser::LIMIT); - setState(274); + setState(280); columnExpr(0); - setState(277); + setState(283); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::WITH) { - setState(275); + setState(281); match(HogQLParser::WITH); - setState(276); + setState(282); match(HogQLParser::TIES); } - setState(279); + setState(285); match(HogQLParser::OFFSET); - setState(280); + setState(286); columnExpr(0); break; } case 3: { enterOuterAlt(_localctx, 3); - setState(282); + setState(288); match(HogQLParser::LIMIT); - setState(283); + setState(289); columnExpr(0); - setState(284); + setState(290); match(HogQLParser::OFFSET); - setState(285); + setState(291); columnExpr(0); - setState(288); + setState(294); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::BY) { - setState(286); + setState(292); match(HogQLParser::BY); - setState(287); + setState(293); columnExprList(); } break; @@ -2088,7 +2162,7 @@ std::any HogQLParser::OffsetOnlyClauseContext::accept(tree::ParseTreeVisitor *vi HogQLParser::OffsetOnlyClauseContext* HogQLParser::offsetOnlyClause() { OffsetOnlyClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 32, HogQLParser::RuleOffsetOnlyClause); + enterRule(_localctx, 34, HogQLParser::RuleOffsetOnlyClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -2099,9 +2173,9 @@ HogQLParser::OffsetOnlyClauseContext* HogQLParser::offsetOnlyClause() { }); try { enterOuterAlt(_localctx, 1); - setState(292); + setState(298); match(HogQLParser::OFFSET); - setState(293); + setState(299); columnExpr(0); } @@ -2143,7 +2217,7 @@ std::any HogQLParser::SettingsClauseContext::accept(tree::ParseTreeVisitor *visi HogQLParser::SettingsClauseContext* HogQLParser::settingsClause() { SettingsClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 34, HogQLParser::RuleSettingsClause); + enterRule(_localctx, 36, HogQLParser::RuleSettingsClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -2154,9 +2228,9 @@ HogQLParser::SettingsClauseContext* HogQLParser::settingsClause() { }); try { enterOuterAlt(_localctx, 1); - setState(295); + setState(301); match(HogQLParser::SETTINGS); - setState(296); + setState(302); settingExprList(); } @@ -2295,8 +2369,8 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { HogQLParser::JoinExprContext *_localctx = _tracker.createInstance(_ctx, parentState); HogQLParser::JoinExprContext *previousContext = _localctx; (void)previousContext; // Silence compiler, in case the context is not used by generated code. - size_t startState = 36; - enterRecursionRule(_localctx, 36, HogQLParser::RuleJoinExpr, precedence); + size_t startState = 38; + enterRecursionRule(_localctx, 38, HogQLParser::RuleJoinExpr, precedence); size_t _la = 0; @@ -2310,22 +2384,22 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { try { size_t alt; enterOuterAlt(_localctx, 1); - setState(310); + setState(316); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 29, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 30, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(299); + setState(305); tableExpr(0); - setState(301); + setState(307); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 27, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 28, _ctx)) { case 1: { - setState(300); + setState(306); match(HogQLParser::FINAL); break; } @@ -2333,12 +2407,12 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { default: break; } - setState(304); + setState(310); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 28, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 29, _ctx)) { case 1: { - setState(303); + setState(309); sampleClause(); break; } @@ -2353,11 +2427,11 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(306); + setState(312); match(HogQLParser::LPAREN); - setState(307); + setState(313); joinExpr(0); - setState(308); + setState(314); match(HogQLParser::RPAREN); break; } @@ -2366,27 +2440,27 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { break; } _ctx->stop = _input->LT(-1); - setState(326); + setState(332); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 32, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 33, _ctx); while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) { if (alt == 1) { if (!_parseListeners.empty()) triggerExitRuleEvent(); previousContext = _localctx; - setState(324); + setState(330); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 31, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 32, _ctx)) { case 1: { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleJoinExpr); - setState(312); + setState(318); if (!(precpred(_ctx, 3))) throw FailedPredicateException(this, "precpred(_ctx, 3)"); - setState(313); + setState(319); joinOpCross(); - setState(314); + setState(320); joinExpr(4); break; } @@ -2395,10 +2469,10 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleJoinExpr); - setState(316); + setState(322); if (!(precpred(_ctx, 4))) throw FailedPredicateException(this, "precpred(_ctx, 4)"); - setState(318); + setState(324); _errHandler->sync(this); _la = _input->LA(1); @@ -2407,14 +2481,14 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { ((1ULL << (_la - 69)) & 134250497) != 0) || _la == HogQLParser::RIGHT || _la == HogQLParser::SEMI) { - setState(317); + setState(323); joinOp(); } - setState(320); + setState(326); match(HogQLParser::JOIN); - setState(321); + setState(327); joinExpr(0); - setState(322); + setState(328); joinConstraintClause(); break; } @@ -2423,9 +2497,9 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { break; } } - setState(328); + setState(334); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 32, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 33, _ctx); } } catch (RecognitionException &e) { @@ -2550,7 +2624,7 @@ std::any HogQLParser::JoinOpLeftRightContext::accept(tree::ParseTreeVisitor *vis } HogQLParser::JoinOpContext* HogQLParser::joinOp() { JoinOpContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 38, HogQLParser::RuleJoinOp); + enterRule(_localctx, 40, HogQLParser::RuleJoinOp); size_t _la = 0; #if __cplusplus > 201703L @@ -2561,23 +2635,23 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { exitRule(); }); try { - setState(372); + setState(378); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 46, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 47, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 1); - setState(338); + setState(344); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 35, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 36, _ctx)) { case 1: { - setState(330); + setState(336); _errHandler->sync(this); _la = _input->LA(1); if ((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4368) != 0)) { - setState(329); + setState(335); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4368) != 0))) { @@ -2588,21 +2662,21 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { consume(); } } - setState(332); + setState(338); match(HogQLParser::INNER); break; } case 2: { - setState(333); + setState(339); match(HogQLParser::INNER); - setState(335); + setState(341); _errHandler->sync(this); _la = _input->LA(1); if ((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4368) != 0)) { - setState(334); + setState(340); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4368) != 0))) { @@ -2617,7 +2691,7 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { } case 3: { - setState(337); + setState(343); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4368) != 0))) { @@ -2639,17 +2713,17 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { case 2: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 2); - setState(354); + setState(360); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 40, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 41, _ctx)) { case 1: { - setState(341); + setState(347); _errHandler->sync(this); _la = _input->LA(1); if ((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4496) != 0) || _la == HogQLParser::SEMI) { - setState(340); + setState(346); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4496) != 0) || _la == HogQLParser::SEMI)) { @@ -2660,7 +2734,7 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { consume(); } } - setState(343); + setState(349); _la = _input->LA(1); if (!(_la == HogQLParser::LEFT @@ -2671,19 +2745,19 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { _errHandler->reportMatch(this); consume(); } - setState(345); + setState(351); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::OUTER) { - setState(344); + setState(350); match(HogQLParser::OUTER); } break; } case 2: { - setState(347); + setState(353); _la = _input->LA(1); if (!(_la == HogQLParser::LEFT @@ -2694,21 +2768,21 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { _errHandler->reportMatch(this); consume(); } - setState(349); + setState(355); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::OUTER) { - setState(348); + setState(354); match(HogQLParser::OUTER); } - setState(352); + setState(358); _errHandler->sync(this); _la = _input->LA(1); if ((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4496) != 0) || _la == HogQLParser::SEMI) { - setState(351); + setState(357); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4496) != 0) || _la == HogQLParser::SEMI)) { @@ -2731,18 +2805,18 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { case 3: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 3); - setState(370); + setState(376); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 45, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 46, _ctx)) { case 1: { - setState(357); + setState(363); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::ALL || _la == HogQLParser::ANY) { - setState(356); + setState(362); _la = _input->LA(1); if (!(_la == HogQLParser::ALL @@ -2754,38 +2828,38 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { consume(); } } - setState(359); + setState(365); match(HogQLParser::FULL); - setState(361); + setState(367); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::OUTER) { - setState(360); + setState(366); match(HogQLParser::OUTER); } break; } case 2: { - setState(363); + setState(369); match(HogQLParser::FULL); - setState(365); + setState(371); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::OUTER) { - setState(364); + setState(370); match(HogQLParser::OUTER); } - setState(368); + setState(374); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::ALL || _la == HogQLParser::ANY) { - setState(367); + setState(373); _la = _input->LA(1); if (!(_la == HogQLParser::ALL @@ -2853,7 +2927,7 @@ std::any HogQLParser::JoinOpCrossContext::accept(tree::ParseTreeVisitor *visitor HogQLParser::JoinOpCrossContext* HogQLParser::joinOpCross() { JoinOpCrossContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 40, HogQLParser::RuleJoinOpCross); + enterRule(_localctx, 42, HogQLParser::RuleJoinOpCross); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -2863,21 +2937,21 @@ HogQLParser::JoinOpCrossContext* HogQLParser::joinOpCross() { exitRule(); }); try { - setState(377); + setState(383); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::CROSS: { enterOuterAlt(_localctx, 1); - setState(374); + setState(380); match(HogQLParser::CROSS); - setState(375); + setState(381); match(HogQLParser::JOIN); break; } case HogQLParser::COMMA: { enterOuterAlt(_localctx, 2); - setState(376); + setState(382); match(HogQLParser::COMMA); break; } @@ -2937,7 +3011,7 @@ std::any HogQLParser::JoinConstraintClauseContext::accept(tree::ParseTreeVisitor HogQLParser::JoinConstraintClauseContext* HogQLParser::joinConstraintClause() { JoinConstraintClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 42, HogQLParser::RuleJoinConstraintClause); + enterRule(_localctx, 44, HogQLParser::RuleJoinConstraintClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -2947,36 +3021,36 @@ HogQLParser::JoinConstraintClauseContext* HogQLParser::joinConstraintClause() { exitRule(); }); try { - setState(388); + setState(394); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 48, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 49, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(379); + setState(385); match(HogQLParser::ON); - setState(380); + setState(386); columnExprList(); break; } case 2: { enterOuterAlt(_localctx, 2); - setState(381); + setState(387); match(HogQLParser::USING); - setState(382); + setState(388); match(HogQLParser::LPAREN); - setState(383); + setState(389); columnExprList(); - setState(384); + setState(390); match(HogQLParser::RPAREN); break; } case 3: { enterOuterAlt(_localctx, 3); - setState(386); + setState(392); match(HogQLParser::USING); - setState(387); + setState(393); columnExprList(); break; } @@ -3032,7 +3106,7 @@ std::any HogQLParser::SampleClauseContext::accept(tree::ParseTreeVisitor *visito HogQLParser::SampleClauseContext* HogQLParser::sampleClause() { SampleClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 44, HogQLParser::RuleSampleClause); + enterRule(_localctx, 46, HogQLParser::RuleSampleClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3043,18 +3117,18 @@ HogQLParser::SampleClauseContext* HogQLParser::sampleClause() { }); try { enterOuterAlt(_localctx, 1); - setState(390); + setState(396); match(HogQLParser::SAMPLE); - setState(391); + setState(397); ratioExpr(); - setState(394); + setState(400); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 49, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 50, _ctx)) { case 1: { - setState(392); + setState(398); match(HogQLParser::OFFSET); - setState(393); + setState(399); ratioExpr(); break; } @@ -3110,7 +3184,7 @@ std::any HogQLParser::OrderExprListContext::accept(tree::ParseTreeVisitor *visit HogQLParser::OrderExprListContext* HogQLParser::orderExprList() { OrderExprListContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 46, HogQLParser::RuleOrderExprList); + enterRule(_localctx, 48, HogQLParser::RuleOrderExprList); size_t _la = 0; #if __cplusplus > 201703L @@ -3122,17 +3196,17 @@ HogQLParser::OrderExprListContext* HogQLParser::orderExprList() { }); try { enterOuterAlt(_localctx, 1); - setState(396); + setState(402); orderExpr(); - setState(401); + setState(407); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(397); + setState(403); match(HogQLParser::COMMA); - setState(398); + setState(404); orderExpr(); - setState(403); + setState(409); _errHandler->sync(this); _la = _input->LA(1); } @@ -3204,7 +3278,7 @@ std::any HogQLParser::OrderExprContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::OrderExprContext* HogQLParser::orderExpr() { OrderExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 48, HogQLParser::RuleOrderExpr); + enterRule(_localctx, 50, HogQLParser::RuleOrderExpr); size_t _la = 0; #if __cplusplus > 201703L @@ -3216,15 +3290,15 @@ HogQLParser::OrderExprContext* HogQLParser::orderExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(404); + setState(410); columnExpr(0); - setState(406); + setState(412); _errHandler->sync(this); _la = _input->LA(1); if ((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 13194139535360) != 0)) { - setState(405); + setState(411); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 13194139535360) != 0))) { @@ -3235,14 +3309,14 @@ HogQLParser::OrderExprContext* HogQLParser::orderExpr() { consume(); } } - setState(410); + setState(416); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::NULLS) { - setState(408); + setState(414); match(HogQLParser::NULLS); - setState(409); + setState(415); _la = _input->LA(1); if (!(_la == HogQLParser::FIRST @@ -3254,14 +3328,14 @@ HogQLParser::OrderExprContext* HogQLParser::orderExpr() { consume(); } } - setState(414); + setState(420); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::COLLATE) { - setState(412); + setState(418); match(HogQLParser::COLLATE); - setState(413); + setState(419); match(HogQLParser::STRING_LITERAL); } @@ -3312,7 +3386,7 @@ std::any HogQLParser::RatioExprContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::RatioExprContext* HogQLParser::ratioExpr() { RatioExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 50, HogQLParser::RuleRatioExpr); + enterRule(_localctx, 52, HogQLParser::RuleRatioExpr); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3322,12 +3396,12 @@ HogQLParser::RatioExprContext* HogQLParser::ratioExpr() { exitRule(); }); try { - setState(422); + setState(428); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::LBRACE: { enterOuterAlt(_localctx, 1); - setState(416); + setState(422); placeholder(); break; } @@ -3342,16 +3416,16 @@ HogQLParser::RatioExprContext* HogQLParser::ratioExpr() { case HogQLParser::DOT: case HogQLParser::PLUS: { enterOuterAlt(_localctx, 2); - setState(417); + setState(423); numberLiteral(); - setState(420); + setState(426); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 54, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 55, _ctx)) { case 1: { - setState(418); + setState(424); match(HogQLParser::SLASH); - setState(419); + setState(425); numberLiteral(); break; } @@ -3413,7 +3487,7 @@ std::any HogQLParser::SettingExprListContext::accept(tree::ParseTreeVisitor *vis HogQLParser::SettingExprListContext* HogQLParser::settingExprList() { SettingExprListContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 52, HogQLParser::RuleSettingExprList); + enterRule(_localctx, 54, HogQLParser::RuleSettingExprList); size_t _la = 0; #if __cplusplus > 201703L @@ -3425,17 +3499,17 @@ HogQLParser::SettingExprListContext* HogQLParser::settingExprList() { }); try { enterOuterAlt(_localctx, 1); - setState(424); + setState(430); settingExpr(); - setState(429); + setState(435); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(425); + setState(431); match(HogQLParser::COMMA); - setState(426); + setState(432); settingExpr(); - setState(431); + setState(437); _errHandler->sync(this); _la = _input->LA(1); } @@ -3483,7 +3557,7 @@ std::any HogQLParser::SettingExprContext::accept(tree::ParseTreeVisitor *visitor HogQLParser::SettingExprContext* HogQLParser::settingExpr() { SettingExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 54, HogQLParser::RuleSettingExpr); + enterRule(_localctx, 56, HogQLParser::RuleSettingExpr); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3494,11 +3568,11 @@ HogQLParser::SettingExprContext* HogQLParser::settingExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(432); + setState(438); identifier(); - setState(433); + setState(439); match(HogQLParser::EQ_SINGLE); - setState(434); + setState(440); literal(); } @@ -3544,7 +3618,7 @@ std::any HogQLParser::WindowExprContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::WindowExprContext* HogQLParser::windowExpr() { WindowExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 56, HogQLParser::RuleWindowExpr); + enterRule(_localctx, 58, HogQLParser::RuleWindowExpr); size_t _la = 0; #if __cplusplus > 201703L @@ -3556,30 +3630,30 @@ HogQLParser::WindowExprContext* HogQLParser::windowExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(437); + setState(443); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::PARTITION) { - setState(436); + setState(442); winPartitionByClause(); } - setState(440); + setState(446); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::ORDER) { - setState(439); + setState(445); winOrderByClause(); } - setState(443); + setState(449); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::RANGE || _la == HogQLParser::ROWS) { - setState(442); + setState(448); winFrameClause(); } @@ -3626,7 +3700,7 @@ std::any HogQLParser::WinPartitionByClauseContext::accept(tree::ParseTreeVisitor HogQLParser::WinPartitionByClauseContext* HogQLParser::winPartitionByClause() { WinPartitionByClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 58, HogQLParser::RuleWinPartitionByClause); + enterRule(_localctx, 60, HogQLParser::RuleWinPartitionByClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3637,11 +3711,11 @@ HogQLParser::WinPartitionByClauseContext* HogQLParser::winPartitionByClause() { }); try { enterOuterAlt(_localctx, 1); - setState(445); + setState(451); match(HogQLParser::PARTITION); - setState(446); + setState(452); match(HogQLParser::BY); - setState(447); + setState(453); columnExprList(); } @@ -3687,7 +3761,7 @@ std::any HogQLParser::WinOrderByClauseContext::accept(tree::ParseTreeVisitor *vi HogQLParser::WinOrderByClauseContext* HogQLParser::winOrderByClause() { WinOrderByClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 60, HogQLParser::RuleWinOrderByClause); + enterRule(_localctx, 62, HogQLParser::RuleWinOrderByClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3698,11 +3772,11 @@ HogQLParser::WinOrderByClauseContext* HogQLParser::winOrderByClause() { }); try { enterOuterAlt(_localctx, 1); - setState(449); + setState(455); match(HogQLParser::ORDER); - setState(450); + setState(456); match(HogQLParser::BY); - setState(451); + setState(457); orderExprList(); } @@ -3748,7 +3822,7 @@ std::any HogQLParser::WinFrameClauseContext::accept(tree::ParseTreeVisitor *visi HogQLParser::WinFrameClauseContext* HogQLParser::winFrameClause() { WinFrameClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 62, HogQLParser::RuleWinFrameClause); + enterRule(_localctx, 64, HogQLParser::RuleWinFrameClause); size_t _la = 0; #if __cplusplus > 201703L @@ -3760,7 +3834,7 @@ HogQLParser::WinFrameClauseContext* HogQLParser::winFrameClause() { }); try { enterOuterAlt(_localctx, 1); - setState(453); + setState(459); _la = _input->LA(1); if (!(_la == HogQLParser::RANGE @@ -3771,7 +3845,7 @@ HogQLParser::WinFrameClauseContext* HogQLParser::winFrameClause() { _errHandler->reportMatch(this); consume(); } - setState(454); + setState(460); winFrameExtend(); } @@ -3843,7 +3917,7 @@ std::any HogQLParser::FrameBetweenContext::accept(tree::ParseTreeVisitor *visito } HogQLParser::WinFrameExtendContext* HogQLParser::winFrameExtend() { WinFrameExtendContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 64, HogQLParser::RuleWinFrameExtend); + enterRule(_localctx, 66, HogQLParser::RuleWinFrameExtend); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3853,7 +3927,7 @@ HogQLParser::WinFrameExtendContext* HogQLParser::winFrameExtend() { exitRule(); }); try { - setState(462); + setState(468); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::CURRENT: @@ -3869,7 +3943,7 @@ HogQLParser::WinFrameExtendContext* HogQLParser::winFrameExtend() { case HogQLParser::PLUS: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 1); - setState(456); + setState(462); winFrameBound(); break; } @@ -3877,13 +3951,13 @@ HogQLParser::WinFrameExtendContext* HogQLParser::winFrameExtend() { case HogQLParser::BETWEEN: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 2); - setState(457); + setState(463); match(HogQLParser::BETWEEN); - setState(458); + setState(464); winFrameBound(); - setState(459); + setState(465); match(HogQLParser::AND); - setState(460); + setState(466); winFrameBound(); break; } @@ -3947,7 +4021,7 @@ std::any HogQLParser::WinFrameBoundContext::accept(tree::ParseTreeVisitor *visit HogQLParser::WinFrameBoundContext* HogQLParser::winFrameBound() { WinFrameBoundContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 66, HogQLParser::RuleWinFrameBound); + enterRule(_localctx, 68, HogQLParser::RuleWinFrameBound); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3958,45 +4032,45 @@ HogQLParser::WinFrameBoundContext* HogQLParser::winFrameBound() { }); try { enterOuterAlt(_localctx, 1); - setState(476); + setState(482); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 61, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 62, _ctx)) { case 1: { - setState(464); + setState(470); match(HogQLParser::CURRENT); - setState(465); + setState(471); match(HogQLParser::ROW); break; } case 2: { - setState(466); + setState(472); match(HogQLParser::UNBOUNDED); - setState(467); + setState(473); match(HogQLParser::PRECEDING); break; } case 3: { - setState(468); + setState(474); match(HogQLParser::UNBOUNDED); - setState(469); + setState(475); match(HogQLParser::FOLLOWING); break; } case 4: { - setState(470); + setState(476); numberLiteral(); - setState(471); + setState(477); match(HogQLParser::PRECEDING); break; } case 5: { - setState(473); + setState(479); numberLiteral(); - setState(474); + setState(480); match(HogQLParser::FOLLOWING); break; } @@ -4044,7 +4118,7 @@ std::any HogQLParser::ExprContext::accept(tree::ParseTreeVisitor *visitor) { HogQLParser::ExprContext* HogQLParser::expr() { ExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 68, HogQLParser::RuleExpr); + enterRule(_localctx, 70, HogQLParser::RuleExpr); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -4055,9 +4129,9 @@ HogQLParser::ExprContext* HogQLParser::expr() { }); try { enterOuterAlt(_localctx, 1); - setState(478); + setState(484); columnExpr(0); - setState(479); + setState(485); match(HogQLParser::EOF); } @@ -4250,7 +4324,7 @@ std::any HogQLParser::ColumnTypeExprEnumContext::accept(tree::ParseTreeVisitor * } HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { ColumnTypeExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 70, HogQLParser::RuleColumnTypeExpr); + enterRule(_localctx, 72, HogQLParser::RuleColumnTypeExpr); size_t _la = 0; #if __cplusplus > 201703L @@ -4261,13 +4335,13 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { exitRule(); }); try { - setState(528); + setState(534); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 66, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 67, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 1); - setState(481); + setState(487); identifier(); break; } @@ -4275,29 +4349,29 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { case 2: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 2); - setState(482); + setState(488); identifier(); - setState(483); + setState(489); match(HogQLParser::LPAREN); - setState(484); + setState(490); identifier(); - setState(485); + setState(491); columnTypeExpr(); - setState(492); + setState(498); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(486); + setState(492); match(HogQLParser::COMMA); - setState(487); + setState(493); identifier(); - setState(488); - columnTypeExpr(); setState(494); + columnTypeExpr(); + setState(500); _errHandler->sync(this); _la = _input->LA(1); } - setState(495); + setState(501); match(HogQLParser::RPAREN); break; } @@ -4305,25 +4379,25 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { case 3: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 3); - setState(497); + setState(503); identifier(); - setState(498); + setState(504); match(HogQLParser::LPAREN); - setState(499); + setState(505); enumValue(); - setState(504); + setState(510); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(500); + setState(506); match(HogQLParser::COMMA); - setState(501); + setState(507); enumValue(); - setState(506); + setState(512); _errHandler->sync(this); _la = _input->LA(1); } - setState(507); + setState(513); match(HogQLParser::RPAREN); break; } @@ -4331,25 +4405,25 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { case 4: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 4); - setState(509); + setState(515); identifier(); - setState(510); + setState(516); match(HogQLParser::LPAREN); - setState(511); + setState(517); columnTypeExpr(); - setState(516); + setState(522); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(512); + setState(518); match(HogQLParser::COMMA); - setState(513); + setState(519); columnTypeExpr(); - setState(518); + setState(524); _errHandler->sync(this); _la = _input->LA(1); } - setState(519); + setState(525); match(HogQLParser::RPAREN); break; } @@ -4357,11 +4431,11 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { case 5: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 5); - setState(521); + setState(527); identifier(); - setState(522); + setState(528); match(HogQLParser::LPAREN); - setState(524); + setState(530); _errHandler->sync(this); _la = _input->LA(1); @@ -4370,10 +4444,10 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(523); + setState(529); columnExprList(); } - setState(526); + setState(532); match(HogQLParser::RPAREN); break; } @@ -4429,7 +4503,7 @@ std::any HogQLParser::ColumnExprListContext::accept(tree::ParseTreeVisitor *visi HogQLParser::ColumnExprListContext* HogQLParser::columnExprList() { ColumnExprListContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 72, HogQLParser::RuleColumnExprList); + enterRule(_localctx, 74, HogQLParser::RuleColumnExprList); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -4441,21 +4515,21 @@ HogQLParser::ColumnExprListContext* HogQLParser::columnExprList() { try { size_t alt; enterOuterAlt(_localctx, 1); - setState(530); + setState(536); columnExpr(0); - setState(535); + setState(541); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 67, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 68, _ctx); while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) { if (alt == 1) { - setState(531); + setState(537); match(HogQLParser::COMMA); - setState(532); + setState(538); columnExpr(0); } - setState(537); + setState(543); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 67, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 68, _ctx); } } @@ -5488,8 +5562,8 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { HogQLParser::ColumnExprContext *_localctx = _tracker.createInstance(_ctx, parentState); HogQLParser::ColumnExprContext *previousContext = _localctx; (void)previousContext; // Silence compiler, in case the context is not used by generated code. - size_t startState = 74; - enterRecursionRule(_localctx, 74, HogQLParser::RuleColumnExpr, precedence); + size_t startState = 76; + enterRecursionRule(_localctx, 76, HogQLParser::RuleColumnExpr, precedence); size_t _la = 0; @@ -5503,22 +5577,22 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { try { size_t alt; enterOuterAlt(_localctx, 1); - setState(668); + setState(674); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 80, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 81, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(539); + setState(545); match(HogQLParser::CASE); - setState(541); + setState(547); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 68, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 69, _ctx)) { case 1: { - setState(540); + setState(546); antlrcpp::downCast(_localctx)->caseExpr = columnExpr(0); break; } @@ -5526,33 +5600,33 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { default: break; } - setState(548); + setState(554); _errHandler->sync(this); _la = _input->LA(1); do { - setState(543); + setState(549); match(HogQLParser::WHEN); - setState(544); + setState(550); antlrcpp::downCast(_localctx)->whenExpr = columnExpr(0); - setState(545); + setState(551); match(HogQLParser::THEN); - setState(546); + setState(552); antlrcpp::downCast(_localctx)->thenExpr = columnExpr(0); - setState(550); + setState(556); _errHandler->sync(this); _la = _input->LA(1); } while (_la == HogQLParser::WHEN); - setState(554); + setState(560); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::ELSE) { - setState(552); + setState(558); match(HogQLParser::ELSE); - setState(553); + setState(559); antlrcpp::downCast(_localctx)->elseExpr = columnExpr(0); } - setState(556); + setState(562); match(HogQLParser::END); break; } @@ -5561,17 +5635,17 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(558); + setState(564); match(HogQLParser::CAST); - setState(559); + setState(565); match(HogQLParser::LPAREN); - setState(560); + setState(566); columnExpr(0); - setState(561); + setState(567); match(HogQLParser::AS); - setState(562); + setState(568); columnTypeExpr(); - setState(563); + setState(569); match(HogQLParser::RPAREN); break; } @@ -5580,9 +5654,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(565); + setState(571); match(HogQLParser::DATE); - setState(566); + setState(572); match(HogQLParser::STRING_LITERAL); break; } @@ -5591,17 +5665,17 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(567); + setState(573); match(HogQLParser::EXTRACT); - setState(568); + setState(574); match(HogQLParser::LPAREN); - setState(569); + setState(575); interval(); - setState(570); + setState(576); match(HogQLParser::FROM); - setState(571); + setState(577); columnExpr(0); - setState(572); + setState(578); match(HogQLParser::RPAREN); break; } @@ -5610,11 +5684,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(574); + setState(580); match(HogQLParser::INTERVAL); - setState(575); + setState(581); columnExpr(0); - setState(576); + setState(582); interval(); break; } @@ -5623,27 +5697,27 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(578); + setState(584); match(HogQLParser::SUBSTRING); - setState(579); + setState(585); match(HogQLParser::LPAREN); - setState(580); + setState(586); columnExpr(0); - setState(581); + setState(587); match(HogQLParser::FROM); - setState(582); + setState(588); columnExpr(0); - setState(585); + setState(591); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::FOR) { - setState(583); + setState(589); match(HogQLParser::FOR); - setState(584); + setState(590); columnExpr(0); } - setState(587); + setState(593); match(HogQLParser::RPAREN); break; } @@ -5652,9 +5726,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(589); + setState(595); match(HogQLParser::TIMESTAMP); - setState(590); + setState(596); match(HogQLParser::STRING_LITERAL); break; } @@ -5663,11 +5737,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(591); + setState(597); match(HogQLParser::TRIM); - setState(592); + setState(598); match(HogQLParser::LPAREN); - setState(593); + setState(599); _la = _input->LA(1); if (!(_la == HogQLParser::BOTH || _la == HogQLParser::LEADING || _la == HogQLParser::TRAILING)) { _errHandler->recoverInline(this); @@ -5676,13 +5750,13 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _errHandler->reportMatch(this); consume(); } - setState(594); + setState(600); match(HogQLParser::STRING_LITERAL); - setState(595); + setState(601); match(HogQLParser::FROM); - setState(596); + setState(602); columnExpr(0); - setState(597); + setState(603); match(HogQLParser::RPAREN); break; } @@ -5691,12 +5765,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(599); + setState(605); identifier(); - setState(600); + setState(606); match(HogQLParser::LPAREN); - setState(602); + setState(608); _errHandler->sync(this); _la = _input->LA(1); @@ -5705,18 +5779,18 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(601); + setState(607); columnExprList(); } - setState(604); + setState(610); match(HogQLParser::RPAREN); - setState(606); + setState(612); match(HogQLParser::OVER); - setState(607); + setState(613); match(HogQLParser::LPAREN); - setState(608); + setState(614); windowExpr(); - setState(609); + setState(615); match(HogQLParser::RPAREN); break; } @@ -5725,12 +5799,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(611); + setState(617); identifier(); - setState(612); + setState(618); match(HogQLParser::LPAREN); - setState(614); + setState(620); _errHandler->sync(this); _la = _input->LA(1); @@ -5739,14 +5813,14 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(613); + setState(619); columnExprList(); } - setState(616); + setState(622); match(HogQLParser::RPAREN); - setState(618); + setState(624); match(HogQLParser::OVER); - setState(619); + setState(625); identifier(); break; } @@ -5755,16 +5829,16 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(621); - identifier(); setState(627); + identifier(); + setState(633); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 75, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 76, _ctx)) { case 1: { - setState(622); + setState(628); match(HogQLParser::LPAREN); - setState(624); + setState(630); _errHandler->sync(this); _la = _input->LA(1); @@ -5773,10 +5847,10 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(623); + setState(629); columnExprList(); } - setState(626); + setState(632); match(HogQLParser::RPAREN); break; } @@ -5784,14 +5858,14 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { default: break; } - setState(629); + setState(635); match(HogQLParser::LPAREN); - setState(631); + setState(637); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 76, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 77, _ctx)) { case 1: { - setState(630); + setState(636); match(HogQLParser::DISTINCT); break; } @@ -5799,7 +5873,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { default: break; } - setState(634); + setState(640); _errHandler->sync(this); _la = _input->LA(1); @@ -5808,10 +5882,10 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(633); + setState(639); columnArgList(); } - setState(636); + setState(642); match(HogQLParser::RPAREN); break; } @@ -5820,7 +5894,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(638); + setState(644); hogqlxTagElement(); break; } @@ -5829,7 +5903,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(639); + setState(645); literal(); break; } @@ -5838,9 +5912,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(640); + setState(646); match(HogQLParser::DASH); - setState(641); + setState(647); columnExpr(18); break; } @@ -5849,9 +5923,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(642); + setState(648); match(HogQLParser::NOT); - setState(643); + setState(649); columnExpr(12); break; } @@ -5860,7 +5934,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(647); + setState(653); _errHandler->sync(this); _la = _input->LA(1); @@ -5870,12 +5944,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { ((1ULL << (_la - 128)) & -9) != 0) || _la == HogQLParser::JSON_TRUE || _la == HogQLParser::IDENTIFIER) { - setState(644); + setState(650); tableIdentifier(); - setState(645); + setState(651); match(HogQLParser::DOT); } - setState(649); + setState(655); match(HogQLParser::ASTERISK); break; } @@ -5884,11 +5958,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(650); + setState(656); match(HogQLParser::LPAREN); - setState(651); + setState(657); selectUnionStmt(); - setState(652); + setState(658); match(HogQLParser::RPAREN); break; } @@ -5897,11 +5971,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(654); + setState(660); match(HogQLParser::LPAREN); - setState(655); + setState(661); columnExpr(0); - setState(656); + setState(662); match(HogQLParser::RPAREN); break; } @@ -5910,11 +5984,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(658); + setState(664); match(HogQLParser::LPAREN); - setState(659); + setState(665); columnExprList(); - setState(660); + setState(666); match(HogQLParser::RPAREN); break; } @@ -5923,9 +5997,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(662); + setState(668); match(HogQLParser::LBRACKET); - setState(664); + setState(670); _errHandler->sync(this); _la = _input->LA(1); @@ -5934,10 +6008,10 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(663); + setState(669); columnExprList(); } - setState(666); + setState(672); match(HogQLParser::RBRACKET); break; } @@ -5946,7 +6020,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(667); + setState(673); columnIdentifier(); break; } @@ -5955,42 +6029,42 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { break; } _ctx->stop = _input->LT(-1); - setState(763); + setState(769); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 91, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 92, _ctx); while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) { if (alt == 1) { if (!_parseListeners.empty()) triggerExitRuleEvent(); previousContext = _localctx; - setState(761); + setState(767); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 90, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 91, _ctx)) { case 1: { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; newContext->left = previousContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(670); + setState(676); if (!(precpred(_ctx, 17))) throw FailedPredicateException(this, "precpred(_ctx, 17)"); - setState(674); + setState(680); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::ASTERISK: { - setState(671); + setState(677); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::ASTERISK); break; } case HogQLParser::SLASH: { - setState(672); + setState(678); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::SLASH); break; } case HogQLParser::PERCENT: { - setState(673); + setState(679); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::PERCENT); break; } @@ -5998,7 +6072,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { default: throw NoViableAltException(this); } - setState(676); + setState(682); antlrcpp::downCast(_localctx)->right = columnExpr(18); break; } @@ -6008,26 +6082,26 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = newContext; newContext->left = previousContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(677); + setState(683); if (!(precpred(_ctx, 16))) throw FailedPredicateException(this, "precpred(_ctx, 16)"); - setState(681); + setState(687); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::PLUS: { - setState(678); + setState(684); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::PLUS); break; } case HogQLParser::DASH: { - setState(679); + setState(685); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::DASH); break; } case HogQLParser::CONCAT: { - setState(680); + setState(686); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::CONCAT); break; } @@ -6035,7 +6109,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { default: throw NoViableAltException(this); } - setState(683); + setState(689); antlrcpp::downCast(_localctx)->right = columnExpr(17); break; } @@ -6045,86 +6119,86 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = newContext; newContext->left = previousContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(684); + setState(690); if (!(precpred(_ctx, 15))) throw FailedPredicateException(this, "precpred(_ctx, 15)"); - setState(709); + setState(715); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 86, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 87, _ctx)) { case 1: { - setState(685); + setState(691); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::EQ_DOUBLE); break; } case 2: { - setState(686); + setState(692); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::EQ_SINGLE); break; } case 3: { - setState(687); + setState(693); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::NOT_EQ); break; } case 4: { - setState(688); + setState(694); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::LT_EQ); break; } case 5: { - setState(689); + setState(695); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::LT); break; } case 6: { - setState(690); + setState(696); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::GT_EQ); break; } case 7: { - setState(691); + setState(697); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::GT); break; } case 8: { - setState(693); + setState(699); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::NOT) { - setState(692); + setState(698); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::NOT); } - setState(695); + setState(701); match(HogQLParser::IN); - setState(697); + setState(703); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::COHORT) { - setState(696); + setState(702); match(HogQLParser::COHORT); } break; } case 9: { - setState(700); + setState(706); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::NOT) { - setState(699); + setState(705); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::NOT); } - setState(702); + setState(708); _la = _input->LA(1); if (!(_la == HogQLParser::ILIKE @@ -6139,37 +6213,37 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { } case 10: { - setState(703); + setState(709); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::REGEX_SINGLE); break; } case 11: { - setState(704); + setState(710); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::REGEX_DOUBLE); break; } case 12: { - setState(705); + setState(711); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::NOT_REGEX); break; } case 13: { - setState(706); + setState(712); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::IREGEX_SINGLE); break; } case 14: { - setState(707); + setState(713); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::IREGEX_DOUBLE); break; } case 15: { - setState(708); + setState(714); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::NOT_IREGEX); break; } @@ -6177,7 +6251,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { default: break; } - setState(711); + setState(717); antlrcpp::downCast(_localctx)->right = columnExpr(16); break; } @@ -6186,12 +6260,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(712); + setState(718); if (!(precpred(_ctx, 13))) throw FailedPredicateException(this, "precpred(_ctx, 13)"); - setState(713); + setState(719); match(HogQLParser::NULLISH); - setState(714); + setState(720); columnExpr(14); break; } @@ -6200,12 +6274,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(715); + setState(721); if (!(precpred(_ctx, 11))) throw FailedPredicateException(this, "precpred(_ctx, 11)"); - setState(716); + setState(722); match(HogQLParser::AND); - setState(717); + setState(723); columnExpr(12); break; } @@ -6214,12 +6288,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(718); + setState(724); if (!(precpred(_ctx, 10))) throw FailedPredicateException(this, "precpred(_ctx, 10)"); - setState(719); + setState(725); match(HogQLParser::OR); - setState(720); + setState(726); columnExpr(11); break; } @@ -6228,24 +6302,24 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(721); + setState(727); if (!(precpred(_ctx, 9))) throw FailedPredicateException(this, "precpred(_ctx, 9)"); - setState(723); + setState(729); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::NOT) { - setState(722); + setState(728); match(HogQLParser::NOT); } - setState(725); + setState(731); match(HogQLParser::BETWEEN); - setState(726); + setState(732); columnExpr(0); - setState(727); + setState(733); match(HogQLParser::AND); - setState(728); + setState(734); columnExpr(10); break; } @@ -6254,16 +6328,16 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(730); + setState(736); if (!(precpred(_ctx, 8))) throw FailedPredicateException(this, "precpred(_ctx, 8)"); - setState(731); + setState(737); match(HogQLParser::QUERY); - setState(732); + setState(738); columnExpr(0); - setState(733); + setState(739); match(HogQLParser::COLON); - setState(734); + setState(740); columnExpr(8); break; } @@ -6272,14 +6346,14 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(736); + setState(742); if (!(precpred(_ctx, 21))) throw FailedPredicateException(this, "precpred(_ctx, 21)"); - setState(737); + setState(743); match(HogQLParser::LBRACKET); - setState(738); + setState(744); columnExpr(0); - setState(739); + setState(745); match(HogQLParser::RBRACKET); break; } @@ -6288,12 +6362,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(741); + setState(747); if (!(precpred(_ctx, 20))) throw FailedPredicateException(this, "precpred(_ctx, 20)"); - setState(742); + setState(748); match(HogQLParser::DOT); - setState(743); + setState(749); match(HogQLParser::DECIMAL_LITERAL); break; } @@ -6302,12 +6376,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(744); + setState(750); if (!(precpred(_ctx, 19))) throw FailedPredicateException(this, "precpred(_ctx, 19)"); - setState(745); + setState(751); match(HogQLParser::DOT); - setState(746); + setState(752); identifier(); break; } @@ -6316,20 +6390,20 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(747); + setState(753); if (!(precpred(_ctx, 14))) throw FailedPredicateException(this, "precpred(_ctx, 14)"); - setState(748); + setState(754); match(HogQLParser::IS); - setState(750); + setState(756); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::NOT) { - setState(749); + setState(755); match(HogQLParser::NOT); } - setState(752); + setState(758); match(HogQLParser::NULL_SQL); break; } @@ -6338,30 +6412,30 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(753); + setState(759); if (!(precpred(_ctx, 7))) throw FailedPredicateException(this, "precpred(_ctx, 7)"); - setState(759); + setState(765); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 89, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 90, _ctx)) { case 1: { - setState(754); + setState(760); alias(); break; } case 2: { - setState(755); + setState(761); match(HogQLParser::AS); - setState(756); + setState(762); identifier(); break; } case 3: { - setState(757); + setState(763); match(HogQLParser::AS); - setState(758); + setState(764); match(HogQLParser::STRING_LITERAL); break; } @@ -6376,9 +6450,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { break; } } - setState(765); + setState(771); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 91, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 92, _ctx); } } catch (RecognitionException &e) { @@ -6426,7 +6500,7 @@ std::any HogQLParser::ColumnArgListContext::accept(tree::ParseTreeVisitor *visit HogQLParser::ColumnArgListContext* HogQLParser::columnArgList() { ColumnArgListContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 76, HogQLParser::RuleColumnArgList); + enterRule(_localctx, 78, HogQLParser::RuleColumnArgList); size_t _la = 0; #if __cplusplus > 201703L @@ -6438,17 +6512,17 @@ HogQLParser::ColumnArgListContext* HogQLParser::columnArgList() { }); try { enterOuterAlt(_localctx, 1); - setState(766); + setState(772); columnArgExpr(); - setState(771); + setState(777); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(767); + setState(773); match(HogQLParser::COMMA); - setState(768); + setState(774); columnArgExpr(); - setState(773); + setState(779); _errHandler->sync(this); _la = _input->LA(1); } @@ -6492,7 +6566,7 @@ std::any HogQLParser::ColumnArgExprContext::accept(tree::ParseTreeVisitor *visit HogQLParser::ColumnArgExprContext* HogQLParser::columnArgExpr() { ColumnArgExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 78, HogQLParser::RuleColumnArgExpr); + enterRule(_localctx, 80, HogQLParser::RuleColumnArgExpr); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -6502,19 +6576,19 @@ HogQLParser::ColumnArgExprContext* HogQLParser::columnArgExpr() { exitRule(); }); try { - setState(776); + setState(782); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 93, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 94, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(774); + setState(780); columnLambdaExpr(); break; } case 2: { enterOuterAlt(_localctx, 2); - setState(775); + setState(781); columnExpr(0); break; } @@ -6586,7 +6660,7 @@ std::any HogQLParser::ColumnLambdaExprContext::accept(tree::ParseTreeVisitor *vi HogQLParser::ColumnLambdaExprContext* HogQLParser::columnLambdaExpr() { ColumnLambdaExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 80, HogQLParser::RuleColumnLambdaExpr); + enterRule(_localctx, 82, HogQLParser::RuleColumnLambdaExpr); size_t _la = 0; #if __cplusplus > 201703L @@ -6598,27 +6672,27 @@ HogQLParser::ColumnLambdaExprContext* HogQLParser::columnLambdaExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(797); + setState(803); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::LPAREN: { - setState(778); + setState(784); match(HogQLParser::LPAREN); - setState(779); + setState(785); identifier(); - setState(784); + setState(790); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(780); + setState(786); match(HogQLParser::COMMA); - setState(781); + setState(787); identifier(); - setState(786); + setState(792); _errHandler->sync(this); _la = _input->LA(1); } - setState(787); + setState(793); match(HogQLParser::RPAREN); break; } @@ -6810,17 +6884,17 @@ HogQLParser::ColumnLambdaExprContext* HogQLParser::columnLambdaExpr() { case HogQLParser::JSON_FALSE: case HogQLParser::JSON_TRUE: case HogQLParser::IDENTIFIER: { - setState(789); + setState(795); identifier(); - setState(794); + setState(800); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(790); + setState(796); match(HogQLParser::COMMA); - setState(791); + setState(797); identifier(); - setState(796); + setState(802); _errHandler->sync(this); _la = _input->LA(1); } @@ -6830,9 +6904,9 @@ HogQLParser::ColumnLambdaExprContext* HogQLParser::columnLambdaExpr() { default: throw NoViableAltException(this); } - setState(799); + setState(805); match(HogQLParser::ARROW); - setState(800); + setState(806); columnExpr(0); } @@ -6948,7 +7022,7 @@ std::any HogQLParser::HogqlxTagElementNestedContext::accept(tree::ParseTreeVisit } HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() { HogqlxTagElementContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 82, HogQLParser::RuleHogqlxTagElement); + enterRule(_localctx, 84, HogQLParser::RuleHogqlxTagElement); size_t _la = 0; #if __cplusplus > 201703L @@ -6959,17 +7033,17 @@ HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() { exitRule(); }); try { - setState(830); + setState(836); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 100, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 101, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 1); - setState(802); + setState(808); match(HogQLParser::LT); - setState(803); + setState(809); identifier(); - setState(807); + setState(813); _errHandler->sync(this); _la = _input->LA(1); while ((((_la & ~ 0x3fULL) == 0) && @@ -6978,15 +7052,15 @@ HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() { ((1ULL << (_la - 128)) & -9) != 0) || _la == HogQLParser::JSON_TRUE || _la == HogQLParser::IDENTIFIER) { - setState(804); + setState(810); hogqlxTagAttribute(); - setState(809); + setState(815); _errHandler->sync(this); _la = _input->LA(1); } - setState(810); + setState(816); match(HogQLParser::SLASH); - setState(811); + setState(817); match(HogQLParser::GT); break; } @@ -6994,11 +7068,11 @@ HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() { case 2: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 2); - setState(813); + setState(819); match(HogQLParser::LT); - setState(814); + setState(820); identifier(); - setState(818); + setState(824); _errHandler->sync(this); _la = _input->LA(1); while ((((_la & ~ 0x3fULL) == 0) && @@ -7007,20 +7081,20 @@ HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() { ((1ULL << (_la - 128)) & -9) != 0) || _la == HogQLParser::JSON_TRUE || _la == HogQLParser::IDENTIFIER) { - setState(815); + setState(821); hogqlxTagAttribute(); - setState(820); + setState(826); _errHandler->sync(this); _la = _input->LA(1); } - setState(821); + setState(827); match(HogQLParser::GT); - setState(823); + setState(829); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 99, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 100, _ctx)) { case 1: { - setState(822); + setState(828); hogqlxTagElement(); break; } @@ -7028,13 +7102,13 @@ HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() { default: break; } - setState(825); + setState(831); match(HogQLParser::LT); - setState(826); + setState(832); match(HogQLParser::SLASH); - setState(827); + setState(833); identifier(); - setState(828); + setState(834); match(HogQLParser::GT); break; } @@ -7098,7 +7172,7 @@ std::any HogQLParser::HogqlxTagAttributeContext::accept(tree::ParseTreeVisitor * HogQLParser::HogqlxTagAttributeContext* HogQLParser::hogqlxTagAttribute() { HogqlxTagAttributeContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 84, HogQLParser::RuleHogqlxTagAttribute); + enterRule(_localctx, 86, HogQLParser::RuleHogqlxTagAttribute); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -7108,38 +7182,38 @@ HogQLParser::HogqlxTagAttributeContext* HogQLParser::hogqlxTagAttribute() { exitRule(); }); try { - setState(843); + setState(849); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 101, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 102, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(832); + setState(838); identifier(); - setState(833); + setState(839); match(HogQLParser::EQ_SINGLE); - setState(834); + setState(840); match(HogQLParser::STRING_LITERAL); break; } case 2: { enterOuterAlt(_localctx, 2); - setState(836); + setState(842); identifier(); - setState(837); + setState(843); match(HogQLParser::EQ_SINGLE); - setState(838); + setState(844); match(HogQLParser::LBRACE); - setState(839); + setState(845); columnExpr(0); - setState(840); + setState(846); match(HogQLParser::RBRACE); break; } case 3: { enterOuterAlt(_localctx, 3); - setState(842); + setState(848); identifier(); break; } @@ -7195,7 +7269,7 @@ std::any HogQLParser::WithExprListContext::accept(tree::ParseTreeVisitor *visito HogQLParser::WithExprListContext* HogQLParser::withExprList() { WithExprListContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 86, HogQLParser::RuleWithExprList); + enterRule(_localctx, 88, HogQLParser::RuleWithExprList); size_t _la = 0; #if __cplusplus > 201703L @@ -7207,17 +7281,17 @@ HogQLParser::WithExprListContext* HogQLParser::withExprList() { }); try { enterOuterAlt(_localctx, 1); - setState(845); + setState(851); withExpr(); - setState(850); + setState(856); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(846); + setState(852); match(HogQLParser::COMMA); - setState(847); + setState(853); withExpr(); - setState(852); + setState(858); _errHandler->sync(this); _la = _input->LA(1); } @@ -7303,7 +7377,7 @@ std::any HogQLParser::WithExprSubqueryContext::accept(tree::ParseTreeVisitor *vi } HogQLParser::WithExprContext* HogQLParser::withExpr() { WithExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 88, HogQLParser::RuleWithExpr); + enterRule(_localctx, 90, HogQLParser::RuleWithExpr); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -7313,21 +7387,21 @@ HogQLParser::WithExprContext* HogQLParser::withExpr() { exitRule(); }); try { - setState(863); + setState(869); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 103, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 104, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 1); - setState(853); + setState(859); identifier(); - setState(854); + setState(860); match(HogQLParser::AS); - setState(855); + setState(861); match(HogQLParser::LPAREN); - setState(856); + setState(862); selectUnionStmt(); - setState(857); + setState(863); match(HogQLParser::RPAREN); break; } @@ -7335,11 +7409,11 @@ HogQLParser::WithExprContext* HogQLParser::withExpr() { case 2: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 2); - setState(859); + setState(865); columnExpr(0); - setState(860); + setState(866); match(HogQLParser::AS); - setState(861); + setState(867); identifier(); break; } @@ -7395,7 +7469,7 @@ std::any HogQLParser::ColumnIdentifierContext::accept(tree::ParseTreeVisitor *vi HogQLParser::ColumnIdentifierContext* HogQLParser::columnIdentifier() { ColumnIdentifierContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 90, HogQLParser::RuleColumnIdentifier); + enterRule(_localctx, 92, HogQLParser::RuleColumnIdentifier); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -7405,12 +7479,12 @@ HogQLParser::ColumnIdentifierContext* HogQLParser::columnIdentifier() { exitRule(); }); try { - setState(872); + setState(878); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::LBRACE: { enterOuterAlt(_localctx, 1); - setState(865); + setState(871); placeholder(); break; } @@ -7603,14 +7677,14 @@ HogQLParser::ColumnIdentifierContext* HogQLParser::columnIdentifier() { case HogQLParser::JSON_TRUE: case HogQLParser::IDENTIFIER: { enterOuterAlt(_localctx, 2); - setState(869); + setState(875); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 104, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 105, _ctx)) { case 1: { - setState(866); + setState(872); tableIdentifier(); - setState(867); + setState(873); match(HogQLParser::DOT); break; } @@ -7618,7 +7692,7 @@ HogQLParser::ColumnIdentifierContext* HogQLParser::columnIdentifier() { default: break; } - setState(871); + setState(877); nestedIdentifier(); break; } @@ -7674,7 +7748,7 @@ std::any HogQLParser::NestedIdentifierContext::accept(tree::ParseTreeVisitor *vi HogQLParser::NestedIdentifierContext* HogQLParser::nestedIdentifier() { NestedIdentifierContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 92, HogQLParser::RuleNestedIdentifier); + enterRule(_localctx, 94, HogQLParser::RuleNestedIdentifier); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -7686,21 +7760,21 @@ HogQLParser::NestedIdentifierContext* HogQLParser::nestedIdentifier() { try { size_t alt; enterOuterAlt(_localctx, 1); - setState(874); + setState(880); identifier(); - setState(879); + setState(885); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 106, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 107, _ctx); while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) { if (alt == 1) { - setState(875); + setState(881); match(HogQLParser::DOT); - setState(876); + setState(882); identifier(); } - setState(881); + setState(887); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 106, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 107, _ctx); } } @@ -7849,8 +7923,8 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { HogQLParser::TableExprContext *_localctx = _tracker.createInstance(_ctx, parentState); HogQLParser::TableExprContext *previousContext = _localctx; (void)previousContext; // Silence compiler, in case the context is not used by generated code. - size_t startState = 94; - enterRecursionRule(_localctx, 94, HogQLParser::RuleTableExpr, precedence); + size_t startState = 96; + enterRecursionRule(_localctx, 96, HogQLParser::RuleTableExpr, precedence); @@ -7864,15 +7938,15 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { try { size_t alt; enterOuterAlt(_localctx, 1); - setState(891); + setState(897); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 107, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 108, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(883); + setState(889); tableIdentifier(); break; } @@ -7881,7 +7955,7 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(884); + setState(890); tableFunctionExpr(); break; } @@ -7890,11 +7964,11 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(885); + setState(891); match(HogQLParser::LPAREN); - setState(886); + setState(892); selectUnionStmt(); - setState(887); + setState(893); match(HogQLParser::RPAREN); break; } @@ -7903,7 +7977,7 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(889); + setState(895); hogqlxTagElement(); break; } @@ -7912,7 +7986,7 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(890); + setState(896); placeholder(); break; } @@ -7921,9 +7995,9 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { break; } _ctx->stop = _input->LT(-1); - setState(901); + setState(907); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 109, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 110, _ctx); while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) { if (alt == 1) { if (!_parseListeners.empty()) @@ -7932,10 +8006,10 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleTableExpr); - setState(893); + setState(899); if (!(precpred(_ctx, 3))) throw FailedPredicateException(this, "precpred(_ctx, 3)"); - setState(897); + setState(903); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::DATE: @@ -7943,15 +8017,15 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { case HogQLParser::ID: case HogQLParser::KEY: case HogQLParser::IDENTIFIER: { - setState(894); + setState(900); alias(); break; } case HogQLParser::AS: { - setState(895); + setState(901); match(HogQLParser::AS); - setState(896); + setState(902); identifier(); break; } @@ -7960,9 +8034,9 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { throw NoViableAltException(this); } } - setState(903); + setState(909); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 109, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 110, _ctx); } } catch (RecognitionException &e) { @@ -8010,7 +8084,7 @@ std::any HogQLParser::TableFunctionExprContext::accept(tree::ParseTreeVisitor *v HogQLParser::TableFunctionExprContext* HogQLParser::tableFunctionExpr() { TableFunctionExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 96, HogQLParser::RuleTableFunctionExpr); + enterRule(_localctx, 98, HogQLParser::RuleTableFunctionExpr); size_t _la = 0; #if __cplusplus > 201703L @@ -8022,11 +8096,11 @@ HogQLParser::TableFunctionExprContext* HogQLParser::tableFunctionExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(904); + setState(910); identifier(); - setState(905); + setState(911); match(HogQLParser::LPAREN); - setState(907); + setState(913); _errHandler->sync(this); _la = _input->LA(1); @@ -8035,10 +8109,10 @@ HogQLParser::TableFunctionExprContext* HogQLParser::tableFunctionExpr() { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(906); + setState(912); tableArgList(); } - setState(909); + setState(915); match(HogQLParser::RPAREN); } @@ -8084,7 +8158,7 @@ std::any HogQLParser::TableIdentifierContext::accept(tree::ParseTreeVisitor *vis HogQLParser::TableIdentifierContext* HogQLParser::tableIdentifier() { TableIdentifierContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 98, HogQLParser::RuleTableIdentifier); + enterRule(_localctx, 100, HogQLParser::RuleTableIdentifier); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -8095,14 +8169,14 @@ HogQLParser::TableIdentifierContext* HogQLParser::tableIdentifier() { }); try { enterOuterAlt(_localctx, 1); - setState(914); + setState(920); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 111, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 112, _ctx)) { case 1: { - setState(911); + setState(917); databaseIdentifier(); - setState(912); + setState(918); match(HogQLParser::DOT); break; } @@ -8110,7 +8184,7 @@ HogQLParser::TableIdentifierContext* HogQLParser::tableIdentifier() { default: break; } - setState(916); + setState(922); identifier(); } @@ -8160,7 +8234,7 @@ std::any HogQLParser::TableArgListContext::accept(tree::ParseTreeVisitor *visito HogQLParser::TableArgListContext* HogQLParser::tableArgList() { TableArgListContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 100, HogQLParser::RuleTableArgList); + enterRule(_localctx, 102, HogQLParser::RuleTableArgList); size_t _la = 0; #if __cplusplus > 201703L @@ -8172,17 +8246,17 @@ HogQLParser::TableArgListContext* HogQLParser::tableArgList() { }); try { enterOuterAlt(_localctx, 1); - setState(918); + setState(924); columnExpr(0); - setState(923); + setState(929); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(919); + setState(925); match(HogQLParser::COMMA); - setState(920); + setState(926); columnExpr(0); - setState(925); + setState(931); _errHandler->sync(this); _la = _input->LA(1); } @@ -8222,7 +8296,7 @@ std::any HogQLParser::DatabaseIdentifierContext::accept(tree::ParseTreeVisitor * HogQLParser::DatabaseIdentifierContext* HogQLParser::databaseIdentifier() { DatabaseIdentifierContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 102, HogQLParser::RuleDatabaseIdentifier); + enterRule(_localctx, 104, HogQLParser::RuleDatabaseIdentifier); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -8233,7 +8307,7 @@ HogQLParser::DatabaseIdentifierContext* HogQLParser::databaseIdentifier() { }); try { enterOuterAlt(_localctx, 1); - setState(926); + setState(932); identifier(); } @@ -8287,7 +8361,7 @@ std::any HogQLParser::FloatingLiteralContext::accept(tree::ParseTreeVisitor *vis HogQLParser::FloatingLiteralContext* HogQLParser::floatingLiteral() { FloatingLiteralContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 104, HogQLParser::RuleFloatingLiteral); + enterRule(_localctx, 106, HogQLParser::RuleFloatingLiteral); size_t _la = 0; #if __cplusplus > 201703L @@ -8298,21 +8372,21 @@ HogQLParser::FloatingLiteralContext* HogQLParser::floatingLiteral() { exitRule(); }); try { - setState(936); + setState(942); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::FLOATING_LITERAL: { enterOuterAlt(_localctx, 1); - setState(928); + setState(934); match(HogQLParser::FLOATING_LITERAL); break; } case HogQLParser::DOT: { enterOuterAlt(_localctx, 2); - setState(929); + setState(935); match(HogQLParser::DOT); - setState(930); + setState(936); _la = _input->LA(1); if (!(_la == HogQLParser::OCTAL_LITERAL @@ -8328,16 +8402,16 @@ HogQLParser::FloatingLiteralContext* HogQLParser::floatingLiteral() { case HogQLParser::DECIMAL_LITERAL: { enterOuterAlt(_localctx, 3); - setState(931); + setState(937); match(HogQLParser::DECIMAL_LITERAL); - setState(932); + setState(938); match(HogQLParser::DOT); - setState(934); + setState(940); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 113, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 114, _ctx)) { case 1: { - setState(933); + setState(939); _la = _input->LA(1); if (!(_la == HogQLParser::OCTAL_LITERAL @@ -8424,7 +8498,7 @@ std::any HogQLParser::NumberLiteralContext::accept(tree::ParseTreeVisitor *visit HogQLParser::NumberLiteralContext* HogQLParser::numberLiteral() { NumberLiteralContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 106, HogQLParser::RuleNumberLiteral); + enterRule(_localctx, 108, HogQLParser::RuleNumberLiteral); size_t _la = 0; #if __cplusplus > 201703L @@ -8436,14 +8510,14 @@ HogQLParser::NumberLiteralContext* HogQLParser::numberLiteral() { }); try { enterOuterAlt(_localctx, 1); - setState(939); + setState(945); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::DASH || _la == HogQLParser::PLUS) { - setState(938); + setState(944); _la = _input->LA(1); if (!(_la == HogQLParser::DASH @@ -8455,41 +8529,41 @@ HogQLParser::NumberLiteralContext* HogQLParser::numberLiteral() { consume(); } } - setState(947); + setState(953); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 116, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 117, _ctx)) { case 1: { - setState(941); + setState(947); floatingLiteral(); break; } case 2: { - setState(942); + setState(948); match(HogQLParser::OCTAL_LITERAL); break; } case 3: { - setState(943); + setState(949); match(HogQLParser::DECIMAL_LITERAL); break; } case 4: { - setState(944); + setState(950); match(HogQLParser::HEXADECIMAL_LITERAL); break; } case 5: { - setState(945); + setState(951); match(HogQLParser::INF); break; } case 6: { - setState(946); + setState(952); match(HogQLParser::NAN_SQL); break; } @@ -8541,7 +8615,7 @@ std::any HogQLParser::LiteralContext::accept(tree::ParseTreeVisitor *visitor) { HogQLParser::LiteralContext* HogQLParser::literal() { LiteralContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 108, HogQLParser::RuleLiteral); + enterRule(_localctx, 110, HogQLParser::RuleLiteral); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -8551,7 +8625,7 @@ HogQLParser::LiteralContext* HogQLParser::literal() { exitRule(); }); try { - setState(952); + setState(958); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::INF: @@ -8564,21 +8638,21 @@ HogQLParser::LiteralContext* HogQLParser::literal() { case HogQLParser::DOT: case HogQLParser::PLUS: { enterOuterAlt(_localctx, 1); - setState(949); + setState(955); numberLiteral(); break; } case HogQLParser::STRING_LITERAL: { enterOuterAlt(_localctx, 2); - setState(950); + setState(956); match(HogQLParser::STRING_LITERAL); break; } case HogQLParser::NULL_SQL: { enterOuterAlt(_localctx, 3); - setState(951); + setState(957); match(HogQLParser::NULL_SQL); break; } @@ -8650,7 +8724,7 @@ std::any HogQLParser::IntervalContext::accept(tree::ParseTreeVisitor *visitor) { HogQLParser::IntervalContext* HogQLParser::interval() { IntervalContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 110, HogQLParser::RuleInterval); + enterRule(_localctx, 112, HogQLParser::RuleInterval); size_t _la = 0; #if __cplusplus > 201703L @@ -8662,7 +8736,7 @@ HogQLParser::IntervalContext* HogQLParser::interval() { }); try { enterOuterAlt(_localctx, 1); - setState(954); + setState(960); _la = _input->LA(1); if (!(_la == HogQLParser::DAY || ((((_la - 76) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 76)) & 72057615512764417) != 0) || ((((_la - 145) & ~ 0x3fULL) == 0) && @@ -9417,7 +9491,7 @@ std::any HogQLParser::KeywordContext::accept(tree::ParseTreeVisitor *visitor) { HogQLParser::KeywordContext* HogQLParser::keyword() { KeywordContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 112, HogQLParser::RuleKeyword); + enterRule(_localctx, 114, HogQLParser::RuleKeyword); size_t _la = 0; #if __cplusplus > 201703L @@ -9429,7 +9503,7 @@ HogQLParser::KeywordContext* HogQLParser::keyword() { }); try { enterOuterAlt(_localctx, 1); - setState(956); + setState(962); _la = _input->LA(1); if (!(((((_la - 2) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 2)) & -34368126977) != 0) || ((((_la - 66) & ~ 0x3fULL) == 0) && @@ -9489,7 +9563,7 @@ std::any HogQLParser::KeywordForAliasContext::accept(tree::ParseTreeVisitor *vis HogQLParser::KeywordForAliasContext* HogQLParser::keywordForAlias() { KeywordForAliasContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 114, HogQLParser::RuleKeywordForAlias); + enterRule(_localctx, 116, HogQLParser::RuleKeywordForAlias); size_t _la = 0; #if __cplusplus > 201703L @@ -9501,7 +9575,7 @@ HogQLParser::KeywordForAliasContext* HogQLParser::keywordForAlias() { }); try { enterOuterAlt(_localctx, 1); - setState(958); + setState(964); _la = _input->LA(1); if (!(((((_la - 36) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 36)) & 36030996109328385) != 0))) { @@ -9551,7 +9625,7 @@ std::any HogQLParser::AliasContext::accept(tree::ParseTreeVisitor *visitor) { HogQLParser::AliasContext* HogQLParser::alias() { AliasContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 116, HogQLParser::RuleAlias); + enterRule(_localctx, 118, HogQLParser::RuleAlias); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -9561,12 +9635,12 @@ HogQLParser::AliasContext* HogQLParser::alias() { exitRule(); }); try { - setState(962); + setState(968); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::IDENTIFIER: { enterOuterAlt(_localctx, 1); - setState(960); + setState(966); match(HogQLParser::IDENTIFIER); break; } @@ -9576,7 +9650,7 @@ HogQLParser::AliasContext* HogQLParser::alias() { case HogQLParser::ID: case HogQLParser::KEY: { enterOuterAlt(_localctx, 2); - setState(961); + setState(967); keywordForAlias(); break; } @@ -9628,7 +9702,7 @@ std::any HogQLParser::IdentifierContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::IdentifierContext* HogQLParser::identifier() { IdentifierContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 118, HogQLParser::RuleIdentifier); + enterRule(_localctx, 120, HogQLParser::RuleIdentifier); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -9638,12 +9712,12 @@ HogQLParser::IdentifierContext* HogQLParser::identifier() { exitRule(); }); try { - setState(967); + setState(973); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::IDENTIFIER: { enterOuterAlt(_localctx, 1); - setState(964); + setState(970); match(HogQLParser::IDENTIFIER); break; } @@ -9657,7 +9731,7 @@ HogQLParser::IdentifierContext* HogQLParser::identifier() { case HogQLParser::WEEK: case HogQLParser::YEAR: { enterOuterAlt(_localctx, 2); - setState(965); + setState(971); interval(); break; } @@ -9841,7 +9915,7 @@ HogQLParser::IdentifierContext* HogQLParser::identifier() { case HogQLParser::JSON_FALSE: case HogQLParser::JSON_TRUE: { enterOuterAlt(_localctx, 3); - setState(966); + setState(972); keyword(); break; } @@ -9893,7 +9967,7 @@ std::any HogQLParser::EnumValueContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::EnumValueContext* HogQLParser::enumValue() { EnumValueContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 120, HogQLParser::RuleEnumValue); + enterRule(_localctx, 122, HogQLParser::RuleEnumValue); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -9904,11 +9978,11 @@ HogQLParser::EnumValueContext* HogQLParser::enumValue() { }); try { enterOuterAlt(_localctx, 1); - setState(969); + setState(975); match(HogQLParser::STRING_LITERAL); - setState(970); + setState(976); match(HogQLParser::EQ_SINGLE); - setState(971); + setState(977); numberLiteral(); } @@ -9954,7 +10028,7 @@ std::any HogQLParser::PlaceholderContext::accept(tree::ParseTreeVisitor *visitor HogQLParser::PlaceholderContext* HogQLParser::placeholder() { PlaceholderContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 122, HogQLParser::RulePlaceholder); + enterRule(_localctx, 124, HogQLParser::RulePlaceholder); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -9965,11 +10039,11 @@ HogQLParser::PlaceholderContext* HogQLParser::placeholder() { }); try { enterOuterAlt(_localctx, 1); - setState(973); + setState(979); match(HogQLParser::LBRACE); - setState(974); + setState(980); identifier(); - setState(975); + setState(981); match(HogQLParser::RBRACE); } @@ -9984,9 +10058,9 @@ HogQLParser::PlaceholderContext* HogQLParser::placeholder() { bool HogQLParser::sempred(RuleContext *context, size_t ruleIndex, size_t predicateIndex) { switch (ruleIndex) { - case 18: return joinExprSempred(antlrcpp::downCast(context), predicateIndex); - case 37: return columnExprSempred(antlrcpp::downCast(context), predicateIndex); - case 47: return tableExprSempred(antlrcpp::downCast(context), predicateIndex); + case 19: return joinExprSempred(antlrcpp::downCast(context), predicateIndex); + case 38: return columnExprSempred(antlrcpp::downCast(context), predicateIndex); + case 48: return tableExprSempred(antlrcpp::downCast(context), predicateIndex); default: break; diff --git a/hogql_parser/HogQLParser.h b/hogql_parser/HogQLParser.h index baefdb913aa91..13ac167c0e24f 100644 --- a/hogql_parser/HogQLParser.h +++ b/hogql_parser/HogQLParser.h @@ -62,24 +62,24 @@ class HogQLParser : public antlr4::Parser { enum { RuleSelect = 0, RuleSelectUnionStmt = 1, RuleSelectStmtWithParens = 2, - RuleSelectStmt = 3, RuleWithClause = 4, RuleTopClause = 5, RuleFromClause = 6, - RuleArrayJoinClause = 7, RuleWindowClause = 8, RulePrewhereClause = 9, - RuleWhereClause = 10, RuleGroupByClause = 11, RuleHavingClause = 12, - RuleOrderByClause = 13, RuleProjectionOrderByClause = 14, RuleLimitAndOffsetClause = 15, - RuleOffsetOnlyClause = 16, RuleSettingsClause = 17, RuleJoinExpr = 18, - RuleJoinOp = 19, RuleJoinOpCross = 20, RuleJoinConstraintClause = 21, - RuleSampleClause = 22, RuleOrderExprList = 23, RuleOrderExpr = 24, RuleRatioExpr = 25, - RuleSettingExprList = 26, RuleSettingExpr = 27, RuleWindowExpr = 28, - RuleWinPartitionByClause = 29, RuleWinOrderByClause = 30, RuleWinFrameClause = 31, - RuleWinFrameExtend = 32, RuleWinFrameBound = 33, RuleExpr = 34, RuleColumnTypeExpr = 35, - RuleColumnExprList = 36, RuleColumnExpr = 37, RuleColumnArgList = 38, - RuleColumnArgExpr = 39, RuleColumnLambdaExpr = 40, RuleHogqlxTagElement = 41, - RuleHogqlxTagAttribute = 42, RuleWithExprList = 43, RuleWithExpr = 44, - RuleColumnIdentifier = 45, RuleNestedIdentifier = 46, RuleTableExpr = 47, - RuleTableFunctionExpr = 48, RuleTableIdentifier = 49, RuleTableArgList = 50, - RuleDatabaseIdentifier = 51, RuleFloatingLiteral = 52, RuleNumberLiteral = 53, - RuleLiteral = 54, RuleInterval = 55, RuleKeyword = 56, RuleKeywordForAlias = 57, - RuleAlias = 58, RuleIdentifier = 59, RuleEnumValue = 60, RulePlaceholder = 61 + RuleSelectStmtWithPlaceholder = 3, RuleSelectStmt = 4, RuleWithClause = 5, + RuleTopClause = 6, RuleFromClause = 7, RuleArrayJoinClause = 8, RuleWindowClause = 9, + RulePrewhereClause = 10, RuleWhereClause = 11, RuleGroupByClause = 12, + RuleHavingClause = 13, RuleOrderByClause = 14, RuleProjectionOrderByClause = 15, + RuleLimitAndOffsetClause = 16, RuleOffsetOnlyClause = 17, RuleSettingsClause = 18, + RuleJoinExpr = 19, RuleJoinOp = 20, RuleJoinOpCross = 21, RuleJoinConstraintClause = 22, + RuleSampleClause = 23, RuleOrderExprList = 24, RuleOrderExpr = 25, RuleRatioExpr = 26, + RuleSettingExprList = 27, RuleSettingExpr = 28, RuleWindowExpr = 29, + RuleWinPartitionByClause = 30, RuleWinOrderByClause = 31, RuleWinFrameClause = 32, + RuleWinFrameExtend = 33, RuleWinFrameBound = 34, RuleExpr = 35, RuleColumnTypeExpr = 36, + RuleColumnExprList = 37, RuleColumnExpr = 38, RuleColumnArgList = 39, + RuleColumnArgExpr = 40, RuleColumnLambdaExpr = 41, RuleHogqlxTagElement = 42, + RuleHogqlxTagAttribute = 43, RuleWithExprList = 44, RuleWithExpr = 45, + RuleColumnIdentifier = 46, RuleNestedIdentifier = 47, RuleTableExpr = 48, + RuleTableFunctionExpr = 49, RuleTableIdentifier = 50, RuleTableArgList = 51, + RuleDatabaseIdentifier = 52, RuleFloatingLiteral = 53, RuleNumberLiteral = 54, + RuleLiteral = 55, RuleInterval = 56, RuleKeyword = 57, RuleKeywordForAlias = 58, + RuleAlias = 59, RuleIdentifier = 60, RuleEnumValue = 61, RulePlaceholder = 62 }; explicit HogQLParser(antlr4::TokenStream *input); @@ -102,6 +102,7 @@ class HogQLParser : public antlr4::Parser { class SelectContext; class SelectUnionStmtContext; class SelectStmtWithParensContext; + class SelectStmtWithPlaceholderContext; class SelectStmtContext; class WithClauseContext; class TopClauseContext; @@ -200,7 +201,7 @@ class HogQLParser : public antlr4::Parser { public: SelectStmtWithParensContext(antlr4::ParserRuleContext *parent, size_t invokingState); virtual size_t getRuleIndex() const override; - SelectStmtContext *selectStmt(); + SelectStmtWithPlaceholderContext *selectStmtWithPlaceholder(); antlr4::tree::TerminalNode *LPAREN(); SelectUnionStmtContext *selectUnionStmt(); antlr4::tree::TerminalNode *RPAREN(); @@ -212,6 +213,20 @@ class HogQLParser : public antlr4::Parser { SelectStmtWithParensContext* selectStmtWithParens(); + class SelectStmtWithPlaceholderContext : public antlr4::ParserRuleContext { + public: + SelectStmtWithPlaceholderContext(antlr4::ParserRuleContext *parent, size_t invokingState); + virtual size_t getRuleIndex() const override; + SelectStmtContext *selectStmt(); + PlaceholderContext *placeholder(); + + + virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override; + + }; + + SelectStmtWithPlaceholderContext* selectStmtWithPlaceholder(); + class SelectStmtContext : public antlr4::ParserRuleContext { public: HogQLParser::WithClauseContext *with = nullptr; diff --git a/hogql_parser/HogQLParser.interp b/hogql_parser/HogQLParser.interp index a44e1fbc2501e..f056763eb8201 100644 --- a/hogql_parser/HogQLParser.interp +++ b/hogql_parser/HogQLParser.interp @@ -492,6 +492,7 @@ rule names: select selectUnionStmt selectStmtWithParens +selectStmtWithPlaceholder selectStmt withClause topClause @@ -554,4 +555,4 @@ placeholder atn: -[4, 1, 242, 978, 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, 1, 0, 1, 0, 1, 0, 3, 0, 128, 8, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 136, 8, 1, 10, 1, 12, 1, 139, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 146, 8, 2, 1, 3, 3, 3, 149, 8, 3, 1, 3, 1, 3, 3, 3, 153, 8, 3, 1, 3, 3, 3, 156, 8, 3, 1, 3, 1, 3, 3, 3, 160, 8, 3, 1, 3, 3, 3, 163, 8, 3, 1, 3, 3, 3, 166, 8, 3, 1, 3, 3, 3, 169, 8, 3, 1, 3, 3, 3, 172, 8, 3, 1, 3, 1, 3, 3, 3, 176, 8, 3, 1, 3, 1, 3, 3, 3, 180, 8, 3, 1, 3, 3, 3, 183, 8, 3, 1, 3, 3, 3, 186, 8, 3, 1, 3, 3, 3, 189, 8, 3, 1, 3, 1, 3, 3, 3, 193, 8, 3, 1, 3, 3, 3, 196, 8, 3, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 205, 8, 5, 1, 6, 1, 6, 1, 6, 1, 7, 3, 7, 211, 8, 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, 8, 1, 8, 1, 8, 1, 8, 5, 8, 230, 8, 8, 10, 8, 12, 8, 233, 9, 8, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 249, 8, 11, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 266, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 272, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 278, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 289, 8, 15, 3, 15, 291, 8, 15, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 3, 18, 302, 8, 18, 1, 18, 3, 18, 305, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 311, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 319, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 325, 8, 18, 10, 18, 12, 18, 328, 9, 18, 1, 19, 3, 19, 331, 8, 19, 1, 19, 1, 19, 1, 19, 3, 19, 336, 8, 19, 1, 19, 3, 19, 339, 8, 19, 1, 19, 3, 19, 342, 8, 19, 1, 19, 1, 19, 3, 19, 346, 8, 19, 1, 19, 1, 19, 3, 19, 350, 8, 19, 1, 19, 3, 19, 353, 8, 19, 3, 19, 355, 8, 19, 1, 19, 3, 19, 358, 8, 19, 1, 19, 1, 19, 3, 19, 362, 8, 19, 1, 19, 1, 19, 3, 19, 366, 8, 19, 1, 19, 3, 19, 369, 8, 19, 3, 19, 371, 8, 19, 3, 19, 373, 8, 19, 1, 20, 1, 20, 1, 20, 3, 20, 378, 8, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 3, 21, 389, 8, 21, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 395, 8, 22, 1, 23, 1, 23, 1, 23, 5, 23, 400, 8, 23, 10, 23, 12, 23, 403, 9, 23, 1, 24, 1, 24, 3, 24, 407, 8, 24, 1, 24, 1, 24, 3, 24, 411, 8, 24, 1, 24, 1, 24, 3, 24, 415, 8, 24, 1, 25, 1, 25, 1, 25, 1, 25, 3, 25, 421, 8, 25, 3, 25, 423, 8, 25, 1, 26, 1, 26, 1, 26, 5, 26, 428, 8, 26, 10, 26, 12, 26, 431, 9, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 3, 28, 438, 8, 28, 1, 28, 3, 28, 441, 8, 28, 1, 28, 3, 28, 444, 8, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 463, 8, 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, 3, 33, 477, 8, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 491, 8, 35, 10, 35, 12, 35, 494, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 503, 8, 35, 10, 35, 12, 35, 506, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 515, 8, 35, 10, 35, 12, 35, 518, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 525, 8, 35, 1, 35, 1, 35, 3, 35, 529, 8, 35, 1, 36, 1, 36, 1, 36, 5, 36, 534, 8, 36, 10, 36, 12, 36, 537, 9, 36, 1, 37, 1, 37, 1, 37, 3, 37, 542, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 4, 37, 549, 8, 37, 11, 37, 12, 37, 550, 1, 37, 1, 37, 3, 37, 555, 8, 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, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 586, 8, 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, 603, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 615, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 625, 8, 37, 1, 37, 3, 37, 628, 8, 37, 1, 37, 1, 37, 3, 37, 632, 8, 37, 1, 37, 3, 37, 635, 8, 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, 648, 8, 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, 665, 8, 37, 1, 37, 1, 37, 3, 37, 669, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 675, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 682, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 694, 8, 37, 1, 37, 1, 37, 3, 37, 698, 8, 37, 1, 37, 3, 37, 701, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 710, 8, 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, 724, 8, 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, 751, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 760, 8, 37, 5, 37, 762, 8, 37, 10, 37, 12, 37, 765, 9, 37, 1, 38, 1, 38, 1, 38, 5, 38, 770, 8, 38, 10, 38, 12, 38, 773, 9, 38, 1, 39, 1, 39, 3, 39, 777, 8, 39, 1, 40, 1, 40, 1, 40, 1, 40, 5, 40, 783, 8, 40, 10, 40, 12, 40, 786, 9, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 5, 40, 793, 8, 40, 10, 40, 12, 40, 796, 9, 40, 3, 40, 798, 8, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 5, 41, 806, 8, 41, 10, 41, 12, 41, 809, 9, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 5, 41, 817, 8, 41, 10, 41, 12, 41, 820, 9, 41, 1, 41, 1, 41, 3, 41, 824, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 831, 8, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 844, 8, 42, 1, 43, 1, 43, 1, 43, 5, 43, 849, 8, 43, 10, 43, 12, 43, 852, 9, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 3, 44, 864, 8, 44, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 870, 8, 45, 1, 45, 3, 45, 873, 8, 45, 1, 46, 1, 46, 1, 46, 5, 46, 878, 8, 46, 10, 46, 12, 46, 881, 9, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 892, 8, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 898, 8, 47, 5, 47, 900, 8, 47, 10, 47, 12, 47, 903, 9, 47, 1, 48, 1, 48, 1, 48, 3, 48, 908, 8, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 3, 49, 915, 8, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 5, 50, 922, 8, 50, 10, 50, 12, 50, 925, 9, 50, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 3, 52, 935, 8, 52, 3, 52, 937, 8, 52, 1, 53, 3, 53, 940, 8, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 3, 53, 948, 8, 53, 1, 54, 1, 54, 1, 54, 3, 54, 953, 8, 54, 1, 55, 1, 55, 1, 56, 1, 56, 1, 57, 1, 57, 1, 58, 1, 58, 3, 58, 963, 8, 58, 1, 59, 1, 59, 1, 59, 3, 59, 968, 8, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 0, 3, 36, 74, 94, 62, 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, 0, 16, 2, 0, 32, 32, 141, 141, 2, 0, 84, 84, 96, 96, 3, 0, 4, 4, 8, 8, 12, 12, 4, 0, 4, 4, 7, 8, 12, 12, 147, 147, 2, 0, 96, 96, 140, 140, 2, 0, 4, 4, 8, 8, 2, 0, 11, 11, 42, 43, 2, 0, 62, 62, 93, 93, 2, 0, 133, 133, 143, 143, 3, 0, 17, 17, 95, 95, 170, 170, 2, 0, 79, 79, 98, 98, 1, 0, 197, 198, 2, 0, 208, 208, 228, 228, 8, 0, 37, 37, 76, 76, 108, 108, 110, 110, 132, 132, 145, 145, 185, 185, 190, 190, 13, 0, 2, 24, 26, 36, 38, 75, 77, 81, 83, 107, 109, 109, 111, 112, 114, 115, 117, 130, 133, 144, 146, 184, 186, 189, 191, 192, 4, 0, 36, 36, 62, 62, 77, 77, 91, 91, 1105, 0, 127, 1, 0, 0, 0, 2, 131, 1, 0, 0, 0, 4, 145, 1, 0, 0, 0, 6, 148, 1, 0, 0, 0, 8, 197, 1, 0, 0, 0, 10, 200, 1, 0, 0, 0, 12, 206, 1, 0, 0, 0, 14, 210, 1, 0, 0, 0, 16, 216, 1, 0, 0, 0, 18, 234, 1, 0, 0, 0, 20, 237, 1, 0, 0, 0, 22, 240, 1, 0, 0, 0, 24, 250, 1, 0, 0, 0, 26, 253, 1, 0, 0, 0, 28, 257, 1, 0, 0, 0, 30, 290, 1, 0, 0, 0, 32, 292, 1, 0, 0, 0, 34, 295, 1, 0, 0, 0, 36, 310, 1, 0, 0, 0, 38, 372, 1, 0, 0, 0, 40, 377, 1, 0, 0, 0, 42, 388, 1, 0, 0, 0, 44, 390, 1, 0, 0, 0, 46, 396, 1, 0, 0, 0, 48, 404, 1, 0, 0, 0, 50, 422, 1, 0, 0, 0, 52, 424, 1, 0, 0, 0, 54, 432, 1, 0, 0, 0, 56, 437, 1, 0, 0, 0, 58, 445, 1, 0, 0, 0, 60, 449, 1, 0, 0, 0, 62, 453, 1, 0, 0, 0, 64, 462, 1, 0, 0, 0, 66, 476, 1, 0, 0, 0, 68, 478, 1, 0, 0, 0, 70, 528, 1, 0, 0, 0, 72, 530, 1, 0, 0, 0, 74, 668, 1, 0, 0, 0, 76, 766, 1, 0, 0, 0, 78, 776, 1, 0, 0, 0, 80, 797, 1, 0, 0, 0, 82, 830, 1, 0, 0, 0, 84, 843, 1, 0, 0, 0, 86, 845, 1, 0, 0, 0, 88, 863, 1, 0, 0, 0, 90, 872, 1, 0, 0, 0, 92, 874, 1, 0, 0, 0, 94, 891, 1, 0, 0, 0, 96, 904, 1, 0, 0, 0, 98, 914, 1, 0, 0, 0, 100, 918, 1, 0, 0, 0, 102, 926, 1, 0, 0, 0, 104, 936, 1, 0, 0, 0, 106, 939, 1, 0, 0, 0, 108, 952, 1, 0, 0, 0, 110, 954, 1, 0, 0, 0, 112, 956, 1, 0, 0, 0, 114, 958, 1, 0, 0, 0, 116, 962, 1, 0, 0, 0, 118, 967, 1, 0, 0, 0, 120, 969, 1, 0, 0, 0, 122, 973, 1, 0, 0, 0, 124, 128, 3, 2, 1, 0, 125, 128, 3, 6, 3, 0, 126, 128, 3, 82, 41, 0, 127, 124, 1, 0, 0, 0, 127, 125, 1, 0, 0, 0, 127, 126, 1, 0, 0, 0, 128, 129, 1, 0, 0, 0, 129, 130, 5, 0, 0, 1, 130, 1, 1, 0, 0, 0, 131, 137, 3, 4, 2, 0, 132, 133, 5, 176, 0, 0, 133, 134, 5, 4, 0, 0, 134, 136, 3, 4, 2, 0, 135, 132, 1, 0, 0, 0, 136, 139, 1, 0, 0, 0, 137, 135, 1, 0, 0, 0, 137, 138, 1, 0, 0, 0, 138, 3, 1, 0, 0, 0, 139, 137, 1, 0, 0, 0, 140, 146, 3, 6, 3, 0, 141, 142, 5, 220, 0, 0, 142, 143, 3, 2, 1, 0, 143, 144, 5, 236, 0, 0, 144, 146, 1, 0, 0, 0, 145, 140, 1, 0, 0, 0, 145, 141, 1, 0, 0, 0, 146, 5, 1, 0, 0, 0, 147, 149, 3, 8, 4, 0, 148, 147, 1, 0, 0, 0, 148, 149, 1, 0, 0, 0, 149, 150, 1, 0, 0, 0, 150, 152, 5, 146, 0, 0, 151, 153, 5, 49, 0, 0, 152, 151, 1, 0, 0, 0, 152, 153, 1, 0, 0, 0, 153, 155, 1, 0, 0, 0, 154, 156, 3, 10, 5, 0, 155, 154, 1, 0, 0, 0, 155, 156, 1, 0, 0, 0, 156, 157, 1, 0, 0, 0, 157, 159, 3, 72, 36, 0, 158, 160, 3, 12, 6, 0, 159, 158, 1, 0, 0, 0, 159, 160, 1, 0, 0, 0, 160, 162, 1, 0, 0, 0, 161, 163, 3, 14, 7, 0, 162, 161, 1, 0, 0, 0, 162, 163, 1, 0, 0, 0, 163, 165, 1, 0, 0, 0, 164, 166, 3, 18, 9, 0, 165, 164, 1, 0, 0, 0, 165, 166, 1, 0, 0, 0, 166, 168, 1, 0, 0, 0, 167, 169, 3, 20, 10, 0, 168, 167, 1, 0, 0, 0, 168, 169, 1, 0, 0, 0, 169, 171, 1, 0, 0, 0, 170, 172, 3, 22, 11, 0, 171, 170, 1, 0, 0, 0, 171, 172, 1, 0, 0, 0, 172, 175, 1, 0, 0, 0, 173, 174, 5, 189, 0, 0, 174, 176, 7, 0, 0, 0, 175, 173, 1, 0, 0, 0, 175, 176, 1, 0, 0, 0, 176, 179, 1, 0, 0, 0, 177, 178, 5, 189, 0, 0, 178, 180, 5, 169, 0, 0, 179, 177, 1, 0, 0, 0, 179, 180, 1, 0, 0, 0, 180, 182, 1, 0, 0, 0, 181, 183, 3, 24, 12, 0, 182, 181, 1, 0, 0, 0, 182, 183, 1, 0, 0, 0, 183, 185, 1, 0, 0, 0, 184, 186, 3, 16, 8, 0, 185, 184, 1, 0, 0, 0, 185, 186, 1, 0, 0, 0, 186, 188, 1, 0, 0, 0, 187, 189, 3, 26, 13, 0, 188, 187, 1, 0, 0, 0, 188, 189, 1, 0, 0, 0, 189, 192, 1, 0, 0, 0, 190, 193, 3, 30, 15, 0, 191, 193, 3, 32, 16, 0, 192, 190, 1, 0, 0, 0, 192, 191, 1, 0, 0, 0, 192, 193, 1, 0, 0, 0, 193, 195, 1, 0, 0, 0, 194, 196, 3, 34, 17, 0, 195, 194, 1, 0, 0, 0, 195, 196, 1, 0, 0, 0, 196, 7, 1, 0, 0, 0, 197, 198, 5, 189, 0, 0, 198, 199, 3, 86, 43, 0, 199, 9, 1, 0, 0, 0, 200, 201, 5, 168, 0, 0, 201, 204, 5, 198, 0, 0, 202, 203, 5, 189, 0, 0, 203, 205, 5, 164, 0, 0, 204, 202, 1, 0, 0, 0, 204, 205, 1, 0, 0, 0, 205, 11, 1, 0, 0, 0, 206, 207, 5, 68, 0, 0, 207, 208, 3, 36, 18, 0, 208, 13, 1, 0, 0, 0, 209, 211, 7, 1, 0, 0, 210, 209, 1, 0, 0, 0, 210, 211, 1, 0, 0, 0, 211, 212, 1, 0, 0, 0, 212, 213, 5, 9, 0, 0, 213, 214, 5, 90, 0, 0, 214, 215, 3, 72, 36, 0, 215, 15, 1, 0, 0, 0, 216, 217, 5, 188, 0, 0, 217, 218, 3, 118, 59, 0, 218, 219, 5, 10, 0, 0, 219, 220, 5, 220, 0, 0, 220, 221, 3, 56, 28, 0, 221, 231, 5, 236, 0, 0, 222, 223, 5, 206, 0, 0, 223, 224, 3, 118, 59, 0, 224, 225, 5, 10, 0, 0, 225, 226, 5, 220, 0, 0, 226, 227, 3, 56, 28, 0, 227, 228, 5, 236, 0, 0, 228, 230, 1, 0, 0, 0, 229, 222, 1, 0, 0, 0, 230, 233, 1, 0, 0, 0, 231, 229, 1, 0, 0, 0, 231, 232, 1, 0, 0, 0, 232, 17, 1, 0, 0, 0, 233, 231, 1, 0, 0, 0, 234, 235, 5, 129, 0, 0, 235, 236, 3, 74, 37, 0, 236, 19, 1, 0, 0, 0, 237, 238, 5, 187, 0, 0, 238, 239, 3, 74, 37, 0, 239, 21, 1, 0, 0, 0, 240, 241, 5, 73, 0, 0, 241, 248, 5, 18, 0, 0, 242, 243, 7, 0, 0, 0, 243, 244, 5, 220, 0, 0, 244, 245, 3, 72, 36, 0, 245, 246, 5, 236, 0, 0, 246, 249, 1, 0, 0, 0, 247, 249, 3, 72, 36, 0, 248, 242, 1, 0, 0, 0, 248, 247, 1, 0, 0, 0, 249, 23, 1, 0, 0, 0, 250, 251, 5, 74, 0, 0, 251, 252, 3, 74, 37, 0, 252, 25, 1, 0, 0, 0, 253, 254, 5, 122, 0, 0, 254, 255, 5, 18, 0, 0, 255, 256, 3, 46, 23, 0, 256, 27, 1, 0, 0, 0, 257, 258, 5, 122, 0, 0, 258, 259, 5, 18, 0, 0, 259, 260, 3, 72, 36, 0, 260, 29, 1, 0, 0, 0, 261, 262, 5, 99, 0, 0, 262, 265, 3, 74, 37, 0, 263, 264, 5, 206, 0, 0, 264, 266, 3, 74, 37, 0, 265, 263, 1, 0, 0, 0, 265, 266, 1, 0, 0, 0, 266, 271, 1, 0, 0, 0, 267, 268, 5, 189, 0, 0, 268, 272, 5, 164, 0, 0, 269, 270, 5, 18, 0, 0, 270, 272, 3, 72, 36, 0, 271, 267, 1, 0, 0, 0, 271, 269, 1, 0, 0, 0, 271, 272, 1, 0, 0, 0, 272, 291, 1, 0, 0, 0, 273, 274, 5, 99, 0, 0, 274, 277, 3, 74, 37, 0, 275, 276, 5, 189, 0, 0, 276, 278, 5, 164, 0, 0, 277, 275, 1, 0, 0, 0, 277, 278, 1, 0, 0, 0, 278, 279, 1, 0, 0, 0, 279, 280, 5, 118, 0, 0, 280, 281, 3, 74, 37, 0, 281, 291, 1, 0, 0, 0, 282, 283, 5, 99, 0, 0, 283, 284, 3, 74, 37, 0, 284, 285, 5, 118, 0, 0, 285, 288, 3, 74, 37, 0, 286, 287, 5, 18, 0, 0, 287, 289, 3, 72, 36, 0, 288, 286, 1, 0, 0, 0, 288, 289, 1, 0, 0, 0, 289, 291, 1, 0, 0, 0, 290, 261, 1, 0, 0, 0, 290, 273, 1, 0, 0, 0, 290, 282, 1, 0, 0, 0, 291, 31, 1, 0, 0, 0, 292, 293, 5, 118, 0, 0, 293, 294, 3, 74, 37, 0, 294, 33, 1, 0, 0, 0, 295, 296, 5, 150, 0, 0, 296, 297, 3, 52, 26, 0, 297, 35, 1, 0, 0, 0, 298, 299, 6, 18, -1, 0, 299, 301, 3, 94, 47, 0, 300, 302, 5, 61, 0, 0, 301, 300, 1, 0, 0, 0, 301, 302, 1, 0, 0, 0, 302, 304, 1, 0, 0, 0, 303, 305, 3, 44, 22, 0, 304, 303, 1, 0, 0, 0, 304, 305, 1, 0, 0, 0, 305, 311, 1, 0, 0, 0, 306, 307, 5, 220, 0, 0, 307, 308, 3, 36, 18, 0, 308, 309, 5, 236, 0, 0, 309, 311, 1, 0, 0, 0, 310, 298, 1, 0, 0, 0, 310, 306, 1, 0, 0, 0, 311, 326, 1, 0, 0, 0, 312, 313, 10, 3, 0, 0, 313, 314, 3, 40, 20, 0, 314, 315, 3, 36, 18, 4, 315, 325, 1, 0, 0, 0, 316, 318, 10, 4, 0, 0, 317, 319, 3, 38, 19, 0, 318, 317, 1, 0, 0, 0, 318, 319, 1, 0, 0, 0, 319, 320, 1, 0, 0, 0, 320, 321, 5, 90, 0, 0, 321, 322, 3, 36, 18, 0, 322, 323, 3, 42, 21, 0, 323, 325, 1, 0, 0, 0, 324, 312, 1, 0, 0, 0, 324, 316, 1, 0, 0, 0, 325, 328, 1, 0, 0, 0, 326, 324, 1, 0, 0, 0, 326, 327, 1, 0, 0, 0, 327, 37, 1, 0, 0, 0, 328, 326, 1, 0, 0, 0, 329, 331, 7, 2, 0, 0, 330, 329, 1, 0, 0, 0, 330, 331, 1, 0, 0, 0, 331, 332, 1, 0, 0, 0, 332, 339, 5, 84, 0, 0, 333, 335, 5, 84, 0, 0, 334, 336, 7, 2, 0, 0, 335, 334, 1, 0, 0, 0, 335, 336, 1, 0, 0, 0, 336, 339, 1, 0, 0, 0, 337, 339, 7, 2, 0, 0, 338, 330, 1, 0, 0, 0, 338, 333, 1, 0, 0, 0, 338, 337, 1, 0, 0, 0, 339, 373, 1, 0, 0, 0, 340, 342, 7, 3, 0, 0, 341, 340, 1, 0, 0, 0, 341, 342, 1, 0, 0, 0, 342, 343, 1, 0, 0, 0, 343, 345, 7, 4, 0, 0, 344, 346, 5, 123, 0, 0, 345, 344, 1, 0, 0, 0, 345, 346, 1, 0, 0, 0, 346, 355, 1, 0, 0, 0, 347, 349, 7, 4, 0, 0, 348, 350, 5, 123, 0, 0, 349, 348, 1, 0, 0, 0, 349, 350, 1, 0, 0, 0, 350, 352, 1, 0, 0, 0, 351, 353, 7, 3, 0, 0, 352, 351, 1, 0, 0, 0, 352, 353, 1, 0, 0, 0, 353, 355, 1, 0, 0, 0, 354, 341, 1, 0, 0, 0, 354, 347, 1, 0, 0, 0, 355, 373, 1, 0, 0, 0, 356, 358, 7, 5, 0, 0, 357, 356, 1, 0, 0, 0, 357, 358, 1, 0, 0, 0, 358, 359, 1, 0, 0, 0, 359, 361, 5, 69, 0, 0, 360, 362, 5, 123, 0, 0, 361, 360, 1, 0, 0, 0, 361, 362, 1, 0, 0, 0, 362, 371, 1, 0, 0, 0, 363, 365, 5, 69, 0, 0, 364, 366, 5, 123, 0, 0, 365, 364, 1, 0, 0, 0, 365, 366, 1, 0, 0, 0, 366, 368, 1, 0, 0, 0, 367, 369, 7, 5, 0, 0, 368, 367, 1, 0, 0, 0, 368, 369, 1, 0, 0, 0, 369, 371, 1, 0, 0, 0, 370, 357, 1, 0, 0, 0, 370, 363, 1, 0, 0, 0, 371, 373, 1, 0, 0, 0, 372, 338, 1, 0, 0, 0, 372, 354, 1, 0, 0, 0, 372, 370, 1, 0, 0, 0, 373, 39, 1, 0, 0, 0, 374, 375, 5, 31, 0, 0, 375, 378, 5, 90, 0, 0, 376, 378, 5, 206, 0, 0, 377, 374, 1, 0, 0, 0, 377, 376, 1, 0, 0, 0, 378, 41, 1, 0, 0, 0, 379, 380, 5, 119, 0, 0, 380, 389, 3, 72, 36, 0, 381, 382, 5, 179, 0, 0, 382, 383, 5, 220, 0, 0, 383, 384, 3, 72, 36, 0, 384, 385, 5, 236, 0, 0, 385, 389, 1, 0, 0, 0, 386, 387, 5, 179, 0, 0, 387, 389, 3, 72, 36, 0, 388, 379, 1, 0, 0, 0, 388, 381, 1, 0, 0, 0, 388, 386, 1, 0, 0, 0, 389, 43, 1, 0, 0, 0, 390, 391, 5, 144, 0, 0, 391, 394, 3, 50, 25, 0, 392, 393, 5, 118, 0, 0, 393, 395, 3, 50, 25, 0, 394, 392, 1, 0, 0, 0, 394, 395, 1, 0, 0, 0, 395, 45, 1, 0, 0, 0, 396, 401, 3, 48, 24, 0, 397, 398, 5, 206, 0, 0, 398, 400, 3, 48, 24, 0, 399, 397, 1, 0, 0, 0, 400, 403, 1, 0, 0, 0, 401, 399, 1, 0, 0, 0, 401, 402, 1, 0, 0, 0, 402, 47, 1, 0, 0, 0, 403, 401, 1, 0, 0, 0, 404, 406, 3, 74, 37, 0, 405, 407, 7, 6, 0, 0, 406, 405, 1, 0, 0, 0, 406, 407, 1, 0, 0, 0, 407, 410, 1, 0, 0, 0, 408, 409, 5, 117, 0, 0, 409, 411, 7, 7, 0, 0, 410, 408, 1, 0, 0, 0, 410, 411, 1, 0, 0, 0, 411, 414, 1, 0, 0, 0, 412, 413, 5, 26, 0, 0, 413, 415, 5, 200, 0, 0, 414, 412, 1, 0, 0, 0, 414, 415, 1, 0, 0, 0, 415, 49, 1, 0, 0, 0, 416, 423, 3, 122, 61, 0, 417, 420, 3, 106, 53, 0, 418, 419, 5, 238, 0, 0, 419, 421, 3, 106, 53, 0, 420, 418, 1, 0, 0, 0, 420, 421, 1, 0, 0, 0, 421, 423, 1, 0, 0, 0, 422, 416, 1, 0, 0, 0, 422, 417, 1, 0, 0, 0, 423, 51, 1, 0, 0, 0, 424, 429, 3, 54, 27, 0, 425, 426, 5, 206, 0, 0, 426, 428, 3, 54, 27, 0, 427, 425, 1, 0, 0, 0, 428, 431, 1, 0, 0, 0, 429, 427, 1, 0, 0, 0, 429, 430, 1, 0, 0, 0, 430, 53, 1, 0, 0, 0, 431, 429, 1, 0, 0, 0, 432, 433, 3, 118, 59, 0, 433, 434, 5, 212, 0, 0, 434, 435, 3, 108, 54, 0, 435, 55, 1, 0, 0, 0, 436, 438, 3, 58, 29, 0, 437, 436, 1, 0, 0, 0, 437, 438, 1, 0, 0, 0, 438, 440, 1, 0, 0, 0, 439, 441, 3, 60, 30, 0, 440, 439, 1, 0, 0, 0, 440, 441, 1, 0, 0, 0, 441, 443, 1, 0, 0, 0, 442, 444, 3, 62, 31, 0, 443, 442, 1, 0, 0, 0, 443, 444, 1, 0, 0, 0, 444, 57, 1, 0, 0, 0, 445, 446, 5, 126, 0, 0, 446, 447, 5, 18, 0, 0, 447, 448, 3, 72, 36, 0, 448, 59, 1, 0, 0, 0, 449, 450, 5, 122, 0, 0, 450, 451, 5, 18, 0, 0, 451, 452, 3, 46, 23, 0, 452, 61, 1, 0, 0, 0, 453, 454, 7, 8, 0, 0, 454, 455, 3, 64, 32, 0, 455, 63, 1, 0, 0, 0, 456, 463, 3, 66, 33, 0, 457, 458, 5, 16, 0, 0, 458, 459, 3, 66, 33, 0, 459, 460, 5, 6, 0, 0, 460, 461, 3, 66, 33, 0, 461, 463, 1, 0, 0, 0, 462, 456, 1, 0, 0, 0, 462, 457, 1, 0, 0, 0, 463, 65, 1, 0, 0, 0, 464, 465, 5, 33, 0, 0, 465, 477, 5, 142, 0, 0, 466, 467, 5, 175, 0, 0, 467, 477, 5, 128, 0, 0, 468, 469, 5, 175, 0, 0, 469, 477, 5, 64, 0, 0, 470, 471, 3, 106, 53, 0, 471, 472, 5, 128, 0, 0, 472, 477, 1, 0, 0, 0, 473, 474, 3, 106, 53, 0, 474, 475, 5, 64, 0, 0, 475, 477, 1, 0, 0, 0, 476, 464, 1, 0, 0, 0, 476, 466, 1, 0, 0, 0, 476, 468, 1, 0, 0, 0, 476, 470, 1, 0, 0, 0, 476, 473, 1, 0, 0, 0, 477, 67, 1, 0, 0, 0, 478, 479, 3, 74, 37, 0, 479, 480, 5, 0, 0, 1, 480, 69, 1, 0, 0, 0, 481, 529, 3, 118, 59, 0, 482, 483, 3, 118, 59, 0, 483, 484, 5, 220, 0, 0, 484, 485, 3, 118, 59, 0, 485, 492, 3, 70, 35, 0, 486, 487, 5, 206, 0, 0, 487, 488, 3, 118, 59, 0, 488, 489, 3, 70, 35, 0, 489, 491, 1, 0, 0, 0, 490, 486, 1, 0, 0, 0, 491, 494, 1, 0, 0, 0, 492, 490, 1, 0, 0, 0, 492, 493, 1, 0, 0, 0, 493, 495, 1, 0, 0, 0, 494, 492, 1, 0, 0, 0, 495, 496, 5, 236, 0, 0, 496, 529, 1, 0, 0, 0, 497, 498, 3, 118, 59, 0, 498, 499, 5, 220, 0, 0, 499, 504, 3, 120, 60, 0, 500, 501, 5, 206, 0, 0, 501, 503, 3, 120, 60, 0, 502, 500, 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, 236, 0, 0, 508, 529, 1, 0, 0, 0, 509, 510, 3, 118, 59, 0, 510, 511, 5, 220, 0, 0, 511, 516, 3, 70, 35, 0, 512, 513, 5, 206, 0, 0, 513, 515, 3, 70, 35, 0, 514, 512, 1, 0, 0, 0, 515, 518, 1, 0, 0, 0, 516, 514, 1, 0, 0, 0, 516, 517, 1, 0, 0, 0, 517, 519, 1, 0, 0, 0, 518, 516, 1, 0, 0, 0, 519, 520, 5, 236, 0, 0, 520, 529, 1, 0, 0, 0, 521, 522, 3, 118, 59, 0, 522, 524, 5, 220, 0, 0, 523, 525, 3, 72, 36, 0, 524, 523, 1, 0, 0, 0, 524, 525, 1, 0, 0, 0, 525, 526, 1, 0, 0, 0, 526, 527, 5, 236, 0, 0, 527, 529, 1, 0, 0, 0, 528, 481, 1, 0, 0, 0, 528, 482, 1, 0, 0, 0, 528, 497, 1, 0, 0, 0, 528, 509, 1, 0, 0, 0, 528, 521, 1, 0, 0, 0, 529, 71, 1, 0, 0, 0, 530, 535, 3, 74, 37, 0, 531, 532, 5, 206, 0, 0, 532, 534, 3, 74, 37, 0, 533, 531, 1, 0, 0, 0, 534, 537, 1, 0, 0, 0, 535, 533, 1, 0, 0, 0, 535, 536, 1, 0, 0, 0, 536, 73, 1, 0, 0, 0, 537, 535, 1, 0, 0, 0, 538, 539, 6, 37, -1, 0, 539, 541, 5, 19, 0, 0, 540, 542, 3, 74, 37, 0, 541, 540, 1, 0, 0, 0, 541, 542, 1, 0, 0, 0, 542, 548, 1, 0, 0, 0, 543, 544, 5, 186, 0, 0, 544, 545, 3, 74, 37, 0, 545, 546, 5, 163, 0, 0, 546, 547, 3, 74, 37, 0, 547, 549, 1, 0, 0, 0, 548, 543, 1, 0, 0, 0, 549, 550, 1, 0, 0, 0, 550, 548, 1, 0, 0, 0, 550, 551, 1, 0, 0, 0, 551, 554, 1, 0, 0, 0, 552, 553, 5, 52, 0, 0, 553, 555, 3, 74, 37, 0, 554, 552, 1, 0, 0, 0, 554, 555, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 557, 5, 53, 0, 0, 557, 669, 1, 0, 0, 0, 558, 559, 5, 20, 0, 0, 559, 560, 5, 220, 0, 0, 560, 561, 3, 74, 37, 0, 561, 562, 5, 10, 0, 0, 562, 563, 3, 70, 35, 0, 563, 564, 5, 236, 0, 0, 564, 669, 1, 0, 0, 0, 565, 566, 5, 36, 0, 0, 566, 669, 5, 200, 0, 0, 567, 568, 5, 59, 0, 0, 568, 569, 5, 220, 0, 0, 569, 570, 3, 110, 55, 0, 570, 571, 5, 68, 0, 0, 571, 572, 3, 74, 37, 0, 572, 573, 5, 236, 0, 0, 573, 669, 1, 0, 0, 0, 574, 575, 5, 86, 0, 0, 575, 576, 3, 74, 37, 0, 576, 577, 3, 110, 55, 0, 577, 669, 1, 0, 0, 0, 578, 579, 5, 155, 0, 0, 579, 580, 5, 220, 0, 0, 580, 581, 3, 74, 37, 0, 581, 582, 5, 68, 0, 0, 582, 585, 3, 74, 37, 0, 583, 584, 5, 65, 0, 0, 584, 586, 3, 74, 37, 0, 585, 583, 1, 0, 0, 0, 585, 586, 1, 0, 0, 0, 586, 587, 1, 0, 0, 0, 587, 588, 5, 236, 0, 0, 588, 669, 1, 0, 0, 0, 589, 590, 5, 166, 0, 0, 590, 669, 5, 200, 0, 0, 591, 592, 5, 171, 0, 0, 592, 593, 5, 220, 0, 0, 593, 594, 7, 9, 0, 0, 594, 595, 5, 200, 0, 0, 595, 596, 5, 68, 0, 0, 596, 597, 3, 74, 37, 0, 597, 598, 5, 236, 0, 0, 598, 669, 1, 0, 0, 0, 599, 600, 3, 118, 59, 0, 600, 602, 5, 220, 0, 0, 601, 603, 3, 72, 36, 0, 602, 601, 1, 0, 0, 0, 602, 603, 1, 0, 0, 0, 603, 604, 1, 0, 0, 0, 604, 605, 5, 236, 0, 0, 605, 606, 1, 0, 0, 0, 606, 607, 5, 125, 0, 0, 607, 608, 5, 220, 0, 0, 608, 609, 3, 56, 28, 0, 609, 610, 5, 236, 0, 0, 610, 669, 1, 0, 0, 0, 611, 612, 3, 118, 59, 0, 612, 614, 5, 220, 0, 0, 613, 615, 3, 72, 36, 0, 614, 613, 1, 0, 0, 0, 614, 615, 1, 0, 0, 0, 615, 616, 1, 0, 0, 0, 616, 617, 5, 236, 0, 0, 617, 618, 1, 0, 0, 0, 618, 619, 5, 125, 0, 0, 619, 620, 3, 118, 59, 0, 620, 669, 1, 0, 0, 0, 621, 627, 3, 118, 59, 0, 622, 624, 5, 220, 0, 0, 623, 625, 3, 72, 36, 0, 624, 623, 1, 0, 0, 0, 624, 625, 1, 0, 0, 0, 625, 626, 1, 0, 0, 0, 626, 628, 5, 236, 0, 0, 627, 622, 1, 0, 0, 0, 627, 628, 1, 0, 0, 0, 628, 629, 1, 0, 0, 0, 629, 631, 5, 220, 0, 0, 630, 632, 5, 49, 0, 0, 631, 630, 1, 0, 0, 0, 631, 632, 1, 0, 0, 0, 632, 634, 1, 0, 0, 0, 633, 635, 3, 76, 38, 0, 634, 633, 1, 0, 0, 0, 634, 635, 1, 0, 0, 0, 635, 636, 1, 0, 0, 0, 636, 637, 5, 236, 0, 0, 637, 669, 1, 0, 0, 0, 638, 669, 3, 82, 41, 0, 639, 669, 3, 108, 54, 0, 640, 641, 5, 208, 0, 0, 641, 669, 3, 74, 37, 18, 642, 643, 5, 115, 0, 0, 643, 669, 3, 74, 37, 12, 644, 645, 3, 98, 49, 0, 645, 646, 5, 210, 0, 0, 646, 648, 1, 0, 0, 0, 647, 644, 1, 0, 0, 0, 647, 648, 1, 0, 0, 0, 648, 649, 1, 0, 0, 0, 649, 669, 5, 202, 0, 0, 650, 651, 5, 220, 0, 0, 651, 652, 3, 2, 1, 0, 652, 653, 5, 236, 0, 0, 653, 669, 1, 0, 0, 0, 654, 655, 5, 220, 0, 0, 655, 656, 3, 74, 37, 0, 656, 657, 5, 236, 0, 0, 657, 669, 1, 0, 0, 0, 658, 659, 5, 220, 0, 0, 659, 660, 3, 72, 36, 0, 660, 661, 5, 236, 0, 0, 661, 669, 1, 0, 0, 0, 662, 664, 5, 219, 0, 0, 663, 665, 3, 72, 36, 0, 664, 663, 1, 0, 0, 0, 664, 665, 1, 0, 0, 0, 665, 666, 1, 0, 0, 0, 666, 669, 5, 235, 0, 0, 667, 669, 3, 90, 45, 0, 668, 538, 1, 0, 0, 0, 668, 558, 1, 0, 0, 0, 668, 565, 1, 0, 0, 0, 668, 567, 1, 0, 0, 0, 668, 574, 1, 0, 0, 0, 668, 578, 1, 0, 0, 0, 668, 589, 1, 0, 0, 0, 668, 591, 1, 0, 0, 0, 668, 599, 1, 0, 0, 0, 668, 611, 1, 0, 0, 0, 668, 621, 1, 0, 0, 0, 668, 638, 1, 0, 0, 0, 668, 639, 1, 0, 0, 0, 668, 640, 1, 0, 0, 0, 668, 642, 1, 0, 0, 0, 668, 647, 1, 0, 0, 0, 668, 650, 1, 0, 0, 0, 668, 654, 1, 0, 0, 0, 668, 658, 1, 0, 0, 0, 668, 662, 1, 0, 0, 0, 668, 667, 1, 0, 0, 0, 669, 763, 1, 0, 0, 0, 670, 674, 10, 17, 0, 0, 671, 675, 5, 202, 0, 0, 672, 675, 5, 238, 0, 0, 673, 675, 5, 227, 0, 0, 674, 671, 1, 0, 0, 0, 674, 672, 1, 0, 0, 0, 674, 673, 1, 0, 0, 0, 675, 676, 1, 0, 0, 0, 676, 762, 3, 74, 37, 18, 677, 681, 10, 16, 0, 0, 678, 682, 5, 228, 0, 0, 679, 682, 5, 208, 0, 0, 680, 682, 5, 207, 0, 0, 681, 678, 1, 0, 0, 0, 681, 679, 1, 0, 0, 0, 681, 680, 1, 0, 0, 0, 682, 683, 1, 0, 0, 0, 683, 762, 3, 74, 37, 17, 684, 709, 10, 15, 0, 0, 685, 710, 5, 211, 0, 0, 686, 710, 5, 212, 0, 0, 687, 710, 5, 223, 0, 0, 688, 710, 5, 221, 0, 0, 689, 710, 5, 222, 0, 0, 690, 710, 5, 213, 0, 0, 691, 710, 5, 214, 0, 0, 692, 694, 5, 115, 0, 0, 693, 692, 1, 0, 0, 0, 693, 694, 1, 0, 0, 0, 694, 695, 1, 0, 0, 0, 695, 697, 5, 80, 0, 0, 696, 698, 5, 25, 0, 0, 697, 696, 1, 0, 0, 0, 697, 698, 1, 0, 0, 0, 698, 710, 1, 0, 0, 0, 699, 701, 5, 115, 0, 0, 700, 699, 1, 0, 0, 0, 700, 701, 1, 0, 0, 0, 701, 702, 1, 0, 0, 0, 702, 710, 7, 10, 0, 0, 703, 710, 5, 232, 0, 0, 704, 710, 5, 233, 0, 0, 705, 710, 5, 225, 0, 0, 706, 710, 5, 216, 0, 0, 707, 710, 5, 217, 0, 0, 708, 710, 5, 224, 0, 0, 709, 685, 1, 0, 0, 0, 709, 686, 1, 0, 0, 0, 709, 687, 1, 0, 0, 0, 709, 688, 1, 0, 0, 0, 709, 689, 1, 0, 0, 0, 709, 690, 1, 0, 0, 0, 709, 691, 1, 0, 0, 0, 709, 693, 1, 0, 0, 0, 709, 700, 1, 0, 0, 0, 709, 703, 1, 0, 0, 0, 709, 704, 1, 0, 0, 0, 709, 705, 1, 0, 0, 0, 709, 706, 1, 0, 0, 0, 709, 707, 1, 0, 0, 0, 709, 708, 1, 0, 0, 0, 710, 711, 1, 0, 0, 0, 711, 762, 3, 74, 37, 16, 712, 713, 10, 13, 0, 0, 713, 714, 5, 226, 0, 0, 714, 762, 3, 74, 37, 14, 715, 716, 10, 11, 0, 0, 716, 717, 5, 6, 0, 0, 717, 762, 3, 74, 37, 12, 718, 719, 10, 10, 0, 0, 719, 720, 5, 121, 0, 0, 720, 762, 3, 74, 37, 11, 721, 723, 10, 9, 0, 0, 722, 724, 5, 115, 0, 0, 723, 722, 1, 0, 0, 0, 723, 724, 1, 0, 0, 0, 724, 725, 1, 0, 0, 0, 725, 726, 5, 16, 0, 0, 726, 727, 3, 74, 37, 0, 727, 728, 5, 6, 0, 0, 728, 729, 3, 74, 37, 10, 729, 762, 1, 0, 0, 0, 730, 731, 10, 8, 0, 0, 731, 732, 5, 229, 0, 0, 732, 733, 3, 74, 37, 0, 733, 734, 5, 205, 0, 0, 734, 735, 3, 74, 37, 8, 735, 762, 1, 0, 0, 0, 736, 737, 10, 21, 0, 0, 737, 738, 5, 219, 0, 0, 738, 739, 3, 74, 37, 0, 739, 740, 5, 235, 0, 0, 740, 762, 1, 0, 0, 0, 741, 742, 10, 20, 0, 0, 742, 743, 5, 210, 0, 0, 743, 762, 5, 198, 0, 0, 744, 745, 10, 19, 0, 0, 745, 746, 5, 210, 0, 0, 746, 762, 3, 118, 59, 0, 747, 748, 10, 14, 0, 0, 748, 750, 5, 88, 0, 0, 749, 751, 5, 115, 0, 0, 750, 749, 1, 0, 0, 0, 750, 751, 1, 0, 0, 0, 751, 752, 1, 0, 0, 0, 752, 762, 5, 116, 0, 0, 753, 759, 10, 7, 0, 0, 754, 760, 3, 116, 58, 0, 755, 756, 5, 10, 0, 0, 756, 760, 3, 118, 59, 0, 757, 758, 5, 10, 0, 0, 758, 760, 5, 200, 0, 0, 759, 754, 1, 0, 0, 0, 759, 755, 1, 0, 0, 0, 759, 757, 1, 0, 0, 0, 760, 762, 1, 0, 0, 0, 761, 670, 1, 0, 0, 0, 761, 677, 1, 0, 0, 0, 761, 684, 1, 0, 0, 0, 761, 712, 1, 0, 0, 0, 761, 715, 1, 0, 0, 0, 761, 718, 1, 0, 0, 0, 761, 721, 1, 0, 0, 0, 761, 730, 1, 0, 0, 0, 761, 736, 1, 0, 0, 0, 761, 741, 1, 0, 0, 0, 761, 744, 1, 0, 0, 0, 761, 747, 1, 0, 0, 0, 761, 753, 1, 0, 0, 0, 762, 765, 1, 0, 0, 0, 763, 761, 1, 0, 0, 0, 763, 764, 1, 0, 0, 0, 764, 75, 1, 0, 0, 0, 765, 763, 1, 0, 0, 0, 766, 771, 3, 78, 39, 0, 767, 768, 5, 206, 0, 0, 768, 770, 3, 78, 39, 0, 769, 767, 1, 0, 0, 0, 770, 773, 1, 0, 0, 0, 771, 769, 1, 0, 0, 0, 771, 772, 1, 0, 0, 0, 772, 77, 1, 0, 0, 0, 773, 771, 1, 0, 0, 0, 774, 777, 3, 80, 40, 0, 775, 777, 3, 74, 37, 0, 776, 774, 1, 0, 0, 0, 776, 775, 1, 0, 0, 0, 777, 79, 1, 0, 0, 0, 778, 779, 5, 220, 0, 0, 779, 784, 3, 118, 59, 0, 780, 781, 5, 206, 0, 0, 781, 783, 3, 118, 59, 0, 782, 780, 1, 0, 0, 0, 783, 786, 1, 0, 0, 0, 784, 782, 1, 0, 0, 0, 784, 785, 1, 0, 0, 0, 785, 787, 1, 0, 0, 0, 786, 784, 1, 0, 0, 0, 787, 788, 5, 236, 0, 0, 788, 798, 1, 0, 0, 0, 789, 794, 3, 118, 59, 0, 790, 791, 5, 206, 0, 0, 791, 793, 3, 118, 59, 0, 792, 790, 1, 0, 0, 0, 793, 796, 1, 0, 0, 0, 794, 792, 1, 0, 0, 0, 794, 795, 1, 0, 0, 0, 795, 798, 1, 0, 0, 0, 796, 794, 1, 0, 0, 0, 797, 778, 1, 0, 0, 0, 797, 789, 1, 0, 0, 0, 798, 799, 1, 0, 0, 0, 799, 800, 5, 201, 0, 0, 800, 801, 3, 74, 37, 0, 801, 81, 1, 0, 0, 0, 802, 803, 5, 222, 0, 0, 803, 807, 3, 118, 59, 0, 804, 806, 3, 84, 42, 0, 805, 804, 1, 0, 0, 0, 806, 809, 1, 0, 0, 0, 807, 805, 1, 0, 0, 0, 807, 808, 1, 0, 0, 0, 808, 810, 1, 0, 0, 0, 809, 807, 1, 0, 0, 0, 810, 811, 5, 238, 0, 0, 811, 812, 5, 214, 0, 0, 812, 831, 1, 0, 0, 0, 813, 814, 5, 222, 0, 0, 814, 818, 3, 118, 59, 0, 815, 817, 3, 84, 42, 0, 816, 815, 1, 0, 0, 0, 817, 820, 1, 0, 0, 0, 818, 816, 1, 0, 0, 0, 818, 819, 1, 0, 0, 0, 819, 821, 1, 0, 0, 0, 820, 818, 1, 0, 0, 0, 821, 823, 5, 214, 0, 0, 822, 824, 3, 82, 41, 0, 823, 822, 1, 0, 0, 0, 823, 824, 1, 0, 0, 0, 824, 825, 1, 0, 0, 0, 825, 826, 5, 222, 0, 0, 826, 827, 5, 238, 0, 0, 827, 828, 3, 118, 59, 0, 828, 829, 5, 214, 0, 0, 829, 831, 1, 0, 0, 0, 830, 802, 1, 0, 0, 0, 830, 813, 1, 0, 0, 0, 831, 83, 1, 0, 0, 0, 832, 833, 3, 118, 59, 0, 833, 834, 5, 212, 0, 0, 834, 835, 5, 200, 0, 0, 835, 844, 1, 0, 0, 0, 836, 837, 3, 118, 59, 0, 837, 838, 5, 212, 0, 0, 838, 839, 5, 218, 0, 0, 839, 840, 3, 74, 37, 0, 840, 841, 5, 234, 0, 0, 841, 844, 1, 0, 0, 0, 842, 844, 3, 118, 59, 0, 843, 832, 1, 0, 0, 0, 843, 836, 1, 0, 0, 0, 843, 842, 1, 0, 0, 0, 844, 85, 1, 0, 0, 0, 845, 850, 3, 88, 44, 0, 846, 847, 5, 206, 0, 0, 847, 849, 3, 88, 44, 0, 848, 846, 1, 0, 0, 0, 849, 852, 1, 0, 0, 0, 850, 848, 1, 0, 0, 0, 850, 851, 1, 0, 0, 0, 851, 87, 1, 0, 0, 0, 852, 850, 1, 0, 0, 0, 853, 854, 3, 118, 59, 0, 854, 855, 5, 10, 0, 0, 855, 856, 5, 220, 0, 0, 856, 857, 3, 2, 1, 0, 857, 858, 5, 236, 0, 0, 858, 864, 1, 0, 0, 0, 859, 860, 3, 74, 37, 0, 860, 861, 5, 10, 0, 0, 861, 862, 3, 118, 59, 0, 862, 864, 1, 0, 0, 0, 863, 853, 1, 0, 0, 0, 863, 859, 1, 0, 0, 0, 864, 89, 1, 0, 0, 0, 865, 873, 3, 122, 61, 0, 866, 867, 3, 98, 49, 0, 867, 868, 5, 210, 0, 0, 868, 870, 1, 0, 0, 0, 869, 866, 1, 0, 0, 0, 869, 870, 1, 0, 0, 0, 870, 871, 1, 0, 0, 0, 871, 873, 3, 92, 46, 0, 872, 865, 1, 0, 0, 0, 872, 869, 1, 0, 0, 0, 873, 91, 1, 0, 0, 0, 874, 879, 3, 118, 59, 0, 875, 876, 5, 210, 0, 0, 876, 878, 3, 118, 59, 0, 877, 875, 1, 0, 0, 0, 878, 881, 1, 0, 0, 0, 879, 877, 1, 0, 0, 0, 879, 880, 1, 0, 0, 0, 880, 93, 1, 0, 0, 0, 881, 879, 1, 0, 0, 0, 882, 883, 6, 47, -1, 0, 883, 892, 3, 98, 49, 0, 884, 892, 3, 96, 48, 0, 885, 886, 5, 220, 0, 0, 886, 887, 3, 2, 1, 0, 887, 888, 5, 236, 0, 0, 888, 892, 1, 0, 0, 0, 889, 892, 3, 82, 41, 0, 890, 892, 3, 122, 61, 0, 891, 882, 1, 0, 0, 0, 891, 884, 1, 0, 0, 0, 891, 885, 1, 0, 0, 0, 891, 889, 1, 0, 0, 0, 891, 890, 1, 0, 0, 0, 892, 901, 1, 0, 0, 0, 893, 897, 10, 3, 0, 0, 894, 898, 3, 116, 58, 0, 895, 896, 5, 10, 0, 0, 896, 898, 3, 118, 59, 0, 897, 894, 1, 0, 0, 0, 897, 895, 1, 0, 0, 0, 898, 900, 1, 0, 0, 0, 899, 893, 1, 0, 0, 0, 900, 903, 1, 0, 0, 0, 901, 899, 1, 0, 0, 0, 901, 902, 1, 0, 0, 0, 902, 95, 1, 0, 0, 0, 903, 901, 1, 0, 0, 0, 904, 905, 3, 118, 59, 0, 905, 907, 5, 220, 0, 0, 906, 908, 3, 100, 50, 0, 907, 906, 1, 0, 0, 0, 907, 908, 1, 0, 0, 0, 908, 909, 1, 0, 0, 0, 909, 910, 5, 236, 0, 0, 910, 97, 1, 0, 0, 0, 911, 912, 3, 102, 51, 0, 912, 913, 5, 210, 0, 0, 913, 915, 1, 0, 0, 0, 914, 911, 1, 0, 0, 0, 914, 915, 1, 0, 0, 0, 915, 916, 1, 0, 0, 0, 916, 917, 3, 118, 59, 0, 917, 99, 1, 0, 0, 0, 918, 923, 3, 74, 37, 0, 919, 920, 5, 206, 0, 0, 920, 922, 3, 74, 37, 0, 921, 919, 1, 0, 0, 0, 922, 925, 1, 0, 0, 0, 923, 921, 1, 0, 0, 0, 923, 924, 1, 0, 0, 0, 924, 101, 1, 0, 0, 0, 925, 923, 1, 0, 0, 0, 926, 927, 3, 118, 59, 0, 927, 103, 1, 0, 0, 0, 928, 937, 5, 196, 0, 0, 929, 930, 5, 210, 0, 0, 930, 937, 7, 11, 0, 0, 931, 932, 5, 198, 0, 0, 932, 934, 5, 210, 0, 0, 933, 935, 7, 11, 0, 0, 934, 933, 1, 0, 0, 0, 934, 935, 1, 0, 0, 0, 935, 937, 1, 0, 0, 0, 936, 928, 1, 0, 0, 0, 936, 929, 1, 0, 0, 0, 936, 931, 1, 0, 0, 0, 937, 105, 1, 0, 0, 0, 938, 940, 7, 12, 0, 0, 939, 938, 1, 0, 0, 0, 939, 940, 1, 0, 0, 0, 940, 947, 1, 0, 0, 0, 941, 948, 3, 104, 52, 0, 942, 948, 5, 197, 0, 0, 943, 948, 5, 198, 0, 0, 944, 948, 5, 199, 0, 0, 945, 948, 5, 82, 0, 0, 946, 948, 5, 113, 0, 0, 947, 941, 1, 0, 0, 0, 947, 942, 1, 0, 0, 0, 947, 943, 1, 0, 0, 0, 947, 944, 1, 0, 0, 0, 947, 945, 1, 0, 0, 0, 947, 946, 1, 0, 0, 0, 948, 107, 1, 0, 0, 0, 949, 953, 3, 106, 53, 0, 950, 953, 5, 200, 0, 0, 951, 953, 5, 116, 0, 0, 952, 949, 1, 0, 0, 0, 952, 950, 1, 0, 0, 0, 952, 951, 1, 0, 0, 0, 953, 109, 1, 0, 0, 0, 954, 955, 7, 13, 0, 0, 955, 111, 1, 0, 0, 0, 956, 957, 7, 14, 0, 0, 957, 113, 1, 0, 0, 0, 958, 959, 7, 15, 0, 0, 959, 115, 1, 0, 0, 0, 960, 963, 5, 195, 0, 0, 961, 963, 3, 114, 57, 0, 962, 960, 1, 0, 0, 0, 962, 961, 1, 0, 0, 0, 963, 117, 1, 0, 0, 0, 964, 968, 5, 195, 0, 0, 965, 968, 3, 110, 55, 0, 966, 968, 3, 112, 56, 0, 967, 964, 1, 0, 0, 0, 967, 965, 1, 0, 0, 0, 967, 966, 1, 0, 0, 0, 968, 119, 1, 0, 0, 0, 969, 970, 5, 200, 0, 0, 970, 971, 5, 212, 0, 0, 971, 972, 3, 106, 53, 0, 972, 121, 1, 0, 0, 0, 973, 974, 5, 218, 0, 0, 974, 975, 3, 118, 59, 0, 975, 976, 5, 234, 0, 0, 976, 123, 1, 0, 0, 0, 120, 127, 137, 145, 148, 152, 155, 159, 162, 165, 168, 171, 175, 179, 182, 185, 188, 192, 195, 204, 210, 231, 248, 265, 271, 277, 288, 290, 301, 304, 310, 318, 324, 326, 330, 335, 338, 341, 345, 349, 352, 354, 357, 361, 365, 368, 370, 372, 377, 388, 394, 401, 406, 410, 414, 420, 422, 429, 437, 440, 443, 462, 476, 492, 504, 516, 524, 528, 535, 541, 550, 554, 585, 602, 614, 624, 627, 631, 634, 647, 664, 668, 674, 681, 693, 697, 700, 709, 723, 750, 759, 761, 763, 771, 776, 784, 794, 797, 807, 818, 823, 830, 843, 850, 863, 869, 872, 879, 891, 897, 901, 907, 914, 923, 934, 936, 939, 947, 952, 962, 967] \ No newline at end of file +[4, 1, 242, 984, 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, 1, 0, 1, 0, 1, 0, 3, 0, 130, 8, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 138, 8, 1, 10, 1, 12, 1, 141, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 148, 8, 2, 1, 3, 1, 3, 3, 3, 152, 8, 3, 1, 4, 3, 4, 155, 8, 4, 1, 4, 1, 4, 3, 4, 159, 8, 4, 1, 4, 3, 4, 162, 8, 4, 1, 4, 1, 4, 3, 4, 166, 8, 4, 1, 4, 3, 4, 169, 8, 4, 1, 4, 3, 4, 172, 8, 4, 1, 4, 3, 4, 175, 8, 4, 1, 4, 3, 4, 178, 8, 4, 1, 4, 1, 4, 3, 4, 182, 8, 4, 1, 4, 1, 4, 3, 4, 186, 8, 4, 1, 4, 3, 4, 189, 8, 4, 1, 4, 3, 4, 192, 8, 4, 1, 4, 3, 4, 195, 8, 4, 1, 4, 1, 4, 3, 4, 199, 8, 4, 1, 4, 3, 4, 202, 8, 4, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 211, 8, 6, 1, 7, 1, 7, 1, 7, 1, 8, 3, 8, 217, 8, 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, 9, 1, 9, 1, 9, 5, 9, 236, 8, 9, 10, 9, 12, 9, 239, 9, 9, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 255, 8, 12, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 272, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 278, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 284, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 295, 8, 16, 3, 16, 297, 8, 16, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 3, 19, 308, 8, 19, 1, 19, 3, 19, 311, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 317, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 325, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 5, 19, 331, 8, 19, 10, 19, 12, 19, 334, 9, 19, 1, 20, 3, 20, 337, 8, 20, 1, 20, 1, 20, 1, 20, 3, 20, 342, 8, 20, 1, 20, 3, 20, 345, 8, 20, 1, 20, 3, 20, 348, 8, 20, 1, 20, 1, 20, 3, 20, 352, 8, 20, 1, 20, 1, 20, 3, 20, 356, 8, 20, 1, 20, 3, 20, 359, 8, 20, 3, 20, 361, 8, 20, 1, 20, 3, 20, 364, 8, 20, 1, 20, 1, 20, 3, 20, 368, 8, 20, 1, 20, 1, 20, 3, 20, 372, 8, 20, 1, 20, 3, 20, 375, 8, 20, 3, 20, 377, 8, 20, 3, 20, 379, 8, 20, 1, 21, 1, 21, 1, 21, 3, 21, 384, 8, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 395, 8, 22, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 401, 8, 23, 1, 24, 1, 24, 1, 24, 5, 24, 406, 8, 24, 10, 24, 12, 24, 409, 9, 24, 1, 25, 1, 25, 3, 25, 413, 8, 25, 1, 25, 1, 25, 3, 25, 417, 8, 25, 1, 25, 1, 25, 3, 25, 421, 8, 25, 1, 26, 1, 26, 1, 26, 1, 26, 3, 26, 427, 8, 26, 3, 26, 429, 8, 26, 1, 27, 1, 27, 1, 27, 5, 27, 434, 8, 27, 10, 27, 12, 27, 437, 9, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 3, 29, 444, 8, 29, 1, 29, 3, 29, 447, 8, 29, 1, 29, 3, 29, 450, 8, 29, 1, 30, 1, 30, 1, 30, 1, 30, 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, 33, 3, 33, 469, 8, 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, 3, 34, 483, 8, 34, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 5, 36, 497, 8, 36, 10, 36, 12, 36, 500, 9, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 5, 36, 509, 8, 36, 10, 36, 12, 36, 512, 9, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 5, 36, 521, 8, 36, 10, 36, 12, 36, 524, 9, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 3, 36, 531, 8, 36, 1, 36, 1, 36, 3, 36, 535, 8, 36, 1, 37, 1, 37, 1, 37, 5, 37, 540, 8, 37, 10, 37, 12, 37, 543, 9, 37, 1, 38, 1, 38, 1, 38, 3, 38, 548, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 4, 38, 555, 8, 38, 11, 38, 12, 38, 556, 1, 38, 1, 38, 3, 38, 561, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 592, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 609, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 621, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 631, 8, 38, 1, 38, 3, 38, 634, 8, 38, 1, 38, 1, 38, 3, 38, 638, 8, 38, 1, 38, 3, 38, 641, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 654, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 671, 8, 38, 1, 38, 1, 38, 3, 38, 675, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 681, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 688, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 700, 8, 38, 1, 38, 1, 38, 3, 38, 704, 8, 38, 1, 38, 3, 38, 707, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 716, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 730, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 757, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 766, 8, 38, 5, 38, 768, 8, 38, 10, 38, 12, 38, 771, 9, 38, 1, 39, 1, 39, 1, 39, 5, 39, 776, 8, 39, 10, 39, 12, 39, 779, 9, 39, 1, 40, 1, 40, 3, 40, 783, 8, 40, 1, 41, 1, 41, 1, 41, 1, 41, 5, 41, 789, 8, 41, 10, 41, 12, 41, 792, 9, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 5, 41, 799, 8, 41, 10, 41, 12, 41, 802, 9, 41, 3, 41, 804, 8, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 5, 42, 812, 8, 42, 10, 42, 12, 42, 815, 9, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 5, 42, 823, 8, 42, 10, 42, 12, 42, 826, 9, 42, 1, 42, 1, 42, 3, 42, 830, 8, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 837, 8, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 3, 43, 850, 8, 43, 1, 44, 1, 44, 1, 44, 5, 44, 855, 8, 44, 10, 44, 12, 44, 858, 9, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 870, 8, 45, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 876, 8, 46, 1, 46, 3, 46, 879, 8, 46, 1, 47, 1, 47, 1, 47, 5, 47, 884, 8, 47, 10, 47, 12, 47, 887, 9, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 898, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 904, 8, 48, 5, 48, 906, 8, 48, 10, 48, 12, 48, 909, 9, 48, 1, 49, 1, 49, 1, 49, 3, 49, 914, 8, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 3, 50, 921, 8, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 5, 51, 928, 8, 51, 10, 51, 12, 51, 931, 9, 51, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 3, 53, 941, 8, 53, 3, 53, 943, 8, 53, 1, 54, 3, 54, 946, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 954, 8, 54, 1, 55, 1, 55, 1, 55, 3, 55, 959, 8, 55, 1, 56, 1, 56, 1, 57, 1, 57, 1, 58, 1, 58, 1, 59, 1, 59, 3, 59, 969, 8, 59, 1, 60, 1, 60, 1, 60, 3, 60, 974, 8, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 0, 3, 38, 76, 96, 63, 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, 0, 16, 2, 0, 32, 32, 141, 141, 2, 0, 84, 84, 96, 96, 3, 0, 4, 4, 8, 8, 12, 12, 4, 0, 4, 4, 7, 8, 12, 12, 147, 147, 2, 0, 96, 96, 140, 140, 2, 0, 4, 4, 8, 8, 2, 0, 11, 11, 42, 43, 2, 0, 62, 62, 93, 93, 2, 0, 133, 133, 143, 143, 3, 0, 17, 17, 95, 95, 170, 170, 2, 0, 79, 79, 98, 98, 1, 0, 197, 198, 2, 0, 208, 208, 228, 228, 8, 0, 37, 37, 76, 76, 108, 108, 110, 110, 132, 132, 145, 145, 185, 185, 190, 190, 13, 0, 2, 24, 26, 36, 38, 75, 77, 81, 83, 107, 109, 109, 111, 112, 114, 115, 117, 130, 133, 144, 146, 184, 186, 189, 191, 192, 4, 0, 36, 36, 62, 62, 77, 77, 91, 91, 1111, 0, 129, 1, 0, 0, 0, 2, 133, 1, 0, 0, 0, 4, 147, 1, 0, 0, 0, 6, 151, 1, 0, 0, 0, 8, 154, 1, 0, 0, 0, 10, 203, 1, 0, 0, 0, 12, 206, 1, 0, 0, 0, 14, 212, 1, 0, 0, 0, 16, 216, 1, 0, 0, 0, 18, 222, 1, 0, 0, 0, 20, 240, 1, 0, 0, 0, 22, 243, 1, 0, 0, 0, 24, 246, 1, 0, 0, 0, 26, 256, 1, 0, 0, 0, 28, 259, 1, 0, 0, 0, 30, 263, 1, 0, 0, 0, 32, 296, 1, 0, 0, 0, 34, 298, 1, 0, 0, 0, 36, 301, 1, 0, 0, 0, 38, 316, 1, 0, 0, 0, 40, 378, 1, 0, 0, 0, 42, 383, 1, 0, 0, 0, 44, 394, 1, 0, 0, 0, 46, 396, 1, 0, 0, 0, 48, 402, 1, 0, 0, 0, 50, 410, 1, 0, 0, 0, 52, 428, 1, 0, 0, 0, 54, 430, 1, 0, 0, 0, 56, 438, 1, 0, 0, 0, 58, 443, 1, 0, 0, 0, 60, 451, 1, 0, 0, 0, 62, 455, 1, 0, 0, 0, 64, 459, 1, 0, 0, 0, 66, 468, 1, 0, 0, 0, 68, 482, 1, 0, 0, 0, 70, 484, 1, 0, 0, 0, 72, 534, 1, 0, 0, 0, 74, 536, 1, 0, 0, 0, 76, 674, 1, 0, 0, 0, 78, 772, 1, 0, 0, 0, 80, 782, 1, 0, 0, 0, 82, 803, 1, 0, 0, 0, 84, 836, 1, 0, 0, 0, 86, 849, 1, 0, 0, 0, 88, 851, 1, 0, 0, 0, 90, 869, 1, 0, 0, 0, 92, 878, 1, 0, 0, 0, 94, 880, 1, 0, 0, 0, 96, 897, 1, 0, 0, 0, 98, 910, 1, 0, 0, 0, 100, 920, 1, 0, 0, 0, 102, 924, 1, 0, 0, 0, 104, 932, 1, 0, 0, 0, 106, 942, 1, 0, 0, 0, 108, 945, 1, 0, 0, 0, 110, 958, 1, 0, 0, 0, 112, 960, 1, 0, 0, 0, 114, 962, 1, 0, 0, 0, 116, 964, 1, 0, 0, 0, 118, 968, 1, 0, 0, 0, 120, 973, 1, 0, 0, 0, 122, 975, 1, 0, 0, 0, 124, 979, 1, 0, 0, 0, 126, 130, 3, 2, 1, 0, 127, 130, 3, 8, 4, 0, 128, 130, 3, 84, 42, 0, 129, 126, 1, 0, 0, 0, 129, 127, 1, 0, 0, 0, 129, 128, 1, 0, 0, 0, 130, 131, 1, 0, 0, 0, 131, 132, 5, 0, 0, 1, 132, 1, 1, 0, 0, 0, 133, 139, 3, 4, 2, 0, 134, 135, 5, 176, 0, 0, 135, 136, 5, 4, 0, 0, 136, 138, 3, 4, 2, 0, 137, 134, 1, 0, 0, 0, 138, 141, 1, 0, 0, 0, 139, 137, 1, 0, 0, 0, 139, 140, 1, 0, 0, 0, 140, 3, 1, 0, 0, 0, 141, 139, 1, 0, 0, 0, 142, 148, 3, 6, 3, 0, 143, 144, 5, 220, 0, 0, 144, 145, 3, 2, 1, 0, 145, 146, 5, 236, 0, 0, 146, 148, 1, 0, 0, 0, 147, 142, 1, 0, 0, 0, 147, 143, 1, 0, 0, 0, 148, 5, 1, 0, 0, 0, 149, 152, 3, 8, 4, 0, 150, 152, 3, 124, 62, 0, 151, 149, 1, 0, 0, 0, 151, 150, 1, 0, 0, 0, 152, 7, 1, 0, 0, 0, 153, 155, 3, 10, 5, 0, 154, 153, 1, 0, 0, 0, 154, 155, 1, 0, 0, 0, 155, 156, 1, 0, 0, 0, 156, 158, 5, 146, 0, 0, 157, 159, 5, 49, 0, 0, 158, 157, 1, 0, 0, 0, 158, 159, 1, 0, 0, 0, 159, 161, 1, 0, 0, 0, 160, 162, 3, 12, 6, 0, 161, 160, 1, 0, 0, 0, 161, 162, 1, 0, 0, 0, 162, 163, 1, 0, 0, 0, 163, 165, 3, 74, 37, 0, 164, 166, 3, 14, 7, 0, 165, 164, 1, 0, 0, 0, 165, 166, 1, 0, 0, 0, 166, 168, 1, 0, 0, 0, 167, 169, 3, 16, 8, 0, 168, 167, 1, 0, 0, 0, 168, 169, 1, 0, 0, 0, 169, 171, 1, 0, 0, 0, 170, 172, 3, 20, 10, 0, 171, 170, 1, 0, 0, 0, 171, 172, 1, 0, 0, 0, 172, 174, 1, 0, 0, 0, 173, 175, 3, 22, 11, 0, 174, 173, 1, 0, 0, 0, 174, 175, 1, 0, 0, 0, 175, 177, 1, 0, 0, 0, 176, 178, 3, 24, 12, 0, 177, 176, 1, 0, 0, 0, 177, 178, 1, 0, 0, 0, 178, 181, 1, 0, 0, 0, 179, 180, 5, 189, 0, 0, 180, 182, 7, 0, 0, 0, 181, 179, 1, 0, 0, 0, 181, 182, 1, 0, 0, 0, 182, 185, 1, 0, 0, 0, 183, 184, 5, 189, 0, 0, 184, 186, 5, 169, 0, 0, 185, 183, 1, 0, 0, 0, 185, 186, 1, 0, 0, 0, 186, 188, 1, 0, 0, 0, 187, 189, 3, 26, 13, 0, 188, 187, 1, 0, 0, 0, 188, 189, 1, 0, 0, 0, 189, 191, 1, 0, 0, 0, 190, 192, 3, 18, 9, 0, 191, 190, 1, 0, 0, 0, 191, 192, 1, 0, 0, 0, 192, 194, 1, 0, 0, 0, 193, 195, 3, 28, 14, 0, 194, 193, 1, 0, 0, 0, 194, 195, 1, 0, 0, 0, 195, 198, 1, 0, 0, 0, 196, 199, 3, 32, 16, 0, 197, 199, 3, 34, 17, 0, 198, 196, 1, 0, 0, 0, 198, 197, 1, 0, 0, 0, 198, 199, 1, 0, 0, 0, 199, 201, 1, 0, 0, 0, 200, 202, 3, 36, 18, 0, 201, 200, 1, 0, 0, 0, 201, 202, 1, 0, 0, 0, 202, 9, 1, 0, 0, 0, 203, 204, 5, 189, 0, 0, 204, 205, 3, 88, 44, 0, 205, 11, 1, 0, 0, 0, 206, 207, 5, 168, 0, 0, 207, 210, 5, 198, 0, 0, 208, 209, 5, 189, 0, 0, 209, 211, 5, 164, 0, 0, 210, 208, 1, 0, 0, 0, 210, 211, 1, 0, 0, 0, 211, 13, 1, 0, 0, 0, 212, 213, 5, 68, 0, 0, 213, 214, 3, 38, 19, 0, 214, 15, 1, 0, 0, 0, 215, 217, 7, 1, 0, 0, 216, 215, 1, 0, 0, 0, 216, 217, 1, 0, 0, 0, 217, 218, 1, 0, 0, 0, 218, 219, 5, 9, 0, 0, 219, 220, 5, 90, 0, 0, 220, 221, 3, 74, 37, 0, 221, 17, 1, 0, 0, 0, 222, 223, 5, 188, 0, 0, 223, 224, 3, 120, 60, 0, 224, 225, 5, 10, 0, 0, 225, 226, 5, 220, 0, 0, 226, 227, 3, 58, 29, 0, 227, 237, 5, 236, 0, 0, 228, 229, 5, 206, 0, 0, 229, 230, 3, 120, 60, 0, 230, 231, 5, 10, 0, 0, 231, 232, 5, 220, 0, 0, 232, 233, 3, 58, 29, 0, 233, 234, 5, 236, 0, 0, 234, 236, 1, 0, 0, 0, 235, 228, 1, 0, 0, 0, 236, 239, 1, 0, 0, 0, 237, 235, 1, 0, 0, 0, 237, 238, 1, 0, 0, 0, 238, 19, 1, 0, 0, 0, 239, 237, 1, 0, 0, 0, 240, 241, 5, 129, 0, 0, 241, 242, 3, 76, 38, 0, 242, 21, 1, 0, 0, 0, 243, 244, 5, 187, 0, 0, 244, 245, 3, 76, 38, 0, 245, 23, 1, 0, 0, 0, 246, 247, 5, 73, 0, 0, 247, 254, 5, 18, 0, 0, 248, 249, 7, 0, 0, 0, 249, 250, 5, 220, 0, 0, 250, 251, 3, 74, 37, 0, 251, 252, 5, 236, 0, 0, 252, 255, 1, 0, 0, 0, 253, 255, 3, 74, 37, 0, 254, 248, 1, 0, 0, 0, 254, 253, 1, 0, 0, 0, 255, 25, 1, 0, 0, 0, 256, 257, 5, 74, 0, 0, 257, 258, 3, 76, 38, 0, 258, 27, 1, 0, 0, 0, 259, 260, 5, 122, 0, 0, 260, 261, 5, 18, 0, 0, 261, 262, 3, 48, 24, 0, 262, 29, 1, 0, 0, 0, 263, 264, 5, 122, 0, 0, 264, 265, 5, 18, 0, 0, 265, 266, 3, 74, 37, 0, 266, 31, 1, 0, 0, 0, 267, 268, 5, 99, 0, 0, 268, 271, 3, 76, 38, 0, 269, 270, 5, 206, 0, 0, 270, 272, 3, 76, 38, 0, 271, 269, 1, 0, 0, 0, 271, 272, 1, 0, 0, 0, 272, 277, 1, 0, 0, 0, 273, 274, 5, 189, 0, 0, 274, 278, 5, 164, 0, 0, 275, 276, 5, 18, 0, 0, 276, 278, 3, 74, 37, 0, 277, 273, 1, 0, 0, 0, 277, 275, 1, 0, 0, 0, 277, 278, 1, 0, 0, 0, 278, 297, 1, 0, 0, 0, 279, 280, 5, 99, 0, 0, 280, 283, 3, 76, 38, 0, 281, 282, 5, 189, 0, 0, 282, 284, 5, 164, 0, 0, 283, 281, 1, 0, 0, 0, 283, 284, 1, 0, 0, 0, 284, 285, 1, 0, 0, 0, 285, 286, 5, 118, 0, 0, 286, 287, 3, 76, 38, 0, 287, 297, 1, 0, 0, 0, 288, 289, 5, 99, 0, 0, 289, 290, 3, 76, 38, 0, 290, 291, 5, 118, 0, 0, 291, 294, 3, 76, 38, 0, 292, 293, 5, 18, 0, 0, 293, 295, 3, 74, 37, 0, 294, 292, 1, 0, 0, 0, 294, 295, 1, 0, 0, 0, 295, 297, 1, 0, 0, 0, 296, 267, 1, 0, 0, 0, 296, 279, 1, 0, 0, 0, 296, 288, 1, 0, 0, 0, 297, 33, 1, 0, 0, 0, 298, 299, 5, 118, 0, 0, 299, 300, 3, 76, 38, 0, 300, 35, 1, 0, 0, 0, 301, 302, 5, 150, 0, 0, 302, 303, 3, 54, 27, 0, 303, 37, 1, 0, 0, 0, 304, 305, 6, 19, -1, 0, 305, 307, 3, 96, 48, 0, 306, 308, 5, 61, 0, 0, 307, 306, 1, 0, 0, 0, 307, 308, 1, 0, 0, 0, 308, 310, 1, 0, 0, 0, 309, 311, 3, 46, 23, 0, 310, 309, 1, 0, 0, 0, 310, 311, 1, 0, 0, 0, 311, 317, 1, 0, 0, 0, 312, 313, 5, 220, 0, 0, 313, 314, 3, 38, 19, 0, 314, 315, 5, 236, 0, 0, 315, 317, 1, 0, 0, 0, 316, 304, 1, 0, 0, 0, 316, 312, 1, 0, 0, 0, 317, 332, 1, 0, 0, 0, 318, 319, 10, 3, 0, 0, 319, 320, 3, 42, 21, 0, 320, 321, 3, 38, 19, 4, 321, 331, 1, 0, 0, 0, 322, 324, 10, 4, 0, 0, 323, 325, 3, 40, 20, 0, 324, 323, 1, 0, 0, 0, 324, 325, 1, 0, 0, 0, 325, 326, 1, 0, 0, 0, 326, 327, 5, 90, 0, 0, 327, 328, 3, 38, 19, 0, 328, 329, 3, 44, 22, 0, 329, 331, 1, 0, 0, 0, 330, 318, 1, 0, 0, 0, 330, 322, 1, 0, 0, 0, 331, 334, 1, 0, 0, 0, 332, 330, 1, 0, 0, 0, 332, 333, 1, 0, 0, 0, 333, 39, 1, 0, 0, 0, 334, 332, 1, 0, 0, 0, 335, 337, 7, 2, 0, 0, 336, 335, 1, 0, 0, 0, 336, 337, 1, 0, 0, 0, 337, 338, 1, 0, 0, 0, 338, 345, 5, 84, 0, 0, 339, 341, 5, 84, 0, 0, 340, 342, 7, 2, 0, 0, 341, 340, 1, 0, 0, 0, 341, 342, 1, 0, 0, 0, 342, 345, 1, 0, 0, 0, 343, 345, 7, 2, 0, 0, 344, 336, 1, 0, 0, 0, 344, 339, 1, 0, 0, 0, 344, 343, 1, 0, 0, 0, 345, 379, 1, 0, 0, 0, 346, 348, 7, 3, 0, 0, 347, 346, 1, 0, 0, 0, 347, 348, 1, 0, 0, 0, 348, 349, 1, 0, 0, 0, 349, 351, 7, 4, 0, 0, 350, 352, 5, 123, 0, 0, 351, 350, 1, 0, 0, 0, 351, 352, 1, 0, 0, 0, 352, 361, 1, 0, 0, 0, 353, 355, 7, 4, 0, 0, 354, 356, 5, 123, 0, 0, 355, 354, 1, 0, 0, 0, 355, 356, 1, 0, 0, 0, 356, 358, 1, 0, 0, 0, 357, 359, 7, 3, 0, 0, 358, 357, 1, 0, 0, 0, 358, 359, 1, 0, 0, 0, 359, 361, 1, 0, 0, 0, 360, 347, 1, 0, 0, 0, 360, 353, 1, 0, 0, 0, 361, 379, 1, 0, 0, 0, 362, 364, 7, 5, 0, 0, 363, 362, 1, 0, 0, 0, 363, 364, 1, 0, 0, 0, 364, 365, 1, 0, 0, 0, 365, 367, 5, 69, 0, 0, 366, 368, 5, 123, 0, 0, 367, 366, 1, 0, 0, 0, 367, 368, 1, 0, 0, 0, 368, 377, 1, 0, 0, 0, 369, 371, 5, 69, 0, 0, 370, 372, 5, 123, 0, 0, 371, 370, 1, 0, 0, 0, 371, 372, 1, 0, 0, 0, 372, 374, 1, 0, 0, 0, 373, 375, 7, 5, 0, 0, 374, 373, 1, 0, 0, 0, 374, 375, 1, 0, 0, 0, 375, 377, 1, 0, 0, 0, 376, 363, 1, 0, 0, 0, 376, 369, 1, 0, 0, 0, 377, 379, 1, 0, 0, 0, 378, 344, 1, 0, 0, 0, 378, 360, 1, 0, 0, 0, 378, 376, 1, 0, 0, 0, 379, 41, 1, 0, 0, 0, 380, 381, 5, 31, 0, 0, 381, 384, 5, 90, 0, 0, 382, 384, 5, 206, 0, 0, 383, 380, 1, 0, 0, 0, 383, 382, 1, 0, 0, 0, 384, 43, 1, 0, 0, 0, 385, 386, 5, 119, 0, 0, 386, 395, 3, 74, 37, 0, 387, 388, 5, 179, 0, 0, 388, 389, 5, 220, 0, 0, 389, 390, 3, 74, 37, 0, 390, 391, 5, 236, 0, 0, 391, 395, 1, 0, 0, 0, 392, 393, 5, 179, 0, 0, 393, 395, 3, 74, 37, 0, 394, 385, 1, 0, 0, 0, 394, 387, 1, 0, 0, 0, 394, 392, 1, 0, 0, 0, 395, 45, 1, 0, 0, 0, 396, 397, 5, 144, 0, 0, 397, 400, 3, 52, 26, 0, 398, 399, 5, 118, 0, 0, 399, 401, 3, 52, 26, 0, 400, 398, 1, 0, 0, 0, 400, 401, 1, 0, 0, 0, 401, 47, 1, 0, 0, 0, 402, 407, 3, 50, 25, 0, 403, 404, 5, 206, 0, 0, 404, 406, 3, 50, 25, 0, 405, 403, 1, 0, 0, 0, 406, 409, 1, 0, 0, 0, 407, 405, 1, 0, 0, 0, 407, 408, 1, 0, 0, 0, 408, 49, 1, 0, 0, 0, 409, 407, 1, 0, 0, 0, 410, 412, 3, 76, 38, 0, 411, 413, 7, 6, 0, 0, 412, 411, 1, 0, 0, 0, 412, 413, 1, 0, 0, 0, 413, 416, 1, 0, 0, 0, 414, 415, 5, 117, 0, 0, 415, 417, 7, 7, 0, 0, 416, 414, 1, 0, 0, 0, 416, 417, 1, 0, 0, 0, 417, 420, 1, 0, 0, 0, 418, 419, 5, 26, 0, 0, 419, 421, 5, 200, 0, 0, 420, 418, 1, 0, 0, 0, 420, 421, 1, 0, 0, 0, 421, 51, 1, 0, 0, 0, 422, 429, 3, 124, 62, 0, 423, 426, 3, 108, 54, 0, 424, 425, 5, 238, 0, 0, 425, 427, 3, 108, 54, 0, 426, 424, 1, 0, 0, 0, 426, 427, 1, 0, 0, 0, 427, 429, 1, 0, 0, 0, 428, 422, 1, 0, 0, 0, 428, 423, 1, 0, 0, 0, 429, 53, 1, 0, 0, 0, 430, 435, 3, 56, 28, 0, 431, 432, 5, 206, 0, 0, 432, 434, 3, 56, 28, 0, 433, 431, 1, 0, 0, 0, 434, 437, 1, 0, 0, 0, 435, 433, 1, 0, 0, 0, 435, 436, 1, 0, 0, 0, 436, 55, 1, 0, 0, 0, 437, 435, 1, 0, 0, 0, 438, 439, 3, 120, 60, 0, 439, 440, 5, 212, 0, 0, 440, 441, 3, 110, 55, 0, 441, 57, 1, 0, 0, 0, 442, 444, 3, 60, 30, 0, 443, 442, 1, 0, 0, 0, 443, 444, 1, 0, 0, 0, 444, 446, 1, 0, 0, 0, 445, 447, 3, 62, 31, 0, 446, 445, 1, 0, 0, 0, 446, 447, 1, 0, 0, 0, 447, 449, 1, 0, 0, 0, 448, 450, 3, 64, 32, 0, 449, 448, 1, 0, 0, 0, 449, 450, 1, 0, 0, 0, 450, 59, 1, 0, 0, 0, 451, 452, 5, 126, 0, 0, 452, 453, 5, 18, 0, 0, 453, 454, 3, 74, 37, 0, 454, 61, 1, 0, 0, 0, 455, 456, 5, 122, 0, 0, 456, 457, 5, 18, 0, 0, 457, 458, 3, 48, 24, 0, 458, 63, 1, 0, 0, 0, 459, 460, 7, 8, 0, 0, 460, 461, 3, 66, 33, 0, 461, 65, 1, 0, 0, 0, 462, 469, 3, 68, 34, 0, 463, 464, 5, 16, 0, 0, 464, 465, 3, 68, 34, 0, 465, 466, 5, 6, 0, 0, 466, 467, 3, 68, 34, 0, 467, 469, 1, 0, 0, 0, 468, 462, 1, 0, 0, 0, 468, 463, 1, 0, 0, 0, 469, 67, 1, 0, 0, 0, 470, 471, 5, 33, 0, 0, 471, 483, 5, 142, 0, 0, 472, 473, 5, 175, 0, 0, 473, 483, 5, 128, 0, 0, 474, 475, 5, 175, 0, 0, 475, 483, 5, 64, 0, 0, 476, 477, 3, 108, 54, 0, 477, 478, 5, 128, 0, 0, 478, 483, 1, 0, 0, 0, 479, 480, 3, 108, 54, 0, 480, 481, 5, 64, 0, 0, 481, 483, 1, 0, 0, 0, 482, 470, 1, 0, 0, 0, 482, 472, 1, 0, 0, 0, 482, 474, 1, 0, 0, 0, 482, 476, 1, 0, 0, 0, 482, 479, 1, 0, 0, 0, 483, 69, 1, 0, 0, 0, 484, 485, 3, 76, 38, 0, 485, 486, 5, 0, 0, 1, 486, 71, 1, 0, 0, 0, 487, 535, 3, 120, 60, 0, 488, 489, 3, 120, 60, 0, 489, 490, 5, 220, 0, 0, 490, 491, 3, 120, 60, 0, 491, 498, 3, 72, 36, 0, 492, 493, 5, 206, 0, 0, 493, 494, 3, 120, 60, 0, 494, 495, 3, 72, 36, 0, 495, 497, 1, 0, 0, 0, 496, 492, 1, 0, 0, 0, 497, 500, 1, 0, 0, 0, 498, 496, 1, 0, 0, 0, 498, 499, 1, 0, 0, 0, 499, 501, 1, 0, 0, 0, 500, 498, 1, 0, 0, 0, 501, 502, 5, 236, 0, 0, 502, 535, 1, 0, 0, 0, 503, 504, 3, 120, 60, 0, 504, 505, 5, 220, 0, 0, 505, 510, 3, 122, 61, 0, 506, 507, 5, 206, 0, 0, 507, 509, 3, 122, 61, 0, 508, 506, 1, 0, 0, 0, 509, 512, 1, 0, 0, 0, 510, 508, 1, 0, 0, 0, 510, 511, 1, 0, 0, 0, 511, 513, 1, 0, 0, 0, 512, 510, 1, 0, 0, 0, 513, 514, 5, 236, 0, 0, 514, 535, 1, 0, 0, 0, 515, 516, 3, 120, 60, 0, 516, 517, 5, 220, 0, 0, 517, 522, 3, 72, 36, 0, 518, 519, 5, 206, 0, 0, 519, 521, 3, 72, 36, 0, 520, 518, 1, 0, 0, 0, 521, 524, 1, 0, 0, 0, 522, 520, 1, 0, 0, 0, 522, 523, 1, 0, 0, 0, 523, 525, 1, 0, 0, 0, 524, 522, 1, 0, 0, 0, 525, 526, 5, 236, 0, 0, 526, 535, 1, 0, 0, 0, 527, 528, 3, 120, 60, 0, 528, 530, 5, 220, 0, 0, 529, 531, 3, 74, 37, 0, 530, 529, 1, 0, 0, 0, 530, 531, 1, 0, 0, 0, 531, 532, 1, 0, 0, 0, 532, 533, 5, 236, 0, 0, 533, 535, 1, 0, 0, 0, 534, 487, 1, 0, 0, 0, 534, 488, 1, 0, 0, 0, 534, 503, 1, 0, 0, 0, 534, 515, 1, 0, 0, 0, 534, 527, 1, 0, 0, 0, 535, 73, 1, 0, 0, 0, 536, 541, 3, 76, 38, 0, 537, 538, 5, 206, 0, 0, 538, 540, 3, 76, 38, 0, 539, 537, 1, 0, 0, 0, 540, 543, 1, 0, 0, 0, 541, 539, 1, 0, 0, 0, 541, 542, 1, 0, 0, 0, 542, 75, 1, 0, 0, 0, 543, 541, 1, 0, 0, 0, 544, 545, 6, 38, -1, 0, 545, 547, 5, 19, 0, 0, 546, 548, 3, 76, 38, 0, 547, 546, 1, 0, 0, 0, 547, 548, 1, 0, 0, 0, 548, 554, 1, 0, 0, 0, 549, 550, 5, 186, 0, 0, 550, 551, 3, 76, 38, 0, 551, 552, 5, 163, 0, 0, 552, 553, 3, 76, 38, 0, 553, 555, 1, 0, 0, 0, 554, 549, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 554, 1, 0, 0, 0, 556, 557, 1, 0, 0, 0, 557, 560, 1, 0, 0, 0, 558, 559, 5, 52, 0, 0, 559, 561, 3, 76, 38, 0, 560, 558, 1, 0, 0, 0, 560, 561, 1, 0, 0, 0, 561, 562, 1, 0, 0, 0, 562, 563, 5, 53, 0, 0, 563, 675, 1, 0, 0, 0, 564, 565, 5, 20, 0, 0, 565, 566, 5, 220, 0, 0, 566, 567, 3, 76, 38, 0, 567, 568, 5, 10, 0, 0, 568, 569, 3, 72, 36, 0, 569, 570, 5, 236, 0, 0, 570, 675, 1, 0, 0, 0, 571, 572, 5, 36, 0, 0, 572, 675, 5, 200, 0, 0, 573, 574, 5, 59, 0, 0, 574, 575, 5, 220, 0, 0, 575, 576, 3, 112, 56, 0, 576, 577, 5, 68, 0, 0, 577, 578, 3, 76, 38, 0, 578, 579, 5, 236, 0, 0, 579, 675, 1, 0, 0, 0, 580, 581, 5, 86, 0, 0, 581, 582, 3, 76, 38, 0, 582, 583, 3, 112, 56, 0, 583, 675, 1, 0, 0, 0, 584, 585, 5, 155, 0, 0, 585, 586, 5, 220, 0, 0, 586, 587, 3, 76, 38, 0, 587, 588, 5, 68, 0, 0, 588, 591, 3, 76, 38, 0, 589, 590, 5, 65, 0, 0, 590, 592, 3, 76, 38, 0, 591, 589, 1, 0, 0, 0, 591, 592, 1, 0, 0, 0, 592, 593, 1, 0, 0, 0, 593, 594, 5, 236, 0, 0, 594, 675, 1, 0, 0, 0, 595, 596, 5, 166, 0, 0, 596, 675, 5, 200, 0, 0, 597, 598, 5, 171, 0, 0, 598, 599, 5, 220, 0, 0, 599, 600, 7, 9, 0, 0, 600, 601, 5, 200, 0, 0, 601, 602, 5, 68, 0, 0, 602, 603, 3, 76, 38, 0, 603, 604, 5, 236, 0, 0, 604, 675, 1, 0, 0, 0, 605, 606, 3, 120, 60, 0, 606, 608, 5, 220, 0, 0, 607, 609, 3, 74, 37, 0, 608, 607, 1, 0, 0, 0, 608, 609, 1, 0, 0, 0, 609, 610, 1, 0, 0, 0, 610, 611, 5, 236, 0, 0, 611, 612, 1, 0, 0, 0, 612, 613, 5, 125, 0, 0, 613, 614, 5, 220, 0, 0, 614, 615, 3, 58, 29, 0, 615, 616, 5, 236, 0, 0, 616, 675, 1, 0, 0, 0, 617, 618, 3, 120, 60, 0, 618, 620, 5, 220, 0, 0, 619, 621, 3, 74, 37, 0, 620, 619, 1, 0, 0, 0, 620, 621, 1, 0, 0, 0, 621, 622, 1, 0, 0, 0, 622, 623, 5, 236, 0, 0, 623, 624, 1, 0, 0, 0, 624, 625, 5, 125, 0, 0, 625, 626, 3, 120, 60, 0, 626, 675, 1, 0, 0, 0, 627, 633, 3, 120, 60, 0, 628, 630, 5, 220, 0, 0, 629, 631, 3, 74, 37, 0, 630, 629, 1, 0, 0, 0, 630, 631, 1, 0, 0, 0, 631, 632, 1, 0, 0, 0, 632, 634, 5, 236, 0, 0, 633, 628, 1, 0, 0, 0, 633, 634, 1, 0, 0, 0, 634, 635, 1, 0, 0, 0, 635, 637, 5, 220, 0, 0, 636, 638, 5, 49, 0, 0, 637, 636, 1, 0, 0, 0, 637, 638, 1, 0, 0, 0, 638, 640, 1, 0, 0, 0, 639, 641, 3, 78, 39, 0, 640, 639, 1, 0, 0, 0, 640, 641, 1, 0, 0, 0, 641, 642, 1, 0, 0, 0, 642, 643, 5, 236, 0, 0, 643, 675, 1, 0, 0, 0, 644, 675, 3, 84, 42, 0, 645, 675, 3, 110, 55, 0, 646, 647, 5, 208, 0, 0, 647, 675, 3, 76, 38, 18, 648, 649, 5, 115, 0, 0, 649, 675, 3, 76, 38, 12, 650, 651, 3, 100, 50, 0, 651, 652, 5, 210, 0, 0, 652, 654, 1, 0, 0, 0, 653, 650, 1, 0, 0, 0, 653, 654, 1, 0, 0, 0, 654, 655, 1, 0, 0, 0, 655, 675, 5, 202, 0, 0, 656, 657, 5, 220, 0, 0, 657, 658, 3, 2, 1, 0, 658, 659, 5, 236, 0, 0, 659, 675, 1, 0, 0, 0, 660, 661, 5, 220, 0, 0, 661, 662, 3, 76, 38, 0, 662, 663, 5, 236, 0, 0, 663, 675, 1, 0, 0, 0, 664, 665, 5, 220, 0, 0, 665, 666, 3, 74, 37, 0, 666, 667, 5, 236, 0, 0, 667, 675, 1, 0, 0, 0, 668, 670, 5, 219, 0, 0, 669, 671, 3, 74, 37, 0, 670, 669, 1, 0, 0, 0, 670, 671, 1, 0, 0, 0, 671, 672, 1, 0, 0, 0, 672, 675, 5, 235, 0, 0, 673, 675, 3, 92, 46, 0, 674, 544, 1, 0, 0, 0, 674, 564, 1, 0, 0, 0, 674, 571, 1, 0, 0, 0, 674, 573, 1, 0, 0, 0, 674, 580, 1, 0, 0, 0, 674, 584, 1, 0, 0, 0, 674, 595, 1, 0, 0, 0, 674, 597, 1, 0, 0, 0, 674, 605, 1, 0, 0, 0, 674, 617, 1, 0, 0, 0, 674, 627, 1, 0, 0, 0, 674, 644, 1, 0, 0, 0, 674, 645, 1, 0, 0, 0, 674, 646, 1, 0, 0, 0, 674, 648, 1, 0, 0, 0, 674, 653, 1, 0, 0, 0, 674, 656, 1, 0, 0, 0, 674, 660, 1, 0, 0, 0, 674, 664, 1, 0, 0, 0, 674, 668, 1, 0, 0, 0, 674, 673, 1, 0, 0, 0, 675, 769, 1, 0, 0, 0, 676, 680, 10, 17, 0, 0, 677, 681, 5, 202, 0, 0, 678, 681, 5, 238, 0, 0, 679, 681, 5, 227, 0, 0, 680, 677, 1, 0, 0, 0, 680, 678, 1, 0, 0, 0, 680, 679, 1, 0, 0, 0, 681, 682, 1, 0, 0, 0, 682, 768, 3, 76, 38, 18, 683, 687, 10, 16, 0, 0, 684, 688, 5, 228, 0, 0, 685, 688, 5, 208, 0, 0, 686, 688, 5, 207, 0, 0, 687, 684, 1, 0, 0, 0, 687, 685, 1, 0, 0, 0, 687, 686, 1, 0, 0, 0, 688, 689, 1, 0, 0, 0, 689, 768, 3, 76, 38, 17, 690, 715, 10, 15, 0, 0, 691, 716, 5, 211, 0, 0, 692, 716, 5, 212, 0, 0, 693, 716, 5, 223, 0, 0, 694, 716, 5, 221, 0, 0, 695, 716, 5, 222, 0, 0, 696, 716, 5, 213, 0, 0, 697, 716, 5, 214, 0, 0, 698, 700, 5, 115, 0, 0, 699, 698, 1, 0, 0, 0, 699, 700, 1, 0, 0, 0, 700, 701, 1, 0, 0, 0, 701, 703, 5, 80, 0, 0, 702, 704, 5, 25, 0, 0, 703, 702, 1, 0, 0, 0, 703, 704, 1, 0, 0, 0, 704, 716, 1, 0, 0, 0, 705, 707, 5, 115, 0, 0, 706, 705, 1, 0, 0, 0, 706, 707, 1, 0, 0, 0, 707, 708, 1, 0, 0, 0, 708, 716, 7, 10, 0, 0, 709, 716, 5, 232, 0, 0, 710, 716, 5, 233, 0, 0, 711, 716, 5, 225, 0, 0, 712, 716, 5, 216, 0, 0, 713, 716, 5, 217, 0, 0, 714, 716, 5, 224, 0, 0, 715, 691, 1, 0, 0, 0, 715, 692, 1, 0, 0, 0, 715, 693, 1, 0, 0, 0, 715, 694, 1, 0, 0, 0, 715, 695, 1, 0, 0, 0, 715, 696, 1, 0, 0, 0, 715, 697, 1, 0, 0, 0, 715, 699, 1, 0, 0, 0, 715, 706, 1, 0, 0, 0, 715, 709, 1, 0, 0, 0, 715, 710, 1, 0, 0, 0, 715, 711, 1, 0, 0, 0, 715, 712, 1, 0, 0, 0, 715, 713, 1, 0, 0, 0, 715, 714, 1, 0, 0, 0, 716, 717, 1, 0, 0, 0, 717, 768, 3, 76, 38, 16, 718, 719, 10, 13, 0, 0, 719, 720, 5, 226, 0, 0, 720, 768, 3, 76, 38, 14, 721, 722, 10, 11, 0, 0, 722, 723, 5, 6, 0, 0, 723, 768, 3, 76, 38, 12, 724, 725, 10, 10, 0, 0, 725, 726, 5, 121, 0, 0, 726, 768, 3, 76, 38, 11, 727, 729, 10, 9, 0, 0, 728, 730, 5, 115, 0, 0, 729, 728, 1, 0, 0, 0, 729, 730, 1, 0, 0, 0, 730, 731, 1, 0, 0, 0, 731, 732, 5, 16, 0, 0, 732, 733, 3, 76, 38, 0, 733, 734, 5, 6, 0, 0, 734, 735, 3, 76, 38, 10, 735, 768, 1, 0, 0, 0, 736, 737, 10, 8, 0, 0, 737, 738, 5, 229, 0, 0, 738, 739, 3, 76, 38, 0, 739, 740, 5, 205, 0, 0, 740, 741, 3, 76, 38, 8, 741, 768, 1, 0, 0, 0, 742, 743, 10, 21, 0, 0, 743, 744, 5, 219, 0, 0, 744, 745, 3, 76, 38, 0, 745, 746, 5, 235, 0, 0, 746, 768, 1, 0, 0, 0, 747, 748, 10, 20, 0, 0, 748, 749, 5, 210, 0, 0, 749, 768, 5, 198, 0, 0, 750, 751, 10, 19, 0, 0, 751, 752, 5, 210, 0, 0, 752, 768, 3, 120, 60, 0, 753, 754, 10, 14, 0, 0, 754, 756, 5, 88, 0, 0, 755, 757, 5, 115, 0, 0, 756, 755, 1, 0, 0, 0, 756, 757, 1, 0, 0, 0, 757, 758, 1, 0, 0, 0, 758, 768, 5, 116, 0, 0, 759, 765, 10, 7, 0, 0, 760, 766, 3, 118, 59, 0, 761, 762, 5, 10, 0, 0, 762, 766, 3, 120, 60, 0, 763, 764, 5, 10, 0, 0, 764, 766, 5, 200, 0, 0, 765, 760, 1, 0, 0, 0, 765, 761, 1, 0, 0, 0, 765, 763, 1, 0, 0, 0, 766, 768, 1, 0, 0, 0, 767, 676, 1, 0, 0, 0, 767, 683, 1, 0, 0, 0, 767, 690, 1, 0, 0, 0, 767, 718, 1, 0, 0, 0, 767, 721, 1, 0, 0, 0, 767, 724, 1, 0, 0, 0, 767, 727, 1, 0, 0, 0, 767, 736, 1, 0, 0, 0, 767, 742, 1, 0, 0, 0, 767, 747, 1, 0, 0, 0, 767, 750, 1, 0, 0, 0, 767, 753, 1, 0, 0, 0, 767, 759, 1, 0, 0, 0, 768, 771, 1, 0, 0, 0, 769, 767, 1, 0, 0, 0, 769, 770, 1, 0, 0, 0, 770, 77, 1, 0, 0, 0, 771, 769, 1, 0, 0, 0, 772, 777, 3, 80, 40, 0, 773, 774, 5, 206, 0, 0, 774, 776, 3, 80, 40, 0, 775, 773, 1, 0, 0, 0, 776, 779, 1, 0, 0, 0, 777, 775, 1, 0, 0, 0, 777, 778, 1, 0, 0, 0, 778, 79, 1, 0, 0, 0, 779, 777, 1, 0, 0, 0, 780, 783, 3, 82, 41, 0, 781, 783, 3, 76, 38, 0, 782, 780, 1, 0, 0, 0, 782, 781, 1, 0, 0, 0, 783, 81, 1, 0, 0, 0, 784, 785, 5, 220, 0, 0, 785, 790, 3, 120, 60, 0, 786, 787, 5, 206, 0, 0, 787, 789, 3, 120, 60, 0, 788, 786, 1, 0, 0, 0, 789, 792, 1, 0, 0, 0, 790, 788, 1, 0, 0, 0, 790, 791, 1, 0, 0, 0, 791, 793, 1, 0, 0, 0, 792, 790, 1, 0, 0, 0, 793, 794, 5, 236, 0, 0, 794, 804, 1, 0, 0, 0, 795, 800, 3, 120, 60, 0, 796, 797, 5, 206, 0, 0, 797, 799, 3, 120, 60, 0, 798, 796, 1, 0, 0, 0, 799, 802, 1, 0, 0, 0, 800, 798, 1, 0, 0, 0, 800, 801, 1, 0, 0, 0, 801, 804, 1, 0, 0, 0, 802, 800, 1, 0, 0, 0, 803, 784, 1, 0, 0, 0, 803, 795, 1, 0, 0, 0, 804, 805, 1, 0, 0, 0, 805, 806, 5, 201, 0, 0, 806, 807, 3, 76, 38, 0, 807, 83, 1, 0, 0, 0, 808, 809, 5, 222, 0, 0, 809, 813, 3, 120, 60, 0, 810, 812, 3, 86, 43, 0, 811, 810, 1, 0, 0, 0, 812, 815, 1, 0, 0, 0, 813, 811, 1, 0, 0, 0, 813, 814, 1, 0, 0, 0, 814, 816, 1, 0, 0, 0, 815, 813, 1, 0, 0, 0, 816, 817, 5, 238, 0, 0, 817, 818, 5, 214, 0, 0, 818, 837, 1, 0, 0, 0, 819, 820, 5, 222, 0, 0, 820, 824, 3, 120, 60, 0, 821, 823, 3, 86, 43, 0, 822, 821, 1, 0, 0, 0, 823, 826, 1, 0, 0, 0, 824, 822, 1, 0, 0, 0, 824, 825, 1, 0, 0, 0, 825, 827, 1, 0, 0, 0, 826, 824, 1, 0, 0, 0, 827, 829, 5, 214, 0, 0, 828, 830, 3, 84, 42, 0, 829, 828, 1, 0, 0, 0, 829, 830, 1, 0, 0, 0, 830, 831, 1, 0, 0, 0, 831, 832, 5, 222, 0, 0, 832, 833, 5, 238, 0, 0, 833, 834, 3, 120, 60, 0, 834, 835, 5, 214, 0, 0, 835, 837, 1, 0, 0, 0, 836, 808, 1, 0, 0, 0, 836, 819, 1, 0, 0, 0, 837, 85, 1, 0, 0, 0, 838, 839, 3, 120, 60, 0, 839, 840, 5, 212, 0, 0, 840, 841, 5, 200, 0, 0, 841, 850, 1, 0, 0, 0, 842, 843, 3, 120, 60, 0, 843, 844, 5, 212, 0, 0, 844, 845, 5, 218, 0, 0, 845, 846, 3, 76, 38, 0, 846, 847, 5, 234, 0, 0, 847, 850, 1, 0, 0, 0, 848, 850, 3, 120, 60, 0, 849, 838, 1, 0, 0, 0, 849, 842, 1, 0, 0, 0, 849, 848, 1, 0, 0, 0, 850, 87, 1, 0, 0, 0, 851, 856, 3, 90, 45, 0, 852, 853, 5, 206, 0, 0, 853, 855, 3, 90, 45, 0, 854, 852, 1, 0, 0, 0, 855, 858, 1, 0, 0, 0, 856, 854, 1, 0, 0, 0, 856, 857, 1, 0, 0, 0, 857, 89, 1, 0, 0, 0, 858, 856, 1, 0, 0, 0, 859, 860, 3, 120, 60, 0, 860, 861, 5, 10, 0, 0, 861, 862, 5, 220, 0, 0, 862, 863, 3, 2, 1, 0, 863, 864, 5, 236, 0, 0, 864, 870, 1, 0, 0, 0, 865, 866, 3, 76, 38, 0, 866, 867, 5, 10, 0, 0, 867, 868, 3, 120, 60, 0, 868, 870, 1, 0, 0, 0, 869, 859, 1, 0, 0, 0, 869, 865, 1, 0, 0, 0, 870, 91, 1, 0, 0, 0, 871, 879, 3, 124, 62, 0, 872, 873, 3, 100, 50, 0, 873, 874, 5, 210, 0, 0, 874, 876, 1, 0, 0, 0, 875, 872, 1, 0, 0, 0, 875, 876, 1, 0, 0, 0, 876, 877, 1, 0, 0, 0, 877, 879, 3, 94, 47, 0, 878, 871, 1, 0, 0, 0, 878, 875, 1, 0, 0, 0, 879, 93, 1, 0, 0, 0, 880, 885, 3, 120, 60, 0, 881, 882, 5, 210, 0, 0, 882, 884, 3, 120, 60, 0, 883, 881, 1, 0, 0, 0, 884, 887, 1, 0, 0, 0, 885, 883, 1, 0, 0, 0, 885, 886, 1, 0, 0, 0, 886, 95, 1, 0, 0, 0, 887, 885, 1, 0, 0, 0, 888, 889, 6, 48, -1, 0, 889, 898, 3, 100, 50, 0, 890, 898, 3, 98, 49, 0, 891, 892, 5, 220, 0, 0, 892, 893, 3, 2, 1, 0, 893, 894, 5, 236, 0, 0, 894, 898, 1, 0, 0, 0, 895, 898, 3, 84, 42, 0, 896, 898, 3, 124, 62, 0, 897, 888, 1, 0, 0, 0, 897, 890, 1, 0, 0, 0, 897, 891, 1, 0, 0, 0, 897, 895, 1, 0, 0, 0, 897, 896, 1, 0, 0, 0, 898, 907, 1, 0, 0, 0, 899, 903, 10, 3, 0, 0, 900, 904, 3, 118, 59, 0, 901, 902, 5, 10, 0, 0, 902, 904, 3, 120, 60, 0, 903, 900, 1, 0, 0, 0, 903, 901, 1, 0, 0, 0, 904, 906, 1, 0, 0, 0, 905, 899, 1, 0, 0, 0, 906, 909, 1, 0, 0, 0, 907, 905, 1, 0, 0, 0, 907, 908, 1, 0, 0, 0, 908, 97, 1, 0, 0, 0, 909, 907, 1, 0, 0, 0, 910, 911, 3, 120, 60, 0, 911, 913, 5, 220, 0, 0, 912, 914, 3, 102, 51, 0, 913, 912, 1, 0, 0, 0, 913, 914, 1, 0, 0, 0, 914, 915, 1, 0, 0, 0, 915, 916, 5, 236, 0, 0, 916, 99, 1, 0, 0, 0, 917, 918, 3, 104, 52, 0, 918, 919, 5, 210, 0, 0, 919, 921, 1, 0, 0, 0, 920, 917, 1, 0, 0, 0, 920, 921, 1, 0, 0, 0, 921, 922, 1, 0, 0, 0, 922, 923, 3, 120, 60, 0, 923, 101, 1, 0, 0, 0, 924, 929, 3, 76, 38, 0, 925, 926, 5, 206, 0, 0, 926, 928, 3, 76, 38, 0, 927, 925, 1, 0, 0, 0, 928, 931, 1, 0, 0, 0, 929, 927, 1, 0, 0, 0, 929, 930, 1, 0, 0, 0, 930, 103, 1, 0, 0, 0, 931, 929, 1, 0, 0, 0, 932, 933, 3, 120, 60, 0, 933, 105, 1, 0, 0, 0, 934, 943, 5, 196, 0, 0, 935, 936, 5, 210, 0, 0, 936, 943, 7, 11, 0, 0, 937, 938, 5, 198, 0, 0, 938, 940, 5, 210, 0, 0, 939, 941, 7, 11, 0, 0, 940, 939, 1, 0, 0, 0, 940, 941, 1, 0, 0, 0, 941, 943, 1, 0, 0, 0, 942, 934, 1, 0, 0, 0, 942, 935, 1, 0, 0, 0, 942, 937, 1, 0, 0, 0, 943, 107, 1, 0, 0, 0, 944, 946, 7, 12, 0, 0, 945, 944, 1, 0, 0, 0, 945, 946, 1, 0, 0, 0, 946, 953, 1, 0, 0, 0, 947, 954, 3, 106, 53, 0, 948, 954, 5, 197, 0, 0, 949, 954, 5, 198, 0, 0, 950, 954, 5, 199, 0, 0, 951, 954, 5, 82, 0, 0, 952, 954, 5, 113, 0, 0, 953, 947, 1, 0, 0, 0, 953, 948, 1, 0, 0, 0, 953, 949, 1, 0, 0, 0, 953, 950, 1, 0, 0, 0, 953, 951, 1, 0, 0, 0, 953, 952, 1, 0, 0, 0, 954, 109, 1, 0, 0, 0, 955, 959, 3, 108, 54, 0, 956, 959, 5, 200, 0, 0, 957, 959, 5, 116, 0, 0, 958, 955, 1, 0, 0, 0, 958, 956, 1, 0, 0, 0, 958, 957, 1, 0, 0, 0, 959, 111, 1, 0, 0, 0, 960, 961, 7, 13, 0, 0, 961, 113, 1, 0, 0, 0, 962, 963, 7, 14, 0, 0, 963, 115, 1, 0, 0, 0, 964, 965, 7, 15, 0, 0, 965, 117, 1, 0, 0, 0, 966, 969, 5, 195, 0, 0, 967, 969, 3, 116, 58, 0, 968, 966, 1, 0, 0, 0, 968, 967, 1, 0, 0, 0, 969, 119, 1, 0, 0, 0, 970, 974, 5, 195, 0, 0, 971, 974, 3, 112, 56, 0, 972, 974, 3, 114, 57, 0, 973, 970, 1, 0, 0, 0, 973, 971, 1, 0, 0, 0, 973, 972, 1, 0, 0, 0, 974, 121, 1, 0, 0, 0, 975, 976, 5, 200, 0, 0, 976, 977, 5, 212, 0, 0, 977, 978, 3, 108, 54, 0, 978, 123, 1, 0, 0, 0, 979, 980, 5, 218, 0, 0, 980, 981, 3, 120, 60, 0, 981, 982, 5, 234, 0, 0, 982, 125, 1, 0, 0, 0, 121, 129, 139, 147, 151, 154, 158, 161, 165, 168, 171, 174, 177, 181, 185, 188, 191, 194, 198, 201, 210, 216, 237, 254, 271, 277, 283, 294, 296, 307, 310, 316, 324, 330, 332, 336, 341, 344, 347, 351, 355, 358, 360, 363, 367, 371, 374, 376, 378, 383, 394, 400, 407, 412, 416, 420, 426, 428, 435, 443, 446, 449, 468, 482, 498, 510, 522, 530, 534, 541, 547, 556, 560, 591, 608, 620, 630, 633, 637, 640, 653, 670, 674, 680, 687, 699, 703, 706, 715, 729, 756, 765, 767, 769, 777, 782, 790, 800, 803, 813, 824, 829, 836, 849, 856, 869, 875, 878, 885, 897, 903, 907, 913, 920, 929, 940, 942, 945, 953, 958, 968, 973] \ No newline at end of file diff --git a/hogql_parser/HogQLParserBaseVisitor.h b/hogql_parser/HogQLParserBaseVisitor.h index 00e3cd4e391ad..8de70d11be4e3 100644 --- a/hogql_parser/HogQLParserBaseVisitor.h +++ b/hogql_parser/HogQLParserBaseVisitor.h @@ -27,6 +27,10 @@ class HogQLParserBaseVisitor : public HogQLParserVisitor { return visitChildren(ctx); } + virtual std::any visitSelectStmtWithPlaceholder(HogQLParser::SelectStmtWithPlaceholderContext *ctx) override { + return visitChildren(ctx); + } + virtual std::any visitSelectStmt(HogQLParser::SelectStmtContext *ctx) override { return visitChildren(ctx); } diff --git a/hogql_parser/HogQLParserVisitor.h b/hogql_parser/HogQLParserVisitor.h index 8355b14ae1ea4..dcd629c0446db 100644 --- a/hogql_parser/HogQLParserVisitor.h +++ b/hogql_parser/HogQLParserVisitor.h @@ -25,6 +25,8 @@ class HogQLParserVisitor : public antlr4::tree::AbstractParseTreeVisitor { virtual std::any visitSelectStmtWithParens(HogQLParser::SelectStmtWithParensContext *context) = 0; + virtual std::any visitSelectStmtWithPlaceholder(HogQLParser::SelectStmtWithPlaceholderContext *context) = 0; + virtual std::any visitSelectStmt(HogQLParser::SelectStmtContext *context) = 0; virtual std::any visitWithClause(HogQLParser::WithClauseContext *context) = 0; diff --git a/hogql_parser/parser.cpp b/hogql_parser/parser.cpp index 823d38ed8dbf4..1dfbea3296710 100644 --- a/hogql_parser/parser.cpp +++ b/hogql_parser/parser.cpp @@ -306,10 +306,11 @@ class HogQLParseTreeConverter : public HogQLParserBaseVisitor { } VISIT(SelectStmtWithParens) { - auto select_stmt_ctx = ctx->selectStmt(); + auto select_stmt_ctx = ctx->selectStmtWithPlaceholder(); if (select_stmt_ctx) { return visit(select_stmt_ctx); } + return visit(ctx->selectUnionStmt()); } @@ -344,6 +345,9 @@ class HogQLParseTreeConverter : public HogQLParserBaseVisitor { int extend_code = X_PyList_Extend(flattened_queries, sub_select_queries); if (extend_code == -1) goto select_queries_loop_py_error; Py_DECREF(sub_select_queries); + } else if (is_ast_node_instance(query, "Placeholder")) { + int append_code = PyList_Append(flattened_queries, query); + if (append_code == -1) goto select_queries_loop_py_error; } else { Py_DECREF(flattened_queries); X_Py_DECREF_ALL(select_queries); @@ -1752,6 +1756,15 @@ class HogQLParseTreeConverter : public HogQLParserBaseVisitor { VISIT(TableExprPlaceholder) { return visitAsPyObject(ctx->placeholder()); } + VISIT(SelectStmtWithPlaceholder) { + auto placeholder_ctx = ctx->placeholder(); + if (placeholder_ctx) { + return visitAsPyObject(placeholder_ctx); + } + + return visit(ctx->selectStmt()); + } + VISIT(TableExprAlias) { auto alias_ctx = ctx->alias(); string alias = any_cast(alias_ctx ? visit(alias_ctx) : visit(ctx->identifier())); diff --git a/posthog/hogql/grammar/HogQLParser.g4 b/posthog/hogql/grammar/HogQLParser.g4 index 68adb8a8b76ac..4aed3d6b7e9bf 100644 --- a/posthog/hogql/grammar/HogQLParser.g4 +++ b/posthog/hogql/grammar/HogQLParser.g4 @@ -9,7 +9,9 @@ options { select: (selectUnionStmt | selectStmt | hogqlxTagElement) EOF; selectUnionStmt: selectStmtWithParens (UNION ALL selectStmtWithParens)*; -selectStmtWithParens: selectStmt | LPAREN selectUnionStmt RPAREN; +selectStmtWithParens: selectStmtWithPlaceholder | LPAREN selectUnionStmt RPAREN; +selectStmtWithPlaceholder: selectStmt | placeholder; + selectStmt: with=withClause? SELECT DISTINCT? topClause? diff --git a/posthog/hogql/grammar/HogQLParser.interp b/posthog/hogql/grammar/HogQLParser.interp index a44e1fbc2501e..f056763eb8201 100644 --- a/posthog/hogql/grammar/HogQLParser.interp +++ b/posthog/hogql/grammar/HogQLParser.interp @@ -492,6 +492,7 @@ rule names: select selectUnionStmt selectStmtWithParens +selectStmtWithPlaceholder selectStmt withClause topClause @@ -554,4 +555,4 @@ placeholder atn: -[4, 1, 242, 978, 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, 1, 0, 1, 0, 1, 0, 3, 0, 128, 8, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 136, 8, 1, 10, 1, 12, 1, 139, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 146, 8, 2, 1, 3, 3, 3, 149, 8, 3, 1, 3, 1, 3, 3, 3, 153, 8, 3, 1, 3, 3, 3, 156, 8, 3, 1, 3, 1, 3, 3, 3, 160, 8, 3, 1, 3, 3, 3, 163, 8, 3, 1, 3, 3, 3, 166, 8, 3, 1, 3, 3, 3, 169, 8, 3, 1, 3, 3, 3, 172, 8, 3, 1, 3, 1, 3, 3, 3, 176, 8, 3, 1, 3, 1, 3, 3, 3, 180, 8, 3, 1, 3, 3, 3, 183, 8, 3, 1, 3, 3, 3, 186, 8, 3, 1, 3, 3, 3, 189, 8, 3, 1, 3, 1, 3, 3, 3, 193, 8, 3, 1, 3, 3, 3, 196, 8, 3, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 205, 8, 5, 1, 6, 1, 6, 1, 6, 1, 7, 3, 7, 211, 8, 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, 8, 1, 8, 1, 8, 1, 8, 5, 8, 230, 8, 8, 10, 8, 12, 8, 233, 9, 8, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 249, 8, 11, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 266, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 272, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 278, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 289, 8, 15, 3, 15, 291, 8, 15, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 3, 18, 302, 8, 18, 1, 18, 3, 18, 305, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 311, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 319, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 325, 8, 18, 10, 18, 12, 18, 328, 9, 18, 1, 19, 3, 19, 331, 8, 19, 1, 19, 1, 19, 1, 19, 3, 19, 336, 8, 19, 1, 19, 3, 19, 339, 8, 19, 1, 19, 3, 19, 342, 8, 19, 1, 19, 1, 19, 3, 19, 346, 8, 19, 1, 19, 1, 19, 3, 19, 350, 8, 19, 1, 19, 3, 19, 353, 8, 19, 3, 19, 355, 8, 19, 1, 19, 3, 19, 358, 8, 19, 1, 19, 1, 19, 3, 19, 362, 8, 19, 1, 19, 1, 19, 3, 19, 366, 8, 19, 1, 19, 3, 19, 369, 8, 19, 3, 19, 371, 8, 19, 3, 19, 373, 8, 19, 1, 20, 1, 20, 1, 20, 3, 20, 378, 8, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 3, 21, 389, 8, 21, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 395, 8, 22, 1, 23, 1, 23, 1, 23, 5, 23, 400, 8, 23, 10, 23, 12, 23, 403, 9, 23, 1, 24, 1, 24, 3, 24, 407, 8, 24, 1, 24, 1, 24, 3, 24, 411, 8, 24, 1, 24, 1, 24, 3, 24, 415, 8, 24, 1, 25, 1, 25, 1, 25, 1, 25, 3, 25, 421, 8, 25, 3, 25, 423, 8, 25, 1, 26, 1, 26, 1, 26, 5, 26, 428, 8, 26, 10, 26, 12, 26, 431, 9, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 3, 28, 438, 8, 28, 1, 28, 3, 28, 441, 8, 28, 1, 28, 3, 28, 444, 8, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 463, 8, 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, 3, 33, 477, 8, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 491, 8, 35, 10, 35, 12, 35, 494, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 503, 8, 35, 10, 35, 12, 35, 506, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 515, 8, 35, 10, 35, 12, 35, 518, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 525, 8, 35, 1, 35, 1, 35, 3, 35, 529, 8, 35, 1, 36, 1, 36, 1, 36, 5, 36, 534, 8, 36, 10, 36, 12, 36, 537, 9, 36, 1, 37, 1, 37, 1, 37, 3, 37, 542, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 4, 37, 549, 8, 37, 11, 37, 12, 37, 550, 1, 37, 1, 37, 3, 37, 555, 8, 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, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 586, 8, 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, 603, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 615, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 625, 8, 37, 1, 37, 3, 37, 628, 8, 37, 1, 37, 1, 37, 3, 37, 632, 8, 37, 1, 37, 3, 37, 635, 8, 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, 648, 8, 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, 665, 8, 37, 1, 37, 1, 37, 3, 37, 669, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 675, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 682, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 694, 8, 37, 1, 37, 1, 37, 3, 37, 698, 8, 37, 1, 37, 3, 37, 701, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 710, 8, 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, 724, 8, 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, 751, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 760, 8, 37, 5, 37, 762, 8, 37, 10, 37, 12, 37, 765, 9, 37, 1, 38, 1, 38, 1, 38, 5, 38, 770, 8, 38, 10, 38, 12, 38, 773, 9, 38, 1, 39, 1, 39, 3, 39, 777, 8, 39, 1, 40, 1, 40, 1, 40, 1, 40, 5, 40, 783, 8, 40, 10, 40, 12, 40, 786, 9, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 5, 40, 793, 8, 40, 10, 40, 12, 40, 796, 9, 40, 3, 40, 798, 8, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 5, 41, 806, 8, 41, 10, 41, 12, 41, 809, 9, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 5, 41, 817, 8, 41, 10, 41, 12, 41, 820, 9, 41, 1, 41, 1, 41, 3, 41, 824, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 831, 8, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 844, 8, 42, 1, 43, 1, 43, 1, 43, 5, 43, 849, 8, 43, 10, 43, 12, 43, 852, 9, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 3, 44, 864, 8, 44, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 870, 8, 45, 1, 45, 3, 45, 873, 8, 45, 1, 46, 1, 46, 1, 46, 5, 46, 878, 8, 46, 10, 46, 12, 46, 881, 9, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 892, 8, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 898, 8, 47, 5, 47, 900, 8, 47, 10, 47, 12, 47, 903, 9, 47, 1, 48, 1, 48, 1, 48, 3, 48, 908, 8, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 3, 49, 915, 8, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 5, 50, 922, 8, 50, 10, 50, 12, 50, 925, 9, 50, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 3, 52, 935, 8, 52, 3, 52, 937, 8, 52, 1, 53, 3, 53, 940, 8, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 3, 53, 948, 8, 53, 1, 54, 1, 54, 1, 54, 3, 54, 953, 8, 54, 1, 55, 1, 55, 1, 56, 1, 56, 1, 57, 1, 57, 1, 58, 1, 58, 3, 58, 963, 8, 58, 1, 59, 1, 59, 1, 59, 3, 59, 968, 8, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 0, 3, 36, 74, 94, 62, 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, 0, 16, 2, 0, 32, 32, 141, 141, 2, 0, 84, 84, 96, 96, 3, 0, 4, 4, 8, 8, 12, 12, 4, 0, 4, 4, 7, 8, 12, 12, 147, 147, 2, 0, 96, 96, 140, 140, 2, 0, 4, 4, 8, 8, 2, 0, 11, 11, 42, 43, 2, 0, 62, 62, 93, 93, 2, 0, 133, 133, 143, 143, 3, 0, 17, 17, 95, 95, 170, 170, 2, 0, 79, 79, 98, 98, 1, 0, 197, 198, 2, 0, 208, 208, 228, 228, 8, 0, 37, 37, 76, 76, 108, 108, 110, 110, 132, 132, 145, 145, 185, 185, 190, 190, 13, 0, 2, 24, 26, 36, 38, 75, 77, 81, 83, 107, 109, 109, 111, 112, 114, 115, 117, 130, 133, 144, 146, 184, 186, 189, 191, 192, 4, 0, 36, 36, 62, 62, 77, 77, 91, 91, 1105, 0, 127, 1, 0, 0, 0, 2, 131, 1, 0, 0, 0, 4, 145, 1, 0, 0, 0, 6, 148, 1, 0, 0, 0, 8, 197, 1, 0, 0, 0, 10, 200, 1, 0, 0, 0, 12, 206, 1, 0, 0, 0, 14, 210, 1, 0, 0, 0, 16, 216, 1, 0, 0, 0, 18, 234, 1, 0, 0, 0, 20, 237, 1, 0, 0, 0, 22, 240, 1, 0, 0, 0, 24, 250, 1, 0, 0, 0, 26, 253, 1, 0, 0, 0, 28, 257, 1, 0, 0, 0, 30, 290, 1, 0, 0, 0, 32, 292, 1, 0, 0, 0, 34, 295, 1, 0, 0, 0, 36, 310, 1, 0, 0, 0, 38, 372, 1, 0, 0, 0, 40, 377, 1, 0, 0, 0, 42, 388, 1, 0, 0, 0, 44, 390, 1, 0, 0, 0, 46, 396, 1, 0, 0, 0, 48, 404, 1, 0, 0, 0, 50, 422, 1, 0, 0, 0, 52, 424, 1, 0, 0, 0, 54, 432, 1, 0, 0, 0, 56, 437, 1, 0, 0, 0, 58, 445, 1, 0, 0, 0, 60, 449, 1, 0, 0, 0, 62, 453, 1, 0, 0, 0, 64, 462, 1, 0, 0, 0, 66, 476, 1, 0, 0, 0, 68, 478, 1, 0, 0, 0, 70, 528, 1, 0, 0, 0, 72, 530, 1, 0, 0, 0, 74, 668, 1, 0, 0, 0, 76, 766, 1, 0, 0, 0, 78, 776, 1, 0, 0, 0, 80, 797, 1, 0, 0, 0, 82, 830, 1, 0, 0, 0, 84, 843, 1, 0, 0, 0, 86, 845, 1, 0, 0, 0, 88, 863, 1, 0, 0, 0, 90, 872, 1, 0, 0, 0, 92, 874, 1, 0, 0, 0, 94, 891, 1, 0, 0, 0, 96, 904, 1, 0, 0, 0, 98, 914, 1, 0, 0, 0, 100, 918, 1, 0, 0, 0, 102, 926, 1, 0, 0, 0, 104, 936, 1, 0, 0, 0, 106, 939, 1, 0, 0, 0, 108, 952, 1, 0, 0, 0, 110, 954, 1, 0, 0, 0, 112, 956, 1, 0, 0, 0, 114, 958, 1, 0, 0, 0, 116, 962, 1, 0, 0, 0, 118, 967, 1, 0, 0, 0, 120, 969, 1, 0, 0, 0, 122, 973, 1, 0, 0, 0, 124, 128, 3, 2, 1, 0, 125, 128, 3, 6, 3, 0, 126, 128, 3, 82, 41, 0, 127, 124, 1, 0, 0, 0, 127, 125, 1, 0, 0, 0, 127, 126, 1, 0, 0, 0, 128, 129, 1, 0, 0, 0, 129, 130, 5, 0, 0, 1, 130, 1, 1, 0, 0, 0, 131, 137, 3, 4, 2, 0, 132, 133, 5, 176, 0, 0, 133, 134, 5, 4, 0, 0, 134, 136, 3, 4, 2, 0, 135, 132, 1, 0, 0, 0, 136, 139, 1, 0, 0, 0, 137, 135, 1, 0, 0, 0, 137, 138, 1, 0, 0, 0, 138, 3, 1, 0, 0, 0, 139, 137, 1, 0, 0, 0, 140, 146, 3, 6, 3, 0, 141, 142, 5, 220, 0, 0, 142, 143, 3, 2, 1, 0, 143, 144, 5, 236, 0, 0, 144, 146, 1, 0, 0, 0, 145, 140, 1, 0, 0, 0, 145, 141, 1, 0, 0, 0, 146, 5, 1, 0, 0, 0, 147, 149, 3, 8, 4, 0, 148, 147, 1, 0, 0, 0, 148, 149, 1, 0, 0, 0, 149, 150, 1, 0, 0, 0, 150, 152, 5, 146, 0, 0, 151, 153, 5, 49, 0, 0, 152, 151, 1, 0, 0, 0, 152, 153, 1, 0, 0, 0, 153, 155, 1, 0, 0, 0, 154, 156, 3, 10, 5, 0, 155, 154, 1, 0, 0, 0, 155, 156, 1, 0, 0, 0, 156, 157, 1, 0, 0, 0, 157, 159, 3, 72, 36, 0, 158, 160, 3, 12, 6, 0, 159, 158, 1, 0, 0, 0, 159, 160, 1, 0, 0, 0, 160, 162, 1, 0, 0, 0, 161, 163, 3, 14, 7, 0, 162, 161, 1, 0, 0, 0, 162, 163, 1, 0, 0, 0, 163, 165, 1, 0, 0, 0, 164, 166, 3, 18, 9, 0, 165, 164, 1, 0, 0, 0, 165, 166, 1, 0, 0, 0, 166, 168, 1, 0, 0, 0, 167, 169, 3, 20, 10, 0, 168, 167, 1, 0, 0, 0, 168, 169, 1, 0, 0, 0, 169, 171, 1, 0, 0, 0, 170, 172, 3, 22, 11, 0, 171, 170, 1, 0, 0, 0, 171, 172, 1, 0, 0, 0, 172, 175, 1, 0, 0, 0, 173, 174, 5, 189, 0, 0, 174, 176, 7, 0, 0, 0, 175, 173, 1, 0, 0, 0, 175, 176, 1, 0, 0, 0, 176, 179, 1, 0, 0, 0, 177, 178, 5, 189, 0, 0, 178, 180, 5, 169, 0, 0, 179, 177, 1, 0, 0, 0, 179, 180, 1, 0, 0, 0, 180, 182, 1, 0, 0, 0, 181, 183, 3, 24, 12, 0, 182, 181, 1, 0, 0, 0, 182, 183, 1, 0, 0, 0, 183, 185, 1, 0, 0, 0, 184, 186, 3, 16, 8, 0, 185, 184, 1, 0, 0, 0, 185, 186, 1, 0, 0, 0, 186, 188, 1, 0, 0, 0, 187, 189, 3, 26, 13, 0, 188, 187, 1, 0, 0, 0, 188, 189, 1, 0, 0, 0, 189, 192, 1, 0, 0, 0, 190, 193, 3, 30, 15, 0, 191, 193, 3, 32, 16, 0, 192, 190, 1, 0, 0, 0, 192, 191, 1, 0, 0, 0, 192, 193, 1, 0, 0, 0, 193, 195, 1, 0, 0, 0, 194, 196, 3, 34, 17, 0, 195, 194, 1, 0, 0, 0, 195, 196, 1, 0, 0, 0, 196, 7, 1, 0, 0, 0, 197, 198, 5, 189, 0, 0, 198, 199, 3, 86, 43, 0, 199, 9, 1, 0, 0, 0, 200, 201, 5, 168, 0, 0, 201, 204, 5, 198, 0, 0, 202, 203, 5, 189, 0, 0, 203, 205, 5, 164, 0, 0, 204, 202, 1, 0, 0, 0, 204, 205, 1, 0, 0, 0, 205, 11, 1, 0, 0, 0, 206, 207, 5, 68, 0, 0, 207, 208, 3, 36, 18, 0, 208, 13, 1, 0, 0, 0, 209, 211, 7, 1, 0, 0, 210, 209, 1, 0, 0, 0, 210, 211, 1, 0, 0, 0, 211, 212, 1, 0, 0, 0, 212, 213, 5, 9, 0, 0, 213, 214, 5, 90, 0, 0, 214, 215, 3, 72, 36, 0, 215, 15, 1, 0, 0, 0, 216, 217, 5, 188, 0, 0, 217, 218, 3, 118, 59, 0, 218, 219, 5, 10, 0, 0, 219, 220, 5, 220, 0, 0, 220, 221, 3, 56, 28, 0, 221, 231, 5, 236, 0, 0, 222, 223, 5, 206, 0, 0, 223, 224, 3, 118, 59, 0, 224, 225, 5, 10, 0, 0, 225, 226, 5, 220, 0, 0, 226, 227, 3, 56, 28, 0, 227, 228, 5, 236, 0, 0, 228, 230, 1, 0, 0, 0, 229, 222, 1, 0, 0, 0, 230, 233, 1, 0, 0, 0, 231, 229, 1, 0, 0, 0, 231, 232, 1, 0, 0, 0, 232, 17, 1, 0, 0, 0, 233, 231, 1, 0, 0, 0, 234, 235, 5, 129, 0, 0, 235, 236, 3, 74, 37, 0, 236, 19, 1, 0, 0, 0, 237, 238, 5, 187, 0, 0, 238, 239, 3, 74, 37, 0, 239, 21, 1, 0, 0, 0, 240, 241, 5, 73, 0, 0, 241, 248, 5, 18, 0, 0, 242, 243, 7, 0, 0, 0, 243, 244, 5, 220, 0, 0, 244, 245, 3, 72, 36, 0, 245, 246, 5, 236, 0, 0, 246, 249, 1, 0, 0, 0, 247, 249, 3, 72, 36, 0, 248, 242, 1, 0, 0, 0, 248, 247, 1, 0, 0, 0, 249, 23, 1, 0, 0, 0, 250, 251, 5, 74, 0, 0, 251, 252, 3, 74, 37, 0, 252, 25, 1, 0, 0, 0, 253, 254, 5, 122, 0, 0, 254, 255, 5, 18, 0, 0, 255, 256, 3, 46, 23, 0, 256, 27, 1, 0, 0, 0, 257, 258, 5, 122, 0, 0, 258, 259, 5, 18, 0, 0, 259, 260, 3, 72, 36, 0, 260, 29, 1, 0, 0, 0, 261, 262, 5, 99, 0, 0, 262, 265, 3, 74, 37, 0, 263, 264, 5, 206, 0, 0, 264, 266, 3, 74, 37, 0, 265, 263, 1, 0, 0, 0, 265, 266, 1, 0, 0, 0, 266, 271, 1, 0, 0, 0, 267, 268, 5, 189, 0, 0, 268, 272, 5, 164, 0, 0, 269, 270, 5, 18, 0, 0, 270, 272, 3, 72, 36, 0, 271, 267, 1, 0, 0, 0, 271, 269, 1, 0, 0, 0, 271, 272, 1, 0, 0, 0, 272, 291, 1, 0, 0, 0, 273, 274, 5, 99, 0, 0, 274, 277, 3, 74, 37, 0, 275, 276, 5, 189, 0, 0, 276, 278, 5, 164, 0, 0, 277, 275, 1, 0, 0, 0, 277, 278, 1, 0, 0, 0, 278, 279, 1, 0, 0, 0, 279, 280, 5, 118, 0, 0, 280, 281, 3, 74, 37, 0, 281, 291, 1, 0, 0, 0, 282, 283, 5, 99, 0, 0, 283, 284, 3, 74, 37, 0, 284, 285, 5, 118, 0, 0, 285, 288, 3, 74, 37, 0, 286, 287, 5, 18, 0, 0, 287, 289, 3, 72, 36, 0, 288, 286, 1, 0, 0, 0, 288, 289, 1, 0, 0, 0, 289, 291, 1, 0, 0, 0, 290, 261, 1, 0, 0, 0, 290, 273, 1, 0, 0, 0, 290, 282, 1, 0, 0, 0, 291, 31, 1, 0, 0, 0, 292, 293, 5, 118, 0, 0, 293, 294, 3, 74, 37, 0, 294, 33, 1, 0, 0, 0, 295, 296, 5, 150, 0, 0, 296, 297, 3, 52, 26, 0, 297, 35, 1, 0, 0, 0, 298, 299, 6, 18, -1, 0, 299, 301, 3, 94, 47, 0, 300, 302, 5, 61, 0, 0, 301, 300, 1, 0, 0, 0, 301, 302, 1, 0, 0, 0, 302, 304, 1, 0, 0, 0, 303, 305, 3, 44, 22, 0, 304, 303, 1, 0, 0, 0, 304, 305, 1, 0, 0, 0, 305, 311, 1, 0, 0, 0, 306, 307, 5, 220, 0, 0, 307, 308, 3, 36, 18, 0, 308, 309, 5, 236, 0, 0, 309, 311, 1, 0, 0, 0, 310, 298, 1, 0, 0, 0, 310, 306, 1, 0, 0, 0, 311, 326, 1, 0, 0, 0, 312, 313, 10, 3, 0, 0, 313, 314, 3, 40, 20, 0, 314, 315, 3, 36, 18, 4, 315, 325, 1, 0, 0, 0, 316, 318, 10, 4, 0, 0, 317, 319, 3, 38, 19, 0, 318, 317, 1, 0, 0, 0, 318, 319, 1, 0, 0, 0, 319, 320, 1, 0, 0, 0, 320, 321, 5, 90, 0, 0, 321, 322, 3, 36, 18, 0, 322, 323, 3, 42, 21, 0, 323, 325, 1, 0, 0, 0, 324, 312, 1, 0, 0, 0, 324, 316, 1, 0, 0, 0, 325, 328, 1, 0, 0, 0, 326, 324, 1, 0, 0, 0, 326, 327, 1, 0, 0, 0, 327, 37, 1, 0, 0, 0, 328, 326, 1, 0, 0, 0, 329, 331, 7, 2, 0, 0, 330, 329, 1, 0, 0, 0, 330, 331, 1, 0, 0, 0, 331, 332, 1, 0, 0, 0, 332, 339, 5, 84, 0, 0, 333, 335, 5, 84, 0, 0, 334, 336, 7, 2, 0, 0, 335, 334, 1, 0, 0, 0, 335, 336, 1, 0, 0, 0, 336, 339, 1, 0, 0, 0, 337, 339, 7, 2, 0, 0, 338, 330, 1, 0, 0, 0, 338, 333, 1, 0, 0, 0, 338, 337, 1, 0, 0, 0, 339, 373, 1, 0, 0, 0, 340, 342, 7, 3, 0, 0, 341, 340, 1, 0, 0, 0, 341, 342, 1, 0, 0, 0, 342, 343, 1, 0, 0, 0, 343, 345, 7, 4, 0, 0, 344, 346, 5, 123, 0, 0, 345, 344, 1, 0, 0, 0, 345, 346, 1, 0, 0, 0, 346, 355, 1, 0, 0, 0, 347, 349, 7, 4, 0, 0, 348, 350, 5, 123, 0, 0, 349, 348, 1, 0, 0, 0, 349, 350, 1, 0, 0, 0, 350, 352, 1, 0, 0, 0, 351, 353, 7, 3, 0, 0, 352, 351, 1, 0, 0, 0, 352, 353, 1, 0, 0, 0, 353, 355, 1, 0, 0, 0, 354, 341, 1, 0, 0, 0, 354, 347, 1, 0, 0, 0, 355, 373, 1, 0, 0, 0, 356, 358, 7, 5, 0, 0, 357, 356, 1, 0, 0, 0, 357, 358, 1, 0, 0, 0, 358, 359, 1, 0, 0, 0, 359, 361, 5, 69, 0, 0, 360, 362, 5, 123, 0, 0, 361, 360, 1, 0, 0, 0, 361, 362, 1, 0, 0, 0, 362, 371, 1, 0, 0, 0, 363, 365, 5, 69, 0, 0, 364, 366, 5, 123, 0, 0, 365, 364, 1, 0, 0, 0, 365, 366, 1, 0, 0, 0, 366, 368, 1, 0, 0, 0, 367, 369, 7, 5, 0, 0, 368, 367, 1, 0, 0, 0, 368, 369, 1, 0, 0, 0, 369, 371, 1, 0, 0, 0, 370, 357, 1, 0, 0, 0, 370, 363, 1, 0, 0, 0, 371, 373, 1, 0, 0, 0, 372, 338, 1, 0, 0, 0, 372, 354, 1, 0, 0, 0, 372, 370, 1, 0, 0, 0, 373, 39, 1, 0, 0, 0, 374, 375, 5, 31, 0, 0, 375, 378, 5, 90, 0, 0, 376, 378, 5, 206, 0, 0, 377, 374, 1, 0, 0, 0, 377, 376, 1, 0, 0, 0, 378, 41, 1, 0, 0, 0, 379, 380, 5, 119, 0, 0, 380, 389, 3, 72, 36, 0, 381, 382, 5, 179, 0, 0, 382, 383, 5, 220, 0, 0, 383, 384, 3, 72, 36, 0, 384, 385, 5, 236, 0, 0, 385, 389, 1, 0, 0, 0, 386, 387, 5, 179, 0, 0, 387, 389, 3, 72, 36, 0, 388, 379, 1, 0, 0, 0, 388, 381, 1, 0, 0, 0, 388, 386, 1, 0, 0, 0, 389, 43, 1, 0, 0, 0, 390, 391, 5, 144, 0, 0, 391, 394, 3, 50, 25, 0, 392, 393, 5, 118, 0, 0, 393, 395, 3, 50, 25, 0, 394, 392, 1, 0, 0, 0, 394, 395, 1, 0, 0, 0, 395, 45, 1, 0, 0, 0, 396, 401, 3, 48, 24, 0, 397, 398, 5, 206, 0, 0, 398, 400, 3, 48, 24, 0, 399, 397, 1, 0, 0, 0, 400, 403, 1, 0, 0, 0, 401, 399, 1, 0, 0, 0, 401, 402, 1, 0, 0, 0, 402, 47, 1, 0, 0, 0, 403, 401, 1, 0, 0, 0, 404, 406, 3, 74, 37, 0, 405, 407, 7, 6, 0, 0, 406, 405, 1, 0, 0, 0, 406, 407, 1, 0, 0, 0, 407, 410, 1, 0, 0, 0, 408, 409, 5, 117, 0, 0, 409, 411, 7, 7, 0, 0, 410, 408, 1, 0, 0, 0, 410, 411, 1, 0, 0, 0, 411, 414, 1, 0, 0, 0, 412, 413, 5, 26, 0, 0, 413, 415, 5, 200, 0, 0, 414, 412, 1, 0, 0, 0, 414, 415, 1, 0, 0, 0, 415, 49, 1, 0, 0, 0, 416, 423, 3, 122, 61, 0, 417, 420, 3, 106, 53, 0, 418, 419, 5, 238, 0, 0, 419, 421, 3, 106, 53, 0, 420, 418, 1, 0, 0, 0, 420, 421, 1, 0, 0, 0, 421, 423, 1, 0, 0, 0, 422, 416, 1, 0, 0, 0, 422, 417, 1, 0, 0, 0, 423, 51, 1, 0, 0, 0, 424, 429, 3, 54, 27, 0, 425, 426, 5, 206, 0, 0, 426, 428, 3, 54, 27, 0, 427, 425, 1, 0, 0, 0, 428, 431, 1, 0, 0, 0, 429, 427, 1, 0, 0, 0, 429, 430, 1, 0, 0, 0, 430, 53, 1, 0, 0, 0, 431, 429, 1, 0, 0, 0, 432, 433, 3, 118, 59, 0, 433, 434, 5, 212, 0, 0, 434, 435, 3, 108, 54, 0, 435, 55, 1, 0, 0, 0, 436, 438, 3, 58, 29, 0, 437, 436, 1, 0, 0, 0, 437, 438, 1, 0, 0, 0, 438, 440, 1, 0, 0, 0, 439, 441, 3, 60, 30, 0, 440, 439, 1, 0, 0, 0, 440, 441, 1, 0, 0, 0, 441, 443, 1, 0, 0, 0, 442, 444, 3, 62, 31, 0, 443, 442, 1, 0, 0, 0, 443, 444, 1, 0, 0, 0, 444, 57, 1, 0, 0, 0, 445, 446, 5, 126, 0, 0, 446, 447, 5, 18, 0, 0, 447, 448, 3, 72, 36, 0, 448, 59, 1, 0, 0, 0, 449, 450, 5, 122, 0, 0, 450, 451, 5, 18, 0, 0, 451, 452, 3, 46, 23, 0, 452, 61, 1, 0, 0, 0, 453, 454, 7, 8, 0, 0, 454, 455, 3, 64, 32, 0, 455, 63, 1, 0, 0, 0, 456, 463, 3, 66, 33, 0, 457, 458, 5, 16, 0, 0, 458, 459, 3, 66, 33, 0, 459, 460, 5, 6, 0, 0, 460, 461, 3, 66, 33, 0, 461, 463, 1, 0, 0, 0, 462, 456, 1, 0, 0, 0, 462, 457, 1, 0, 0, 0, 463, 65, 1, 0, 0, 0, 464, 465, 5, 33, 0, 0, 465, 477, 5, 142, 0, 0, 466, 467, 5, 175, 0, 0, 467, 477, 5, 128, 0, 0, 468, 469, 5, 175, 0, 0, 469, 477, 5, 64, 0, 0, 470, 471, 3, 106, 53, 0, 471, 472, 5, 128, 0, 0, 472, 477, 1, 0, 0, 0, 473, 474, 3, 106, 53, 0, 474, 475, 5, 64, 0, 0, 475, 477, 1, 0, 0, 0, 476, 464, 1, 0, 0, 0, 476, 466, 1, 0, 0, 0, 476, 468, 1, 0, 0, 0, 476, 470, 1, 0, 0, 0, 476, 473, 1, 0, 0, 0, 477, 67, 1, 0, 0, 0, 478, 479, 3, 74, 37, 0, 479, 480, 5, 0, 0, 1, 480, 69, 1, 0, 0, 0, 481, 529, 3, 118, 59, 0, 482, 483, 3, 118, 59, 0, 483, 484, 5, 220, 0, 0, 484, 485, 3, 118, 59, 0, 485, 492, 3, 70, 35, 0, 486, 487, 5, 206, 0, 0, 487, 488, 3, 118, 59, 0, 488, 489, 3, 70, 35, 0, 489, 491, 1, 0, 0, 0, 490, 486, 1, 0, 0, 0, 491, 494, 1, 0, 0, 0, 492, 490, 1, 0, 0, 0, 492, 493, 1, 0, 0, 0, 493, 495, 1, 0, 0, 0, 494, 492, 1, 0, 0, 0, 495, 496, 5, 236, 0, 0, 496, 529, 1, 0, 0, 0, 497, 498, 3, 118, 59, 0, 498, 499, 5, 220, 0, 0, 499, 504, 3, 120, 60, 0, 500, 501, 5, 206, 0, 0, 501, 503, 3, 120, 60, 0, 502, 500, 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, 236, 0, 0, 508, 529, 1, 0, 0, 0, 509, 510, 3, 118, 59, 0, 510, 511, 5, 220, 0, 0, 511, 516, 3, 70, 35, 0, 512, 513, 5, 206, 0, 0, 513, 515, 3, 70, 35, 0, 514, 512, 1, 0, 0, 0, 515, 518, 1, 0, 0, 0, 516, 514, 1, 0, 0, 0, 516, 517, 1, 0, 0, 0, 517, 519, 1, 0, 0, 0, 518, 516, 1, 0, 0, 0, 519, 520, 5, 236, 0, 0, 520, 529, 1, 0, 0, 0, 521, 522, 3, 118, 59, 0, 522, 524, 5, 220, 0, 0, 523, 525, 3, 72, 36, 0, 524, 523, 1, 0, 0, 0, 524, 525, 1, 0, 0, 0, 525, 526, 1, 0, 0, 0, 526, 527, 5, 236, 0, 0, 527, 529, 1, 0, 0, 0, 528, 481, 1, 0, 0, 0, 528, 482, 1, 0, 0, 0, 528, 497, 1, 0, 0, 0, 528, 509, 1, 0, 0, 0, 528, 521, 1, 0, 0, 0, 529, 71, 1, 0, 0, 0, 530, 535, 3, 74, 37, 0, 531, 532, 5, 206, 0, 0, 532, 534, 3, 74, 37, 0, 533, 531, 1, 0, 0, 0, 534, 537, 1, 0, 0, 0, 535, 533, 1, 0, 0, 0, 535, 536, 1, 0, 0, 0, 536, 73, 1, 0, 0, 0, 537, 535, 1, 0, 0, 0, 538, 539, 6, 37, -1, 0, 539, 541, 5, 19, 0, 0, 540, 542, 3, 74, 37, 0, 541, 540, 1, 0, 0, 0, 541, 542, 1, 0, 0, 0, 542, 548, 1, 0, 0, 0, 543, 544, 5, 186, 0, 0, 544, 545, 3, 74, 37, 0, 545, 546, 5, 163, 0, 0, 546, 547, 3, 74, 37, 0, 547, 549, 1, 0, 0, 0, 548, 543, 1, 0, 0, 0, 549, 550, 1, 0, 0, 0, 550, 548, 1, 0, 0, 0, 550, 551, 1, 0, 0, 0, 551, 554, 1, 0, 0, 0, 552, 553, 5, 52, 0, 0, 553, 555, 3, 74, 37, 0, 554, 552, 1, 0, 0, 0, 554, 555, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 557, 5, 53, 0, 0, 557, 669, 1, 0, 0, 0, 558, 559, 5, 20, 0, 0, 559, 560, 5, 220, 0, 0, 560, 561, 3, 74, 37, 0, 561, 562, 5, 10, 0, 0, 562, 563, 3, 70, 35, 0, 563, 564, 5, 236, 0, 0, 564, 669, 1, 0, 0, 0, 565, 566, 5, 36, 0, 0, 566, 669, 5, 200, 0, 0, 567, 568, 5, 59, 0, 0, 568, 569, 5, 220, 0, 0, 569, 570, 3, 110, 55, 0, 570, 571, 5, 68, 0, 0, 571, 572, 3, 74, 37, 0, 572, 573, 5, 236, 0, 0, 573, 669, 1, 0, 0, 0, 574, 575, 5, 86, 0, 0, 575, 576, 3, 74, 37, 0, 576, 577, 3, 110, 55, 0, 577, 669, 1, 0, 0, 0, 578, 579, 5, 155, 0, 0, 579, 580, 5, 220, 0, 0, 580, 581, 3, 74, 37, 0, 581, 582, 5, 68, 0, 0, 582, 585, 3, 74, 37, 0, 583, 584, 5, 65, 0, 0, 584, 586, 3, 74, 37, 0, 585, 583, 1, 0, 0, 0, 585, 586, 1, 0, 0, 0, 586, 587, 1, 0, 0, 0, 587, 588, 5, 236, 0, 0, 588, 669, 1, 0, 0, 0, 589, 590, 5, 166, 0, 0, 590, 669, 5, 200, 0, 0, 591, 592, 5, 171, 0, 0, 592, 593, 5, 220, 0, 0, 593, 594, 7, 9, 0, 0, 594, 595, 5, 200, 0, 0, 595, 596, 5, 68, 0, 0, 596, 597, 3, 74, 37, 0, 597, 598, 5, 236, 0, 0, 598, 669, 1, 0, 0, 0, 599, 600, 3, 118, 59, 0, 600, 602, 5, 220, 0, 0, 601, 603, 3, 72, 36, 0, 602, 601, 1, 0, 0, 0, 602, 603, 1, 0, 0, 0, 603, 604, 1, 0, 0, 0, 604, 605, 5, 236, 0, 0, 605, 606, 1, 0, 0, 0, 606, 607, 5, 125, 0, 0, 607, 608, 5, 220, 0, 0, 608, 609, 3, 56, 28, 0, 609, 610, 5, 236, 0, 0, 610, 669, 1, 0, 0, 0, 611, 612, 3, 118, 59, 0, 612, 614, 5, 220, 0, 0, 613, 615, 3, 72, 36, 0, 614, 613, 1, 0, 0, 0, 614, 615, 1, 0, 0, 0, 615, 616, 1, 0, 0, 0, 616, 617, 5, 236, 0, 0, 617, 618, 1, 0, 0, 0, 618, 619, 5, 125, 0, 0, 619, 620, 3, 118, 59, 0, 620, 669, 1, 0, 0, 0, 621, 627, 3, 118, 59, 0, 622, 624, 5, 220, 0, 0, 623, 625, 3, 72, 36, 0, 624, 623, 1, 0, 0, 0, 624, 625, 1, 0, 0, 0, 625, 626, 1, 0, 0, 0, 626, 628, 5, 236, 0, 0, 627, 622, 1, 0, 0, 0, 627, 628, 1, 0, 0, 0, 628, 629, 1, 0, 0, 0, 629, 631, 5, 220, 0, 0, 630, 632, 5, 49, 0, 0, 631, 630, 1, 0, 0, 0, 631, 632, 1, 0, 0, 0, 632, 634, 1, 0, 0, 0, 633, 635, 3, 76, 38, 0, 634, 633, 1, 0, 0, 0, 634, 635, 1, 0, 0, 0, 635, 636, 1, 0, 0, 0, 636, 637, 5, 236, 0, 0, 637, 669, 1, 0, 0, 0, 638, 669, 3, 82, 41, 0, 639, 669, 3, 108, 54, 0, 640, 641, 5, 208, 0, 0, 641, 669, 3, 74, 37, 18, 642, 643, 5, 115, 0, 0, 643, 669, 3, 74, 37, 12, 644, 645, 3, 98, 49, 0, 645, 646, 5, 210, 0, 0, 646, 648, 1, 0, 0, 0, 647, 644, 1, 0, 0, 0, 647, 648, 1, 0, 0, 0, 648, 649, 1, 0, 0, 0, 649, 669, 5, 202, 0, 0, 650, 651, 5, 220, 0, 0, 651, 652, 3, 2, 1, 0, 652, 653, 5, 236, 0, 0, 653, 669, 1, 0, 0, 0, 654, 655, 5, 220, 0, 0, 655, 656, 3, 74, 37, 0, 656, 657, 5, 236, 0, 0, 657, 669, 1, 0, 0, 0, 658, 659, 5, 220, 0, 0, 659, 660, 3, 72, 36, 0, 660, 661, 5, 236, 0, 0, 661, 669, 1, 0, 0, 0, 662, 664, 5, 219, 0, 0, 663, 665, 3, 72, 36, 0, 664, 663, 1, 0, 0, 0, 664, 665, 1, 0, 0, 0, 665, 666, 1, 0, 0, 0, 666, 669, 5, 235, 0, 0, 667, 669, 3, 90, 45, 0, 668, 538, 1, 0, 0, 0, 668, 558, 1, 0, 0, 0, 668, 565, 1, 0, 0, 0, 668, 567, 1, 0, 0, 0, 668, 574, 1, 0, 0, 0, 668, 578, 1, 0, 0, 0, 668, 589, 1, 0, 0, 0, 668, 591, 1, 0, 0, 0, 668, 599, 1, 0, 0, 0, 668, 611, 1, 0, 0, 0, 668, 621, 1, 0, 0, 0, 668, 638, 1, 0, 0, 0, 668, 639, 1, 0, 0, 0, 668, 640, 1, 0, 0, 0, 668, 642, 1, 0, 0, 0, 668, 647, 1, 0, 0, 0, 668, 650, 1, 0, 0, 0, 668, 654, 1, 0, 0, 0, 668, 658, 1, 0, 0, 0, 668, 662, 1, 0, 0, 0, 668, 667, 1, 0, 0, 0, 669, 763, 1, 0, 0, 0, 670, 674, 10, 17, 0, 0, 671, 675, 5, 202, 0, 0, 672, 675, 5, 238, 0, 0, 673, 675, 5, 227, 0, 0, 674, 671, 1, 0, 0, 0, 674, 672, 1, 0, 0, 0, 674, 673, 1, 0, 0, 0, 675, 676, 1, 0, 0, 0, 676, 762, 3, 74, 37, 18, 677, 681, 10, 16, 0, 0, 678, 682, 5, 228, 0, 0, 679, 682, 5, 208, 0, 0, 680, 682, 5, 207, 0, 0, 681, 678, 1, 0, 0, 0, 681, 679, 1, 0, 0, 0, 681, 680, 1, 0, 0, 0, 682, 683, 1, 0, 0, 0, 683, 762, 3, 74, 37, 17, 684, 709, 10, 15, 0, 0, 685, 710, 5, 211, 0, 0, 686, 710, 5, 212, 0, 0, 687, 710, 5, 223, 0, 0, 688, 710, 5, 221, 0, 0, 689, 710, 5, 222, 0, 0, 690, 710, 5, 213, 0, 0, 691, 710, 5, 214, 0, 0, 692, 694, 5, 115, 0, 0, 693, 692, 1, 0, 0, 0, 693, 694, 1, 0, 0, 0, 694, 695, 1, 0, 0, 0, 695, 697, 5, 80, 0, 0, 696, 698, 5, 25, 0, 0, 697, 696, 1, 0, 0, 0, 697, 698, 1, 0, 0, 0, 698, 710, 1, 0, 0, 0, 699, 701, 5, 115, 0, 0, 700, 699, 1, 0, 0, 0, 700, 701, 1, 0, 0, 0, 701, 702, 1, 0, 0, 0, 702, 710, 7, 10, 0, 0, 703, 710, 5, 232, 0, 0, 704, 710, 5, 233, 0, 0, 705, 710, 5, 225, 0, 0, 706, 710, 5, 216, 0, 0, 707, 710, 5, 217, 0, 0, 708, 710, 5, 224, 0, 0, 709, 685, 1, 0, 0, 0, 709, 686, 1, 0, 0, 0, 709, 687, 1, 0, 0, 0, 709, 688, 1, 0, 0, 0, 709, 689, 1, 0, 0, 0, 709, 690, 1, 0, 0, 0, 709, 691, 1, 0, 0, 0, 709, 693, 1, 0, 0, 0, 709, 700, 1, 0, 0, 0, 709, 703, 1, 0, 0, 0, 709, 704, 1, 0, 0, 0, 709, 705, 1, 0, 0, 0, 709, 706, 1, 0, 0, 0, 709, 707, 1, 0, 0, 0, 709, 708, 1, 0, 0, 0, 710, 711, 1, 0, 0, 0, 711, 762, 3, 74, 37, 16, 712, 713, 10, 13, 0, 0, 713, 714, 5, 226, 0, 0, 714, 762, 3, 74, 37, 14, 715, 716, 10, 11, 0, 0, 716, 717, 5, 6, 0, 0, 717, 762, 3, 74, 37, 12, 718, 719, 10, 10, 0, 0, 719, 720, 5, 121, 0, 0, 720, 762, 3, 74, 37, 11, 721, 723, 10, 9, 0, 0, 722, 724, 5, 115, 0, 0, 723, 722, 1, 0, 0, 0, 723, 724, 1, 0, 0, 0, 724, 725, 1, 0, 0, 0, 725, 726, 5, 16, 0, 0, 726, 727, 3, 74, 37, 0, 727, 728, 5, 6, 0, 0, 728, 729, 3, 74, 37, 10, 729, 762, 1, 0, 0, 0, 730, 731, 10, 8, 0, 0, 731, 732, 5, 229, 0, 0, 732, 733, 3, 74, 37, 0, 733, 734, 5, 205, 0, 0, 734, 735, 3, 74, 37, 8, 735, 762, 1, 0, 0, 0, 736, 737, 10, 21, 0, 0, 737, 738, 5, 219, 0, 0, 738, 739, 3, 74, 37, 0, 739, 740, 5, 235, 0, 0, 740, 762, 1, 0, 0, 0, 741, 742, 10, 20, 0, 0, 742, 743, 5, 210, 0, 0, 743, 762, 5, 198, 0, 0, 744, 745, 10, 19, 0, 0, 745, 746, 5, 210, 0, 0, 746, 762, 3, 118, 59, 0, 747, 748, 10, 14, 0, 0, 748, 750, 5, 88, 0, 0, 749, 751, 5, 115, 0, 0, 750, 749, 1, 0, 0, 0, 750, 751, 1, 0, 0, 0, 751, 752, 1, 0, 0, 0, 752, 762, 5, 116, 0, 0, 753, 759, 10, 7, 0, 0, 754, 760, 3, 116, 58, 0, 755, 756, 5, 10, 0, 0, 756, 760, 3, 118, 59, 0, 757, 758, 5, 10, 0, 0, 758, 760, 5, 200, 0, 0, 759, 754, 1, 0, 0, 0, 759, 755, 1, 0, 0, 0, 759, 757, 1, 0, 0, 0, 760, 762, 1, 0, 0, 0, 761, 670, 1, 0, 0, 0, 761, 677, 1, 0, 0, 0, 761, 684, 1, 0, 0, 0, 761, 712, 1, 0, 0, 0, 761, 715, 1, 0, 0, 0, 761, 718, 1, 0, 0, 0, 761, 721, 1, 0, 0, 0, 761, 730, 1, 0, 0, 0, 761, 736, 1, 0, 0, 0, 761, 741, 1, 0, 0, 0, 761, 744, 1, 0, 0, 0, 761, 747, 1, 0, 0, 0, 761, 753, 1, 0, 0, 0, 762, 765, 1, 0, 0, 0, 763, 761, 1, 0, 0, 0, 763, 764, 1, 0, 0, 0, 764, 75, 1, 0, 0, 0, 765, 763, 1, 0, 0, 0, 766, 771, 3, 78, 39, 0, 767, 768, 5, 206, 0, 0, 768, 770, 3, 78, 39, 0, 769, 767, 1, 0, 0, 0, 770, 773, 1, 0, 0, 0, 771, 769, 1, 0, 0, 0, 771, 772, 1, 0, 0, 0, 772, 77, 1, 0, 0, 0, 773, 771, 1, 0, 0, 0, 774, 777, 3, 80, 40, 0, 775, 777, 3, 74, 37, 0, 776, 774, 1, 0, 0, 0, 776, 775, 1, 0, 0, 0, 777, 79, 1, 0, 0, 0, 778, 779, 5, 220, 0, 0, 779, 784, 3, 118, 59, 0, 780, 781, 5, 206, 0, 0, 781, 783, 3, 118, 59, 0, 782, 780, 1, 0, 0, 0, 783, 786, 1, 0, 0, 0, 784, 782, 1, 0, 0, 0, 784, 785, 1, 0, 0, 0, 785, 787, 1, 0, 0, 0, 786, 784, 1, 0, 0, 0, 787, 788, 5, 236, 0, 0, 788, 798, 1, 0, 0, 0, 789, 794, 3, 118, 59, 0, 790, 791, 5, 206, 0, 0, 791, 793, 3, 118, 59, 0, 792, 790, 1, 0, 0, 0, 793, 796, 1, 0, 0, 0, 794, 792, 1, 0, 0, 0, 794, 795, 1, 0, 0, 0, 795, 798, 1, 0, 0, 0, 796, 794, 1, 0, 0, 0, 797, 778, 1, 0, 0, 0, 797, 789, 1, 0, 0, 0, 798, 799, 1, 0, 0, 0, 799, 800, 5, 201, 0, 0, 800, 801, 3, 74, 37, 0, 801, 81, 1, 0, 0, 0, 802, 803, 5, 222, 0, 0, 803, 807, 3, 118, 59, 0, 804, 806, 3, 84, 42, 0, 805, 804, 1, 0, 0, 0, 806, 809, 1, 0, 0, 0, 807, 805, 1, 0, 0, 0, 807, 808, 1, 0, 0, 0, 808, 810, 1, 0, 0, 0, 809, 807, 1, 0, 0, 0, 810, 811, 5, 238, 0, 0, 811, 812, 5, 214, 0, 0, 812, 831, 1, 0, 0, 0, 813, 814, 5, 222, 0, 0, 814, 818, 3, 118, 59, 0, 815, 817, 3, 84, 42, 0, 816, 815, 1, 0, 0, 0, 817, 820, 1, 0, 0, 0, 818, 816, 1, 0, 0, 0, 818, 819, 1, 0, 0, 0, 819, 821, 1, 0, 0, 0, 820, 818, 1, 0, 0, 0, 821, 823, 5, 214, 0, 0, 822, 824, 3, 82, 41, 0, 823, 822, 1, 0, 0, 0, 823, 824, 1, 0, 0, 0, 824, 825, 1, 0, 0, 0, 825, 826, 5, 222, 0, 0, 826, 827, 5, 238, 0, 0, 827, 828, 3, 118, 59, 0, 828, 829, 5, 214, 0, 0, 829, 831, 1, 0, 0, 0, 830, 802, 1, 0, 0, 0, 830, 813, 1, 0, 0, 0, 831, 83, 1, 0, 0, 0, 832, 833, 3, 118, 59, 0, 833, 834, 5, 212, 0, 0, 834, 835, 5, 200, 0, 0, 835, 844, 1, 0, 0, 0, 836, 837, 3, 118, 59, 0, 837, 838, 5, 212, 0, 0, 838, 839, 5, 218, 0, 0, 839, 840, 3, 74, 37, 0, 840, 841, 5, 234, 0, 0, 841, 844, 1, 0, 0, 0, 842, 844, 3, 118, 59, 0, 843, 832, 1, 0, 0, 0, 843, 836, 1, 0, 0, 0, 843, 842, 1, 0, 0, 0, 844, 85, 1, 0, 0, 0, 845, 850, 3, 88, 44, 0, 846, 847, 5, 206, 0, 0, 847, 849, 3, 88, 44, 0, 848, 846, 1, 0, 0, 0, 849, 852, 1, 0, 0, 0, 850, 848, 1, 0, 0, 0, 850, 851, 1, 0, 0, 0, 851, 87, 1, 0, 0, 0, 852, 850, 1, 0, 0, 0, 853, 854, 3, 118, 59, 0, 854, 855, 5, 10, 0, 0, 855, 856, 5, 220, 0, 0, 856, 857, 3, 2, 1, 0, 857, 858, 5, 236, 0, 0, 858, 864, 1, 0, 0, 0, 859, 860, 3, 74, 37, 0, 860, 861, 5, 10, 0, 0, 861, 862, 3, 118, 59, 0, 862, 864, 1, 0, 0, 0, 863, 853, 1, 0, 0, 0, 863, 859, 1, 0, 0, 0, 864, 89, 1, 0, 0, 0, 865, 873, 3, 122, 61, 0, 866, 867, 3, 98, 49, 0, 867, 868, 5, 210, 0, 0, 868, 870, 1, 0, 0, 0, 869, 866, 1, 0, 0, 0, 869, 870, 1, 0, 0, 0, 870, 871, 1, 0, 0, 0, 871, 873, 3, 92, 46, 0, 872, 865, 1, 0, 0, 0, 872, 869, 1, 0, 0, 0, 873, 91, 1, 0, 0, 0, 874, 879, 3, 118, 59, 0, 875, 876, 5, 210, 0, 0, 876, 878, 3, 118, 59, 0, 877, 875, 1, 0, 0, 0, 878, 881, 1, 0, 0, 0, 879, 877, 1, 0, 0, 0, 879, 880, 1, 0, 0, 0, 880, 93, 1, 0, 0, 0, 881, 879, 1, 0, 0, 0, 882, 883, 6, 47, -1, 0, 883, 892, 3, 98, 49, 0, 884, 892, 3, 96, 48, 0, 885, 886, 5, 220, 0, 0, 886, 887, 3, 2, 1, 0, 887, 888, 5, 236, 0, 0, 888, 892, 1, 0, 0, 0, 889, 892, 3, 82, 41, 0, 890, 892, 3, 122, 61, 0, 891, 882, 1, 0, 0, 0, 891, 884, 1, 0, 0, 0, 891, 885, 1, 0, 0, 0, 891, 889, 1, 0, 0, 0, 891, 890, 1, 0, 0, 0, 892, 901, 1, 0, 0, 0, 893, 897, 10, 3, 0, 0, 894, 898, 3, 116, 58, 0, 895, 896, 5, 10, 0, 0, 896, 898, 3, 118, 59, 0, 897, 894, 1, 0, 0, 0, 897, 895, 1, 0, 0, 0, 898, 900, 1, 0, 0, 0, 899, 893, 1, 0, 0, 0, 900, 903, 1, 0, 0, 0, 901, 899, 1, 0, 0, 0, 901, 902, 1, 0, 0, 0, 902, 95, 1, 0, 0, 0, 903, 901, 1, 0, 0, 0, 904, 905, 3, 118, 59, 0, 905, 907, 5, 220, 0, 0, 906, 908, 3, 100, 50, 0, 907, 906, 1, 0, 0, 0, 907, 908, 1, 0, 0, 0, 908, 909, 1, 0, 0, 0, 909, 910, 5, 236, 0, 0, 910, 97, 1, 0, 0, 0, 911, 912, 3, 102, 51, 0, 912, 913, 5, 210, 0, 0, 913, 915, 1, 0, 0, 0, 914, 911, 1, 0, 0, 0, 914, 915, 1, 0, 0, 0, 915, 916, 1, 0, 0, 0, 916, 917, 3, 118, 59, 0, 917, 99, 1, 0, 0, 0, 918, 923, 3, 74, 37, 0, 919, 920, 5, 206, 0, 0, 920, 922, 3, 74, 37, 0, 921, 919, 1, 0, 0, 0, 922, 925, 1, 0, 0, 0, 923, 921, 1, 0, 0, 0, 923, 924, 1, 0, 0, 0, 924, 101, 1, 0, 0, 0, 925, 923, 1, 0, 0, 0, 926, 927, 3, 118, 59, 0, 927, 103, 1, 0, 0, 0, 928, 937, 5, 196, 0, 0, 929, 930, 5, 210, 0, 0, 930, 937, 7, 11, 0, 0, 931, 932, 5, 198, 0, 0, 932, 934, 5, 210, 0, 0, 933, 935, 7, 11, 0, 0, 934, 933, 1, 0, 0, 0, 934, 935, 1, 0, 0, 0, 935, 937, 1, 0, 0, 0, 936, 928, 1, 0, 0, 0, 936, 929, 1, 0, 0, 0, 936, 931, 1, 0, 0, 0, 937, 105, 1, 0, 0, 0, 938, 940, 7, 12, 0, 0, 939, 938, 1, 0, 0, 0, 939, 940, 1, 0, 0, 0, 940, 947, 1, 0, 0, 0, 941, 948, 3, 104, 52, 0, 942, 948, 5, 197, 0, 0, 943, 948, 5, 198, 0, 0, 944, 948, 5, 199, 0, 0, 945, 948, 5, 82, 0, 0, 946, 948, 5, 113, 0, 0, 947, 941, 1, 0, 0, 0, 947, 942, 1, 0, 0, 0, 947, 943, 1, 0, 0, 0, 947, 944, 1, 0, 0, 0, 947, 945, 1, 0, 0, 0, 947, 946, 1, 0, 0, 0, 948, 107, 1, 0, 0, 0, 949, 953, 3, 106, 53, 0, 950, 953, 5, 200, 0, 0, 951, 953, 5, 116, 0, 0, 952, 949, 1, 0, 0, 0, 952, 950, 1, 0, 0, 0, 952, 951, 1, 0, 0, 0, 953, 109, 1, 0, 0, 0, 954, 955, 7, 13, 0, 0, 955, 111, 1, 0, 0, 0, 956, 957, 7, 14, 0, 0, 957, 113, 1, 0, 0, 0, 958, 959, 7, 15, 0, 0, 959, 115, 1, 0, 0, 0, 960, 963, 5, 195, 0, 0, 961, 963, 3, 114, 57, 0, 962, 960, 1, 0, 0, 0, 962, 961, 1, 0, 0, 0, 963, 117, 1, 0, 0, 0, 964, 968, 5, 195, 0, 0, 965, 968, 3, 110, 55, 0, 966, 968, 3, 112, 56, 0, 967, 964, 1, 0, 0, 0, 967, 965, 1, 0, 0, 0, 967, 966, 1, 0, 0, 0, 968, 119, 1, 0, 0, 0, 969, 970, 5, 200, 0, 0, 970, 971, 5, 212, 0, 0, 971, 972, 3, 106, 53, 0, 972, 121, 1, 0, 0, 0, 973, 974, 5, 218, 0, 0, 974, 975, 3, 118, 59, 0, 975, 976, 5, 234, 0, 0, 976, 123, 1, 0, 0, 0, 120, 127, 137, 145, 148, 152, 155, 159, 162, 165, 168, 171, 175, 179, 182, 185, 188, 192, 195, 204, 210, 231, 248, 265, 271, 277, 288, 290, 301, 304, 310, 318, 324, 326, 330, 335, 338, 341, 345, 349, 352, 354, 357, 361, 365, 368, 370, 372, 377, 388, 394, 401, 406, 410, 414, 420, 422, 429, 437, 440, 443, 462, 476, 492, 504, 516, 524, 528, 535, 541, 550, 554, 585, 602, 614, 624, 627, 631, 634, 647, 664, 668, 674, 681, 693, 697, 700, 709, 723, 750, 759, 761, 763, 771, 776, 784, 794, 797, 807, 818, 823, 830, 843, 850, 863, 869, 872, 879, 891, 897, 901, 907, 914, 923, 934, 936, 939, 947, 952, 962, 967] \ No newline at end of file +[4, 1, 242, 984, 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, 1, 0, 1, 0, 1, 0, 3, 0, 130, 8, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 138, 8, 1, 10, 1, 12, 1, 141, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 148, 8, 2, 1, 3, 1, 3, 3, 3, 152, 8, 3, 1, 4, 3, 4, 155, 8, 4, 1, 4, 1, 4, 3, 4, 159, 8, 4, 1, 4, 3, 4, 162, 8, 4, 1, 4, 1, 4, 3, 4, 166, 8, 4, 1, 4, 3, 4, 169, 8, 4, 1, 4, 3, 4, 172, 8, 4, 1, 4, 3, 4, 175, 8, 4, 1, 4, 3, 4, 178, 8, 4, 1, 4, 1, 4, 3, 4, 182, 8, 4, 1, 4, 1, 4, 3, 4, 186, 8, 4, 1, 4, 3, 4, 189, 8, 4, 1, 4, 3, 4, 192, 8, 4, 1, 4, 3, 4, 195, 8, 4, 1, 4, 1, 4, 3, 4, 199, 8, 4, 1, 4, 3, 4, 202, 8, 4, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 211, 8, 6, 1, 7, 1, 7, 1, 7, 1, 8, 3, 8, 217, 8, 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, 9, 1, 9, 1, 9, 5, 9, 236, 8, 9, 10, 9, 12, 9, 239, 9, 9, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 255, 8, 12, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 272, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 278, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 284, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 295, 8, 16, 3, 16, 297, 8, 16, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 3, 19, 308, 8, 19, 1, 19, 3, 19, 311, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 317, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 325, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 5, 19, 331, 8, 19, 10, 19, 12, 19, 334, 9, 19, 1, 20, 3, 20, 337, 8, 20, 1, 20, 1, 20, 1, 20, 3, 20, 342, 8, 20, 1, 20, 3, 20, 345, 8, 20, 1, 20, 3, 20, 348, 8, 20, 1, 20, 1, 20, 3, 20, 352, 8, 20, 1, 20, 1, 20, 3, 20, 356, 8, 20, 1, 20, 3, 20, 359, 8, 20, 3, 20, 361, 8, 20, 1, 20, 3, 20, 364, 8, 20, 1, 20, 1, 20, 3, 20, 368, 8, 20, 1, 20, 1, 20, 3, 20, 372, 8, 20, 1, 20, 3, 20, 375, 8, 20, 3, 20, 377, 8, 20, 3, 20, 379, 8, 20, 1, 21, 1, 21, 1, 21, 3, 21, 384, 8, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 395, 8, 22, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 401, 8, 23, 1, 24, 1, 24, 1, 24, 5, 24, 406, 8, 24, 10, 24, 12, 24, 409, 9, 24, 1, 25, 1, 25, 3, 25, 413, 8, 25, 1, 25, 1, 25, 3, 25, 417, 8, 25, 1, 25, 1, 25, 3, 25, 421, 8, 25, 1, 26, 1, 26, 1, 26, 1, 26, 3, 26, 427, 8, 26, 3, 26, 429, 8, 26, 1, 27, 1, 27, 1, 27, 5, 27, 434, 8, 27, 10, 27, 12, 27, 437, 9, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 3, 29, 444, 8, 29, 1, 29, 3, 29, 447, 8, 29, 1, 29, 3, 29, 450, 8, 29, 1, 30, 1, 30, 1, 30, 1, 30, 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, 33, 3, 33, 469, 8, 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, 3, 34, 483, 8, 34, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 5, 36, 497, 8, 36, 10, 36, 12, 36, 500, 9, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 5, 36, 509, 8, 36, 10, 36, 12, 36, 512, 9, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 5, 36, 521, 8, 36, 10, 36, 12, 36, 524, 9, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 3, 36, 531, 8, 36, 1, 36, 1, 36, 3, 36, 535, 8, 36, 1, 37, 1, 37, 1, 37, 5, 37, 540, 8, 37, 10, 37, 12, 37, 543, 9, 37, 1, 38, 1, 38, 1, 38, 3, 38, 548, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 4, 38, 555, 8, 38, 11, 38, 12, 38, 556, 1, 38, 1, 38, 3, 38, 561, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 592, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 609, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 621, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 631, 8, 38, 1, 38, 3, 38, 634, 8, 38, 1, 38, 1, 38, 3, 38, 638, 8, 38, 1, 38, 3, 38, 641, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 654, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 671, 8, 38, 1, 38, 1, 38, 3, 38, 675, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 681, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 688, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 700, 8, 38, 1, 38, 1, 38, 3, 38, 704, 8, 38, 1, 38, 3, 38, 707, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 716, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 730, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 757, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 766, 8, 38, 5, 38, 768, 8, 38, 10, 38, 12, 38, 771, 9, 38, 1, 39, 1, 39, 1, 39, 5, 39, 776, 8, 39, 10, 39, 12, 39, 779, 9, 39, 1, 40, 1, 40, 3, 40, 783, 8, 40, 1, 41, 1, 41, 1, 41, 1, 41, 5, 41, 789, 8, 41, 10, 41, 12, 41, 792, 9, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 5, 41, 799, 8, 41, 10, 41, 12, 41, 802, 9, 41, 3, 41, 804, 8, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 5, 42, 812, 8, 42, 10, 42, 12, 42, 815, 9, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 5, 42, 823, 8, 42, 10, 42, 12, 42, 826, 9, 42, 1, 42, 1, 42, 3, 42, 830, 8, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 837, 8, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 3, 43, 850, 8, 43, 1, 44, 1, 44, 1, 44, 5, 44, 855, 8, 44, 10, 44, 12, 44, 858, 9, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 870, 8, 45, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 876, 8, 46, 1, 46, 3, 46, 879, 8, 46, 1, 47, 1, 47, 1, 47, 5, 47, 884, 8, 47, 10, 47, 12, 47, 887, 9, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 898, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 904, 8, 48, 5, 48, 906, 8, 48, 10, 48, 12, 48, 909, 9, 48, 1, 49, 1, 49, 1, 49, 3, 49, 914, 8, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 3, 50, 921, 8, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 5, 51, 928, 8, 51, 10, 51, 12, 51, 931, 9, 51, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 3, 53, 941, 8, 53, 3, 53, 943, 8, 53, 1, 54, 3, 54, 946, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 954, 8, 54, 1, 55, 1, 55, 1, 55, 3, 55, 959, 8, 55, 1, 56, 1, 56, 1, 57, 1, 57, 1, 58, 1, 58, 1, 59, 1, 59, 3, 59, 969, 8, 59, 1, 60, 1, 60, 1, 60, 3, 60, 974, 8, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 0, 3, 38, 76, 96, 63, 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, 0, 16, 2, 0, 32, 32, 141, 141, 2, 0, 84, 84, 96, 96, 3, 0, 4, 4, 8, 8, 12, 12, 4, 0, 4, 4, 7, 8, 12, 12, 147, 147, 2, 0, 96, 96, 140, 140, 2, 0, 4, 4, 8, 8, 2, 0, 11, 11, 42, 43, 2, 0, 62, 62, 93, 93, 2, 0, 133, 133, 143, 143, 3, 0, 17, 17, 95, 95, 170, 170, 2, 0, 79, 79, 98, 98, 1, 0, 197, 198, 2, 0, 208, 208, 228, 228, 8, 0, 37, 37, 76, 76, 108, 108, 110, 110, 132, 132, 145, 145, 185, 185, 190, 190, 13, 0, 2, 24, 26, 36, 38, 75, 77, 81, 83, 107, 109, 109, 111, 112, 114, 115, 117, 130, 133, 144, 146, 184, 186, 189, 191, 192, 4, 0, 36, 36, 62, 62, 77, 77, 91, 91, 1111, 0, 129, 1, 0, 0, 0, 2, 133, 1, 0, 0, 0, 4, 147, 1, 0, 0, 0, 6, 151, 1, 0, 0, 0, 8, 154, 1, 0, 0, 0, 10, 203, 1, 0, 0, 0, 12, 206, 1, 0, 0, 0, 14, 212, 1, 0, 0, 0, 16, 216, 1, 0, 0, 0, 18, 222, 1, 0, 0, 0, 20, 240, 1, 0, 0, 0, 22, 243, 1, 0, 0, 0, 24, 246, 1, 0, 0, 0, 26, 256, 1, 0, 0, 0, 28, 259, 1, 0, 0, 0, 30, 263, 1, 0, 0, 0, 32, 296, 1, 0, 0, 0, 34, 298, 1, 0, 0, 0, 36, 301, 1, 0, 0, 0, 38, 316, 1, 0, 0, 0, 40, 378, 1, 0, 0, 0, 42, 383, 1, 0, 0, 0, 44, 394, 1, 0, 0, 0, 46, 396, 1, 0, 0, 0, 48, 402, 1, 0, 0, 0, 50, 410, 1, 0, 0, 0, 52, 428, 1, 0, 0, 0, 54, 430, 1, 0, 0, 0, 56, 438, 1, 0, 0, 0, 58, 443, 1, 0, 0, 0, 60, 451, 1, 0, 0, 0, 62, 455, 1, 0, 0, 0, 64, 459, 1, 0, 0, 0, 66, 468, 1, 0, 0, 0, 68, 482, 1, 0, 0, 0, 70, 484, 1, 0, 0, 0, 72, 534, 1, 0, 0, 0, 74, 536, 1, 0, 0, 0, 76, 674, 1, 0, 0, 0, 78, 772, 1, 0, 0, 0, 80, 782, 1, 0, 0, 0, 82, 803, 1, 0, 0, 0, 84, 836, 1, 0, 0, 0, 86, 849, 1, 0, 0, 0, 88, 851, 1, 0, 0, 0, 90, 869, 1, 0, 0, 0, 92, 878, 1, 0, 0, 0, 94, 880, 1, 0, 0, 0, 96, 897, 1, 0, 0, 0, 98, 910, 1, 0, 0, 0, 100, 920, 1, 0, 0, 0, 102, 924, 1, 0, 0, 0, 104, 932, 1, 0, 0, 0, 106, 942, 1, 0, 0, 0, 108, 945, 1, 0, 0, 0, 110, 958, 1, 0, 0, 0, 112, 960, 1, 0, 0, 0, 114, 962, 1, 0, 0, 0, 116, 964, 1, 0, 0, 0, 118, 968, 1, 0, 0, 0, 120, 973, 1, 0, 0, 0, 122, 975, 1, 0, 0, 0, 124, 979, 1, 0, 0, 0, 126, 130, 3, 2, 1, 0, 127, 130, 3, 8, 4, 0, 128, 130, 3, 84, 42, 0, 129, 126, 1, 0, 0, 0, 129, 127, 1, 0, 0, 0, 129, 128, 1, 0, 0, 0, 130, 131, 1, 0, 0, 0, 131, 132, 5, 0, 0, 1, 132, 1, 1, 0, 0, 0, 133, 139, 3, 4, 2, 0, 134, 135, 5, 176, 0, 0, 135, 136, 5, 4, 0, 0, 136, 138, 3, 4, 2, 0, 137, 134, 1, 0, 0, 0, 138, 141, 1, 0, 0, 0, 139, 137, 1, 0, 0, 0, 139, 140, 1, 0, 0, 0, 140, 3, 1, 0, 0, 0, 141, 139, 1, 0, 0, 0, 142, 148, 3, 6, 3, 0, 143, 144, 5, 220, 0, 0, 144, 145, 3, 2, 1, 0, 145, 146, 5, 236, 0, 0, 146, 148, 1, 0, 0, 0, 147, 142, 1, 0, 0, 0, 147, 143, 1, 0, 0, 0, 148, 5, 1, 0, 0, 0, 149, 152, 3, 8, 4, 0, 150, 152, 3, 124, 62, 0, 151, 149, 1, 0, 0, 0, 151, 150, 1, 0, 0, 0, 152, 7, 1, 0, 0, 0, 153, 155, 3, 10, 5, 0, 154, 153, 1, 0, 0, 0, 154, 155, 1, 0, 0, 0, 155, 156, 1, 0, 0, 0, 156, 158, 5, 146, 0, 0, 157, 159, 5, 49, 0, 0, 158, 157, 1, 0, 0, 0, 158, 159, 1, 0, 0, 0, 159, 161, 1, 0, 0, 0, 160, 162, 3, 12, 6, 0, 161, 160, 1, 0, 0, 0, 161, 162, 1, 0, 0, 0, 162, 163, 1, 0, 0, 0, 163, 165, 3, 74, 37, 0, 164, 166, 3, 14, 7, 0, 165, 164, 1, 0, 0, 0, 165, 166, 1, 0, 0, 0, 166, 168, 1, 0, 0, 0, 167, 169, 3, 16, 8, 0, 168, 167, 1, 0, 0, 0, 168, 169, 1, 0, 0, 0, 169, 171, 1, 0, 0, 0, 170, 172, 3, 20, 10, 0, 171, 170, 1, 0, 0, 0, 171, 172, 1, 0, 0, 0, 172, 174, 1, 0, 0, 0, 173, 175, 3, 22, 11, 0, 174, 173, 1, 0, 0, 0, 174, 175, 1, 0, 0, 0, 175, 177, 1, 0, 0, 0, 176, 178, 3, 24, 12, 0, 177, 176, 1, 0, 0, 0, 177, 178, 1, 0, 0, 0, 178, 181, 1, 0, 0, 0, 179, 180, 5, 189, 0, 0, 180, 182, 7, 0, 0, 0, 181, 179, 1, 0, 0, 0, 181, 182, 1, 0, 0, 0, 182, 185, 1, 0, 0, 0, 183, 184, 5, 189, 0, 0, 184, 186, 5, 169, 0, 0, 185, 183, 1, 0, 0, 0, 185, 186, 1, 0, 0, 0, 186, 188, 1, 0, 0, 0, 187, 189, 3, 26, 13, 0, 188, 187, 1, 0, 0, 0, 188, 189, 1, 0, 0, 0, 189, 191, 1, 0, 0, 0, 190, 192, 3, 18, 9, 0, 191, 190, 1, 0, 0, 0, 191, 192, 1, 0, 0, 0, 192, 194, 1, 0, 0, 0, 193, 195, 3, 28, 14, 0, 194, 193, 1, 0, 0, 0, 194, 195, 1, 0, 0, 0, 195, 198, 1, 0, 0, 0, 196, 199, 3, 32, 16, 0, 197, 199, 3, 34, 17, 0, 198, 196, 1, 0, 0, 0, 198, 197, 1, 0, 0, 0, 198, 199, 1, 0, 0, 0, 199, 201, 1, 0, 0, 0, 200, 202, 3, 36, 18, 0, 201, 200, 1, 0, 0, 0, 201, 202, 1, 0, 0, 0, 202, 9, 1, 0, 0, 0, 203, 204, 5, 189, 0, 0, 204, 205, 3, 88, 44, 0, 205, 11, 1, 0, 0, 0, 206, 207, 5, 168, 0, 0, 207, 210, 5, 198, 0, 0, 208, 209, 5, 189, 0, 0, 209, 211, 5, 164, 0, 0, 210, 208, 1, 0, 0, 0, 210, 211, 1, 0, 0, 0, 211, 13, 1, 0, 0, 0, 212, 213, 5, 68, 0, 0, 213, 214, 3, 38, 19, 0, 214, 15, 1, 0, 0, 0, 215, 217, 7, 1, 0, 0, 216, 215, 1, 0, 0, 0, 216, 217, 1, 0, 0, 0, 217, 218, 1, 0, 0, 0, 218, 219, 5, 9, 0, 0, 219, 220, 5, 90, 0, 0, 220, 221, 3, 74, 37, 0, 221, 17, 1, 0, 0, 0, 222, 223, 5, 188, 0, 0, 223, 224, 3, 120, 60, 0, 224, 225, 5, 10, 0, 0, 225, 226, 5, 220, 0, 0, 226, 227, 3, 58, 29, 0, 227, 237, 5, 236, 0, 0, 228, 229, 5, 206, 0, 0, 229, 230, 3, 120, 60, 0, 230, 231, 5, 10, 0, 0, 231, 232, 5, 220, 0, 0, 232, 233, 3, 58, 29, 0, 233, 234, 5, 236, 0, 0, 234, 236, 1, 0, 0, 0, 235, 228, 1, 0, 0, 0, 236, 239, 1, 0, 0, 0, 237, 235, 1, 0, 0, 0, 237, 238, 1, 0, 0, 0, 238, 19, 1, 0, 0, 0, 239, 237, 1, 0, 0, 0, 240, 241, 5, 129, 0, 0, 241, 242, 3, 76, 38, 0, 242, 21, 1, 0, 0, 0, 243, 244, 5, 187, 0, 0, 244, 245, 3, 76, 38, 0, 245, 23, 1, 0, 0, 0, 246, 247, 5, 73, 0, 0, 247, 254, 5, 18, 0, 0, 248, 249, 7, 0, 0, 0, 249, 250, 5, 220, 0, 0, 250, 251, 3, 74, 37, 0, 251, 252, 5, 236, 0, 0, 252, 255, 1, 0, 0, 0, 253, 255, 3, 74, 37, 0, 254, 248, 1, 0, 0, 0, 254, 253, 1, 0, 0, 0, 255, 25, 1, 0, 0, 0, 256, 257, 5, 74, 0, 0, 257, 258, 3, 76, 38, 0, 258, 27, 1, 0, 0, 0, 259, 260, 5, 122, 0, 0, 260, 261, 5, 18, 0, 0, 261, 262, 3, 48, 24, 0, 262, 29, 1, 0, 0, 0, 263, 264, 5, 122, 0, 0, 264, 265, 5, 18, 0, 0, 265, 266, 3, 74, 37, 0, 266, 31, 1, 0, 0, 0, 267, 268, 5, 99, 0, 0, 268, 271, 3, 76, 38, 0, 269, 270, 5, 206, 0, 0, 270, 272, 3, 76, 38, 0, 271, 269, 1, 0, 0, 0, 271, 272, 1, 0, 0, 0, 272, 277, 1, 0, 0, 0, 273, 274, 5, 189, 0, 0, 274, 278, 5, 164, 0, 0, 275, 276, 5, 18, 0, 0, 276, 278, 3, 74, 37, 0, 277, 273, 1, 0, 0, 0, 277, 275, 1, 0, 0, 0, 277, 278, 1, 0, 0, 0, 278, 297, 1, 0, 0, 0, 279, 280, 5, 99, 0, 0, 280, 283, 3, 76, 38, 0, 281, 282, 5, 189, 0, 0, 282, 284, 5, 164, 0, 0, 283, 281, 1, 0, 0, 0, 283, 284, 1, 0, 0, 0, 284, 285, 1, 0, 0, 0, 285, 286, 5, 118, 0, 0, 286, 287, 3, 76, 38, 0, 287, 297, 1, 0, 0, 0, 288, 289, 5, 99, 0, 0, 289, 290, 3, 76, 38, 0, 290, 291, 5, 118, 0, 0, 291, 294, 3, 76, 38, 0, 292, 293, 5, 18, 0, 0, 293, 295, 3, 74, 37, 0, 294, 292, 1, 0, 0, 0, 294, 295, 1, 0, 0, 0, 295, 297, 1, 0, 0, 0, 296, 267, 1, 0, 0, 0, 296, 279, 1, 0, 0, 0, 296, 288, 1, 0, 0, 0, 297, 33, 1, 0, 0, 0, 298, 299, 5, 118, 0, 0, 299, 300, 3, 76, 38, 0, 300, 35, 1, 0, 0, 0, 301, 302, 5, 150, 0, 0, 302, 303, 3, 54, 27, 0, 303, 37, 1, 0, 0, 0, 304, 305, 6, 19, -1, 0, 305, 307, 3, 96, 48, 0, 306, 308, 5, 61, 0, 0, 307, 306, 1, 0, 0, 0, 307, 308, 1, 0, 0, 0, 308, 310, 1, 0, 0, 0, 309, 311, 3, 46, 23, 0, 310, 309, 1, 0, 0, 0, 310, 311, 1, 0, 0, 0, 311, 317, 1, 0, 0, 0, 312, 313, 5, 220, 0, 0, 313, 314, 3, 38, 19, 0, 314, 315, 5, 236, 0, 0, 315, 317, 1, 0, 0, 0, 316, 304, 1, 0, 0, 0, 316, 312, 1, 0, 0, 0, 317, 332, 1, 0, 0, 0, 318, 319, 10, 3, 0, 0, 319, 320, 3, 42, 21, 0, 320, 321, 3, 38, 19, 4, 321, 331, 1, 0, 0, 0, 322, 324, 10, 4, 0, 0, 323, 325, 3, 40, 20, 0, 324, 323, 1, 0, 0, 0, 324, 325, 1, 0, 0, 0, 325, 326, 1, 0, 0, 0, 326, 327, 5, 90, 0, 0, 327, 328, 3, 38, 19, 0, 328, 329, 3, 44, 22, 0, 329, 331, 1, 0, 0, 0, 330, 318, 1, 0, 0, 0, 330, 322, 1, 0, 0, 0, 331, 334, 1, 0, 0, 0, 332, 330, 1, 0, 0, 0, 332, 333, 1, 0, 0, 0, 333, 39, 1, 0, 0, 0, 334, 332, 1, 0, 0, 0, 335, 337, 7, 2, 0, 0, 336, 335, 1, 0, 0, 0, 336, 337, 1, 0, 0, 0, 337, 338, 1, 0, 0, 0, 338, 345, 5, 84, 0, 0, 339, 341, 5, 84, 0, 0, 340, 342, 7, 2, 0, 0, 341, 340, 1, 0, 0, 0, 341, 342, 1, 0, 0, 0, 342, 345, 1, 0, 0, 0, 343, 345, 7, 2, 0, 0, 344, 336, 1, 0, 0, 0, 344, 339, 1, 0, 0, 0, 344, 343, 1, 0, 0, 0, 345, 379, 1, 0, 0, 0, 346, 348, 7, 3, 0, 0, 347, 346, 1, 0, 0, 0, 347, 348, 1, 0, 0, 0, 348, 349, 1, 0, 0, 0, 349, 351, 7, 4, 0, 0, 350, 352, 5, 123, 0, 0, 351, 350, 1, 0, 0, 0, 351, 352, 1, 0, 0, 0, 352, 361, 1, 0, 0, 0, 353, 355, 7, 4, 0, 0, 354, 356, 5, 123, 0, 0, 355, 354, 1, 0, 0, 0, 355, 356, 1, 0, 0, 0, 356, 358, 1, 0, 0, 0, 357, 359, 7, 3, 0, 0, 358, 357, 1, 0, 0, 0, 358, 359, 1, 0, 0, 0, 359, 361, 1, 0, 0, 0, 360, 347, 1, 0, 0, 0, 360, 353, 1, 0, 0, 0, 361, 379, 1, 0, 0, 0, 362, 364, 7, 5, 0, 0, 363, 362, 1, 0, 0, 0, 363, 364, 1, 0, 0, 0, 364, 365, 1, 0, 0, 0, 365, 367, 5, 69, 0, 0, 366, 368, 5, 123, 0, 0, 367, 366, 1, 0, 0, 0, 367, 368, 1, 0, 0, 0, 368, 377, 1, 0, 0, 0, 369, 371, 5, 69, 0, 0, 370, 372, 5, 123, 0, 0, 371, 370, 1, 0, 0, 0, 371, 372, 1, 0, 0, 0, 372, 374, 1, 0, 0, 0, 373, 375, 7, 5, 0, 0, 374, 373, 1, 0, 0, 0, 374, 375, 1, 0, 0, 0, 375, 377, 1, 0, 0, 0, 376, 363, 1, 0, 0, 0, 376, 369, 1, 0, 0, 0, 377, 379, 1, 0, 0, 0, 378, 344, 1, 0, 0, 0, 378, 360, 1, 0, 0, 0, 378, 376, 1, 0, 0, 0, 379, 41, 1, 0, 0, 0, 380, 381, 5, 31, 0, 0, 381, 384, 5, 90, 0, 0, 382, 384, 5, 206, 0, 0, 383, 380, 1, 0, 0, 0, 383, 382, 1, 0, 0, 0, 384, 43, 1, 0, 0, 0, 385, 386, 5, 119, 0, 0, 386, 395, 3, 74, 37, 0, 387, 388, 5, 179, 0, 0, 388, 389, 5, 220, 0, 0, 389, 390, 3, 74, 37, 0, 390, 391, 5, 236, 0, 0, 391, 395, 1, 0, 0, 0, 392, 393, 5, 179, 0, 0, 393, 395, 3, 74, 37, 0, 394, 385, 1, 0, 0, 0, 394, 387, 1, 0, 0, 0, 394, 392, 1, 0, 0, 0, 395, 45, 1, 0, 0, 0, 396, 397, 5, 144, 0, 0, 397, 400, 3, 52, 26, 0, 398, 399, 5, 118, 0, 0, 399, 401, 3, 52, 26, 0, 400, 398, 1, 0, 0, 0, 400, 401, 1, 0, 0, 0, 401, 47, 1, 0, 0, 0, 402, 407, 3, 50, 25, 0, 403, 404, 5, 206, 0, 0, 404, 406, 3, 50, 25, 0, 405, 403, 1, 0, 0, 0, 406, 409, 1, 0, 0, 0, 407, 405, 1, 0, 0, 0, 407, 408, 1, 0, 0, 0, 408, 49, 1, 0, 0, 0, 409, 407, 1, 0, 0, 0, 410, 412, 3, 76, 38, 0, 411, 413, 7, 6, 0, 0, 412, 411, 1, 0, 0, 0, 412, 413, 1, 0, 0, 0, 413, 416, 1, 0, 0, 0, 414, 415, 5, 117, 0, 0, 415, 417, 7, 7, 0, 0, 416, 414, 1, 0, 0, 0, 416, 417, 1, 0, 0, 0, 417, 420, 1, 0, 0, 0, 418, 419, 5, 26, 0, 0, 419, 421, 5, 200, 0, 0, 420, 418, 1, 0, 0, 0, 420, 421, 1, 0, 0, 0, 421, 51, 1, 0, 0, 0, 422, 429, 3, 124, 62, 0, 423, 426, 3, 108, 54, 0, 424, 425, 5, 238, 0, 0, 425, 427, 3, 108, 54, 0, 426, 424, 1, 0, 0, 0, 426, 427, 1, 0, 0, 0, 427, 429, 1, 0, 0, 0, 428, 422, 1, 0, 0, 0, 428, 423, 1, 0, 0, 0, 429, 53, 1, 0, 0, 0, 430, 435, 3, 56, 28, 0, 431, 432, 5, 206, 0, 0, 432, 434, 3, 56, 28, 0, 433, 431, 1, 0, 0, 0, 434, 437, 1, 0, 0, 0, 435, 433, 1, 0, 0, 0, 435, 436, 1, 0, 0, 0, 436, 55, 1, 0, 0, 0, 437, 435, 1, 0, 0, 0, 438, 439, 3, 120, 60, 0, 439, 440, 5, 212, 0, 0, 440, 441, 3, 110, 55, 0, 441, 57, 1, 0, 0, 0, 442, 444, 3, 60, 30, 0, 443, 442, 1, 0, 0, 0, 443, 444, 1, 0, 0, 0, 444, 446, 1, 0, 0, 0, 445, 447, 3, 62, 31, 0, 446, 445, 1, 0, 0, 0, 446, 447, 1, 0, 0, 0, 447, 449, 1, 0, 0, 0, 448, 450, 3, 64, 32, 0, 449, 448, 1, 0, 0, 0, 449, 450, 1, 0, 0, 0, 450, 59, 1, 0, 0, 0, 451, 452, 5, 126, 0, 0, 452, 453, 5, 18, 0, 0, 453, 454, 3, 74, 37, 0, 454, 61, 1, 0, 0, 0, 455, 456, 5, 122, 0, 0, 456, 457, 5, 18, 0, 0, 457, 458, 3, 48, 24, 0, 458, 63, 1, 0, 0, 0, 459, 460, 7, 8, 0, 0, 460, 461, 3, 66, 33, 0, 461, 65, 1, 0, 0, 0, 462, 469, 3, 68, 34, 0, 463, 464, 5, 16, 0, 0, 464, 465, 3, 68, 34, 0, 465, 466, 5, 6, 0, 0, 466, 467, 3, 68, 34, 0, 467, 469, 1, 0, 0, 0, 468, 462, 1, 0, 0, 0, 468, 463, 1, 0, 0, 0, 469, 67, 1, 0, 0, 0, 470, 471, 5, 33, 0, 0, 471, 483, 5, 142, 0, 0, 472, 473, 5, 175, 0, 0, 473, 483, 5, 128, 0, 0, 474, 475, 5, 175, 0, 0, 475, 483, 5, 64, 0, 0, 476, 477, 3, 108, 54, 0, 477, 478, 5, 128, 0, 0, 478, 483, 1, 0, 0, 0, 479, 480, 3, 108, 54, 0, 480, 481, 5, 64, 0, 0, 481, 483, 1, 0, 0, 0, 482, 470, 1, 0, 0, 0, 482, 472, 1, 0, 0, 0, 482, 474, 1, 0, 0, 0, 482, 476, 1, 0, 0, 0, 482, 479, 1, 0, 0, 0, 483, 69, 1, 0, 0, 0, 484, 485, 3, 76, 38, 0, 485, 486, 5, 0, 0, 1, 486, 71, 1, 0, 0, 0, 487, 535, 3, 120, 60, 0, 488, 489, 3, 120, 60, 0, 489, 490, 5, 220, 0, 0, 490, 491, 3, 120, 60, 0, 491, 498, 3, 72, 36, 0, 492, 493, 5, 206, 0, 0, 493, 494, 3, 120, 60, 0, 494, 495, 3, 72, 36, 0, 495, 497, 1, 0, 0, 0, 496, 492, 1, 0, 0, 0, 497, 500, 1, 0, 0, 0, 498, 496, 1, 0, 0, 0, 498, 499, 1, 0, 0, 0, 499, 501, 1, 0, 0, 0, 500, 498, 1, 0, 0, 0, 501, 502, 5, 236, 0, 0, 502, 535, 1, 0, 0, 0, 503, 504, 3, 120, 60, 0, 504, 505, 5, 220, 0, 0, 505, 510, 3, 122, 61, 0, 506, 507, 5, 206, 0, 0, 507, 509, 3, 122, 61, 0, 508, 506, 1, 0, 0, 0, 509, 512, 1, 0, 0, 0, 510, 508, 1, 0, 0, 0, 510, 511, 1, 0, 0, 0, 511, 513, 1, 0, 0, 0, 512, 510, 1, 0, 0, 0, 513, 514, 5, 236, 0, 0, 514, 535, 1, 0, 0, 0, 515, 516, 3, 120, 60, 0, 516, 517, 5, 220, 0, 0, 517, 522, 3, 72, 36, 0, 518, 519, 5, 206, 0, 0, 519, 521, 3, 72, 36, 0, 520, 518, 1, 0, 0, 0, 521, 524, 1, 0, 0, 0, 522, 520, 1, 0, 0, 0, 522, 523, 1, 0, 0, 0, 523, 525, 1, 0, 0, 0, 524, 522, 1, 0, 0, 0, 525, 526, 5, 236, 0, 0, 526, 535, 1, 0, 0, 0, 527, 528, 3, 120, 60, 0, 528, 530, 5, 220, 0, 0, 529, 531, 3, 74, 37, 0, 530, 529, 1, 0, 0, 0, 530, 531, 1, 0, 0, 0, 531, 532, 1, 0, 0, 0, 532, 533, 5, 236, 0, 0, 533, 535, 1, 0, 0, 0, 534, 487, 1, 0, 0, 0, 534, 488, 1, 0, 0, 0, 534, 503, 1, 0, 0, 0, 534, 515, 1, 0, 0, 0, 534, 527, 1, 0, 0, 0, 535, 73, 1, 0, 0, 0, 536, 541, 3, 76, 38, 0, 537, 538, 5, 206, 0, 0, 538, 540, 3, 76, 38, 0, 539, 537, 1, 0, 0, 0, 540, 543, 1, 0, 0, 0, 541, 539, 1, 0, 0, 0, 541, 542, 1, 0, 0, 0, 542, 75, 1, 0, 0, 0, 543, 541, 1, 0, 0, 0, 544, 545, 6, 38, -1, 0, 545, 547, 5, 19, 0, 0, 546, 548, 3, 76, 38, 0, 547, 546, 1, 0, 0, 0, 547, 548, 1, 0, 0, 0, 548, 554, 1, 0, 0, 0, 549, 550, 5, 186, 0, 0, 550, 551, 3, 76, 38, 0, 551, 552, 5, 163, 0, 0, 552, 553, 3, 76, 38, 0, 553, 555, 1, 0, 0, 0, 554, 549, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 554, 1, 0, 0, 0, 556, 557, 1, 0, 0, 0, 557, 560, 1, 0, 0, 0, 558, 559, 5, 52, 0, 0, 559, 561, 3, 76, 38, 0, 560, 558, 1, 0, 0, 0, 560, 561, 1, 0, 0, 0, 561, 562, 1, 0, 0, 0, 562, 563, 5, 53, 0, 0, 563, 675, 1, 0, 0, 0, 564, 565, 5, 20, 0, 0, 565, 566, 5, 220, 0, 0, 566, 567, 3, 76, 38, 0, 567, 568, 5, 10, 0, 0, 568, 569, 3, 72, 36, 0, 569, 570, 5, 236, 0, 0, 570, 675, 1, 0, 0, 0, 571, 572, 5, 36, 0, 0, 572, 675, 5, 200, 0, 0, 573, 574, 5, 59, 0, 0, 574, 575, 5, 220, 0, 0, 575, 576, 3, 112, 56, 0, 576, 577, 5, 68, 0, 0, 577, 578, 3, 76, 38, 0, 578, 579, 5, 236, 0, 0, 579, 675, 1, 0, 0, 0, 580, 581, 5, 86, 0, 0, 581, 582, 3, 76, 38, 0, 582, 583, 3, 112, 56, 0, 583, 675, 1, 0, 0, 0, 584, 585, 5, 155, 0, 0, 585, 586, 5, 220, 0, 0, 586, 587, 3, 76, 38, 0, 587, 588, 5, 68, 0, 0, 588, 591, 3, 76, 38, 0, 589, 590, 5, 65, 0, 0, 590, 592, 3, 76, 38, 0, 591, 589, 1, 0, 0, 0, 591, 592, 1, 0, 0, 0, 592, 593, 1, 0, 0, 0, 593, 594, 5, 236, 0, 0, 594, 675, 1, 0, 0, 0, 595, 596, 5, 166, 0, 0, 596, 675, 5, 200, 0, 0, 597, 598, 5, 171, 0, 0, 598, 599, 5, 220, 0, 0, 599, 600, 7, 9, 0, 0, 600, 601, 5, 200, 0, 0, 601, 602, 5, 68, 0, 0, 602, 603, 3, 76, 38, 0, 603, 604, 5, 236, 0, 0, 604, 675, 1, 0, 0, 0, 605, 606, 3, 120, 60, 0, 606, 608, 5, 220, 0, 0, 607, 609, 3, 74, 37, 0, 608, 607, 1, 0, 0, 0, 608, 609, 1, 0, 0, 0, 609, 610, 1, 0, 0, 0, 610, 611, 5, 236, 0, 0, 611, 612, 1, 0, 0, 0, 612, 613, 5, 125, 0, 0, 613, 614, 5, 220, 0, 0, 614, 615, 3, 58, 29, 0, 615, 616, 5, 236, 0, 0, 616, 675, 1, 0, 0, 0, 617, 618, 3, 120, 60, 0, 618, 620, 5, 220, 0, 0, 619, 621, 3, 74, 37, 0, 620, 619, 1, 0, 0, 0, 620, 621, 1, 0, 0, 0, 621, 622, 1, 0, 0, 0, 622, 623, 5, 236, 0, 0, 623, 624, 1, 0, 0, 0, 624, 625, 5, 125, 0, 0, 625, 626, 3, 120, 60, 0, 626, 675, 1, 0, 0, 0, 627, 633, 3, 120, 60, 0, 628, 630, 5, 220, 0, 0, 629, 631, 3, 74, 37, 0, 630, 629, 1, 0, 0, 0, 630, 631, 1, 0, 0, 0, 631, 632, 1, 0, 0, 0, 632, 634, 5, 236, 0, 0, 633, 628, 1, 0, 0, 0, 633, 634, 1, 0, 0, 0, 634, 635, 1, 0, 0, 0, 635, 637, 5, 220, 0, 0, 636, 638, 5, 49, 0, 0, 637, 636, 1, 0, 0, 0, 637, 638, 1, 0, 0, 0, 638, 640, 1, 0, 0, 0, 639, 641, 3, 78, 39, 0, 640, 639, 1, 0, 0, 0, 640, 641, 1, 0, 0, 0, 641, 642, 1, 0, 0, 0, 642, 643, 5, 236, 0, 0, 643, 675, 1, 0, 0, 0, 644, 675, 3, 84, 42, 0, 645, 675, 3, 110, 55, 0, 646, 647, 5, 208, 0, 0, 647, 675, 3, 76, 38, 18, 648, 649, 5, 115, 0, 0, 649, 675, 3, 76, 38, 12, 650, 651, 3, 100, 50, 0, 651, 652, 5, 210, 0, 0, 652, 654, 1, 0, 0, 0, 653, 650, 1, 0, 0, 0, 653, 654, 1, 0, 0, 0, 654, 655, 1, 0, 0, 0, 655, 675, 5, 202, 0, 0, 656, 657, 5, 220, 0, 0, 657, 658, 3, 2, 1, 0, 658, 659, 5, 236, 0, 0, 659, 675, 1, 0, 0, 0, 660, 661, 5, 220, 0, 0, 661, 662, 3, 76, 38, 0, 662, 663, 5, 236, 0, 0, 663, 675, 1, 0, 0, 0, 664, 665, 5, 220, 0, 0, 665, 666, 3, 74, 37, 0, 666, 667, 5, 236, 0, 0, 667, 675, 1, 0, 0, 0, 668, 670, 5, 219, 0, 0, 669, 671, 3, 74, 37, 0, 670, 669, 1, 0, 0, 0, 670, 671, 1, 0, 0, 0, 671, 672, 1, 0, 0, 0, 672, 675, 5, 235, 0, 0, 673, 675, 3, 92, 46, 0, 674, 544, 1, 0, 0, 0, 674, 564, 1, 0, 0, 0, 674, 571, 1, 0, 0, 0, 674, 573, 1, 0, 0, 0, 674, 580, 1, 0, 0, 0, 674, 584, 1, 0, 0, 0, 674, 595, 1, 0, 0, 0, 674, 597, 1, 0, 0, 0, 674, 605, 1, 0, 0, 0, 674, 617, 1, 0, 0, 0, 674, 627, 1, 0, 0, 0, 674, 644, 1, 0, 0, 0, 674, 645, 1, 0, 0, 0, 674, 646, 1, 0, 0, 0, 674, 648, 1, 0, 0, 0, 674, 653, 1, 0, 0, 0, 674, 656, 1, 0, 0, 0, 674, 660, 1, 0, 0, 0, 674, 664, 1, 0, 0, 0, 674, 668, 1, 0, 0, 0, 674, 673, 1, 0, 0, 0, 675, 769, 1, 0, 0, 0, 676, 680, 10, 17, 0, 0, 677, 681, 5, 202, 0, 0, 678, 681, 5, 238, 0, 0, 679, 681, 5, 227, 0, 0, 680, 677, 1, 0, 0, 0, 680, 678, 1, 0, 0, 0, 680, 679, 1, 0, 0, 0, 681, 682, 1, 0, 0, 0, 682, 768, 3, 76, 38, 18, 683, 687, 10, 16, 0, 0, 684, 688, 5, 228, 0, 0, 685, 688, 5, 208, 0, 0, 686, 688, 5, 207, 0, 0, 687, 684, 1, 0, 0, 0, 687, 685, 1, 0, 0, 0, 687, 686, 1, 0, 0, 0, 688, 689, 1, 0, 0, 0, 689, 768, 3, 76, 38, 17, 690, 715, 10, 15, 0, 0, 691, 716, 5, 211, 0, 0, 692, 716, 5, 212, 0, 0, 693, 716, 5, 223, 0, 0, 694, 716, 5, 221, 0, 0, 695, 716, 5, 222, 0, 0, 696, 716, 5, 213, 0, 0, 697, 716, 5, 214, 0, 0, 698, 700, 5, 115, 0, 0, 699, 698, 1, 0, 0, 0, 699, 700, 1, 0, 0, 0, 700, 701, 1, 0, 0, 0, 701, 703, 5, 80, 0, 0, 702, 704, 5, 25, 0, 0, 703, 702, 1, 0, 0, 0, 703, 704, 1, 0, 0, 0, 704, 716, 1, 0, 0, 0, 705, 707, 5, 115, 0, 0, 706, 705, 1, 0, 0, 0, 706, 707, 1, 0, 0, 0, 707, 708, 1, 0, 0, 0, 708, 716, 7, 10, 0, 0, 709, 716, 5, 232, 0, 0, 710, 716, 5, 233, 0, 0, 711, 716, 5, 225, 0, 0, 712, 716, 5, 216, 0, 0, 713, 716, 5, 217, 0, 0, 714, 716, 5, 224, 0, 0, 715, 691, 1, 0, 0, 0, 715, 692, 1, 0, 0, 0, 715, 693, 1, 0, 0, 0, 715, 694, 1, 0, 0, 0, 715, 695, 1, 0, 0, 0, 715, 696, 1, 0, 0, 0, 715, 697, 1, 0, 0, 0, 715, 699, 1, 0, 0, 0, 715, 706, 1, 0, 0, 0, 715, 709, 1, 0, 0, 0, 715, 710, 1, 0, 0, 0, 715, 711, 1, 0, 0, 0, 715, 712, 1, 0, 0, 0, 715, 713, 1, 0, 0, 0, 715, 714, 1, 0, 0, 0, 716, 717, 1, 0, 0, 0, 717, 768, 3, 76, 38, 16, 718, 719, 10, 13, 0, 0, 719, 720, 5, 226, 0, 0, 720, 768, 3, 76, 38, 14, 721, 722, 10, 11, 0, 0, 722, 723, 5, 6, 0, 0, 723, 768, 3, 76, 38, 12, 724, 725, 10, 10, 0, 0, 725, 726, 5, 121, 0, 0, 726, 768, 3, 76, 38, 11, 727, 729, 10, 9, 0, 0, 728, 730, 5, 115, 0, 0, 729, 728, 1, 0, 0, 0, 729, 730, 1, 0, 0, 0, 730, 731, 1, 0, 0, 0, 731, 732, 5, 16, 0, 0, 732, 733, 3, 76, 38, 0, 733, 734, 5, 6, 0, 0, 734, 735, 3, 76, 38, 10, 735, 768, 1, 0, 0, 0, 736, 737, 10, 8, 0, 0, 737, 738, 5, 229, 0, 0, 738, 739, 3, 76, 38, 0, 739, 740, 5, 205, 0, 0, 740, 741, 3, 76, 38, 8, 741, 768, 1, 0, 0, 0, 742, 743, 10, 21, 0, 0, 743, 744, 5, 219, 0, 0, 744, 745, 3, 76, 38, 0, 745, 746, 5, 235, 0, 0, 746, 768, 1, 0, 0, 0, 747, 748, 10, 20, 0, 0, 748, 749, 5, 210, 0, 0, 749, 768, 5, 198, 0, 0, 750, 751, 10, 19, 0, 0, 751, 752, 5, 210, 0, 0, 752, 768, 3, 120, 60, 0, 753, 754, 10, 14, 0, 0, 754, 756, 5, 88, 0, 0, 755, 757, 5, 115, 0, 0, 756, 755, 1, 0, 0, 0, 756, 757, 1, 0, 0, 0, 757, 758, 1, 0, 0, 0, 758, 768, 5, 116, 0, 0, 759, 765, 10, 7, 0, 0, 760, 766, 3, 118, 59, 0, 761, 762, 5, 10, 0, 0, 762, 766, 3, 120, 60, 0, 763, 764, 5, 10, 0, 0, 764, 766, 5, 200, 0, 0, 765, 760, 1, 0, 0, 0, 765, 761, 1, 0, 0, 0, 765, 763, 1, 0, 0, 0, 766, 768, 1, 0, 0, 0, 767, 676, 1, 0, 0, 0, 767, 683, 1, 0, 0, 0, 767, 690, 1, 0, 0, 0, 767, 718, 1, 0, 0, 0, 767, 721, 1, 0, 0, 0, 767, 724, 1, 0, 0, 0, 767, 727, 1, 0, 0, 0, 767, 736, 1, 0, 0, 0, 767, 742, 1, 0, 0, 0, 767, 747, 1, 0, 0, 0, 767, 750, 1, 0, 0, 0, 767, 753, 1, 0, 0, 0, 767, 759, 1, 0, 0, 0, 768, 771, 1, 0, 0, 0, 769, 767, 1, 0, 0, 0, 769, 770, 1, 0, 0, 0, 770, 77, 1, 0, 0, 0, 771, 769, 1, 0, 0, 0, 772, 777, 3, 80, 40, 0, 773, 774, 5, 206, 0, 0, 774, 776, 3, 80, 40, 0, 775, 773, 1, 0, 0, 0, 776, 779, 1, 0, 0, 0, 777, 775, 1, 0, 0, 0, 777, 778, 1, 0, 0, 0, 778, 79, 1, 0, 0, 0, 779, 777, 1, 0, 0, 0, 780, 783, 3, 82, 41, 0, 781, 783, 3, 76, 38, 0, 782, 780, 1, 0, 0, 0, 782, 781, 1, 0, 0, 0, 783, 81, 1, 0, 0, 0, 784, 785, 5, 220, 0, 0, 785, 790, 3, 120, 60, 0, 786, 787, 5, 206, 0, 0, 787, 789, 3, 120, 60, 0, 788, 786, 1, 0, 0, 0, 789, 792, 1, 0, 0, 0, 790, 788, 1, 0, 0, 0, 790, 791, 1, 0, 0, 0, 791, 793, 1, 0, 0, 0, 792, 790, 1, 0, 0, 0, 793, 794, 5, 236, 0, 0, 794, 804, 1, 0, 0, 0, 795, 800, 3, 120, 60, 0, 796, 797, 5, 206, 0, 0, 797, 799, 3, 120, 60, 0, 798, 796, 1, 0, 0, 0, 799, 802, 1, 0, 0, 0, 800, 798, 1, 0, 0, 0, 800, 801, 1, 0, 0, 0, 801, 804, 1, 0, 0, 0, 802, 800, 1, 0, 0, 0, 803, 784, 1, 0, 0, 0, 803, 795, 1, 0, 0, 0, 804, 805, 1, 0, 0, 0, 805, 806, 5, 201, 0, 0, 806, 807, 3, 76, 38, 0, 807, 83, 1, 0, 0, 0, 808, 809, 5, 222, 0, 0, 809, 813, 3, 120, 60, 0, 810, 812, 3, 86, 43, 0, 811, 810, 1, 0, 0, 0, 812, 815, 1, 0, 0, 0, 813, 811, 1, 0, 0, 0, 813, 814, 1, 0, 0, 0, 814, 816, 1, 0, 0, 0, 815, 813, 1, 0, 0, 0, 816, 817, 5, 238, 0, 0, 817, 818, 5, 214, 0, 0, 818, 837, 1, 0, 0, 0, 819, 820, 5, 222, 0, 0, 820, 824, 3, 120, 60, 0, 821, 823, 3, 86, 43, 0, 822, 821, 1, 0, 0, 0, 823, 826, 1, 0, 0, 0, 824, 822, 1, 0, 0, 0, 824, 825, 1, 0, 0, 0, 825, 827, 1, 0, 0, 0, 826, 824, 1, 0, 0, 0, 827, 829, 5, 214, 0, 0, 828, 830, 3, 84, 42, 0, 829, 828, 1, 0, 0, 0, 829, 830, 1, 0, 0, 0, 830, 831, 1, 0, 0, 0, 831, 832, 5, 222, 0, 0, 832, 833, 5, 238, 0, 0, 833, 834, 3, 120, 60, 0, 834, 835, 5, 214, 0, 0, 835, 837, 1, 0, 0, 0, 836, 808, 1, 0, 0, 0, 836, 819, 1, 0, 0, 0, 837, 85, 1, 0, 0, 0, 838, 839, 3, 120, 60, 0, 839, 840, 5, 212, 0, 0, 840, 841, 5, 200, 0, 0, 841, 850, 1, 0, 0, 0, 842, 843, 3, 120, 60, 0, 843, 844, 5, 212, 0, 0, 844, 845, 5, 218, 0, 0, 845, 846, 3, 76, 38, 0, 846, 847, 5, 234, 0, 0, 847, 850, 1, 0, 0, 0, 848, 850, 3, 120, 60, 0, 849, 838, 1, 0, 0, 0, 849, 842, 1, 0, 0, 0, 849, 848, 1, 0, 0, 0, 850, 87, 1, 0, 0, 0, 851, 856, 3, 90, 45, 0, 852, 853, 5, 206, 0, 0, 853, 855, 3, 90, 45, 0, 854, 852, 1, 0, 0, 0, 855, 858, 1, 0, 0, 0, 856, 854, 1, 0, 0, 0, 856, 857, 1, 0, 0, 0, 857, 89, 1, 0, 0, 0, 858, 856, 1, 0, 0, 0, 859, 860, 3, 120, 60, 0, 860, 861, 5, 10, 0, 0, 861, 862, 5, 220, 0, 0, 862, 863, 3, 2, 1, 0, 863, 864, 5, 236, 0, 0, 864, 870, 1, 0, 0, 0, 865, 866, 3, 76, 38, 0, 866, 867, 5, 10, 0, 0, 867, 868, 3, 120, 60, 0, 868, 870, 1, 0, 0, 0, 869, 859, 1, 0, 0, 0, 869, 865, 1, 0, 0, 0, 870, 91, 1, 0, 0, 0, 871, 879, 3, 124, 62, 0, 872, 873, 3, 100, 50, 0, 873, 874, 5, 210, 0, 0, 874, 876, 1, 0, 0, 0, 875, 872, 1, 0, 0, 0, 875, 876, 1, 0, 0, 0, 876, 877, 1, 0, 0, 0, 877, 879, 3, 94, 47, 0, 878, 871, 1, 0, 0, 0, 878, 875, 1, 0, 0, 0, 879, 93, 1, 0, 0, 0, 880, 885, 3, 120, 60, 0, 881, 882, 5, 210, 0, 0, 882, 884, 3, 120, 60, 0, 883, 881, 1, 0, 0, 0, 884, 887, 1, 0, 0, 0, 885, 883, 1, 0, 0, 0, 885, 886, 1, 0, 0, 0, 886, 95, 1, 0, 0, 0, 887, 885, 1, 0, 0, 0, 888, 889, 6, 48, -1, 0, 889, 898, 3, 100, 50, 0, 890, 898, 3, 98, 49, 0, 891, 892, 5, 220, 0, 0, 892, 893, 3, 2, 1, 0, 893, 894, 5, 236, 0, 0, 894, 898, 1, 0, 0, 0, 895, 898, 3, 84, 42, 0, 896, 898, 3, 124, 62, 0, 897, 888, 1, 0, 0, 0, 897, 890, 1, 0, 0, 0, 897, 891, 1, 0, 0, 0, 897, 895, 1, 0, 0, 0, 897, 896, 1, 0, 0, 0, 898, 907, 1, 0, 0, 0, 899, 903, 10, 3, 0, 0, 900, 904, 3, 118, 59, 0, 901, 902, 5, 10, 0, 0, 902, 904, 3, 120, 60, 0, 903, 900, 1, 0, 0, 0, 903, 901, 1, 0, 0, 0, 904, 906, 1, 0, 0, 0, 905, 899, 1, 0, 0, 0, 906, 909, 1, 0, 0, 0, 907, 905, 1, 0, 0, 0, 907, 908, 1, 0, 0, 0, 908, 97, 1, 0, 0, 0, 909, 907, 1, 0, 0, 0, 910, 911, 3, 120, 60, 0, 911, 913, 5, 220, 0, 0, 912, 914, 3, 102, 51, 0, 913, 912, 1, 0, 0, 0, 913, 914, 1, 0, 0, 0, 914, 915, 1, 0, 0, 0, 915, 916, 5, 236, 0, 0, 916, 99, 1, 0, 0, 0, 917, 918, 3, 104, 52, 0, 918, 919, 5, 210, 0, 0, 919, 921, 1, 0, 0, 0, 920, 917, 1, 0, 0, 0, 920, 921, 1, 0, 0, 0, 921, 922, 1, 0, 0, 0, 922, 923, 3, 120, 60, 0, 923, 101, 1, 0, 0, 0, 924, 929, 3, 76, 38, 0, 925, 926, 5, 206, 0, 0, 926, 928, 3, 76, 38, 0, 927, 925, 1, 0, 0, 0, 928, 931, 1, 0, 0, 0, 929, 927, 1, 0, 0, 0, 929, 930, 1, 0, 0, 0, 930, 103, 1, 0, 0, 0, 931, 929, 1, 0, 0, 0, 932, 933, 3, 120, 60, 0, 933, 105, 1, 0, 0, 0, 934, 943, 5, 196, 0, 0, 935, 936, 5, 210, 0, 0, 936, 943, 7, 11, 0, 0, 937, 938, 5, 198, 0, 0, 938, 940, 5, 210, 0, 0, 939, 941, 7, 11, 0, 0, 940, 939, 1, 0, 0, 0, 940, 941, 1, 0, 0, 0, 941, 943, 1, 0, 0, 0, 942, 934, 1, 0, 0, 0, 942, 935, 1, 0, 0, 0, 942, 937, 1, 0, 0, 0, 943, 107, 1, 0, 0, 0, 944, 946, 7, 12, 0, 0, 945, 944, 1, 0, 0, 0, 945, 946, 1, 0, 0, 0, 946, 953, 1, 0, 0, 0, 947, 954, 3, 106, 53, 0, 948, 954, 5, 197, 0, 0, 949, 954, 5, 198, 0, 0, 950, 954, 5, 199, 0, 0, 951, 954, 5, 82, 0, 0, 952, 954, 5, 113, 0, 0, 953, 947, 1, 0, 0, 0, 953, 948, 1, 0, 0, 0, 953, 949, 1, 0, 0, 0, 953, 950, 1, 0, 0, 0, 953, 951, 1, 0, 0, 0, 953, 952, 1, 0, 0, 0, 954, 109, 1, 0, 0, 0, 955, 959, 3, 108, 54, 0, 956, 959, 5, 200, 0, 0, 957, 959, 5, 116, 0, 0, 958, 955, 1, 0, 0, 0, 958, 956, 1, 0, 0, 0, 958, 957, 1, 0, 0, 0, 959, 111, 1, 0, 0, 0, 960, 961, 7, 13, 0, 0, 961, 113, 1, 0, 0, 0, 962, 963, 7, 14, 0, 0, 963, 115, 1, 0, 0, 0, 964, 965, 7, 15, 0, 0, 965, 117, 1, 0, 0, 0, 966, 969, 5, 195, 0, 0, 967, 969, 3, 116, 58, 0, 968, 966, 1, 0, 0, 0, 968, 967, 1, 0, 0, 0, 969, 119, 1, 0, 0, 0, 970, 974, 5, 195, 0, 0, 971, 974, 3, 112, 56, 0, 972, 974, 3, 114, 57, 0, 973, 970, 1, 0, 0, 0, 973, 971, 1, 0, 0, 0, 973, 972, 1, 0, 0, 0, 974, 121, 1, 0, 0, 0, 975, 976, 5, 200, 0, 0, 976, 977, 5, 212, 0, 0, 977, 978, 3, 108, 54, 0, 978, 123, 1, 0, 0, 0, 979, 980, 5, 218, 0, 0, 980, 981, 3, 120, 60, 0, 981, 982, 5, 234, 0, 0, 982, 125, 1, 0, 0, 0, 121, 129, 139, 147, 151, 154, 158, 161, 165, 168, 171, 174, 177, 181, 185, 188, 191, 194, 198, 201, 210, 216, 237, 254, 271, 277, 283, 294, 296, 307, 310, 316, 324, 330, 332, 336, 341, 344, 347, 351, 355, 358, 360, 363, 367, 371, 374, 376, 378, 383, 394, 400, 407, 412, 416, 420, 426, 428, 435, 443, 446, 449, 468, 482, 498, 510, 522, 530, 534, 541, 547, 556, 560, 591, 608, 620, 630, 633, 637, 640, 653, 670, 674, 680, 687, 699, 703, 706, 715, 729, 756, 765, 767, 769, 777, 782, 790, 800, 803, 813, 824, 829, 836, 849, 856, 869, 875, 878, 885, 897, 903, 907, 913, 920, 929, 940, 942, 945, 953, 958, 968, 973] \ No newline at end of file diff --git a/posthog/hogql/grammar/HogQLParser.py b/posthog/hogql/grammar/HogQLParser.py index 1db906d39300b..bda51142b9e78 100644 --- a/posthog/hogql/grammar/HogQLParser.py +++ b/posthog/hogql/grammar/HogQLParser.py @@ -10,7 +10,7 @@ def serializedATN(): return [ - 4,1,242,978,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,242,984,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, @@ -19,382 +19,384 @@ def serializedATN(): 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,1,0,1,0,1,0,3,0,128,8,0,1,0,1,0,1,1, - 1,1,1,1,1,1,5,1,136,8,1,10,1,12,1,139,9,1,1,2,1,2,1,2,1,2,1,2,3, - 2,146,8,2,1,3,3,3,149,8,3,1,3,1,3,3,3,153,8,3,1,3,3,3,156,8,3,1, - 3,1,3,3,3,160,8,3,1,3,3,3,163,8,3,1,3,3,3,166,8,3,1,3,3,3,169,8, - 3,1,3,3,3,172,8,3,1,3,1,3,3,3,176,8,3,1,3,1,3,3,3,180,8,3,1,3,3, - 3,183,8,3,1,3,3,3,186,8,3,1,3,3,3,189,8,3,1,3,1,3,3,3,193,8,3,1, - 3,3,3,196,8,3,1,4,1,4,1,4,1,5,1,5,1,5,1,5,3,5,205,8,5,1,6,1,6,1, - 6,1,7,3,7,211,8,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,8,1,8,1,8,1,8,5,8,230,8,8,10,8,12,8,233,9,8,1,9,1,9,1,9, - 1,10,1,10,1,10,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,3,11,249, - 8,11,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,15, - 1,15,1,15,1,15,3,15,266,8,15,1,15,1,15,1,15,1,15,3,15,272,8,15,1, - 15,1,15,1,15,1,15,3,15,278,8,15,1,15,1,15,1,15,1,15,1,15,1,15,1, - 15,1,15,1,15,3,15,289,8,15,3,15,291,8,15,1,16,1,16,1,16,1,17,1,17, - 1,17,1,18,1,18,1,18,3,18,302,8,18,1,18,3,18,305,8,18,1,18,1,18,1, - 18,1,18,3,18,311,8,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,319,8,18, - 1,18,1,18,1,18,1,18,5,18,325,8,18,10,18,12,18,328,9,18,1,19,3,19, - 331,8,19,1,19,1,19,1,19,3,19,336,8,19,1,19,3,19,339,8,19,1,19,3, - 19,342,8,19,1,19,1,19,3,19,346,8,19,1,19,1,19,3,19,350,8,19,1,19, - 3,19,353,8,19,3,19,355,8,19,1,19,3,19,358,8,19,1,19,1,19,3,19,362, - 8,19,1,19,1,19,3,19,366,8,19,1,19,3,19,369,8,19,3,19,371,8,19,3, - 19,373,8,19,1,20,1,20,1,20,3,20,378,8,20,1,21,1,21,1,21,1,21,1,21, - 1,21,1,21,1,21,1,21,3,21,389,8,21,1,22,1,22,1,22,1,22,3,22,395,8, - 22,1,23,1,23,1,23,5,23,400,8,23,10,23,12,23,403,9,23,1,24,1,24,3, - 24,407,8,24,1,24,1,24,3,24,411,8,24,1,24,1,24,3,24,415,8,24,1,25, - 1,25,1,25,1,25,3,25,421,8,25,3,25,423,8,25,1,26,1,26,1,26,5,26,428, - 8,26,10,26,12,26,431,9,26,1,27,1,27,1,27,1,27,1,28,3,28,438,8,28, - 1,28,3,28,441,8,28,1,28,3,28,444,8,28,1,29,1,29,1,29,1,29,1,30,1, - 30,1,30,1,30,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,3,32,463, - 8,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, - 3,33,477,8,33,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35, - 1,35,1,35,5,35,491,8,35,10,35,12,35,494,9,35,1,35,1,35,1,35,1,35, - 1,35,1,35,1,35,5,35,503,8,35,10,35,12,35,506,9,35,1,35,1,35,1,35, - 1,35,1,35,1,35,1,35,5,35,515,8,35,10,35,12,35,518,9,35,1,35,1,35, - 1,35,1,35,1,35,3,35,525,8,35,1,35,1,35,3,35,529,8,35,1,36,1,36,1, - 36,5,36,534,8,36,10,36,12,36,537,9,36,1,37,1,37,1,37,3,37,542,8, - 37,1,37,1,37,1,37,1,37,1,37,4,37,549,8,37,11,37,12,37,550,1,37,1, - 37,3,37,555,8,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,1,37,1,37,1,37,1,37,3,37,586,8,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,603, - 8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,3,37,615, - 8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,3,37,625,8,37,1,37, - 3,37,628,8,37,1,37,1,37,3,37,632,8,37,1,37,3,37,635,8,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,648,8,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,665,8,37,1,37,1,37,3,37,669,8,37,1,37,1,37,1,37,1,37, - 3,37,675,8,37,1,37,1,37,1,37,1,37,1,37,3,37,682,8,37,1,37,1,37,1, - 37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,3,37,694,8,37,1,37,1,37,3, - 37,698,8,37,1,37,3,37,701,8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37, - 3,37,710,8,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,724,8,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,751,8,37,1,37,1,37,1,37,1,37,1,37,1,37, - 1,37,3,37,760,8,37,5,37,762,8,37,10,37,12,37,765,9,37,1,38,1,38, - 1,38,5,38,770,8,38,10,38,12,38,773,9,38,1,39,1,39,3,39,777,8,39, - 1,40,1,40,1,40,1,40,5,40,783,8,40,10,40,12,40,786,9,40,1,40,1,40, - 1,40,1,40,1,40,5,40,793,8,40,10,40,12,40,796,9,40,3,40,798,8,40, - 1,40,1,40,1,40,1,41,1,41,1,41,5,41,806,8,41,10,41,12,41,809,9,41, - 1,41,1,41,1,41,1,41,1,41,1,41,5,41,817,8,41,10,41,12,41,820,9,41, - 1,41,1,41,3,41,824,8,41,1,41,1,41,1,41,1,41,1,41,3,41,831,8,41,1, - 42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,3,42,844,8, - 42,1,43,1,43,1,43,5,43,849,8,43,10,43,12,43,852,9,43,1,44,1,44,1, - 44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,864,8,44,1,45,1,45,1, - 45,1,45,3,45,870,8,45,1,45,3,45,873,8,45,1,46,1,46,1,46,5,46,878, - 8,46,10,46,12,46,881,9,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47, - 1,47,3,47,892,8,47,1,47,1,47,1,47,1,47,3,47,898,8,47,5,47,900,8, - 47,10,47,12,47,903,9,47,1,48,1,48,1,48,3,48,908,8,48,1,48,1,48,1, - 49,1,49,1,49,3,49,915,8,49,1,49,1,49,1,50,1,50,1,50,5,50,922,8,50, - 10,50,12,50,925,9,50,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1,52,3,52, - 935,8,52,3,52,937,8,52,1,53,3,53,940,8,53,1,53,1,53,1,53,1,53,1, - 53,1,53,3,53,948,8,53,1,54,1,54,1,54,3,54,953,8,54,1,55,1,55,1,56, - 1,56,1,57,1,57,1,58,1,58,3,58,963,8,58,1,59,1,59,1,59,3,59,968,8, - 59,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,0,3,36,74,94,62, - 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,0, - 16,2,0,32,32,141,141,2,0,84,84,96,96,3,0,4,4,8,8,12,12,4,0,4,4,7, - 8,12,12,147,147,2,0,96,96,140,140,2,0,4,4,8,8,2,0,11,11,42,43,2, - 0,62,62,93,93,2,0,133,133,143,143,3,0,17,17,95,95,170,170,2,0,79, - 79,98,98,1,0,197,198,2,0,208,208,228,228,8,0,37,37,76,76,108,108, - 110,110,132,132,145,145,185,185,190,190,13,0,2,24,26,36,38,75,77, - 81,83,107,109,109,111,112,114,115,117,130,133,144,146,184,186,189, - 191,192,4,0,36,36,62,62,77,77,91,91,1105,0,127,1,0,0,0,2,131,1,0, - 0,0,4,145,1,0,0,0,6,148,1,0,0,0,8,197,1,0,0,0,10,200,1,0,0,0,12, - 206,1,0,0,0,14,210,1,0,0,0,16,216,1,0,0,0,18,234,1,0,0,0,20,237, - 1,0,0,0,22,240,1,0,0,0,24,250,1,0,0,0,26,253,1,0,0,0,28,257,1,0, - 0,0,30,290,1,0,0,0,32,292,1,0,0,0,34,295,1,0,0,0,36,310,1,0,0,0, - 38,372,1,0,0,0,40,377,1,0,0,0,42,388,1,0,0,0,44,390,1,0,0,0,46,396, - 1,0,0,0,48,404,1,0,0,0,50,422,1,0,0,0,52,424,1,0,0,0,54,432,1,0, - 0,0,56,437,1,0,0,0,58,445,1,0,0,0,60,449,1,0,0,0,62,453,1,0,0,0, - 64,462,1,0,0,0,66,476,1,0,0,0,68,478,1,0,0,0,70,528,1,0,0,0,72,530, - 1,0,0,0,74,668,1,0,0,0,76,766,1,0,0,0,78,776,1,0,0,0,80,797,1,0, - 0,0,82,830,1,0,0,0,84,843,1,0,0,0,86,845,1,0,0,0,88,863,1,0,0,0, - 90,872,1,0,0,0,92,874,1,0,0,0,94,891,1,0,0,0,96,904,1,0,0,0,98,914, - 1,0,0,0,100,918,1,0,0,0,102,926,1,0,0,0,104,936,1,0,0,0,106,939, - 1,0,0,0,108,952,1,0,0,0,110,954,1,0,0,0,112,956,1,0,0,0,114,958, - 1,0,0,0,116,962,1,0,0,0,118,967,1,0,0,0,120,969,1,0,0,0,122,973, - 1,0,0,0,124,128,3,2,1,0,125,128,3,6,3,0,126,128,3,82,41,0,127,124, - 1,0,0,0,127,125,1,0,0,0,127,126,1,0,0,0,128,129,1,0,0,0,129,130, - 5,0,0,1,130,1,1,0,0,0,131,137,3,4,2,0,132,133,5,176,0,0,133,134, - 5,4,0,0,134,136,3,4,2,0,135,132,1,0,0,0,136,139,1,0,0,0,137,135, - 1,0,0,0,137,138,1,0,0,0,138,3,1,0,0,0,139,137,1,0,0,0,140,146,3, - 6,3,0,141,142,5,220,0,0,142,143,3,2,1,0,143,144,5,236,0,0,144,146, - 1,0,0,0,145,140,1,0,0,0,145,141,1,0,0,0,146,5,1,0,0,0,147,149,3, - 8,4,0,148,147,1,0,0,0,148,149,1,0,0,0,149,150,1,0,0,0,150,152,5, - 146,0,0,151,153,5,49,0,0,152,151,1,0,0,0,152,153,1,0,0,0,153,155, - 1,0,0,0,154,156,3,10,5,0,155,154,1,0,0,0,155,156,1,0,0,0,156,157, - 1,0,0,0,157,159,3,72,36,0,158,160,3,12,6,0,159,158,1,0,0,0,159,160, - 1,0,0,0,160,162,1,0,0,0,161,163,3,14,7,0,162,161,1,0,0,0,162,163, - 1,0,0,0,163,165,1,0,0,0,164,166,3,18,9,0,165,164,1,0,0,0,165,166, - 1,0,0,0,166,168,1,0,0,0,167,169,3,20,10,0,168,167,1,0,0,0,168,169, - 1,0,0,0,169,171,1,0,0,0,170,172,3,22,11,0,171,170,1,0,0,0,171,172, - 1,0,0,0,172,175,1,0,0,0,173,174,5,189,0,0,174,176,7,0,0,0,175,173, - 1,0,0,0,175,176,1,0,0,0,176,179,1,0,0,0,177,178,5,189,0,0,178,180, - 5,169,0,0,179,177,1,0,0,0,179,180,1,0,0,0,180,182,1,0,0,0,181,183, - 3,24,12,0,182,181,1,0,0,0,182,183,1,0,0,0,183,185,1,0,0,0,184,186, - 3,16,8,0,185,184,1,0,0,0,185,186,1,0,0,0,186,188,1,0,0,0,187,189, - 3,26,13,0,188,187,1,0,0,0,188,189,1,0,0,0,189,192,1,0,0,0,190,193, - 3,30,15,0,191,193,3,32,16,0,192,190,1,0,0,0,192,191,1,0,0,0,192, - 193,1,0,0,0,193,195,1,0,0,0,194,196,3,34,17,0,195,194,1,0,0,0,195, - 196,1,0,0,0,196,7,1,0,0,0,197,198,5,189,0,0,198,199,3,86,43,0,199, - 9,1,0,0,0,200,201,5,168,0,0,201,204,5,198,0,0,202,203,5,189,0,0, - 203,205,5,164,0,0,204,202,1,0,0,0,204,205,1,0,0,0,205,11,1,0,0,0, - 206,207,5,68,0,0,207,208,3,36,18,0,208,13,1,0,0,0,209,211,7,1,0, - 0,210,209,1,0,0,0,210,211,1,0,0,0,211,212,1,0,0,0,212,213,5,9,0, - 0,213,214,5,90,0,0,214,215,3,72,36,0,215,15,1,0,0,0,216,217,5,188, - 0,0,217,218,3,118,59,0,218,219,5,10,0,0,219,220,5,220,0,0,220,221, - 3,56,28,0,221,231,5,236,0,0,222,223,5,206,0,0,223,224,3,118,59,0, - 224,225,5,10,0,0,225,226,5,220,0,0,226,227,3,56,28,0,227,228,5,236, - 0,0,228,230,1,0,0,0,229,222,1,0,0,0,230,233,1,0,0,0,231,229,1,0, - 0,0,231,232,1,0,0,0,232,17,1,0,0,0,233,231,1,0,0,0,234,235,5,129, - 0,0,235,236,3,74,37,0,236,19,1,0,0,0,237,238,5,187,0,0,238,239,3, - 74,37,0,239,21,1,0,0,0,240,241,5,73,0,0,241,248,5,18,0,0,242,243, - 7,0,0,0,243,244,5,220,0,0,244,245,3,72,36,0,245,246,5,236,0,0,246, - 249,1,0,0,0,247,249,3,72,36,0,248,242,1,0,0,0,248,247,1,0,0,0,249, - 23,1,0,0,0,250,251,5,74,0,0,251,252,3,74,37,0,252,25,1,0,0,0,253, - 254,5,122,0,0,254,255,5,18,0,0,255,256,3,46,23,0,256,27,1,0,0,0, - 257,258,5,122,0,0,258,259,5,18,0,0,259,260,3,72,36,0,260,29,1,0, - 0,0,261,262,5,99,0,0,262,265,3,74,37,0,263,264,5,206,0,0,264,266, - 3,74,37,0,265,263,1,0,0,0,265,266,1,0,0,0,266,271,1,0,0,0,267,268, - 5,189,0,0,268,272,5,164,0,0,269,270,5,18,0,0,270,272,3,72,36,0,271, - 267,1,0,0,0,271,269,1,0,0,0,271,272,1,0,0,0,272,291,1,0,0,0,273, - 274,5,99,0,0,274,277,3,74,37,0,275,276,5,189,0,0,276,278,5,164,0, - 0,277,275,1,0,0,0,277,278,1,0,0,0,278,279,1,0,0,0,279,280,5,118, - 0,0,280,281,3,74,37,0,281,291,1,0,0,0,282,283,5,99,0,0,283,284,3, - 74,37,0,284,285,5,118,0,0,285,288,3,74,37,0,286,287,5,18,0,0,287, - 289,3,72,36,0,288,286,1,0,0,0,288,289,1,0,0,0,289,291,1,0,0,0,290, - 261,1,0,0,0,290,273,1,0,0,0,290,282,1,0,0,0,291,31,1,0,0,0,292,293, - 5,118,0,0,293,294,3,74,37,0,294,33,1,0,0,0,295,296,5,150,0,0,296, - 297,3,52,26,0,297,35,1,0,0,0,298,299,6,18,-1,0,299,301,3,94,47,0, - 300,302,5,61,0,0,301,300,1,0,0,0,301,302,1,0,0,0,302,304,1,0,0,0, - 303,305,3,44,22,0,304,303,1,0,0,0,304,305,1,0,0,0,305,311,1,0,0, - 0,306,307,5,220,0,0,307,308,3,36,18,0,308,309,5,236,0,0,309,311, - 1,0,0,0,310,298,1,0,0,0,310,306,1,0,0,0,311,326,1,0,0,0,312,313, - 10,3,0,0,313,314,3,40,20,0,314,315,3,36,18,4,315,325,1,0,0,0,316, - 318,10,4,0,0,317,319,3,38,19,0,318,317,1,0,0,0,318,319,1,0,0,0,319, - 320,1,0,0,0,320,321,5,90,0,0,321,322,3,36,18,0,322,323,3,42,21,0, - 323,325,1,0,0,0,324,312,1,0,0,0,324,316,1,0,0,0,325,328,1,0,0,0, - 326,324,1,0,0,0,326,327,1,0,0,0,327,37,1,0,0,0,328,326,1,0,0,0,329, - 331,7,2,0,0,330,329,1,0,0,0,330,331,1,0,0,0,331,332,1,0,0,0,332, - 339,5,84,0,0,333,335,5,84,0,0,334,336,7,2,0,0,335,334,1,0,0,0,335, - 336,1,0,0,0,336,339,1,0,0,0,337,339,7,2,0,0,338,330,1,0,0,0,338, - 333,1,0,0,0,338,337,1,0,0,0,339,373,1,0,0,0,340,342,7,3,0,0,341, - 340,1,0,0,0,341,342,1,0,0,0,342,343,1,0,0,0,343,345,7,4,0,0,344, - 346,5,123,0,0,345,344,1,0,0,0,345,346,1,0,0,0,346,355,1,0,0,0,347, - 349,7,4,0,0,348,350,5,123,0,0,349,348,1,0,0,0,349,350,1,0,0,0,350, - 352,1,0,0,0,351,353,7,3,0,0,352,351,1,0,0,0,352,353,1,0,0,0,353, - 355,1,0,0,0,354,341,1,0,0,0,354,347,1,0,0,0,355,373,1,0,0,0,356, - 358,7,5,0,0,357,356,1,0,0,0,357,358,1,0,0,0,358,359,1,0,0,0,359, - 361,5,69,0,0,360,362,5,123,0,0,361,360,1,0,0,0,361,362,1,0,0,0,362, - 371,1,0,0,0,363,365,5,69,0,0,364,366,5,123,0,0,365,364,1,0,0,0,365, - 366,1,0,0,0,366,368,1,0,0,0,367,369,7,5,0,0,368,367,1,0,0,0,368, - 369,1,0,0,0,369,371,1,0,0,0,370,357,1,0,0,0,370,363,1,0,0,0,371, - 373,1,0,0,0,372,338,1,0,0,0,372,354,1,0,0,0,372,370,1,0,0,0,373, - 39,1,0,0,0,374,375,5,31,0,0,375,378,5,90,0,0,376,378,5,206,0,0,377, - 374,1,0,0,0,377,376,1,0,0,0,378,41,1,0,0,0,379,380,5,119,0,0,380, - 389,3,72,36,0,381,382,5,179,0,0,382,383,5,220,0,0,383,384,3,72,36, - 0,384,385,5,236,0,0,385,389,1,0,0,0,386,387,5,179,0,0,387,389,3, - 72,36,0,388,379,1,0,0,0,388,381,1,0,0,0,388,386,1,0,0,0,389,43,1, - 0,0,0,390,391,5,144,0,0,391,394,3,50,25,0,392,393,5,118,0,0,393, - 395,3,50,25,0,394,392,1,0,0,0,394,395,1,0,0,0,395,45,1,0,0,0,396, - 401,3,48,24,0,397,398,5,206,0,0,398,400,3,48,24,0,399,397,1,0,0, - 0,400,403,1,0,0,0,401,399,1,0,0,0,401,402,1,0,0,0,402,47,1,0,0,0, - 403,401,1,0,0,0,404,406,3,74,37,0,405,407,7,6,0,0,406,405,1,0,0, - 0,406,407,1,0,0,0,407,410,1,0,0,0,408,409,5,117,0,0,409,411,7,7, - 0,0,410,408,1,0,0,0,410,411,1,0,0,0,411,414,1,0,0,0,412,413,5,26, - 0,0,413,415,5,200,0,0,414,412,1,0,0,0,414,415,1,0,0,0,415,49,1,0, - 0,0,416,423,3,122,61,0,417,420,3,106,53,0,418,419,5,238,0,0,419, - 421,3,106,53,0,420,418,1,0,0,0,420,421,1,0,0,0,421,423,1,0,0,0,422, - 416,1,0,0,0,422,417,1,0,0,0,423,51,1,0,0,0,424,429,3,54,27,0,425, - 426,5,206,0,0,426,428,3,54,27,0,427,425,1,0,0,0,428,431,1,0,0,0, - 429,427,1,0,0,0,429,430,1,0,0,0,430,53,1,0,0,0,431,429,1,0,0,0,432, - 433,3,118,59,0,433,434,5,212,0,0,434,435,3,108,54,0,435,55,1,0,0, - 0,436,438,3,58,29,0,437,436,1,0,0,0,437,438,1,0,0,0,438,440,1,0, - 0,0,439,441,3,60,30,0,440,439,1,0,0,0,440,441,1,0,0,0,441,443,1, - 0,0,0,442,444,3,62,31,0,443,442,1,0,0,0,443,444,1,0,0,0,444,57,1, - 0,0,0,445,446,5,126,0,0,446,447,5,18,0,0,447,448,3,72,36,0,448,59, - 1,0,0,0,449,450,5,122,0,0,450,451,5,18,0,0,451,452,3,46,23,0,452, - 61,1,0,0,0,453,454,7,8,0,0,454,455,3,64,32,0,455,63,1,0,0,0,456, - 463,3,66,33,0,457,458,5,16,0,0,458,459,3,66,33,0,459,460,5,6,0,0, - 460,461,3,66,33,0,461,463,1,0,0,0,462,456,1,0,0,0,462,457,1,0,0, - 0,463,65,1,0,0,0,464,465,5,33,0,0,465,477,5,142,0,0,466,467,5,175, - 0,0,467,477,5,128,0,0,468,469,5,175,0,0,469,477,5,64,0,0,470,471, - 3,106,53,0,471,472,5,128,0,0,472,477,1,0,0,0,473,474,3,106,53,0, - 474,475,5,64,0,0,475,477,1,0,0,0,476,464,1,0,0,0,476,466,1,0,0,0, - 476,468,1,0,0,0,476,470,1,0,0,0,476,473,1,0,0,0,477,67,1,0,0,0,478, - 479,3,74,37,0,479,480,5,0,0,1,480,69,1,0,0,0,481,529,3,118,59,0, - 482,483,3,118,59,0,483,484,5,220,0,0,484,485,3,118,59,0,485,492, - 3,70,35,0,486,487,5,206,0,0,487,488,3,118,59,0,488,489,3,70,35,0, - 489,491,1,0,0,0,490,486,1,0,0,0,491,494,1,0,0,0,492,490,1,0,0,0, - 492,493,1,0,0,0,493,495,1,0,0,0,494,492,1,0,0,0,495,496,5,236,0, - 0,496,529,1,0,0,0,497,498,3,118,59,0,498,499,5,220,0,0,499,504,3, - 120,60,0,500,501,5,206,0,0,501,503,3,120,60,0,502,500,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,236,0,0,508,529,1,0,0,0,509,510,3,118,59,0, - 510,511,5,220,0,0,511,516,3,70,35,0,512,513,5,206,0,0,513,515,3, - 70,35,0,514,512,1,0,0,0,515,518,1,0,0,0,516,514,1,0,0,0,516,517, - 1,0,0,0,517,519,1,0,0,0,518,516,1,0,0,0,519,520,5,236,0,0,520,529, - 1,0,0,0,521,522,3,118,59,0,522,524,5,220,0,0,523,525,3,72,36,0,524, - 523,1,0,0,0,524,525,1,0,0,0,525,526,1,0,0,0,526,527,5,236,0,0,527, - 529,1,0,0,0,528,481,1,0,0,0,528,482,1,0,0,0,528,497,1,0,0,0,528, - 509,1,0,0,0,528,521,1,0,0,0,529,71,1,0,0,0,530,535,3,74,37,0,531, - 532,5,206,0,0,532,534,3,74,37,0,533,531,1,0,0,0,534,537,1,0,0,0, - 535,533,1,0,0,0,535,536,1,0,0,0,536,73,1,0,0,0,537,535,1,0,0,0,538, - 539,6,37,-1,0,539,541,5,19,0,0,540,542,3,74,37,0,541,540,1,0,0,0, - 541,542,1,0,0,0,542,548,1,0,0,0,543,544,5,186,0,0,544,545,3,74,37, - 0,545,546,5,163,0,0,546,547,3,74,37,0,547,549,1,0,0,0,548,543,1, - 0,0,0,549,550,1,0,0,0,550,548,1,0,0,0,550,551,1,0,0,0,551,554,1, - 0,0,0,552,553,5,52,0,0,553,555,3,74,37,0,554,552,1,0,0,0,554,555, - 1,0,0,0,555,556,1,0,0,0,556,557,5,53,0,0,557,669,1,0,0,0,558,559, - 5,20,0,0,559,560,5,220,0,0,560,561,3,74,37,0,561,562,5,10,0,0,562, - 563,3,70,35,0,563,564,5,236,0,0,564,669,1,0,0,0,565,566,5,36,0,0, - 566,669,5,200,0,0,567,568,5,59,0,0,568,569,5,220,0,0,569,570,3,110, - 55,0,570,571,5,68,0,0,571,572,3,74,37,0,572,573,5,236,0,0,573,669, - 1,0,0,0,574,575,5,86,0,0,575,576,3,74,37,0,576,577,3,110,55,0,577, - 669,1,0,0,0,578,579,5,155,0,0,579,580,5,220,0,0,580,581,3,74,37, - 0,581,582,5,68,0,0,582,585,3,74,37,0,583,584,5,65,0,0,584,586,3, - 74,37,0,585,583,1,0,0,0,585,586,1,0,0,0,586,587,1,0,0,0,587,588, - 5,236,0,0,588,669,1,0,0,0,589,590,5,166,0,0,590,669,5,200,0,0,591, - 592,5,171,0,0,592,593,5,220,0,0,593,594,7,9,0,0,594,595,5,200,0, - 0,595,596,5,68,0,0,596,597,3,74,37,0,597,598,5,236,0,0,598,669,1, - 0,0,0,599,600,3,118,59,0,600,602,5,220,0,0,601,603,3,72,36,0,602, - 601,1,0,0,0,602,603,1,0,0,0,603,604,1,0,0,0,604,605,5,236,0,0,605, - 606,1,0,0,0,606,607,5,125,0,0,607,608,5,220,0,0,608,609,3,56,28, - 0,609,610,5,236,0,0,610,669,1,0,0,0,611,612,3,118,59,0,612,614,5, - 220,0,0,613,615,3,72,36,0,614,613,1,0,0,0,614,615,1,0,0,0,615,616, - 1,0,0,0,616,617,5,236,0,0,617,618,1,0,0,0,618,619,5,125,0,0,619, - 620,3,118,59,0,620,669,1,0,0,0,621,627,3,118,59,0,622,624,5,220, - 0,0,623,625,3,72,36,0,624,623,1,0,0,0,624,625,1,0,0,0,625,626,1, - 0,0,0,626,628,5,236,0,0,627,622,1,0,0,0,627,628,1,0,0,0,628,629, - 1,0,0,0,629,631,5,220,0,0,630,632,5,49,0,0,631,630,1,0,0,0,631,632, - 1,0,0,0,632,634,1,0,0,0,633,635,3,76,38,0,634,633,1,0,0,0,634,635, - 1,0,0,0,635,636,1,0,0,0,636,637,5,236,0,0,637,669,1,0,0,0,638,669, - 3,82,41,0,639,669,3,108,54,0,640,641,5,208,0,0,641,669,3,74,37,18, - 642,643,5,115,0,0,643,669,3,74,37,12,644,645,3,98,49,0,645,646,5, - 210,0,0,646,648,1,0,0,0,647,644,1,0,0,0,647,648,1,0,0,0,648,649, - 1,0,0,0,649,669,5,202,0,0,650,651,5,220,0,0,651,652,3,2,1,0,652, - 653,5,236,0,0,653,669,1,0,0,0,654,655,5,220,0,0,655,656,3,74,37, - 0,656,657,5,236,0,0,657,669,1,0,0,0,658,659,5,220,0,0,659,660,3, - 72,36,0,660,661,5,236,0,0,661,669,1,0,0,0,662,664,5,219,0,0,663, - 665,3,72,36,0,664,663,1,0,0,0,664,665,1,0,0,0,665,666,1,0,0,0,666, - 669,5,235,0,0,667,669,3,90,45,0,668,538,1,0,0,0,668,558,1,0,0,0, - 668,565,1,0,0,0,668,567,1,0,0,0,668,574,1,0,0,0,668,578,1,0,0,0, - 668,589,1,0,0,0,668,591,1,0,0,0,668,599,1,0,0,0,668,611,1,0,0,0, - 668,621,1,0,0,0,668,638,1,0,0,0,668,639,1,0,0,0,668,640,1,0,0,0, - 668,642,1,0,0,0,668,647,1,0,0,0,668,650,1,0,0,0,668,654,1,0,0,0, - 668,658,1,0,0,0,668,662,1,0,0,0,668,667,1,0,0,0,669,763,1,0,0,0, - 670,674,10,17,0,0,671,675,5,202,0,0,672,675,5,238,0,0,673,675,5, - 227,0,0,674,671,1,0,0,0,674,672,1,0,0,0,674,673,1,0,0,0,675,676, - 1,0,0,0,676,762,3,74,37,18,677,681,10,16,0,0,678,682,5,228,0,0,679, - 682,5,208,0,0,680,682,5,207,0,0,681,678,1,0,0,0,681,679,1,0,0,0, - 681,680,1,0,0,0,682,683,1,0,0,0,683,762,3,74,37,17,684,709,10,15, - 0,0,685,710,5,211,0,0,686,710,5,212,0,0,687,710,5,223,0,0,688,710, - 5,221,0,0,689,710,5,222,0,0,690,710,5,213,0,0,691,710,5,214,0,0, - 692,694,5,115,0,0,693,692,1,0,0,0,693,694,1,0,0,0,694,695,1,0,0, - 0,695,697,5,80,0,0,696,698,5,25,0,0,697,696,1,0,0,0,697,698,1,0, - 0,0,698,710,1,0,0,0,699,701,5,115,0,0,700,699,1,0,0,0,700,701,1, - 0,0,0,701,702,1,0,0,0,702,710,7,10,0,0,703,710,5,232,0,0,704,710, - 5,233,0,0,705,710,5,225,0,0,706,710,5,216,0,0,707,710,5,217,0,0, - 708,710,5,224,0,0,709,685,1,0,0,0,709,686,1,0,0,0,709,687,1,0,0, - 0,709,688,1,0,0,0,709,689,1,0,0,0,709,690,1,0,0,0,709,691,1,0,0, - 0,709,693,1,0,0,0,709,700,1,0,0,0,709,703,1,0,0,0,709,704,1,0,0, - 0,709,705,1,0,0,0,709,706,1,0,0,0,709,707,1,0,0,0,709,708,1,0,0, - 0,710,711,1,0,0,0,711,762,3,74,37,16,712,713,10,13,0,0,713,714,5, - 226,0,0,714,762,3,74,37,14,715,716,10,11,0,0,716,717,5,6,0,0,717, - 762,3,74,37,12,718,719,10,10,0,0,719,720,5,121,0,0,720,762,3,74, - 37,11,721,723,10,9,0,0,722,724,5,115,0,0,723,722,1,0,0,0,723,724, - 1,0,0,0,724,725,1,0,0,0,725,726,5,16,0,0,726,727,3,74,37,0,727,728, - 5,6,0,0,728,729,3,74,37,10,729,762,1,0,0,0,730,731,10,8,0,0,731, - 732,5,229,0,0,732,733,3,74,37,0,733,734,5,205,0,0,734,735,3,74,37, - 8,735,762,1,0,0,0,736,737,10,21,0,0,737,738,5,219,0,0,738,739,3, - 74,37,0,739,740,5,235,0,0,740,762,1,0,0,0,741,742,10,20,0,0,742, - 743,5,210,0,0,743,762,5,198,0,0,744,745,10,19,0,0,745,746,5,210, - 0,0,746,762,3,118,59,0,747,748,10,14,0,0,748,750,5,88,0,0,749,751, - 5,115,0,0,750,749,1,0,0,0,750,751,1,0,0,0,751,752,1,0,0,0,752,762, - 5,116,0,0,753,759,10,7,0,0,754,760,3,116,58,0,755,756,5,10,0,0,756, - 760,3,118,59,0,757,758,5,10,0,0,758,760,5,200,0,0,759,754,1,0,0, - 0,759,755,1,0,0,0,759,757,1,0,0,0,760,762,1,0,0,0,761,670,1,0,0, - 0,761,677,1,0,0,0,761,684,1,0,0,0,761,712,1,0,0,0,761,715,1,0,0, - 0,761,718,1,0,0,0,761,721,1,0,0,0,761,730,1,0,0,0,761,736,1,0,0, - 0,761,741,1,0,0,0,761,744,1,0,0,0,761,747,1,0,0,0,761,753,1,0,0, - 0,762,765,1,0,0,0,763,761,1,0,0,0,763,764,1,0,0,0,764,75,1,0,0,0, - 765,763,1,0,0,0,766,771,3,78,39,0,767,768,5,206,0,0,768,770,3,78, - 39,0,769,767,1,0,0,0,770,773,1,0,0,0,771,769,1,0,0,0,771,772,1,0, - 0,0,772,77,1,0,0,0,773,771,1,0,0,0,774,777,3,80,40,0,775,777,3,74, - 37,0,776,774,1,0,0,0,776,775,1,0,0,0,777,79,1,0,0,0,778,779,5,220, - 0,0,779,784,3,118,59,0,780,781,5,206,0,0,781,783,3,118,59,0,782, - 780,1,0,0,0,783,786,1,0,0,0,784,782,1,0,0,0,784,785,1,0,0,0,785, - 787,1,0,0,0,786,784,1,0,0,0,787,788,5,236,0,0,788,798,1,0,0,0,789, - 794,3,118,59,0,790,791,5,206,0,0,791,793,3,118,59,0,792,790,1,0, - 0,0,793,796,1,0,0,0,794,792,1,0,0,0,794,795,1,0,0,0,795,798,1,0, - 0,0,796,794,1,0,0,0,797,778,1,0,0,0,797,789,1,0,0,0,798,799,1,0, - 0,0,799,800,5,201,0,0,800,801,3,74,37,0,801,81,1,0,0,0,802,803,5, - 222,0,0,803,807,3,118,59,0,804,806,3,84,42,0,805,804,1,0,0,0,806, - 809,1,0,0,0,807,805,1,0,0,0,807,808,1,0,0,0,808,810,1,0,0,0,809, - 807,1,0,0,0,810,811,5,238,0,0,811,812,5,214,0,0,812,831,1,0,0,0, - 813,814,5,222,0,0,814,818,3,118,59,0,815,817,3,84,42,0,816,815,1, - 0,0,0,817,820,1,0,0,0,818,816,1,0,0,0,818,819,1,0,0,0,819,821,1, - 0,0,0,820,818,1,0,0,0,821,823,5,214,0,0,822,824,3,82,41,0,823,822, - 1,0,0,0,823,824,1,0,0,0,824,825,1,0,0,0,825,826,5,222,0,0,826,827, - 5,238,0,0,827,828,3,118,59,0,828,829,5,214,0,0,829,831,1,0,0,0,830, - 802,1,0,0,0,830,813,1,0,0,0,831,83,1,0,0,0,832,833,3,118,59,0,833, - 834,5,212,0,0,834,835,5,200,0,0,835,844,1,0,0,0,836,837,3,118,59, - 0,837,838,5,212,0,0,838,839,5,218,0,0,839,840,3,74,37,0,840,841, - 5,234,0,0,841,844,1,0,0,0,842,844,3,118,59,0,843,832,1,0,0,0,843, - 836,1,0,0,0,843,842,1,0,0,0,844,85,1,0,0,0,845,850,3,88,44,0,846, - 847,5,206,0,0,847,849,3,88,44,0,848,846,1,0,0,0,849,852,1,0,0,0, - 850,848,1,0,0,0,850,851,1,0,0,0,851,87,1,0,0,0,852,850,1,0,0,0,853, - 854,3,118,59,0,854,855,5,10,0,0,855,856,5,220,0,0,856,857,3,2,1, - 0,857,858,5,236,0,0,858,864,1,0,0,0,859,860,3,74,37,0,860,861,5, - 10,0,0,861,862,3,118,59,0,862,864,1,0,0,0,863,853,1,0,0,0,863,859, - 1,0,0,0,864,89,1,0,0,0,865,873,3,122,61,0,866,867,3,98,49,0,867, - 868,5,210,0,0,868,870,1,0,0,0,869,866,1,0,0,0,869,870,1,0,0,0,870, - 871,1,0,0,0,871,873,3,92,46,0,872,865,1,0,0,0,872,869,1,0,0,0,873, - 91,1,0,0,0,874,879,3,118,59,0,875,876,5,210,0,0,876,878,3,118,59, - 0,877,875,1,0,0,0,878,881,1,0,0,0,879,877,1,0,0,0,879,880,1,0,0, - 0,880,93,1,0,0,0,881,879,1,0,0,0,882,883,6,47,-1,0,883,892,3,98, - 49,0,884,892,3,96,48,0,885,886,5,220,0,0,886,887,3,2,1,0,887,888, - 5,236,0,0,888,892,1,0,0,0,889,892,3,82,41,0,890,892,3,122,61,0,891, - 882,1,0,0,0,891,884,1,0,0,0,891,885,1,0,0,0,891,889,1,0,0,0,891, - 890,1,0,0,0,892,901,1,0,0,0,893,897,10,3,0,0,894,898,3,116,58,0, - 895,896,5,10,0,0,896,898,3,118,59,0,897,894,1,0,0,0,897,895,1,0, - 0,0,898,900,1,0,0,0,899,893,1,0,0,0,900,903,1,0,0,0,901,899,1,0, - 0,0,901,902,1,0,0,0,902,95,1,0,0,0,903,901,1,0,0,0,904,905,3,118, - 59,0,905,907,5,220,0,0,906,908,3,100,50,0,907,906,1,0,0,0,907,908, - 1,0,0,0,908,909,1,0,0,0,909,910,5,236,0,0,910,97,1,0,0,0,911,912, - 3,102,51,0,912,913,5,210,0,0,913,915,1,0,0,0,914,911,1,0,0,0,914, - 915,1,0,0,0,915,916,1,0,0,0,916,917,3,118,59,0,917,99,1,0,0,0,918, - 923,3,74,37,0,919,920,5,206,0,0,920,922,3,74,37,0,921,919,1,0,0, - 0,922,925,1,0,0,0,923,921,1,0,0,0,923,924,1,0,0,0,924,101,1,0,0, - 0,925,923,1,0,0,0,926,927,3,118,59,0,927,103,1,0,0,0,928,937,5,196, - 0,0,929,930,5,210,0,0,930,937,7,11,0,0,931,932,5,198,0,0,932,934, - 5,210,0,0,933,935,7,11,0,0,934,933,1,0,0,0,934,935,1,0,0,0,935,937, - 1,0,0,0,936,928,1,0,0,0,936,929,1,0,0,0,936,931,1,0,0,0,937,105, - 1,0,0,0,938,940,7,12,0,0,939,938,1,0,0,0,939,940,1,0,0,0,940,947, - 1,0,0,0,941,948,3,104,52,0,942,948,5,197,0,0,943,948,5,198,0,0,944, - 948,5,199,0,0,945,948,5,82,0,0,946,948,5,113,0,0,947,941,1,0,0,0, - 947,942,1,0,0,0,947,943,1,0,0,0,947,944,1,0,0,0,947,945,1,0,0,0, - 947,946,1,0,0,0,948,107,1,0,0,0,949,953,3,106,53,0,950,953,5,200, - 0,0,951,953,5,116,0,0,952,949,1,0,0,0,952,950,1,0,0,0,952,951,1, - 0,0,0,953,109,1,0,0,0,954,955,7,13,0,0,955,111,1,0,0,0,956,957,7, - 14,0,0,957,113,1,0,0,0,958,959,7,15,0,0,959,115,1,0,0,0,960,963, - 5,195,0,0,961,963,3,114,57,0,962,960,1,0,0,0,962,961,1,0,0,0,963, - 117,1,0,0,0,964,968,5,195,0,0,965,968,3,110,55,0,966,968,3,112,56, - 0,967,964,1,0,0,0,967,965,1,0,0,0,967,966,1,0,0,0,968,119,1,0,0, - 0,969,970,5,200,0,0,970,971,5,212,0,0,971,972,3,106,53,0,972,121, - 1,0,0,0,973,974,5,218,0,0,974,975,3,118,59,0,975,976,5,234,0,0,976, - 123,1,0,0,0,120,127,137,145,148,152,155,159,162,165,168,171,175, - 179,182,185,188,192,195,204,210,231,248,265,271,277,288,290,301, - 304,310,318,324,326,330,335,338,341,345,349,352,354,357,361,365, - 368,370,372,377,388,394,401,406,410,414,420,422,429,437,440,443, - 462,476,492,504,516,524,528,535,541,550,554,585,602,614,624,627, - 631,634,647,664,668,674,681,693,697,700,709,723,750,759,761,763, - 771,776,784,794,797,807,818,823,830,843,850,863,869,872,879,891, - 897,901,907,914,923,934,936,939,947,952,962,967 + 59,7,59,2,60,7,60,2,61,7,61,2,62,7,62,1,0,1,0,1,0,3,0,130,8,0,1, + 0,1,0,1,1,1,1,1,1,1,1,5,1,138,8,1,10,1,12,1,141,9,1,1,2,1,2,1,2, + 1,2,1,2,3,2,148,8,2,1,3,1,3,3,3,152,8,3,1,4,3,4,155,8,4,1,4,1,4, + 3,4,159,8,4,1,4,3,4,162,8,4,1,4,1,4,3,4,166,8,4,1,4,3,4,169,8,4, + 1,4,3,4,172,8,4,1,4,3,4,175,8,4,1,4,3,4,178,8,4,1,4,1,4,3,4,182, + 8,4,1,4,1,4,3,4,186,8,4,1,4,3,4,189,8,4,1,4,3,4,192,8,4,1,4,3,4, + 195,8,4,1,4,1,4,3,4,199,8,4,1,4,3,4,202,8,4,1,5,1,5,1,5,1,6,1,6, + 1,6,1,6,3,6,211,8,6,1,7,1,7,1,7,1,8,3,8,217,8,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,9,1,9,1,9,5,9,236,8,9, + 10,9,12,9,239,9,9,1,10,1,10,1,10,1,11,1,11,1,11,1,12,1,12,1,12,1, + 12,1,12,1,12,1,12,1,12,3,12,255,8,12,1,13,1,13,1,13,1,14,1,14,1, + 14,1,14,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,3,16,272,8,16,1, + 16,1,16,1,16,1,16,3,16,278,8,16,1,16,1,16,1,16,1,16,3,16,284,8,16, + 1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,3,16,295,8,16,3,16, + 297,8,16,1,17,1,17,1,17,1,18,1,18,1,18,1,19,1,19,1,19,3,19,308,8, + 19,1,19,3,19,311,8,19,1,19,1,19,1,19,1,19,3,19,317,8,19,1,19,1,19, + 1,19,1,19,1,19,1,19,3,19,325,8,19,1,19,1,19,1,19,1,19,5,19,331,8, + 19,10,19,12,19,334,9,19,1,20,3,20,337,8,20,1,20,1,20,1,20,3,20,342, + 8,20,1,20,3,20,345,8,20,1,20,3,20,348,8,20,1,20,1,20,3,20,352,8, + 20,1,20,1,20,3,20,356,8,20,1,20,3,20,359,8,20,3,20,361,8,20,1,20, + 3,20,364,8,20,1,20,1,20,3,20,368,8,20,1,20,1,20,3,20,372,8,20,1, + 20,3,20,375,8,20,3,20,377,8,20,3,20,379,8,20,1,21,1,21,1,21,3,21, + 384,8,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,395,8, + 22,1,23,1,23,1,23,1,23,3,23,401,8,23,1,24,1,24,1,24,5,24,406,8,24, + 10,24,12,24,409,9,24,1,25,1,25,3,25,413,8,25,1,25,1,25,3,25,417, + 8,25,1,25,1,25,3,25,421,8,25,1,26,1,26,1,26,1,26,3,26,427,8,26,3, + 26,429,8,26,1,27,1,27,1,27,5,27,434,8,27,10,27,12,27,437,9,27,1, + 28,1,28,1,28,1,28,1,29,3,29,444,8,29,1,29,3,29,447,8,29,1,29,3,29, + 450,8,29,1,30,1,30,1,30,1,30,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,33,3,33,469,8,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,3,34,483,8,34,1,35,1,35, + 1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,5,36,497,8,36, + 10,36,12,36,500,9,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,5,36,509, + 8,36,10,36,12,36,512,9,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,5,36, + 521,8,36,10,36,12,36,524,9,36,1,36,1,36,1,36,1,36,1,36,3,36,531, + 8,36,1,36,1,36,3,36,535,8,36,1,37,1,37,1,37,5,37,540,8,37,10,37, + 12,37,543,9,37,1,38,1,38,1,38,3,38,548,8,38,1,38,1,38,1,38,1,38, + 1,38,4,38,555,8,38,11,38,12,38,556,1,38,1,38,3,38,561,8,38,1,38, + 1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38, + 1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38, + 1,38,1,38,3,38,592,8,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38, + 1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,609,8,38,1,38,1,38,1,38, + 1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,621,8,38,1,38,1,38,1,38, + 1,38,1,38,1,38,1,38,1,38,3,38,631,8,38,1,38,3,38,634,8,38,1,38,1, + 38,3,38,638,8,38,1,38,3,38,641,8,38,1,38,1,38,1,38,1,38,1,38,1,38, + 1,38,1,38,1,38,1,38,1,38,3,38,654,8,38,1,38,1,38,1,38,1,38,1,38, + 1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,671,8,38, + 1,38,1,38,3,38,675,8,38,1,38,1,38,1,38,1,38,3,38,681,8,38,1,38,1, + 38,1,38,1,38,1,38,3,38,688,8,38,1,38,1,38,1,38,1,38,1,38,1,38,1, + 38,1,38,1,38,1,38,3,38,700,8,38,1,38,1,38,3,38,704,8,38,1,38,3,38, + 707,8,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,716,8,38,1,38,1, + 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,730,8, + 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1, + 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3, + 38,757,8,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,766,8,38,5,38, + 768,8,38,10,38,12,38,771,9,38,1,39,1,39,1,39,5,39,776,8,39,10,39, + 12,39,779,9,39,1,40,1,40,3,40,783,8,40,1,41,1,41,1,41,1,41,5,41, + 789,8,41,10,41,12,41,792,9,41,1,41,1,41,1,41,1,41,1,41,5,41,799, + 8,41,10,41,12,41,802,9,41,3,41,804,8,41,1,41,1,41,1,41,1,42,1,42, + 1,42,5,42,812,8,42,10,42,12,42,815,9,42,1,42,1,42,1,42,1,42,1,42, + 1,42,5,42,823,8,42,10,42,12,42,826,9,42,1,42,1,42,3,42,830,8,42, + 1,42,1,42,1,42,1,42,1,42,3,42,837,8,42,1,43,1,43,1,43,1,43,1,43, + 1,43,1,43,1,43,1,43,1,43,1,43,3,43,850,8,43,1,44,1,44,1,44,5,44, + 855,8,44,10,44,12,44,858,9,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45, + 1,45,1,45,1,45,3,45,870,8,45,1,46,1,46,1,46,1,46,3,46,876,8,46,1, + 46,3,46,879,8,46,1,47,1,47,1,47,5,47,884,8,47,10,47,12,47,887,9, + 47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,3,48,898,8,48,1, + 48,1,48,1,48,1,48,3,48,904,8,48,5,48,906,8,48,10,48,12,48,909,9, + 48,1,49,1,49,1,49,3,49,914,8,49,1,49,1,49,1,50,1,50,1,50,3,50,921, + 8,50,1,50,1,50,1,51,1,51,1,51,5,51,928,8,51,10,51,12,51,931,9,51, + 1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,941,8,53,3,53,943,8, + 53,1,54,3,54,946,8,54,1,54,1,54,1,54,1,54,1,54,1,54,3,54,954,8,54, + 1,55,1,55,1,55,3,55,959,8,55,1,56,1,56,1,57,1,57,1,58,1,58,1,59, + 1,59,3,59,969,8,59,1,60,1,60,1,60,3,60,974,8,60,1,61,1,61,1,61,1, + 61,1,62,1,62,1,62,1,62,1,62,0,3,38,76,96,63,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,0,16,2,0,32,32,141,141, + 2,0,84,84,96,96,3,0,4,4,8,8,12,12,4,0,4,4,7,8,12,12,147,147,2,0, + 96,96,140,140,2,0,4,4,8,8,2,0,11,11,42,43,2,0,62,62,93,93,2,0,133, + 133,143,143,3,0,17,17,95,95,170,170,2,0,79,79,98,98,1,0,197,198, + 2,0,208,208,228,228,8,0,37,37,76,76,108,108,110,110,132,132,145, + 145,185,185,190,190,13,0,2,24,26,36,38,75,77,81,83,107,109,109,111, + 112,114,115,117,130,133,144,146,184,186,189,191,192,4,0,36,36,62, + 62,77,77,91,91,1111,0,129,1,0,0,0,2,133,1,0,0,0,4,147,1,0,0,0,6, + 151,1,0,0,0,8,154,1,0,0,0,10,203,1,0,0,0,12,206,1,0,0,0,14,212,1, + 0,0,0,16,216,1,0,0,0,18,222,1,0,0,0,20,240,1,0,0,0,22,243,1,0,0, + 0,24,246,1,0,0,0,26,256,1,0,0,0,28,259,1,0,0,0,30,263,1,0,0,0,32, + 296,1,0,0,0,34,298,1,0,0,0,36,301,1,0,0,0,38,316,1,0,0,0,40,378, + 1,0,0,0,42,383,1,0,0,0,44,394,1,0,0,0,46,396,1,0,0,0,48,402,1,0, + 0,0,50,410,1,0,0,0,52,428,1,0,0,0,54,430,1,0,0,0,56,438,1,0,0,0, + 58,443,1,0,0,0,60,451,1,0,0,0,62,455,1,0,0,0,64,459,1,0,0,0,66,468, + 1,0,0,0,68,482,1,0,0,0,70,484,1,0,0,0,72,534,1,0,0,0,74,536,1,0, + 0,0,76,674,1,0,0,0,78,772,1,0,0,0,80,782,1,0,0,0,82,803,1,0,0,0, + 84,836,1,0,0,0,86,849,1,0,0,0,88,851,1,0,0,0,90,869,1,0,0,0,92,878, + 1,0,0,0,94,880,1,0,0,0,96,897,1,0,0,0,98,910,1,0,0,0,100,920,1,0, + 0,0,102,924,1,0,0,0,104,932,1,0,0,0,106,942,1,0,0,0,108,945,1,0, + 0,0,110,958,1,0,0,0,112,960,1,0,0,0,114,962,1,0,0,0,116,964,1,0, + 0,0,118,968,1,0,0,0,120,973,1,0,0,0,122,975,1,0,0,0,124,979,1,0, + 0,0,126,130,3,2,1,0,127,130,3,8,4,0,128,130,3,84,42,0,129,126,1, + 0,0,0,129,127,1,0,0,0,129,128,1,0,0,0,130,131,1,0,0,0,131,132,5, + 0,0,1,132,1,1,0,0,0,133,139,3,4,2,0,134,135,5,176,0,0,135,136,5, + 4,0,0,136,138,3,4,2,0,137,134,1,0,0,0,138,141,1,0,0,0,139,137,1, + 0,0,0,139,140,1,0,0,0,140,3,1,0,0,0,141,139,1,0,0,0,142,148,3,6, + 3,0,143,144,5,220,0,0,144,145,3,2,1,0,145,146,5,236,0,0,146,148, + 1,0,0,0,147,142,1,0,0,0,147,143,1,0,0,0,148,5,1,0,0,0,149,152,3, + 8,4,0,150,152,3,124,62,0,151,149,1,0,0,0,151,150,1,0,0,0,152,7,1, + 0,0,0,153,155,3,10,5,0,154,153,1,0,0,0,154,155,1,0,0,0,155,156,1, + 0,0,0,156,158,5,146,0,0,157,159,5,49,0,0,158,157,1,0,0,0,158,159, + 1,0,0,0,159,161,1,0,0,0,160,162,3,12,6,0,161,160,1,0,0,0,161,162, + 1,0,0,0,162,163,1,0,0,0,163,165,3,74,37,0,164,166,3,14,7,0,165,164, + 1,0,0,0,165,166,1,0,0,0,166,168,1,0,0,0,167,169,3,16,8,0,168,167, + 1,0,0,0,168,169,1,0,0,0,169,171,1,0,0,0,170,172,3,20,10,0,171,170, + 1,0,0,0,171,172,1,0,0,0,172,174,1,0,0,0,173,175,3,22,11,0,174,173, + 1,0,0,0,174,175,1,0,0,0,175,177,1,0,0,0,176,178,3,24,12,0,177,176, + 1,0,0,0,177,178,1,0,0,0,178,181,1,0,0,0,179,180,5,189,0,0,180,182, + 7,0,0,0,181,179,1,0,0,0,181,182,1,0,0,0,182,185,1,0,0,0,183,184, + 5,189,0,0,184,186,5,169,0,0,185,183,1,0,0,0,185,186,1,0,0,0,186, + 188,1,0,0,0,187,189,3,26,13,0,188,187,1,0,0,0,188,189,1,0,0,0,189, + 191,1,0,0,0,190,192,3,18,9,0,191,190,1,0,0,0,191,192,1,0,0,0,192, + 194,1,0,0,0,193,195,3,28,14,0,194,193,1,0,0,0,194,195,1,0,0,0,195, + 198,1,0,0,0,196,199,3,32,16,0,197,199,3,34,17,0,198,196,1,0,0,0, + 198,197,1,0,0,0,198,199,1,0,0,0,199,201,1,0,0,0,200,202,3,36,18, + 0,201,200,1,0,0,0,201,202,1,0,0,0,202,9,1,0,0,0,203,204,5,189,0, + 0,204,205,3,88,44,0,205,11,1,0,0,0,206,207,5,168,0,0,207,210,5,198, + 0,0,208,209,5,189,0,0,209,211,5,164,0,0,210,208,1,0,0,0,210,211, + 1,0,0,0,211,13,1,0,0,0,212,213,5,68,0,0,213,214,3,38,19,0,214,15, + 1,0,0,0,215,217,7,1,0,0,216,215,1,0,0,0,216,217,1,0,0,0,217,218, + 1,0,0,0,218,219,5,9,0,0,219,220,5,90,0,0,220,221,3,74,37,0,221,17, + 1,0,0,0,222,223,5,188,0,0,223,224,3,120,60,0,224,225,5,10,0,0,225, + 226,5,220,0,0,226,227,3,58,29,0,227,237,5,236,0,0,228,229,5,206, + 0,0,229,230,3,120,60,0,230,231,5,10,0,0,231,232,5,220,0,0,232,233, + 3,58,29,0,233,234,5,236,0,0,234,236,1,0,0,0,235,228,1,0,0,0,236, + 239,1,0,0,0,237,235,1,0,0,0,237,238,1,0,0,0,238,19,1,0,0,0,239,237, + 1,0,0,0,240,241,5,129,0,0,241,242,3,76,38,0,242,21,1,0,0,0,243,244, + 5,187,0,0,244,245,3,76,38,0,245,23,1,0,0,0,246,247,5,73,0,0,247, + 254,5,18,0,0,248,249,7,0,0,0,249,250,5,220,0,0,250,251,3,74,37,0, + 251,252,5,236,0,0,252,255,1,0,0,0,253,255,3,74,37,0,254,248,1,0, + 0,0,254,253,1,0,0,0,255,25,1,0,0,0,256,257,5,74,0,0,257,258,3,76, + 38,0,258,27,1,0,0,0,259,260,5,122,0,0,260,261,5,18,0,0,261,262,3, + 48,24,0,262,29,1,0,0,0,263,264,5,122,0,0,264,265,5,18,0,0,265,266, + 3,74,37,0,266,31,1,0,0,0,267,268,5,99,0,0,268,271,3,76,38,0,269, + 270,5,206,0,0,270,272,3,76,38,0,271,269,1,0,0,0,271,272,1,0,0,0, + 272,277,1,0,0,0,273,274,5,189,0,0,274,278,5,164,0,0,275,276,5,18, + 0,0,276,278,3,74,37,0,277,273,1,0,0,0,277,275,1,0,0,0,277,278,1, + 0,0,0,278,297,1,0,0,0,279,280,5,99,0,0,280,283,3,76,38,0,281,282, + 5,189,0,0,282,284,5,164,0,0,283,281,1,0,0,0,283,284,1,0,0,0,284, + 285,1,0,0,0,285,286,5,118,0,0,286,287,3,76,38,0,287,297,1,0,0,0, + 288,289,5,99,0,0,289,290,3,76,38,0,290,291,5,118,0,0,291,294,3,76, + 38,0,292,293,5,18,0,0,293,295,3,74,37,0,294,292,1,0,0,0,294,295, + 1,0,0,0,295,297,1,0,0,0,296,267,1,0,0,0,296,279,1,0,0,0,296,288, + 1,0,0,0,297,33,1,0,0,0,298,299,5,118,0,0,299,300,3,76,38,0,300,35, + 1,0,0,0,301,302,5,150,0,0,302,303,3,54,27,0,303,37,1,0,0,0,304,305, + 6,19,-1,0,305,307,3,96,48,0,306,308,5,61,0,0,307,306,1,0,0,0,307, + 308,1,0,0,0,308,310,1,0,0,0,309,311,3,46,23,0,310,309,1,0,0,0,310, + 311,1,0,0,0,311,317,1,0,0,0,312,313,5,220,0,0,313,314,3,38,19,0, + 314,315,5,236,0,0,315,317,1,0,0,0,316,304,1,0,0,0,316,312,1,0,0, + 0,317,332,1,0,0,0,318,319,10,3,0,0,319,320,3,42,21,0,320,321,3,38, + 19,4,321,331,1,0,0,0,322,324,10,4,0,0,323,325,3,40,20,0,324,323, + 1,0,0,0,324,325,1,0,0,0,325,326,1,0,0,0,326,327,5,90,0,0,327,328, + 3,38,19,0,328,329,3,44,22,0,329,331,1,0,0,0,330,318,1,0,0,0,330, + 322,1,0,0,0,331,334,1,0,0,0,332,330,1,0,0,0,332,333,1,0,0,0,333, + 39,1,0,0,0,334,332,1,0,0,0,335,337,7,2,0,0,336,335,1,0,0,0,336,337, + 1,0,0,0,337,338,1,0,0,0,338,345,5,84,0,0,339,341,5,84,0,0,340,342, + 7,2,0,0,341,340,1,0,0,0,341,342,1,0,0,0,342,345,1,0,0,0,343,345, + 7,2,0,0,344,336,1,0,0,0,344,339,1,0,0,0,344,343,1,0,0,0,345,379, + 1,0,0,0,346,348,7,3,0,0,347,346,1,0,0,0,347,348,1,0,0,0,348,349, + 1,0,0,0,349,351,7,4,0,0,350,352,5,123,0,0,351,350,1,0,0,0,351,352, + 1,0,0,0,352,361,1,0,0,0,353,355,7,4,0,0,354,356,5,123,0,0,355,354, + 1,0,0,0,355,356,1,0,0,0,356,358,1,0,0,0,357,359,7,3,0,0,358,357, + 1,0,0,0,358,359,1,0,0,0,359,361,1,0,0,0,360,347,1,0,0,0,360,353, + 1,0,0,0,361,379,1,0,0,0,362,364,7,5,0,0,363,362,1,0,0,0,363,364, + 1,0,0,0,364,365,1,0,0,0,365,367,5,69,0,0,366,368,5,123,0,0,367,366, + 1,0,0,0,367,368,1,0,0,0,368,377,1,0,0,0,369,371,5,69,0,0,370,372, + 5,123,0,0,371,370,1,0,0,0,371,372,1,0,0,0,372,374,1,0,0,0,373,375, + 7,5,0,0,374,373,1,0,0,0,374,375,1,0,0,0,375,377,1,0,0,0,376,363, + 1,0,0,0,376,369,1,0,0,0,377,379,1,0,0,0,378,344,1,0,0,0,378,360, + 1,0,0,0,378,376,1,0,0,0,379,41,1,0,0,0,380,381,5,31,0,0,381,384, + 5,90,0,0,382,384,5,206,0,0,383,380,1,0,0,0,383,382,1,0,0,0,384,43, + 1,0,0,0,385,386,5,119,0,0,386,395,3,74,37,0,387,388,5,179,0,0,388, + 389,5,220,0,0,389,390,3,74,37,0,390,391,5,236,0,0,391,395,1,0,0, + 0,392,393,5,179,0,0,393,395,3,74,37,0,394,385,1,0,0,0,394,387,1, + 0,0,0,394,392,1,0,0,0,395,45,1,0,0,0,396,397,5,144,0,0,397,400,3, + 52,26,0,398,399,5,118,0,0,399,401,3,52,26,0,400,398,1,0,0,0,400, + 401,1,0,0,0,401,47,1,0,0,0,402,407,3,50,25,0,403,404,5,206,0,0,404, + 406,3,50,25,0,405,403,1,0,0,0,406,409,1,0,0,0,407,405,1,0,0,0,407, + 408,1,0,0,0,408,49,1,0,0,0,409,407,1,0,0,0,410,412,3,76,38,0,411, + 413,7,6,0,0,412,411,1,0,0,0,412,413,1,0,0,0,413,416,1,0,0,0,414, + 415,5,117,0,0,415,417,7,7,0,0,416,414,1,0,0,0,416,417,1,0,0,0,417, + 420,1,0,0,0,418,419,5,26,0,0,419,421,5,200,0,0,420,418,1,0,0,0,420, + 421,1,0,0,0,421,51,1,0,0,0,422,429,3,124,62,0,423,426,3,108,54,0, + 424,425,5,238,0,0,425,427,3,108,54,0,426,424,1,0,0,0,426,427,1,0, + 0,0,427,429,1,0,0,0,428,422,1,0,0,0,428,423,1,0,0,0,429,53,1,0,0, + 0,430,435,3,56,28,0,431,432,5,206,0,0,432,434,3,56,28,0,433,431, + 1,0,0,0,434,437,1,0,0,0,435,433,1,0,0,0,435,436,1,0,0,0,436,55,1, + 0,0,0,437,435,1,0,0,0,438,439,3,120,60,0,439,440,5,212,0,0,440,441, + 3,110,55,0,441,57,1,0,0,0,442,444,3,60,30,0,443,442,1,0,0,0,443, + 444,1,0,0,0,444,446,1,0,0,0,445,447,3,62,31,0,446,445,1,0,0,0,446, + 447,1,0,0,0,447,449,1,0,0,0,448,450,3,64,32,0,449,448,1,0,0,0,449, + 450,1,0,0,0,450,59,1,0,0,0,451,452,5,126,0,0,452,453,5,18,0,0,453, + 454,3,74,37,0,454,61,1,0,0,0,455,456,5,122,0,0,456,457,5,18,0,0, + 457,458,3,48,24,0,458,63,1,0,0,0,459,460,7,8,0,0,460,461,3,66,33, + 0,461,65,1,0,0,0,462,469,3,68,34,0,463,464,5,16,0,0,464,465,3,68, + 34,0,465,466,5,6,0,0,466,467,3,68,34,0,467,469,1,0,0,0,468,462,1, + 0,0,0,468,463,1,0,0,0,469,67,1,0,0,0,470,471,5,33,0,0,471,483,5, + 142,0,0,472,473,5,175,0,0,473,483,5,128,0,0,474,475,5,175,0,0,475, + 483,5,64,0,0,476,477,3,108,54,0,477,478,5,128,0,0,478,483,1,0,0, + 0,479,480,3,108,54,0,480,481,5,64,0,0,481,483,1,0,0,0,482,470,1, + 0,0,0,482,472,1,0,0,0,482,474,1,0,0,0,482,476,1,0,0,0,482,479,1, + 0,0,0,483,69,1,0,0,0,484,485,3,76,38,0,485,486,5,0,0,1,486,71,1, + 0,0,0,487,535,3,120,60,0,488,489,3,120,60,0,489,490,5,220,0,0,490, + 491,3,120,60,0,491,498,3,72,36,0,492,493,5,206,0,0,493,494,3,120, + 60,0,494,495,3,72,36,0,495,497,1,0,0,0,496,492,1,0,0,0,497,500,1, + 0,0,0,498,496,1,0,0,0,498,499,1,0,0,0,499,501,1,0,0,0,500,498,1, + 0,0,0,501,502,5,236,0,0,502,535,1,0,0,0,503,504,3,120,60,0,504,505, + 5,220,0,0,505,510,3,122,61,0,506,507,5,206,0,0,507,509,3,122,61, + 0,508,506,1,0,0,0,509,512,1,0,0,0,510,508,1,0,0,0,510,511,1,0,0, + 0,511,513,1,0,0,0,512,510,1,0,0,0,513,514,5,236,0,0,514,535,1,0, + 0,0,515,516,3,120,60,0,516,517,5,220,0,0,517,522,3,72,36,0,518,519, + 5,206,0,0,519,521,3,72,36,0,520,518,1,0,0,0,521,524,1,0,0,0,522, + 520,1,0,0,0,522,523,1,0,0,0,523,525,1,0,0,0,524,522,1,0,0,0,525, + 526,5,236,0,0,526,535,1,0,0,0,527,528,3,120,60,0,528,530,5,220,0, + 0,529,531,3,74,37,0,530,529,1,0,0,0,530,531,1,0,0,0,531,532,1,0, + 0,0,532,533,5,236,0,0,533,535,1,0,0,0,534,487,1,0,0,0,534,488,1, + 0,0,0,534,503,1,0,0,0,534,515,1,0,0,0,534,527,1,0,0,0,535,73,1,0, + 0,0,536,541,3,76,38,0,537,538,5,206,0,0,538,540,3,76,38,0,539,537, + 1,0,0,0,540,543,1,0,0,0,541,539,1,0,0,0,541,542,1,0,0,0,542,75,1, + 0,0,0,543,541,1,0,0,0,544,545,6,38,-1,0,545,547,5,19,0,0,546,548, + 3,76,38,0,547,546,1,0,0,0,547,548,1,0,0,0,548,554,1,0,0,0,549,550, + 5,186,0,0,550,551,3,76,38,0,551,552,5,163,0,0,552,553,3,76,38,0, + 553,555,1,0,0,0,554,549,1,0,0,0,555,556,1,0,0,0,556,554,1,0,0,0, + 556,557,1,0,0,0,557,560,1,0,0,0,558,559,5,52,0,0,559,561,3,76,38, + 0,560,558,1,0,0,0,560,561,1,0,0,0,561,562,1,0,0,0,562,563,5,53,0, + 0,563,675,1,0,0,0,564,565,5,20,0,0,565,566,5,220,0,0,566,567,3,76, + 38,0,567,568,5,10,0,0,568,569,3,72,36,0,569,570,5,236,0,0,570,675, + 1,0,0,0,571,572,5,36,0,0,572,675,5,200,0,0,573,574,5,59,0,0,574, + 575,5,220,0,0,575,576,3,112,56,0,576,577,5,68,0,0,577,578,3,76,38, + 0,578,579,5,236,0,0,579,675,1,0,0,0,580,581,5,86,0,0,581,582,3,76, + 38,0,582,583,3,112,56,0,583,675,1,0,0,0,584,585,5,155,0,0,585,586, + 5,220,0,0,586,587,3,76,38,0,587,588,5,68,0,0,588,591,3,76,38,0,589, + 590,5,65,0,0,590,592,3,76,38,0,591,589,1,0,0,0,591,592,1,0,0,0,592, + 593,1,0,0,0,593,594,5,236,0,0,594,675,1,0,0,0,595,596,5,166,0,0, + 596,675,5,200,0,0,597,598,5,171,0,0,598,599,5,220,0,0,599,600,7, + 9,0,0,600,601,5,200,0,0,601,602,5,68,0,0,602,603,3,76,38,0,603,604, + 5,236,0,0,604,675,1,0,0,0,605,606,3,120,60,0,606,608,5,220,0,0,607, + 609,3,74,37,0,608,607,1,0,0,0,608,609,1,0,0,0,609,610,1,0,0,0,610, + 611,5,236,0,0,611,612,1,0,0,0,612,613,5,125,0,0,613,614,5,220,0, + 0,614,615,3,58,29,0,615,616,5,236,0,0,616,675,1,0,0,0,617,618,3, + 120,60,0,618,620,5,220,0,0,619,621,3,74,37,0,620,619,1,0,0,0,620, + 621,1,0,0,0,621,622,1,0,0,0,622,623,5,236,0,0,623,624,1,0,0,0,624, + 625,5,125,0,0,625,626,3,120,60,0,626,675,1,0,0,0,627,633,3,120,60, + 0,628,630,5,220,0,0,629,631,3,74,37,0,630,629,1,0,0,0,630,631,1, + 0,0,0,631,632,1,0,0,0,632,634,5,236,0,0,633,628,1,0,0,0,633,634, + 1,0,0,0,634,635,1,0,0,0,635,637,5,220,0,0,636,638,5,49,0,0,637,636, + 1,0,0,0,637,638,1,0,0,0,638,640,1,0,0,0,639,641,3,78,39,0,640,639, + 1,0,0,0,640,641,1,0,0,0,641,642,1,0,0,0,642,643,5,236,0,0,643,675, + 1,0,0,0,644,675,3,84,42,0,645,675,3,110,55,0,646,647,5,208,0,0,647, + 675,3,76,38,18,648,649,5,115,0,0,649,675,3,76,38,12,650,651,3,100, + 50,0,651,652,5,210,0,0,652,654,1,0,0,0,653,650,1,0,0,0,653,654,1, + 0,0,0,654,655,1,0,0,0,655,675,5,202,0,0,656,657,5,220,0,0,657,658, + 3,2,1,0,658,659,5,236,0,0,659,675,1,0,0,0,660,661,5,220,0,0,661, + 662,3,76,38,0,662,663,5,236,0,0,663,675,1,0,0,0,664,665,5,220,0, + 0,665,666,3,74,37,0,666,667,5,236,0,0,667,675,1,0,0,0,668,670,5, + 219,0,0,669,671,3,74,37,0,670,669,1,0,0,0,670,671,1,0,0,0,671,672, + 1,0,0,0,672,675,5,235,0,0,673,675,3,92,46,0,674,544,1,0,0,0,674, + 564,1,0,0,0,674,571,1,0,0,0,674,573,1,0,0,0,674,580,1,0,0,0,674, + 584,1,0,0,0,674,595,1,0,0,0,674,597,1,0,0,0,674,605,1,0,0,0,674, + 617,1,0,0,0,674,627,1,0,0,0,674,644,1,0,0,0,674,645,1,0,0,0,674, + 646,1,0,0,0,674,648,1,0,0,0,674,653,1,0,0,0,674,656,1,0,0,0,674, + 660,1,0,0,0,674,664,1,0,0,0,674,668,1,0,0,0,674,673,1,0,0,0,675, + 769,1,0,0,0,676,680,10,17,0,0,677,681,5,202,0,0,678,681,5,238,0, + 0,679,681,5,227,0,0,680,677,1,0,0,0,680,678,1,0,0,0,680,679,1,0, + 0,0,681,682,1,0,0,0,682,768,3,76,38,18,683,687,10,16,0,0,684,688, + 5,228,0,0,685,688,5,208,0,0,686,688,5,207,0,0,687,684,1,0,0,0,687, + 685,1,0,0,0,687,686,1,0,0,0,688,689,1,0,0,0,689,768,3,76,38,17,690, + 715,10,15,0,0,691,716,5,211,0,0,692,716,5,212,0,0,693,716,5,223, + 0,0,694,716,5,221,0,0,695,716,5,222,0,0,696,716,5,213,0,0,697,716, + 5,214,0,0,698,700,5,115,0,0,699,698,1,0,0,0,699,700,1,0,0,0,700, + 701,1,0,0,0,701,703,5,80,0,0,702,704,5,25,0,0,703,702,1,0,0,0,703, + 704,1,0,0,0,704,716,1,0,0,0,705,707,5,115,0,0,706,705,1,0,0,0,706, + 707,1,0,0,0,707,708,1,0,0,0,708,716,7,10,0,0,709,716,5,232,0,0,710, + 716,5,233,0,0,711,716,5,225,0,0,712,716,5,216,0,0,713,716,5,217, + 0,0,714,716,5,224,0,0,715,691,1,0,0,0,715,692,1,0,0,0,715,693,1, + 0,0,0,715,694,1,0,0,0,715,695,1,0,0,0,715,696,1,0,0,0,715,697,1, + 0,0,0,715,699,1,0,0,0,715,706,1,0,0,0,715,709,1,0,0,0,715,710,1, + 0,0,0,715,711,1,0,0,0,715,712,1,0,0,0,715,713,1,0,0,0,715,714,1, + 0,0,0,716,717,1,0,0,0,717,768,3,76,38,16,718,719,10,13,0,0,719,720, + 5,226,0,0,720,768,3,76,38,14,721,722,10,11,0,0,722,723,5,6,0,0,723, + 768,3,76,38,12,724,725,10,10,0,0,725,726,5,121,0,0,726,768,3,76, + 38,11,727,729,10,9,0,0,728,730,5,115,0,0,729,728,1,0,0,0,729,730, + 1,0,0,0,730,731,1,0,0,0,731,732,5,16,0,0,732,733,3,76,38,0,733,734, + 5,6,0,0,734,735,3,76,38,10,735,768,1,0,0,0,736,737,10,8,0,0,737, + 738,5,229,0,0,738,739,3,76,38,0,739,740,5,205,0,0,740,741,3,76,38, + 8,741,768,1,0,0,0,742,743,10,21,0,0,743,744,5,219,0,0,744,745,3, + 76,38,0,745,746,5,235,0,0,746,768,1,0,0,0,747,748,10,20,0,0,748, + 749,5,210,0,0,749,768,5,198,0,0,750,751,10,19,0,0,751,752,5,210, + 0,0,752,768,3,120,60,0,753,754,10,14,0,0,754,756,5,88,0,0,755,757, + 5,115,0,0,756,755,1,0,0,0,756,757,1,0,0,0,757,758,1,0,0,0,758,768, + 5,116,0,0,759,765,10,7,0,0,760,766,3,118,59,0,761,762,5,10,0,0,762, + 766,3,120,60,0,763,764,5,10,0,0,764,766,5,200,0,0,765,760,1,0,0, + 0,765,761,1,0,0,0,765,763,1,0,0,0,766,768,1,0,0,0,767,676,1,0,0, + 0,767,683,1,0,0,0,767,690,1,0,0,0,767,718,1,0,0,0,767,721,1,0,0, + 0,767,724,1,0,0,0,767,727,1,0,0,0,767,736,1,0,0,0,767,742,1,0,0, + 0,767,747,1,0,0,0,767,750,1,0,0,0,767,753,1,0,0,0,767,759,1,0,0, + 0,768,771,1,0,0,0,769,767,1,0,0,0,769,770,1,0,0,0,770,77,1,0,0,0, + 771,769,1,0,0,0,772,777,3,80,40,0,773,774,5,206,0,0,774,776,3,80, + 40,0,775,773,1,0,0,0,776,779,1,0,0,0,777,775,1,0,0,0,777,778,1,0, + 0,0,778,79,1,0,0,0,779,777,1,0,0,0,780,783,3,82,41,0,781,783,3,76, + 38,0,782,780,1,0,0,0,782,781,1,0,0,0,783,81,1,0,0,0,784,785,5,220, + 0,0,785,790,3,120,60,0,786,787,5,206,0,0,787,789,3,120,60,0,788, + 786,1,0,0,0,789,792,1,0,0,0,790,788,1,0,0,0,790,791,1,0,0,0,791, + 793,1,0,0,0,792,790,1,0,0,0,793,794,5,236,0,0,794,804,1,0,0,0,795, + 800,3,120,60,0,796,797,5,206,0,0,797,799,3,120,60,0,798,796,1,0, + 0,0,799,802,1,0,0,0,800,798,1,0,0,0,800,801,1,0,0,0,801,804,1,0, + 0,0,802,800,1,0,0,0,803,784,1,0,0,0,803,795,1,0,0,0,804,805,1,0, + 0,0,805,806,5,201,0,0,806,807,3,76,38,0,807,83,1,0,0,0,808,809,5, + 222,0,0,809,813,3,120,60,0,810,812,3,86,43,0,811,810,1,0,0,0,812, + 815,1,0,0,0,813,811,1,0,0,0,813,814,1,0,0,0,814,816,1,0,0,0,815, + 813,1,0,0,0,816,817,5,238,0,0,817,818,5,214,0,0,818,837,1,0,0,0, + 819,820,5,222,0,0,820,824,3,120,60,0,821,823,3,86,43,0,822,821,1, + 0,0,0,823,826,1,0,0,0,824,822,1,0,0,0,824,825,1,0,0,0,825,827,1, + 0,0,0,826,824,1,0,0,0,827,829,5,214,0,0,828,830,3,84,42,0,829,828, + 1,0,0,0,829,830,1,0,0,0,830,831,1,0,0,0,831,832,5,222,0,0,832,833, + 5,238,0,0,833,834,3,120,60,0,834,835,5,214,0,0,835,837,1,0,0,0,836, + 808,1,0,0,0,836,819,1,0,0,0,837,85,1,0,0,0,838,839,3,120,60,0,839, + 840,5,212,0,0,840,841,5,200,0,0,841,850,1,0,0,0,842,843,3,120,60, + 0,843,844,5,212,0,0,844,845,5,218,0,0,845,846,3,76,38,0,846,847, + 5,234,0,0,847,850,1,0,0,0,848,850,3,120,60,0,849,838,1,0,0,0,849, + 842,1,0,0,0,849,848,1,0,0,0,850,87,1,0,0,0,851,856,3,90,45,0,852, + 853,5,206,0,0,853,855,3,90,45,0,854,852,1,0,0,0,855,858,1,0,0,0, + 856,854,1,0,0,0,856,857,1,0,0,0,857,89,1,0,0,0,858,856,1,0,0,0,859, + 860,3,120,60,0,860,861,5,10,0,0,861,862,5,220,0,0,862,863,3,2,1, + 0,863,864,5,236,0,0,864,870,1,0,0,0,865,866,3,76,38,0,866,867,5, + 10,0,0,867,868,3,120,60,0,868,870,1,0,0,0,869,859,1,0,0,0,869,865, + 1,0,0,0,870,91,1,0,0,0,871,879,3,124,62,0,872,873,3,100,50,0,873, + 874,5,210,0,0,874,876,1,0,0,0,875,872,1,0,0,0,875,876,1,0,0,0,876, + 877,1,0,0,0,877,879,3,94,47,0,878,871,1,0,0,0,878,875,1,0,0,0,879, + 93,1,0,0,0,880,885,3,120,60,0,881,882,5,210,0,0,882,884,3,120,60, + 0,883,881,1,0,0,0,884,887,1,0,0,0,885,883,1,0,0,0,885,886,1,0,0, + 0,886,95,1,0,0,0,887,885,1,0,0,0,888,889,6,48,-1,0,889,898,3,100, + 50,0,890,898,3,98,49,0,891,892,5,220,0,0,892,893,3,2,1,0,893,894, + 5,236,0,0,894,898,1,0,0,0,895,898,3,84,42,0,896,898,3,124,62,0,897, + 888,1,0,0,0,897,890,1,0,0,0,897,891,1,0,0,0,897,895,1,0,0,0,897, + 896,1,0,0,0,898,907,1,0,0,0,899,903,10,3,0,0,900,904,3,118,59,0, + 901,902,5,10,0,0,902,904,3,120,60,0,903,900,1,0,0,0,903,901,1,0, + 0,0,904,906,1,0,0,0,905,899,1,0,0,0,906,909,1,0,0,0,907,905,1,0, + 0,0,907,908,1,0,0,0,908,97,1,0,0,0,909,907,1,0,0,0,910,911,3,120, + 60,0,911,913,5,220,0,0,912,914,3,102,51,0,913,912,1,0,0,0,913,914, + 1,0,0,0,914,915,1,0,0,0,915,916,5,236,0,0,916,99,1,0,0,0,917,918, + 3,104,52,0,918,919,5,210,0,0,919,921,1,0,0,0,920,917,1,0,0,0,920, + 921,1,0,0,0,921,922,1,0,0,0,922,923,3,120,60,0,923,101,1,0,0,0,924, + 929,3,76,38,0,925,926,5,206,0,0,926,928,3,76,38,0,927,925,1,0,0, + 0,928,931,1,0,0,0,929,927,1,0,0,0,929,930,1,0,0,0,930,103,1,0,0, + 0,931,929,1,0,0,0,932,933,3,120,60,0,933,105,1,0,0,0,934,943,5,196, + 0,0,935,936,5,210,0,0,936,943,7,11,0,0,937,938,5,198,0,0,938,940, + 5,210,0,0,939,941,7,11,0,0,940,939,1,0,0,0,940,941,1,0,0,0,941,943, + 1,0,0,0,942,934,1,0,0,0,942,935,1,0,0,0,942,937,1,0,0,0,943,107, + 1,0,0,0,944,946,7,12,0,0,945,944,1,0,0,0,945,946,1,0,0,0,946,953, + 1,0,0,0,947,954,3,106,53,0,948,954,5,197,0,0,949,954,5,198,0,0,950, + 954,5,199,0,0,951,954,5,82,0,0,952,954,5,113,0,0,953,947,1,0,0,0, + 953,948,1,0,0,0,953,949,1,0,0,0,953,950,1,0,0,0,953,951,1,0,0,0, + 953,952,1,0,0,0,954,109,1,0,0,0,955,959,3,108,54,0,956,959,5,200, + 0,0,957,959,5,116,0,0,958,955,1,0,0,0,958,956,1,0,0,0,958,957,1, + 0,0,0,959,111,1,0,0,0,960,961,7,13,0,0,961,113,1,0,0,0,962,963,7, + 14,0,0,963,115,1,0,0,0,964,965,7,15,0,0,965,117,1,0,0,0,966,969, + 5,195,0,0,967,969,3,116,58,0,968,966,1,0,0,0,968,967,1,0,0,0,969, + 119,1,0,0,0,970,974,5,195,0,0,971,974,3,112,56,0,972,974,3,114,57, + 0,973,970,1,0,0,0,973,971,1,0,0,0,973,972,1,0,0,0,974,121,1,0,0, + 0,975,976,5,200,0,0,976,977,5,212,0,0,977,978,3,108,54,0,978,123, + 1,0,0,0,979,980,5,218,0,0,980,981,3,120,60,0,981,982,5,234,0,0,982, + 125,1,0,0,0,121,129,139,147,151,154,158,161,165,168,171,174,177, + 181,185,188,191,194,198,201,210,216,237,254,271,277,283,294,296, + 307,310,316,324,330,332,336,341,344,347,351,355,358,360,363,367, + 371,374,376,378,383,394,400,407,412,416,420,426,428,435,443,446, + 449,468,482,498,510,522,530,534,541,547,556,560,591,608,620,630, + 633,637,640,653,670,674,680,687,699,703,706,715,729,756,765,767, + 769,777,782,790,800,803,813,824,829,836,849,856,869,875,878,885, + 897,903,907,913,920,929,940,942,945,953,958,968,973 ] class HogQLParser ( Parser ): @@ -514,78 +516,79 @@ class HogQLParser ( Parser ): RULE_select = 0 RULE_selectUnionStmt = 1 RULE_selectStmtWithParens = 2 - RULE_selectStmt = 3 - RULE_withClause = 4 - RULE_topClause = 5 - RULE_fromClause = 6 - RULE_arrayJoinClause = 7 - RULE_windowClause = 8 - RULE_prewhereClause = 9 - RULE_whereClause = 10 - RULE_groupByClause = 11 - RULE_havingClause = 12 - RULE_orderByClause = 13 - RULE_projectionOrderByClause = 14 - RULE_limitAndOffsetClause = 15 - RULE_offsetOnlyClause = 16 - RULE_settingsClause = 17 - RULE_joinExpr = 18 - RULE_joinOp = 19 - RULE_joinOpCross = 20 - RULE_joinConstraintClause = 21 - RULE_sampleClause = 22 - RULE_orderExprList = 23 - RULE_orderExpr = 24 - RULE_ratioExpr = 25 - RULE_settingExprList = 26 - RULE_settingExpr = 27 - RULE_windowExpr = 28 - RULE_winPartitionByClause = 29 - RULE_winOrderByClause = 30 - RULE_winFrameClause = 31 - RULE_winFrameExtend = 32 - RULE_winFrameBound = 33 - RULE_expr = 34 - RULE_columnTypeExpr = 35 - RULE_columnExprList = 36 - RULE_columnExpr = 37 - RULE_columnArgList = 38 - RULE_columnArgExpr = 39 - RULE_columnLambdaExpr = 40 - RULE_hogqlxTagElement = 41 - RULE_hogqlxTagAttribute = 42 - RULE_withExprList = 43 - RULE_withExpr = 44 - RULE_columnIdentifier = 45 - RULE_nestedIdentifier = 46 - RULE_tableExpr = 47 - RULE_tableFunctionExpr = 48 - RULE_tableIdentifier = 49 - RULE_tableArgList = 50 - RULE_databaseIdentifier = 51 - RULE_floatingLiteral = 52 - RULE_numberLiteral = 53 - RULE_literal = 54 - RULE_interval = 55 - RULE_keyword = 56 - RULE_keywordForAlias = 57 - RULE_alias = 58 - RULE_identifier = 59 - RULE_enumValue = 60 - RULE_placeholder = 61 + RULE_selectStmtWithPlaceholder = 3 + RULE_selectStmt = 4 + RULE_withClause = 5 + RULE_topClause = 6 + RULE_fromClause = 7 + RULE_arrayJoinClause = 8 + RULE_windowClause = 9 + RULE_prewhereClause = 10 + RULE_whereClause = 11 + RULE_groupByClause = 12 + RULE_havingClause = 13 + RULE_orderByClause = 14 + RULE_projectionOrderByClause = 15 + RULE_limitAndOffsetClause = 16 + RULE_offsetOnlyClause = 17 + RULE_settingsClause = 18 + RULE_joinExpr = 19 + RULE_joinOp = 20 + RULE_joinOpCross = 21 + RULE_joinConstraintClause = 22 + RULE_sampleClause = 23 + RULE_orderExprList = 24 + RULE_orderExpr = 25 + RULE_ratioExpr = 26 + RULE_settingExprList = 27 + RULE_settingExpr = 28 + RULE_windowExpr = 29 + RULE_winPartitionByClause = 30 + RULE_winOrderByClause = 31 + RULE_winFrameClause = 32 + RULE_winFrameExtend = 33 + RULE_winFrameBound = 34 + RULE_expr = 35 + RULE_columnTypeExpr = 36 + RULE_columnExprList = 37 + RULE_columnExpr = 38 + RULE_columnArgList = 39 + RULE_columnArgExpr = 40 + RULE_columnLambdaExpr = 41 + RULE_hogqlxTagElement = 42 + RULE_hogqlxTagAttribute = 43 + RULE_withExprList = 44 + RULE_withExpr = 45 + RULE_columnIdentifier = 46 + RULE_nestedIdentifier = 47 + RULE_tableExpr = 48 + RULE_tableFunctionExpr = 49 + RULE_tableIdentifier = 50 + RULE_tableArgList = 51 + RULE_databaseIdentifier = 52 + RULE_floatingLiteral = 53 + RULE_numberLiteral = 54 + RULE_literal = 55 + RULE_interval = 56 + RULE_keyword = 57 + RULE_keywordForAlias = 58 + RULE_alias = 59 + RULE_identifier = 60 + RULE_enumValue = 61 + RULE_placeholder = 62 ruleNames = [ "select", "selectUnionStmt", "selectStmtWithParens", - "selectStmt", "withClause", "topClause", "fromClause", - "arrayJoinClause", "windowClause", "prewhereClause", - "whereClause", "groupByClause", "havingClause", "orderByClause", - "projectionOrderByClause", "limitAndOffsetClause", "offsetOnlyClause", - "settingsClause", "joinExpr", "joinOp", "joinOpCross", - "joinConstraintClause", "sampleClause", "orderExprList", - "orderExpr", "ratioExpr", "settingExprList", "settingExpr", - "windowExpr", "winPartitionByClause", "winOrderByClause", - "winFrameClause", "winFrameExtend", "winFrameBound", - "expr", "columnTypeExpr", "columnExprList", "columnExpr", - "columnArgList", "columnArgExpr", "columnLambdaExpr", + "selectStmtWithPlaceholder", "selectStmt", "withClause", + "topClause", "fromClause", "arrayJoinClause", "windowClause", + "prewhereClause", "whereClause", "groupByClause", "havingClause", + "orderByClause", "projectionOrderByClause", "limitAndOffsetClause", + "offsetOnlyClause", "settingsClause", "joinExpr", "joinOp", + "joinOpCross", "joinConstraintClause", "sampleClause", + "orderExprList", "orderExpr", "ratioExpr", "settingExprList", + "settingExpr", "windowExpr", "winPartitionByClause", + "winOrderByClause", "winFrameClause", "winFrameExtend", + "winFrameBound", "expr", "columnTypeExpr", "columnExprList", + "columnExpr", "columnArgList", "columnArgExpr", "columnLambdaExpr", "hogqlxTagElement", "hogqlxTagAttribute", "withExprList", "withExpr", "columnIdentifier", "nestedIdentifier", "tableExpr", "tableFunctionExpr", "tableIdentifier", "tableArgList", @@ -886,26 +889,26 @@ def select(self): self.enterRule(localctx, 0, self.RULE_select) try: self.enterOuterAlt(localctx, 1) - self.state = 127 + self.state = 129 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,0,self._ctx) if la_ == 1: - self.state = 124 + self.state = 126 self.selectUnionStmt() pass elif la_ == 2: - self.state = 125 + self.state = 127 self.selectStmt() pass elif la_ == 3: - self.state = 126 + self.state = 128 self.hogqlxTagElement() pass - self.state = 129 + self.state = 131 self.match(HogQLParser.EOF) except RecognitionException as re: localctx.exception = re @@ -961,19 +964,19 @@ def selectUnionStmt(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 131 + self.state = 133 self.selectStmtWithParens() - self.state = 137 + self.state = 139 self._errHandler.sync(self) _la = self._input.LA(1) while _la==176: - self.state = 132 + self.state = 134 self.match(HogQLParser.UNION) - self.state = 133 + self.state = 135 self.match(HogQLParser.ALL) - self.state = 134 + self.state = 136 self.selectStmtWithParens() - self.state = 139 + self.state = 141 self._errHandler.sync(self) _la = self._input.LA(1) @@ -993,8 +996,8 @@ def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser - def selectStmt(self): - return self.getTypedRuleContext(HogQLParser.SelectStmtContext,0) + def selectStmtWithPlaceholder(self): + return self.getTypedRuleContext(HogQLParser.SelectStmtWithPlaceholderContext,0) def LPAREN(self): @@ -1024,21 +1027,21 @@ def selectStmtWithParens(self): localctx = HogQLParser.SelectStmtWithParensContext(self, self._ctx, self.state) self.enterRule(localctx, 4, self.RULE_selectStmtWithParens) try: - self.state = 145 + self.state = 147 self._errHandler.sync(self) token = self._input.LA(1) - if token in [146, 189]: + if token in [146, 189, 218]: self.enterOuterAlt(localctx, 1) - self.state = 140 - self.selectStmt() + self.state = 142 + self.selectStmtWithPlaceholder() pass elif token in [220]: self.enterOuterAlt(localctx, 2) - self.state = 141 + self.state = 143 self.match(HogQLParser.LPAREN) - self.state = 142 + self.state = 144 self.selectUnionStmt() - self.state = 143 + self.state = 145 self.match(HogQLParser.RPAREN) pass else: @@ -1053,6 +1056,63 @@ def selectStmtWithParens(self): return localctx + class SelectStmtWithPlaceholderContext(ParserRuleContext): + __slots__ = 'parser' + + def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): + super().__init__(parent, invokingState) + self.parser = parser + + def selectStmt(self): + return self.getTypedRuleContext(HogQLParser.SelectStmtContext,0) + + + def placeholder(self): + return self.getTypedRuleContext(HogQLParser.PlaceholderContext,0) + + + def getRuleIndex(self): + return HogQLParser.RULE_selectStmtWithPlaceholder + + def accept(self, visitor:ParseTreeVisitor): + if hasattr( visitor, "visitSelectStmtWithPlaceholder" ): + return visitor.visitSelectStmtWithPlaceholder(self) + else: + return visitor.visitChildren(self) + + + + + def selectStmtWithPlaceholder(self): + + localctx = HogQLParser.SelectStmtWithPlaceholderContext(self, self._ctx, self.state) + self.enterRule(localctx, 6, self.RULE_selectStmtWithPlaceholder) + try: + self.state = 151 + self._errHandler.sync(self) + token = self._input.LA(1) + if token in [146, 189]: + self.enterOuterAlt(localctx, 1) + self.state = 149 + self.selectStmt() + pass + elif token in [218]: + self.enterOuterAlt(localctx, 2) + self.state = 150 + self.placeholder() + pass + else: + raise NoViableAltException(self) + + except RecognitionException as re: + localctx.exception = re + self._errHandler.reportError(self, re) + self._errHandler.recover(self, re) + finally: + self.exitRule() + return localctx + + class SelectStmtContext(ParserRuleContext): __slots__ = 'parser' @@ -1156,85 +1216,85 @@ def accept(self, visitor:ParseTreeVisitor): def selectStmt(self): localctx = HogQLParser.SelectStmtContext(self, self._ctx, self.state) - self.enterRule(localctx, 6, self.RULE_selectStmt) + self.enterRule(localctx, 8, self.RULE_selectStmt) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 148 + self.state = 154 self._errHandler.sync(self) _la = self._input.LA(1) if _la==189: - self.state = 147 + self.state = 153 localctx.with_ = self.withClause() - self.state = 150 + self.state = 156 self.match(HogQLParser.SELECT) - self.state = 152 + self.state = 158 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,4,self._ctx) + la_ = self._interp.adaptivePredict(self._input,5,self._ctx) if la_ == 1: - self.state = 151 + self.state = 157 self.match(HogQLParser.DISTINCT) - self.state = 155 + self.state = 161 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,5,self._ctx) + la_ = self._interp.adaptivePredict(self._input,6,self._ctx) if la_ == 1: - self.state = 154 + self.state = 160 self.topClause() - self.state = 157 + self.state = 163 localctx.columns = self.columnExprList() - self.state = 159 + self.state = 165 self._errHandler.sync(self) _la = self._input.LA(1) if _la==68: - self.state = 158 + self.state = 164 localctx.from_ = self.fromClause() - self.state = 162 + self.state = 168 self._errHandler.sync(self) _la = self._input.LA(1) if _la==9 or _la==84 or _la==96: - self.state = 161 + self.state = 167 self.arrayJoinClause() - self.state = 165 + self.state = 171 self._errHandler.sync(self) _la = self._input.LA(1) if _la==129: - self.state = 164 + self.state = 170 self.prewhereClause() - self.state = 168 + self.state = 174 self._errHandler.sync(self) _la = self._input.LA(1) if _la==187: - self.state = 167 + self.state = 173 localctx.where = self.whereClause() - self.state = 171 + self.state = 177 self._errHandler.sync(self) _la = self._input.LA(1) if _la==73: - self.state = 170 + self.state = 176 self.groupByClause() - self.state = 175 + self.state = 181 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,11,self._ctx) + la_ = self._interp.adaptivePredict(self._input,12,self._ctx) if la_ == 1: - self.state = 173 + self.state = 179 self.match(HogQLParser.WITH) - self.state = 174 + self.state = 180 _la = self._input.LA(1) if not(_la==32 or _la==141): self._errHandler.recoverInline(self) @@ -1243,60 +1303,60 @@ def selectStmt(self): self.consume() - self.state = 179 + self.state = 185 self._errHandler.sync(self) _la = self._input.LA(1) if _la==189: - self.state = 177 + self.state = 183 self.match(HogQLParser.WITH) - self.state = 178 + self.state = 184 self.match(HogQLParser.TOTALS) - self.state = 182 + self.state = 188 self._errHandler.sync(self) _la = self._input.LA(1) if _la==74: - self.state = 181 + self.state = 187 self.havingClause() - self.state = 185 + self.state = 191 self._errHandler.sync(self) _la = self._input.LA(1) if _la==188: - self.state = 184 + self.state = 190 self.windowClause() - self.state = 188 + self.state = 194 self._errHandler.sync(self) _la = self._input.LA(1) if _la==122: - self.state = 187 + self.state = 193 self.orderByClause() - self.state = 192 + self.state = 198 self._errHandler.sync(self) token = self._input.LA(1) if token in [99]: - self.state = 190 + self.state = 196 self.limitAndOffsetClause() pass elif token in [118]: - self.state = 191 + self.state = 197 self.offsetOnlyClause() pass elif token in [-1, 150, 176, 236]: pass else: pass - self.state = 195 + self.state = 201 self._errHandler.sync(self) _la = self._input.LA(1) if _la==150: - self.state = 194 + self.state = 200 self.settingsClause() @@ -1338,12 +1398,12 @@ def accept(self, visitor:ParseTreeVisitor): def withClause(self): localctx = HogQLParser.WithClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 8, self.RULE_withClause) + self.enterRule(localctx, 10, self.RULE_withClause) try: self.enterOuterAlt(localctx, 1) - self.state = 197 + self.state = 203 self.match(HogQLParser.WITH) - self.state = 198 + self.state = 204 self.withExprList() except RecognitionException as re: localctx.exception = re @@ -1388,20 +1448,20 @@ def accept(self, visitor:ParseTreeVisitor): def topClause(self): localctx = HogQLParser.TopClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 10, self.RULE_topClause) + self.enterRule(localctx, 12, self.RULE_topClause) try: self.enterOuterAlt(localctx, 1) - self.state = 200 + self.state = 206 self.match(HogQLParser.TOP) - self.state = 201 + self.state = 207 self.match(HogQLParser.DECIMAL_LITERAL) - self.state = 204 + self.state = 210 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,18,self._ctx) + la_ = self._interp.adaptivePredict(self._input,19,self._ctx) if la_ == 1: - self.state = 202 + self.state = 208 self.match(HogQLParser.WITH) - self.state = 203 + self.state = 209 self.match(HogQLParser.TIES) @@ -1443,12 +1503,12 @@ def accept(self, visitor:ParseTreeVisitor): def fromClause(self): localctx = HogQLParser.FromClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 12, self.RULE_fromClause) + self.enterRule(localctx, 14, self.RULE_fromClause) try: self.enterOuterAlt(localctx, 1) - self.state = 206 + self.state = 212 self.match(HogQLParser.FROM) - self.state = 207 + self.state = 213 self.joinExpr(0) except RecognitionException as re: localctx.exception = re @@ -1497,15 +1557,15 @@ def accept(self, visitor:ParseTreeVisitor): def arrayJoinClause(self): localctx = HogQLParser.ArrayJoinClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 14, self.RULE_arrayJoinClause) + self.enterRule(localctx, 16, self.RULE_arrayJoinClause) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 210 + self.state = 216 self._errHandler.sync(self) _la = self._input.LA(1) if _la==84 or _la==96: - self.state = 209 + self.state = 215 _la = self._input.LA(1) if not(_la==84 or _la==96): self._errHandler.recoverInline(self) @@ -1514,11 +1574,11 @@ def arrayJoinClause(self): self.consume() - self.state = 212 + self.state = 218 self.match(HogQLParser.ARRAY) - self.state = 213 + self.state = 219 self.match(HogQLParser.JOIN) - self.state = 214 + self.state = 220 self.columnExprList() except RecognitionException as re: localctx.exception = re @@ -1592,39 +1652,39 @@ def accept(self, visitor:ParseTreeVisitor): def windowClause(self): localctx = HogQLParser.WindowClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 16, self.RULE_windowClause) + self.enterRule(localctx, 18, self.RULE_windowClause) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 216 + self.state = 222 self.match(HogQLParser.WINDOW) - self.state = 217 + self.state = 223 self.identifier() - self.state = 218 + self.state = 224 self.match(HogQLParser.AS) - self.state = 219 + self.state = 225 self.match(HogQLParser.LPAREN) - self.state = 220 + self.state = 226 self.windowExpr() - self.state = 221 + self.state = 227 self.match(HogQLParser.RPAREN) - self.state = 231 + self.state = 237 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 222 + self.state = 228 self.match(HogQLParser.COMMA) - self.state = 223 + self.state = 229 self.identifier() - self.state = 224 + self.state = 230 self.match(HogQLParser.AS) - self.state = 225 + self.state = 231 self.match(HogQLParser.LPAREN) - self.state = 226 + self.state = 232 self.windowExpr() - self.state = 227 - self.match(HogQLParser.RPAREN) self.state = 233 + self.match(HogQLParser.RPAREN) + self.state = 239 self._errHandler.sync(self) _la = self._input.LA(1) @@ -1666,12 +1726,12 @@ def accept(self, visitor:ParseTreeVisitor): def prewhereClause(self): localctx = HogQLParser.PrewhereClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 18, self.RULE_prewhereClause) + self.enterRule(localctx, 20, self.RULE_prewhereClause) try: self.enterOuterAlt(localctx, 1) - self.state = 234 + self.state = 240 self.match(HogQLParser.PREWHERE) - self.state = 235 + self.state = 241 self.columnExpr(0) except RecognitionException as re: localctx.exception = re @@ -1711,12 +1771,12 @@ def accept(self, visitor:ParseTreeVisitor): def whereClause(self): localctx = HogQLParser.WhereClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 20, self.RULE_whereClause) + self.enterRule(localctx, 22, self.RULE_whereClause) try: self.enterOuterAlt(localctx, 1) - self.state = 237 + self.state = 243 self.match(HogQLParser.WHERE) - self.state = 238 + self.state = 244 self.columnExpr(0) except RecognitionException as re: localctx.exception = re @@ -1771,35 +1831,35 @@ def accept(self, visitor:ParseTreeVisitor): def groupByClause(self): localctx = HogQLParser.GroupByClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 22, self.RULE_groupByClause) + self.enterRule(localctx, 24, self.RULE_groupByClause) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 240 + self.state = 246 self.match(HogQLParser.GROUP) - self.state = 241 + self.state = 247 self.match(HogQLParser.BY) - self.state = 248 + self.state = 254 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,21,self._ctx) + la_ = self._interp.adaptivePredict(self._input,22,self._ctx) if la_ == 1: - self.state = 242 + self.state = 248 _la = self._input.LA(1) if not(_la==32 or _la==141): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 243 + self.state = 249 self.match(HogQLParser.LPAREN) - self.state = 244 + self.state = 250 self.columnExprList() - self.state = 245 + self.state = 251 self.match(HogQLParser.RPAREN) pass elif la_ == 2: - self.state = 247 + self.state = 253 self.columnExprList() pass @@ -1842,12 +1902,12 @@ def accept(self, visitor:ParseTreeVisitor): def havingClause(self): localctx = HogQLParser.HavingClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 24, self.RULE_havingClause) + self.enterRule(localctx, 26, self.RULE_havingClause) try: self.enterOuterAlt(localctx, 1) - self.state = 250 + self.state = 256 self.match(HogQLParser.HAVING) - self.state = 251 + self.state = 257 self.columnExpr(0) except RecognitionException as re: localctx.exception = re @@ -1890,14 +1950,14 @@ def accept(self, visitor:ParseTreeVisitor): def orderByClause(self): localctx = HogQLParser.OrderByClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 26, self.RULE_orderByClause) + self.enterRule(localctx, 28, self.RULE_orderByClause) try: self.enterOuterAlt(localctx, 1) - self.state = 253 + self.state = 259 self.match(HogQLParser.ORDER) - self.state = 254 + self.state = 260 self.match(HogQLParser.BY) - self.state = 255 + self.state = 261 self.orderExprList() except RecognitionException as re: localctx.exception = re @@ -1940,14 +2000,14 @@ def accept(self, visitor:ParseTreeVisitor): def projectionOrderByClause(self): localctx = HogQLParser.ProjectionOrderByClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 28, self.RULE_projectionOrderByClause) + self.enterRule(localctx, 30, self.RULE_projectionOrderByClause) try: self.enterOuterAlt(localctx, 1) - self.state = 257 + self.state = 263 self.match(HogQLParser.ORDER) - self.state = 258 + self.state = 264 self.match(HogQLParser.BY) - self.state = 259 + self.state = 265 self.columnExprList() except RecognitionException as re: localctx.exception = re @@ -2009,41 +2069,41 @@ def accept(self, visitor:ParseTreeVisitor): def limitAndOffsetClause(self): localctx = HogQLParser.LimitAndOffsetClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 30, self.RULE_limitAndOffsetClause) + self.enterRule(localctx, 32, self.RULE_limitAndOffsetClause) self._la = 0 # Token type try: - self.state = 290 + self.state = 296 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,26,self._ctx) + la_ = self._interp.adaptivePredict(self._input,27,self._ctx) if la_ == 1: self.enterOuterAlt(localctx, 1) - self.state = 261 + self.state = 267 self.match(HogQLParser.LIMIT) - self.state = 262 + self.state = 268 self.columnExpr(0) - self.state = 265 + self.state = 271 self._errHandler.sync(self) _la = self._input.LA(1) if _la==206: - self.state = 263 + self.state = 269 self.match(HogQLParser.COMMA) - self.state = 264 + self.state = 270 self.columnExpr(0) - self.state = 271 + self.state = 277 self._errHandler.sync(self) token = self._input.LA(1) if token in [189]: - self.state = 267 + self.state = 273 self.match(HogQLParser.WITH) - self.state = 268 + self.state = 274 self.match(HogQLParser.TIES) pass elif token in [18]: - self.state = 269 + self.state = 275 self.match(HogQLParser.BY) - self.state = 270 + self.state = 276 self.columnExprList() pass elif token in [-1, 150, 176, 236]: @@ -2054,43 +2114,43 @@ def limitAndOffsetClause(self): elif la_ == 2: self.enterOuterAlt(localctx, 2) - self.state = 273 + self.state = 279 self.match(HogQLParser.LIMIT) - self.state = 274 + self.state = 280 self.columnExpr(0) - self.state = 277 + self.state = 283 self._errHandler.sync(self) _la = self._input.LA(1) if _la==189: - self.state = 275 + self.state = 281 self.match(HogQLParser.WITH) - self.state = 276 + self.state = 282 self.match(HogQLParser.TIES) - self.state = 279 + self.state = 285 self.match(HogQLParser.OFFSET) - self.state = 280 + self.state = 286 self.columnExpr(0) pass elif la_ == 3: self.enterOuterAlt(localctx, 3) - self.state = 282 + self.state = 288 self.match(HogQLParser.LIMIT) - self.state = 283 + self.state = 289 self.columnExpr(0) - self.state = 284 + self.state = 290 self.match(HogQLParser.OFFSET) - self.state = 285 + self.state = 291 self.columnExpr(0) - self.state = 288 + self.state = 294 self._errHandler.sync(self) _la = self._input.LA(1) if _la==18: - self.state = 286 + self.state = 292 self.match(HogQLParser.BY) - self.state = 287 + self.state = 293 self.columnExprList() @@ -2135,12 +2195,12 @@ def accept(self, visitor:ParseTreeVisitor): def offsetOnlyClause(self): localctx = HogQLParser.OffsetOnlyClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 32, self.RULE_offsetOnlyClause) + self.enterRule(localctx, 34, self.RULE_offsetOnlyClause) try: self.enterOuterAlt(localctx, 1) - self.state = 292 + self.state = 298 self.match(HogQLParser.OFFSET) - self.state = 293 + self.state = 299 self.columnExpr(0) except RecognitionException as re: localctx.exception = re @@ -2180,12 +2240,12 @@ def accept(self, visitor:ParseTreeVisitor): def settingsClause(self): localctx = HogQLParser.SettingsClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 34, self.RULE_settingsClause) + self.enterRule(localctx, 36, self.RULE_settingsClause) try: self.enterOuterAlt(localctx, 1) - self.state = 295 + self.state = 301 self.match(HogQLParser.SETTINGS) - self.state = 296 + self.state = 302 self.settingExprList() except RecognitionException as re: localctx.exception = re @@ -2312,34 +2372,34 @@ def joinExpr(self, _p:int=0): _parentState = self.state localctx = HogQLParser.JoinExprContext(self, self._ctx, _parentState) _prevctx = localctx - _startState = 36 - self.enterRecursionRule(localctx, 36, self.RULE_joinExpr, _p) + _startState = 38 + self.enterRecursionRule(localctx, 38, self.RULE_joinExpr, _p) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 310 + self.state = 316 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,29,self._ctx) + la_ = self._interp.adaptivePredict(self._input,30,self._ctx) if la_ == 1: localctx = HogQLParser.JoinExprTableContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 299 + self.state = 305 self.tableExpr(0) - self.state = 301 + self.state = 307 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,27,self._ctx) + la_ = self._interp.adaptivePredict(self._input,28,self._ctx) if la_ == 1: - self.state = 300 + self.state = 306 self.match(HogQLParser.FINAL) - self.state = 304 + self.state = 310 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,28,self._ctx) + la_ = self._interp.adaptivePredict(self._input,29,self._ctx) if la_ == 1: - self.state = 303 + self.state = 309 self.sampleClause() @@ -2349,67 +2409,67 @@ def joinExpr(self, _p:int=0): localctx = HogQLParser.JoinExprParensContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 306 + self.state = 312 self.match(HogQLParser.LPAREN) - self.state = 307 + self.state = 313 self.joinExpr(0) - self.state = 308 + self.state = 314 self.match(HogQLParser.RPAREN) pass self._ctx.stop = self._input.LT(-1) - self.state = 326 + self.state = 332 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,32,self._ctx) + _alt = self._interp.adaptivePredict(self._input,33,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: if self._parseListeners is not None: self.triggerExitRuleEvent() _prevctx = localctx - self.state = 324 + self.state = 330 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,31,self._ctx) + la_ = self._interp.adaptivePredict(self._input,32,self._ctx) if la_ == 1: localctx = HogQLParser.JoinExprCrossOpContext(self, HogQLParser.JoinExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_joinExpr) - self.state = 312 + self.state = 318 if not self.precpred(self._ctx, 3): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 3)") - self.state = 313 + self.state = 319 self.joinOpCross() - self.state = 314 + self.state = 320 self.joinExpr(4) pass elif la_ == 2: localctx = HogQLParser.JoinExprOpContext(self, HogQLParser.JoinExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_joinExpr) - self.state = 316 + self.state = 322 if not self.precpred(self._ctx, 4): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 4)") - self.state = 318 + self.state = 324 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & 4496) != 0) or ((((_la - 69)) & ~0x3f) == 0 and ((1 << (_la - 69)) & 134250497) != 0) or _la==140 or _la==147: - self.state = 317 + self.state = 323 self.joinOp() - self.state = 320 + self.state = 326 self.match(HogQLParser.JOIN) - self.state = 321 + self.state = 327 self.joinExpr(0) - self.state = 322 + self.state = 328 self.joinConstraintClause() pass - self.state = 328 + self.state = 334 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,32,self._ctx) + _alt = self._interp.adaptivePredict(self._input,33,self._ctx) except RecognitionException as re: localctx.exception = re @@ -2515,24 +2575,24 @@ def accept(self, visitor:ParseTreeVisitor): def joinOp(self): localctx = HogQLParser.JoinOpContext(self, self._ctx, self.state) - self.enterRule(localctx, 38, self.RULE_joinOp) + self.enterRule(localctx, 40, self.RULE_joinOp) self._la = 0 # Token type try: - self.state = 372 + self.state = 378 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,46,self._ctx) + la_ = self._interp.adaptivePredict(self._input,47,self._ctx) if la_ == 1: localctx = HogQLParser.JoinOpInnerContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 338 + self.state = 344 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,35,self._ctx) + la_ = self._interp.adaptivePredict(self._input,36,self._ctx) if la_ == 1: - self.state = 330 + self.state = 336 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & 4368) != 0): - self.state = 329 + self.state = 335 _la = self._input.LA(1) if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 4368) != 0)): self._errHandler.recoverInline(self) @@ -2541,18 +2601,18 @@ def joinOp(self): self.consume() - self.state = 332 + self.state = 338 self.match(HogQLParser.INNER) pass elif la_ == 2: - self.state = 333 + self.state = 339 self.match(HogQLParser.INNER) - self.state = 335 + self.state = 341 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & 4368) != 0): - self.state = 334 + self.state = 340 _la = self._input.LA(1) if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 4368) != 0)): self._errHandler.recoverInline(self) @@ -2564,7 +2624,7 @@ def joinOp(self): pass elif la_ == 3: - self.state = 337 + self.state = 343 _la = self._input.LA(1) if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 4368) != 0)): self._errHandler.recoverInline(self) @@ -2579,15 +2639,15 @@ def joinOp(self): elif la_ == 2: localctx = HogQLParser.JoinOpLeftRightContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 354 + self.state = 360 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,40,self._ctx) + la_ = self._interp.adaptivePredict(self._input,41,self._ctx) if la_ == 1: - self.state = 341 + self.state = 347 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & 4496) != 0) or _la==147: - self.state = 340 + self.state = 346 _la = self._input.LA(1) if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 4496) != 0) or _la==147): self._errHandler.recoverInline(self) @@ -2596,44 +2656,44 @@ def joinOp(self): self.consume() - self.state = 343 + self.state = 349 _la = self._input.LA(1) if not(_la==96 or _la==140): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 345 + self.state = 351 self._errHandler.sync(self) _la = self._input.LA(1) if _la==123: - self.state = 344 + self.state = 350 self.match(HogQLParser.OUTER) pass elif la_ == 2: - self.state = 347 + self.state = 353 _la = self._input.LA(1) if not(_la==96 or _la==140): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 349 + self.state = 355 self._errHandler.sync(self) _la = self._input.LA(1) if _la==123: - self.state = 348 + self.state = 354 self.match(HogQLParser.OUTER) - self.state = 352 + self.state = 358 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & 4496) != 0) or _la==147: - self.state = 351 + self.state = 357 _la = self._input.LA(1) if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 4496) != 0) or _la==147): self._errHandler.recoverInline(self) @@ -2650,15 +2710,15 @@ def joinOp(self): elif la_ == 3: localctx = HogQLParser.JoinOpFullContext(self, localctx) self.enterOuterAlt(localctx, 3) - self.state = 370 + self.state = 376 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,45,self._ctx) + la_ = self._interp.adaptivePredict(self._input,46,self._ctx) if la_ == 1: - self.state = 357 + self.state = 363 self._errHandler.sync(self) _la = self._input.LA(1) if _la==4 or _la==8: - self.state = 356 + self.state = 362 _la = self._input.LA(1) if not(_la==4 or _la==8): self._errHandler.recoverInline(self) @@ -2667,34 +2727,34 @@ def joinOp(self): self.consume() - self.state = 359 + self.state = 365 self.match(HogQLParser.FULL) - self.state = 361 + self.state = 367 self._errHandler.sync(self) _la = self._input.LA(1) if _la==123: - self.state = 360 + self.state = 366 self.match(HogQLParser.OUTER) pass elif la_ == 2: - self.state = 363 + self.state = 369 self.match(HogQLParser.FULL) - self.state = 365 + self.state = 371 self._errHandler.sync(self) _la = self._input.LA(1) if _la==123: - self.state = 364 + self.state = 370 self.match(HogQLParser.OUTER) - self.state = 368 + self.state = 374 self._errHandler.sync(self) _la = self._input.LA(1) if _la==4 or _la==8: - self.state = 367 + self.state = 373 _la = self._input.LA(1) if not(_la==4 or _la==8): self._errHandler.recoverInline(self) @@ -2749,21 +2809,21 @@ def accept(self, visitor:ParseTreeVisitor): def joinOpCross(self): localctx = HogQLParser.JoinOpCrossContext(self, self._ctx, self.state) - self.enterRule(localctx, 40, self.RULE_joinOpCross) + self.enterRule(localctx, 42, self.RULE_joinOpCross) try: - self.state = 377 + self.state = 383 self._errHandler.sync(self) token = self._input.LA(1) if token in [31]: self.enterOuterAlt(localctx, 1) - self.state = 374 + self.state = 380 self.match(HogQLParser.CROSS) - self.state = 375 + self.state = 381 self.match(HogQLParser.JOIN) pass elif token in [206]: self.enterOuterAlt(localctx, 2) - self.state = 376 + self.state = 382 self.match(HogQLParser.COMMA) pass else: @@ -2816,36 +2876,36 @@ def accept(self, visitor:ParseTreeVisitor): def joinConstraintClause(self): localctx = HogQLParser.JoinConstraintClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 42, self.RULE_joinConstraintClause) + self.enterRule(localctx, 44, self.RULE_joinConstraintClause) try: - self.state = 388 + self.state = 394 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,48,self._ctx) + la_ = self._interp.adaptivePredict(self._input,49,self._ctx) if la_ == 1: self.enterOuterAlt(localctx, 1) - self.state = 379 + self.state = 385 self.match(HogQLParser.ON) - self.state = 380 + self.state = 386 self.columnExprList() pass elif la_ == 2: self.enterOuterAlt(localctx, 2) - self.state = 381 + self.state = 387 self.match(HogQLParser.USING) - self.state = 382 + self.state = 388 self.match(HogQLParser.LPAREN) - self.state = 383 + self.state = 389 self.columnExprList() - self.state = 384 + self.state = 390 self.match(HogQLParser.RPAREN) pass elif la_ == 3: self.enterOuterAlt(localctx, 3) - self.state = 386 + self.state = 392 self.match(HogQLParser.USING) - self.state = 387 + self.state = 393 self.columnExprList() pass @@ -2894,20 +2954,20 @@ def accept(self, visitor:ParseTreeVisitor): def sampleClause(self): localctx = HogQLParser.SampleClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 44, self.RULE_sampleClause) + self.enterRule(localctx, 46, self.RULE_sampleClause) try: self.enterOuterAlt(localctx, 1) - self.state = 390 + self.state = 396 self.match(HogQLParser.SAMPLE) - self.state = 391 + self.state = 397 self.ratioExpr() - self.state = 394 + self.state = 400 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,49,self._ctx) + la_ = self._interp.adaptivePredict(self._input,50,self._ctx) if la_ == 1: - self.state = 392 + self.state = 398 self.match(HogQLParser.OFFSET) - self.state = 393 + self.state = 399 self.ratioExpr() @@ -2955,21 +3015,21 @@ def accept(self, visitor:ParseTreeVisitor): def orderExprList(self): localctx = HogQLParser.OrderExprListContext(self, self._ctx, self.state) - self.enterRule(localctx, 46, self.RULE_orderExprList) + self.enterRule(localctx, 48, self.RULE_orderExprList) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 396 + self.state = 402 self.orderExpr() - self.state = 401 + self.state = 407 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 397 + self.state = 403 self.match(HogQLParser.COMMA) - self.state = 398 + self.state = 404 self.orderExpr() - self.state = 403 + self.state = 409 self._errHandler.sync(self) _la = self._input.LA(1) @@ -3032,17 +3092,17 @@ def accept(self, visitor:ParseTreeVisitor): def orderExpr(self): localctx = HogQLParser.OrderExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 48, self.RULE_orderExpr) + self.enterRule(localctx, 50, self.RULE_orderExpr) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 404 + self.state = 410 self.columnExpr(0) - self.state = 406 + self.state = 412 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & 13194139535360) != 0): - self.state = 405 + self.state = 411 _la = self._input.LA(1) if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 13194139535360) != 0)): self._errHandler.recoverInline(self) @@ -3051,13 +3111,13 @@ def orderExpr(self): self.consume() - self.state = 410 + self.state = 416 self._errHandler.sync(self) _la = self._input.LA(1) if _la==117: - self.state = 408 + self.state = 414 self.match(HogQLParser.NULLS) - self.state = 409 + self.state = 415 _la = self._input.LA(1) if not(_la==62 or _la==93): self._errHandler.recoverInline(self) @@ -3066,13 +3126,13 @@ def orderExpr(self): self.consume() - self.state = 414 + self.state = 420 self._errHandler.sync(self) _la = self._input.LA(1) if _la==26: - self.state = 412 + self.state = 418 self.match(HogQLParser.COLLATE) - self.state = 413 + self.state = 419 self.match(HogQLParser.STRING_LITERAL) @@ -3121,27 +3181,27 @@ def accept(self, visitor:ParseTreeVisitor): def ratioExpr(self): localctx = HogQLParser.RatioExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 50, self.RULE_ratioExpr) + self.enterRule(localctx, 52, self.RULE_ratioExpr) try: - self.state = 422 + self.state = 428 self._errHandler.sync(self) token = self._input.LA(1) if token in [218]: self.enterOuterAlt(localctx, 1) - self.state = 416 + self.state = 422 self.placeholder() pass elif token in [82, 113, 196, 197, 198, 199, 208, 210, 228]: self.enterOuterAlt(localctx, 2) - self.state = 417 + self.state = 423 self.numberLiteral() - self.state = 420 + self.state = 426 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,54,self._ctx) + la_ = self._interp.adaptivePredict(self._input,55,self._ctx) if la_ == 1: - self.state = 418 + self.state = 424 self.match(HogQLParser.SLASH) - self.state = 419 + self.state = 425 self.numberLiteral() @@ -3193,21 +3253,21 @@ def accept(self, visitor:ParseTreeVisitor): def settingExprList(self): localctx = HogQLParser.SettingExprListContext(self, self._ctx, self.state) - self.enterRule(localctx, 52, self.RULE_settingExprList) + self.enterRule(localctx, 54, self.RULE_settingExprList) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 424 + self.state = 430 self.settingExpr() - self.state = 429 + self.state = 435 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 425 + self.state = 431 self.match(HogQLParser.COMMA) - self.state = 426 + self.state = 432 self.settingExpr() - self.state = 431 + self.state = 437 self._errHandler.sync(self) _la = self._input.LA(1) @@ -3253,14 +3313,14 @@ def accept(self, visitor:ParseTreeVisitor): def settingExpr(self): localctx = HogQLParser.SettingExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 54, self.RULE_settingExpr) + self.enterRule(localctx, 56, self.RULE_settingExpr) try: self.enterOuterAlt(localctx, 1) - self.state = 432 + self.state = 438 self.identifier() - self.state = 433 + self.state = 439 self.match(HogQLParser.EQ_SINGLE) - self.state = 434 + self.state = 440 self.literal() except RecognitionException as re: localctx.exception = re @@ -3305,31 +3365,31 @@ def accept(self, visitor:ParseTreeVisitor): def windowExpr(self): localctx = HogQLParser.WindowExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 56, self.RULE_windowExpr) + self.enterRule(localctx, 58, self.RULE_windowExpr) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 437 + self.state = 443 self._errHandler.sync(self) _la = self._input.LA(1) if _la==126: - self.state = 436 + self.state = 442 self.winPartitionByClause() - self.state = 440 + self.state = 446 self._errHandler.sync(self) _la = self._input.LA(1) if _la==122: - self.state = 439 + self.state = 445 self.winOrderByClause() - self.state = 443 + self.state = 449 self._errHandler.sync(self) _la = self._input.LA(1) if _la==133 or _la==143: - self.state = 442 + self.state = 448 self.winFrameClause() @@ -3374,14 +3434,14 @@ def accept(self, visitor:ParseTreeVisitor): def winPartitionByClause(self): localctx = HogQLParser.WinPartitionByClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 58, self.RULE_winPartitionByClause) + self.enterRule(localctx, 60, self.RULE_winPartitionByClause) try: self.enterOuterAlt(localctx, 1) - self.state = 445 + self.state = 451 self.match(HogQLParser.PARTITION) - self.state = 446 + self.state = 452 self.match(HogQLParser.BY) - self.state = 447 + self.state = 453 self.columnExprList() except RecognitionException as re: localctx.exception = re @@ -3424,14 +3484,14 @@ def accept(self, visitor:ParseTreeVisitor): def winOrderByClause(self): localctx = HogQLParser.WinOrderByClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 60, self.RULE_winOrderByClause) + self.enterRule(localctx, 62, self.RULE_winOrderByClause) try: self.enterOuterAlt(localctx, 1) - self.state = 449 + self.state = 455 self.match(HogQLParser.ORDER) - self.state = 450 + self.state = 456 self.match(HogQLParser.BY) - self.state = 451 + self.state = 457 self.orderExprList() except RecognitionException as re: localctx.exception = re @@ -3474,18 +3534,18 @@ def accept(self, visitor:ParseTreeVisitor): def winFrameClause(self): localctx = HogQLParser.WinFrameClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 62, self.RULE_winFrameClause) + self.enterRule(localctx, 64, self.RULE_winFrameClause) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 453 + self.state = 459 _la = self._input.LA(1) if not(_la==133 or _la==143): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 454 + self.state = 460 self.winFrameExtend() except RecognitionException as re: localctx.exception = re @@ -3558,27 +3618,27 @@ def accept(self, visitor:ParseTreeVisitor): def winFrameExtend(self): localctx = HogQLParser.WinFrameExtendContext(self, self._ctx, self.state) - self.enterRule(localctx, 64, self.RULE_winFrameExtend) + self.enterRule(localctx, 66, self.RULE_winFrameExtend) try: - self.state = 462 + self.state = 468 self._errHandler.sync(self) token = self._input.LA(1) if token in [33, 82, 113, 175, 196, 197, 198, 199, 208, 210, 228]: localctx = HogQLParser.FrameStartContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 456 + self.state = 462 self.winFrameBound() pass elif token in [16]: localctx = HogQLParser.FrameBetweenContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 457 + self.state = 463 self.match(HogQLParser.BETWEEN) - self.state = 458 + self.state = 464 self.winFrameBound() - self.state = 459 + self.state = 465 self.match(HogQLParser.AND) - self.state = 460 + self.state = 466 self.winFrameBound() pass else: @@ -3634,44 +3694,44 @@ def accept(self, visitor:ParseTreeVisitor): def winFrameBound(self): localctx = HogQLParser.WinFrameBoundContext(self, self._ctx, self.state) - self.enterRule(localctx, 66, self.RULE_winFrameBound) + self.enterRule(localctx, 68, self.RULE_winFrameBound) try: self.enterOuterAlt(localctx, 1) - self.state = 476 + self.state = 482 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,61,self._ctx) + la_ = self._interp.adaptivePredict(self._input,62,self._ctx) if la_ == 1: - self.state = 464 + self.state = 470 self.match(HogQLParser.CURRENT) - self.state = 465 + self.state = 471 self.match(HogQLParser.ROW) pass elif la_ == 2: - self.state = 466 + self.state = 472 self.match(HogQLParser.UNBOUNDED) - self.state = 467 + self.state = 473 self.match(HogQLParser.PRECEDING) pass elif la_ == 3: - self.state = 468 + self.state = 474 self.match(HogQLParser.UNBOUNDED) - self.state = 469 + self.state = 475 self.match(HogQLParser.FOLLOWING) pass elif la_ == 4: - self.state = 470 + self.state = 476 self.numberLiteral() - self.state = 471 + self.state = 477 self.match(HogQLParser.PRECEDING) pass elif la_ == 5: - self.state = 473 + self.state = 479 self.numberLiteral() - self.state = 474 + self.state = 480 self.match(HogQLParser.FOLLOWING) pass @@ -3714,12 +3774,12 @@ def accept(self, visitor:ParseTreeVisitor): def expr(self): localctx = HogQLParser.ExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 68, self.RULE_expr) + self.enterRule(localctx, 70, self.RULE_expr) try: self.enterOuterAlt(localctx, 1) - self.state = 478 + self.state = 484 self.columnExpr(0) - self.state = 479 + self.state = 485 self.match(HogQLParser.EOF) except RecognitionException as re: localctx.exception = re @@ -3891,114 +3951,114 @@ def accept(self, visitor:ParseTreeVisitor): def columnTypeExpr(self): localctx = HogQLParser.ColumnTypeExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 70, self.RULE_columnTypeExpr) + self.enterRule(localctx, 72, self.RULE_columnTypeExpr) self._la = 0 # Token type try: - self.state = 528 + self.state = 534 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,66,self._ctx) + la_ = self._interp.adaptivePredict(self._input,67,self._ctx) if la_ == 1: localctx = HogQLParser.ColumnTypeExprSimpleContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 481 + self.state = 487 self.identifier() pass elif la_ == 2: localctx = HogQLParser.ColumnTypeExprNestedContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 482 + self.state = 488 self.identifier() - self.state = 483 + self.state = 489 self.match(HogQLParser.LPAREN) - self.state = 484 + self.state = 490 self.identifier() - self.state = 485 + self.state = 491 self.columnTypeExpr() - self.state = 492 + self.state = 498 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 486 + self.state = 492 self.match(HogQLParser.COMMA) - self.state = 487 + self.state = 493 self.identifier() - self.state = 488 - self.columnTypeExpr() self.state = 494 + self.columnTypeExpr() + self.state = 500 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 495 + self.state = 501 self.match(HogQLParser.RPAREN) pass elif la_ == 3: localctx = HogQLParser.ColumnTypeExprEnumContext(self, localctx) self.enterOuterAlt(localctx, 3) - self.state = 497 + self.state = 503 self.identifier() - self.state = 498 + self.state = 504 self.match(HogQLParser.LPAREN) - self.state = 499 + self.state = 505 self.enumValue() - self.state = 504 + self.state = 510 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 500 + self.state = 506 self.match(HogQLParser.COMMA) - self.state = 501 + self.state = 507 self.enumValue() - self.state = 506 + self.state = 512 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 507 + self.state = 513 self.match(HogQLParser.RPAREN) pass elif la_ == 4: localctx = HogQLParser.ColumnTypeExprComplexContext(self, localctx) self.enterOuterAlt(localctx, 4) - self.state = 509 + self.state = 515 self.identifier() - self.state = 510 + self.state = 516 self.match(HogQLParser.LPAREN) - self.state = 511 + self.state = 517 self.columnTypeExpr() - self.state = 516 + self.state = 522 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 512 + self.state = 518 self.match(HogQLParser.COMMA) - self.state = 513 + self.state = 519 self.columnTypeExpr() - self.state = 518 + self.state = 524 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 519 + self.state = 525 self.match(HogQLParser.RPAREN) pass elif la_ == 5: localctx = HogQLParser.ColumnTypeExprParamContext(self, localctx) self.enterOuterAlt(localctx, 5) - self.state = 521 + self.state = 527 self.identifier() - self.state = 522 + self.state = 528 self.match(HogQLParser.LPAREN) - self.state = 524 + self.state = 530 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 523 + self.state = 529 self.columnExprList() - self.state = 526 + self.state = 532 self.match(HogQLParser.RPAREN) pass @@ -4047,23 +4107,23 @@ def accept(self, visitor:ParseTreeVisitor): def columnExprList(self): localctx = HogQLParser.ColumnExprListContext(self, self._ctx, self.state) - self.enterRule(localctx, 72, self.RULE_columnExprList) + self.enterRule(localctx, 74, self.RULE_columnExprList) try: self.enterOuterAlt(localctx, 1) - self.state = 530 + self.state = 536 self.columnExpr(0) - self.state = 535 + self.state = 541 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,67,self._ctx) + _alt = self._interp.adaptivePredict(self._input,68,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: - self.state = 531 + self.state = 537 self.match(HogQLParser.COMMA) - self.state = 532 + self.state = 538 self.columnExpr(0) - self.state = 537 + self.state = 543 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,67,self._ctx) + _alt = self._interp.adaptivePredict(self._input,68,self._ctx) except RecognitionException as re: localctx.exception = re @@ -4956,58 +5016,58 @@ def columnExpr(self, _p:int=0): _parentState = self.state localctx = HogQLParser.ColumnExprContext(self, self._ctx, _parentState) _prevctx = localctx - _startState = 74 - self.enterRecursionRule(localctx, 74, self.RULE_columnExpr, _p) + _startState = 76 + self.enterRecursionRule(localctx, 76, self.RULE_columnExpr, _p) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 668 + self.state = 674 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,80,self._ctx) + la_ = self._interp.adaptivePredict(self._input,81,self._ctx) if la_ == 1: localctx = HogQLParser.ColumnExprCaseContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 539 + self.state = 545 self.match(HogQLParser.CASE) - self.state = 541 + self.state = 547 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,68,self._ctx) + la_ = self._interp.adaptivePredict(self._input,69,self._ctx) if la_ == 1: - self.state = 540 + self.state = 546 localctx.caseExpr = self.columnExpr(0) - self.state = 548 + self.state = 554 self._errHandler.sync(self) _la = self._input.LA(1) while True: - self.state = 543 + self.state = 549 self.match(HogQLParser.WHEN) - self.state = 544 + self.state = 550 localctx.whenExpr = self.columnExpr(0) - self.state = 545 + self.state = 551 self.match(HogQLParser.THEN) - self.state = 546 + self.state = 552 localctx.thenExpr = self.columnExpr(0) - self.state = 550 + self.state = 556 self._errHandler.sync(self) _la = self._input.LA(1) if not (_la==186): break - self.state = 554 + self.state = 560 self._errHandler.sync(self) _la = self._input.LA(1) if _la==52: - self.state = 552 + self.state = 558 self.match(HogQLParser.ELSE) - self.state = 553 + self.state = 559 localctx.elseExpr = self.columnExpr(0) - self.state = 556 + self.state = 562 self.match(HogQLParser.END) pass @@ -5015,17 +5075,17 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprCastContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 558 + self.state = 564 self.match(HogQLParser.CAST) - self.state = 559 + self.state = 565 self.match(HogQLParser.LPAREN) - self.state = 560 + self.state = 566 self.columnExpr(0) - self.state = 561 + self.state = 567 self.match(HogQLParser.AS) - self.state = 562 + self.state = 568 self.columnTypeExpr() - self.state = 563 + self.state = 569 self.match(HogQLParser.RPAREN) pass @@ -5033,9 +5093,9 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprDateContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 565 + self.state = 571 self.match(HogQLParser.DATE) - self.state = 566 + self.state = 572 self.match(HogQLParser.STRING_LITERAL) pass @@ -5043,17 +5103,17 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprExtractContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 567 + self.state = 573 self.match(HogQLParser.EXTRACT) - self.state = 568 + self.state = 574 self.match(HogQLParser.LPAREN) - self.state = 569 + self.state = 575 self.interval() - self.state = 570 + self.state = 576 self.match(HogQLParser.FROM) - self.state = 571 + self.state = 577 self.columnExpr(0) - self.state = 572 + self.state = 578 self.match(HogQLParser.RPAREN) pass @@ -5061,11 +5121,11 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprIntervalContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 574 + self.state = 580 self.match(HogQLParser.INTERVAL) - self.state = 575 + self.state = 581 self.columnExpr(0) - self.state = 576 + self.state = 582 self.interval() pass @@ -5073,27 +5133,27 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprSubstringContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 578 + self.state = 584 self.match(HogQLParser.SUBSTRING) - self.state = 579 + self.state = 585 self.match(HogQLParser.LPAREN) - self.state = 580 + self.state = 586 self.columnExpr(0) - self.state = 581 + self.state = 587 self.match(HogQLParser.FROM) - self.state = 582 + self.state = 588 self.columnExpr(0) - self.state = 585 + self.state = 591 self._errHandler.sync(self) _la = self._input.LA(1) if _la==65: - self.state = 583 + self.state = 589 self.match(HogQLParser.FOR) - self.state = 584 + self.state = 590 self.columnExpr(0) - self.state = 587 + self.state = 593 self.match(HogQLParser.RPAREN) pass @@ -5101,9 +5161,9 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprTimestampContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 589 + self.state = 595 self.match(HogQLParser.TIMESTAMP) - self.state = 590 + self.state = 596 self.match(HogQLParser.STRING_LITERAL) pass @@ -5111,24 +5171,24 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprTrimContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 591 + self.state = 597 self.match(HogQLParser.TRIM) - self.state = 592 + self.state = 598 self.match(HogQLParser.LPAREN) - self.state = 593 + self.state = 599 _la = self._input.LA(1) if not(_la==17 or _la==95 or _la==170): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 594 + self.state = 600 self.match(HogQLParser.STRING_LITERAL) - self.state = 595 + self.state = 601 self.match(HogQLParser.FROM) - self.state = 596 + self.state = 602 self.columnExpr(0) - self.state = 597 + self.state = 603 self.match(HogQLParser.RPAREN) pass @@ -5136,28 +5196,28 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprWinFunctionContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 599 + self.state = 605 self.identifier() - self.state = 600 + self.state = 606 self.match(HogQLParser.LPAREN) - self.state = 602 + self.state = 608 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 601 + self.state = 607 self.columnExprList() - self.state = 604 + self.state = 610 self.match(HogQLParser.RPAREN) - self.state = 606 + self.state = 612 self.match(HogQLParser.OVER) - self.state = 607 + self.state = 613 self.match(HogQLParser.LPAREN) - self.state = 608 + self.state = 614 self.windowExpr() - self.state = 609 + self.state = 615 self.match(HogQLParser.RPAREN) pass @@ -5165,24 +5225,24 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprWinFunctionTargetContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 611 + self.state = 617 self.identifier() - self.state = 612 + self.state = 618 self.match(HogQLParser.LPAREN) - self.state = 614 + self.state = 620 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 613 + self.state = 619 self.columnExprList() - self.state = 616 + self.state = 622 self.match(HogQLParser.RPAREN) - self.state = 618 + self.state = 624 self.match(HogQLParser.OVER) - self.state = 619 + self.state = 625 self.identifier() pass @@ -5190,45 +5250,45 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprFunctionContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 621 - self.identifier() self.state = 627 + self.identifier() + self.state = 633 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,75,self._ctx) + la_ = self._interp.adaptivePredict(self._input,76,self._ctx) if la_ == 1: - self.state = 622 + self.state = 628 self.match(HogQLParser.LPAREN) - self.state = 624 + self.state = 630 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 623 + self.state = 629 self.columnExprList() - self.state = 626 + self.state = 632 self.match(HogQLParser.RPAREN) - self.state = 629 + self.state = 635 self.match(HogQLParser.LPAREN) - self.state = 631 + self.state = 637 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,76,self._ctx) + la_ = self._interp.adaptivePredict(self._input,77,self._ctx) if la_ == 1: - self.state = 630 + self.state = 636 self.match(HogQLParser.DISTINCT) - self.state = 634 + self.state = 640 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 633 + self.state = 639 self.columnArgList() - self.state = 636 + self.state = 642 self.match(HogQLParser.RPAREN) pass @@ -5236,7 +5296,7 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprTagElementContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 638 + self.state = 644 self.hogqlxTagElement() pass @@ -5244,7 +5304,7 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprLiteralContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 639 + self.state = 645 self.literal() pass @@ -5252,9 +5312,9 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprNegateContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 640 + self.state = 646 self.match(HogQLParser.DASH) - self.state = 641 + self.state = 647 self.columnExpr(18) pass @@ -5262,9 +5322,9 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprNotContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 642 + self.state = 648 self.match(HogQLParser.NOT) - self.state = 643 + self.state = 649 self.columnExpr(12) pass @@ -5272,17 +5332,17 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprAsteriskContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 647 + self.state = 653 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -5066549581053953) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or _la==192 or _la==195: - self.state = 644 + self.state = 650 self.tableIdentifier() - self.state = 645 + self.state = 651 self.match(HogQLParser.DOT) - self.state = 649 + self.state = 655 self.match(HogQLParser.ASTERISK) pass @@ -5290,11 +5350,11 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprSubqueryContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 650 + self.state = 656 self.match(HogQLParser.LPAREN) - self.state = 651 + self.state = 657 self.selectUnionStmt() - self.state = 652 + self.state = 658 self.match(HogQLParser.RPAREN) pass @@ -5302,11 +5362,11 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprParensContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 654 + self.state = 660 self.match(HogQLParser.LPAREN) - self.state = 655 + self.state = 661 self.columnExpr(0) - self.state = 656 + self.state = 662 self.match(HogQLParser.RPAREN) pass @@ -5314,11 +5374,11 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprTupleContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 658 + self.state = 664 self.match(HogQLParser.LPAREN) - self.state = 659 + self.state = 665 self.columnExprList() - self.state = 660 + self.state = 666 self.match(HogQLParser.RPAREN) pass @@ -5326,17 +5386,17 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprArrayContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 662 + self.state = 668 self.match(HogQLParser.LBRACKET) - self.state = 664 + self.state = 670 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 663 + self.state = 669 self.columnExprList() - self.state = 666 + self.state = 672 self.match(HogQLParser.RBRACKET) pass @@ -5344,50 +5404,50 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprIdentifierContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 667 + self.state = 673 self.columnIdentifier() pass self._ctx.stop = self._input.LT(-1) - self.state = 763 + self.state = 769 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,91,self._ctx) + _alt = self._interp.adaptivePredict(self._input,92,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: if self._parseListeners is not None: self.triggerExitRuleEvent() _prevctx = localctx - self.state = 761 + self.state = 767 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,90,self._ctx) + la_ = self._interp.adaptivePredict(self._input,91,self._ctx) if la_ == 1: localctx = HogQLParser.ColumnExprPrecedence1Context(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 670 + self.state = 676 if not self.precpred(self._ctx, 17): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 17)") - self.state = 674 + self.state = 680 self._errHandler.sync(self) token = self._input.LA(1) if token in [202]: - self.state = 671 + self.state = 677 localctx.operator = self.match(HogQLParser.ASTERISK) pass elif token in [238]: - self.state = 672 + self.state = 678 localctx.operator = self.match(HogQLParser.SLASH) pass elif token in [227]: - self.state = 673 + self.state = 679 localctx.operator = self.match(HogQLParser.PERCENT) pass else: raise NoViableAltException(self) - self.state = 676 + self.state = 682 localctx.right = self.columnExpr(18) pass @@ -5395,29 +5455,29 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprPrecedence2Context(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 677 + self.state = 683 if not self.precpred(self._ctx, 16): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 16)") - self.state = 681 + self.state = 687 self._errHandler.sync(self) token = self._input.LA(1) if token in [228]: - self.state = 678 + self.state = 684 localctx.operator = self.match(HogQLParser.PLUS) pass elif token in [208]: - self.state = 679 + self.state = 685 localctx.operator = self.match(HogQLParser.DASH) pass elif token in [207]: - self.state = 680 + self.state = 686 localctx.operator = self.match(HogQLParser.CONCAT) pass else: raise NoViableAltException(self) - self.state = 683 + self.state = 689 localctx.right = self.columnExpr(17) pass @@ -5425,79 +5485,79 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprPrecedence3Context(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 684 + self.state = 690 if not self.precpred(self._ctx, 15): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 15)") - self.state = 709 + self.state = 715 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,86,self._ctx) + la_ = self._interp.adaptivePredict(self._input,87,self._ctx) if la_ == 1: - self.state = 685 + self.state = 691 localctx.operator = self.match(HogQLParser.EQ_DOUBLE) pass elif la_ == 2: - self.state = 686 + self.state = 692 localctx.operator = self.match(HogQLParser.EQ_SINGLE) pass elif la_ == 3: - self.state = 687 + self.state = 693 localctx.operator = self.match(HogQLParser.NOT_EQ) pass elif la_ == 4: - self.state = 688 + self.state = 694 localctx.operator = self.match(HogQLParser.LT_EQ) pass elif la_ == 5: - self.state = 689 + self.state = 695 localctx.operator = self.match(HogQLParser.LT) pass elif la_ == 6: - self.state = 690 + self.state = 696 localctx.operator = self.match(HogQLParser.GT_EQ) pass elif la_ == 7: - self.state = 691 + self.state = 697 localctx.operator = self.match(HogQLParser.GT) pass elif la_ == 8: - self.state = 693 + self.state = 699 self._errHandler.sync(self) _la = self._input.LA(1) if _la==115: - self.state = 692 + self.state = 698 localctx.operator = self.match(HogQLParser.NOT) - self.state = 695 + self.state = 701 self.match(HogQLParser.IN) - self.state = 697 + self.state = 703 self._errHandler.sync(self) _la = self._input.LA(1) if _la==25: - self.state = 696 + self.state = 702 self.match(HogQLParser.COHORT) pass elif la_ == 9: - self.state = 700 + self.state = 706 self._errHandler.sync(self) _la = self._input.LA(1) if _la==115: - self.state = 699 + self.state = 705 localctx.operator = self.match(HogQLParser.NOT) - self.state = 702 + self.state = 708 _la = self._input.LA(1) if not(_la==79 or _la==98): self._errHandler.recoverInline(self) @@ -5507,209 +5567,209 @@ def columnExpr(self, _p:int=0): pass elif la_ == 10: - self.state = 703 + self.state = 709 localctx.operator = self.match(HogQLParser.REGEX_SINGLE) pass elif la_ == 11: - self.state = 704 + self.state = 710 localctx.operator = self.match(HogQLParser.REGEX_DOUBLE) pass elif la_ == 12: - self.state = 705 + self.state = 711 localctx.operator = self.match(HogQLParser.NOT_REGEX) pass elif la_ == 13: - self.state = 706 + self.state = 712 localctx.operator = self.match(HogQLParser.IREGEX_SINGLE) pass elif la_ == 14: - self.state = 707 + self.state = 713 localctx.operator = self.match(HogQLParser.IREGEX_DOUBLE) pass elif la_ == 15: - self.state = 708 + self.state = 714 localctx.operator = self.match(HogQLParser.NOT_IREGEX) pass - self.state = 711 + self.state = 717 localctx.right = self.columnExpr(16) pass elif la_ == 4: localctx = HogQLParser.ColumnExprNullishContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 712 + self.state = 718 if not self.precpred(self._ctx, 13): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 13)") - self.state = 713 + self.state = 719 self.match(HogQLParser.NULLISH) - self.state = 714 + self.state = 720 self.columnExpr(14) pass elif la_ == 5: localctx = HogQLParser.ColumnExprAndContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 715 + self.state = 721 if not self.precpred(self._ctx, 11): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 11)") - self.state = 716 + self.state = 722 self.match(HogQLParser.AND) - self.state = 717 + self.state = 723 self.columnExpr(12) pass elif la_ == 6: localctx = HogQLParser.ColumnExprOrContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 718 + self.state = 724 if not self.precpred(self._ctx, 10): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 10)") - self.state = 719 + self.state = 725 self.match(HogQLParser.OR) - self.state = 720 + self.state = 726 self.columnExpr(11) pass elif la_ == 7: localctx = HogQLParser.ColumnExprBetweenContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 721 + self.state = 727 if not self.precpred(self._ctx, 9): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 9)") - self.state = 723 + self.state = 729 self._errHandler.sync(self) _la = self._input.LA(1) if _la==115: - self.state = 722 + self.state = 728 self.match(HogQLParser.NOT) - self.state = 725 + self.state = 731 self.match(HogQLParser.BETWEEN) - self.state = 726 + self.state = 732 self.columnExpr(0) - self.state = 727 + self.state = 733 self.match(HogQLParser.AND) - self.state = 728 + self.state = 734 self.columnExpr(10) pass elif la_ == 8: localctx = HogQLParser.ColumnExprTernaryOpContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 730 + self.state = 736 if not self.precpred(self._ctx, 8): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 8)") - self.state = 731 + self.state = 737 self.match(HogQLParser.QUERY) - self.state = 732 + self.state = 738 self.columnExpr(0) - self.state = 733 + self.state = 739 self.match(HogQLParser.COLON) - self.state = 734 + self.state = 740 self.columnExpr(8) pass elif la_ == 9: localctx = HogQLParser.ColumnExprArrayAccessContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 736 + self.state = 742 if not self.precpred(self._ctx, 21): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 21)") - self.state = 737 + self.state = 743 self.match(HogQLParser.LBRACKET) - self.state = 738 + self.state = 744 self.columnExpr(0) - self.state = 739 + self.state = 745 self.match(HogQLParser.RBRACKET) pass elif la_ == 10: localctx = HogQLParser.ColumnExprTupleAccessContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 741 + self.state = 747 if not self.precpred(self._ctx, 20): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 20)") - self.state = 742 + self.state = 748 self.match(HogQLParser.DOT) - self.state = 743 + self.state = 749 self.match(HogQLParser.DECIMAL_LITERAL) pass elif la_ == 11: localctx = HogQLParser.ColumnExprPropertyAccessContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 744 + self.state = 750 if not self.precpred(self._ctx, 19): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 19)") - self.state = 745 + self.state = 751 self.match(HogQLParser.DOT) - self.state = 746 + self.state = 752 self.identifier() pass elif la_ == 12: localctx = HogQLParser.ColumnExprIsNullContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 747 + self.state = 753 if not self.precpred(self._ctx, 14): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 14)") - self.state = 748 + self.state = 754 self.match(HogQLParser.IS) - self.state = 750 + self.state = 756 self._errHandler.sync(self) _la = self._input.LA(1) if _la==115: - self.state = 749 + self.state = 755 self.match(HogQLParser.NOT) - self.state = 752 + self.state = 758 self.match(HogQLParser.NULL_SQL) pass elif la_ == 13: localctx = HogQLParser.ColumnExprAliasContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 753 + self.state = 759 if not self.precpred(self._ctx, 7): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 7)") - self.state = 759 + self.state = 765 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,89,self._ctx) + la_ = self._interp.adaptivePredict(self._input,90,self._ctx) if la_ == 1: - self.state = 754 + self.state = 760 self.alias() pass elif la_ == 2: - self.state = 755 + self.state = 761 self.match(HogQLParser.AS) - self.state = 756 + self.state = 762 self.identifier() pass elif la_ == 3: - self.state = 757 + self.state = 763 self.match(HogQLParser.AS) - self.state = 758 + self.state = 764 self.match(HogQLParser.STRING_LITERAL) pass @@ -5717,9 +5777,9 @@ def columnExpr(self, _p:int=0): pass - self.state = 765 + self.state = 771 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,91,self._ctx) + _alt = self._interp.adaptivePredict(self._input,92,self._ctx) except RecognitionException as re: localctx.exception = re @@ -5765,21 +5825,21 @@ def accept(self, visitor:ParseTreeVisitor): def columnArgList(self): localctx = HogQLParser.ColumnArgListContext(self, self._ctx, self.state) - self.enterRule(localctx, 76, self.RULE_columnArgList) + self.enterRule(localctx, 78, self.RULE_columnArgList) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 766 + self.state = 772 self.columnArgExpr() - self.state = 771 + self.state = 777 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 767 + self.state = 773 self.match(HogQLParser.COMMA) - self.state = 768 + self.state = 774 self.columnArgExpr() - self.state = 773 + self.state = 779 self._errHandler.sync(self) _la = self._input.LA(1) @@ -5822,20 +5882,20 @@ def accept(self, visitor:ParseTreeVisitor): def columnArgExpr(self): localctx = HogQLParser.ColumnArgExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 78, self.RULE_columnArgExpr) + self.enterRule(localctx, 80, self.RULE_columnArgExpr) try: - self.state = 776 + self.state = 782 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,93,self._ctx) + la_ = self._interp.adaptivePredict(self._input,94,self._ctx) if la_ == 1: self.enterOuterAlt(localctx, 1) - self.state = 774 + self.state = 780 self.columnLambdaExpr() pass elif la_ == 2: self.enterOuterAlt(localctx, 2) - self.state = 775 + self.state = 781 self.columnExpr(0) pass @@ -5897,45 +5957,45 @@ def accept(self, visitor:ParseTreeVisitor): def columnLambdaExpr(self): localctx = HogQLParser.ColumnLambdaExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 80, self.RULE_columnLambdaExpr) + self.enterRule(localctx, 82, self.RULE_columnLambdaExpr) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 797 + self.state = 803 self._errHandler.sync(self) token = self._input.LA(1) if token in [220]: - self.state = 778 + self.state = 784 self.match(HogQLParser.LPAREN) - self.state = 779 + self.state = 785 self.identifier() - self.state = 784 + self.state = 790 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 780 + self.state = 786 self.match(HogQLParser.COMMA) - self.state = 781 + self.state = 787 self.identifier() - self.state = 786 + self.state = 792 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 787 + self.state = 793 self.match(HogQLParser.RPAREN) pass elif token in [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 114, 115, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 195]: - self.state = 789 + self.state = 795 self.identifier() - self.state = 794 + self.state = 800 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 790 + self.state = 796 self.match(HogQLParser.COMMA) - self.state = 791 + self.state = 797 self.identifier() - self.state = 796 + self.state = 802 self._errHandler.sync(self) _la = self._input.LA(1) @@ -5943,9 +6003,9 @@ def columnLambdaExpr(self): else: raise NoViableAltException(self) - self.state = 799 + self.state = 805 self.match(HogQLParser.ARROW) - self.state = 800 + self.state = 806 self.columnExpr(0) except RecognitionException as re: localctx.exception = re @@ -6047,69 +6107,69 @@ def accept(self, visitor:ParseTreeVisitor): def hogqlxTagElement(self): localctx = HogQLParser.HogqlxTagElementContext(self, self._ctx, self.state) - self.enterRule(localctx, 82, self.RULE_hogqlxTagElement) + self.enterRule(localctx, 84, self.RULE_hogqlxTagElement) self._la = 0 # Token type try: - self.state = 830 + self.state = 836 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,100,self._ctx) + la_ = self._interp.adaptivePredict(self._input,101,self._ctx) if la_ == 1: localctx = HogQLParser.HogqlxTagElementClosedContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 802 + self.state = 808 self.match(HogQLParser.LT) - self.state = 803 + self.state = 809 self.identifier() - self.state = 807 + self.state = 813 self._errHandler.sync(self) _la = self._input.LA(1) while (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -5066549581053953) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or _la==192 or _la==195: - self.state = 804 + self.state = 810 self.hogqlxTagAttribute() - self.state = 809 + self.state = 815 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 810 + self.state = 816 self.match(HogQLParser.SLASH) - self.state = 811 + self.state = 817 self.match(HogQLParser.GT) pass elif la_ == 2: localctx = HogQLParser.HogqlxTagElementNestedContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 813 + self.state = 819 self.match(HogQLParser.LT) - self.state = 814 + self.state = 820 self.identifier() - self.state = 818 + self.state = 824 self._errHandler.sync(self) _la = self._input.LA(1) while (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -5066549581053953) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or _la==192 or _la==195: - self.state = 815 + self.state = 821 self.hogqlxTagAttribute() - self.state = 820 + self.state = 826 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 821 + self.state = 827 self.match(HogQLParser.GT) - self.state = 823 + self.state = 829 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,99,self._ctx) + la_ = self._interp.adaptivePredict(self._input,100,self._ctx) if la_ == 1: - self.state = 822 + self.state = 828 self.hogqlxTagElement() - self.state = 825 + self.state = 831 self.match(HogQLParser.LT) - self.state = 826 + self.state = 832 self.match(HogQLParser.SLASH) - self.state = 827 + self.state = 833 self.identifier() - self.state = 828 + self.state = 834 self.match(HogQLParser.GT) pass @@ -6165,38 +6225,38 @@ def accept(self, visitor:ParseTreeVisitor): def hogqlxTagAttribute(self): localctx = HogQLParser.HogqlxTagAttributeContext(self, self._ctx, self.state) - self.enterRule(localctx, 84, self.RULE_hogqlxTagAttribute) + self.enterRule(localctx, 86, self.RULE_hogqlxTagAttribute) try: - self.state = 843 + self.state = 849 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,101,self._ctx) + la_ = self._interp.adaptivePredict(self._input,102,self._ctx) if la_ == 1: self.enterOuterAlt(localctx, 1) - self.state = 832 + self.state = 838 self.identifier() - self.state = 833 + self.state = 839 self.match(HogQLParser.EQ_SINGLE) - self.state = 834 + self.state = 840 self.match(HogQLParser.STRING_LITERAL) pass elif la_ == 2: self.enterOuterAlt(localctx, 2) - self.state = 836 + self.state = 842 self.identifier() - self.state = 837 + self.state = 843 self.match(HogQLParser.EQ_SINGLE) - self.state = 838 + self.state = 844 self.match(HogQLParser.LBRACE) - self.state = 839 + self.state = 845 self.columnExpr(0) - self.state = 840 + self.state = 846 self.match(HogQLParser.RBRACE) pass elif la_ == 3: self.enterOuterAlt(localctx, 3) - self.state = 842 + self.state = 848 self.identifier() pass @@ -6245,21 +6305,21 @@ def accept(self, visitor:ParseTreeVisitor): def withExprList(self): localctx = HogQLParser.WithExprListContext(self, self._ctx, self.state) - self.enterRule(localctx, 86, self.RULE_withExprList) + self.enterRule(localctx, 88, self.RULE_withExprList) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 845 + self.state = 851 self.withExpr() - self.state = 850 + self.state = 856 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 846 + self.state = 852 self.match(HogQLParser.COMMA) - self.state = 847 + self.state = 853 self.withExpr() - self.state = 852 + self.state = 858 self._errHandler.sync(self) _la = self._input.LA(1) @@ -6341,34 +6401,34 @@ def accept(self, visitor:ParseTreeVisitor): def withExpr(self): localctx = HogQLParser.WithExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 88, self.RULE_withExpr) + self.enterRule(localctx, 90, self.RULE_withExpr) try: - self.state = 863 + self.state = 869 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,103,self._ctx) + la_ = self._interp.adaptivePredict(self._input,104,self._ctx) if la_ == 1: localctx = HogQLParser.WithExprSubqueryContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 853 + self.state = 859 self.identifier() - self.state = 854 + self.state = 860 self.match(HogQLParser.AS) - self.state = 855 + self.state = 861 self.match(HogQLParser.LPAREN) - self.state = 856 + self.state = 862 self.selectUnionStmt() - self.state = 857 + self.state = 863 self.match(HogQLParser.RPAREN) pass elif la_ == 2: localctx = HogQLParser.WithExprColumnContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 859 + self.state = 865 self.columnExpr(0) - self.state = 860 + self.state = 866 self.match(HogQLParser.AS) - self.state = 861 + self.state = 867 self.identifier() pass @@ -6419,29 +6479,29 @@ def accept(self, visitor:ParseTreeVisitor): def columnIdentifier(self): localctx = HogQLParser.ColumnIdentifierContext(self, self._ctx, self.state) - self.enterRule(localctx, 90, self.RULE_columnIdentifier) + self.enterRule(localctx, 92, self.RULE_columnIdentifier) try: - self.state = 872 + self.state = 878 self._errHandler.sync(self) token = self._input.LA(1) if token in [218]: self.enterOuterAlt(localctx, 1) - self.state = 865 + self.state = 871 self.placeholder() pass elif token in [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 114, 115, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 195]: self.enterOuterAlt(localctx, 2) - self.state = 869 + self.state = 875 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,104,self._ctx) + la_ = self._interp.adaptivePredict(self._input,105,self._ctx) if la_ == 1: - self.state = 866 + self.state = 872 self.tableIdentifier() - self.state = 867 + self.state = 873 self.match(HogQLParser.DOT) - self.state = 871 + self.state = 877 self.nestedIdentifier() pass else: @@ -6491,23 +6551,23 @@ def accept(self, visitor:ParseTreeVisitor): def nestedIdentifier(self): localctx = HogQLParser.NestedIdentifierContext(self, self._ctx, self.state) - self.enterRule(localctx, 92, self.RULE_nestedIdentifier) + self.enterRule(localctx, 94, self.RULE_nestedIdentifier) try: self.enterOuterAlt(localctx, 1) - self.state = 874 + self.state = 880 self.identifier() - self.state = 879 + self.state = 885 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,106,self._ctx) + _alt = self._interp.adaptivePredict(self._input,107,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: - self.state = 875 + self.state = 881 self.match(HogQLParser.DOT) - self.state = 876 + self.state = 882 self.identifier() - self.state = 881 + self.state = 887 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,106,self._ctx) + _alt = self._interp.adaptivePredict(self._input,107,self._ctx) except RecognitionException as re: localctx.exception = re @@ -6654,19 +6714,19 @@ def tableExpr(self, _p:int=0): _parentState = self.state localctx = HogQLParser.TableExprContext(self, self._ctx, _parentState) _prevctx = localctx - _startState = 94 - self.enterRecursionRule(localctx, 94, self.RULE_tableExpr, _p) + _startState = 96 + self.enterRecursionRule(localctx, 96, self.RULE_tableExpr, _p) try: self.enterOuterAlt(localctx, 1) - self.state = 891 + self.state = 897 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,107,self._ctx) + la_ = self._interp.adaptivePredict(self._input,108,self._ctx) if la_ == 1: localctx = HogQLParser.TableExprIdentifierContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 883 + self.state = 889 self.tableIdentifier() pass @@ -6674,7 +6734,7 @@ def tableExpr(self, _p:int=0): localctx = HogQLParser.TableExprFunctionContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 884 + self.state = 890 self.tableFunctionExpr() pass @@ -6682,11 +6742,11 @@ def tableExpr(self, _p:int=0): localctx = HogQLParser.TableExprSubqueryContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 885 + self.state = 891 self.match(HogQLParser.LPAREN) - self.state = 886 + self.state = 892 self.selectUnionStmt() - self.state = 887 + self.state = 893 self.match(HogQLParser.RPAREN) pass @@ -6694,7 +6754,7 @@ def tableExpr(self, _p:int=0): localctx = HogQLParser.TableExprTagContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 889 + self.state = 895 self.hogqlxTagElement() pass @@ -6702,15 +6762,15 @@ def tableExpr(self, _p:int=0): localctx = HogQLParser.TableExprPlaceholderContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 890 + self.state = 896 self.placeholder() pass self._ctx.stop = self._input.LT(-1) - self.state = 901 + self.state = 907 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,109,self._ctx) + _alt = self._interp.adaptivePredict(self._input,110,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: if self._parseListeners is not None: @@ -6718,29 +6778,29 @@ def tableExpr(self, _p:int=0): _prevctx = localctx localctx = HogQLParser.TableExprAliasContext(self, HogQLParser.TableExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_tableExpr) - self.state = 893 + self.state = 899 if not self.precpred(self._ctx, 3): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 3)") - self.state = 897 + self.state = 903 self._errHandler.sync(self) token = self._input.LA(1) if token in [36, 62, 77, 91, 195]: - self.state = 894 + self.state = 900 self.alias() pass elif token in [10]: - self.state = 895 + self.state = 901 self.match(HogQLParser.AS) - self.state = 896 + self.state = 902 self.identifier() pass else: raise NoViableAltException(self) - self.state = 903 + self.state = 909 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,109,self._ctx) + _alt = self._interp.adaptivePredict(self._input,110,self._ctx) except RecognitionException as re: localctx.exception = re @@ -6787,23 +6847,23 @@ def accept(self, visitor:ParseTreeVisitor): def tableFunctionExpr(self): localctx = HogQLParser.TableFunctionExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 96, self.RULE_tableFunctionExpr) + self.enterRule(localctx, 98, self.RULE_tableFunctionExpr) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 904 + self.state = 910 self.identifier() - self.state = 905 + self.state = 911 self.match(HogQLParser.LPAREN) - self.state = 907 + self.state = 913 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 906 + self.state = 912 self.tableArgList() - self.state = 909 + self.state = 915 self.match(HogQLParser.RPAREN) except RecognitionException as re: localctx.exception = re @@ -6847,20 +6907,20 @@ def accept(self, visitor:ParseTreeVisitor): def tableIdentifier(self): localctx = HogQLParser.TableIdentifierContext(self, self._ctx, self.state) - self.enterRule(localctx, 98, self.RULE_tableIdentifier) + self.enterRule(localctx, 100, self.RULE_tableIdentifier) try: self.enterOuterAlt(localctx, 1) - self.state = 914 + self.state = 920 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,111,self._ctx) + la_ = self._interp.adaptivePredict(self._input,112,self._ctx) if la_ == 1: - self.state = 911 + self.state = 917 self.databaseIdentifier() - self.state = 912 + self.state = 918 self.match(HogQLParser.DOT) - self.state = 916 + self.state = 922 self.identifier() except RecognitionException as re: localctx.exception = re @@ -6906,21 +6966,21 @@ def accept(self, visitor:ParseTreeVisitor): def tableArgList(self): localctx = HogQLParser.TableArgListContext(self, self._ctx, self.state) - self.enterRule(localctx, 100, self.RULE_tableArgList) + self.enterRule(localctx, 102, self.RULE_tableArgList) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 918 + self.state = 924 self.columnExpr(0) - self.state = 923 + self.state = 929 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 919 + self.state = 925 self.match(HogQLParser.COMMA) - self.state = 920 + self.state = 926 self.columnExpr(0) - self.state = 925 + self.state = 931 self._errHandler.sync(self) _la = self._input.LA(1) @@ -6959,10 +7019,10 @@ def accept(self, visitor:ParseTreeVisitor): def databaseIdentifier(self): localctx = HogQLParser.DatabaseIdentifierContext(self, self._ctx, self.state) - self.enterRule(localctx, 102, self.RULE_databaseIdentifier) + self.enterRule(localctx, 104, self.RULE_databaseIdentifier) try: self.enterOuterAlt(localctx, 1) - self.state = 926 + self.state = 932 self.identifier() except RecognitionException as re: localctx.exception = re @@ -7010,22 +7070,22 @@ def accept(self, visitor:ParseTreeVisitor): def floatingLiteral(self): localctx = HogQLParser.FloatingLiteralContext(self, self._ctx, self.state) - self.enterRule(localctx, 104, self.RULE_floatingLiteral) + self.enterRule(localctx, 106, self.RULE_floatingLiteral) self._la = 0 # Token type try: - self.state = 936 + self.state = 942 self._errHandler.sync(self) token = self._input.LA(1) if token in [196]: self.enterOuterAlt(localctx, 1) - self.state = 928 + self.state = 934 self.match(HogQLParser.FLOATING_LITERAL) pass elif token in [210]: self.enterOuterAlt(localctx, 2) - self.state = 929 + self.state = 935 self.match(HogQLParser.DOT) - self.state = 930 + self.state = 936 _la = self._input.LA(1) if not(_la==197 or _la==198): self._errHandler.recoverInline(self) @@ -7035,15 +7095,15 @@ def floatingLiteral(self): pass elif token in [198]: self.enterOuterAlt(localctx, 3) - self.state = 931 + self.state = 937 self.match(HogQLParser.DECIMAL_LITERAL) - self.state = 932 + self.state = 938 self.match(HogQLParser.DOT) - self.state = 934 + self.state = 940 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,113,self._ctx) + la_ = self._interp.adaptivePredict(self._input,114,self._ctx) if la_ == 1: - self.state = 933 + self.state = 939 _la = self._input.LA(1) if not(_la==197 or _la==198): self._errHandler.recoverInline(self) @@ -7112,15 +7172,15 @@ def accept(self, visitor:ParseTreeVisitor): def numberLiteral(self): localctx = HogQLParser.NumberLiteralContext(self, self._ctx, self.state) - self.enterRule(localctx, 106, self.RULE_numberLiteral) + self.enterRule(localctx, 108, self.RULE_numberLiteral) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 939 + self.state = 945 self._errHandler.sync(self) _la = self._input.LA(1) if _la==208 or _la==228: - self.state = 938 + self.state = 944 _la = self._input.LA(1) if not(_la==208 or _la==228): self._errHandler.recoverInline(self) @@ -7129,36 +7189,36 @@ def numberLiteral(self): self.consume() - self.state = 947 + self.state = 953 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,116,self._ctx) + la_ = self._interp.adaptivePredict(self._input,117,self._ctx) if la_ == 1: - self.state = 941 + self.state = 947 self.floatingLiteral() pass elif la_ == 2: - self.state = 942 + self.state = 948 self.match(HogQLParser.OCTAL_LITERAL) pass elif la_ == 3: - self.state = 943 + self.state = 949 self.match(HogQLParser.DECIMAL_LITERAL) pass elif la_ == 4: - self.state = 944 + self.state = 950 self.match(HogQLParser.HEXADECIMAL_LITERAL) pass elif la_ == 5: - self.state = 945 + self.state = 951 self.match(HogQLParser.INF) pass elif la_ == 6: - self.state = 946 + self.state = 952 self.match(HogQLParser.NAN_SQL) pass @@ -7204,24 +7264,24 @@ def accept(self, visitor:ParseTreeVisitor): def literal(self): localctx = HogQLParser.LiteralContext(self, self._ctx, self.state) - self.enterRule(localctx, 108, self.RULE_literal) + self.enterRule(localctx, 110, self.RULE_literal) try: - self.state = 952 + self.state = 958 self._errHandler.sync(self) token = self._input.LA(1) if token in [82, 113, 196, 197, 198, 199, 208, 210, 228]: self.enterOuterAlt(localctx, 1) - self.state = 949 + self.state = 955 self.numberLiteral() pass elif token in [200]: self.enterOuterAlt(localctx, 2) - self.state = 950 + self.state = 956 self.match(HogQLParser.STRING_LITERAL) pass elif token in [116]: self.enterOuterAlt(localctx, 3) - self.state = 951 + self.state = 957 self.match(HogQLParser.NULL_SQL) pass else: @@ -7282,11 +7342,11 @@ def accept(self, visitor:ParseTreeVisitor): def interval(self): localctx = HogQLParser.IntervalContext(self, self._ctx, self.state) - self.enterRule(localctx, 110, self.RULE_interval) + self.enterRule(localctx, 112, self.RULE_interval) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 954 + self.state = 960 _la = self._input.LA(1) if not(_la==37 or ((((_la - 76)) & ~0x3f) == 0 and ((1 << (_la - 76)) & 72057615512764417) != 0) or ((((_la - 145)) & ~0x3f) == 0 and ((1 << (_la - 145)) & 36283883716609) != 0)): self._errHandler.recoverInline(self) @@ -7858,11 +7918,11 @@ def accept(self, visitor:ParseTreeVisitor): def keyword(self): localctx = HogQLParser.KeywordContext(self, self._ctx, self.state) - self.enterRule(localctx, 112, self.RULE_keyword) + self.enterRule(localctx, 114, self.RULE_keyword) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 956 + self.state = 962 _la = self._input.LA(1) if not(((((_la - 2)) & ~0x3f) == 0 and ((1 << (_la - 2)) & -34368126977) != 0) or ((((_la - 66)) & ~0x3f) == 0 and ((1 << (_la - 66)) & -1288627627820033) != 0) or ((((_la - 130)) & ~0x3f) == 0 and ((1 << (_la - 130)) & 8034421735228932089) != 0)): self._errHandler.recoverInline(self) @@ -7912,11 +7972,11 @@ def accept(self, visitor:ParseTreeVisitor): def keywordForAlias(self): localctx = HogQLParser.KeywordForAliasContext(self, self._ctx, self.state) - self.enterRule(localctx, 114, self.RULE_keywordForAlias) + self.enterRule(localctx, 116, self.RULE_keywordForAlias) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 958 + self.state = 964 _la = self._input.LA(1) if not(((((_la - 36)) & ~0x3f) == 0 and ((1 << (_la - 36)) & 36030996109328385) != 0)): self._errHandler.recoverInline(self) @@ -7961,19 +8021,19 @@ def accept(self, visitor:ParseTreeVisitor): def alias(self): localctx = HogQLParser.AliasContext(self, self._ctx, self.state) - self.enterRule(localctx, 116, self.RULE_alias) + self.enterRule(localctx, 118, self.RULE_alias) try: - self.state = 962 + self.state = 968 self._errHandler.sync(self) token = self._input.LA(1) if token in [195]: self.enterOuterAlt(localctx, 1) - self.state = 960 + self.state = 966 self.match(HogQLParser.IDENTIFIER) pass elif token in [36, 62, 77, 91]: self.enterOuterAlt(localctx, 2) - self.state = 961 + self.state = 967 self.keywordForAlias() pass else: @@ -8021,24 +8081,24 @@ def accept(self, visitor:ParseTreeVisitor): def identifier(self): localctx = HogQLParser.IdentifierContext(self, self._ctx, self.state) - self.enterRule(localctx, 118, self.RULE_identifier) + self.enterRule(localctx, 120, self.RULE_identifier) try: - self.state = 967 + self.state = 973 self._errHandler.sync(self) token = self._input.LA(1) if token in [195]: self.enterOuterAlt(localctx, 1) - self.state = 964 + self.state = 970 self.match(HogQLParser.IDENTIFIER) pass elif token in [37, 76, 108, 110, 132, 145, 185, 190]: self.enterOuterAlt(localctx, 2) - self.state = 965 + self.state = 971 self.interval() pass elif token in [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 109, 111, 112, 114, 115, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 186, 187, 188, 189, 191, 192]: self.enterOuterAlt(localctx, 3) - self.state = 966 + self.state = 972 self.keyword() pass else: @@ -8085,14 +8145,14 @@ def accept(self, visitor:ParseTreeVisitor): def enumValue(self): localctx = HogQLParser.EnumValueContext(self, self._ctx, self.state) - self.enterRule(localctx, 120, self.RULE_enumValue) + self.enterRule(localctx, 122, self.RULE_enumValue) try: self.enterOuterAlt(localctx, 1) - self.state = 969 + self.state = 975 self.match(HogQLParser.STRING_LITERAL) - self.state = 970 + self.state = 976 self.match(HogQLParser.EQ_SINGLE) - self.state = 971 + self.state = 977 self.numberLiteral() except RecognitionException as re: localctx.exception = re @@ -8135,14 +8195,14 @@ def accept(self, visitor:ParseTreeVisitor): def placeholder(self): localctx = HogQLParser.PlaceholderContext(self, self._ctx, self.state) - self.enterRule(localctx, 122, self.RULE_placeholder) + self.enterRule(localctx, 124, self.RULE_placeholder) try: self.enterOuterAlt(localctx, 1) - self.state = 973 + self.state = 979 self.match(HogQLParser.LBRACE) - self.state = 974 + self.state = 980 self.identifier() - self.state = 975 + self.state = 981 self.match(HogQLParser.RBRACE) except RecognitionException as re: localctx.exception = re @@ -8157,9 +8217,9 @@ def placeholder(self): def sempred(self, localctx:RuleContext, ruleIndex:int, predIndex:int): if self._predicates == None: self._predicates = dict() - self._predicates[18] = self.joinExpr_sempred - self._predicates[37] = self.columnExpr_sempred - self._predicates[47] = self.tableExpr_sempred + self._predicates[19] = self.joinExpr_sempred + self._predicates[38] = self.columnExpr_sempred + self._predicates[48] = self.tableExpr_sempred pred = self._predicates.get(ruleIndex, None) if pred is None: raise Exception("No predicate with index:" + str(ruleIndex)) diff --git a/posthog/hogql/grammar/HogQLParserVisitor.py b/posthog/hogql/grammar/HogQLParserVisitor.py index 389da7e99385c..1e37ae71b22ca 100644 --- a/posthog/hogql/grammar/HogQLParserVisitor.py +++ b/posthog/hogql/grammar/HogQLParserVisitor.py @@ -24,6 +24,11 @@ def visitSelectStmtWithParens(self, ctx:HogQLParser.SelectStmtWithParensContext) return self.visitChildren(ctx) + # Visit a parse tree produced by HogQLParser#selectStmtWithPlaceholder. + def visitSelectStmtWithPlaceholder(self, ctx:HogQLParser.SelectStmtWithPlaceholderContext): + return self.visitChildren(ctx) + + # Visit a parse tree produced by HogQLParser#selectStmt. def visitSelectStmt(self, ctx:HogQLParser.SelectStmtContext): return self.visitChildren(ctx) diff --git a/posthog/hogql/parser.py b/posthog/hogql/parser.py index 2322746191b94..ba9d4160f1acb 100644 --- a/posthog/hogql/parser.py +++ b/posthog/hogql/parser.py @@ -172,6 +172,8 @@ def visitSelectUnionStmt(self, ctx: HogQLParser.SelectUnionStmtContext): flattened_queries.append(query) elif isinstance(query, ast.SelectUnionQuery): flattened_queries.extend(query.select_queries) + elif isinstance(query, ast.Placeholder): + flattened_queries.append(query) else: raise Exception(f"Unexpected query node type {type(query).__name__}") if len(flattened_queries) == 1: @@ -179,7 +181,7 @@ def visitSelectUnionStmt(self, ctx: HogQLParser.SelectUnionStmtContext): return ast.SelectUnionQuery(select_queries=flattened_queries) def visitSelectStmtWithParens(self, ctx: HogQLParser.SelectStmtWithParensContext): - return self.visit(ctx.selectStmt() or ctx.selectUnionStmt()) + return self.visit(ctx.selectStmtWithPlaceholder() or ctx.selectUnionStmt()) def visitSelectStmt(self, ctx: HogQLParser.SelectStmtContext): select_query = ast.SelectQuery( @@ -831,6 +833,12 @@ def visitTableExprFunction(self, ctx: HogQLParser.TableExprFunctionContext): def visitTableExprTag(self, ctx: HogQLParser.TableExprTagContext): return self.visit(ctx.hogqlxTagElement()) + def visitSelectStmtWithPlaceholder(self, ctx: HogQLParser.SelectStmtWithPlaceholderContext): + if ctx.placeholder(): + return self.visit(ctx.placeholder()) + + return self.visit(ctx.selectStmt()) + def visitTableFunctionExpr(self, ctx: HogQLParser.TableFunctionExprContext): name = self.visit(ctx.identifier()) args = self.visit(ctx.tableArgList()) if ctx.tableArgList() else [] diff --git a/posthog/hogql_queries/insights/stickiness_query_runner.py b/posthog/hogql_queries/insights/stickiness_query_runner.py index 83dc489df218c..80796d94649a9 100644 --- a/posthog/hogql_queries/insights/stickiness_query_runner.py +++ b/posthog/hogql_queries/insights/stickiness_query_runner.py @@ -125,7 +125,7 @@ def to_query(self) -> List[ast.SelectQuery]: # type: ignore SELECT 0 as aggregation_target, (number + 1) as num_intervals FROM numbers(dateDiff({interval}, {date_from} - {interval_subtract}, {date_to})) UNION ALL - SELECT * FROM ({events_query}) + {events_query} ) GROUP BY num_intervals ORDER BY num_intervals From a5a24e883870dad2ea00c32d061c83bd6d117ec4 Mon Sep 17 00:00:00 2001 From: Tom Owers Date: Mon, 15 Jan 2024 18:22:13 +0000 Subject: [PATCH 2/9] Updated the hogql parser version --- hogql_parser/setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hogql_parser/setup.py b/hogql_parser/setup.py index 1763a9634c657..6a95b379acd90 100644 --- a/hogql_parser/setup.py +++ b/hogql_parser/setup.py @@ -32,7 +32,7 @@ setup( name="hogql_parser", - version="1.0.2", + version="1.0.3", url="https://github.com/PostHog/posthog/tree/master/hogql_parser", author="PostHog Inc.", author_email="hey@posthog.com", From ef0363e9f8b7526553597cacfdf5bc40d9af054d Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 18:41:16 +0000 Subject: [PATCH 3/9] Use new hogql-parser version --- requirements.in | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.in b/requirements.in index b924b0df8420a..566bfce975593 100644 --- a/requirements.in +++ b/requirements.in @@ -95,5 +95,5 @@ django-two-factor-auth==1.14.0 phonenumberslite==8.13.6 openai==0.27.8 nh3==0.2.14 -hogql-parser==1.0.2 +hogql-parser==1.0.3 urllib3[secure,socks]==1.26.18 diff --git a/requirements.txt b/requirements.txt index 0778ff9998a4b..b34b88db931b3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -276,7 +276,7 @@ h11==0.13.0 # via wsproto hexbytes==1.0.0 # via dlt -hogql-parser==1.0.2 +hogql-parser==1.0.3 # via -r requirements.in humanize==4.9.0 # via dlt From 8be900d0c8b4dea66b4a693d3e4eec1ae0c0eed0 Mon Sep 17 00:00:00 2001 From: Tom Owers Date: Tue, 16 Jan 2024 11:40:30 +0000 Subject: [PATCH 4/9] Fixed tests --- mypy-baseline.txt | 3 ++- posthog/hogql/test/_test_parser.py | 2 +- posthog/hogql/test/test_metadata.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mypy-baseline.txt b/mypy-baseline.txt index aa9cccb3e809a..a1a1d20bf1d1f 100644 --- a/mypy-baseline.txt +++ b/mypy-baseline.txt @@ -65,6 +65,7 @@ posthog/hogql/database/schema/persons.py:0: error: Argument "chain" to "Field" h posthog/hogql/database/schema/persons.py:0: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance posthog/hogql/database/schema/persons.py:0: note: Consider using "Sequence" instead, which is covariant posthog/hogql/parser.py:0: error: Key expression in dictionary comprehension has incompatible type "str"; expected type "Literal['expr', 'order_expr', 'select']" [misc] +posthog/hogql/parser.py:0: error: Statement is unreachable [unreachable] posthog/hogql/parser.py:0: error: Item "None" of "list[Expr] | None" has no attribute "__iter__" (not iterable) [union-attr] posthog/hogql/parser.py:0: error: "None" has no attribute "text" [attr-defined] posthog/hogql/parser.py:0: error: "None" has no attribute "text" [attr-defined] @@ -380,6 +381,7 @@ posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "Bre posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument 1 to "parse_expr" has incompatible type "str | float | list[str | float] | Any | None"; expected "str" [arg-type] +posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument 1 to "int" has incompatible type "str | float | list[str | float] | Any | None"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type] posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] @@ -417,7 +419,6 @@ posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument "breakdown posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument "breakdown_field" to "get_properties_chain" has incompatible type "str | float | list[str | float] | Any | None"; expected "str" [arg-type] posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_group_type_index" [union-attr] -posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] posthog/hogql_queries/hogql_query_runner.py:0: error: Statement is unreachable [unreachable] posthog/hogql_queries/hogql_query_runner.py:0: error: Argument "placeholders" to "parse_select" has incompatible type "dict[str, Constant] | None"; expected "dict[str, Expr] | None" [arg-type] posthog/hogql_queries/hogql_query_runner.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "SelectQuery | SelectUnionQuery") [assignment] diff --git a/posthog/hogql/test/_test_parser.py b/posthog/hogql/test/_test_parser.py index 1071f10aa8a0f..5a4c45b533647 100644 --- a/posthog/hogql/test/_test_parser.py +++ b/posthog/hogql/test/_test_parser.py @@ -1467,7 +1467,7 @@ def test_malformed_sql(self): query = "SELEC 2" with self.assertRaisesMessage( SyntaxException, - "mismatched input 'SELEC' expecting {SELECT, WITH, '(', '<'}", + "mismatched input 'SELEC' expecting {SELECT, WITH, '{', '(', '<'}", ) as e: self._select(query) self.assertEqual(e.exception.start, 0) diff --git a/posthog/hogql/test/test_metadata.py b/posthog/hogql/test/test_metadata.py index 4e789cb136cfb..f2f95089334aa 100644 --- a/posthog/hogql/test/test_metadata.py +++ b/posthog/hogql/test/test_metadata.py @@ -79,7 +79,7 @@ def test_metadata_valid_expr_select(self): "inputSelect": "timestamp", "errors": [ { - "message": "mismatched input 'timestamp' expecting {SELECT, WITH, '(', '<'}", + "message": "mismatched input 'timestamp' expecting {SELECT, WITH, '{', '(', '<'}", "start": 0, "end": 9, "fix": None, From 7c1008e9bf87a29835fabf0309695b460738caff Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:22:24 +0000 Subject: [PATCH 5/9] Update query snapshots --- .../test/__snapshots__/test_annotation.ambr | 173 ++++++++++-------- 1 file changed, 92 insertions(+), 81 deletions(-) diff --git a/posthog/api/test/__snapshots__/test_annotation.ambr b/posthog/api/test/__snapshots__/test_annotation.ambr index 31298f4dbf007..c0ebcfdf5040b 100644 --- a/posthog/api/test/__snapshots__/test_annotation.ambr +++ b/posthog/api/test/__snapshots__/test_annotation.ambr @@ -82,6 +82,85 @@ ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.10 + ''' + SELECT "posthog_annotation"."id", + "posthog_annotation"."content", + "posthog_annotation"."created_at", + "posthog_annotation"."updated_at", + "posthog_annotation"."dashboard_item_id", + "posthog_annotation"."team_id", + "posthog_annotation"."organization_id", + "posthog_annotation"."created_by_id", + "posthog_annotation"."scope", + "posthog_annotation"."creation_type", + "posthog_annotation"."date_marker", + "posthog_annotation"."deleted", + "posthog_annotation"."apply_all", + "posthog_dashboarditem"."id", + "posthog_dashboarditem"."name", + "posthog_dashboarditem"."derived_name", + "posthog_dashboarditem"."description", + "posthog_dashboarditem"."team_id", + "posthog_dashboarditem"."filters", + "posthog_dashboarditem"."filters_hash", + "posthog_dashboarditem"."query", + "posthog_dashboarditem"."order", + "posthog_dashboarditem"."deleted", + "posthog_dashboarditem"."saved", + "posthog_dashboarditem"."created_at", + "posthog_dashboarditem"."last_refresh", + "posthog_dashboarditem"."refreshing", + "posthog_dashboarditem"."created_by_id", + "posthog_dashboarditem"."is_sample", + "posthog_dashboarditem"."short_id", + "posthog_dashboarditem"."favorited", + "posthog_dashboarditem"."refresh_attempt", + "posthog_dashboarditem"."last_modified_at", + "posthog_dashboarditem"."last_modified_by_id", + "posthog_dashboarditem"."dashboard_id", + "posthog_dashboarditem"."layouts", + "posthog_dashboarditem"."color", + "posthog_dashboarditem"."dive_dashboard_id", + "posthog_dashboarditem"."updated_at", + "posthog_dashboarditem"."deprecated_tags", + "posthog_dashboarditem"."tags", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."is_active", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."email_opt_in", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."events_column_config" + FROM "posthog_annotation" + LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_annotation"."dashboard_item_id" = "posthog_dashboarditem"."id") + LEFT OUTER JOIN "posthog_user" ON ("posthog_annotation"."created_by_id" = "posthog_user"."id") + WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_annotation"."scope" = 'organization') + OR "posthog_annotation"."team_id" = 2) + AND NOT "posthog_annotation"."deleted") + ORDER BY "posthog_annotation"."date_marker" DESC + LIMIT 1000 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + ''' +# --- +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.11 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -112,7 +191,7 @@ LIMIT 21 /**/ ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.11 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.12 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -163,7 +242,7 @@ LIMIT 21 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.12 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.13 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -193,7 +272,7 @@ WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.13 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.14 ''' SELECT COUNT(*) AS "__count" FROM "posthog_annotation" @@ -203,7 +282,7 @@ AND NOT "posthog_annotation"."deleted") /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.14 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.15 ''' SELECT "posthog_annotation"."id", "posthog_annotation"."content", @@ -447,90 +526,22 @@ # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.8 ''' - SELECT COUNT(*) AS "__count" - FROM "posthog_annotation" - WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - AND "posthog_annotation"."scope" = 'organization') - OR "posthog_annotation"."team_id" = 2) - AND NOT "posthog_annotation"."deleted") /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + SELECT "posthog_instancesetting"."id", + "posthog_instancesetting"."key", + "posthog_instancesetting"."raw_value" + FROM "posthog_instancesetting" + WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' + ORDER BY "posthog_instancesetting"."id" ASC + LIMIT 1 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.9 ''' - SELECT "posthog_annotation"."id", - "posthog_annotation"."content", - "posthog_annotation"."created_at", - "posthog_annotation"."updated_at", - "posthog_annotation"."dashboard_item_id", - "posthog_annotation"."team_id", - "posthog_annotation"."organization_id", - "posthog_annotation"."created_by_id", - "posthog_annotation"."scope", - "posthog_annotation"."creation_type", - "posthog_annotation"."date_marker", - "posthog_annotation"."deleted", - "posthog_annotation"."apply_all", - "posthog_dashboarditem"."id", - "posthog_dashboarditem"."name", - "posthog_dashboarditem"."derived_name", - "posthog_dashboarditem"."description", - "posthog_dashboarditem"."team_id", - "posthog_dashboarditem"."filters", - "posthog_dashboarditem"."filters_hash", - "posthog_dashboarditem"."query", - "posthog_dashboarditem"."order", - "posthog_dashboarditem"."deleted", - "posthog_dashboarditem"."saved", - "posthog_dashboarditem"."created_at", - "posthog_dashboarditem"."last_refresh", - "posthog_dashboarditem"."refreshing", - "posthog_dashboarditem"."created_by_id", - "posthog_dashboarditem"."is_sample", - "posthog_dashboarditem"."short_id", - "posthog_dashboarditem"."favorited", - "posthog_dashboarditem"."refresh_attempt", - "posthog_dashboarditem"."last_modified_at", - "posthog_dashboarditem"."last_modified_by_id", - "posthog_dashboarditem"."dashboard_id", - "posthog_dashboarditem"."layouts", - "posthog_dashboarditem"."color", - "posthog_dashboarditem"."dive_dashboard_id", - "posthog_dashboarditem"."updated_at", - "posthog_dashboarditem"."deprecated_tags", - "posthog_dashboarditem"."tags", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."is_active", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."email_opt_in", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."events_column_config" + SELECT COUNT(*) AS "__count" FROM "posthog_annotation" - LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_annotation"."dashboard_item_id" = "posthog_dashboarditem"."id") - LEFT OUTER JOIN "posthog_user" ON ("posthog_annotation"."created_by_id" = "posthog_user"."id") WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_annotation"."scope" = 'organization') OR "posthog_annotation"."team_id" = 2) - AND NOT "posthog_annotation"."deleted") - ORDER BY "posthog_annotation"."date_marker" DESC - LIMIT 1000 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + AND NOT "posthog_annotation"."deleted") /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ ''' # --- From 6d4e707a5e74d416fa80b072b73cc4a2cf2dee12 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:39:56 +0000 Subject: [PATCH 6/9] Update query snapshots --- .../test/__snapshots__/test_annotation.ambr | 250 +++++++++++------- 1 file changed, 159 insertions(+), 91 deletions(-) diff --git a/posthog/api/test/__snapshots__/test_annotation.ambr b/posthog/api/test/__snapshots__/test_annotation.ambr index c0ebcfdf5040b..2b761c79a0e3b 100644 --- a/posthog/api/test/__snapshots__/test_annotation.ambr +++ b/posthog/api/test/__snapshots__/test_annotation.ambr @@ -82,85 +82,6 @@ ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.10 - ''' - SELECT "posthog_annotation"."id", - "posthog_annotation"."content", - "posthog_annotation"."created_at", - "posthog_annotation"."updated_at", - "posthog_annotation"."dashboard_item_id", - "posthog_annotation"."team_id", - "posthog_annotation"."organization_id", - "posthog_annotation"."created_by_id", - "posthog_annotation"."scope", - "posthog_annotation"."creation_type", - "posthog_annotation"."date_marker", - "posthog_annotation"."deleted", - "posthog_annotation"."apply_all", - "posthog_dashboarditem"."id", - "posthog_dashboarditem"."name", - "posthog_dashboarditem"."derived_name", - "posthog_dashboarditem"."description", - "posthog_dashboarditem"."team_id", - "posthog_dashboarditem"."filters", - "posthog_dashboarditem"."filters_hash", - "posthog_dashboarditem"."query", - "posthog_dashboarditem"."order", - "posthog_dashboarditem"."deleted", - "posthog_dashboarditem"."saved", - "posthog_dashboarditem"."created_at", - "posthog_dashboarditem"."last_refresh", - "posthog_dashboarditem"."refreshing", - "posthog_dashboarditem"."created_by_id", - "posthog_dashboarditem"."is_sample", - "posthog_dashboarditem"."short_id", - "posthog_dashboarditem"."favorited", - "posthog_dashboarditem"."refresh_attempt", - "posthog_dashboarditem"."last_modified_at", - "posthog_dashboarditem"."last_modified_by_id", - "posthog_dashboarditem"."dashboard_id", - "posthog_dashboarditem"."layouts", - "posthog_dashboarditem"."color", - "posthog_dashboarditem"."dive_dashboard_id", - "posthog_dashboarditem"."updated_at", - "posthog_dashboarditem"."deprecated_tags", - "posthog_dashboarditem"."tags", - "posthog_user"."id", - "posthog_user"."password", - "posthog_user"."last_login", - "posthog_user"."first_name", - "posthog_user"."last_name", - "posthog_user"."is_staff", - "posthog_user"."is_active", - "posthog_user"."date_joined", - "posthog_user"."uuid", - "posthog_user"."current_organization_id", - "posthog_user"."current_team_id", - "posthog_user"."email", - "posthog_user"."pending_email", - "posthog_user"."temporary_token", - "posthog_user"."distinct_id", - "posthog_user"."is_email_verified", - "posthog_user"."requested_password_reset_at", - "posthog_user"."has_seen_product_intro_for", - "posthog_user"."strapi_id", - "posthog_user"."email_opt_in", - "posthog_user"."theme_mode", - "posthog_user"."partial_notification_settings", - "posthog_user"."anonymize_data", - "posthog_user"."toolbar_mode", - "posthog_user"."events_column_config" - FROM "posthog_annotation" - LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_annotation"."dashboard_item_id" = "posthog_dashboarditem"."id") - LEFT OUTER JOIN "posthog_user" ON ("posthog_annotation"."created_by_id" = "posthog_user"."id") - WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid - AND "posthog_annotation"."scope" = 'organization') - OR "posthog_annotation"."team_id" = 2) - AND NOT "posthog_annotation"."deleted") - ORDER BY "posthog_annotation"."date_marker" DESC - LIMIT 1000 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ - ''' -# --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.11 ''' SELECT "posthog_user"."id", "posthog_user"."password", @@ -191,7 +112,7 @@ LIMIT 21 /**/ ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.12 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.11 ''' SELECT "posthog_team"."id", "posthog_team"."uuid", @@ -242,7 +163,7 @@ LIMIT 21 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.13 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.12 ''' SELECT "posthog_organizationmembership"."id", "posthog_organizationmembership"."organization_id", @@ -272,7 +193,7 @@ WHERE "posthog_organizationmembership"."user_id" = 2 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ ''' # --- -# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.14 +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.13 ''' SELECT COUNT(*) AS "__count" FROM "posthog_annotation" @@ -282,6 +203,85 @@ AND NOT "posthog_annotation"."deleted") /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ ''' # --- +# name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.14 + ''' + SELECT "posthog_annotation"."id", + "posthog_annotation"."content", + "posthog_annotation"."created_at", + "posthog_annotation"."updated_at", + "posthog_annotation"."dashboard_item_id", + "posthog_annotation"."team_id", + "posthog_annotation"."organization_id", + "posthog_annotation"."created_by_id", + "posthog_annotation"."scope", + "posthog_annotation"."creation_type", + "posthog_annotation"."date_marker", + "posthog_annotation"."deleted", + "posthog_annotation"."apply_all", + "posthog_dashboarditem"."id", + "posthog_dashboarditem"."name", + "posthog_dashboarditem"."derived_name", + "posthog_dashboarditem"."description", + "posthog_dashboarditem"."team_id", + "posthog_dashboarditem"."filters", + "posthog_dashboarditem"."filters_hash", + "posthog_dashboarditem"."query", + "posthog_dashboarditem"."order", + "posthog_dashboarditem"."deleted", + "posthog_dashboarditem"."saved", + "posthog_dashboarditem"."created_at", + "posthog_dashboarditem"."last_refresh", + "posthog_dashboarditem"."refreshing", + "posthog_dashboarditem"."created_by_id", + "posthog_dashboarditem"."is_sample", + "posthog_dashboarditem"."short_id", + "posthog_dashboarditem"."favorited", + "posthog_dashboarditem"."refresh_attempt", + "posthog_dashboarditem"."last_modified_at", + "posthog_dashboarditem"."last_modified_by_id", + "posthog_dashboarditem"."dashboard_id", + "posthog_dashboarditem"."layouts", + "posthog_dashboarditem"."color", + "posthog_dashboarditem"."dive_dashboard_id", + "posthog_dashboarditem"."updated_at", + "posthog_dashboarditem"."deprecated_tags", + "posthog_dashboarditem"."tags", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."is_active", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."email_opt_in", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."events_column_config" + FROM "posthog_annotation" + LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_annotation"."dashboard_item_id" = "posthog_dashboarditem"."id") + LEFT OUTER JOIN "posthog_user" ON ("posthog_annotation"."created_by_id" = "posthog_user"."id") + WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_annotation"."scope" = 'organization') + OR "posthog_annotation"."team_id" = 2) + AND NOT "posthog_annotation"."deleted") + ORDER BY "posthog_annotation"."date_marker" DESC + LIMIT 1000 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + ''' +# --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.15 ''' SELECT "posthog_annotation"."id", @@ -526,22 +526,90 @@ # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.8 ''' - SELECT "posthog_instancesetting"."id", - "posthog_instancesetting"."key", - "posthog_instancesetting"."raw_value" - FROM "posthog_instancesetting" - WHERE "posthog_instancesetting"."key" = 'constance:posthog:RATE_LIMIT_ENABLED' - ORDER BY "posthog_instancesetting"."id" ASC - LIMIT 1 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + SELECT COUNT(*) AS "__count" + FROM "posthog_annotation" + WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid + AND "posthog_annotation"."scope" = 'organization') + OR "posthog_annotation"."team_id" = 2) + AND NOT "posthog_annotation"."deleted") /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ ''' # --- # name: TestAnnotation.test_retrieving_annotation_is_not_n_plus_1.9 ''' - SELECT COUNT(*) AS "__count" + SELECT "posthog_annotation"."id", + "posthog_annotation"."content", + "posthog_annotation"."created_at", + "posthog_annotation"."updated_at", + "posthog_annotation"."dashboard_item_id", + "posthog_annotation"."team_id", + "posthog_annotation"."organization_id", + "posthog_annotation"."created_by_id", + "posthog_annotation"."scope", + "posthog_annotation"."creation_type", + "posthog_annotation"."date_marker", + "posthog_annotation"."deleted", + "posthog_annotation"."apply_all", + "posthog_dashboarditem"."id", + "posthog_dashboarditem"."name", + "posthog_dashboarditem"."derived_name", + "posthog_dashboarditem"."description", + "posthog_dashboarditem"."team_id", + "posthog_dashboarditem"."filters", + "posthog_dashboarditem"."filters_hash", + "posthog_dashboarditem"."query", + "posthog_dashboarditem"."order", + "posthog_dashboarditem"."deleted", + "posthog_dashboarditem"."saved", + "posthog_dashboarditem"."created_at", + "posthog_dashboarditem"."last_refresh", + "posthog_dashboarditem"."refreshing", + "posthog_dashboarditem"."created_by_id", + "posthog_dashboarditem"."is_sample", + "posthog_dashboarditem"."short_id", + "posthog_dashboarditem"."favorited", + "posthog_dashboarditem"."refresh_attempt", + "posthog_dashboarditem"."last_modified_at", + "posthog_dashboarditem"."last_modified_by_id", + "posthog_dashboarditem"."dashboard_id", + "posthog_dashboarditem"."layouts", + "posthog_dashboarditem"."color", + "posthog_dashboarditem"."dive_dashboard_id", + "posthog_dashboarditem"."updated_at", + "posthog_dashboarditem"."deprecated_tags", + "posthog_dashboarditem"."tags", + "posthog_user"."id", + "posthog_user"."password", + "posthog_user"."last_login", + "posthog_user"."first_name", + "posthog_user"."last_name", + "posthog_user"."is_staff", + "posthog_user"."is_active", + "posthog_user"."date_joined", + "posthog_user"."uuid", + "posthog_user"."current_organization_id", + "posthog_user"."current_team_id", + "posthog_user"."email", + "posthog_user"."pending_email", + "posthog_user"."temporary_token", + "posthog_user"."distinct_id", + "posthog_user"."is_email_verified", + "posthog_user"."requested_password_reset_at", + "posthog_user"."has_seen_product_intro_for", + "posthog_user"."strapi_id", + "posthog_user"."email_opt_in", + "posthog_user"."theme_mode", + "posthog_user"."partial_notification_settings", + "posthog_user"."anonymize_data", + "posthog_user"."toolbar_mode", + "posthog_user"."events_column_config" FROM "posthog_annotation" + LEFT OUTER JOIN "posthog_dashboarditem" ON ("posthog_annotation"."dashboard_item_id" = "posthog_dashboarditem"."id") + LEFT OUTER JOIN "posthog_user" ON ("posthog_annotation"."created_by_id" = "posthog_user"."id") WHERE ((("posthog_annotation"."organization_id" = '00000000-0000-0000-0000-000000000000'::uuid AND "posthog_annotation"."scope" = 'organization') OR "posthog_annotation"."team_id" = 2) - AND NOT "posthog_annotation"."deleted") /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ + AND NOT "posthog_annotation"."deleted") + ORDER BY "posthog_annotation"."date_marker" DESC + LIMIT 1000 /*controller='project_annotations-list',route='api/projects/%28%3FP%3Cparent_lookup_team_id%3E%5B%5E/.%5D%2B%29/annotations/%3F%24'*/ ''' # --- From 89624d5e87c0bef0176e8f87282e153d888e8498 Mon Sep 17 00:00:00 2001 From: Tom Owers Date: Wed, 17 Jan 2024 17:12:28 +0000 Subject: [PATCH 7/9] Rejigged the g4 file --- hogql_parser/HogQLParser.cpp | 2263 +++++++++-------- hogql_parser/HogQLParser.h | 54 +- hogql_parser/HogQLParser.interp | 3 +- hogql_parser/HogQLParserBaseVisitor.h | 4 - hogql_parser/HogQLParserVisitor.h | 2 - hogql_parser/parser.cpp | 16 +- posthog/hogql/grammar/HogQLParser.g4 | 3 +- posthog/hogql/grammar/HogQLParser.interp | 3 +- posthog/hogql/grammar/HogQLParser.py | 2437 +++++++++---------- posthog/hogql/grammar/HogQLParserVisitor.py | 5 - posthog/hogql/parser.py | 8 +- 11 files changed, 2323 insertions(+), 2475 deletions(-) diff --git a/hogql_parser/HogQLParser.cpp b/hogql_parser/HogQLParser.cpp index cd3d673a32bd0..f93862eec5c0d 100644 --- a/hogql_parser/HogQLParser.cpp +++ b/hogql_parser/HogQLParser.cpp @@ -52,10 +52,10 @@ void hogqlparserParserInitialize() { #endif auto staticData = std::make_unique( std::vector{ - "select", "selectUnionStmt", "selectStmtWithParens", "selectStmtWithPlaceholder", - "selectStmt", "withClause", "topClause", "fromClause", "arrayJoinClause", - "windowClause", "prewhereClause", "whereClause", "groupByClause", - "havingClause", "orderByClause", "projectionOrderByClause", "limitAndOffsetClause", + "select", "selectUnionStmt", "selectStmtWithParens", "selectStmt", + "withClause", "topClause", "fromClause", "arrayJoinClause", "windowClause", + "prewhereClause", "whereClause", "groupByClause", "havingClause", + "orderByClause", "projectionOrderByClause", "limitAndOffsetClause", "offsetOnlyClause", "settingsClause", "joinExpr", "joinOp", "joinOpCross", "joinConstraintClause", "sampleClause", "orderExprList", "orderExpr", "ratioExpr", "settingExprList", "settingExpr", "windowExpr", "winPartitionByClause", @@ -127,7 +127,7 @@ void hogqlparserParserInitialize() { } ); static const int32_t serializedATNSegment[] = { - 4,1,242,984,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, + 4,1,242,979,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, @@ -135,357 +135,355 @@ void hogqlparserParserInitialize() { 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,1,0,1, - 0,1,0,3,0,130,8,0,1,0,1,0,1,1,1,1,1,1,1,1,5,1,138,8,1,10,1,12,1,141,9, - 1,1,2,1,2,1,2,1,2,1,2,3,2,148,8,2,1,3,1,3,3,3,152,8,3,1,4,3,4,155,8,4, - 1,4,1,4,3,4,159,8,4,1,4,3,4,162,8,4,1,4,1,4,3,4,166,8,4,1,4,3,4,169,8, - 4,1,4,3,4,172,8,4,1,4,3,4,175,8,4,1,4,3,4,178,8,4,1,4,1,4,3,4,182,8,4, - 1,4,1,4,3,4,186,8,4,1,4,3,4,189,8,4,1,4,3,4,192,8,4,1,4,3,4,195,8,4,1, - 4,1,4,3,4,199,8,4,1,4,3,4,202,8,4,1,5,1,5,1,5,1,6,1,6,1,6,1,6,3,6,211, - 8,6,1,7,1,7,1,7,1,8,3,8,217,8,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,9,1,9,1,9,5,9,236,8,9,10,9,12,9,239,9,9,1,10,1,10, - 1,10,1,11,1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,12,1,12,1,12,3,12,255, - 8,12,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,16,1,16, - 1,16,1,16,3,16,272,8,16,1,16,1,16,1,16,1,16,3,16,278,8,16,1,16,1,16,1, - 16,1,16,3,16,284,8,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,3, - 16,295,8,16,3,16,297,8,16,1,17,1,17,1,17,1,18,1,18,1,18,1,19,1,19,1,19, - 3,19,308,8,19,1,19,3,19,311,8,19,1,19,1,19,1,19,1,19,3,19,317,8,19,1, - 19,1,19,1,19,1,19,1,19,1,19,3,19,325,8,19,1,19,1,19,1,19,1,19,5,19,331, - 8,19,10,19,12,19,334,9,19,1,20,3,20,337,8,20,1,20,1,20,1,20,3,20,342, - 8,20,1,20,3,20,345,8,20,1,20,3,20,348,8,20,1,20,1,20,3,20,352,8,20,1, - 20,1,20,3,20,356,8,20,1,20,3,20,359,8,20,3,20,361,8,20,1,20,3,20,364, - 8,20,1,20,1,20,3,20,368,8,20,1,20,1,20,3,20,372,8,20,1,20,3,20,375,8, - 20,3,20,377,8,20,3,20,379,8,20,1,21,1,21,1,21,3,21,384,8,21,1,22,1,22, - 1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,395,8,22,1,23,1,23,1,23,1,23, - 3,23,401,8,23,1,24,1,24,1,24,5,24,406,8,24,10,24,12,24,409,9,24,1,25, - 1,25,3,25,413,8,25,1,25,1,25,3,25,417,8,25,1,25,1,25,3,25,421,8,25,1, - 26,1,26,1,26,1,26,3,26,427,8,26,3,26,429,8,26,1,27,1,27,1,27,5,27,434, - 8,27,10,27,12,27,437,9,27,1,28,1,28,1,28,1,28,1,29,3,29,444,8,29,1,29, - 3,29,447,8,29,1,29,3,29,450,8,29,1,30,1,30,1,30,1,30,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,33,3,33,469,8,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,3,34,483,8,34,1, - 35,1,35,1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,5,36,497,8, - 36,10,36,12,36,500,9,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,5,36,509,8, - 36,10,36,12,36,512,9,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,5,36,521,8, - 36,10,36,12,36,524,9,36,1,36,1,36,1,36,1,36,1,36,3,36,531,8,36,1,36,1, - 36,3,36,535,8,36,1,37,1,37,1,37,5,37,540,8,37,10,37,12,37,543,9,37,1, - 38,1,38,1,38,3,38,548,8,38,1,38,1,38,1,38,1,38,1,38,4,38,555,8,38,11, - 38,12,38,556,1,38,1,38,3,38,561,8,38,1,38,1,38,1,38,1,38,1,38,1,38,1, - 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1, - 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,592,8,38,1,38,1,38,1, - 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,609, - 8,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,621,8,38, - 1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,631,8,38,1,38,3,38,634,8, - 38,1,38,1,38,3,38,638,8,38,1,38,3,38,641,8,38,1,38,1,38,1,38,1,38,1,38, - 1,38,1,38,1,38,1,38,1,38,1,38,3,38,654,8,38,1,38,1,38,1,38,1,38,1,38, - 1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,671,8,38,1,38, - 1,38,3,38,675,8,38,1,38,1,38,1,38,1,38,3,38,681,8,38,1,38,1,38,1,38,1, - 38,1,38,3,38,688,8,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1, - 38,3,38,700,8,38,1,38,1,38,3,38,704,8,38,1,38,3,38,707,8,38,1,38,1,38, - 1,38,1,38,1,38,1,38,1,38,3,38,716,8,38,1,38,1,38,1,38,1,38,1,38,1,38, - 1,38,1,38,1,38,1,38,1,38,1,38,3,38,730,8,38,1,38,1,38,1,38,1,38,1,38, - 1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38, - 1,38,1,38,1,38,1,38,1,38,1,38,3,38,757,8,38,1,38,1,38,1,38,1,38,1,38, - 1,38,1,38,3,38,766,8,38,5,38,768,8,38,10,38,12,38,771,9,38,1,39,1,39, - 1,39,5,39,776,8,39,10,39,12,39,779,9,39,1,40,1,40,3,40,783,8,40,1,41, - 1,41,1,41,1,41,5,41,789,8,41,10,41,12,41,792,9,41,1,41,1,41,1,41,1,41, - 1,41,5,41,799,8,41,10,41,12,41,802,9,41,3,41,804,8,41,1,41,1,41,1,41, - 1,42,1,42,1,42,5,42,812,8,42,10,42,12,42,815,9,42,1,42,1,42,1,42,1,42, - 1,42,1,42,5,42,823,8,42,10,42,12,42,826,9,42,1,42,1,42,3,42,830,8,42, - 1,42,1,42,1,42,1,42,1,42,3,42,837,8,42,1,43,1,43,1,43,1,43,1,43,1,43, - 1,43,1,43,1,43,1,43,1,43,3,43,850,8,43,1,44,1,44,1,44,5,44,855,8,44,10, - 44,12,44,858,9,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,1,45,3, - 45,870,8,45,1,46,1,46,1,46,1,46,3,46,876,8,46,1,46,3,46,879,8,46,1,47, - 1,47,1,47,5,47,884,8,47,10,47,12,47,887,9,47,1,48,1,48,1,48,1,48,1,48, - 1,48,1,48,1,48,1,48,3,48,898,8,48,1,48,1,48,1,48,1,48,3,48,904,8,48,5, - 48,906,8,48,10,48,12,48,909,9,48,1,49,1,49,1,49,3,49,914,8,49,1,49,1, - 49,1,50,1,50,1,50,3,50,921,8,50,1,50,1,50,1,51,1,51,1,51,5,51,928,8,51, - 10,51,12,51,931,9,51,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,941, - 8,53,3,53,943,8,53,1,54,3,54,946,8,54,1,54,1,54,1,54,1,54,1,54,1,54,3, - 54,954,8,54,1,55,1,55,1,55,3,55,959,8,55,1,56,1,56,1,57,1,57,1,58,1,58, - 1,59,1,59,3,59,969,8,59,1,60,1,60,1,60,3,60,974,8,60,1,61,1,61,1,61,1, - 61,1,62,1,62,1,62,1,62,1,62,0,3,38,76,96,63,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,0,16,2,0,32,32,141,141,2,0,84,84,96,96, - 3,0,4,4,8,8,12,12,4,0,4,4,7,8,12,12,147,147,2,0,96,96,140,140,2,0,4,4, - 8,8,2,0,11,11,42,43,2,0,62,62,93,93,2,0,133,133,143,143,3,0,17,17,95, - 95,170,170,2,0,79,79,98,98,1,0,197,198,2,0,208,208,228,228,8,0,37,37, - 76,76,108,108,110,110,132,132,145,145,185,185,190,190,13,0,2,24,26,36, - 38,75,77,81,83,107,109,109,111,112,114,115,117,130,133,144,146,184,186, - 189,191,192,4,0,36,36,62,62,77,77,91,91,1111,0,129,1,0,0,0,2,133,1,0, - 0,0,4,147,1,0,0,0,6,151,1,0,0,0,8,154,1,0,0,0,10,203,1,0,0,0,12,206,1, - 0,0,0,14,212,1,0,0,0,16,216,1,0,0,0,18,222,1,0,0,0,20,240,1,0,0,0,22, - 243,1,0,0,0,24,246,1,0,0,0,26,256,1,0,0,0,28,259,1,0,0,0,30,263,1,0,0, - 0,32,296,1,0,0,0,34,298,1,0,0,0,36,301,1,0,0,0,38,316,1,0,0,0,40,378, - 1,0,0,0,42,383,1,0,0,0,44,394,1,0,0,0,46,396,1,0,0,0,48,402,1,0,0,0,50, - 410,1,0,0,0,52,428,1,0,0,0,54,430,1,0,0,0,56,438,1,0,0,0,58,443,1,0,0, - 0,60,451,1,0,0,0,62,455,1,0,0,0,64,459,1,0,0,0,66,468,1,0,0,0,68,482, - 1,0,0,0,70,484,1,0,0,0,72,534,1,0,0,0,74,536,1,0,0,0,76,674,1,0,0,0,78, - 772,1,0,0,0,80,782,1,0,0,0,82,803,1,0,0,0,84,836,1,0,0,0,86,849,1,0,0, - 0,88,851,1,0,0,0,90,869,1,0,0,0,92,878,1,0,0,0,94,880,1,0,0,0,96,897, - 1,0,0,0,98,910,1,0,0,0,100,920,1,0,0,0,102,924,1,0,0,0,104,932,1,0,0, - 0,106,942,1,0,0,0,108,945,1,0,0,0,110,958,1,0,0,0,112,960,1,0,0,0,114, - 962,1,0,0,0,116,964,1,0,0,0,118,968,1,0,0,0,120,973,1,0,0,0,122,975,1, - 0,0,0,124,979,1,0,0,0,126,130,3,2,1,0,127,130,3,8,4,0,128,130,3,84,42, - 0,129,126,1,0,0,0,129,127,1,0,0,0,129,128,1,0,0,0,130,131,1,0,0,0,131, - 132,5,0,0,1,132,1,1,0,0,0,133,139,3,4,2,0,134,135,5,176,0,0,135,136,5, - 4,0,0,136,138,3,4,2,0,137,134,1,0,0,0,138,141,1,0,0,0,139,137,1,0,0,0, - 139,140,1,0,0,0,140,3,1,0,0,0,141,139,1,0,0,0,142,148,3,6,3,0,143,144, - 5,220,0,0,144,145,3,2,1,0,145,146,5,236,0,0,146,148,1,0,0,0,147,142,1, - 0,0,0,147,143,1,0,0,0,148,5,1,0,0,0,149,152,3,8,4,0,150,152,3,124,62, - 0,151,149,1,0,0,0,151,150,1,0,0,0,152,7,1,0,0,0,153,155,3,10,5,0,154, - 153,1,0,0,0,154,155,1,0,0,0,155,156,1,0,0,0,156,158,5,146,0,0,157,159, - 5,49,0,0,158,157,1,0,0,0,158,159,1,0,0,0,159,161,1,0,0,0,160,162,3,12, - 6,0,161,160,1,0,0,0,161,162,1,0,0,0,162,163,1,0,0,0,163,165,3,74,37,0, - 164,166,3,14,7,0,165,164,1,0,0,0,165,166,1,0,0,0,166,168,1,0,0,0,167, - 169,3,16,8,0,168,167,1,0,0,0,168,169,1,0,0,0,169,171,1,0,0,0,170,172, - 3,20,10,0,171,170,1,0,0,0,171,172,1,0,0,0,172,174,1,0,0,0,173,175,3,22, - 11,0,174,173,1,0,0,0,174,175,1,0,0,0,175,177,1,0,0,0,176,178,3,24,12, - 0,177,176,1,0,0,0,177,178,1,0,0,0,178,181,1,0,0,0,179,180,5,189,0,0,180, - 182,7,0,0,0,181,179,1,0,0,0,181,182,1,0,0,0,182,185,1,0,0,0,183,184,5, - 189,0,0,184,186,5,169,0,0,185,183,1,0,0,0,185,186,1,0,0,0,186,188,1,0, - 0,0,187,189,3,26,13,0,188,187,1,0,0,0,188,189,1,0,0,0,189,191,1,0,0,0, - 190,192,3,18,9,0,191,190,1,0,0,0,191,192,1,0,0,0,192,194,1,0,0,0,193, - 195,3,28,14,0,194,193,1,0,0,0,194,195,1,0,0,0,195,198,1,0,0,0,196,199, - 3,32,16,0,197,199,3,34,17,0,198,196,1,0,0,0,198,197,1,0,0,0,198,199,1, - 0,0,0,199,201,1,0,0,0,200,202,3,36,18,0,201,200,1,0,0,0,201,202,1,0,0, - 0,202,9,1,0,0,0,203,204,5,189,0,0,204,205,3,88,44,0,205,11,1,0,0,0,206, - 207,5,168,0,0,207,210,5,198,0,0,208,209,5,189,0,0,209,211,5,164,0,0,210, - 208,1,0,0,0,210,211,1,0,0,0,211,13,1,0,0,0,212,213,5,68,0,0,213,214,3, - 38,19,0,214,15,1,0,0,0,215,217,7,1,0,0,216,215,1,0,0,0,216,217,1,0,0, - 0,217,218,1,0,0,0,218,219,5,9,0,0,219,220,5,90,0,0,220,221,3,74,37,0, - 221,17,1,0,0,0,222,223,5,188,0,0,223,224,3,120,60,0,224,225,5,10,0,0, - 225,226,5,220,0,0,226,227,3,58,29,0,227,237,5,236,0,0,228,229,5,206,0, - 0,229,230,3,120,60,0,230,231,5,10,0,0,231,232,5,220,0,0,232,233,3,58, - 29,0,233,234,5,236,0,0,234,236,1,0,0,0,235,228,1,0,0,0,236,239,1,0,0, - 0,237,235,1,0,0,0,237,238,1,0,0,0,238,19,1,0,0,0,239,237,1,0,0,0,240, - 241,5,129,0,0,241,242,3,76,38,0,242,21,1,0,0,0,243,244,5,187,0,0,244, - 245,3,76,38,0,245,23,1,0,0,0,246,247,5,73,0,0,247,254,5,18,0,0,248,249, - 7,0,0,0,249,250,5,220,0,0,250,251,3,74,37,0,251,252,5,236,0,0,252,255, - 1,0,0,0,253,255,3,74,37,0,254,248,1,0,0,0,254,253,1,0,0,0,255,25,1,0, - 0,0,256,257,5,74,0,0,257,258,3,76,38,0,258,27,1,0,0,0,259,260,5,122,0, - 0,260,261,5,18,0,0,261,262,3,48,24,0,262,29,1,0,0,0,263,264,5,122,0,0, - 264,265,5,18,0,0,265,266,3,74,37,0,266,31,1,0,0,0,267,268,5,99,0,0,268, - 271,3,76,38,0,269,270,5,206,0,0,270,272,3,76,38,0,271,269,1,0,0,0,271, - 272,1,0,0,0,272,277,1,0,0,0,273,274,5,189,0,0,274,278,5,164,0,0,275,276, - 5,18,0,0,276,278,3,74,37,0,277,273,1,0,0,0,277,275,1,0,0,0,277,278,1, - 0,0,0,278,297,1,0,0,0,279,280,5,99,0,0,280,283,3,76,38,0,281,282,5,189, - 0,0,282,284,5,164,0,0,283,281,1,0,0,0,283,284,1,0,0,0,284,285,1,0,0,0, - 285,286,5,118,0,0,286,287,3,76,38,0,287,297,1,0,0,0,288,289,5,99,0,0, - 289,290,3,76,38,0,290,291,5,118,0,0,291,294,3,76,38,0,292,293,5,18,0, - 0,293,295,3,74,37,0,294,292,1,0,0,0,294,295,1,0,0,0,295,297,1,0,0,0,296, - 267,1,0,0,0,296,279,1,0,0,0,296,288,1,0,0,0,297,33,1,0,0,0,298,299,5, - 118,0,0,299,300,3,76,38,0,300,35,1,0,0,0,301,302,5,150,0,0,302,303,3, - 54,27,0,303,37,1,0,0,0,304,305,6,19,-1,0,305,307,3,96,48,0,306,308,5, - 61,0,0,307,306,1,0,0,0,307,308,1,0,0,0,308,310,1,0,0,0,309,311,3,46,23, - 0,310,309,1,0,0,0,310,311,1,0,0,0,311,317,1,0,0,0,312,313,5,220,0,0,313, - 314,3,38,19,0,314,315,5,236,0,0,315,317,1,0,0,0,316,304,1,0,0,0,316,312, - 1,0,0,0,317,332,1,0,0,0,318,319,10,3,0,0,319,320,3,42,21,0,320,321,3, - 38,19,4,321,331,1,0,0,0,322,324,10,4,0,0,323,325,3,40,20,0,324,323,1, - 0,0,0,324,325,1,0,0,0,325,326,1,0,0,0,326,327,5,90,0,0,327,328,3,38,19, - 0,328,329,3,44,22,0,329,331,1,0,0,0,330,318,1,0,0,0,330,322,1,0,0,0,331, - 334,1,0,0,0,332,330,1,0,0,0,332,333,1,0,0,0,333,39,1,0,0,0,334,332,1, - 0,0,0,335,337,7,2,0,0,336,335,1,0,0,0,336,337,1,0,0,0,337,338,1,0,0,0, - 338,345,5,84,0,0,339,341,5,84,0,0,340,342,7,2,0,0,341,340,1,0,0,0,341, - 342,1,0,0,0,342,345,1,0,0,0,343,345,7,2,0,0,344,336,1,0,0,0,344,339,1, - 0,0,0,344,343,1,0,0,0,345,379,1,0,0,0,346,348,7,3,0,0,347,346,1,0,0,0, - 347,348,1,0,0,0,348,349,1,0,0,0,349,351,7,4,0,0,350,352,5,123,0,0,351, - 350,1,0,0,0,351,352,1,0,0,0,352,361,1,0,0,0,353,355,7,4,0,0,354,356,5, - 123,0,0,355,354,1,0,0,0,355,356,1,0,0,0,356,358,1,0,0,0,357,359,7,3,0, - 0,358,357,1,0,0,0,358,359,1,0,0,0,359,361,1,0,0,0,360,347,1,0,0,0,360, - 353,1,0,0,0,361,379,1,0,0,0,362,364,7,5,0,0,363,362,1,0,0,0,363,364,1, - 0,0,0,364,365,1,0,0,0,365,367,5,69,0,0,366,368,5,123,0,0,367,366,1,0, - 0,0,367,368,1,0,0,0,368,377,1,0,0,0,369,371,5,69,0,0,370,372,5,123,0, - 0,371,370,1,0,0,0,371,372,1,0,0,0,372,374,1,0,0,0,373,375,7,5,0,0,374, - 373,1,0,0,0,374,375,1,0,0,0,375,377,1,0,0,0,376,363,1,0,0,0,376,369,1, - 0,0,0,377,379,1,0,0,0,378,344,1,0,0,0,378,360,1,0,0,0,378,376,1,0,0,0, - 379,41,1,0,0,0,380,381,5,31,0,0,381,384,5,90,0,0,382,384,5,206,0,0,383, - 380,1,0,0,0,383,382,1,0,0,0,384,43,1,0,0,0,385,386,5,119,0,0,386,395, - 3,74,37,0,387,388,5,179,0,0,388,389,5,220,0,0,389,390,3,74,37,0,390,391, - 5,236,0,0,391,395,1,0,0,0,392,393,5,179,0,0,393,395,3,74,37,0,394,385, - 1,0,0,0,394,387,1,0,0,0,394,392,1,0,0,0,395,45,1,0,0,0,396,397,5,144, - 0,0,397,400,3,52,26,0,398,399,5,118,0,0,399,401,3,52,26,0,400,398,1,0, - 0,0,400,401,1,0,0,0,401,47,1,0,0,0,402,407,3,50,25,0,403,404,5,206,0, - 0,404,406,3,50,25,0,405,403,1,0,0,0,406,409,1,0,0,0,407,405,1,0,0,0,407, - 408,1,0,0,0,408,49,1,0,0,0,409,407,1,0,0,0,410,412,3,76,38,0,411,413, - 7,6,0,0,412,411,1,0,0,0,412,413,1,0,0,0,413,416,1,0,0,0,414,415,5,117, - 0,0,415,417,7,7,0,0,416,414,1,0,0,0,416,417,1,0,0,0,417,420,1,0,0,0,418, - 419,5,26,0,0,419,421,5,200,0,0,420,418,1,0,0,0,420,421,1,0,0,0,421,51, - 1,0,0,0,422,429,3,124,62,0,423,426,3,108,54,0,424,425,5,238,0,0,425,427, - 3,108,54,0,426,424,1,0,0,0,426,427,1,0,0,0,427,429,1,0,0,0,428,422,1, - 0,0,0,428,423,1,0,0,0,429,53,1,0,0,0,430,435,3,56,28,0,431,432,5,206, - 0,0,432,434,3,56,28,0,433,431,1,0,0,0,434,437,1,0,0,0,435,433,1,0,0,0, - 435,436,1,0,0,0,436,55,1,0,0,0,437,435,1,0,0,0,438,439,3,120,60,0,439, - 440,5,212,0,0,440,441,3,110,55,0,441,57,1,0,0,0,442,444,3,60,30,0,443, - 442,1,0,0,0,443,444,1,0,0,0,444,446,1,0,0,0,445,447,3,62,31,0,446,445, - 1,0,0,0,446,447,1,0,0,0,447,449,1,0,0,0,448,450,3,64,32,0,449,448,1,0, - 0,0,449,450,1,0,0,0,450,59,1,0,0,0,451,452,5,126,0,0,452,453,5,18,0,0, - 453,454,3,74,37,0,454,61,1,0,0,0,455,456,5,122,0,0,456,457,5,18,0,0,457, - 458,3,48,24,0,458,63,1,0,0,0,459,460,7,8,0,0,460,461,3,66,33,0,461,65, - 1,0,0,0,462,469,3,68,34,0,463,464,5,16,0,0,464,465,3,68,34,0,465,466, - 5,6,0,0,466,467,3,68,34,0,467,469,1,0,0,0,468,462,1,0,0,0,468,463,1,0, - 0,0,469,67,1,0,0,0,470,471,5,33,0,0,471,483,5,142,0,0,472,473,5,175,0, - 0,473,483,5,128,0,0,474,475,5,175,0,0,475,483,5,64,0,0,476,477,3,108, - 54,0,477,478,5,128,0,0,478,483,1,0,0,0,479,480,3,108,54,0,480,481,5,64, - 0,0,481,483,1,0,0,0,482,470,1,0,0,0,482,472,1,0,0,0,482,474,1,0,0,0,482, - 476,1,0,0,0,482,479,1,0,0,0,483,69,1,0,0,0,484,485,3,76,38,0,485,486, - 5,0,0,1,486,71,1,0,0,0,487,535,3,120,60,0,488,489,3,120,60,0,489,490, - 5,220,0,0,490,491,3,120,60,0,491,498,3,72,36,0,492,493,5,206,0,0,493, - 494,3,120,60,0,494,495,3,72,36,0,495,497,1,0,0,0,496,492,1,0,0,0,497, - 500,1,0,0,0,498,496,1,0,0,0,498,499,1,0,0,0,499,501,1,0,0,0,500,498,1, - 0,0,0,501,502,5,236,0,0,502,535,1,0,0,0,503,504,3,120,60,0,504,505,5, - 220,0,0,505,510,3,122,61,0,506,507,5,206,0,0,507,509,3,122,61,0,508,506, - 1,0,0,0,509,512,1,0,0,0,510,508,1,0,0,0,510,511,1,0,0,0,511,513,1,0,0, - 0,512,510,1,0,0,0,513,514,5,236,0,0,514,535,1,0,0,0,515,516,3,120,60, - 0,516,517,5,220,0,0,517,522,3,72,36,0,518,519,5,206,0,0,519,521,3,72, - 36,0,520,518,1,0,0,0,521,524,1,0,0,0,522,520,1,0,0,0,522,523,1,0,0,0, - 523,525,1,0,0,0,524,522,1,0,0,0,525,526,5,236,0,0,526,535,1,0,0,0,527, - 528,3,120,60,0,528,530,5,220,0,0,529,531,3,74,37,0,530,529,1,0,0,0,530, - 531,1,0,0,0,531,532,1,0,0,0,532,533,5,236,0,0,533,535,1,0,0,0,534,487, - 1,0,0,0,534,488,1,0,0,0,534,503,1,0,0,0,534,515,1,0,0,0,534,527,1,0,0, - 0,535,73,1,0,0,0,536,541,3,76,38,0,537,538,5,206,0,0,538,540,3,76,38, - 0,539,537,1,0,0,0,540,543,1,0,0,0,541,539,1,0,0,0,541,542,1,0,0,0,542, - 75,1,0,0,0,543,541,1,0,0,0,544,545,6,38,-1,0,545,547,5,19,0,0,546,548, - 3,76,38,0,547,546,1,0,0,0,547,548,1,0,0,0,548,554,1,0,0,0,549,550,5,186, - 0,0,550,551,3,76,38,0,551,552,5,163,0,0,552,553,3,76,38,0,553,555,1,0, - 0,0,554,549,1,0,0,0,555,556,1,0,0,0,556,554,1,0,0,0,556,557,1,0,0,0,557, - 560,1,0,0,0,558,559,5,52,0,0,559,561,3,76,38,0,560,558,1,0,0,0,560,561, - 1,0,0,0,561,562,1,0,0,0,562,563,5,53,0,0,563,675,1,0,0,0,564,565,5,20, - 0,0,565,566,5,220,0,0,566,567,3,76,38,0,567,568,5,10,0,0,568,569,3,72, - 36,0,569,570,5,236,0,0,570,675,1,0,0,0,571,572,5,36,0,0,572,675,5,200, - 0,0,573,574,5,59,0,0,574,575,5,220,0,0,575,576,3,112,56,0,576,577,5,68, - 0,0,577,578,3,76,38,0,578,579,5,236,0,0,579,675,1,0,0,0,580,581,5,86, - 0,0,581,582,3,76,38,0,582,583,3,112,56,0,583,675,1,0,0,0,584,585,5,155, - 0,0,585,586,5,220,0,0,586,587,3,76,38,0,587,588,5,68,0,0,588,591,3,76, - 38,0,589,590,5,65,0,0,590,592,3,76,38,0,591,589,1,0,0,0,591,592,1,0,0, - 0,592,593,1,0,0,0,593,594,5,236,0,0,594,675,1,0,0,0,595,596,5,166,0,0, - 596,675,5,200,0,0,597,598,5,171,0,0,598,599,5,220,0,0,599,600,7,9,0,0, - 600,601,5,200,0,0,601,602,5,68,0,0,602,603,3,76,38,0,603,604,5,236,0, - 0,604,675,1,0,0,0,605,606,3,120,60,0,606,608,5,220,0,0,607,609,3,74,37, - 0,608,607,1,0,0,0,608,609,1,0,0,0,609,610,1,0,0,0,610,611,5,236,0,0,611, - 612,1,0,0,0,612,613,5,125,0,0,613,614,5,220,0,0,614,615,3,58,29,0,615, - 616,5,236,0,0,616,675,1,0,0,0,617,618,3,120,60,0,618,620,5,220,0,0,619, - 621,3,74,37,0,620,619,1,0,0,0,620,621,1,0,0,0,621,622,1,0,0,0,622,623, - 5,236,0,0,623,624,1,0,0,0,624,625,5,125,0,0,625,626,3,120,60,0,626,675, - 1,0,0,0,627,633,3,120,60,0,628,630,5,220,0,0,629,631,3,74,37,0,630,629, - 1,0,0,0,630,631,1,0,0,0,631,632,1,0,0,0,632,634,5,236,0,0,633,628,1,0, - 0,0,633,634,1,0,0,0,634,635,1,0,0,0,635,637,5,220,0,0,636,638,5,49,0, - 0,637,636,1,0,0,0,637,638,1,0,0,0,638,640,1,0,0,0,639,641,3,78,39,0,640, - 639,1,0,0,0,640,641,1,0,0,0,641,642,1,0,0,0,642,643,5,236,0,0,643,675, - 1,0,0,0,644,675,3,84,42,0,645,675,3,110,55,0,646,647,5,208,0,0,647,675, - 3,76,38,18,648,649,5,115,0,0,649,675,3,76,38,12,650,651,3,100,50,0,651, - 652,5,210,0,0,652,654,1,0,0,0,653,650,1,0,0,0,653,654,1,0,0,0,654,655, - 1,0,0,0,655,675,5,202,0,0,656,657,5,220,0,0,657,658,3,2,1,0,658,659,5, - 236,0,0,659,675,1,0,0,0,660,661,5,220,0,0,661,662,3,76,38,0,662,663,5, - 236,0,0,663,675,1,0,0,0,664,665,5,220,0,0,665,666,3,74,37,0,666,667,5, - 236,0,0,667,675,1,0,0,0,668,670,5,219,0,0,669,671,3,74,37,0,670,669,1, - 0,0,0,670,671,1,0,0,0,671,672,1,0,0,0,672,675,5,235,0,0,673,675,3,92, - 46,0,674,544,1,0,0,0,674,564,1,0,0,0,674,571,1,0,0,0,674,573,1,0,0,0, - 674,580,1,0,0,0,674,584,1,0,0,0,674,595,1,0,0,0,674,597,1,0,0,0,674,605, - 1,0,0,0,674,617,1,0,0,0,674,627,1,0,0,0,674,644,1,0,0,0,674,645,1,0,0, - 0,674,646,1,0,0,0,674,648,1,0,0,0,674,653,1,0,0,0,674,656,1,0,0,0,674, - 660,1,0,0,0,674,664,1,0,0,0,674,668,1,0,0,0,674,673,1,0,0,0,675,769,1, - 0,0,0,676,680,10,17,0,0,677,681,5,202,0,0,678,681,5,238,0,0,679,681,5, - 227,0,0,680,677,1,0,0,0,680,678,1,0,0,0,680,679,1,0,0,0,681,682,1,0,0, - 0,682,768,3,76,38,18,683,687,10,16,0,0,684,688,5,228,0,0,685,688,5,208, - 0,0,686,688,5,207,0,0,687,684,1,0,0,0,687,685,1,0,0,0,687,686,1,0,0,0, - 688,689,1,0,0,0,689,768,3,76,38,17,690,715,10,15,0,0,691,716,5,211,0, - 0,692,716,5,212,0,0,693,716,5,223,0,0,694,716,5,221,0,0,695,716,5,222, - 0,0,696,716,5,213,0,0,697,716,5,214,0,0,698,700,5,115,0,0,699,698,1,0, - 0,0,699,700,1,0,0,0,700,701,1,0,0,0,701,703,5,80,0,0,702,704,5,25,0,0, - 703,702,1,0,0,0,703,704,1,0,0,0,704,716,1,0,0,0,705,707,5,115,0,0,706, - 705,1,0,0,0,706,707,1,0,0,0,707,708,1,0,0,0,708,716,7,10,0,0,709,716, - 5,232,0,0,710,716,5,233,0,0,711,716,5,225,0,0,712,716,5,216,0,0,713,716, - 5,217,0,0,714,716,5,224,0,0,715,691,1,0,0,0,715,692,1,0,0,0,715,693,1, - 0,0,0,715,694,1,0,0,0,715,695,1,0,0,0,715,696,1,0,0,0,715,697,1,0,0,0, - 715,699,1,0,0,0,715,706,1,0,0,0,715,709,1,0,0,0,715,710,1,0,0,0,715,711, - 1,0,0,0,715,712,1,0,0,0,715,713,1,0,0,0,715,714,1,0,0,0,716,717,1,0,0, - 0,717,768,3,76,38,16,718,719,10,13,0,0,719,720,5,226,0,0,720,768,3,76, - 38,14,721,722,10,11,0,0,722,723,5,6,0,0,723,768,3,76,38,12,724,725,10, - 10,0,0,725,726,5,121,0,0,726,768,3,76,38,11,727,729,10,9,0,0,728,730, - 5,115,0,0,729,728,1,0,0,0,729,730,1,0,0,0,730,731,1,0,0,0,731,732,5,16, - 0,0,732,733,3,76,38,0,733,734,5,6,0,0,734,735,3,76,38,10,735,768,1,0, - 0,0,736,737,10,8,0,0,737,738,5,229,0,0,738,739,3,76,38,0,739,740,5,205, - 0,0,740,741,3,76,38,8,741,768,1,0,0,0,742,743,10,21,0,0,743,744,5,219, - 0,0,744,745,3,76,38,0,745,746,5,235,0,0,746,768,1,0,0,0,747,748,10,20, - 0,0,748,749,5,210,0,0,749,768,5,198,0,0,750,751,10,19,0,0,751,752,5,210, - 0,0,752,768,3,120,60,0,753,754,10,14,0,0,754,756,5,88,0,0,755,757,5,115, - 0,0,756,755,1,0,0,0,756,757,1,0,0,0,757,758,1,0,0,0,758,768,5,116,0,0, - 759,765,10,7,0,0,760,766,3,118,59,0,761,762,5,10,0,0,762,766,3,120,60, - 0,763,764,5,10,0,0,764,766,5,200,0,0,765,760,1,0,0,0,765,761,1,0,0,0, - 765,763,1,0,0,0,766,768,1,0,0,0,767,676,1,0,0,0,767,683,1,0,0,0,767,690, - 1,0,0,0,767,718,1,0,0,0,767,721,1,0,0,0,767,724,1,0,0,0,767,727,1,0,0, - 0,767,736,1,0,0,0,767,742,1,0,0,0,767,747,1,0,0,0,767,750,1,0,0,0,767, - 753,1,0,0,0,767,759,1,0,0,0,768,771,1,0,0,0,769,767,1,0,0,0,769,770,1, - 0,0,0,770,77,1,0,0,0,771,769,1,0,0,0,772,777,3,80,40,0,773,774,5,206, - 0,0,774,776,3,80,40,0,775,773,1,0,0,0,776,779,1,0,0,0,777,775,1,0,0,0, - 777,778,1,0,0,0,778,79,1,0,0,0,779,777,1,0,0,0,780,783,3,82,41,0,781, - 783,3,76,38,0,782,780,1,0,0,0,782,781,1,0,0,0,783,81,1,0,0,0,784,785, - 5,220,0,0,785,790,3,120,60,0,786,787,5,206,0,0,787,789,3,120,60,0,788, - 786,1,0,0,0,789,792,1,0,0,0,790,788,1,0,0,0,790,791,1,0,0,0,791,793,1, - 0,0,0,792,790,1,0,0,0,793,794,5,236,0,0,794,804,1,0,0,0,795,800,3,120, - 60,0,796,797,5,206,0,0,797,799,3,120,60,0,798,796,1,0,0,0,799,802,1,0, - 0,0,800,798,1,0,0,0,800,801,1,0,0,0,801,804,1,0,0,0,802,800,1,0,0,0,803, - 784,1,0,0,0,803,795,1,0,0,0,804,805,1,0,0,0,805,806,5,201,0,0,806,807, - 3,76,38,0,807,83,1,0,0,0,808,809,5,222,0,0,809,813,3,120,60,0,810,812, - 3,86,43,0,811,810,1,0,0,0,812,815,1,0,0,0,813,811,1,0,0,0,813,814,1,0, - 0,0,814,816,1,0,0,0,815,813,1,0,0,0,816,817,5,238,0,0,817,818,5,214,0, - 0,818,837,1,0,0,0,819,820,5,222,0,0,820,824,3,120,60,0,821,823,3,86,43, - 0,822,821,1,0,0,0,823,826,1,0,0,0,824,822,1,0,0,0,824,825,1,0,0,0,825, - 827,1,0,0,0,826,824,1,0,0,0,827,829,5,214,0,0,828,830,3,84,42,0,829,828, - 1,0,0,0,829,830,1,0,0,0,830,831,1,0,0,0,831,832,5,222,0,0,832,833,5,238, - 0,0,833,834,3,120,60,0,834,835,5,214,0,0,835,837,1,0,0,0,836,808,1,0, - 0,0,836,819,1,0,0,0,837,85,1,0,0,0,838,839,3,120,60,0,839,840,5,212,0, - 0,840,841,5,200,0,0,841,850,1,0,0,0,842,843,3,120,60,0,843,844,5,212, - 0,0,844,845,5,218,0,0,845,846,3,76,38,0,846,847,5,234,0,0,847,850,1,0, - 0,0,848,850,3,120,60,0,849,838,1,0,0,0,849,842,1,0,0,0,849,848,1,0,0, - 0,850,87,1,0,0,0,851,856,3,90,45,0,852,853,5,206,0,0,853,855,3,90,45, - 0,854,852,1,0,0,0,855,858,1,0,0,0,856,854,1,0,0,0,856,857,1,0,0,0,857, - 89,1,0,0,0,858,856,1,0,0,0,859,860,3,120,60,0,860,861,5,10,0,0,861,862, - 5,220,0,0,862,863,3,2,1,0,863,864,5,236,0,0,864,870,1,0,0,0,865,866,3, - 76,38,0,866,867,5,10,0,0,867,868,3,120,60,0,868,870,1,0,0,0,869,859,1, - 0,0,0,869,865,1,0,0,0,870,91,1,0,0,0,871,879,3,124,62,0,872,873,3,100, - 50,0,873,874,5,210,0,0,874,876,1,0,0,0,875,872,1,0,0,0,875,876,1,0,0, - 0,876,877,1,0,0,0,877,879,3,94,47,0,878,871,1,0,0,0,878,875,1,0,0,0,879, - 93,1,0,0,0,880,885,3,120,60,0,881,882,5,210,0,0,882,884,3,120,60,0,883, - 881,1,0,0,0,884,887,1,0,0,0,885,883,1,0,0,0,885,886,1,0,0,0,886,95,1, - 0,0,0,887,885,1,0,0,0,888,889,6,48,-1,0,889,898,3,100,50,0,890,898,3, - 98,49,0,891,892,5,220,0,0,892,893,3,2,1,0,893,894,5,236,0,0,894,898,1, - 0,0,0,895,898,3,84,42,0,896,898,3,124,62,0,897,888,1,0,0,0,897,890,1, - 0,0,0,897,891,1,0,0,0,897,895,1,0,0,0,897,896,1,0,0,0,898,907,1,0,0,0, - 899,903,10,3,0,0,900,904,3,118,59,0,901,902,5,10,0,0,902,904,3,120,60, - 0,903,900,1,0,0,0,903,901,1,0,0,0,904,906,1,0,0,0,905,899,1,0,0,0,906, - 909,1,0,0,0,907,905,1,0,0,0,907,908,1,0,0,0,908,97,1,0,0,0,909,907,1, - 0,0,0,910,911,3,120,60,0,911,913,5,220,0,0,912,914,3,102,51,0,913,912, - 1,0,0,0,913,914,1,0,0,0,914,915,1,0,0,0,915,916,5,236,0,0,916,99,1,0, - 0,0,917,918,3,104,52,0,918,919,5,210,0,0,919,921,1,0,0,0,920,917,1,0, - 0,0,920,921,1,0,0,0,921,922,1,0,0,0,922,923,3,120,60,0,923,101,1,0,0, - 0,924,929,3,76,38,0,925,926,5,206,0,0,926,928,3,76,38,0,927,925,1,0,0, - 0,928,931,1,0,0,0,929,927,1,0,0,0,929,930,1,0,0,0,930,103,1,0,0,0,931, - 929,1,0,0,0,932,933,3,120,60,0,933,105,1,0,0,0,934,943,5,196,0,0,935, - 936,5,210,0,0,936,943,7,11,0,0,937,938,5,198,0,0,938,940,5,210,0,0,939, - 941,7,11,0,0,940,939,1,0,0,0,940,941,1,0,0,0,941,943,1,0,0,0,942,934, - 1,0,0,0,942,935,1,0,0,0,942,937,1,0,0,0,943,107,1,0,0,0,944,946,7,12, - 0,0,945,944,1,0,0,0,945,946,1,0,0,0,946,953,1,0,0,0,947,954,3,106,53, - 0,948,954,5,197,0,0,949,954,5,198,0,0,950,954,5,199,0,0,951,954,5,82, - 0,0,952,954,5,113,0,0,953,947,1,0,0,0,953,948,1,0,0,0,953,949,1,0,0,0, - 953,950,1,0,0,0,953,951,1,0,0,0,953,952,1,0,0,0,954,109,1,0,0,0,955,959, - 3,108,54,0,956,959,5,200,0,0,957,959,5,116,0,0,958,955,1,0,0,0,958,956, - 1,0,0,0,958,957,1,0,0,0,959,111,1,0,0,0,960,961,7,13,0,0,961,113,1,0, - 0,0,962,963,7,14,0,0,963,115,1,0,0,0,964,965,7,15,0,0,965,117,1,0,0,0, - 966,969,5,195,0,0,967,969,3,116,58,0,968,966,1,0,0,0,968,967,1,0,0,0, - 969,119,1,0,0,0,970,974,5,195,0,0,971,974,3,112,56,0,972,974,3,114,57, - 0,973,970,1,0,0,0,973,971,1,0,0,0,973,972,1,0,0,0,974,121,1,0,0,0,975, - 976,5,200,0,0,976,977,5,212,0,0,977,978,3,108,54,0,978,123,1,0,0,0,979, - 980,5,218,0,0,980,981,3,120,60,0,981,982,5,234,0,0,982,125,1,0,0,0,121, - 129,139,147,151,154,158,161,165,168,171,174,177,181,185,188,191,194,198, - 201,210,216,237,254,271,277,283,294,296,307,310,316,324,330,332,336,341, - 344,347,351,355,358,360,363,367,371,374,376,378,383,394,400,407,412,416, - 420,426,428,435,443,446,449,468,482,498,510,522,530,534,541,547,556,560, - 591,608,620,630,633,637,640,653,670,674,680,687,699,703,706,715,729,756, - 765,767,769,777,782,790,800,803,813,824,829,836,849,856,869,875,878,885, - 897,903,907,913,920,929,940,942,945,953,958,968,973 + 56,2,57,7,57,2,58,7,58,2,59,7,59,2,60,7,60,2,61,7,61,1,0,1,0,1,0,3,0, + 128,8,0,1,0,1,0,1,1,1,1,1,1,1,1,5,1,136,8,1,10,1,12,1,139,9,1,1,2,1,2, + 1,2,1,2,1,2,1,2,3,2,147,8,2,1,3,3,3,150,8,3,1,3,1,3,3,3,154,8,3,1,3,3, + 3,157,8,3,1,3,1,3,3,3,161,8,3,1,3,3,3,164,8,3,1,3,3,3,167,8,3,1,3,3,3, + 170,8,3,1,3,3,3,173,8,3,1,3,1,3,3,3,177,8,3,1,3,1,3,3,3,181,8,3,1,3,3, + 3,184,8,3,1,3,3,3,187,8,3,1,3,3,3,190,8,3,1,3,1,3,3,3,194,8,3,1,3,3,3, + 197,8,3,1,4,1,4,1,4,1,5,1,5,1,5,1,5,3,5,206,8,5,1,6,1,6,1,6,1,7,3,7,212, + 8,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,8,1,8,1,8,1, + 8,5,8,231,8,8,10,8,12,8,234,9,8,1,9,1,9,1,9,1,10,1,10,1,10,1,11,1,11, + 1,11,1,11,1,11,1,11,1,11,1,11,3,11,250,8,11,1,12,1,12,1,12,1,13,1,13, + 1,13,1,13,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,3,15,267,8,15,1,15, + 1,15,1,15,1,15,3,15,273,8,15,1,15,1,15,1,15,1,15,3,15,279,8,15,1,15,1, + 15,1,15,1,15,1,15,1,15,1,15,1,15,1,15,3,15,290,8,15,3,15,292,8,15,1,16, + 1,16,1,16,1,17,1,17,1,17,1,18,1,18,1,18,3,18,303,8,18,1,18,3,18,306,8, + 18,1,18,1,18,1,18,1,18,3,18,312,8,18,1,18,1,18,1,18,1,18,1,18,1,18,3, + 18,320,8,18,1,18,1,18,1,18,1,18,5,18,326,8,18,10,18,12,18,329,9,18,1, + 19,3,19,332,8,19,1,19,1,19,1,19,3,19,337,8,19,1,19,3,19,340,8,19,1,19, + 3,19,343,8,19,1,19,1,19,3,19,347,8,19,1,19,1,19,3,19,351,8,19,1,19,3, + 19,354,8,19,3,19,356,8,19,1,19,3,19,359,8,19,1,19,1,19,3,19,363,8,19, + 1,19,1,19,3,19,367,8,19,1,19,3,19,370,8,19,3,19,372,8,19,3,19,374,8,19, + 1,20,1,20,1,20,3,20,379,8,20,1,21,1,21,1,21,1,21,1,21,1,21,1,21,1,21, + 1,21,3,21,390,8,21,1,22,1,22,1,22,1,22,3,22,396,8,22,1,23,1,23,1,23,5, + 23,401,8,23,10,23,12,23,404,9,23,1,24,1,24,3,24,408,8,24,1,24,1,24,3, + 24,412,8,24,1,24,1,24,3,24,416,8,24,1,25,1,25,1,25,1,25,3,25,422,8,25, + 3,25,424,8,25,1,26,1,26,1,26,5,26,429,8,26,10,26,12,26,432,9,26,1,27, + 1,27,1,27,1,27,1,28,3,28,439,8,28,1,28,3,28,442,8,28,1,28,3,28,445,8, + 28,1,29,1,29,1,29,1,29,1,30,1,30,1,30,1,30,1,31,1,31,1,31,1,32,1,32,1, + 32,1,32,1,32,1,32,3,32,464,8,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,3,33,478,8,33,1,34,1,34,1,34,1,35,1,35,1,35,1, + 35,1,35,1,35,1,35,1,35,1,35,5,35,492,8,35,10,35,12,35,495,9,35,1,35,1, + 35,1,35,1,35,1,35,1,35,1,35,5,35,504,8,35,10,35,12,35,507,9,35,1,35,1, + 35,1,35,1,35,1,35,1,35,1,35,5,35,516,8,35,10,35,12,35,519,9,35,1,35,1, + 35,1,35,1,35,1,35,3,35,526,8,35,1,35,1,35,3,35,530,8,35,1,36,1,36,1,36, + 5,36,535,8,36,10,36,12,36,538,9,36,1,37,1,37,1,37,3,37,543,8,37,1,37, + 1,37,1,37,1,37,1,37,4,37,550,8,37,11,37,12,37,551,1,37,1,37,3,37,556, + 8,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,1,37,1,37, + 1,37,1,37,3,37,587,8,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,604,8,37,1,37,1,37,1,37,1,37,1,37, + 1,37,1,37,1,37,1,37,1,37,3,37,616,8,37,1,37,1,37,1,37,1,37,1,37,1,37, + 1,37,1,37,3,37,626,8,37,1,37,3,37,629,8,37,1,37,1,37,3,37,633,8,37,1, + 37,3,37,636,8,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,649,8,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,666,8,37,1,37,1,37,3,37,670,8,37,1,37,1,37, + 1,37,1,37,3,37,676,8,37,1,37,1,37,1,37,1,37,1,37,3,37,683,8,37,1,37,1, + 37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,3,37,695,8,37,1,37,1,37,3, + 37,699,8,37,1,37,3,37,702,8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,3,37, + 711,8,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,725,8,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,752,8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,3,37,761,8,37,5,37,763, + 8,37,10,37,12,37,766,9,37,1,38,1,38,1,38,5,38,771,8,38,10,38,12,38,774, + 9,38,1,39,1,39,3,39,778,8,39,1,40,1,40,1,40,1,40,5,40,784,8,40,10,40, + 12,40,787,9,40,1,40,1,40,1,40,1,40,1,40,5,40,794,8,40,10,40,12,40,797, + 9,40,3,40,799,8,40,1,40,1,40,1,40,1,41,1,41,1,41,5,41,807,8,41,10,41, + 12,41,810,9,41,1,41,1,41,1,41,1,41,1,41,1,41,5,41,818,8,41,10,41,12,41, + 821,9,41,1,41,1,41,3,41,825,8,41,1,41,1,41,1,41,1,41,1,41,3,41,832,8, + 41,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,3,42,845,8, + 42,1,43,1,43,1,43,5,43,850,8,43,10,43,12,43,853,9,43,1,44,1,44,1,44,1, + 44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,865,8,44,1,45,1,45,1,45,1,45,3, + 45,871,8,45,1,45,3,45,874,8,45,1,46,1,46,1,46,5,46,879,8,46,10,46,12, + 46,882,9,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47,3,47,893,8,47, + 1,47,1,47,1,47,1,47,3,47,899,8,47,5,47,901,8,47,10,47,12,47,904,9,47, + 1,48,1,48,1,48,3,48,909,8,48,1,48,1,48,1,49,1,49,1,49,3,49,916,8,49,1, + 49,1,49,1,50,1,50,1,50,5,50,923,8,50,10,50,12,50,926,9,50,1,51,1,51,1, + 52,1,52,1,52,1,52,1,52,1,52,3,52,936,8,52,3,52,938,8,52,1,53,3,53,941, + 8,53,1,53,1,53,1,53,1,53,1,53,1,53,3,53,949,8,53,1,54,1,54,1,54,3,54, + 954,8,54,1,55,1,55,1,56,1,56,1,57,1,57,1,58,1,58,3,58,964,8,58,1,59,1, + 59,1,59,3,59,969,8,59,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,0, + 3,36,74,94,62,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, + 0,16,2,0,32,32,141,141,2,0,84,84,96,96,3,0,4,4,8,8,12,12,4,0,4,4,7,8, + 12,12,147,147,2,0,96,96,140,140,2,0,4,4,8,8,2,0,11,11,42,43,2,0,62,62, + 93,93,2,0,133,133,143,143,3,0,17,17,95,95,170,170,2,0,79,79,98,98,1,0, + 197,198,2,0,208,208,228,228,8,0,37,37,76,76,108,108,110,110,132,132,145, + 145,185,185,190,190,13,0,2,24,26,36,38,75,77,81,83,107,109,109,111,112, + 114,115,117,130,133,144,146,184,186,189,191,192,4,0,36,36,62,62,77,77, + 91,91,1107,0,127,1,0,0,0,2,131,1,0,0,0,4,146,1,0,0,0,6,149,1,0,0,0,8, + 198,1,0,0,0,10,201,1,0,0,0,12,207,1,0,0,0,14,211,1,0,0,0,16,217,1,0,0, + 0,18,235,1,0,0,0,20,238,1,0,0,0,22,241,1,0,0,0,24,251,1,0,0,0,26,254, + 1,0,0,0,28,258,1,0,0,0,30,291,1,0,0,0,32,293,1,0,0,0,34,296,1,0,0,0,36, + 311,1,0,0,0,38,373,1,0,0,0,40,378,1,0,0,0,42,389,1,0,0,0,44,391,1,0,0, + 0,46,397,1,0,0,0,48,405,1,0,0,0,50,423,1,0,0,0,52,425,1,0,0,0,54,433, + 1,0,0,0,56,438,1,0,0,0,58,446,1,0,0,0,60,450,1,0,0,0,62,454,1,0,0,0,64, + 463,1,0,0,0,66,477,1,0,0,0,68,479,1,0,0,0,70,529,1,0,0,0,72,531,1,0,0, + 0,74,669,1,0,0,0,76,767,1,0,0,0,78,777,1,0,0,0,80,798,1,0,0,0,82,831, + 1,0,0,0,84,844,1,0,0,0,86,846,1,0,0,0,88,864,1,0,0,0,90,873,1,0,0,0,92, + 875,1,0,0,0,94,892,1,0,0,0,96,905,1,0,0,0,98,915,1,0,0,0,100,919,1,0, + 0,0,102,927,1,0,0,0,104,937,1,0,0,0,106,940,1,0,0,0,108,953,1,0,0,0,110, + 955,1,0,0,0,112,957,1,0,0,0,114,959,1,0,0,0,116,963,1,0,0,0,118,968,1, + 0,0,0,120,970,1,0,0,0,122,974,1,0,0,0,124,128,3,2,1,0,125,128,3,6,3,0, + 126,128,3,82,41,0,127,124,1,0,0,0,127,125,1,0,0,0,127,126,1,0,0,0,128, + 129,1,0,0,0,129,130,5,0,0,1,130,1,1,0,0,0,131,137,3,4,2,0,132,133,5,176, + 0,0,133,134,5,4,0,0,134,136,3,4,2,0,135,132,1,0,0,0,136,139,1,0,0,0,137, + 135,1,0,0,0,137,138,1,0,0,0,138,3,1,0,0,0,139,137,1,0,0,0,140,147,3,6, + 3,0,141,142,5,220,0,0,142,143,3,2,1,0,143,144,5,236,0,0,144,147,1,0,0, + 0,145,147,3,122,61,0,146,140,1,0,0,0,146,141,1,0,0,0,146,145,1,0,0,0, + 147,5,1,0,0,0,148,150,3,8,4,0,149,148,1,0,0,0,149,150,1,0,0,0,150,151, + 1,0,0,0,151,153,5,146,0,0,152,154,5,49,0,0,153,152,1,0,0,0,153,154,1, + 0,0,0,154,156,1,0,0,0,155,157,3,10,5,0,156,155,1,0,0,0,156,157,1,0,0, + 0,157,158,1,0,0,0,158,160,3,72,36,0,159,161,3,12,6,0,160,159,1,0,0,0, + 160,161,1,0,0,0,161,163,1,0,0,0,162,164,3,14,7,0,163,162,1,0,0,0,163, + 164,1,0,0,0,164,166,1,0,0,0,165,167,3,18,9,0,166,165,1,0,0,0,166,167, + 1,0,0,0,167,169,1,0,0,0,168,170,3,20,10,0,169,168,1,0,0,0,169,170,1,0, + 0,0,170,172,1,0,0,0,171,173,3,22,11,0,172,171,1,0,0,0,172,173,1,0,0,0, + 173,176,1,0,0,0,174,175,5,189,0,0,175,177,7,0,0,0,176,174,1,0,0,0,176, + 177,1,0,0,0,177,180,1,0,0,0,178,179,5,189,0,0,179,181,5,169,0,0,180,178, + 1,0,0,0,180,181,1,0,0,0,181,183,1,0,0,0,182,184,3,24,12,0,183,182,1,0, + 0,0,183,184,1,0,0,0,184,186,1,0,0,0,185,187,3,16,8,0,186,185,1,0,0,0, + 186,187,1,0,0,0,187,189,1,0,0,0,188,190,3,26,13,0,189,188,1,0,0,0,189, + 190,1,0,0,0,190,193,1,0,0,0,191,194,3,30,15,0,192,194,3,32,16,0,193,191, + 1,0,0,0,193,192,1,0,0,0,193,194,1,0,0,0,194,196,1,0,0,0,195,197,3,34, + 17,0,196,195,1,0,0,0,196,197,1,0,0,0,197,7,1,0,0,0,198,199,5,189,0,0, + 199,200,3,86,43,0,200,9,1,0,0,0,201,202,5,168,0,0,202,205,5,198,0,0,203, + 204,5,189,0,0,204,206,5,164,0,0,205,203,1,0,0,0,205,206,1,0,0,0,206,11, + 1,0,0,0,207,208,5,68,0,0,208,209,3,36,18,0,209,13,1,0,0,0,210,212,7,1, + 0,0,211,210,1,0,0,0,211,212,1,0,0,0,212,213,1,0,0,0,213,214,5,9,0,0,214, + 215,5,90,0,0,215,216,3,72,36,0,216,15,1,0,0,0,217,218,5,188,0,0,218,219, + 3,118,59,0,219,220,5,10,0,0,220,221,5,220,0,0,221,222,3,56,28,0,222,232, + 5,236,0,0,223,224,5,206,0,0,224,225,3,118,59,0,225,226,5,10,0,0,226,227, + 5,220,0,0,227,228,3,56,28,0,228,229,5,236,0,0,229,231,1,0,0,0,230,223, + 1,0,0,0,231,234,1,0,0,0,232,230,1,0,0,0,232,233,1,0,0,0,233,17,1,0,0, + 0,234,232,1,0,0,0,235,236,5,129,0,0,236,237,3,74,37,0,237,19,1,0,0,0, + 238,239,5,187,0,0,239,240,3,74,37,0,240,21,1,0,0,0,241,242,5,73,0,0,242, + 249,5,18,0,0,243,244,7,0,0,0,244,245,5,220,0,0,245,246,3,72,36,0,246, + 247,5,236,0,0,247,250,1,0,0,0,248,250,3,72,36,0,249,243,1,0,0,0,249,248, + 1,0,0,0,250,23,1,0,0,0,251,252,5,74,0,0,252,253,3,74,37,0,253,25,1,0, + 0,0,254,255,5,122,0,0,255,256,5,18,0,0,256,257,3,46,23,0,257,27,1,0,0, + 0,258,259,5,122,0,0,259,260,5,18,0,0,260,261,3,72,36,0,261,29,1,0,0,0, + 262,263,5,99,0,0,263,266,3,74,37,0,264,265,5,206,0,0,265,267,3,74,37, + 0,266,264,1,0,0,0,266,267,1,0,0,0,267,272,1,0,0,0,268,269,5,189,0,0,269, + 273,5,164,0,0,270,271,5,18,0,0,271,273,3,72,36,0,272,268,1,0,0,0,272, + 270,1,0,0,0,272,273,1,0,0,0,273,292,1,0,0,0,274,275,5,99,0,0,275,278, + 3,74,37,0,276,277,5,189,0,0,277,279,5,164,0,0,278,276,1,0,0,0,278,279, + 1,0,0,0,279,280,1,0,0,0,280,281,5,118,0,0,281,282,3,74,37,0,282,292,1, + 0,0,0,283,284,5,99,0,0,284,285,3,74,37,0,285,286,5,118,0,0,286,289,3, + 74,37,0,287,288,5,18,0,0,288,290,3,72,36,0,289,287,1,0,0,0,289,290,1, + 0,0,0,290,292,1,0,0,0,291,262,1,0,0,0,291,274,1,0,0,0,291,283,1,0,0,0, + 292,31,1,0,0,0,293,294,5,118,0,0,294,295,3,74,37,0,295,33,1,0,0,0,296, + 297,5,150,0,0,297,298,3,52,26,0,298,35,1,0,0,0,299,300,6,18,-1,0,300, + 302,3,94,47,0,301,303,5,61,0,0,302,301,1,0,0,0,302,303,1,0,0,0,303,305, + 1,0,0,0,304,306,3,44,22,0,305,304,1,0,0,0,305,306,1,0,0,0,306,312,1,0, + 0,0,307,308,5,220,0,0,308,309,3,36,18,0,309,310,5,236,0,0,310,312,1,0, + 0,0,311,299,1,0,0,0,311,307,1,0,0,0,312,327,1,0,0,0,313,314,10,3,0,0, + 314,315,3,40,20,0,315,316,3,36,18,4,316,326,1,0,0,0,317,319,10,4,0,0, + 318,320,3,38,19,0,319,318,1,0,0,0,319,320,1,0,0,0,320,321,1,0,0,0,321, + 322,5,90,0,0,322,323,3,36,18,0,323,324,3,42,21,0,324,326,1,0,0,0,325, + 313,1,0,0,0,325,317,1,0,0,0,326,329,1,0,0,0,327,325,1,0,0,0,327,328,1, + 0,0,0,328,37,1,0,0,0,329,327,1,0,0,0,330,332,7,2,0,0,331,330,1,0,0,0, + 331,332,1,0,0,0,332,333,1,0,0,0,333,340,5,84,0,0,334,336,5,84,0,0,335, + 337,7,2,0,0,336,335,1,0,0,0,336,337,1,0,0,0,337,340,1,0,0,0,338,340,7, + 2,0,0,339,331,1,0,0,0,339,334,1,0,0,0,339,338,1,0,0,0,340,374,1,0,0,0, + 341,343,7,3,0,0,342,341,1,0,0,0,342,343,1,0,0,0,343,344,1,0,0,0,344,346, + 7,4,0,0,345,347,5,123,0,0,346,345,1,0,0,0,346,347,1,0,0,0,347,356,1,0, + 0,0,348,350,7,4,0,0,349,351,5,123,0,0,350,349,1,0,0,0,350,351,1,0,0,0, + 351,353,1,0,0,0,352,354,7,3,0,0,353,352,1,0,0,0,353,354,1,0,0,0,354,356, + 1,0,0,0,355,342,1,0,0,0,355,348,1,0,0,0,356,374,1,0,0,0,357,359,7,5,0, + 0,358,357,1,0,0,0,358,359,1,0,0,0,359,360,1,0,0,0,360,362,5,69,0,0,361, + 363,5,123,0,0,362,361,1,0,0,0,362,363,1,0,0,0,363,372,1,0,0,0,364,366, + 5,69,0,0,365,367,5,123,0,0,366,365,1,0,0,0,366,367,1,0,0,0,367,369,1, + 0,0,0,368,370,7,5,0,0,369,368,1,0,0,0,369,370,1,0,0,0,370,372,1,0,0,0, + 371,358,1,0,0,0,371,364,1,0,0,0,372,374,1,0,0,0,373,339,1,0,0,0,373,355, + 1,0,0,0,373,371,1,0,0,0,374,39,1,0,0,0,375,376,5,31,0,0,376,379,5,90, + 0,0,377,379,5,206,0,0,378,375,1,0,0,0,378,377,1,0,0,0,379,41,1,0,0,0, + 380,381,5,119,0,0,381,390,3,72,36,0,382,383,5,179,0,0,383,384,5,220,0, + 0,384,385,3,72,36,0,385,386,5,236,0,0,386,390,1,0,0,0,387,388,5,179,0, + 0,388,390,3,72,36,0,389,380,1,0,0,0,389,382,1,0,0,0,389,387,1,0,0,0,390, + 43,1,0,0,0,391,392,5,144,0,0,392,395,3,50,25,0,393,394,5,118,0,0,394, + 396,3,50,25,0,395,393,1,0,0,0,395,396,1,0,0,0,396,45,1,0,0,0,397,402, + 3,48,24,0,398,399,5,206,0,0,399,401,3,48,24,0,400,398,1,0,0,0,401,404, + 1,0,0,0,402,400,1,0,0,0,402,403,1,0,0,0,403,47,1,0,0,0,404,402,1,0,0, + 0,405,407,3,74,37,0,406,408,7,6,0,0,407,406,1,0,0,0,407,408,1,0,0,0,408, + 411,1,0,0,0,409,410,5,117,0,0,410,412,7,7,0,0,411,409,1,0,0,0,411,412, + 1,0,0,0,412,415,1,0,0,0,413,414,5,26,0,0,414,416,5,200,0,0,415,413,1, + 0,0,0,415,416,1,0,0,0,416,49,1,0,0,0,417,424,3,122,61,0,418,421,3,106, + 53,0,419,420,5,238,0,0,420,422,3,106,53,0,421,419,1,0,0,0,421,422,1,0, + 0,0,422,424,1,0,0,0,423,417,1,0,0,0,423,418,1,0,0,0,424,51,1,0,0,0,425, + 430,3,54,27,0,426,427,5,206,0,0,427,429,3,54,27,0,428,426,1,0,0,0,429, + 432,1,0,0,0,430,428,1,0,0,0,430,431,1,0,0,0,431,53,1,0,0,0,432,430,1, + 0,0,0,433,434,3,118,59,0,434,435,5,212,0,0,435,436,3,108,54,0,436,55, + 1,0,0,0,437,439,3,58,29,0,438,437,1,0,0,0,438,439,1,0,0,0,439,441,1,0, + 0,0,440,442,3,60,30,0,441,440,1,0,0,0,441,442,1,0,0,0,442,444,1,0,0,0, + 443,445,3,62,31,0,444,443,1,0,0,0,444,445,1,0,0,0,445,57,1,0,0,0,446, + 447,5,126,0,0,447,448,5,18,0,0,448,449,3,72,36,0,449,59,1,0,0,0,450,451, + 5,122,0,0,451,452,5,18,0,0,452,453,3,46,23,0,453,61,1,0,0,0,454,455,7, + 8,0,0,455,456,3,64,32,0,456,63,1,0,0,0,457,464,3,66,33,0,458,459,5,16, + 0,0,459,460,3,66,33,0,460,461,5,6,0,0,461,462,3,66,33,0,462,464,1,0,0, + 0,463,457,1,0,0,0,463,458,1,0,0,0,464,65,1,0,0,0,465,466,5,33,0,0,466, + 478,5,142,0,0,467,468,5,175,0,0,468,478,5,128,0,0,469,470,5,175,0,0,470, + 478,5,64,0,0,471,472,3,106,53,0,472,473,5,128,0,0,473,478,1,0,0,0,474, + 475,3,106,53,0,475,476,5,64,0,0,476,478,1,0,0,0,477,465,1,0,0,0,477,467, + 1,0,0,0,477,469,1,0,0,0,477,471,1,0,0,0,477,474,1,0,0,0,478,67,1,0,0, + 0,479,480,3,74,37,0,480,481,5,0,0,1,481,69,1,0,0,0,482,530,3,118,59,0, + 483,484,3,118,59,0,484,485,5,220,0,0,485,486,3,118,59,0,486,493,3,70, + 35,0,487,488,5,206,0,0,488,489,3,118,59,0,489,490,3,70,35,0,490,492,1, + 0,0,0,491,487,1,0,0,0,492,495,1,0,0,0,493,491,1,0,0,0,493,494,1,0,0,0, + 494,496,1,0,0,0,495,493,1,0,0,0,496,497,5,236,0,0,497,530,1,0,0,0,498, + 499,3,118,59,0,499,500,5,220,0,0,500,505,3,120,60,0,501,502,5,206,0,0, + 502,504,3,120,60,0,503,501,1,0,0,0,504,507,1,0,0,0,505,503,1,0,0,0,505, + 506,1,0,0,0,506,508,1,0,0,0,507,505,1,0,0,0,508,509,5,236,0,0,509,530, + 1,0,0,0,510,511,3,118,59,0,511,512,5,220,0,0,512,517,3,70,35,0,513,514, + 5,206,0,0,514,516,3,70,35,0,515,513,1,0,0,0,516,519,1,0,0,0,517,515,1, + 0,0,0,517,518,1,0,0,0,518,520,1,0,0,0,519,517,1,0,0,0,520,521,5,236,0, + 0,521,530,1,0,0,0,522,523,3,118,59,0,523,525,5,220,0,0,524,526,3,72,36, + 0,525,524,1,0,0,0,525,526,1,0,0,0,526,527,1,0,0,0,527,528,5,236,0,0,528, + 530,1,0,0,0,529,482,1,0,0,0,529,483,1,0,0,0,529,498,1,0,0,0,529,510,1, + 0,0,0,529,522,1,0,0,0,530,71,1,0,0,0,531,536,3,74,37,0,532,533,5,206, + 0,0,533,535,3,74,37,0,534,532,1,0,0,0,535,538,1,0,0,0,536,534,1,0,0,0, + 536,537,1,0,0,0,537,73,1,0,0,0,538,536,1,0,0,0,539,540,6,37,-1,0,540, + 542,5,19,0,0,541,543,3,74,37,0,542,541,1,0,0,0,542,543,1,0,0,0,543,549, + 1,0,0,0,544,545,5,186,0,0,545,546,3,74,37,0,546,547,5,163,0,0,547,548, + 3,74,37,0,548,550,1,0,0,0,549,544,1,0,0,0,550,551,1,0,0,0,551,549,1,0, + 0,0,551,552,1,0,0,0,552,555,1,0,0,0,553,554,5,52,0,0,554,556,3,74,37, + 0,555,553,1,0,0,0,555,556,1,0,0,0,556,557,1,0,0,0,557,558,5,53,0,0,558, + 670,1,0,0,0,559,560,5,20,0,0,560,561,5,220,0,0,561,562,3,74,37,0,562, + 563,5,10,0,0,563,564,3,70,35,0,564,565,5,236,0,0,565,670,1,0,0,0,566, + 567,5,36,0,0,567,670,5,200,0,0,568,569,5,59,0,0,569,570,5,220,0,0,570, + 571,3,110,55,0,571,572,5,68,0,0,572,573,3,74,37,0,573,574,5,236,0,0,574, + 670,1,0,0,0,575,576,5,86,0,0,576,577,3,74,37,0,577,578,3,110,55,0,578, + 670,1,0,0,0,579,580,5,155,0,0,580,581,5,220,0,0,581,582,3,74,37,0,582, + 583,5,68,0,0,583,586,3,74,37,0,584,585,5,65,0,0,585,587,3,74,37,0,586, + 584,1,0,0,0,586,587,1,0,0,0,587,588,1,0,0,0,588,589,5,236,0,0,589,670, + 1,0,0,0,590,591,5,166,0,0,591,670,5,200,0,0,592,593,5,171,0,0,593,594, + 5,220,0,0,594,595,7,9,0,0,595,596,5,200,0,0,596,597,5,68,0,0,597,598, + 3,74,37,0,598,599,5,236,0,0,599,670,1,0,0,0,600,601,3,118,59,0,601,603, + 5,220,0,0,602,604,3,72,36,0,603,602,1,0,0,0,603,604,1,0,0,0,604,605,1, + 0,0,0,605,606,5,236,0,0,606,607,1,0,0,0,607,608,5,125,0,0,608,609,5,220, + 0,0,609,610,3,56,28,0,610,611,5,236,0,0,611,670,1,0,0,0,612,613,3,118, + 59,0,613,615,5,220,0,0,614,616,3,72,36,0,615,614,1,0,0,0,615,616,1,0, + 0,0,616,617,1,0,0,0,617,618,5,236,0,0,618,619,1,0,0,0,619,620,5,125,0, + 0,620,621,3,118,59,0,621,670,1,0,0,0,622,628,3,118,59,0,623,625,5,220, + 0,0,624,626,3,72,36,0,625,624,1,0,0,0,625,626,1,0,0,0,626,627,1,0,0,0, + 627,629,5,236,0,0,628,623,1,0,0,0,628,629,1,0,0,0,629,630,1,0,0,0,630, + 632,5,220,0,0,631,633,5,49,0,0,632,631,1,0,0,0,632,633,1,0,0,0,633,635, + 1,0,0,0,634,636,3,76,38,0,635,634,1,0,0,0,635,636,1,0,0,0,636,637,1,0, + 0,0,637,638,5,236,0,0,638,670,1,0,0,0,639,670,3,82,41,0,640,670,3,108, + 54,0,641,642,5,208,0,0,642,670,3,74,37,18,643,644,5,115,0,0,644,670,3, + 74,37,12,645,646,3,98,49,0,646,647,5,210,0,0,647,649,1,0,0,0,648,645, + 1,0,0,0,648,649,1,0,0,0,649,650,1,0,0,0,650,670,5,202,0,0,651,652,5,220, + 0,0,652,653,3,2,1,0,653,654,5,236,0,0,654,670,1,0,0,0,655,656,5,220,0, + 0,656,657,3,74,37,0,657,658,5,236,0,0,658,670,1,0,0,0,659,660,5,220,0, + 0,660,661,3,72,36,0,661,662,5,236,0,0,662,670,1,0,0,0,663,665,5,219,0, + 0,664,666,3,72,36,0,665,664,1,0,0,0,665,666,1,0,0,0,666,667,1,0,0,0,667, + 670,5,235,0,0,668,670,3,90,45,0,669,539,1,0,0,0,669,559,1,0,0,0,669,566, + 1,0,0,0,669,568,1,0,0,0,669,575,1,0,0,0,669,579,1,0,0,0,669,590,1,0,0, + 0,669,592,1,0,0,0,669,600,1,0,0,0,669,612,1,0,0,0,669,622,1,0,0,0,669, + 639,1,0,0,0,669,640,1,0,0,0,669,641,1,0,0,0,669,643,1,0,0,0,669,648,1, + 0,0,0,669,651,1,0,0,0,669,655,1,0,0,0,669,659,1,0,0,0,669,663,1,0,0,0, + 669,668,1,0,0,0,670,764,1,0,0,0,671,675,10,17,0,0,672,676,5,202,0,0,673, + 676,5,238,0,0,674,676,5,227,0,0,675,672,1,0,0,0,675,673,1,0,0,0,675,674, + 1,0,0,0,676,677,1,0,0,0,677,763,3,74,37,18,678,682,10,16,0,0,679,683, + 5,228,0,0,680,683,5,208,0,0,681,683,5,207,0,0,682,679,1,0,0,0,682,680, + 1,0,0,0,682,681,1,0,0,0,683,684,1,0,0,0,684,763,3,74,37,17,685,710,10, + 15,0,0,686,711,5,211,0,0,687,711,5,212,0,0,688,711,5,223,0,0,689,711, + 5,221,0,0,690,711,5,222,0,0,691,711,5,213,0,0,692,711,5,214,0,0,693,695, + 5,115,0,0,694,693,1,0,0,0,694,695,1,0,0,0,695,696,1,0,0,0,696,698,5,80, + 0,0,697,699,5,25,0,0,698,697,1,0,0,0,698,699,1,0,0,0,699,711,1,0,0,0, + 700,702,5,115,0,0,701,700,1,0,0,0,701,702,1,0,0,0,702,703,1,0,0,0,703, + 711,7,10,0,0,704,711,5,232,0,0,705,711,5,233,0,0,706,711,5,225,0,0,707, + 711,5,216,0,0,708,711,5,217,0,0,709,711,5,224,0,0,710,686,1,0,0,0,710, + 687,1,0,0,0,710,688,1,0,0,0,710,689,1,0,0,0,710,690,1,0,0,0,710,691,1, + 0,0,0,710,692,1,0,0,0,710,694,1,0,0,0,710,701,1,0,0,0,710,704,1,0,0,0, + 710,705,1,0,0,0,710,706,1,0,0,0,710,707,1,0,0,0,710,708,1,0,0,0,710,709, + 1,0,0,0,711,712,1,0,0,0,712,763,3,74,37,16,713,714,10,13,0,0,714,715, + 5,226,0,0,715,763,3,74,37,14,716,717,10,11,0,0,717,718,5,6,0,0,718,763, + 3,74,37,12,719,720,10,10,0,0,720,721,5,121,0,0,721,763,3,74,37,11,722, + 724,10,9,0,0,723,725,5,115,0,0,724,723,1,0,0,0,724,725,1,0,0,0,725,726, + 1,0,0,0,726,727,5,16,0,0,727,728,3,74,37,0,728,729,5,6,0,0,729,730,3, + 74,37,10,730,763,1,0,0,0,731,732,10,8,0,0,732,733,5,229,0,0,733,734,3, + 74,37,0,734,735,5,205,0,0,735,736,3,74,37,8,736,763,1,0,0,0,737,738,10, + 21,0,0,738,739,5,219,0,0,739,740,3,74,37,0,740,741,5,235,0,0,741,763, + 1,0,0,0,742,743,10,20,0,0,743,744,5,210,0,0,744,763,5,198,0,0,745,746, + 10,19,0,0,746,747,5,210,0,0,747,763,3,118,59,0,748,749,10,14,0,0,749, + 751,5,88,0,0,750,752,5,115,0,0,751,750,1,0,0,0,751,752,1,0,0,0,752,753, + 1,0,0,0,753,763,5,116,0,0,754,760,10,7,0,0,755,761,3,116,58,0,756,757, + 5,10,0,0,757,761,3,118,59,0,758,759,5,10,0,0,759,761,5,200,0,0,760,755, + 1,0,0,0,760,756,1,0,0,0,760,758,1,0,0,0,761,763,1,0,0,0,762,671,1,0,0, + 0,762,678,1,0,0,0,762,685,1,0,0,0,762,713,1,0,0,0,762,716,1,0,0,0,762, + 719,1,0,0,0,762,722,1,0,0,0,762,731,1,0,0,0,762,737,1,0,0,0,762,742,1, + 0,0,0,762,745,1,0,0,0,762,748,1,0,0,0,762,754,1,0,0,0,763,766,1,0,0,0, + 764,762,1,0,0,0,764,765,1,0,0,0,765,75,1,0,0,0,766,764,1,0,0,0,767,772, + 3,78,39,0,768,769,5,206,0,0,769,771,3,78,39,0,770,768,1,0,0,0,771,774, + 1,0,0,0,772,770,1,0,0,0,772,773,1,0,0,0,773,77,1,0,0,0,774,772,1,0,0, + 0,775,778,3,80,40,0,776,778,3,74,37,0,777,775,1,0,0,0,777,776,1,0,0,0, + 778,79,1,0,0,0,779,780,5,220,0,0,780,785,3,118,59,0,781,782,5,206,0,0, + 782,784,3,118,59,0,783,781,1,0,0,0,784,787,1,0,0,0,785,783,1,0,0,0,785, + 786,1,0,0,0,786,788,1,0,0,0,787,785,1,0,0,0,788,789,5,236,0,0,789,799, + 1,0,0,0,790,795,3,118,59,0,791,792,5,206,0,0,792,794,3,118,59,0,793,791, + 1,0,0,0,794,797,1,0,0,0,795,793,1,0,0,0,795,796,1,0,0,0,796,799,1,0,0, + 0,797,795,1,0,0,0,798,779,1,0,0,0,798,790,1,0,0,0,799,800,1,0,0,0,800, + 801,5,201,0,0,801,802,3,74,37,0,802,81,1,0,0,0,803,804,5,222,0,0,804, + 808,3,118,59,0,805,807,3,84,42,0,806,805,1,0,0,0,807,810,1,0,0,0,808, + 806,1,0,0,0,808,809,1,0,0,0,809,811,1,0,0,0,810,808,1,0,0,0,811,812,5, + 238,0,0,812,813,5,214,0,0,813,832,1,0,0,0,814,815,5,222,0,0,815,819,3, + 118,59,0,816,818,3,84,42,0,817,816,1,0,0,0,818,821,1,0,0,0,819,817,1, + 0,0,0,819,820,1,0,0,0,820,822,1,0,0,0,821,819,1,0,0,0,822,824,5,214,0, + 0,823,825,3,82,41,0,824,823,1,0,0,0,824,825,1,0,0,0,825,826,1,0,0,0,826, + 827,5,222,0,0,827,828,5,238,0,0,828,829,3,118,59,0,829,830,5,214,0,0, + 830,832,1,0,0,0,831,803,1,0,0,0,831,814,1,0,0,0,832,83,1,0,0,0,833,834, + 3,118,59,0,834,835,5,212,0,0,835,836,5,200,0,0,836,845,1,0,0,0,837,838, + 3,118,59,0,838,839,5,212,0,0,839,840,5,218,0,0,840,841,3,74,37,0,841, + 842,5,234,0,0,842,845,1,0,0,0,843,845,3,118,59,0,844,833,1,0,0,0,844, + 837,1,0,0,0,844,843,1,0,0,0,845,85,1,0,0,0,846,851,3,88,44,0,847,848, + 5,206,0,0,848,850,3,88,44,0,849,847,1,0,0,0,850,853,1,0,0,0,851,849,1, + 0,0,0,851,852,1,0,0,0,852,87,1,0,0,0,853,851,1,0,0,0,854,855,3,118,59, + 0,855,856,5,10,0,0,856,857,5,220,0,0,857,858,3,2,1,0,858,859,5,236,0, + 0,859,865,1,0,0,0,860,861,3,74,37,0,861,862,5,10,0,0,862,863,3,118,59, + 0,863,865,1,0,0,0,864,854,1,0,0,0,864,860,1,0,0,0,865,89,1,0,0,0,866, + 874,3,122,61,0,867,868,3,98,49,0,868,869,5,210,0,0,869,871,1,0,0,0,870, + 867,1,0,0,0,870,871,1,0,0,0,871,872,1,0,0,0,872,874,3,92,46,0,873,866, + 1,0,0,0,873,870,1,0,0,0,874,91,1,0,0,0,875,880,3,118,59,0,876,877,5,210, + 0,0,877,879,3,118,59,0,878,876,1,0,0,0,879,882,1,0,0,0,880,878,1,0,0, + 0,880,881,1,0,0,0,881,93,1,0,0,0,882,880,1,0,0,0,883,884,6,47,-1,0,884, + 893,3,98,49,0,885,893,3,96,48,0,886,887,5,220,0,0,887,888,3,2,1,0,888, + 889,5,236,0,0,889,893,1,0,0,0,890,893,3,82,41,0,891,893,3,122,61,0,892, + 883,1,0,0,0,892,885,1,0,0,0,892,886,1,0,0,0,892,890,1,0,0,0,892,891,1, + 0,0,0,893,902,1,0,0,0,894,898,10,3,0,0,895,899,3,116,58,0,896,897,5,10, + 0,0,897,899,3,118,59,0,898,895,1,0,0,0,898,896,1,0,0,0,899,901,1,0,0, + 0,900,894,1,0,0,0,901,904,1,0,0,0,902,900,1,0,0,0,902,903,1,0,0,0,903, + 95,1,0,0,0,904,902,1,0,0,0,905,906,3,118,59,0,906,908,5,220,0,0,907,909, + 3,100,50,0,908,907,1,0,0,0,908,909,1,0,0,0,909,910,1,0,0,0,910,911,5, + 236,0,0,911,97,1,0,0,0,912,913,3,102,51,0,913,914,5,210,0,0,914,916,1, + 0,0,0,915,912,1,0,0,0,915,916,1,0,0,0,916,917,1,0,0,0,917,918,3,118,59, + 0,918,99,1,0,0,0,919,924,3,74,37,0,920,921,5,206,0,0,921,923,3,74,37, + 0,922,920,1,0,0,0,923,926,1,0,0,0,924,922,1,0,0,0,924,925,1,0,0,0,925, + 101,1,0,0,0,926,924,1,0,0,0,927,928,3,118,59,0,928,103,1,0,0,0,929,938, + 5,196,0,0,930,931,5,210,0,0,931,938,7,11,0,0,932,933,5,198,0,0,933,935, + 5,210,0,0,934,936,7,11,0,0,935,934,1,0,0,0,935,936,1,0,0,0,936,938,1, + 0,0,0,937,929,1,0,0,0,937,930,1,0,0,0,937,932,1,0,0,0,938,105,1,0,0,0, + 939,941,7,12,0,0,940,939,1,0,0,0,940,941,1,0,0,0,941,948,1,0,0,0,942, + 949,3,104,52,0,943,949,5,197,0,0,944,949,5,198,0,0,945,949,5,199,0,0, + 946,949,5,82,0,0,947,949,5,113,0,0,948,942,1,0,0,0,948,943,1,0,0,0,948, + 944,1,0,0,0,948,945,1,0,0,0,948,946,1,0,0,0,948,947,1,0,0,0,949,107,1, + 0,0,0,950,954,3,106,53,0,951,954,5,200,0,0,952,954,5,116,0,0,953,950, + 1,0,0,0,953,951,1,0,0,0,953,952,1,0,0,0,954,109,1,0,0,0,955,956,7,13, + 0,0,956,111,1,0,0,0,957,958,7,14,0,0,958,113,1,0,0,0,959,960,7,15,0,0, + 960,115,1,0,0,0,961,964,5,195,0,0,962,964,3,114,57,0,963,961,1,0,0,0, + 963,962,1,0,0,0,964,117,1,0,0,0,965,969,5,195,0,0,966,969,3,110,55,0, + 967,969,3,112,56,0,968,965,1,0,0,0,968,966,1,0,0,0,968,967,1,0,0,0,969, + 119,1,0,0,0,970,971,5,200,0,0,971,972,5,212,0,0,972,973,3,106,53,0,973, + 121,1,0,0,0,974,975,5,218,0,0,975,976,3,118,59,0,976,977,5,234,0,0,977, + 123,1,0,0,0,120,127,137,146,149,153,156,160,163,166,169,172,176,180,183, + 186,189,193,196,205,211,232,249,266,272,278,289,291,302,305,311,319,325, + 327,331,336,339,342,346,350,353,355,358,362,366,369,371,373,378,389,395, + 402,407,411,415,421,423,430,438,441,444,463,477,493,505,517,525,529,536, + 542,551,555,586,603,615,625,628,632,635,648,665,669,675,682,694,698,701, + 710,724,751,760,762,764,772,777,785,795,798,808,819,824,831,844,851,864, + 870,873,880,892,898,902,908,915,924,935,937,940,948,953,963,968 }; staticData->serializedATN = antlr4::atn::SerializedATNView(serializedATNSegment, sizeof(serializedATNSegment) / sizeof(serializedATNSegment[0])); @@ -582,23 +580,23 @@ HogQLParser::SelectContext* HogQLParser::select() { }); try { enterOuterAlt(_localctx, 1); - setState(129); + setState(127); _errHandler->sync(this); switch (getInterpreter()->adaptivePredict(_input, 0, _ctx)) { case 1: { - setState(126); + setState(124); selectUnionStmt(); break; } case 2: { - setState(127); + setState(125); selectStmt(); break; } case 3: { - setState(128); + setState(126); hogqlxTagElement(); break; } @@ -606,7 +604,7 @@ HogQLParser::SelectContext* HogQLParser::select() { default: break; } - setState(131); + setState(129); match(HogQLParser::EOF); } @@ -676,19 +674,19 @@ HogQLParser::SelectUnionStmtContext* HogQLParser::selectUnionStmt() { }); try { enterOuterAlt(_localctx, 1); - setState(133); + setState(131); selectStmtWithParens(); - setState(139); + setState(137); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::UNION) { - setState(134); + setState(132); match(HogQLParser::UNION); - setState(135); + setState(133); match(HogQLParser::ALL); - setState(136); + setState(134); selectStmtWithParens(); - setState(141); + setState(139); _errHandler->sync(this); _la = _input->LA(1); } @@ -709,8 +707,8 @@ HogQLParser::SelectStmtWithParensContext::SelectStmtWithParensContext(ParserRule : ParserRuleContext(parent, invokingState) { } -HogQLParser::SelectStmtWithPlaceholderContext* HogQLParser::SelectStmtWithParensContext::selectStmtWithPlaceholder() { - return getRuleContext(0); +HogQLParser::SelectStmtContext* HogQLParser::SelectStmtWithParensContext::selectStmt() { + return getRuleContext(0); } tree::TerminalNode* HogQLParser::SelectStmtWithParensContext::LPAREN() { @@ -725,6 +723,10 @@ tree::TerminalNode* HogQLParser::SelectStmtWithParensContext::RPAREN() { return getToken(HogQLParser::RPAREN, 0); } +HogQLParser::PlaceholderContext* HogQLParser::SelectStmtWithParensContext::placeholder() { + return getRuleContext(0); +} + size_t HogQLParser::SelectStmtWithParensContext::getRuleIndex() const { return HogQLParser::RuleSelectStmtWithParens; @@ -750,96 +752,31 @@ HogQLParser::SelectStmtWithParensContext* HogQLParser::selectStmtWithParens() { exitRule(); }); try { - setState(147); + setState(146); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::SELECT: - case HogQLParser::WITH: - case HogQLParser::LBRACE: { + case HogQLParser::WITH: { enterOuterAlt(_localctx, 1); - setState(142); - selectStmtWithPlaceholder(); + setState(140); + selectStmt(); break; } case HogQLParser::LPAREN: { enterOuterAlt(_localctx, 2); - setState(143); + setState(141); match(HogQLParser::LPAREN); - setState(144); + setState(142); selectUnionStmt(); - setState(145); + setState(143); match(HogQLParser::RPAREN); break; } - default: - throw NoViableAltException(this); - } - - } - catch (RecognitionException &e) { - _errHandler->reportError(this, e); - _localctx->exception = std::current_exception(); - _errHandler->recover(this, _localctx->exception); - } - - return _localctx; -} - -//----------------- SelectStmtWithPlaceholderContext ------------------------------------------------------------------ - -HogQLParser::SelectStmtWithPlaceholderContext::SelectStmtWithPlaceholderContext(ParserRuleContext *parent, size_t invokingState) - : ParserRuleContext(parent, invokingState) { -} - -HogQLParser::SelectStmtContext* HogQLParser::SelectStmtWithPlaceholderContext::selectStmt() { - return getRuleContext(0); -} - -HogQLParser::PlaceholderContext* HogQLParser::SelectStmtWithPlaceholderContext::placeholder() { - return getRuleContext(0); -} - - -size_t HogQLParser::SelectStmtWithPlaceholderContext::getRuleIndex() const { - return HogQLParser::RuleSelectStmtWithPlaceholder; -} - - -std::any HogQLParser::SelectStmtWithPlaceholderContext::accept(tree::ParseTreeVisitor *visitor) { - if (auto parserVisitor = dynamic_cast(visitor)) - return parserVisitor->visitSelectStmtWithPlaceholder(this); - else - return visitor->visitChildren(this); -} - -HogQLParser::SelectStmtWithPlaceholderContext* HogQLParser::selectStmtWithPlaceholder() { - SelectStmtWithPlaceholderContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 6, HogQLParser::RuleSelectStmtWithPlaceholder); - -#if __cplusplus > 201703L - auto onExit = finally([=, this] { -#else - auto onExit = finally([=] { -#endif - exitRule(); - }); - try { - setState(151); - _errHandler->sync(this); - switch (_input->LA(1)) { - case HogQLParser::SELECT: - case HogQLParser::WITH: { - enterOuterAlt(_localctx, 1); - setState(149); - selectStmt(); - break; - } - case HogQLParser::LBRACE: { - enterOuterAlt(_localctx, 2); - setState(150); + enterOuterAlt(_localctx, 3); + setState(145); placeholder(); break; } @@ -963,7 +900,7 @@ std::any HogQLParser::SelectStmtContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::SelectStmtContext* HogQLParser::selectStmt() { SelectStmtContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 8, HogQLParser::RuleSelectStmt); + enterRule(_localctx, 6, HogQLParser::RuleSelectStmt); size_t _la = 0; #if __cplusplus > 201703L @@ -975,22 +912,22 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() { }); try { enterOuterAlt(_localctx, 1); - setState(154); + setState(149); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::WITH) { - setState(153); + setState(148); antlrcpp::downCast(_localctx)->with = withClause(); } - setState(156); + setState(151); match(HogQLParser::SELECT); - setState(158); + setState(153); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 5, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 4, _ctx)) { case 1: { - setState(157); + setState(152); match(HogQLParser::DISTINCT); break; } @@ -998,12 +935,12 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() { default: break; } - setState(161); + setState(156); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 6, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 5, _ctx)) { case 1: { - setState(160); + setState(155); topClause(); break; } @@ -1011,58 +948,58 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() { default: break; } - setState(163); + setState(158); antlrcpp::downCast(_localctx)->columns = columnExprList(); - setState(165); + setState(160); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::FROM) { - setState(164); + setState(159); antlrcpp::downCast(_localctx)->from = fromClause(); } - setState(168); + setState(163); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::ARRAY || _la == HogQLParser::INNER || _la == HogQLParser::LEFT) { - setState(167); + setState(162); arrayJoinClause(); } - setState(171); + setState(166); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::PREWHERE) { - setState(170); + setState(165); prewhereClause(); } - setState(174); + setState(169); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::WHERE) { - setState(173); + setState(168); antlrcpp::downCast(_localctx)->where = whereClause(); } - setState(177); + setState(172); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::GROUP) { - setState(176); + setState(171); groupByClause(); } - setState(181); + setState(176); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 12, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 11, _ctx)) { case 1: { - setState(179); + setState(174); match(HogQLParser::WITH); - setState(180); + setState(175); _la = _input->LA(1); if (!(_la == HogQLParser::CUBE || _la == HogQLParser::ROLLUP)) { _errHandler->recoverInline(this); @@ -1077,51 +1014,51 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() { default: break; } - setState(185); + setState(180); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::WITH) { - setState(183); + setState(178); match(HogQLParser::WITH); - setState(184); + setState(179); match(HogQLParser::TOTALS); } - setState(188); + setState(183); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::HAVING) { - setState(187); + setState(182); havingClause(); } - setState(191); + setState(186); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::WINDOW) { - setState(190); + setState(185); windowClause(); } - setState(194); + setState(189); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::ORDER) { - setState(193); + setState(188); orderByClause(); } - setState(198); + setState(193); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::LIMIT: { - setState(196); + setState(191); limitAndOffsetClause(); break; } case HogQLParser::OFFSET: { - setState(197); + setState(192); offsetOnlyClause(); break; } @@ -1136,12 +1073,12 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() { default: break; } - setState(201); + setState(196); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::SETTINGS) { - setState(200); + setState(195); settingsClause(); } @@ -1184,7 +1121,7 @@ std::any HogQLParser::WithClauseContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::WithClauseContext* HogQLParser::withClause() { WithClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 10, HogQLParser::RuleWithClause); + enterRule(_localctx, 8, HogQLParser::RuleWithClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1195,9 +1132,9 @@ HogQLParser::WithClauseContext* HogQLParser::withClause() { }); try { enterOuterAlt(_localctx, 1); - setState(203); + setState(198); match(HogQLParser::WITH); - setState(204); + setState(199); withExprList(); } @@ -1247,7 +1184,7 @@ std::any HogQLParser::TopClauseContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::TopClauseContext* HogQLParser::topClause() { TopClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 12, HogQLParser::RuleTopClause); + enterRule(_localctx, 10, HogQLParser::RuleTopClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1258,18 +1195,18 @@ HogQLParser::TopClauseContext* HogQLParser::topClause() { }); try { enterOuterAlt(_localctx, 1); - setState(206); + setState(201); match(HogQLParser::TOP); - setState(207); + setState(202); match(HogQLParser::DECIMAL_LITERAL); - setState(210); + setState(205); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 19, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 18, _ctx)) { case 1: { - setState(208); + setState(203); match(HogQLParser::WITH); - setState(209); + setState(204); match(HogQLParser::TIES); break; } @@ -1317,7 +1254,7 @@ std::any HogQLParser::FromClauseContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::FromClauseContext* HogQLParser::fromClause() { FromClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 14, HogQLParser::RuleFromClause); + enterRule(_localctx, 12, HogQLParser::RuleFromClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1328,9 +1265,9 @@ HogQLParser::FromClauseContext* HogQLParser::fromClause() { }); try { enterOuterAlt(_localctx, 1); - setState(212); + setState(207); match(HogQLParser::FROM); - setState(213); + setState(208); joinExpr(0); } @@ -1384,7 +1321,7 @@ std::any HogQLParser::ArrayJoinClauseContext::accept(tree::ParseTreeVisitor *vis HogQLParser::ArrayJoinClauseContext* HogQLParser::arrayJoinClause() { ArrayJoinClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 16, HogQLParser::RuleArrayJoinClause); + enterRule(_localctx, 14, HogQLParser::RuleArrayJoinClause); size_t _la = 0; #if __cplusplus > 201703L @@ -1396,14 +1333,14 @@ HogQLParser::ArrayJoinClauseContext* HogQLParser::arrayJoinClause() { }); try { enterOuterAlt(_localctx, 1); - setState(216); + setState(211); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::INNER || _la == HogQLParser::LEFT) { - setState(215); + setState(210); _la = _input->LA(1); if (!(_la == HogQLParser::INNER @@ -1415,11 +1352,11 @@ HogQLParser::ArrayJoinClauseContext* HogQLParser::arrayJoinClause() { consume(); } } - setState(218); + setState(213); match(HogQLParser::ARRAY); - setState(219); + setState(214); match(HogQLParser::JOIN); - setState(220); + setState(215); columnExprList(); } @@ -1505,7 +1442,7 @@ std::any HogQLParser::WindowClauseContext::accept(tree::ParseTreeVisitor *visito HogQLParser::WindowClauseContext* HogQLParser::windowClause() { WindowClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 18, HogQLParser::RuleWindowClause); + enterRule(_localctx, 16, HogQLParser::RuleWindowClause); size_t _la = 0; #if __cplusplus > 201703L @@ -1517,35 +1454,35 @@ HogQLParser::WindowClauseContext* HogQLParser::windowClause() { }); try { enterOuterAlt(_localctx, 1); - setState(222); + setState(217); match(HogQLParser::WINDOW); - setState(223); + setState(218); identifier(); - setState(224); + setState(219); match(HogQLParser::AS); - setState(225); + setState(220); match(HogQLParser::LPAREN); - setState(226); + setState(221); windowExpr(); - setState(227); + setState(222); match(HogQLParser::RPAREN); - setState(237); + setState(232); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(228); + setState(223); match(HogQLParser::COMMA); - setState(229); + setState(224); identifier(); - setState(230); + setState(225); match(HogQLParser::AS); - setState(231); + setState(226); match(HogQLParser::LPAREN); - setState(232); + setState(227); windowExpr(); - setState(233); + setState(228); match(HogQLParser::RPAREN); - setState(239); + setState(234); _errHandler->sync(this); _la = _input->LA(1); } @@ -1589,7 +1526,7 @@ std::any HogQLParser::PrewhereClauseContext::accept(tree::ParseTreeVisitor *visi HogQLParser::PrewhereClauseContext* HogQLParser::prewhereClause() { PrewhereClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 20, HogQLParser::RulePrewhereClause); + enterRule(_localctx, 18, HogQLParser::RulePrewhereClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1600,9 +1537,9 @@ HogQLParser::PrewhereClauseContext* HogQLParser::prewhereClause() { }); try { enterOuterAlt(_localctx, 1); - setState(240); + setState(235); match(HogQLParser::PREWHERE); - setState(241); + setState(236); columnExpr(0); } @@ -1644,7 +1581,7 @@ std::any HogQLParser::WhereClauseContext::accept(tree::ParseTreeVisitor *visitor HogQLParser::WhereClauseContext* HogQLParser::whereClause() { WhereClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 22, HogQLParser::RuleWhereClause); + enterRule(_localctx, 20, HogQLParser::RuleWhereClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1655,9 +1592,9 @@ HogQLParser::WhereClauseContext* HogQLParser::whereClause() { }); try { enterOuterAlt(_localctx, 1); - setState(243); + setState(238); match(HogQLParser::WHERE); - setState(244); + setState(239); columnExpr(0); } @@ -1719,7 +1656,7 @@ std::any HogQLParser::GroupByClauseContext::accept(tree::ParseTreeVisitor *visit HogQLParser::GroupByClauseContext* HogQLParser::groupByClause() { GroupByClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 24, HogQLParser::RuleGroupByClause); + enterRule(_localctx, 22, HogQLParser::RuleGroupByClause); size_t _la = 0; #if __cplusplus > 201703L @@ -1731,15 +1668,15 @@ HogQLParser::GroupByClauseContext* HogQLParser::groupByClause() { }); try { enterOuterAlt(_localctx, 1); - setState(246); + setState(241); match(HogQLParser::GROUP); - setState(247); + setState(242); match(HogQLParser::BY); - setState(254); + setState(249); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 22, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 21, _ctx)) { case 1: { - setState(248); + setState(243); _la = _input->LA(1); if (!(_la == HogQLParser::CUBE || _la == HogQLParser::ROLLUP)) { _errHandler->recoverInline(this); @@ -1748,17 +1685,17 @@ HogQLParser::GroupByClauseContext* HogQLParser::groupByClause() { _errHandler->reportMatch(this); consume(); } - setState(249); + setState(244); match(HogQLParser::LPAREN); - setState(250); + setState(245); columnExprList(); - setState(251); + setState(246); match(HogQLParser::RPAREN); break; } case 2: { - setState(253); + setState(248); columnExprList(); break; } @@ -1806,7 +1743,7 @@ std::any HogQLParser::HavingClauseContext::accept(tree::ParseTreeVisitor *visito HogQLParser::HavingClauseContext* HogQLParser::havingClause() { HavingClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 26, HogQLParser::RuleHavingClause); + enterRule(_localctx, 24, HogQLParser::RuleHavingClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1817,9 +1754,9 @@ HogQLParser::HavingClauseContext* HogQLParser::havingClause() { }); try { enterOuterAlt(_localctx, 1); - setState(256); + setState(251); match(HogQLParser::HAVING); - setState(257); + setState(252); columnExpr(0); } @@ -1865,7 +1802,7 @@ std::any HogQLParser::OrderByClauseContext::accept(tree::ParseTreeVisitor *visit HogQLParser::OrderByClauseContext* HogQLParser::orderByClause() { OrderByClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 28, HogQLParser::RuleOrderByClause); + enterRule(_localctx, 26, HogQLParser::RuleOrderByClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1876,11 +1813,11 @@ HogQLParser::OrderByClauseContext* HogQLParser::orderByClause() { }); try { enterOuterAlt(_localctx, 1); - setState(259); + setState(254); match(HogQLParser::ORDER); - setState(260); + setState(255); match(HogQLParser::BY); - setState(261); + setState(256); orderExprList(); } @@ -1926,7 +1863,7 @@ std::any HogQLParser::ProjectionOrderByClauseContext::accept(tree::ParseTreeVisi HogQLParser::ProjectionOrderByClauseContext* HogQLParser::projectionOrderByClause() { ProjectionOrderByClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 30, HogQLParser::RuleProjectionOrderByClause); + enterRule(_localctx, 28, HogQLParser::RuleProjectionOrderByClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -1937,11 +1874,11 @@ HogQLParser::ProjectionOrderByClauseContext* HogQLParser::projectionOrderByClaus }); try { enterOuterAlt(_localctx, 1); - setState(263); + setState(258); match(HogQLParser::ORDER); - setState(264); + setState(259); match(HogQLParser::BY); - setState(265); + setState(260); columnExprList(); } @@ -2011,7 +1948,7 @@ std::any HogQLParser::LimitAndOffsetClauseContext::accept(tree::ParseTreeVisitor HogQLParser::LimitAndOffsetClauseContext* HogQLParser::limitAndOffsetClause() { LimitAndOffsetClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 32, HogQLParser::RuleLimitAndOffsetClause); + enterRule(_localctx, 30, HogQLParser::RuleLimitAndOffsetClause); size_t _la = 0; #if __cplusplus > 201703L @@ -2022,40 +1959,40 @@ HogQLParser::LimitAndOffsetClauseContext* HogQLParser::limitAndOffsetClause() { exitRule(); }); try { - setState(296); + setState(291); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 27, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 26, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(267); + setState(262); match(HogQLParser::LIMIT); - setState(268); + setState(263); columnExpr(0); - setState(271); + setState(266); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::COMMA) { - setState(269); + setState(264); match(HogQLParser::COMMA); - setState(270); + setState(265); columnExpr(0); } - setState(277); + setState(272); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::WITH: { - setState(273); + setState(268); match(HogQLParser::WITH); - setState(274); + setState(269); match(HogQLParser::TIES); break; } case HogQLParser::BY: { - setState(275); + setState(270); match(HogQLParser::BY); - setState(276); + setState(271); columnExprList(); break; } @@ -2075,45 +2012,45 @@ HogQLParser::LimitAndOffsetClauseContext* HogQLParser::limitAndOffsetClause() { case 2: { enterOuterAlt(_localctx, 2); - setState(279); + setState(274); match(HogQLParser::LIMIT); - setState(280); + setState(275); columnExpr(0); - setState(283); + setState(278); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::WITH) { - setState(281); + setState(276); match(HogQLParser::WITH); - setState(282); + setState(277); match(HogQLParser::TIES); } - setState(285); + setState(280); match(HogQLParser::OFFSET); - setState(286); + setState(281); columnExpr(0); break; } case 3: { enterOuterAlt(_localctx, 3); - setState(288); + setState(283); match(HogQLParser::LIMIT); - setState(289); + setState(284); columnExpr(0); - setState(290); + setState(285); match(HogQLParser::OFFSET); - setState(291); + setState(286); columnExpr(0); - setState(294); + setState(289); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::BY) { - setState(292); + setState(287); match(HogQLParser::BY); - setState(293); + setState(288); columnExprList(); } break; @@ -2162,7 +2099,7 @@ std::any HogQLParser::OffsetOnlyClauseContext::accept(tree::ParseTreeVisitor *vi HogQLParser::OffsetOnlyClauseContext* HogQLParser::offsetOnlyClause() { OffsetOnlyClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 34, HogQLParser::RuleOffsetOnlyClause); + enterRule(_localctx, 32, HogQLParser::RuleOffsetOnlyClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -2173,9 +2110,9 @@ HogQLParser::OffsetOnlyClauseContext* HogQLParser::offsetOnlyClause() { }); try { enterOuterAlt(_localctx, 1); - setState(298); + setState(293); match(HogQLParser::OFFSET); - setState(299); + setState(294); columnExpr(0); } @@ -2217,7 +2154,7 @@ std::any HogQLParser::SettingsClauseContext::accept(tree::ParseTreeVisitor *visi HogQLParser::SettingsClauseContext* HogQLParser::settingsClause() { SettingsClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 36, HogQLParser::RuleSettingsClause); + enterRule(_localctx, 34, HogQLParser::RuleSettingsClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -2228,9 +2165,9 @@ HogQLParser::SettingsClauseContext* HogQLParser::settingsClause() { }); try { enterOuterAlt(_localctx, 1); - setState(301); + setState(296); match(HogQLParser::SETTINGS); - setState(302); + setState(297); settingExprList(); } @@ -2369,8 +2306,8 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { HogQLParser::JoinExprContext *_localctx = _tracker.createInstance(_ctx, parentState); HogQLParser::JoinExprContext *previousContext = _localctx; (void)previousContext; // Silence compiler, in case the context is not used by generated code. - size_t startState = 38; - enterRecursionRule(_localctx, 38, HogQLParser::RuleJoinExpr, precedence); + size_t startState = 36; + enterRecursionRule(_localctx, 36, HogQLParser::RuleJoinExpr, precedence); size_t _la = 0; @@ -2384,22 +2321,22 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { try { size_t alt; enterOuterAlt(_localctx, 1); - setState(316); + setState(311); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 30, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 29, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(305); + setState(300); tableExpr(0); - setState(307); + setState(302); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 28, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 27, _ctx)) { case 1: { - setState(306); + setState(301); match(HogQLParser::FINAL); break; } @@ -2407,12 +2344,12 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { default: break; } - setState(310); + setState(305); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 29, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 28, _ctx)) { case 1: { - setState(309); + setState(304); sampleClause(); break; } @@ -2427,11 +2364,11 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(312); + setState(307); match(HogQLParser::LPAREN); - setState(313); + setState(308); joinExpr(0); - setState(314); + setState(309); match(HogQLParser::RPAREN); break; } @@ -2440,27 +2377,27 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { break; } _ctx->stop = _input->LT(-1); - setState(332); + setState(327); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 33, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 32, _ctx); while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) { if (alt == 1) { if (!_parseListeners.empty()) triggerExitRuleEvent(); previousContext = _localctx; - setState(330); + setState(325); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 32, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 31, _ctx)) { case 1: { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleJoinExpr); - setState(318); + setState(313); if (!(precpred(_ctx, 3))) throw FailedPredicateException(this, "precpred(_ctx, 3)"); - setState(319); + setState(314); joinOpCross(); - setState(320); + setState(315); joinExpr(4); break; } @@ -2469,10 +2406,10 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleJoinExpr); - setState(322); + setState(317); if (!(precpred(_ctx, 4))) throw FailedPredicateException(this, "precpred(_ctx, 4)"); - setState(324); + setState(319); _errHandler->sync(this); _la = _input->LA(1); @@ -2481,14 +2418,14 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { ((1ULL << (_la - 69)) & 134250497) != 0) || _la == HogQLParser::RIGHT || _la == HogQLParser::SEMI) { - setState(323); + setState(318); joinOp(); } - setState(326); + setState(321); match(HogQLParser::JOIN); - setState(327); + setState(322); joinExpr(0); - setState(328); + setState(323); joinConstraintClause(); break; } @@ -2497,9 +2434,9 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) { break; } } - setState(334); + setState(329); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 33, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 32, _ctx); } } catch (RecognitionException &e) { @@ -2624,7 +2561,7 @@ std::any HogQLParser::JoinOpLeftRightContext::accept(tree::ParseTreeVisitor *vis } HogQLParser::JoinOpContext* HogQLParser::joinOp() { JoinOpContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 40, HogQLParser::RuleJoinOp); + enterRule(_localctx, 38, HogQLParser::RuleJoinOp); size_t _la = 0; #if __cplusplus > 201703L @@ -2635,23 +2572,23 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { exitRule(); }); try { - setState(378); + setState(373); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 47, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 46, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 1); - setState(344); + setState(339); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 36, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 35, _ctx)) { case 1: { - setState(336); + setState(331); _errHandler->sync(this); _la = _input->LA(1); if ((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4368) != 0)) { - setState(335); + setState(330); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4368) != 0))) { @@ -2662,21 +2599,21 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { consume(); } } - setState(338); + setState(333); match(HogQLParser::INNER); break; } case 2: { - setState(339); + setState(334); match(HogQLParser::INNER); - setState(341); + setState(336); _errHandler->sync(this); _la = _input->LA(1); if ((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4368) != 0)) { - setState(340); + setState(335); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4368) != 0))) { @@ -2691,7 +2628,7 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { } case 3: { - setState(343); + setState(338); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4368) != 0))) { @@ -2713,17 +2650,17 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { case 2: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 2); - setState(360); + setState(355); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 41, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 40, _ctx)) { case 1: { - setState(347); + setState(342); _errHandler->sync(this); _la = _input->LA(1); if ((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4496) != 0) || _la == HogQLParser::SEMI) { - setState(346); + setState(341); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4496) != 0) || _la == HogQLParser::SEMI)) { @@ -2734,7 +2671,7 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { consume(); } } - setState(349); + setState(344); _la = _input->LA(1); if (!(_la == HogQLParser::LEFT @@ -2745,19 +2682,19 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { _errHandler->reportMatch(this); consume(); } - setState(351); + setState(346); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::OUTER) { - setState(350); + setState(345); match(HogQLParser::OUTER); } break; } case 2: { - setState(353); + setState(348); _la = _input->LA(1); if (!(_la == HogQLParser::LEFT @@ -2768,21 +2705,21 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { _errHandler->reportMatch(this); consume(); } - setState(355); + setState(350); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::OUTER) { - setState(354); + setState(349); match(HogQLParser::OUTER); } - setState(358); + setState(353); _errHandler->sync(this); _la = _input->LA(1); if ((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4496) != 0) || _la == HogQLParser::SEMI) { - setState(357); + setState(352); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 4496) != 0) || _la == HogQLParser::SEMI)) { @@ -2805,18 +2742,18 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { case 3: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 3); - setState(376); + setState(371); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 46, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 45, _ctx)) { case 1: { - setState(363); + setState(358); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::ALL || _la == HogQLParser::ANY) { - setState(362); + setState(357); _la = _input->LA(1); if (!(_la == HogQLParser::ALL @@ -2828,38 +2765,38 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() { consume(); } } - setState(365); + setState(360); match(HogQLParser::FULL); - setState(367); + setState(362); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::OUTER) { - setState(366); + setState(361); match(HogQLParser::OUTER); } break; } case 2: { - setState(369); + setState(364); match(HogQLParser::FULL); - setState(371); + setState(366); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::OUTER) { - setState(370); + setState(365); match(HogQLParser::OUTER); } - setState(374); + setState(369); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::ALL || _la == HogQLParser::ANY) { - setState(373); + setState(368); _la = _input->LA(1); if (!(_la == HogQLParser::ALL @@ -2927,7 +2864,7 @@ std::any HogQLParser::JoinOpCrossContext::accept(tree::ParseTreeVisitor *visitor HogQLParser::JoinOpCrossContext* HogQLParser::joinOpCross() { JoinOpCrossContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 42, HogQLParser::RuleJoinOpCross); + enterRule(_localctx, 40, HogQLParser::RuleJoinOpCross); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -2937,21 +2874,21 @@ HogQLParser::JoinOpCrossContext* HogQLParser::joinOpCross() { exitRule(); }); try { - setState(383); + setState(378); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::CROSS: { enterOuterAlt(_localctx, 1); - setState(380); + setState(375); match(HogQLParser::CROSS); - setState(381); + setState(376); match(HogQLParser::JOIN); break; } case HogQLParser::COMMA: { enterOuterAlt(_localctx, 2); - setState(382); + setState(377); match(HogQLParser::COMMA); break; } @@ -3011,7 +2948,7 @@ std::any HogQLParser::JoinConstraintClauseContext::accept(tree::ParseTreeVisitor HogQLParser::JoinConstraintClauseContext* HogQLParser::joinConstraintClause() { JoinConstraintClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 44, HogQLParser::RuleJoinConstraintClause); + enterRule(_localctx, 42, HogQLParser::RuleJoinConstraintClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3021,36 +2958,36 @@ HogQLParser::JoinConstraintClauseContext* HogQLParser::joinConstraintClause() { exitRule(); }); try { - setState(394); + setState(389); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 49, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 48, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(385); + setState(380); match(HogQLParser::ON); - setState(386); + setState(381); columnExprList(); break; } case 2: { enterOuterAlt(_localctx, 2); - setState(387); + setState(382); match(HogQLParser::USING); - setState(388); + setState(383); match(HogQLParser::LPAREN); - setState(389); + setState(384); columnExprList(); - setState(390); + setState(385); match(HogQLParser::RPAREN); break; } case 3: { enterOuterAlt(_localctx, 3); - setState(392); + setState(387); match(HogQLParser::USING); - setState(393); + setState(388); columnExprList(); break; } @@ -3106,7 +3043,7 @@ std::any HogQLParser::SampleClauseContext::accept(tree::ParseTreeVisitor *visito HogQLParser::SampleClauseContext* HogQLParser::sampleClause() { SampleClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 46, HogQLParser::RuleSampleClause); + enterRule(_localctx, 44, HogQLParser::RuleSampleClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3117,18 +3054,18 @@ HogQLParser::SampleClauseContext* HogQLParser::sampleClause() { }); try { enterOuterAlt(_localctx, 1); - setState(396); + setState(391); match(HogQLParser::SAMPLE); - setState(397); + setState(392); ratioExpr(); - setState(400); + setState(395); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 50, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 49, _ctx)) { case 1: { - setState(398); + setState(393); match(HogQLParser::OFFSET); - setState(399); + setState(394); ratioExpr(); break; } @@ -3184,7 +3121,7 @@ std::any HogQLParser::OrderExprListContext::accept(tree::ParseTreeVisitor *visit HogQLParser::OrderExprListContext* HogQLParser::orderExprList() { OrderExprListContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 48, HogQLParser::RuleOrderExprList); + enterRule(_localctx, 46, HogQLParser::RuleOrderExprList); size_t _la = 0; #if __cplusplus > 201703L @@ -3196,17 +3133,17 @@ HogQLParser::OrderExprListContext* HogQLParser::orderExprList() { }); try { enterOuterAlt(_localctx, 1); - setState(402); + setState(397); orderExpr(); - setState(407); + setState(402); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(403); + setState(398); match(HogQLParser::COMMA); - setState(404); + setState(399); orderExpr(); - setState(409); + setState(404); _errHandler->sync(this); _la = _input->LA(1); } @@ -3278,7 +3215,7 @@ std::any HogQLParser::OrderExprContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::OrderExprContext* HogQLParser::orderExpr() { OrderExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 50, HogQLParser::RuleOrderExpr); + enterRule(_localctx, 48, HogQLParser::RuleOrderExpr); size_t _la = 0; #if __cplusplus > 201703L @@ -3290,15 +3227,15 @@ HogQLParser::OrderExprContext* HogQLParser::orderExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(410); + setState(405); columnExpr(0); - setState(412); + setState(407); _errHandler->sync(this); _la = _input->LA(1); if ((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 13194139535360) != 0)) { - setState(411); + setState(406); _la = _input->LA(1); if (!((((_la & ~ 0x3fULL) == 0) && ((1ULL << _la) & 13194139535360) != 0))) { @@ -3309,14 +3246,14 @@ HogQLParser::OrderExprContext* HogQLParser::orderExpr() { consume(); } } - setState(416); + setState(411); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::NULLS) { - setState(414); + setState(409); match(HogQLParser::NULLS); - setState(415); + setState(410); _la = _input->LA(1); if (!(_la == HogQLParser::FIRST @@ -3328,14 +3265,14 @@ HogQLParser::OrderExprContext* HogQLParser::orderExpr() { consume(); } } - setState(420); + setState(415); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::COLLATE) { - setState(418); + setState(413); match(HogQLParser::COLLATE); - setState(419); + setState(414); match(HogQLParser::STRING_LITERAL); } @@ -3386,7 +3323,7 @@ std::any HogQLParser::RatioExprContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::RatioExprContext* HogQLParser::ratioExpr() { RatioExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 52, HogQLParser::RuleRatioExpr); + enterRule(_localctx, 50, HogQLParser::RuleRatioExpr); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3396,12 +3333,12 @@ HogQLParser::RatioExprContext* HogQLParser::ratioExpr() { exitRule(); }); try { - setState(428); + setState(423); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::LBRACE: { enterOuterAlt(_localctx, 1); - setState(422); + setState(417); placeholder(); break; } @@ -3416,16 +3353,16 @@ HogQLParser::RatioExprContext* HogQLParser::ratioExpr() { case HogQLParser::DOT: case HogQLParser::PLUS: { enterOuterAlt(_localctx, 2); - setState(423); + setState(418); numberLiteral(); - setState(426); + setState(421); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 55, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 54, _ctx)) { case 1: { - setState(424); + setState(419); match(HogQLParser::SLASH); - setState(425); + setState(420); numberLiteral(); break; } @@ -3487,7 +3424,7 @@ std::any HogQLParser::SettingExprListContext::accept(tree::ParseTreeVisitor *vis HogQLParser::SettingExprListContext* HogQLParser::settingExprList() { SettingExprListContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 54, HogQLParser::RuleSettingExprList); + enterRule(_localctx, 52, HogQLParser::RuleSettingExprList); size_t _la = 0; #if __cplusplus > 201703L @@ -3499,17 +3436,17 @@ HogQLParser::SettingExprListContext* HogQLParser::settingExprList() { }); try { enterOuterAlt(_localctx, 1); - setState(430); + setState(425); settingExpr(); - setState(435); + setState(430); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(431); + setState(426); match(HogQLParser::COMMA); - setState(432); + setState(427); settingExpr(); - setState(437); + setState(432); _errHandler->sync(this); _la = _input->LA(1); } @@ -3557,7 +3494,7 @@ std::any HogQLParser::SettingExprContext::accept(tree::ParseTreeVisitor *visitor HogQLParser::SettingExprContext* HogQLParser::settingExpr() { SettingExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 56, HogQLParser::RuleSettingExpr); + enterRule(_localctx, 54, HogQLParser::RuleSettingExpr); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3568,11 +3505,11 @@ HogQLParser::SettingExprContext* HogQLParser::settingExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(438); + setState(433); identifier(); - setState(439); + setState(434); match(HogQLParser::EQ_SINGLE); - setState(440); + setState(435); literal(); } @@ -3618,7 +3555,7 @@ std::any HogQLParser::WindowExprContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::WindowExprContext* HogQLParser::windowExpr() { WindowExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 58, HogQLParser::RuleWindowExpr); + enterRule(_localctx, 56, HogQLParser::RuleWindowExpr); size_t _la = 0; #if __cplusplus > 201703L @@ -3630,30 +3567,30 @@ HogQLParser::WindowExprContext* HogQLParser::windowExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(443); + setState(438); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::PARTITION) { - setState(442); + setState(437); winPartitionByClause(); } - setState(446); + setState(441); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::ORDER) { - setState(445); + setState(440); winOrderByClause(); } - setState(449); + setState(444); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::RANGE || _la == HogQLParser::ROWS) { - setState(448); + setState(443); winFrameClause(); } @@ -3700,7 +3637,7 @@ std::any HogQLParser::WinPartitionByClauseContext::accept(tree::ParseTreeVisitor HogQLParser::WinPartitionByClauseContext* HogQLParser::winPartitionByClause() { WinPartitionByClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 60, HogQLParser::RuleWinPartitionByClause); + enterRule(_localctx, 58, HogQLParser::RuleWinPartitionByClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3711,11 +3648,11 @@ HogQLParser::WinPartitionByClauseContext* HogQLParser::winPartitionByClause() { }); try { enterOuterAlt(_localctx, 1); - setState(451); + setState(446); match(HogQLParser::PARTITION); - setState(452); + setState(447); match(HogQLParser::BY); - setState(453); + setState(448); columnExprList(); } @@ -3761,7 +3698,7 @@ std::any HogQLParser::WinOrderByClauseContext::accept(tree::ParseTreeVisitor *vi HogQLParser::WinOrderByClauseContext* HogQLParser::winOrderByClause() { WinOrderByClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 62, HogQLParser::RuleWinOrderByClause); + enterRule(_localctx, 60, HogQLParser::RuleWinOrderByClause); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3772,11 +3709,11 @@ HogQLParser::WinOrderByClauseContext* HogQLParser::winOrderByClause() { }); try { enterOuterAlt(_localctx, 1); - setState(455); + setState(450); match(HogQLParser::ORDER); - setState(456); + setState(451); match(HogQLParser::BY); - setState(457); + setState(452); orderExprList(); } @@ -3822,7 +3759,7 @@ std::any HogQLParser::WinFrameClauseContext::accept(tree::ParseTreeVisitor *visi HogQLParser::WinFrameClauseContext* HogQLParser::winFrameClause() { WinFrameClauseContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 64, HogQLParser::RuleWinFrameClause); + enterRule(_localctx, 62, HogQLParser::RuleWinFrameClause); size_t _la = 0; #if __cplusplus > 201703L @@ -3834,7 +3771,7 @@ HogQLParser::WinFrameClauseContext* HogQLParser::winFrameClause() { }); try { enterOuterAlt(_localctx, 1); - setState(459); + setState(454); _la = _input->LA(1); if (!(_la == HogQLParser::RANGE @@ -3845,7 +3782,7 @@ HogQLParser::WinFrameClauseContext* HogQLParser::winFrameClause() { _errHandler->reportMatch(this); consume(); } - setState(460); + setState(455); winFrameExtend(); } @@ -3917,7 +3854,7 @@ std::any HogQLParser::FrameBetweenContext::accept(tree::ParseTreeVisitor *visito } HogQLParser::WinFrameExtendContext* HogQLParser::winFrameExtend() { WinFrameExtendContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 66, HogQLParser::RuleWinFrameExtend); + enterRule(_localctx, 64, HogQLParser::RuleWinFrameExtend); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -3927,7 +3864,7 @@ HogQLParser::WinFrameExtendContext* HogQLParser::winFrameExtend() { exitRule(); }); try { - setState(468); + setState(463); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::CURRENT: @@ -3943,7 +3880,7 @@ HogQLParser::WinFrameExtendContext* HogQLParser::winFrameExtend() { case HogQLParser::PLUS: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 1); - setState(462); + setState(457); winFrameBound(); break; } @@ -3951,13 +3888,13 @@ HogQLParser::WinFrameExtendContext* HogQLParser::winFrameExtend() { case HogQLParser::BETWEEN: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 2); - setState(463); + setState(458); match(HogQLParser::BETWEEN); - setState(464); + setState(459); winFrameBound(); - setState(465); + setState(460); match(HogQLParser::AND); - setState(466); + setState(461); winFrameBound(); break; } @@ -4021,7 +3958,7 @@ std::any HogQLParser::WinFrameBoundContext::accept(tree::ParseTreeVisitor *visit HogQLParser::WinFrameBoundContext* HogQLParser::winFrameBound() { WinFrameBoundContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 68, HogQLParser::RuleWinFrameBound); + enterRule(_localctx, 66, HogQLParser::RuleWinFrameBound); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -4032,45 +3969,45 @@ HogQLParser::WinFrameBoundContext* HogQLParser::winFrameBound() { }); try { enterOuterAlt(_localctx, 1); - setState(482); + setState(477); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 62, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 61, _ctx)) { case 1: { - setState(470); + setState(465); match(HogQLParser::CURRENT); - setState(471); + setState(466); match(HogQLParser::ROW); break; } case 2: { - setState(472); + setState(467); match(HogQLParser::UNBOUNDED); - setState(473); + setState(468); match(HogQLParser::PRECEDING); break; } case 3: { - setState(474); + setState(469); match(HogQLParser::UNBOUNDED); - setState(475); + setState(470); match(HogQLParser::FOLLOWING); break; } case 4: { - setState(476); + setState(471); numberLiteral(); - setState(477); + setState(472); match(HogQLParser::PRECEDING); break; } case 5: { - setState(479); + setState(474); numberLiteral(); - setState(480); + setState(475); match(HogQLParser::FOLLOWING); break; } @@ -4118,7 +4055,7 @@ std::any HogQLParser::ExprContext::accept(tree::ParseTreeVisitor *visitor) { HogQLParser::ExprContext* HogQLParser::expr() { ExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 70, HogQLParser::RuleExpr); + enterRule(_localctx, 68, HogQLParser::RuleExpr); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -4129,9 +4066,9 @@ HogQLParser::ExprContext* HogQLParser::expr() { }); try { enterOuterAlt(_localctx, 1); - setState(484); + setState(479); columnExpr(0); - setState(485); + setState(480); match(HogQLParser::EOF); } @@ -4324,7 +4261,7 @@ std::any HogQLParser::ColumnTypeExprEnumContext::accept(tree::ParseTreeVisitor * } HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { ColumnTypeExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 72, HogQLParser::RuleColumnTypeExpr); + enterRule(_localctx, 70, HogQLParser::RuleColumnTypeExpr); size_t _la = 0; #if __cplusplus > 201703L @@ -4335,13 +4272,13 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { exitRule(); }); try { - setState(534); + setState(529); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 67, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 66, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 1); - setState(487); + setState(482); identifier(); break; } @@ -4349,29 +4286,29 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { case 2: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 2); - setState(488); + setState(483); identifier(); - setState(489); + setState(484); match(HogQLParser::LPAREN); - setState(490); + setState(485); identifier(); - setState(491); + setState(486); columnTypeExpr(); - setState(498); + setState(493); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(492); + setState(487); match(HogQLParser::COMMA); - setState(493); + setState(488); identifier(); - setState(494); + setState(489); columnTypeExpr(); - setState(500); + setState(495); _errHandler->sync(this); _la = _input->LA(1); } - setState(501); + setState(496); match(HogQLParser::RPAREN); break; } @@ -4379,25 +4316,25 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { case 3: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 3); - setState(503); + setState(498); identifier(); - setState(504); + setState(499); match(HogQLParser::LPAREN); - setState(505); + setState(500); enumValue(); - setState(510); + setState(505); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(506); + setState(501); match(HogQLParser::COMMA); - setState(507); + setState(502); enumValue(); - setState(512); + setState(507); _errHandler->sync(this); _la = _input->LA(1); } - setState(513); + setState(508); match(HogQLParser::RPAREN); break; } @@ -4405,25 +4342,25 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { case 4: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 4); - setState(515); + setState(510); identifier(); - setState(516); + setState(511); match(HogQLParser::LPAREN); - setState(517); + setState(512); columnTypeExpr(); - setState(522); + setState(517); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(518); + setState(513); match(HogQLParser::COMMA); - setState(519); + setState(514); columnTypeExpr(); - setState(524); + setState(519); _errHandler->sync(this); _la = _input->LA(1); } - setState(525); + setState(520); match(HogQLParser::RPAREN); break; } @@ -4431,11 +4368,11 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { case 5: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 5); - setState(527); + setState(522); identifier(); - setState(528); + setState(523); match(HogQLParser::LPAREN); - setState(530); + setState(525); _errHandler->sync(this); _la = _input->LA(1); @@ -4444,10 +4381,10 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr() { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(529); + setState(524); columnExprList(); } - setState(532); + setState(527); match(HogQLParser::RPAREN); break; } @@ -4503,7 +4440,7 @@ std::any HogQLParser::ColumnExprListContext::accept(tree::ParseTreeVisitor *visi HogQLParser::ColumnExprListContext* HogQLParser::columnExprList() { ColumnExprListContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 74, HogQLParser::RuleColumnExprList); + enterRule(_localctx, 72, HogQLParser::RuleColumnExprList); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -4515,21 +4452,21 @@ HogQLParser::ColumnExprListContext* HogQLParser::columnExprList() { try { size_t alt; enterOuterAlt(_localctx, 1); - setState(536); + setState(531); columnExpr(0); - setState(541); + setState(536); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 68, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 67, _ctx); while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) { if (alt == 1) { - setState(537); + setState(532); match(HogQLParser::COMMA); - setState(538); + setState(533); columnExpr(0); } - setState(543); + setState(538); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 68, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 67, _ctx); } } @@ -5562,8 +5499,8 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { HogQLParser::ColumnExprContext *_localctx = _tracker.createInstance(_ctx, parentState); HogQLParser::ColumnExprContext *previousContext = _localctx; (void)previousContext; // Silence compiler, in case the context is not used by generated code. - size_t startState = 76; - enterRecursionRule(_localctx, 76, HogQLParser::RuleColumnExpr, precedence); + size_t startState = 74; + enterRecursionRule(_localctx, 74, HogQLParser::RuleColumnExpr, precedence); size_t _la = 0; @@ -5577,22 +5514,22 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { try { size_t alt; enterOuterAlt(_localctx, 1); - setState(674); + setState(669); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 81, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 80, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(545); + setState(540); match(HogQLParser::CASE); - setState(547); + setState(542); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 69, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 68, _ctx)) { case 1: { - setState(546); + setState(541); antlrcpp::downCast(_localctx)->caseExpr = columnExpr(0); break; } @@ -5600,33 +5537,33 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { default: break; } - setState(554); + setState(549); _errHandler->sync(this); _la = _input->LA(1); do { - setState(549); + setState(544); match(HogQLParser::WHEN); - setState(550); + setState(545); antlrcpp::downCast(_localctx)->whenExpr = columnExpr(0); - setState(551); + setState(546); match(HogQLParser::THEN); - setState(552); + setState(547); antlrcpp::downCast(_localctx)->thenExpr = columnExpr(0); - setState(556); + setState(551); _errHandler->sync(this); _la = _input->LA(1); } while (_la == HogQLParser::WHEN); - setState(560); + setState(555); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::ELSE) { - setState(558); + setState(553); match(HogQLParser::ELSE); - setState(559); + setState(554); antlrcpp::downCast(_localctx)->elseExpr = columnExpr(0); } - setState(562); + setState(557); match(HogQLParser::END); break; } @@ -5635,17 +5572,17 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(564); + setState(559); match(HogQLParser::CAST); - setState(565); + setState(560); match(HogQLParser::LPAREN); - setState(566); + setState(561); columnExpr(0); - setState(567); + setState(562); match(HogQLParser::AS); - setState(568); + setState(563); columnTypeExpr(); - setState(569); + setState(564); match(HogQLParser::RPAREN); break; } @@ -5654,9 +5591,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(571); + setState(566); match(HogQLParser::DATE); - setState(572); + setState(567); match(HogQLParser::STRING_LITERAL); break; } @@ -5665,17 +5602,17 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(573); + setState(568); match(HogQLParser::EXTRACT); - setState(574); + setState(569); match(HogQLParser::LPAREN); - setState(575); + setState(570); interval(); - setState(576); + setState(571); match(HogQLParser::FROM); - setState(577); + setState(572); columnExpr(0); - setState(578); + setState(573); match(HogQLParser::RPAREN); break; } @@ -5684,11 +5621,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(580); + setState(575); match(HogQLParser::INTERVAL); - setState(581); + setState(576); columnExpr(0); - setState(582); + setState(577); interval(); break; } @@ -5697,27 +5634,27 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(584); + setState(579); match(HogQLParser::SUBSTRING); - setState(585); + setState(580); match(HogQLParser::LPAREN); - setState(586); + setState(581); columnExpr(0); - setState(587); + setState(582); match(HogQLParser::FROM); - setState(588); + setState(583); columnExpr(0); - setState(591); + setState(586); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::FOR) { - setState(589); + setState(584); match(HogQLParser::FOR); - setState(590); + setState(585); columnExpr(0); } - setState(593); + setState(588); match(HogQLParser::RPAREN); break; } @@ -5726,9 +5663,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(595); + setState(590); match(HogQLParser::TIMESTAMP); - setState(596); + setState(591); match(HogQLParser::STRING_LITERAL); break; } @@ -5737,11 +5674,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(597); + setState(592); match(HogQLParser::TRIM); - setState(598); + setState(593); match(HogQLParser::LPAREN); - setState(599); + setState(594); _la = _input->LA(1); if (!(_la == HogQLParser::BOTH || _la == HogQLParser::LEADING || _la == HogQLParser::TRAILING)) { _errHandler->recoverInline(this); @@ -5750,13 +5687,13 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _errHandler->reportMatch(this); consume(); } - setState(600); + setState(595); match(HogQLParser::STRING_LITERAL); - setState(601); + setState(596); match(HogQLParser::FROM); - setState(602); + setState(597); columnExpr(0); - setState(603); + setState(598); match(HogQLParser::RPAREN); break; } @@ -5765,12 +5702,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(605); + setState(600); identifier(); - setState(606); + setState(601); match(HogQLParser::LPAREN); - setState(608); + setState(603); _errHandler->sync(this); _la = _input->LA(1); @@ -5779,18 +5716,18 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(607); + setState(602); columnExprList(); } - setState(610); + setState(605); match(HogQLParser::RPAREN); - setState(612); + setState(607); match(HogQLParser::OVER); - setState(613); + setState(608); match(HogQLParser::LPAREN); - setState(614); + setState(609); windowExpr(); - setState(615); + setState(610); match(HogQLParser::RPAREN); break; } @@ -5799,12 +5736,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(617); + setState(612); identifier(); - setState(618); + setState(613); match(HogQLParser::LPAREN); - setState(620); + setState(615); _errHandler->sync(this); _la = _input->LA(1); @@ -5813,14 +5750,14 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(619); + setState(614); columnExprList(); } - setState(622); + setState(617); match(HogQLParser::RPAREN); - setState(624); + setState(619); match(HogQLParser::OVER); - setState(625); + setState(620); identifier(); break; } @@ -5829,16 +5766,16 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(627); + setState(622); identifier(); - setState(633); + setState(628); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 76, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 75, _ctx)) { case 1: { - setState(628); + setState(623); match(HogQLParser::LPAREN); - setState(630); + setState(625); _errHandler->sync(this); _la = _input->LA(1); @@ -5847,10 +5784,10 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(629); + setState(624); columnExprList(); } - setState(632); + setState(627); match(HogQLParser::RPAREN); break; } @@ -5858,14 +5795,14 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { default: break; } - setState(635); + setState(630); match(HogQLParser::LPAREN); - setState(637); + setState(632); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 77, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 76, _ctx)) { case 1: { - setState(636); + setState(631); match(HogQLParser::DISTINCT); break; } @@ -5873,7 +5810,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { default: break; } - setState(640); + setState(635); _errHandler->sync(this); _la = _input->LA(1); @@ -5882,10 +5819,10 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(639); + setState(634); columnArgList(); } - setState(642); + setState(637); match(HogQLParser::RPAREN); break; } @@ -5894,7 +5831,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(644); + setState(639); hogqlxTagElement(); break; } @@ -5903,7 +5840,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(645); + setState(640); literal(); break; } @@ -5912,9 +5849,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(646); + setState(641); match(HogQLParser::DASH); - setState(647); + setState(642); columnExpr(18); break; } @@ -5923,9 +5860,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(648); + setState(643); match(HogQLParser::NOT); - setState(649); + setState(644); columnExpr(12); break; } @@ -5934,7 +5871,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(653); + setState(648); _errHandler->sync(this); _la = _input->LA(1); @@ -5944,12 +5881,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { ((1ULL << (_la - 128)) & -9) != 0) || _la == HogQLParser::JSON_TRUE || _la == HogQLParser::IDENTIFIER) { - setState(650); + setState(645); tableIdentifier(); - setState(651); + setState(646); match(HogQLParser::DOT); } - setState(655); + setState(650); match(HogQLParser::ASTERISK); break; } @@ -5958,11 +5895,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(656); + setState(651); match(HogQLParser::LPAREN); - setState(657); + setState(652); selectUnionStmt(); - setState(658); + setState(653); match(HogQLParser::RPAREN); break; } @@ -5971,11 +5908,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(660); + setState(655); match(HogQLParser::LPAREN); - setState(661); + setState(656); columnExpr(0); - setState(662); + setState(657); match(HogQLParser::RPAREN); break; } @@ -5984,11 +5921,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(664); + setState(659); match(HogQLParser::LPAREN); - setState(665); + setState(660); columnExprList(); - setState(666); + setState(661); match(HogQLParser::RPAREN); break; } @@ -5997,9 +5934,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(668); + setState(663); match(HogQLParser::LBRACKET); - setState(670); + setState(665); _errHandler->sync(this); _la = _input->LA(1); @@ -6008,10 +5945,10 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(669); + setState(664); columnExprList(); } - setState(672); + setState(667); match(HogQLParser::RBRACKET); break; } @@ -6020,7 +5957,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(673); + setState(668); columnIdentifier(); break; } @@ -6029,42 +5966,42 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { break; } _ctx->stop = _input->LT(-1); - setState(769); + setState(764); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 92, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 91, _ctx); while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) { if (alt == 1) { if (!_parseListeners.empty()) triggerExitRuleEvent(); previousContext = _localctx; - setState(767); + setState(762); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 91, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 90, _ctx)) { case 1: { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; newContext->left = previousContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(676); + setState(671); if (!(precpred(_ctx, 17))) throw FailedPredicateException(this, "precpred(_ctx, 17)"); - setState(680); + setState(675); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::ASTERISK: { - setState(677); + setState(672); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::ASTERISK); break; } case HogQLParser::SLASH: { - setState(678); + setState(673); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::SLASH); break; } case HogQLParser::PERCENT: { - setState(679); + setState(674); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::PERCENT); break; } @@ -6072,7 +6009,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { default: throw NoViableAltException(this); } - setState(682); + setState(677); antlrcpp::downCast(_localctx)->right = columnExpr(18); break; } @@ -6082,26 +6019,26 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = newContext; newContext->left = previousContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(683); + setState(678); if (!(precpred(_ctx, 16))) throw FailedPredicateException(this, "precpred(_ctx, 16)"); - setState(687); + setState(682); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::PLUS: { - setState(684); + setState(679); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::PLUS); break; } case HogQLParser::DASH: { - setState(685); + setState(680); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::DASH); break; } case HogQLParser::CONCAT: { - setState(686); + setState(681); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::CONCAT); break; } @@ -6109,7 +6046,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { default: throw NoViableAltException(this); } - setState(689); + setState(684); antlrcpp::downCast(_localctx)->right = columnExpr(17); break; } @@ -6119,86 +6056,86 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { _localctx = newContext; newContext->left = previousContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(690); + setState(685); if (!(precpred(_ctx, 15))) throw FailedPredicateException(this, "precpred(_ctx, 15)"); - setState(715); + setState(710); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 87, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 86, _ctx)) { case 1: { - setState(691); + setState(686); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::EQ_DOUBLE); break; } case 2: { - setState(692); + setState(687); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::EQ_SINGLE); break; } case 3: { - setState(693); + setState(688); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::NOT_EQ); break; } case 4: { - setState(694); + setState(689); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::LT_EQ); break; } case 5: { - setState(695); + setState(690); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::LT); break; } case 6: { - setState(696); + setState(691); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::GT_EQ); break; } case 7: { - setState(697); + setState(692); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::GT); break; } case 8: { - setState(699); + setState(694); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::NOT) { - setState(698); + setState(693); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::NOT); } - setState(701); + setState(696); match(HogQLParser::IN); - setState(703); + setState(698); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::COHORT) { - setState(702); + setState(697); match(HogQLParser::COHORT); } break; } case 9: { - setState(706); + setState(701); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::NOT) { - setState(705); + setState(700); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::NOT); } - setState(708); + setState(703); _la = _input->LA(1); if (!(_la == HogQLParser::ILIKE @@ -6213,37 +6150,37 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { } case 10: { - setState(709); + setState(704); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::REGEX_SINGLE); break; } case 11: { - setState(710); + setState(705); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::REGEX_DOUBLE); break; } case 12: { - setState(711); + setState(706); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::NOT_REGEX); break; } case 13: { - setState(712); + setState(707); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::IREGEX_SINGLE); break; } case 14: { - setState(713); + setState(708); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::IREGEX_DOUBLE); break; } case 15: { - setState(714); + setState(709); antlrcpp::downCast(_localctx)->operator_ = match(HogQLParser::NOT_IREGEX); break; } @@ -6251,7 +6188,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { default: break; } - setState(717); + setState(712); antlrcpp::downCast(_localctx)->right = columnExpr(16); break; } @@ -6260,12 +6197,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(718); + setState(713); if (!(precpred(_ctx, 13))) throw FailedPredicateException(this, "precpred(_ctx, 13)"); - setState(719); + setState(714); match(HogQLParser::NULLISH); - setState(720); + setState(715); columnExpr(14); break; } @@ -6274,12 +6211,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(721); + setState(716); if (!(precpred(_ctx, 11))) throw FailedPredicateException(this, "precpred(_ctx, 11)"); - setState(722); + setState(717); match(HogQLParser::AND); - setState(723); + setState(718); columnExpr(12); break; } @@ -6288,12 +6225,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(724); + setState(719); if (!(precpred(_ctx, 10))) throw FailedPredicateException(this, "precpred(_ctx, 10)"); - setState(725); + setState(720); match(HogQLParser::OR); - setState(726); + setState(721); columnExpr(11); break; } @@ -6302,24 +6239,24 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(727); + setState(722); if (!(precpred(_ctx, 9))) throw FailedPredicateException(this, "precpred(_ctx, 9)"); - setState(729); + setState(724); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::NOT) { - setState(728); + setState(723); match(HogQLParser::NOT); } - setState(731); + setState(726); match(HogQLParser::BETWEEN); - setState(732); + setState(727); columnExpr(0); - setState(733); + setState(728); match(HogQLParser::AND); - setState(734); + setState(729); columnExpr(10); break; } @@ -6328,16 +6265,16 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(736); + setState(731); if (!(precpred(_ctx, 8))) throw FailedPredicateException(this, "precpred(_ctx, 8)"); - setState(737); + setState(732); match(HogQLParser::QUERY); - setState(738); + setState(733); columnExpr(0); - setState(739); + setState(734); match(HogQLParser::COLON); - setState(740); + setState(735); columnExpr(8); break; } @@ -6346,14 +6283,14 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(742); + setState(737); if (!(precpred(_ctx, 21))) throw FailedPredicateException(this, "precpred(_ctx, 21)"); - setState(743); + setState(738); match(HogQLParser::LBRACKET); - setState(744); + setState(739); columnExpr(0); - setState(745); + setState(740); match(HogQLParser::RBRACKET); break; } @@ -6362,12 +6299,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(747); + setState(742); if (!(precpred(_ctx, 20))) throw FailedPredicateException(this, "precpred(_ctx, 20)"); - setState(748); + setState(743); match(HogQLParser::DOT); - setState(749); + setState(744); match(HogQLParser::DECIMAL_LITERAL); break; } @@ -6376,12 +6313,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(750); + setState(745); if (!(precpred(_ctx, 19))) throw FailedPredicateException(this, "precpred(_ctx, 19)"); - setState(751); + setState(746); match(HogQLParser::DOT); - setState(752); + setState(747); identifier(); break; } @@ -6390,20 +6327,20 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(753); + setState(748); if (!(precpred(_ctx, 14))) throw FailedPredicateException(this, "precpred(_ctx, 14)"); - setState(754); + setState(749); match(HogQLParser::IS); - setState(756); + setState(751); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::NOT) { - setState(755); + setState(750); match(HogQLParser::NOT); } - setState(758); + setState(753); match(HogQLParser::NULL_SQL); break; } @@ -6412,30 +6349,30 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleColumnExpr); - setState(759); + setState(754); if (!(precpred(_ctx, 7))) throw FailedPredicateException(this, "precpred(_ctx, 7)"); - setState(765); + setState(760); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 90, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 89, _ctx)) { case 1: { - setState(760); + setState(755); alias(); break; } case 2: { - setState(761); + setState(756); match(HogQLParser::AS); - setState(762); + setState(757); identifier(); break; } case 3: { - setState(763); + setState(758); match(HogQLParser::AS); - setState(764); + setState(759); match(HogQLParser::STRING_LITERAL); break; } @@ -6450,9 +6387,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) { break; } } - setState(771); + setState(766); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 92, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 91, _ctx); } } catch (RecognitionException &e) { @@ -6500,7 +6437,7 @@ std::any HogQLParser::ColumnArgListContext::accept(tree::ParseTreeVisitor *visit HogQLParser::ColumnArgListContext* HogQLParser::columnArgList() { ColumnArgListContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 78, HogQLParser::RuleColumnArgList); + enterRule(_localctx, 76, HogQLParser::RuleColumnArgList); size_t _la = 0; #if __cplusplus > 201703L @@ -6512,17 +6449,17 @@ HogQLParser::ColumnArgListContext* HogQLParser::columnArgList() { }); try { enterOuterAlt(_localctx, 1); - setState(772); + setState(767); columnArgExpr(); - setState(777); + setState(772); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(773); + setState(768); match(HogQLParser::COMMA); - setState(774); + setState(769); columnArgExpr(); - setState(779); + setState(774); _errHandler->sync(this); _la = _input->LA(1); } @@ -6566,7 +6503,7 @@ std::any HogQLParser::ColumnArgExprContext::accept(tree::ParseTreeVisitor *visit HogQLParser::ColumnArgExprContext* HogQLParser::columnArgExpr() { ColumnArgExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 80, HogQLParser::RuleColumnArgExpr); + enterRule(_localctx, 78, HogQLParser::RuleColumnArgExpr); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -6576,19 +6513,19 @@ HogQLParser::ColumnArgExprContext* HogQLParser::columnArgExpr() { exitRule(); }); try { - setState(782); + setState(777); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 94, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 93, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(780); + setState(775); columnLambdaExpr(); break; } case 2: { enterOuterAlt(_localctx, 2); - setState(781); + setState(776); columnExpr(0); break; } @@ -6660,7 +6597,7 @@ std::any HogQLParser::ColumnLambdaExprContext::accept(tree::ParseTreeVisitor *vi HogQLParser::ColumnLambdaExprContext* HogQLParser::columnLambdaExpr() { ColumnLambdaExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 82, HogQLParser::RuleColumnLambdaExpr); + enterRule(_localctx, 80, HogQLParser::RuleColumnLambdaExpr); size_t _la = 0; #if __cplusplus > 201703L @@ -6672,27 +6609,27 @@ HogQLParser::ColumnLambdaExprContext* HogQLParser::columnLambdaExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(803); + setState(798); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::LPAREN: { - setState(784); + setState(779); match(HogQLParser::LPAREN); - setState(785); + setState(780); identifier(); - setState(790); + setState(785); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(786); + setState(781); match(HogQLParser::COMMA); - setState(787); + setState(782); identifier(); - setState(792); + setState(787); _errHandler->sync(this); _la = _input->LA(1); } - setState(793); + setState(788); match(HogQLParser::RPAREN); break; } @@ -6884,17 +6821,17 @@ HogQLParser::ColumnLambdaExprContext* HogQLParser::columnLambdaExpr() { case HogQLParser::JSON_FALSE: case HogQLParser::JSON_TRUE: case HogQLParser::IDENTIFIER: { - setState(795); + setState(790); identifier(); - setState(800); + setState(795); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(796); + setState(791); match(HogQLParser::COMMA); - setState(797); + setState(792); identifier(); - setState(802); + setState(797); _errHandler->sync(this); _la = _input->LA(1); } @@ -6904,9 +6841,9 @@ HogQLParser::ColumnLambdaExprContext* HogQLParser::columnLambdaExpr() { default: throw NoViableAltException(this); } - setState(805); + setState(800); match(HogQLParser::ARROW); - setState(806); + setState(801); columnExpr(0); } @@ -7022,7 +6959,7 @@ std::any HogQLParser::HogqlxTagElementNestedContext::accept(tree::ParseTreeVisit } HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() { HogqlxTagElementContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 84, HogQLParser::RuleHogqlxTagElement); + enterRule(_localctx, 82, HogQLParser::RuleHogqlxTagElement); size_t _la = 0; #if __cplusplus > 201703L @@ -7033,17 +6970,17 @@ HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() { exitRule(); }); try { - setState(836); + setState(831); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 101, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 100, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 1); - setState(808); + setState(803); match(HogQLParser::LT); - setState(809); + setState(804); identifier(); - setState(813); + setState(808); _errHandler->sync(this); _la = _input->LA(1); while ((((_la & ~ 0x3fULL) == 0) && @@ -7052,15 +6989,15 @@ HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() { ((1ULL << (_la - 128)) & -9) != 0) || _la == HogQLParser::JSON_TRUE || _la == HogQLParser::IDENTIFIER) { - setState(810); + setState(805); hogqlxTagAttribute(); - setState(815); + setState(810); _errHandler->sync(this); _la = _input->LA(1); } - setState(816); + setState(811); match(HogQLParser::SLASH); - setState(817); + setState(812); match(HogQLParser::GT); break; } @@ -7068,11 +7005,11 @@ HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() { case 2: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 2); - setState(819); + setState(814); match(HogQLParser::LT); - setState(820); + setState(815); identifier(); - setState(824); + setState(819); _errHandler->sync(this); _la = _input->LA(1); while ((((_la & ~ 0x3fULL) == 0) && @@ -7081,20 +7018,20 @@ HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() { ((1ULL << (_la - 128)) & -9) != 0) || _la == HogQLParser::JSON_TRUE || _la == HogQLParser::IDENTIFIER) { - setState(821); + setState(816); hogqlxTagAttribute(); - setState(826); + setState(821); _errHandler->sync(this); _la = _input->LA(1); } - setState(827); + setState(822); match(HogQLParser::GT); - setState(829); + setState(824); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 100, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 99, _ctx)) { case 1: { - setState(828); + setState(823); hogqlxTagElement(); break; } @@ -7102,13 +7039,13 @@ HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() { default: break; } - setState(831); + setState(826); match(HogQLParser::LT); - setState(832); + setState(827); match(HogQLParser::SLASH); - setState(833); + setState(828); identifier(); - setState(834); + setState(829); match(HogQLParser::GT); break; } @@ -7172,7 +7109,7 @@ std::any HogQLParser::HogqlxTagAttributeContext::accept(tree::ParseTreeVisitor * HogQLParser::HogqlxTagAttributeContext* HogQLParser::hogqlxTagAttribute() { HogqlxTagAttributeContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 86, HogQLParser::RuleHogqlxTagAttribute); + enterRule(_localctx, 84, HogQLParser::RuleHogqlxTagAttribute); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -7182,38 +7119,38 @@ HogQLParser::HogqlxTagAttributeContext* HogQLParser::hogqlxTagAttribute() { exitRule(); }); try { - setState(849); + setState(844); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 102, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 101, _ctx)) { case 1: { enterOuterAlt(_localctx, 1); - setState(838); + setState(833); identifier(); - setState(839); + setState(834); match(HogQLParser::EQ_SINGLE); - setState(840); + setState(835); match(HogQLParser::STRING_LITERAL); break; } case 2: { enterOuterAlt(_localctx, 2); - setState(842); + setState(837); identifier(); - setState(843); + setState(838); match(HogQLParser::EQ_SINGLE); - setState(844); + setState(839); match(HogQLParser::LBRACE); - setState(845); + setState(840); columnExpr(0); - setState(846); + setState(841); match(HogQLParser::RBRACE); break; } case 3: { enterOuterAlt(_localctx, 3); - setState(848); + setState(843); identifier(); break; } @@ -7269,7 +7206,7 @@ std::any HogQLParser::WithExprListContext::accept(tree::ParseTreeVisitor *visito HogQLParser::WithExprListContext* HogQLParser::withExprList() { WithExprListContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 88, HogQLParser::RuleWithExprList); + enterRule(_localctx, 86, HogQLParser::RuleWithExprList); size_t _la = 0; #if __cplusplus > 201703L @@ -7281,17 +7218,17 @@ HogQLParser::WithExprListContext* HogQLParser::withExprList() { }); try { enterOuterAlt(_localctx, 1); - setState(851); + setState(846); withExpr(); - setState(856); + setState(851); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(852); + setState(847); match(HogQLParser::COMMA); - setState(853); + setState(848); withExpr(); - setState(858); + setState(853); _errHandler->sync(this); _la = _input->LA(1); } @@ -7377,7 +7314,7 @@ std::any HogQLParser::WithExprSubqueryContext::accept(tree::ParseTreeVisitor *vi } HogQLParser::WithExprContext* HogQLParser::withExpr() { WithExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 90, HogQLParser::RuleWithExpr); + enterRule(_localctx, 88, HogQLParser::RuleWithExpr); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -7387,21 +7324,21 @@ HogQLParser::WithExprContext* HogQLParser::withExpr() { exitRule(); }); try { - setState(869); + setState(864); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 104, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 103, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 1); - setState(859); + setState(854); identifier(); - setState(860); + setState(855); match(HogQLParser::AS); - setState(861); + setState(856); match(HogQLParser::LPAREN); - setState(862); + setState(857); selectUnionStmt(); - setState(863); + setState(858); match(HogQLParser::RPAREN); break; } @@ -7409,11 +7346,11 @@ HogQLParser::WithExprContext* HogQLParser::withExpr() { case 2: { _localctx = _tracker.createInstance(_localctx); enterOuterAlt(_localctx, 2); - setState(865); + setState(860); columnExpr(0); - setState(866); + setState(861); match(HogQLParser::AS); - setState(867); + setState(862); identifier(); break; } @@ -7469,7 +7406,7 @@ std::any HogQLParser::ColumnIdentifierContext::accept(tree::ParseTreeVisitor *vi HogQLParser::ColumnIdentifierContext* HogQLParser::columnIdentifier() { ColumnIdentifierContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 92, HogQLParser::RuleColumnIdentifier); + enterRule(_localctx, 90, HogQLParser::RuleColumnIdentifier); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -7479,12 +7416,12 @@ HogQLParser::ColumnIdentifierContext* HogQLParser::columnIdentifier() { exitRule(); }); try { - setState(878); + setState(873); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::LBRACE: { enterOuterAlt(_localctx, 1); - setState(871); + setState(866); placeholder(); break; } @@ -7677,14 +7614,14 @@ HogQLParser::ColumnIdentifierContext* HogQLParser::columnIdentifier() { case HogQLParser::JSON_TRUE: case HogQLParser::IDENTIFIER: { enterOuterAlt(_localctx, 2); - setState(875); + setState(870); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 105, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 104, _ctx)) { case 1: { - setState(872); + setState(867); tableIdentifier(); - setState(873); + setState(868); match(HogQLParser::DOT); break; } @@ -7692,7 +7629,7 @@ HogQLParser::ColumnIdentifierContext* HogQLParser::columnIdentifier() { default: break; } - setState(877); + setState(872); nestedIdentifier(); break; } @@ -7748,7 +7685,7 @@ std::any HogQLParser::NestedIdentifierContext::accept(tree::ParseTreeVisitor *vi HogQLParser::NestedIdentifierContext* HogQLParser::nestedIdentifier() { NestedIdentifierContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 94, HogQLParser::RuleNestedIdentifier); + enterRule(_localctx, 92, HogQLParser::RuleNestedIdentifier); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -7760,21 +7697,21 @@ HogQLParser::NestedIdentifierContext* HogQLParser::nestedIdentifier() { try { size_t alt; enterOuterAlt(_localctx, 1); - setState(880); + setState(875); identifier(); - setState(885); + setState(880); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 107, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 106, _ctx); while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) { if (alt == 1) { - setState(881); + setState(876); match(HogQLParser::DOT); - setState(882); + setState(877); identifier(); } - setState(887); + setState(882); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 107, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 106, _ctx); } } @@ -7923,8 +7860,8 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { HogQLParser::TableExprContext *_localctx = _tracker.createInstance(_ctx, parentState); HogQLParser::TableExprContext *previousContext = _localctx; (void)previousContext; // Silence compiler, in case the context is not used by generated code. - size_t startState = 96; - enterRecursionRule(_localctx, 96, HogQLParser::RuleTableExpr, precedence); + size_t startState = 94; + enterRecursionRule(_localctx, 94, HogQLParser::RuleTableExpr, precedence); @@ -7938,15 +7875,15 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { try { size_t alt; enterOuterAlt(_localctx, 1); - setState(897); + setState(892); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 108, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 107, _ctx)) { case 1: { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(889); + setState(884); tableIdentifier(); break; } @@ -7955,7 +7892,7 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(890); + setState(885); tableFunctionExpr(); break; } @@ -7964,11 +7901,11 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(891); + setState(886); match(HogQLParser::LPAREN); - setState(892); + setState(887); selectUnionStmt(); - setState(893); + setState(888); match(HogQLParser::RPAREN); break; } @@ -7977,7 +7914,7 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(895); + setState(890); hogqlxTagElement(); break; } @@ -7986,7 +7923,7 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { _localctx = _tracker.createInstance(_localctx); _ctx = _localctx; previousContext = _localctx; - setState(896); + setState(891); placeholder(); break; } @@ -7995,9 +7932,9 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { break; } _ctx->stop = _input->LT(-1); - setState(907); + setState(902); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 110, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 109, _ctx); while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) { if (alt == 1) { if (!_parseListeners.empty()) @@ -8006,10 +7943,10 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { auto newContext = _tracker.createInstance(_tracker.createInstance(parentContext, parentState)); _localctx = newContext; pushNewRecursionContext(newContext, startState, RuleTableExpr); - setState(899); + setState(894); if (!(precpred(_ctx, 3))) throw FailedPredicateException(this, "precpred(_ctx, 3)"); - setState(903); + setState(898); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::DATE: @@ -8017,15 +7954,15 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { case HogQLParser::ID: case HogQLParser::KEY: case HogQLParser::IDENTIFIER: { - setState(900); + setState(895); alias(); break; } case HogQLParser::AS: { - setState(901); + setState(896); match(HogQLParser::AS); - setState(902); + setState(897); identifier(); break; } @@ -8034,9 +7971,9 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) { throw NoViableAltException(this); } } - setState(909); + setState(904); _errHandler->sync(this); - alt = getInterpreter()->adaptivePredict(_input, 110, _ctx); + alt = getInterpreter()->adaptivePredict(_input, 109, _ctx); } } catch (RecognitionException &e) { @@ -8084,7 +8021,7 @@ std::any HogQLParser::TableFunctionExprContext::accept(tree::ParseTreeVisitor *v HogQLParser::TableFunctionExprContext* HogQLParser::tableFunctionExpr() { TableFunctionExprContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 98, HogQLParser::RuleTableFunctionExpr); + enterRule(_localctx, 96, HogQLParser::RuleTableFunctionExpr); size_t _la = 0; #if __cplusplus > 201703L @@ -8096,11 +8033,11 @@ HogQLParser::TableFunctionExprContext* HogQLParser::tableFunctionExpr() { }); try { enterOuterAlt(_localctx, 1); - setState(910); + setState(905); identifier(); - setState(911); + setState(906); match(HogQLParser::LPAREN); - setState(913); + setState(908); _errHandler->sync(this); _la = _input->LA(1); @@ -8109,10 +8046,10 @@ HogQLParser::TableFunctionExprContext* HogQLParser::tableFunctionExpr() { ((1ULL << (_la - 64)) & -1) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 128)) & -9) != 0) || ((((_la - 192) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 192)) & 70263309817) != 0)) { - setState(912); + setState(907); tableArgList(); } - setState(915); + setState(910); match(HogQLParser::RPAREN); } @@ -8158,7 +8095,7 @@ std::any HogQLParser::TableIdentifierContext::accept(tree::ParseTreeVisitor *vis HogQLParser::TableIdentifierContext* HogQLParser::tableIdentifier() { TableIdentifierContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 100, HogQLParser::RuleTableIdentifier); + enterRule(_localctx, 98, HogQLParser::RuleTableIdentifier); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -8169,14 +8106,14 @@ HogQLParser::TableIdentifierContext* HogQLParser::tableIdentifier() { }); try { enterOuterAlt(_localctx, 1); - setState(920); + setState(915); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 112, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 111, _ctx)) { case 1: { - setState(917); + setState(912); databaseIdentifier(); - setState(918); + setState(913); match(HogQLParser::DOT); break; } @@ -8184,7 +8121,7 @@ HogQLParser::TableIdentifierContext* HogQLParser::tableIdentifier() { default: break; } - setState(922); + setState(917); identifier(); } @@ -8234,7 +8171,7 @@ std::any HogQLParser::TableArgListContext::accept(tree::ParseTreeVisitor *visito HogQLParser::TableArgListContext* HogQLParser::tableArgList() { TableArgListContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 102, HogQLParser::RuleTableArgList); + enterRule(_localctx, 100, HogQLParser::RuleTableArgList); size_t _la = 0; #if __cplusplus > 201703L @@ -8246,17 +8183,17 @@ HogQLParser::TableArgListContext* HogQLParser::tableArgList() { }); try { enterOuterAlt(_localctx, 1); - setState(924); + setState(919); columnExpr(0); - setState(929); + setState(924); _errHandler->sync(this); _la = _input->LA(1); while (_la == HogQLParser::COMMA) { - setState(925); + setState(920); match(HogQLParser::COMMA); - setState(926); + setState(921); columnExpr(0); - setState(931); + setState(926); _errHandler->sync(this); _la = _input->LA(1); } @@ -8296,7 +8233,7 @@ std::any HogQLParser::DatabaseIdentifierContext::accept(tree::ParseTreeVisitor * HogQLParser::DatabaseIdentifierContext* HogQLParser::databaseIdentifier() { DatabaseIdentifierContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 104, HogQLParser::RuleDatabaseIdentifier); + enterRule(_localctx, 102, HogQLParser::RuleDatabaseIdentifier); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -8307,7 +8244,7 @@ HogQLParser::DatabaseIdentifierContext* HogQLParser::databaseIdentifier() { }); try { enterOuterAlt(_localctx, 1); - setState(932); + setState(927); identifier(); } @@ -8361,7 +8298,7 @@ std::any HogQLParser::FloatingLiteralContext::accept(tree::ParseTreeVisitor *vis HogQLParser::FloatingLiteralContext* HogQLParser::floatingLiteral() { FloatingLiteralContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 106, HogQLParser::RuleFloatingLiteral); + enterRule(_localctx, 104, HogQLParser::RuleFloatingLiteral); size_t _la = 0; #if __cplusplus > 201703L @@ -8372,21 +8309,21 @@ HogQLParser::FloatingLiteralContext* HogQLParser::floatingLiteral() { exitRule(); }); try { - setState(942); + setState(937); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::FLOATING_LITERAL: { enterOuterAlt(_localctx, 1); - setState(934); + setState(929); match(HogQLParser::FLOATING_LITERAL); break; } case HogQLParser::DOT: { enterOuterAlt(_localctx, 2); - setState(935); + setState(930); match(HogQLParser::DOT); - setState(936); + setState(931); _la = _input->LA(1); if (!(_la == HogQLParser::OCTAL_LITERAL @@ -8402,16 +8339,16 @@ HogQLParser::FloatingLiteralContext* HogQLParser::floatingLiteral() { case HogQLParser::DECIMAL_LITERAL: { enterOuterAlt(_localctx, 3); - setState(937); + setState(932); match(HogQLParser::DECIMAL_LITERAL); - setState(938); + setState(933); match(HogQLParser::DOT); - setState(940); + setState(935); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 114, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 113, _ctx)) { case 1: { - setState(939); + setState(934); _la = _input->LA(1); if (!(_la == HogQLParser::OCTAL_LITERAL @@ -8498,7 +8435,7 @@ std::any HogQLParser::NumberLiteralContext::accept(tree::ParseTreeVisitor *visit HogQLParser::NumberLiteralContext* HogQLParser::numberLiteral() { NumberLiteralContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 108, HogQLParser::RuleNumberLiteral); + enterRule(_localctx, 106, HogQLParser::RuleNumberLiteral); size_t _la = 0; #if __cplusplus > 201703L @@ -8510,14 +8447,14 @@ HogQLParser::NumberLiteralContext* HogQLParser::numberLiteral() { }); try { enterOuterAlt(_localctx, 1); - setState(945); + setState(940); _errHandler->sync(this); _la = _input->LA(1); if (_la == HogQLParser::DASH || _la == HogQLParser::PLUS) { - setState(944); + setState(939); _la = _input->LA(1); if (!(_la == HogQLParser::DASH @@ -8529,41 +8466,41 @@ HogQLParser::NumberLiteralContext* HogQLParser::numberLiteral() { consume(); } } - setState(953); + setState(948); _errHandler->sync(this); - switch (getInterpreter()->adaptivePredict(_input, 117, _ctx)) { + switch (getInterpreter()->adaptivePredict(_input, 116, _ctx)) { case 1: { - setState(947); + setState(942); floatingLiteral(); break; } case 2: { - setState(948); + setState(943); match(HogQLParser::OCTAL_LITERAL); break; } case 3: { - setState(949); + setState(944); match(HogQLParser::DECIMAL_LITERAL); break; } case 4: { - setState(950); + setState(945); match(HogQLParser::HEXADECIMAL_LITERAL); break; } case 5: { - setState(951); + setState(946); match(HogQLParser::INF); break; } case 6: { - setState(952); + setState(947); match(HogQLParser::NAN_SQL); break; } @@ -8615,7 +8552,7 @@ std::any HogQLParser::LiteralContext::accept(tree::ParseTreeVisitor *visitor) { HogQLParser::LiteralContext* HogQLParser::literal() { LiteralContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 110, HogQLParser::RuleLiteral); + enterRule(_localctx, 108, HogQLParser::RuleLiteral); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -8625,7 +8562,7 @@ HogQLParser::LiteralContext* HogQLParser::literal() { exitRule(); }); try { - setState(958); + setState(953); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::INF: @@ -8638,21 +8575,21 @@ HogQLParser::LiteralContext* HogQLParser::literal() { case HogQLParser::DOT: case HogQLParser::PLUS: { enterOuterAlt(_localctx, 1); - setState(955); + setState(950); numberLiteral(); break; } case HogQLParser::STRING_LITERAL: { enterOuterAlt(_localctx, 2); - setState(956); + setState(951); match(HogQLParser::STRING_LITERAL); break; } case HogQLParser::NULL_SQL: { enterOuterAlt(_localctx, 3); - setState(957); + setState(952); match(HogQLParser::NULL_SQL); break; } @@ -8724,7 +8661,7 @@ std::any HogQLParser::IntervalContext::accept(tree::ParseTreeVisitor *visitor) { HogQLParser::IntervalContext* HogQLParser::interval() { IntervalContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 112, HogQLParser::RuleInterval); + enterRule(_localctx, 110, HogQLParser::RuleInterval); size_t _la = 0; #if __cplusplus > 201703L @@ -8736,7 +8673,7 @@ HogQLParser::IntervalContext* HogQLParser::interval() { }); try { enterOuterAlt(_localctx, 1); - setState(960); + setState(955); _la = _input->LA(1); if (!(_la == HogQLParser::DAY || ((((_la - 76) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 76)) & 72057615512764417) != 0) || ((((_la - 145) & ~ 0x3fULL) == 0) && @@ -9491,7 +9428,7 @@ std::any HogQLParser::KeywordContext::accept(tree::ParseTreeVisitor *visitor) { HogQLParser::KeywordContext* HogQLParser::keyword() { KeywordContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 114, HogQLParser::RuleKeyword); + enterRule(_localctx, 112, HogQLParser::RuleKeyword); size_t _la = 0; #if __cplusplus > 201703L @@ -9503,7 +9440,7 @@ HogQLParser::KeywordContext* HogQLParser::keyword() { }); try { enterOuterAlt(_localctx, 1); - setState(962); + setState(957); _la = _input->LA(1); if (!(((((_la - 2) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 2)) & -34368126977) != 0) || ((((_la - 66) & ~ 0x3fULL) == 0) && @@ -9563,7 +9500,7 @@ std::any HogQLParser::KeywordForAliasContext::accept(tree::ParseTreeVisitor *vis HogQLParser::KeywordForAliasContext* HogQLParser::keywordForAlias() { KeywordForAliasContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 116, HogQLParser::RuleKeywordForAlias); + enterRule(_localctx, 114, HogQLParser::RuleKeywordForAlias); size_t _la = 0; #if __cplusplus > 201703L @@ -9575,7 +9512,7 @@ HogQLParser::KeywordForAliasContext* HogQLParser::keywordForAlias() { }); try { enterOuterAlt(_localctx, 1); - setState(964); + setState(959); _la = _input->LA(1); if (!(((((_la - 36) & ~ 0x3fULL) == 0) && ((1ULL << (_la - 36)) & 36030996109328385) != 0))) { @@ -9625,7 +9562,7 @@ std::any HogQLParser::AliasContext::accept(tree::ParseTreeVisitor *visitor) { HogQLParser::AliasContext* HogQLParser::alias() { AliasContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 118, HogQLParser::RuleAlias); + enterRule(_localctx, 116, HogQLParser::RuleAlias); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -9635,12 +9572,12 @@ HogQLParser::AliasContext* HogQLParser::alias() { exitRule(); }); try { - setState(968); + setState(963); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::IDENTIFIER: { enterOuterAlt(_localctx, 1); - setState(966); + setState(961); match(HogQLParser::IDENTIFIER); break; } @@ -9650,7 +9587,7 @@ HogQLParser::AliasContext* HogQLParser::alias() { case HogQLParser::ID: case HogQLParser::KEY: { enterOuterAlt(_localctx, 2); - setState(967); + setState(962); keywordForAlias(); break; } @@ -9702,7 +9639,7 @@ std::any HogQLParser::IdentifierContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::IdentifierContext* HogQLParser::identifier() { IdentifierContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 120, HogQLParser::RuleIdentifier); + enterRule(_localctx, 118, HogQLParser::RuleIdentifier); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -9712,12 +9649,12 @@ HogQLParser::IdentifierContext* HogQLParser::identifier() { exitRule(); }); try { - setState(973); + setState(968); _errHandler->sync(this); switch (_input->LA(1)) { case HogQLParser::IDENTIFIER: { enterOuterAlt(_localctx, 1); - setState(970); + setState(965); match(HogQLParser::IDENTIFIER); break; } @@ -9731,7 +9668,7 @@ HogQLParser::IdentifierContext* HogQLParser::identifier() { case HogQLParser::WEEK: case HogQLParser::YEAR: { enterOuterAlt(_localctx, 2); - setState(971); + setState(966); interval(); break; } @@ -9915,7 +9852,7 @@ HogQLParser::IdentifierContext* HogQLParser::identifier() { case HogQLParser::JSON_FALSE: case HogQLParser::JSON_TRUE: { enterOuterAlt(_localctx, 3); - setState(972); + setState(967); keyword(); break; } @@ -9967,7 +9904,7 @@ std::any HogQLParser::EnumValueContext::accept(tree::ParseTreeVisitor *visitor) HogQLParser::EnumValueContext* HogQLParser::enumValue() { EnumValueContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 122, HogQLParser::RuleEnumValue); + enterRule(_localctx, 120, HogQLParser::RuleEnumValue); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -9978,11 +9915,11 @@ HogQLParser::EnumValueContext* HogQLParser::enumValue() { }); try { enterOuterAlt(_localctx, 1); - setState(975); + setState(970); match(HogQLParser::STRING_LITERAL); - setState(976); + setState(971); match(HogQLParser::EQ_SINGLE); - setState(977); + setState(972); numberLiteral(); } @@ -10028,7 +9965,7 @@ std::any HogQLParser::PlaceholderContext::accept(tree::ParseTreeVisitor *visitor HogQLParser::PlaceholderContext* HogQLParser::placeholder() { PlaceholderContext *_localctx = _tracker.createInstance(_ctx, getState()); - enterRule(_localctx, 124, HogQLParser::RulePlaceholder); + enterRule(_localctx, 122, HogQLParser::RulePlaceholder); #if __cplusplus > 201703L auto onExit = finally([=, this] { @@ -10039,11 +9976,11 @@ HogQLParser::PlaceholderContext* HogQLParser::placeholder() { }); try { enterOuterAlt(_localctx, 1); - setState(979); + setState(974); match(HogQLParser::LBRACE); - setState(980); + setState(975); identifier(); - setState(981); + setState(976); match(HogQLParser::RBRACE); } @@ -10058,9 +9995,9 @@ HogQLParser::PlaceholderContext* HogQLParser::placeholder() { bool HogQLParser::sempred(RuleContext *context, size_t ruleIndex, size_t predicateIndex) { switch (ruleIndex) { - case 19: return joinExprSempred(antlrcpp::downCast(context), predicateIndex); - case 38: return columnExprSempred(antlrcpp::downCast(context), predicateIndex); - case 48: return tableExprSempred(antlrcpp::downCast(context), predicateIndex); + case 18: return joinExprSempred(antlrcpp::downCast(context), predicateIndex); + case 37: return columnExprSempred(antlrcpp::downCast(context), predicateIndex); + case 47: return tableExprSempred(antlrcpp::downCast(context), predicateIndex); default: break; diff --git a/hogql_parser/HogQLParser.h b/hogql_parser/HogQLParser.h index 13ac167c0e24f..49c38fad2be89 100644 --- a/hogql_parser/HogQLParser.h +++ b/hogql_parser/HogQLParser.h @@ -62,24 +62,24 @@ class HogQLParser : public antlr4::Parser { enum { RuleSelect = 0, RuleSelectUnionStmt = 1, RuleSelectStmtWithParens = 2, - RuleSelectStmtWithPlaceholder = 3, RuleSelectStmt = 4, RuleWithClause = 5, - RuleTopClause = 6, RuleFromClause = 7, RuleArrayJoinClause = 8, RuleWindowClause = 9, - RulePrewhereClause = 10, RuleWhereClause = 11, RuleGroupByClause = 12, - RuleHavingClause = 13, RuleOrderByClause = 14, RuleProjectionOrderByClause = 15, - RuleLimitAndOffsetClause = 16, RuleOffsetOnlyClause = 17, RuleSettingsClause = 18, - RuleJoinExpr = 19, RuleJoinOp = 20, RuleJoinOpCross = 21, RuleJoinConstraintClause = 22, - RuleSampleClause = 23, RuleOrderExprList = 24, RuleOrderExpr = 25, RuleRatioExpr = 26, - RuleSettingExprList = 27, RuleSettingExpr = 28, RuleWindowExpr = 29, - RuleWinPartitionByClause = 30, RuleWinOrderByClause = 31, RuleWinFrameClause = 32, - RuleWinFrameExtend = 33, RuleWinFrameBound = 34, RuleExpr = 35, RuleColumnTypeExpr = 36, - RuleColumnExprList = 37, RuleColumnExpr = 38, RuleColumnArgList = 39, - RuleColumnArgExpr = 40, RuleColumnLambdaExpr = 41, RuleHogqlxTagElement = 42, - RuleHogqlxTagAttribute = 43, RuleWithExprList = 44, RuleWithExpr = 45, - RuleColumnIdentifier = 46, RuleNestedIdentifier = 47, RuleTableExpr = 48, - RuleTableFunctionExpr = 49, RuleTableIdentifier = 50, RuleTableArgList = 51, - RuleDatabaseIdentifier = 52, RuleFloatingLiteral = 53, RuleNumberLiteral = 54, - RuleLiteral = 55, RuleInterval = 56, RuleKeyword = 57, RuleKeywordForAlias = 58, - RuleAlias = 59, RuleIdentifier = 60, RuleEnumValue = 61, RulePlaceholder = 62 + RuleSelectStmt = 3, RuleWithClause = 4, RuleTopClause = 5, RuleFromClause = 6, + RuleArrayJoinClause = 7, RuleWindowClause = 8, RulePrewhereClause = 9, + RuleWhereClause = 10, RuleGroupByClause = 11, RuleHavingClause = 12, + RuleOrderByClause = 13, RuleProjectionOrderByClause = 14, RuleLimitAndOffsetClause = 15, + RuleOffsetOnlyClause = 16, RuleSettingsClause = 17, RuleJoinExpr = 18, + RuleJoinOp = 19, RuleJoinOpCross = 20, RuleJoinConstraintClause = 21, + RuleSampleClause = 22, RuleOrderExprList = 23, RuleOrderExpr = 24, RuleRatioExpr = 25, + RuleSettingExprList = 26, RuleSettingExpr = 27, RuleWindowExpr = 28, + RuleWinPartitionByClause = 29, RuleWinOrderByClause = 30, RuleWinFrameClause = 31, + RuleWinFrameExtend = 32, RuleWinFrameBound = 33, RuleExpr = 34, RuleColumnTypeExpr = 35, + RuleColumnExprList = 36, RuleColumnExpr = 37, RuleColumnArgList = 38, + RuleColumnArgExpr = 39, RuleColumnLambdaExpr = 40, RuleHogqlxTagElement = 41, + RuleHogqlxTagAttribute = 42, RuleWithExprList = 43, RuleWithExpr = 44, + RuleColumnIdentifier = 45, RuleNestedIdentifier = 46, RuleTableExpr = 47, + RuleTableFunctionExpr = 48, RuleTableIdentifier = 49, RuleTableArgList = 50, + RuleDatabaseIdentifier = 51, RuleFloatingLiteral = 52, RuleNumberLiteral = 53, + RuleLiteral = 54, RuleInterval = 55, RuleKeyword = 56, RuleKeywordForAlias = 57, + RuleAlias = 58, RuleIdentifier = 59, RuleEnumValue = 60, RulePlaceholder = 61 }; explicit HogQLParser(antlr4::TokenStream *input); @@ -102,7 +102,6 @@ class HogQLParser : public antlr4::Parser { class SelectContext; class SelectUnionStmtContext; class SelectStmtWithParensContext; - class SelectStmtWithPlaceholderContext; class SelectStmtContext; class WithClauseContext; class TopClauseContext; @@ -201,23 +200,10 @@ class HogQLParser : public antlr4::Parser { public: SelectStmtWithParensContext(antlr4::ParserRuleContext *parent, size_t invokingState); virtual size_t getRuleIndex() const override; - SelectStmtWithPlaceholderContext *selectStmtWithPlaceholder(); + SelectStmtContext *selectStmt(); antlr4::tree::TerminalNode *LPAREN(); SelectUnionStmtContext *selectUnionStmt(); antlr4::tree::TerminalNode *RPAREN(); - - - virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override; - - }; - - SelectStmtWithParensContext* selectStmtWithParens(); - - class SelectStmtWithPlaceholderContext : public antlr4::ParserRuleContext { - public: - SelectStmtWithPlaceholderContext(antlr4::ParserRuleContext *parent, size_t invokingState); - virtual size_t getRuleIndex() const override; - SelectStmtContext *selectStmt(); PlaceholderContext *placeholder(); @@ -225,7 +211,7 @@ class HogQLParser : public antlr4::Parser { }; - SelectStmtWithPlaceholderContext* selectStmtWithPlaceholder(); + SelectStmtWithParensContext* selectStmtWithParens(); class SelectStmtContext : public antlr4::ParserRuleContext { public: diff --git a/hogql_parser/HogQLParser.interp b/hogql_parser/HogQLParser.interp index f056763eb8201..2b24b72a2819d 100644 --- a/hogql_parser/HogQLParser.interp +++ b/hogql_parser/HogQLParser.interp @@ -492,7 +492,6 @@ rule names: select selectUnionStmt selectStmtWithParens -selectStmtWithPlaceholder selectStmt withClause topClause @@ -555,4 +554,4 @@ placeholder atn: -[4, 1, 242, 984, 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, 1, 0, 1, 0, 1, 0, 3, 0, 130, 8, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 138, 8, 1, 10, 1, 12, 1, 141, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 148, 8, 2, 1, 3, 1, 3, 3, 3, 152, 8, 3, 1, 4, 3, 4, 155, 8, 4, 1, 4, 1, 4, 3, 4, 159, 8, 4, 1, 4, 3, 4, 162, 8, 4, 1, 4, 1, 4, 3, 4, 166, 8, 4, 1, 4, 3, 4, 169, 8, 4, 1, 4, 3, 4, 172, 8, 4, 1, 4, 3, 4, 175, 8, 4, 1, 4, 3, 4, 178, 8, 4, 1, 4, 1, 4, 3, 4, 182, 8, 4, 1, 4, 1, 4, 3, 4, 186, 8, 4, 1, 4, 3, 4, 189, 8, 4, 1, 4, 3, 4, 192, 8, 4, 1, 4, 3, 4, 195, 8, 4, 1, 4, 1, 4, 3, 4, 199, 8, 4, 1, 4, 3, 4, 202, 8, 4, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 211, 8, 6, 1, 7, 1, 7, 1, 7, 1, 8, 3, 8, 217, 8, 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, 9, 1, 9, 1, 9, 5, 9, 236, 8, 9, 10, 9, 12, 9, 239, 9, 9, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 255, 8, 12, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 272, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 278, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 284, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 295, 8, 16, 3, 16, 297, 8, 16, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 3, 19, 308, 8, 19, 1, 19, 3, 19, 311, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 317, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 325, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 5, 19, 331, 8, 19, 10, 19, 12, 19, 334, 9, 19, 1, 20, 3, 20, 337, 8, 20, 1, 20, 1, 20, 1, 20, 3, 20, 342, 8, 20, 1, 20, 3, 20, 345, 8, 20, 1, 20, 3, 20, 348, 8, 20, 1, 20, 1, 20, 3, 20, 352, 8, 20, 1, 20, 1, 20, 3, 20, 356, 8, 20, 1, 20, 3, 20, 359, 8, 20, 3, 20, 361, 8, 20, 1, 20, 3, 20, 364, 8, 20, 1, 20, 1, 20, 3, 20, 368, 8, 20, 1, 20, 1, 20, 3, 20, 372, 8, 20, 1, 20, 3, 20, 375, 8, 20, 3, 20, 377, 8, 20, 3, 20, 379, 8, 20, 1, 21, 1, 21, 1, 21, 3, 21, 384, 8, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 395, 8, 22, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 401, 8, 23, 1, 24, 1, 24, 1, 24, 5, 24, 406, 8, 24, 10, 24, 12, 24, 409, 9, 24, 1, 25, 1, 25, 3, 25, 413, 8, 25, 1, 25, 1, 25, 3, 25, 417, 8, 25, 1, 25, 1, 25, 3, 25, 421, 8, 25, 1, 26, 1, 26, 1, 26, 1, 26, 3, 26, 427, 8, 26, 3, 26, 429, 8, 26, 1, 27, 1, 27, 1, 27, 5, 27, 434, 8, 27, 10, 27, 12, 27, 437, 9, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 3, 29, 444, 8, 29, 1, 29, 3, 29, 447, 8, 29, 1, 29, 3, 29, 450, 8, 29, 1, 30, 1, 30, 1, 30, 1, 30, 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, 33, 3, 33, 469, 8, 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, 3, 34, 483, 8, 34, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 5, 36, 497, 8, 36, 10, 36, 12, 36, 500, 9, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 5, 36, 509, 8, 36, 10, 36, 12, 36, 512, 9, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 5, 36, 521, 8, 36, 10, 36, 12, 36, 524, 9, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 3, 36, 531, 8, 36, 1, 36, 1, 36, 3, 36, 535, 8, 36, 1, 37, 1, 37, 1, 37, 5, 37, 540, 8, 37, 10, 37, 12, 37, 543, 9, 37, 1, 38, 1, 38, 1, 38, 3, 38, 548, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 4, 38, 555, 8, 38, 11, 38, 12, 38, 556, 1, 38, 1, 38, 3, 38, 561, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 592, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 609, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 621, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 631, 8, 38, 1, 38, 3, 38, 634, 8, 38, 1, 38, 1, 38, 3, 38, 638, 8, 38, 1, 38, 3, 38, 641, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 654, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 671, 8, 38, 1, 38, 1, 38, 3, 38, 675, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 681, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 688, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 700, 8, 38, 1, 38, 1, 38, 3, 38, 704, 8, 38, 1, 38, 3, 38, 707, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 716, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 730, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 757, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 766, 8, 38, 5, 38, 768, 8, 38, 10, 38, 12, 38, 771, 9, 38, 1, 39, 1, 39, 1, 39, 5, 39, 776, 8, 39, 10, 39, 12, 39, 779, 9, 39, 1, 40, 1, 40, 3, 40, 783, 8, 40, 1, 41, 1, 41, 1, 41, 1, 41, 5, 41, 789, 8, 41, 10, 41, 12, 41, 792, 9, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 5, 41, 799, 8, 41, 10, 41, 12, 41, 802, 9, 41, 3, 41, 804, 8, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 5, 42, 812, 8, 42, 10, 42, 12, 42, 815, 9, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 5, 42, 823, 8, 42, 10, 42, 12, 42, 826, 9, 42, 1, 42, 1, 42, 3, 42, 830, 8, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 837, 8, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 3, 43, 850, 8, 43, 1, 44, 1, 44, 1, 44, 5, 44, 855, 8, 44, 10, 44, 12, 44, 858, 9, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 870, 8, 45, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 876, 8, 46, 1, 46, 3, 46, 879, 8, 46, 1, 47, 1, 47, 1, 47, 5, 47, 884, 8, 47, 10, 47, 12, 47, 887, 9, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 898, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 904, 8, 48, 5, 48, 906, 8, 48, 10, 48, 12, 48, 909, 9, 48, 1, 49, 1, 49, 1, 49, 3, 49, 914, 8, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 3, 50, 921, 8, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 5, 51, 928, 8, 51, 10, 51, 12, 51, 931, 9, 51, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 3, 53, 941, 8, 53, 3, 53, 943, 8, 53, 1, 54, 3, 54, 946, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 954, 8, 54, 1, 55, 1, 55, 1, 55, 3, 55, 959, 8, 55, 1, 56, 1, 56, 1, 57, 1, 57, 1, 58, 1, 58, 1, 59, 1, 59, 3, 59, 969, 8, 59, 1, 60, 1, 60, 1, 60, 3, 60, 974, 8, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 0, 3, 38, 76, 96, 63, 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, 0, 16, 2, 0, 32, 32, 141, 141, 2, 0, 84, 84, 96, 96, 3, 0, 4, 4, 8, 8, 12, 12, 4, 0, 4, 4, 7, 8, 12, 12, 147, 147, 2, 0, 96, 96, 140, 140, 2, 0, 4, 4, 8, 8, 2, 0, 11, 11, 42, 43, 2, 0, 62, 62, 93, 93, 2, 0, 133, 133, 143, 143, 3, 0, 17, 17, 95, 95, 170, 170, 2, 0, 79, 79, 98, 98, 1, 0, 197, 198, 2, 0, 208, 208, 228, 228, 8, 0, 37, 37, 76, 76, 108, 108, 110, 110, 132, 132, 145, 145, 185, 185, 190, 190, 13, 0, 2, 24, 26, 36, 38, 75, 77, 81, 83, 107, 109, 109, 111, 112, 114, 115, 117, 130, 133, 144, 146, 184, 186, 189, 191, 192, 4, 0, 36, 36, 62, 62, 77, 77, 91, 91, 1111, 0, 129, 1, 0, 0, 0, 2, 133, 1, 0, 0, 0, 4, 147, 1, 0, 0, 0, 6, 151, 1, 0, 0, 0, 8, 154, 1, 0, 0, 0, 10, 203, 1, 0, 0, 0, 12, 206, 1, 0, 0, 0, 14, 212, 1, 0, 0, 0, 16, 216, 1, 0, 0, 0, 18, 222, 1, 0, 0, 0, 20, 240, 1, 0, 0, 0, 22, 243, 1, 0, 0, 0, 24, 246, 1, 0, 0, 0, 26, 256, 1, 0, 0, 0, 28, 259, 1, 0, 0, 0, 30, 263, 1, 0, 0, 0, 32, 296, 1, 0, 0, 0, 34, 298, 1, 0, 0, 0, 36, 301, 1, 0, 0, 0, 38, 316, 1, 0, 0, 0, 40, 378, 1, 0, 0, 0, 42, 383, 1, 0, 0, 0, 44, 394, 1, 0, 0, 0, 46, 396, 1, 0, 0, 0, 48, 402, 1, 0, 0, 0, 50, 410, 1, 0, 0, 0, 52, 428, 1, 0, 0, 0, 54, 430, 1, 0, 0, 0, 56, 438, 1, 0, 0, 0, 58, 443, 1, 0, 0, 0, 60, 451, 1, 0, 0, 0, 62, 455, 1, 0, 0, 0, 64, 459, 1, 0, 0, 0, 66, 468, 1, 0, 0, 0, 68, 482, 1, 0, 0, 0, 70, 484, 1, 0, 0, 0, 72, 534, 1, 0, 0, 0, 74, 536, 1, 0, 0, 0, 76, 674, 1, 0, 0, 0, 78, 772, 1, 0, 0, 0, 80, 782, 1, 0, 0, 0, 82, 803, 1, 0, 0, 0, 84, 836, 1, 0, 0, 0, 86, 849, 1, 0, 0, 0, 88, 851, 1, 0, 0, 0, 90, 869, 1, 0, 0, 0, 92, 878, 1, 0, 0, 0, 94, 880, 1, 0, 0, 0, 96, 897, 1, 0, 0, 0, 98, 910, 1, 0, 0, 0, 100, 920, 1, 0, 0, 0, 102, 924, 1, 0, 0, 0, 104, 932, 1, 0, 0, 0, 106, 942, 1, 0, 0, 0, 108, 945, 1, 0, 0, 0, 110, 958, 1, 0, 0, 0, 112, 960, 1, 0, 0, 0, 114, 962, 1, 0, 0, 0, 116, 964, 1, 0, 0, 0, 118, 968, 1, 0, 0, 0, 120, 973, 1, 0, 0, 0, 122, 975, 1, 0, 0, 0, 124, 979, 1, 0, 0, 0, 126, 130, 3, 2, 1, 0, 127, 130, 3, 8, 4, 0, 128, 130, 3, 84, 42, 0, 129, 126, 1, 0, 0, 0, 129, 127, 1, 0, 0, 0, 129, 128, 1, 0, 0, 0, 130, 131, 1, 0, 0, 0, 131, 132, 5, 0, 0, 1, 132, 1, 1, 0, 0, 0, 133, 139, 3, 4, 2, 0, 134, 135, 5, 176, 0, 0, 135, 136, 5, 4, 0, 0, 136, 138, 3, 4, 2, 0, 137, 134, 1, 0, 0, 0, 138, 141, 1, 0, 0, 0, 139, 137, 1, 0, 0, 0, 139, 140, 1, 0, 0, 0, 140, 3, 1, 0, 0, 0, 141, 139, 1, 0, 0, 0, 142, 148, 3, 6, 3, 0, 143, 144, 5, 220, 0, 0, 144, 145, 3, 2, 1, 0, 145, 146, 5, 236, 0, 0, 146, 148, 1, 0, 0, 0, 147, 142, 1, 0, 0, 0, 147, 143, 1, 0, 0, 0, 148, 5, 1, 0, 0, 0, 149, 152, 3, 8, 4, 0, 150, 152, 3, 124, 62, 0, 151, 149, 1, 0, 0, 0, 151, 150, 1, 0, 0, 0, 152, 7, 1, 0, 0, 0, 153, 155, 3, 10, 5, 0, 154, 153, 1, 0, 0, 0, 154, 155, 1, 0, 0, 0, 155, 156, 1, 0, 0, 0, 156, 158, 5, 146, 0, 0, 157, 159, 5, 49, 0, 0, 158, 157, 1, 0, 0, 0, 158, 159, 1, 0, 0, 0, 159, 161, 1, 0, 0, 0, 160, 162, 3, 12, 6, 0, 161, 160, 1, 0, 0, 0, 161, 162, 1, 0, 0, 0, 162, 163, 1, 0, 0, 0, 163, 165, 3, 74, 37, 0, 164, 166, 3, 14, 7, 0, 165, 164, 1, 0, 0, 0, 165, 166, 1, 0, 0, 0, 166, 168, 1, 0, 0, 0, 167, 169, 3, 16, 8, 0, 168, 167, 1, 0, 0, 0, 168, 169, 1, 0, 0, 0, 169, 171, 1, 0, 0, 0, 170, 172, 3, 20, 10, 0, 171, 170, 1, 0, 0, 0, 171, 172, 1, 0, 0, 0, 172, 174, 1, 0, 0, 0, 173, 175, 3, 22, 11, 0, 174, 173, 1, 0, 0, 0, 174, 175, 1, 0, 0, 0, 175, 177, 1, 0, 0, 0, 176, 178, 3, 24, 12, 0, 177, 176, 1, 0, 0, 0, 177, 178, 1, 0, 0, 0, 178, 181, 1, 0, 0, 0, 179, 180, 5, 189, 0, 0, 180, 182, 7, 0, 0, 0, 181, 179, 1, 0, 0, 0, 181, 182, 1, 0, 0, 0, 182, 185, 1, 0, 0, 0, 183, 184, 5, 189, 0, 0, 184, 186, 5, 169, 0, 0, 185, 183, 1, 0, 0, 0, 185, 186, 1, 0, 0, 0, 186, 188, 1, 0, 0, 0, 187, 189, 3, 26, 13, 0, 188, 187, 1, 0, 0, 0, 188, 189, 1, 0, 0, 0, 189, 191, 1, 0, 0, 0, 190, 192, 3, 18, 9, 0, 191, 190, 1, 0, 0, 0, 191, 192, 1, 0, 0, 0, 192, 194, 1, 0, 0, 0, 193, 195, 3, 28, 14, 0, 194, 193, 1, 0, 0, 0, 194, 195, 1, 0, 0, 0, 195, 198, 1, 0, 0, 0, 196, 199, 3, 32, 16, 0, 197, 199, 3, 34, 17, 0, 198, 196, 1, 0, 0, 0, 198, 197, 1, 0, 0, 0, 198, 199, 1, 0, 0, 0, 199, 201, 1, 0, 0, 0, 200, 202, 3, 36, 18, 0, 201, 200, 1, 0, 0, 0, 201, 202, 1, 0, 0, 0, 202, 9, 1, 0, 0, 0, 203, 204, 5, 189, 0, 0, 204, 205, 3, 88, 44, 0, 205, 11, 1, 0, 0, 0, 206, 207, 5, 168, 0, 0, 207, 210, 5, 198, 0, 0, 208, 209, 5, 189, 0, 0, 209, 211, 5, 164, 0, 0, 210, 208, 1, 0, 0, 0, 210, 211, 1, 0, 0, 0, 211, 13, 1, 0, 0, 0, 212, 213, 5, 68, 0, 0, 213, 214, 3, 38, 19, 0, 214, 15, 1, 0, 0, 0, 215, 217, 7, 1, 0, 0, 216, 215, 1, 0, 0, 0, 216, 217, 1, 0, 0, 0, 217, 218, 1, 0, 0, 0, 218, 219, 5, 9, 0, 0, 219, 220, 5, 90, 0, 0, 220, 221, 3, 74, 37, 0, 221, 17, 1, 0, 0, 0, 222, 223, 5, 188, 0, 0, 223, 224, 3, 120, 60, 0, 224, 225, 5, 10, 0, 0, 225, 226, 5, 220, 0, 0, 226, 227, 3, 58, 29, 0, 227, 237, 5, 236, 0, 0, 228, 229, 5, 206, 0, 0, 229, 230, 3, 120, 60, 0, 230, 231, 5, 10, 0, 0, 231, 232, 5, 220, 0, 0, 232, 233, 3, 58, 29, 0, 233, 234, 5, 236, 0, 0, 234, 236, 1, 0, 0, 0, 235, 228, 1, 0, 0, 0, 236, 239, 1, 0, 0, 0, 237, 235, 1, 0, 0, 0, 237, 238, 1, 0, 0, 0, 238, 19, 1, 0, 0, 0, 239, 237, 1, 0, 0, 0, 240, 241, 5, 129, 0, 0, 241, 242, 3, 76, 38, 0, 242, 21, 1, 0, 0, 0, 243, 244, 5, 187, 0, 0, 244, 245, 3, 76, 38, 0, 245, 23, 1, 0, 0, 0, 246, 247, 5, 73, 0, 0, 247, 254, 5, 18, 0, 0, 248, 249, 7, 0, 0, 0, 249, 250, 5, 220, 0, 0, 250, 251, 3, 74, 37, 0, 251, 252, 5, 236, 0, 0, 252, 255, 1, 0, 0, 0, 253, 255, 3, 74, 37, 0, 254, 248, 1, 0, 0, 0, 254, 253, 1, 0, 0, 0, 255, 25, 1, 0, 0, 0, 256, 257, 5, 74, 0, 0, 257, 258, 3, 76, 38, 0, 258, 27, 1, 0, 0, 0, 259, 260, 5, 122, 0, 0, 260, 261, 5, 18, 0, 0, 261, 262, 3, 48, 24, 0, 262, 29, 1, 0, 0, 0, 263, 264, 5, 122, 0, 0, 264, 265, 5, 18, 0, 0, 265, 266, 3, 74, 37, 0, 266, 31, 1, 0, 0, 0, 267, 268, 5, 99, 0, 0, 268, 271, 3, 76, 38, 0, 269, 270, 5, 206, 0, 0, 270, 272, 3, 76, 38, 0, 271, 269, 1, 0, 0, 0, 271, 272, 1, 0, 0, 0, 272, 277, 1, 0, 0, 0, 273, 274, 5, 189, 0, 0, 274, 278, 5, 164, 0, 0, 275, 276, 5, 18, 0, 0, 276, 278, 3, 74, 37, 0, 277, 273, 1, 0, 0, 0, 277, 275, 1, 0, 0, 0, 277, 278, 1, 0, 0, 0, 278, 297, 1, 0, 0, 0, 279, 280, 5, 99, 0, 0, 280, 283, 3, 76, 38, 0, 281, 282, 5, 189, 0, 0, 282, 284, 5, 164, 0, 0, 283, 281, 1, 0, 0, 0, 283, 284, 1, 0, 0, 0, 284, 285, 1, 0, 0, 0, 285, 286, 5, 118, 0, 0, 286, 287, 3, 76, 38, 0, 287, 297, 1, 0, 0, 0, 288, 289, 5, 99, 0, 0, 289, 290, 3, 76, 38, 0, 290, 291, 5, 118, 0, 0, 291, 294, 3, 76, 38, 0, 292, 293, 5, 18, 0, 0, 293, 295, 3, 74, 37, 0, 294, 292, 1, 0, 0, 0, 294, 295, 1, 0, 0, 0, 295, 297, 1, 0, 0, 0, 296, 267, 1, 0, 0, 0, 296, 279, 1, 0, 0, 0, 296, 288, 1, 0, 0, 0, 297, 33, 1, 0, 0, 0, 298, 299, 5, 118, 0, 0, 299, 300, 3, 76, 38, 0, 300, 35, 1, 0, 0, 0, 301, 302, 5, 150, 0, 0, 302, 303, 3, 54, 27, 0, 303, 37, 1, 0, 0, 0, 304, 305, 6, 19, -1, 0, 305, 307, 3, 96, 48, 0, 306, 308, 5, 61, 0, 0, 307, 306, 1, 0, 0, 0, 307, 308, 1, 0, 0, 0, 308, 310, 1, 0, 0, 0, 309, 311, 3, 46, 23, 0, 310, 309, 1, 0, 0, 0, 310, 311, 1, 0, 0, 0, 311, 317, 1, 0, 0, 0, 312, 313, 5, 220, 0, 0, 313, 314, 3, 38, 19, 0, 314, 315, 5, 236, 0, 0, 315, 317, 1, 0, 0, 0, 316, 304, 1, 0, 0, 0, 316, 312, 1, 0, 0, 0, 317, 332, 1, 0, 0, 0, 318, 319, 10, 3, 0, 0, 319, 320, 3, 42, 21, 0, 320, 321, 3, 38, 19, 4, 321, 331, 1, 0, 0, 0, 322, 324, 10, 4, 0, 0, 323, 325, 3, 40, 20, 0, 324, 323, 1, 0, 0, 0, 324, 325, 1, 0, 0, 0, 325, 326, 1, 0, 0, 0, 326, 327, 5, 90, 0, 0, 327, 328, 3, 38, 19, 0, 328, 329, 3, 44, 22, 0, 329, 331, 1, 0, 0, 0, 330, 318, 1, 0, 0, 0, 330, 322, 1, 0, 0, 0, 331, 334, 1, 0, 0, 0, 332, 330, 1, 0, 0, 0, 332, 333, 1, 0, 0, 0, 333, 39, 1, 0, 0, 0, 334, 332, 1, 0, 0, 0, 335, 337, 7, 2, 0, 0, 336, 335, 1, 0, 0, 0, 336, 337, 1, 0, 0, 0, 337, 338, 1, 0, 0, 0, 338, 345, 5, 84, 0, 0, 339, 341, 5, 84, 0, 0, 340, 342, 7, 2, 0, 0, 341, 340, 1, 0, 0, 0, 341, 342, 1, 0, 0, 0, 342, 345, 1, 0, 0, 0, 343, 345, 7, 2, 0, 0, 344, 336, 1, 0, 0, 0, 344, 339, 1, 0, 0, 0, 344, 343, 1, 0, 0, 0, 345, 379, 1, 0, 0, 0, 346, 348, 7, 3, 0, 0, 347, 346, 1, 0, 0, 0, 347, 348, 1, 0, 0, 0, 348, 349, 1, 0, 0, 0, 349, 351, 7, 4, 0, 0, 350, 352, 5, 123, 0, 0, 351, 350, 1, 0, 0, 0, 351, 352, 1, 0, 0, 0, 352, 361, 1, 0, 0, 0, 353, 355, 7, 4, 0, 0, 354, 356, 5, 123, 0, 0, 355, 354, 1, 0, 0, 0, 355, 356, 1, 0, 0, 0, 356, 358, 1, 0, 0, 0, 357, 359, 7, 3, 0, 0, 358, 357, 1, 0, 0, 0, 358, 359, 1, 0, 0, 0, 359, 361, 1, 0, 0, 0, 360, 347, 1, 0, 0, 0, 360, 353, 1, 0, 0, 0, 361, 379, 1, 0, 0, 0, 362, 364, 7, 5, 0, 0, 363, 362, 1, 0, 0, 0, 363, 364, 1, 0, 0, 0, 364, 365, 1, 0, 0, 0, 365, 367, 5, 69, 0, 0, 366, 368, 5, 123, 0, 0, 367, 366, 1, 0, 0, 0, 367, 368, 1, 0, 0, 0, 368, 377, 1, 0, 0, 0, 369, 371, 5, 69, 0, 0, 370, 372, 5, 123, 0, 0, 371, 370, 1, 0, 0, 0, 371, 372, 1, 0, 0, 0, 372, 374, 1, 0, 0, 0, 373, 375, 7, 5, 0, 0, 374, 373, 1, 0, 0, 0, 374, 375, 1, 0, 0, 0, 375, 377, 1, 0, 0, 0, 376, 363, 1, 0, 0, 0, 376, 369, 1, 0, 0, 0, 377, 379, 1, 0, 0, 0, 378, 344, 1, 0, 0, 0, 378, 360, 1, 0, 0, 0, 378, 376, 1, 0, 0, 0, 379, 41, 1, 0, 0, 0, 380, 381, 5, 31, 0, 0, 381, 384, 5, 90, 0, 0, 382, 384, 5, 206, 0, 0, 383, 380, 1, 0, 0, 0, 383, 382, 1, 0, 0, 0, 384, 43, 1, 0, 0, 0, 385, 386, 5, 119, 0, 0, 386, 395, 3, 74, 37, 0, 387, 388, 5, 179, 0, 0, 388, 389, 5, 220, 0, 0, 389, 390, 3, 74, 37, 0, 390, 391, 5, 236, 0, 0, 391, 395, 1, 0, 0, 0, 392, 393, 5, 179, 0, 0, 393, 395, 3, 74, 37, 0, 394, 385, 1, 0, 0, 0, 394, 387, 1, 0, 0, 0, 394, 392, 1, 0, 0, 0, 395, 45, 1, 0, 0, 0, 396, 397, 5, 144, 0, 0, 397, 400, 3, 52, 26, 0, 398, 399, 5, 118, 0, 0, 399, 401, 3, 52, 26, 0, 400, 398, 1, 0, 0, 0, 400, 401, 1, 0, 0, 0, 401, 47, 1, 0, 0, 0, 402, 407, 3, 50, 25, 0, 403, 404, 5, 206, 0, 0, 404, 406, 3, 50, 25, 0, 405, 403, 1, 0, 0, 0, 406, 409, 1, 0, 0, 0, 407, 405, 1, 0, 0, 0, 407, 408, 1, 0, 0, 0, 408, 49, 1, 0, 0, 0, 409, 407, 1, 0, 0, 0, 410, 412, 3, 76, 38, 0, 411, 413, 7, 6, 0, 0, 412, 411, 1, 0, 0, 0, 412, 413, 1, 0, 0, 0, 413, 416, 1, 0, 0, 0, 414, 415, 5, 117, 0, 0, 415, 417, 7, 7, 0, 0, 416, 414, 1, 0, 0, 0, 416, 417, 1, 0, 0, 0, 417, 420, 1, 0, 0, 0, 418, 419, 5, 26, 0, 0, 419, 421, 5, 200, 0, 0, 420, 418, 1, 0, 0, 0, 420, 421, 1, 0, 0, 0, 421, 51, 1, 0, 0, 0, 422, 429, 3, 124, 62, 0, 423, 426, 3, 108, 54, 0, 424, 425, 5, 238, 0, 0, 425, 427, 3, 108, 54, 0, 426, 424, 1, 0, 0, 0, 426, 427, 1, 0, 0, 0, 427, 429, 1, 0, 0, 0, 428, 422, 1, 0, 0, 0, 428, 423, 1, 0, 0, 0, 429, 53, 1, 0, 0, 0, 430, 435, 3, 56, 28, 0, 431, 432, 5, 206, 0, 0, 432, 434, 3, 56, 28, 0, 433, 431, 1, 0, 0, 0, 434, 437, 1, 0, 0, 0, 435, 433, 1, 0, 0, 0, 435, 436, 1, 0, 0, 0, 436, 55, 1, 0, 0, 0, 437, 435, 1, 0, 0, 0, 438, 439, 3, 120, 60, 0, 439, 440, 5, 212, 0, 0, 440, 441, 3, 110, 55, 0, 441, 57, 1, 0, 0, 0, 442, 444, 3, 60, 30, 0, 443, 442, 1, 0, 0, 0, 443, 444, 1, 0, 0, 0, 444, 446, 1, 0, 0, 0, 445, 447, 3, 62, 31, 0, 446, 445, 1, 0, 0, 0, 446, 447, 1, 0, 0, 0, 447, 449, 1, 0, 0, 0, 448, 450, 3, 64, 32, 0, 449, 448, 1, 0, 0, 0, 449, 450, 1, 0, 0, 0, 450, 59, 1, 0, 0, 0, 451, 452, 5, 126, 0, 0, 452, 453, 5, 18, 0, 0, 453, 454, 3, 74, 37, 0, 454, 61, 1, 0, 0, 0, 455, 456, 5, 122, 0, 0, 456, 457, 5, 18, 0, 0, 457, 458, 3, 48, 24, 0, 458, 63, 1, 0, 0, 0, 459, 460, 7, 8, 0, 0, 460, 461, 3, 66, 33, 0, 461, 65, 1, 0, 0, 0, 462, 469, 3, 68, 34, 0, 463, 464, 5, 16, 0, 0, 464, 465, 3, 68, 34, 0, 465, 466, 5, 6, 0, 0, 466, 467, 3, 68, 34, 0, 467, 469, 1, 0, 0, 0, 468, 462, 1, 0, 0, 0, 468, 463, 1, 0, 0, 0, 469, 67, 1, 0, 0, 0, 470, 471, 5, 33, 0, 0, 471, 483, 5, 142, 0, 0, 472, 473, 5, 175, 0, 0, 473, 483, 5, 128, 0, 0, 474, 475, 5, 175, 0, 0, 475, 483, 5, 64, 0, 0, 476, 477, 3, 108, 54, 0, 477, 478, 5, 128, 0, 0, 478, 483, 1, 0, 0, 0, 479, 480, 3, 108, 54, 0, 480, 481, 5, 64, 0, 0, 481, 483, 1, 0, 0, 0, 482, 470, 1, 0, 0, 0, 482, 472, 1, 0, 0, 0, 482, 474, 1, 0, 0, 0, 482, 476, 1, 0, 0, 0, 482, 479, 1, 0, 0, 0, 483, 69, 1, 0, 0, 0, 484, 485, 3, 76, 38, 0, 485, 486, 5, 0, 0, 1, 486, 71, 1, 0, 0, 0, 487, 535, 3, 120, 60, 0, 488, 489, 3, 120, 60, 0, 489, 490, 5, 220, 0, 0, 490, 491, 3, 120, 60, 0, 491, 498, 3, 72, 36, 0, 492, 493, 5, 206, 0, 0, 493, 494, 3, 120, 60, 0, 494, 495, 3, 72, 36, 0, 495, 497, 1, 0, 0, 0, 496, 492, 1, 0, 0, 0, 497, 500, 1, 0, 0, 0, 498, 496, 1, 0, 0, 0, 498, 499, 1, 0, 0, 0, 499, 501, 1, 0, 0, 0, 500, 498, 1, 0, 0, 0, 501, 502, 5, 236, 0, 0, 502, 535, 1, 0, 0, 0, 503, 504, 3, 120, 60, 0, 504, 505, 5, 220, 0, 0, 505, 510, 3, 122, 61, 0, 506, 507, 5, 206, 0, 0, 507, 509, 3, 122, 61, 0, 508, 506, 1, 0, 0, 0, 509, 512, 1, 0, 0, 0, 510, 508, 1, 0, 0, 0, 510, 511, 1, 0, 0, 0, 511, 513, 1, 0, 0, 0, 512, 510, 1, 0, 0, 0, 513, 514, 5, 236, 0, 0, 514, 535, 1, 0, 0, 0, 515, 516, 3, 120, 60, 0, 516, 517, 5, 220, 0, 0, 517, 522, 3, 72, 36, 0, 518, 519, 5, 206, 0, 0, 519, 521, 3, 72, 36, 0, 520, 518, 1, 0, 0, 0, 521, 524, 1, 0, 0, 0, 522, 520, 1, 0, 0, 0, 522, 523, 1, 0, 0, 0, 523, 525, 1, 0, 0, 0, 524, 522, 1, 0, 0, 0, 525, 526, 5, 236, 0, 0, 526, 535, 1, 0, 0, 0, 527, 528, 3, 120, 60, 0, 528, 530, 5, 220, 0, 0, 529, 531, 3, 74, 37, 0, 530, 529, 1, 0, 0, 0, 530, 531, 1, 0, 0, 0, 531, 532, 1, 0, 0, 0, 532, 533, 5, 236, 0, 0, 533, 535, 1, 0, 0, 0, 534, 487, 1, 0, 0, 0, 534, 488, 1, 0, 0, 0, 534, 503, 1, 0, 0, 0, 534, 515, 1, 0, 0, 0, 534, 527, 1, 0, 0, 0, 535, 73, 1, 0, 0, 0, 536, 541, 3, 76, 38, 0, 537, 538, 5, 206, 0, 0, 538, 540, 3, 76, 38, 0, 539, 537, 1, 0, 0, 0, 540, 543, 1, 0, 0, 0, 541, 539, 1, 0, 0, 0, 541, 542, 1, 0, 0, 0, 542, 75, 1, 0, 0, 0, 543, 541, 1, 0, 0, 0, 544, 545, 6, 38, -1, 0, 545, 547, 5, 19, 0, 0, 546, 548, 3, 76, 38, 0, 547, 546, 1, 0, 0, 0, 547, 548, 1, 0, 0, 0, 548, 554, 1, 0, 0, 0, 549, 550, 5, 186, 0, 0, 550, 551, 3, 76, 38, 0, 551, 552, 5, 163, 0, 0, 552, 553, 3, 76, 38, 0, 553, 555, 1, 0, 0, 0, 554, 549, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 554, 1, 0, 0, 0, 556, 557, 1, 0, 0, 0, 557, 560, 1, 0, 0, 0, 558, 559, 5, 52, 0, 0, 559, 561, 3, 76, 38, 0, 560, 558, 1, 0, 0, 0, 560, 561, 1, 0, 0, 0, 561, 562, 1, 0, 0, 0, 562, 563, 5, 53, 0, 0, 563, 675, 1, 0, 0, 0, 564, 565, 5, 20, 0, 0, 565, 566, 5, 220, 0, 0, 566, 567, 3, 76, 38, 0, 567, 568, 5, 10, 0, 0, 568, 569, 3, 72, 36, 0, 569, 570, 5, 236, 0, 0, 570, 675, 1, 0, 0, 0, 571, 572, 5, 36, 0, 0, 572, 675, 5, 200, 0, 0, 573, 574, 5, 59, 0, 0, 574, 575, 5, 220, 0, 0, 575, 576, 3, 112, 56, 0, 576, 577, 5, 68, 0, 0, 577, 578, 3, 76, 38, 0, 578, 579, 5, 236, 0, 0, 579, 675, 1, 0, 0, 0, 580, 581, 5, 86, 0, 0, 581, 582, 3, 76, 38, 0, 582, 583, 3, 112, 56, 0, 583, 675, 1, 0, 0, 0, 584, 585, 5, 155, 0, 0, 585, 586, 5, 220, 0, 0, 586, 587, 3, 76, 38, 0, 587, 588, 5, 68, 0, 0, 588, 591, 3, 76, 38, 0, 589, 590, 5, 65, 0, 0, 590, 592, 3, 76, 38, 0, 591, 589, 1, 0, 0, 0, 591, 592, 1, 0, 0, 0, 592, 593, 1, 0, 0, 0, 593, 594, 5, 236, 0, 0, 594, 675, 1, 0, 0, 0, 595, 596, 5, 166, 0, 0, 596, 675, 5, 200, 0, 0, 597, 598, 5, 171, 0, 0, 598, 599, 5, 220, 0, 0, 599, 600, 7, 9, 0, 0, 600, 601, 5, 200, 0, 0, 601, 602, 5, 68, 0, 0, 602, 603, 3, 76, 38, 0, 603, 604, 5, 236, 0, 0, 604, 675, 1, 0, 0, 0, 605, 606, 3, 120, 60, 0, 606, 608, 5, 220, 0, 0, 607, 609, 3, 74, 37, 0, 608, 607, 1, 0, 0, 0, 608, 609, 1, 0, 0, 0, 609, 610, 1, 0, 0, 0, 610, 611, 5, 236, 0, 0, 611, 612, 1, 0, 0, 0, 612, 613, 5, 125, 0, 0, 613, 614, 5, 220, 0, 0, 614, 615, 3, 58, 29, 0, 615, 616, 5, 236, 0, 0, 616, 675, 1, 0, 0, 0, 617, 618, 3, 120, 60, 0, 618, 620, 5, 220, 0, 0, 619, 621, 3, 74, 37, 0, 620, 619, 1, 0, 0, 0, 620, 621, 1, 0, 0, 0, 621, 622, 1, 0, 0, 0, 622, 623, 5, 236, 0, 0, 623, 624, 1, 0, 0, 0, 624, 625, 5, 125, 0, 0, 625, 626, 3, 120, 60, 0, 626, 675, 1, 0, 0, 0, 627, 633, 3, 120, 60, 0, 628, 630, 5, 220, 0, 0, 629, 631, 3, 74, 37, 0, 630, 629, 1, 0, 0, 0, 630, 631, 1, 0, 0, 0, 631, 632, 1, 0, 0, 0, 632, 634, 5, 236, 0, 0, 633, 628, 1, 0, 0, 0, 633, 634, 1, 0, 0, 0, 634, 635, 1, 0, 0, 0, 635, 637, 5, 220, 0, 0, 636, 638, 5, 49, 0, 0, 637, 636, 1, 0, 0, 0, 637, 638, 1, 0, 0, 0, 638, 640, 1, 0, 0, 0, 639, 641, 3, 78, 39, 0, 640, 639, 1, 0, 0, 0, 640, 641, 1, 0, 0, 0, 641, 642, 1, 0, 0, 0, 642, 643, 5, 236, 0, 0, 643, 675, 1, 0, 0, 0, 644, 675, 3, 84, 42, 0, 645, 675, 3, 110, 55, 0, 646, 647, 5, 208, 0, 0, 647, 675, 3, 76, 38, 18, 648, 649, 5, 115, 0, 0, 649, 675, 3, 76, 38, 12, 650, 651, 3, 100, 50, 0, 651, 652, 5, 210, 0, 0, 652, 654, 1, 0, 0, 0, 653, 650, 1, 0, 0, 0, 653, 654, 1, 0, 0, 0, 654, 655, 1, 0, 0, 0, 655, 675, 5, 202, 0, 0, 656, 657, 5, 220, 0, 0, 657, 658, 3, 2, 1, 0, 658, 659, 5, 236, 0, 0, 659, 675, 1, 0, 0, 0, 660, 661, 5, 220, 0, 0, 661, 662, 3, 76, 38, 0, 662, 663, 5, 236, 0, 0, 663, 675, 1, 0, 0, 0, 664, 665, 5, 220, 0, 0, 665, 666, 3, 74, 37, 0, 666, 667, 5, 236, 0, 0, 667, 675, 1, 0, 0, 0, 668, 670, 5, 219, 0, 0, 669, 671, 3, 74, 37, 0, 670, 669, 1, 0, 0, 0, 670, 671, 1, 0, 0, 0, 671, 672, 1, 0, 0, 0, 672, 675, 5, 235, 0, 0, 673, 675, 3, 92, 46, 0, 674, 544, 1, 0, 0, 0, 674, 564, 1, 0, 0, 0, 674, 571, 1, 0, 0, 0, 674, 573, 1, 0, 0, 0, 674, 580, 1, 0, 0, 0, 674, 584, 1, 0, 0, 0, 674, 595, 1, 0, 0, 0, 674, 597, 1, 0, 0, 0, 674, 605, 1, 0, 0, 0, 674, 617, 1, 0, 0, 0, 674, 627, 1, 0, 0, 0, 674, 644, 1, 0, 0, 0, 674, 645, 1, 0, 0, 0, 674, 646, 1, 0, 0, 0, 674, 648, 1, 0, 0, 0, 674, 653, 1, 0, 0, 0, 674, 656, 1, 0, 0, 0, 674, 660, 1, 0, 0, 0, 674, 664, 1, 0, 0, 0, 674, 668, 1, 0, 0, 0, 674, 673, 1, 0, 0, 0, 675, 769, 1, 0, 0, 0, 676, 680, 10, 17, 0, 0, 677, 681, 5, 202, 0, 0, 678, 681, 5, 238, 0, 0, 679, 681, 5, 227, 0, 0, 680, 677, 1, 0, 0, 0, 680, 678, 1, 0, 0, 0, 680, 679, 1, 0, 0, 0, 681, 682, 1, 0, 0, 0, 682, 768, 3, 76, 38, 18, 683, 687, 10, 16, 0, 0, 684, 688, 5, 228, 0, 0, 685, 688, 5, 208, 0, 0, 686, 688, 5, 207, 0, 0, 687, 684, 1, 0, 0, 0, 687, 685, 1, 0, 0, 0, 687, 686, 1, 0, 0, 0, 688, 689, 1, 0, 0, 0, 689, 768, 3, 76, 38, 17, 690, 715, 10, 15, 0, 0, 691, 716, 5, 211, 0, 0, 692, 716, 5, 212, 0, 0, 693, 716, 5, 223, 0, 0, 694, 716, 5, 221, 0, 0, 695, 716, 5, 222, 0, 0, 696, 716, 5, 213, 0, 0, 697, 716, 5, 214, 0, 0, 698, 700, 5, 115, 0, 0, 699, 698, 1, 0, 0, 0, 699, 700, 1, 0, 0, 0, 700, 701, 1, 0, 0, 0, 701, 703, 5, 80, 0, 0, 702, 704, 5, 25, 0, 0, 703, 702, 1, 0, 0, 0, 703, 704, 1, 0, 0, 0, 704, 716, 1, 0, 0, 0, 705, 707, 5, 115, 0, 0, 706, 705, 1, 0, 0, 0, 706, 707, 1, 0, 0, 0, 707, 708, 1, 0, 0, 0, 708, 716, 7, 10, 0, 0, 709, 716, 5, 232, 0, 0, 710, 716, 5, 233, 0, 0, 711, 716, 5, 225, 0, 0, 712, 716, 5, 216, 0, 0, 713, 716, 5, 217, 0, 0, 714, 716, 5, 224, 0, 0, 715, 691, 1, 0, 0, 0, 715, 692, 1, 0, 0, 0, 715, 693, 1, 0, 0, 0, 715, 694, 1, 0, 0, 0, 715, 695, 1, 0, 0, 0, 715, 696, 1, 0, 0, 0, 715, 697, 1, 0, 0, 0, 715, 699, 1, 0, 0, 0, 715, 706, 1, 0, 0, 0, 715, 709, 1, 0, 0, 0, 715, 710, 1, 0, 0, 0, 715, 711, 1, 0, 0, 0, 715, 712, 1, 0, 0, 0, 715, 713, 1, 0, 0, 0, 715, 714, 1, 0, 0, 0, 716, 717, 1, 0, 0, 0, 717, 768, 3, 76, 38, 16, 718, 719, 10, 13, 0, 0, 719, 720, 5, 226, 0, 0, 720, 768, 3, 76, 38, 14, 721, 722, 10, 11, 0, 0, 722, 723, 5, 6, 0, 0, 723, 768, 3, 76, 38, 12, 724, 725, 10, 10, 0, 0, 725, 726, 5, 121, 0, 0, 726, 768, 3, 76, 38, 11, 727, 729, 10, 9, 0, 0, 728, 730, 5, 115, 0, 0, 729, 728, 1, 0, 0, 0, 729, 730, 1, 0, 0, 0, 730, 731, 1, 0, 0, 0, 731, 732, 5, 16, 0, 0, 732, 733, 3, 76, 38, 0, 733, 734, 5, 6, 0, 0, 734, 735, 3, 76, 38, 10, 735, 768, 1, 0, 0, 0, 736, 737, 10, 8, 0, 0, 737, 738, 5, 229, 0, 0, 738, 739, 3, 76, 38, 0, 739, 740, 5, 205, 0, 0, 740, 741, 3, 76, 38, 8, 741, 768, 1, 0, 0, 0, 742, 743, 10, 21, 0, 0, 743, 744, 5, 219, 0, 0, 744, 745, 3, 76, 38, 0, 745, 746, 5, 235, 0, 0, 746, 768, 1, 0, 0, 0, 747, 748, 10, 20, 0, 0, 748, 749, 5, 210, 0, 0, 749, 768, 5, 198, 0, 0, 750, 751, 10, 19, 0, 0, 751, 752, 5, 210, 0, 0, 752, 768, 3, 120, 60, 0, 753, 754, 10, 14, 0, 0, 754, 756, 5, 88, 0, 0, 755, 757, 5, 115, 0, 0, 756, 755, 1, 0, 0, 0, 756, 757, 1, 0, 0, 0, 757, 758, 1, 0, 0, 0, 758, 768, 5, 116, 0, 0, 759, 765, 10, 7, 0, 0, 760, 766, 3, 118, 59, 0, 761, 762, 5, 10, 0, 0, 762, 766, 3, 120, 60, 0, 763, 764, 5, 10, 0, 0, 764, 766, 5, 200, 0, 0, 765, 760, 1, 0, 0, 0, 765, 761, 1, 0, 0, 0, 765, 763, 1, 0, 0, 0, 766, 768, 1, 0, 0, 0, 767, 676, 1, 0, 0, 0, 767, 683, 1, 0, 0, 0, 767, 690, 1, 0, 0, 0, 767, 718, 1, 0, 0, 0, 767, 721, 1, 0, 0, 0, 767, 724, 1, 0, 0, 0, 767, 727, 1, 0, 0, 0, 767, 736, 1, 0, 0, 0, 767, 742, 1, 0, 0, 0, 767, 747, 1, 0, 0, 0, 767, 750, 1, 0, 0, 0, 767, 753, 1, 0, 0, 0, 767, 759, 1, 0, 0, 0, 768, 771, 1, 0, 0, 0, 769, 767, 1, 0, 0, 0, 769, 770, 1, 0, 0, 0, 770, 77, 1, 0, 0, 0, 771, 769, 1, 0, 0, 0, 772, 777, 3, 80, 40, 0, 773, 774, 5, 206, 0, 0, 774, 776, 3, 80, 40, 0, 775, 773, 1, 0, 0, 0, 776, 779, 1, 0, 0, 0, 777, 775, 1, 0, 0, 0, 777, 778, 1, 0, 0, 0, 778, 79, 1, 0, 0, 0, 779, 777, 1, 0, 0, 0, 780, 783, 3, 82, 41, 0, 781, 783, 3, 76, 38, 0, 782, 780, 1, 0, 0, 0, 782, 781, 1, 0, 0, 0, 783, 81, 1, 0, 0, 0, 784, 785, 5, 220, 0, 0, 785, 790, 3, 120, 60, 0, 786, 787, 5, 206, 0, 0, 787, 789, 3, 120, 60, 0, 788, 786, 1, 0, 0, 0, 789, 792, 1, 0, 0, 0, 790, 788, 1, 0, 0, 0, 790, 791, 1, 0, 0, 0, 791, 793, 1, 0, 0, 0, 792, 790, 1, 0, 0, 0, 793, 794, 5, 236, 0, 0, 794, 804, 1, 0, 0, 0, 795, 800, 3, 120, 60, 0, 796, 797, 5, 206, 0, 0, 797, 799, 3, 120, 60, 0, 798, 796, 1, 0, 0, 0, 799, 802, 1, 0, 0, 0, 800, 798, 1, 0, 0, 0, 800, 801, 1, 0, 0, 0, 801, 804, 1, 0, 0, 0, 802, 800, 1, 0, 0, 0, 803, 784, 1, 0, 0, 0, 803, 795, 1, 0, 0, 0, 804, 805, 1, 0, 0, 0, 805, 806, 5, 201, 0, 0, 806, 807, 3, 76, 38, 0, 807, 83, 1, 0, 0, 0, 808, 809, 5, 222, 0, 0, 809, 813, 3, 120, 60, 0, 810, 812, 3, 86, 43, 0, 811, 810, 1, 0, 0, 0, 812, 815, 1, 0, 0, 0, 813, 811, 1, 0, 0, 0, 813, 814, 1, 0, 0, 0, 814, 816, 1, 0, 0, 0, 815, 813, 1, 0, 0, 0, 816, 817, 5, 238, 0, 0, 817, 818, 5, 214, 0, 0, 818, 837, 1, 0, 0, 0, 819, 820, 5, 222, 0, 0, 820, 824, 3, 120, 60, 0, 821, 823, 3, 86, 43, 0, 822, 821, 1, 0, 0, 0, 823, 826, 1, 0, 0, 0, 824, 822, 1, 0, 0, 0, 824, 825, 1, 0, 0, 0, 825, 827, 1, 0, 0, 0, 826, 824, 1, 0, 0, 0, 827, 829, 5, 214, 0, 0, 828, 830, 3, 84, 42, 0, 829, 828, 1, 0, 0, 0, 829, 830, 1, 0, 0, 0, 830, 831, 1, 0, 0, 0, 831, 832, 5, 222, 0, 0, 832, 833, 5, 238, 0, 0, 833, 834, 3, 120, 60, 0, 834, 835, 5, 214, 0, 0, 835, 837, 1, 0, 0, 0, 836, 808, 1, 0, 0, 0, 836, 819, 1, 0, 0, 0, 837, 85, 1, 0, 0, 0, 838, 839, 3, 120, 60, 0, 839, 840, 5, 212, 0, 0, 840, 841, 5, 200, 0, 0, 841, 850, 1, 0, 0, 0, 842, 843, 3, 120, 60, 0, 843, 844, 5, 212, 0, 0, 844, 845, 5, 218, 0, 0, 845, 846, 3, 76, 38, 0, 846, 847, 5, 234, 0, 0, 847, 850, 1, 0, 0, 0, 848, 850, 3, 120, 60, 0, 849, 838, 1, 0, 0, 0, 849, 842, 1, 0, 0, 0, 849, 848, 1, 0, 0, 0, 850, 87, 1, 0, 0, 0, 851, 856, 3, 90, 45, 0, 852, 853, 5, 206, 0, 0, 853, 855, 3, 90, 45, 0, 854, 852, 1, 0, 0, 0, 855, 858, 1, 0, 0, 0, 856, 854, 1, 0, 0, 0, 856, 857, 1, 0, 0, 0, 857, 89, 1, 0, 0, 0, 858, 856, 1, 0, 0, 0, 859, 860, 3, 120, 60, 0, 860, 861, 5, 10, 0, 0, 861, 862, 5, 220, 0, 0, 862, 863, 3, 2, 1, 0, 863, 864, 5, 236, 0, 0, 864, 870, 1, 0, 0, 0, 865, 866, 3, 76, 38, 0, 866, 867, 5, 10, 0, 0, 867, 868, 3, 120, 60, 0, 868, 870, 1, 0, 0, 0, 869, 859, 1, 0, 0, 0, 869, 865, 1, 0, 0, 0, 870, 91, 1, 0, 0, 0, 871, 879, 3, 124, 62, 0, 872, 873, 3, 100, 50, 0, 873, 874, 5, 210, 0, 0, 874, 876, 1, 0, 0, 0, 875, 872, 1, 0, 0, 0, 875, 876, 1, 0, 0, 0, 876, 877, 1, 0, 0, 0, 877, 879, 3, 94, 47, 0, 878, 871, 1, 0, 0, 0, 878, 875, 1, 0, 0, 0, 879, 93, 1, 0, 0, 0, 880, 885, 3, 120, 60, 0, 881, 882, 5, 210, 0, 0, 882, 884, 3, 120, 60, 0, 883, 881, 1, 0, 0, 0, 884, 887, 1, 0, 0, 0, 885, 883, 1, 0, 0, 0, 885, 886, 1, 0, 0, 0, 886, 95, 1, 0, 0, 0, 887, 885, 1, 0, 0, 0, 888, 889, 6, 48, -1, 0, 889, 898, 3, 100, 50, 0, 890, 898, 3, 98, 49, 0, 891, 892, 5, 220, 0, 0, 892, 893, 3, 2, 1, 0, 893, 894, 5, 236, 0, 0, 894, 898, 1, 0, 0, 0, 895, 898, 3, 84, 42, 0, 896, 898, 3, 124, 62, 0, 897, 888, 1, 0, 0, 0, 897, 890, 1, 0, 0, 0, 897, 891, 1, 0, 0, 0, 897, 895, 1, 0, 0, 0, 897, 896, 1, 0, 0, 0, 898, 907, 1, 0, 0, 0, 899, 903, 10, 3, 0, 0, 900, 904, 3, 118, 59, 0, 901, 902, 5, 10, 0, 0, 902, 904, 3, 120, 60, 0, 903, 900, 1, 0, 0, 0, 903, 901, 1, 0, 0, 0, 904, 906, 1, 0, 0, 0, 905, 899, 1, 0, 0, 0, 906, 909, 1, 0, 0, 0, 907, 905, 1, 0, 0, 0, 907, 908, 1, 0, 0, 0, 908, 97, 1, 0, 0, 0, 909, 907, 1, 0, 0, 0, 910, 911, 3, 120, 60, 0, 911, 913, 5, 220, 0, 0, 912, 914, 3, 102, 51, 0, 913, 912, 1, 0, 0, 0, 913, 914, 1, 0, 0, 0, 914, 915, 1, 0, 0, 0, 915, 916, 5, 236, 0, 0, 916, 99, 1, 0, 0, 0, 917, 918, 3, 104, 52, 0, 918, 919, 5, 210, 0, 0, 919, 921, 1, 0, 0, 0, 920, 917, 1, 0, 0, 0, 920, 921, 1, 0, 0, 0, 921, 922, 1, 0, 0, 0, 922, 923, 3, 120, 60, 0, 923, 101, 1, 0, 0, 0, 924, 929, 3, 76, 38, 0, 925, 926, 5, 206, 0, 0, 926, 928, 3, 76, 38, 0, 927, 925, 1, 0, 0, 0, 928, 931, 1, 0, 0, 0, 929, 927, 1, 0, 0, 0, 929, 930, 1, 0, 0, 0, 930, 103, 1, 0, 0, 0, 931, 929, 1, 0, 0, 0, 932, 933, 3, 120, 60, 0, 933, 105, 1, 0, 0, 0, 934, 943, 5, 196, 0, 0, 935, 936, 5, 210, 0, 0, 936, 943, 7, 11, 0, 0, 937, 938, 5, 198, 0, 0, 938, 940, 5, 210, 0, 0, 939, 941, 7, 11, 0, 0, 940, 939, 1, 0, 0, 0, 940, 941, 1, 0, 0, 0, 941, 943, 1, 0, 0, 0, 942, 934, 1, 0, 0, 0, 942, 935, 1, 0, 0, 0, 942, 937, 1, 0, 0, 0, 943, 107, 1, 0, 0, 0, 944, 946, 7, 12, 0, 0, 945, 944, 1, 0, 0, 0, 945, 946, 1, 0, 0, 0, 946, 953, 1, 0, 0, 0, 947, 954, 3, 106, 53, 0, 948, 954, 5, 197, 0, 0, 949, 954, 5, 198, 0, 0, 950, 954, 5, 199, 0, 0, 951, 954, 5, 82, 0, 0, 952, 954, 5, 113, 0, 0, 953, 947, 1, 0, 0, 0, 953, 948, 1, 0, 0, 0, 953, 949, 1, 0, 0, 0, 953, 950, 1, 0, 0, 0, 953, 951, 1, 0, 0, 0, 953, 952, 1, 0, 0, 0, 954, 109, 1, 0, 0, 0, 955, 959, 3, 108, 54, 0, 956, 959, 5, 200, 0, 0, 957, 959, 5, 116, 0, 0, 958, 955, 1, 0, 0, 0, 958, 956, 1, 0, 0, 0, 958, 957, 1, 0, 0, 0, 959, 111, 1, 0, 0, 0, 960, 961, 7, 13, 0, 0, 961, 113, 1, 0, 0, 0, 962, 963, 7, 14, 0, 0, 963, 115, 1, 0, 0, 0, 964, 965, 7, 15, 0, 0, 965, 117, 1, 0, 0, 0, 966, 969, 5, 195, 0, 0, 967, 969, 3, 116, 58, 0, 968, 966, 1, 0, 0, 0, 968, 967, 1, 0, 0, 0, 969, 119, 1, 0, 0, 0, 970, 974, 5, 195, 0, 0, 971, 974, 3, 112, 56, 0, 972, 974, 3, 114, 57, 0, 973, 970, 1, 0, 0, 0, 973, 971, 1, 0, 0, 0, 973, 972, 1, 0, 0, 0, 974, 121, 1, 0, 0, 0, 975, 976, 5, 200, 0, 0, 976, 977, 5, 212, 0, 0, 977, 978, 3, 108, 54, 0, 978, 123, 1, 0, 0, 0, 979, 980, 5, 218, 0, 0, 980, 981, 3, 120, 60, 0, 981, 982, 5, 234, 0, 0, 982, 125, 1, 0, 0, 0, 121, 129, 139, 147, 151, 154, 158, 161, 165, 168, 171, 174, 177, 181, 185, 188, 191, 194, 198, 201, 210, 216, 237, 254, 271, 277, 283, 294, 296, 307, 310, 316, 324, 330, 332, 336, 341, 344, 347, 351, 355, 358, 360, 363, 367, 371, 374, 376, 378, 383, 394, 400, 407, 412, 416, 420, 426, 428, 435, 443, 446, 449, 468, 482, 498, 510, 522, 530, 534, 541, 547, 556, 560, 591, 608, 620, 630, 633, 637, 640, 653, 670, 674, 680, 687, 699, 703, 706, 715, 729, 756, 765, 767, 769, 777, 782, 790, 800, 803, 813, 824, 829, 836, 849, 856, 869, 875, 878, 885, 897, 903, 907, 913, 920, 929, 940, 942, 945, 953, 958, 968, 973] \ No newline at end of file +[4, 1, 242, 979, 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, 1, 0, 1, 0, 1, 0, 3, 0, 128, 8, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 136, 8, 1, 10, 1, 12, 1, 139, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 147, 8, 2, 1, 3, 3, 3, 150, 8, 3, 1, 3, 1, 3, 3, 3, 154, 8, 3, 1, 3, 3, 3, 157, 8, 3, 1, 3, 1, 3, 3, 3, 161, 8, 3, 1, 3, 3, 3, 164, 8, 3, 1, 3, 3, 3, 167, 8, 3, 1, 3, 3, 3, 170, 8, 3, 1, 3, 3, 3, 173, 8, 3, 1, 3, 1, 3, 3, 3, 177, 8, 3, 1, 3, 1, 3, 3, 3, 181, 8, 3, 1, 3, 3, 3, 184, 8, 3, 1, 3, 3, 3, 187, 8, 3, 1, 3, 3, 3, 190, 8, 3, 1, 3, 1, 3, 3, 3, 194, 8, 3, 1, 3, 3, 3, 197, 8, 3, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 206, 8, 5, 1, 6, 1, 6, 1, 6, 1, 7, 3, 7, 212, 8, 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, 8, 1, 8, 1, 8, 1, 8, 5, 8, 231, 8, 8, 10, 8, 12, 8, 234, 9, 8, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 250, 8, 11, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 267, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 273, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 279, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 290, 8, 15, 3, 15, 292, 8, 15, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 3, 18, 303, 8, 18, 1, 18, 3, 18, 306, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 312, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 320, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 326, 8, 18, 10, 18, 12, 18, 329, 9, 18, 1, 19, 3, 19, 332, 8, 19, 1, 19, 1, 19, 1, 19, 3, 19, 337, 8, 19, 1, 19, 3, 19, 340, 8, 19, 1, 19, 3, 19, 343, 8, 19, 1, 19, 1, 19, 3, 19, 347, 8, 19, 1, 19, 1, 19, 3, 19, 351, 8, 19, 1, 19, 3, 19, 354, 8, 19, 3, 19, 356, 8, 19, 1, 19, 3, 19, 359, 8, 19, 1, 19, 1, 19, 3, 19, 363, 8, 19, 1, 19, 1, 19, 3, 19, 367, 8, 19, 1, 19, 3, 19, 370, 8, 19, 3, 19, 372, 8, 19, 3, 19, 374, 8, 19, 1, 20, 1, 20, 1, 20, 3, 20, 379, 8, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 3, 21, 390, 8, 21, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 396, 8, 22, 1, 23, 1, 23, 1, 23, 5, 23, 401, 8, 23, 10, 23, 12, 23, 404, 9, 23, 1, 24, 1, 24, 3, 24, 408, 8, 24, 1, 24, 1, 24, 3, 24, 412, 8, 24, 1, 24, 1, 24, 3, 24, 416, 8, 24, 1, 25, 1, 25, 1, 25, 1, 25, 3, 25, 422, 8, 25, 3, 25, 424, 8, 25, 1, 26, 1, 26, 1, 26, 5, 26, 429, 8, 26, 10, 26, 12, 26, 432, 9, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 3, 28, 439, 8, 28, 1, 28, 3, 28, 442, 8, 28, 1, 28, 3, 28, 445, 8, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 464, 8, 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, 3, 33, 478, 8, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 492, 8, 35, 10, 35, 12, 35, 495, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 504, 8, 35, 10, 35, 12, 35, 507, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 516, 8, 35, 10, 35, 12, 35, 519, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 526, 8, 35, 1, 35, 1, 35, 3, 35, 530, 8, 35, 1, 36, 1, 36, 1, 36, 5, 36, 535, 8, 36, 10, 36, 12, 36, 538, 9, 36, 1, 37, 1, 37, 1, 37, 3, 37, 543, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 4, 37, 550, 8, 37, 11, 37, 12, 37, 551, 1, 37, 1, 37, 3, 37, 556, 8, 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, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 587, 8, 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, 604, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 616, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 626, 8, 37, 1, 37, 3, 37, 629, 8, 37, 1, 37, 1, 37, 3, 37, 633, 8, 37, 1, 37, 3, 37, 636, 8, 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, 649, 8, 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, 666, 8, 37, 1, 37, 1, 37, 3, 37, 670, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 676, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 683, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 695, 8, 37, 1, 37, 1, 37, 3, 37, 699, 8, 37, 1, 37, 3, 37, 702, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 711, 8, 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, 725, 8, 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, 752, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 761, 8, 37, 5, 37, 763, 8, 37, 10, 37, 12, 37, 766, 9, 37, 1, 38, 1, 38, 1, 38, 5, 38, 771, 8, 38, 10, 38, 12, 38, 774, 9, 38, 1, 39, 1, 39, 3, 39, 778, 8, 39, 1, 40, 1, 40, 1, 40, 1, 40, 5, 40, 784, 8, 40, 10, 40, 12, 40, 787, 9, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 5, 40, 794, 8, 40, 10, 40, 12, 40, 797, 9, 40, 3, 40, 799, 8, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 5, 41, 807, 8, 41, 10, 41, 12, 41, 810, 9, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 5, 41, 818, 8, 41, 10, 41, 12, 41, 821, 9, 41, 1, 41, 1, 41, 3, 41, 825, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 832, 8, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 845, 8, 42, 1, 43, 1, 43, 1, 43, 5, 43, 850, 8, 43, 10, 43, 12, 43, 853, 9, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 3, 44, 865, 8, 44, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 871, 8, 45, 1, 45, 3, 45, 874, 8, 45, 1, 46, 1, 46, 1, 46, 5, 46, 879, 8, 46, 10, 46, 12, 46, 882, 9, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 893, 8, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 899, 8, 47, 5, 47, 901, 8, 47, 10, 47, 12, 47, 904, 9, 47, 1, 48, 1, 48, 1, 48, 3, 48, 909, 8, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 3, 49, 916, 8, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 5, 50, 923, 8, 50, 10, 50, 12, 50, 926, 9, 50, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 3, 52, 936, 8, 52, 3, 52, 938, 8, 52, 1, 53, 3, 53, 941, 8, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 3, 53, 949, 8, 53, 1, 54, 1, 54, 1, 54, 3, 54, 954, 8, 54, 1, 55, 1, 55, 1, 56, 1, 56, 1, 57, 1, 57, 1, 58, 1, 58, 3, 58, 964, 8, 58, 1, 59, 1, 59, 1, 59, 3, 59, 969, 8, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 0, 3, 36, 74, 94, 62, 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, 0, 16, 2, 0, 32, 32, 141, 141, 2, 0, 84, 84, 96, 96, 3, 0, 4, 4, 8, 8, 12, 12, 4, 0, 4, 4, 7, 8, 12, 12, 147, 147, 2, 0, 96, 96, 140, 140, 2, 0, 4, 4, 8, 8, 2, 0, 11, 11, 42, 43, 2, 0, 62, 62, 93, 93, 2, 0, 133, 133, 143, 143, 3, 0, 17, 17, 95, 95, 170, 170, 2, 0, 79, 79, 98, 98, 1, 0, 197, 198, 2, 0, 208, 208, 228, 228, 8, 0, 37, 37, 76, 76, 108, 108, 110, 110, 132, 132, 145, 145, 185, 185, 190, 190, 13, 0, 2, 24, 26, 36, 38, 75, 77, 81, 83, 107, 109, 109, 111, 112, 114, 115, 117, 130, 133, 144, 146, 184, 186, 189, 191, 192, 4, 0, 36, 36, 62, 62, 77, 77, 91, 91, 1107, 0, 127, 1, 0, 0, 0, 2, 131, 1, 0, 0, 0, 4, 146, 1, 0, 0, 0, 6, 149, 1, 0, 0, 0, 8, 198, 1, 0, 0, 0, 10, 201, 1, 0, 0, 0, 12, 207, 1, 0, 0, 0, 14, 211, 1, 0, 0, 0, 16, 217, 1, 0, 0, 0, 18, 235, 1, 0, 0, 0, 20, 238, 1, 0, 0, 0, 22, 241, 1, 0, 0, 0, 24, 251, 1, 0, 0, 0, 26, 254, 1, 0, 0, 0, 28, 258, 1, 0, 0, 0, 30, 291, 1, 0, 0, 0, 32, 293, 1, 0, 0, 0, 34, 296, 1, 0, 0, 0, 36, 311, 1, 0, 0, 0, 38, 373, 1, 0, 0, 0, 40, 378, 1, 0, 0, 0, 42, 389, 1, 0, 0, 0, 44, 391, 1, 0, 0, 0, 46, 397, 1, 0, 0, 0, 48, 405, 1, 0, 0, 0, 50, 423, 1, 0, 0, 0, 52, 425, 1, 0, 0, 0, 54, 433, 1, 0, 0, 0, 56, 438, 1, 0, 0, 0, 58, 446, 1, 0, 0, 0, 60, 450, 1, 0, 0, 0, 62, 454, 1, 0, 0, 0, 64, 463, 1, 0, 0, 0, 66, 477, 1, 0, 0, 0, 68, 479, 1, 0, 0, 0, 70, 529, 1, 0, 0, 0, 72, 531, 1, 0, 0, 0, 74, 669, 1, 0, 0, 0, 76, 767, 1, 0, 0, 0, 78, 777, 1, 0, 0, 0, 80, 798, 1, 0, 0, 0, 82, 831, 1, 0, 0, 0, 84, 844, 1, 0, 0, 0, 86, 846, 1, 0, 0, 0, 88, 864, 1, 0, 0, 0, 90, 873, 1, 0, 0, 0, 92, 875, 1, 0, 0, 0, 94, 892, 1, 0, 0, 0, 96, 905, 1, 0, 0, 0, 98, 915, 1, 0, 0, 0, 100, 919, 1, 0, 0, 0, 102, 927, 1, 0, 0, 0, 104, 937, 1, 0, 0, 0, 106, 940, 1, 0, 0, 0, 108, 953, 1, 0, 0, 0, 110, 955, 1, 0, 0, 0, 112, 957, 1, 0, 0, 0, 114, 959, 1, 0, 0, 0, 116, 963, 1, 0, 0, 0, 118, 968, 1, 0, 0, 0, 120, 970, 1, 0, 0, 0, 122, 974, 1, 0, 0, 0, 124, 128, 3, 2, 1, 0, 125, 128, 3, 6, 3, 0, 126, 128, 3, 82, 41, 0, 127, 124, 1, 0, 0, 0, 127, 125, 1, 0, 0, 0, 127, 126, 1, 0, 0, 0, 128, 129, 1, 0, 0, 0, 129, 130, 5, 0, 0, 1, 130, 1, 1, 0, 0, 0, 131, 137, 3, 4, 2, 0, 132, 133, 5, 176, 0, 0, 133, 134, 5, 4, 0, 0, 134, 136, 3, 4, 2, 0, 135, 132, 1, 0, 0, 0, 136, 139, 1, 0, 0, 0, 137, 135, 1, 0, 0, 0, 137, 138, 1, 0, 0, 0, 138, 3, 1, 0, 0, 0, 139, 137, 1, 0, 0, 0, 140, 147, 3, 6, 3, 0, 141, 142, 5, 220, 0, 0, 142, 143, 3, 2, 1, 0, 143, 144, 5, 236, 0, 0, 144, 147, 1, 0, 0, 0, 145, 147, 3, 122, 61, 0, 146, 140, 1, 0, 0, 0, 146, 141, 1, 0, 0, 0, 146, 145, 1, 0, 0, 0, 147, 5, 1, 0, 0, 0, 148, 150, 3, 8, 4, 0, 149, 148, 1, 0, 0, 0, 149, 150, 1, 0, 0, 0, 150, 151, 1, 0, 0, 0, 151, 153, 5, 146, 0, 0, 152, 154, 5, 49, 0, 0, 153, 152, 1, 0, 0, 0, 153, 154, 1, 0, 0, 0, 154, 156, 1, 0, 0, 0, 155, 157, 3, 10, 5, 0, 156, 155, 1, 0, 0, 0, 156, 157, 1, 0, 0, 0, 157, 158, 1, 0, 0, 0, 158, 160, 3, 72, 36, 0, 159, 161, 3, 12, 6, 0, 160, 159, 1, 0, 0, 0, 160, 161, 1, 0, 0, 0, 161, 163, 1, 0, 0, 0, 162, 164, 3, 14, 7, 0, 163, 162, 1, 0, 0, 0, 163, 164, 1, 0, 0, 0, 164, 166, 1, 0, 0, 0, 165, 167, 3, 18, 9, 0, 166, 165, 1, 0, 0, 0, 166, 167, 1, 0, 0, 0, 167, 169, 1, 0, 0, 0, 168, 170, 3, 20, 10, 0, 169, 168, 1, 0, 0, 0, 169, 170, 1, 0, 0, 0, 170, 172, 1, 0, 0, 0, 171, 173, 3, 22, 11, 0, 172, 171, 1, 0, 0, 0, 172, 173, 1, 0, 0, 0, 173, 176, 1, 0, 0, 0, 174, 175, 5, 189, 0, 0, 175, 177, 7, 0, 0, 0, 176, 174, 1, 0, 0, 0, 176, 177, 1, 0, 0, 0, 177, 180, 1, 0, 0, 0, 178, 179, 5, 189, 0, 0, 179, 181, 5, 169, 0, 0, 180, 178, 1, 0, 0, 0, 180, 181, 1, 0, 0, 0, 181, 183, 1, 0, 0, 0, 182, 184, 3, 24, 12, 0, 183, 182, 1, 0, 0, 0, 183, 184, 1, 0, 0, 0, 184, 186, 1, 0, 0, 0, 185, 187, 3, 16, 8, 0, 186, 185, 1, 0, 0, 0, 186, 187, 1, 0, 0, 0, 187, 189, 1, 0, 0, 0, 188, 190, 3, 26, 13, 0, 189, 188, 1, 0, 0, 0, 189, 190, 1, 0, 0, 0, 190, 193, 1, 0, 0, 0, 191, 194, 3, 30, 15, 0, 192, 194, 3, 32, 16, 0, 193, 191, 1, 0, 0, 0, 193, 192, 1, 0, 0, 0, 193, 194, 1, 0, 0, 0, 194, 196, 1, 0, 0, 0, 195, 197, 3, 34, 17, 0, 196, 195, 1, 0, 0, 0, 196, 197, 1, 0, 0, 0, 197, 7, 1, 0, 0, 0, 198, 199, 5, 189, 0, 0, 199, 200, 3, 86, 43, 0, 200, 9, 1, 0, 0, 0, 201, 202, 5, 168, 0, 0, 202, 205, 5, 198, 0, 0, 203, 204, 5, 189, 0, 0, 204, 206, 5, 164, 0, 0, 205, 203, 1, 0, 0, 0, 205, 206, 1, 0, 0, 0, 206, 11, 1, 0, 0, 0, 207, 208, 5, 68, 0, 0, 208, 209, 3, 36, 18, 0, 209, 13, 1, 0, 0, 0, 210, 212, 7, 1, 0, 0, 211, 210, 1, 0, 0, 0, 211, 212, 1, 0, 0, 0, 212, 213, 1, 0, 0, 0, 213, 214, 5, 9, 0, 0, 214, 215, 5, 90, 0, 0, 215, 216, 3, 72, 36, 0, 216, 15, 1, 0, 0, 0, 217, 218, 5, 188, 0, 0, 218, 219, 3, 118, 59, 0, 219, 220, 5, 10, 0, 0, 220, 221, 5, 220, 0, 0, 221, 222, 3, 56, 28, 0, 222, 232, 5, 236, 0, 0, 223, 224, 5, 206, 0, 0, 224, 225, 3, 118, 59, 0, 225, 226, 5, 10, 0, 0, 226, 227, 5, 220, 0, 0, 227, 228, 3, 56, 28, 0, 228, 229, 5, 236, 0, 0, 229, 231, 1, 0, 0, 0, 230, 223, 1, 0, 0, 0, 231, 234, 1, 0, 0, 0, 232, 230, 1, 0, 0, 0, 232, 233, 1, 0, 0, 0, 233, 17, 1, 0, 0, 0, 234, 232, 1, 0, 0, 0, 235, 236, 5, 129, 0, 0, 236, 237, 3, 74, 37, 0, 237, 19, 1, 0, 0, 0, 238, 239, 5, 187, 0, 0, 239, 240, 3, 74, 37, 0, 240, 21, 1, 0, 0, 0, 241, 242, 5, 73, 0, 0, 242, 249, 5, 18, 0, 0, 243, 244, 7, 0, 0, 0, 244, 245, 5, 220, 0, 0, 245, 246, 3, 72, 36, 0, 246, 247, 5, 236, 0, 0, 247, 250, 1, 0, 0, 0, 248, 250, 3, 72, 36, 0, 249, 243, 1, 0, 0, 0, 249, 248, 1, 0, 0, 0, 250, 23, 1, 0, 0, 0, 251, 252, 5, 74, 0, 0, 252, 253, 3, 74, 37, 0, 253, 25, 1, 0, 0, 0, 254, 255, 5, 122, 0, 0, 255, 256, 5, 18, 0, 0, 256, 257, 3, 46, 23, 0, 257, 27, 1, 0, 0, 0, 258, 259, 5, 122, 0, 0, 259, 260, 5, 18, 0, 0, 260, 261, 3, 72, 36, 0, 261, 29, 1, 0, 0, 0, 262, 263, 5, 99, 0, 0, 263, 266, 3, 74, 37, 0, 264, 265, 5, 206, 0, 0, 265, 267, 3, 74, 37, 0, 266, 264, 1, 0, 0, 0, 266, 267, 1, 0, 0, 0, 267, 272, 1, 0, 0, 0, 268, 269, 5, 189, 0, 0, 269, 273, 5, 164, 0, 0, 270, 271, 5, 18, 0, 0, 271, 273, 3, 72, 36, 0, 272, 268, 1, 0, 0, 0, 272, 270, 1, 0, 0, 0, 272, 273, 1, 0, 0, 0, 273, 292, 1, 0, 0, 0, 274, 275, 5, 99, 0, 0, 275, 278, 3, 74, 37, 0, 276, 277, 5, 189, 0, 0, 277, 279, 5, 164, 0, 0, 278, 276, 1, 0, 0, 0, 278, 279, 1, 0, 0, 0, 279, 280, 1, 0, 0, 0, 280, 281, 5, 118, 0, 0, 281, 282, 3, 74, 37, 0, 282, 292, 1, 0, 0, 0, 283, 284, 5, 99, 0, 0, 284, 285, 3, 74, 37, 0, 285, 286, 5, 118, 0, 0, 286, 289, 3, 74, 37, 0, 287, 288, 5, 18, 0, 0, 288, 290, 3, 72, 36, 0, 289, 287, 1, 0, 0, 0, 289, 290, 1, 0, 0, 0, 290, 292, 1, 0, 0, 0, 291, 262, 1, 0, 0, 0, 291, 274, 1, 0, 0, 0, 291, 283, 1, 0, 0, 0, 292, 31, 1, 0, 0, 0, 293, 294, 5, 118, 0, 0, 294, 295, 3, 74, 37, 0, 295, 33, 1, 0, 0, 0, 296, 297, 5, 150, 0, 0, 297, 298, 3, 52, 26, 0, 298, 35, 1, 0, 0, 0, 299, 300, 6, 18, -1, 0, 300, 302, 3, 94, 47, 0, 301, 303, 5, 61, 0, 0, 302, 301, 1, 0, 0, 0, 302, 303, 1, 0, 0, 0, 303, 305, 1, 0, 0, 0, 304, 306, 3, 44, 22, 0, 305, 304, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 312, 1, 0, 0, 0, 307, 308, 5, 220, 0, 0, 308, 309, 3, 36, 18, 0, 309, 310, 5, 236, 0, 0, 310, 312, 1, 0, 0, 0, 311, 299, 1, 0, 0, 0, 311, 307, 1, 0, 0, 0, 312, 327, 1, 0, 0, 0, 313, 314, 10, 3, 0, 0, 314, 315, 3, 40, 20, 0, 315, 316, 3, 36, 18, 4, 316, 326, 1, 0, 0, 0, 317, 319, 10, 4, 0, 0, 318, 320, 3, 38, 19, 0, 319, 318, 1, 0, 0, 0, 319, 320, 1, 0, 0, 0, 320, 321, 1, 0, 0, 0, 321, 322, 5, 90, 0, 0, 322, 323, 3, 36, 18, 0, 323, 324, 3, 42, 21, 0, 324, 326, 1, 0, 0, 0, 325, 313, 1, 0, 0, 0, 325, 317, 1, 0, 0, 0, 326, 329, 1, 0, 0, 0, 327, 325, 1, 0, 0, 0, 327, 328, 1, 0, 0, 0, 328, 37, 1, 0, 0, 0, 329, 327, 1, 0, 0, 0, 330, 332, 7, 2, 0, 0, 331, 330, 1, 0, 0, 0, 331, 332, 1, 0, 0, 0, 332, 333, 1, 0, 0, 0, 333, 340, 5, 84, 0, 0, 334, 336, 5, 84, 0, 0, 335, 337, 7, 2, 0, 0, 336, 335, 1, 0, 0, 0, 336, 337, 1, 0, 0, 0, 337, 340, 1, 0, 0, 0, 338, 340, 7, 2, 0, 0, 339, 331, 1, 0, 0, 0, 339, 334, 1, 0, 0, 0, 339, 338, 1, 0, 0, 0, 340, 374, 1, 0, 0, 0, 341, 343, 7, 3, 0, 0, 342, 341, 1, 0, 0, 0, 342, 343, 1, 0, 0, 0, 343, 344, 1, 0, 0, 0, 344, 346, 7, 4, 0, 0, 345, 347, 5, 123, 0, 0, 346, 345, 1, 0, 0, 0, 346, 347, 1, 0, 0, 0, 347, 356, 1, 0, 0, 0, 348, 350, 7, 4, 0, 0, 349, 351, 5, 123, 0, 0, 350, 349, 1, 0, 0, 0, 350, 351, 1, 0, 0, 0, 351, 353, 1, 0, 0, 0, 352, 354, 7, 3, 0, 0, 353, 352, 1, 0, 0, 0, 353, 354, 1, 0, 0, 0, 354, 356, 1, 0, 0, 0, 355, 342, 1, 0, 0, 0, 355, 348, 1, 0, 0, 0, 356, 374, 1, 0, 0, 0, 357, 359, 7, 5, 0, 0, 358, 357, 1, 0, 0, 0, 358, 359, 1, 0, 0, 0, 359, 360, 1, 0, 0, 0, 360, 362, 5, 69, 0, 0, 361, 363, 5, 123, 0, 0, 362, 361, 1, 0, 0, 0, 362, 363, 1, 0, 0, 0, 363, 372, 1, 0, 0, 0, 364, 366, 5, 69, 0, 0, 365, 367, 5, 123, 0, 0, 366, 365, 1, 0, 0, 0, 366, 367, 1, 0, 0, 0, 367, 369, 1, 0, 0, 0, 368, 370, 7, 5, 0, 0, 369, 368, 1, 0, 0, 0, 369, 370, 1, 0, 0, 0, 370, 372, 1, 0, 0, 0, 371, 358, 1, 0, 0, 0, 371, 364, 1, 0, 0, 0, 372, 374, 1, 0, 0, 0, 373, 339, 1, 0, 0, 0, 373, 355, 1, 0, 0, 0, 373, 371, 1, 0, 0, 0, 374, 39, 1, 0, 0, 0, 375, 376, 5, 31, 0, 0, 376, 379, 5, 90, 0, 0, 377, 379, 5, 206, 0, 0, 378, 375, 1, 0, 0, 0, 378, 377, 1, 0, 0, 0, 379, 41, 1, 0, 0, 0, 380, 381, 5, 119, 0, 0, 381, 390, 3, 72, 36, 0, 382, 383, 5, 179, 0, 0, 383, 384, 5, 220, 0, 0, 384, 385, 3, 72, 36, 0, 385, 386, 5, 236, 0, 0, 386, 390, 1, 0, 0, 0, 387, 388, 5, 179, 0, 0, 388, 390, 3, 72, 36, 0, 389, 380, 1, 0, 0, 0, 389, 382, 1, 0, 0, 0, 389, 387, 1, 0, 0, 0, 390, 43, 1, 0, 0, 0, 391, 392, 5, 144, 0, 0, 392, 395, 3, 50, 25, 0, 393, 394, 5, 118, 0, 0, 394, 396, 3, 50, 25, 0, 395, 393, 1, 0, 0, 0, 395, 396, 1, 0, 0, 0, 396, 45, 1, 0, 0, 0, 397, 402, 3, 48, 24, 0, 398, 399, 5, 206, 0, 0, 399, 401, 3, 48, 24, 0, 400, 398, 1, 0, 0, 0, 401, 404, 1, 0, 0, 0, 402, 400, 1, 0, 0, 0, 402, 403, 1, 0, 0, 0, 403, 47, 1, 0, 0, 0, 404, 402, 1, 0, 0, 0, 405, 407, 3, 74, 37, 0, 406, 408, 7, 6, 0, 0, 407, 406, 1, 0, 0, 0, 407, 408, 1, 0, 0, 0, 408, 411, 1, 0, 0, 0, 409, 410, 5, 117, 0, 0, 410, 412, 7, 7, 0, 0, 411, 409, 1, 0, 0, 0, 411, 412, 1, 0, 0, 0, 412, 415, 1, 0, 0, 0, 413, 414, 5, 26, 0, 0, 414, 416, 5, 200, 0, 0, 415, 413, 1, 0, 0, 0, 415, 416, 1, 0, 0, 0, 416, 49, 1, 0, 0, 0, 417, 424, 3, 122, 61, 0, 418, 421, 3, 106, 53, 0, 419, 420, 5, 238, 0, 0, 420, 422, 3, 106, 53, 0, 421, 419, 1, 0, 0, 0, 421, 422, 1, 0, 0, 0, 422, 424, 1, 0, 0, 0, 423, 417, 1, 0, 0, 0, 423, 418, 1, 0, 0, 0, 424, 51, 1, 0, 0, 0, 425, 430, 3, 54, 27, 0, 426, 427, 5, 206, 0, 0, 427, 429, 3, 54, 27, 0, 428, 426, 1, 0, 0, 0, 429, 432, 1, 0, 0, 0, 430, 428, 1, 0, 0, 0, 430, 431, 1, 0, 0, 0, 431, 53, 1, 0, 0, 0, 432, 430, 1, 0, 0, 0, 433, 434, 3, 118, 59, 0, 434, 435, 5, 212, 0, 0, 435, 436, 3, 108, 54, 0, 436, 55, 1, 0, 0, 0, 437, 439, 3, 58, 29, 0, 438, 437, 1, 0, 0, 0, 438, 439, 1, 0, 0, 0, 439, 441, 1, 0, 0, 0, 440, 442, 3, 60, 30, 0, 441, 440, 1, 0, 0, 0, 441, 442, 1, 0, 0, 0, 442, 444, 1, 0, 0, 0, 443, 445, 3, 62, 31, 0, 444, 443, 1, 0, 0, 0, 444, 445, 1, 0, 0, 0, 445, 57, 1, 0, 0, 0, 446, 447, 5, 126, 0, 0, 447, 448, 5, 18, 0, 0, 448, 449, 3, 72, 36, 0, 449, 59, 1, 0, 0, 0, 450, 451, 5, 122, 0, 0, 451, 452, 5, 18, 0, 0, 452, 453, 3, 46, 23, 0, 453, 61, 1, 0, 0, 0, 454, 455, 7, 8, 0, 0, 455, 456, 3, 64, 32, 0, 456, 63, 1, 0, 0, 0, 457, 464, 3, 66, 33, 0, 458, 459, 5, 16, 0, 0, 459, 460, 3, 66, 33, 0, 460, 461, 5, 6, 0, 0, 461, 462, 3, 66, 33, 0, 462, 464, 1, 0, 0, 0, 463, 457, 1, 0, 0, 0, 463, 458, 1, 0, 0, 0, 464, 65, 1, 0, 0, 0, 465, 466, 5, 33, 0, 0, 466, 478, 5, 142, 0, 0, 467, 468, 5, 175, 0, 0, 468, 478, 5, 128, 0, 0, 469, 470, 5, 175, 0, 0, 470, 478, 5, 64, 0, 0, 471, 472, 3, 106, 53, 0, 472, 473, 5, 128, 0, 0, 473, 478, 1, 0, 0, 0, 474, 475, 3, 106, 53, 0, 475, 476, 5, 64, 0, 0, 476, 478, 1, 0, 0, 0, 477, 465, 1, 0, 0, 0, 477, 467, 1, 0, 0, 0, 477, 469, 1, 0, 0, 0, 477, 471, 1, 0, 0, 0, 477, 474, 1, 0, 0, 0, 478, 67, 1, 0, 0, 0, 479, 480, 3, 74, 37, 0, 480, 481, 5, 0, 0, 1, 481, 69, 1, 0, 0, 0, 482, 530, 3, 118, 59, 0, 483, 484, 3, 118, 59, 0, 484, 485, 5, 220, 0, 0, 485, 486, 3, 118, 59, 0, 486, 493, 3, 70, 35, 0, 487, 488, 5, 206, 0, 0, 488, 489, 3, 118, 59, 0, 489, 490, 3, 70, 35, 0, 490, 492, 1, 0, 0, 0, 491, 487, 1, 0, 0, 0, 492, 495, 1, 0, 0, 0, 493, 491, 1, 0, 0, 0, 493, 494, 1, 0, 0, 0, 494, 496, 1, 0, 0, 0, 495, 493, 1, 0, 0, 0, 496, 497, 5, 236, 0, 0, 497, 530, 1, 0, 0, 0, 498, 499, 3, 118, 59, 0, 499, 500, 5, 220, 0, 0, 500, 505, 3, 120, 60, 0, 501, 502, 5, 206, 0, 0, 502, 504, 3, 120, 60, 0, 503, 501, 1, 0, 0, 0, 504, 507, 1, 0, 0, 0, 505, 503, 1, 0, 0, 0, 505, 506, 1, 0, 0, 0, 506, 508, 1, 0, 0, 0, 507, 505, 1, 0, 0, 0, 508, 509, 5, 236, 0, 0, 509, 530, 1, 0, 0, 0, 510, 511, 3, 118, 59, 0, 511, 512, 5, 220, 0, 0, 512, 517, 3, 70, 35, 0, 513, 514, 5, 206, 0, 0, 514, 516, 3, 70, 35, 0, 515, 513, 1, 0, 0, 0, 516, 519, 1, 0, 0, 0, 517, 515, 1, 0, 0, 0, 517, 518, 1, 0, 0, 0, 518, 520, 1, 0, 0, 0, 519, 517, 1, 0, 0, 0, 520, 521, 5, 236, 0, 0, 521, 530, 1, 0, 0, 0, 522, 523, 3, 118, 59, 0, 523, 525, 5, 220, 0, 0, 524, 526, 3, 72, 36, 0, 525, 524, 1, 0, 0, 0, 525, 526, 1, 0, 0, 0, 526, 527, 1, 0, 0, 0, 527, 528, 5, 236, 0, 0, 528, 530, 1, 0, 0, 0, 529, 482, 1, 0, 0, 0, 529, 483, 1, 0, 0, 0, 529, 498, 1, 0, 0, 0, 529, 510, 1, 0, 0, 0, 529, 522, 1, 0, 0, 0, 530, 71, 1, 0, 0, 0, 531, 536, 3, 74, 37, 0, 532, 533, 5, 206, 0, 0, 533, 535, 3, 74, 37, 0, 534, 532, 1, 0, 0, 0, 535, 538, 1, 0, 0, 0, 536, 534, 1, 0, 0, 0, 536, 537, 1, 0, 0, 0, 537, 73, 1, 0, 0, 0, 538, 536, 1, 0, 0, 0, 539, 540, 6, 37, -1, 0, 540, 542, 5, 19, 0, 0, 541, 543, 3, 74, 37, 0, 542, 541, 1, 0, 0, 0, 542, 543, 1, 0, 0, 0, 543, 549, 1, 0, 0, 0, 544, 545, 5, 186, 0, 0, 545, 546, 3, 74, 37, 0, 546, 547, 5, 163, 0, 0, 547, 548, 3, 74, 37, 0, 548, 550, 1, 0, 0, 0, 549, 544, 1, 0, 0, 0, 550, 551, 1, 0, 0, 0, 551, 549, 1, 0, 0, 0, 551, 552, 1, 0, 0, 0, 552, 555, 1, 0, 0, 0, 553, 554, 5, 52, 0, 0, 554, 556, 3, 74, 37, 0, 555, 553, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 557, 1, 0, 0, 0, 557, 558, 5, 53, 0, 0, 558, 670, 1, 0, 0, 0, 559, 560, 5, 20, 0, 0, 560, 561, 5, 220, 0, 0, 561, 562, 3, 74, 37, 0, 562, 563, 5, 10, 0, 0, 563, 564, 3, 70, 35, 0, 564, 565, 5, 236, 0, 0, 565, 670, 1, 0, 0, 0, 566, 567, 5, 36, 0, 0, 567, 670, 5, 200, 0, 0, 568, 569, 5, 59, 0, 0, 569, 570, 5, 220, 0, 0, 570, 571, 3, 110, 55, 0, 571, 572, 5, 68, 0, 0, 572, 573, 3, 74, 37, 0, 573, 574, 5, 236, 0, 0, 574, 670, 1, 0, 0, 0, 575, 576, 5, 86, 0, 0, 576, 577, 3, 74, 37, 0, 577, 578, 3, 110, 55, 0, 578, 670, 1, 0, 0, 0, 579, 580, 5, 155, 0, 0, 580, 581, 5, 220, 0, 0, 581, 582, 3, 74, 37, 0, 582, 583, 5, 68, 0, 0, 583, 586, 3, 74, 37, 0, 584, 585, 5, 65, 0, 0, 585, 587, 3, 74, 37, 0, 586, 584, 1, 0, 0, 0, 586, 587, 1, 0, 0, 0, 587, 588, 1, 0, 0, 0, 588, 589, 5, 236, 0, 0, 589, 670, 1, 0, 0, 0, 590, 591, 5, 166, 0, 0, 591, 670, 5, 200, 0, 0, 592, 593, 5, 171, 0, 0, 593, 594, 5, 220, 0, 0, 594, 595, 7, 9, 0, 0, 595, 596, 5, 200, 0, 0, 596, 597, 5, 68, 0, 0, 597, 598, 3, 74, 37, 0, 598, 599, 5, 236, 0, 0, 599, 670, 1, 0, 0, 0, 600, 601, 3, 118, 59, 0, 601, 603, 5, 220, 0, 0, 602, 604, 3, 72, 36, 0, 603, 602, 1, 0, 0, 0, 603, 604, 1, 0, 0, 0, 604, 605, 1, 0, 0, 0, 605, 606, 5, 236, 0, 0, 606, 607, 1, 0, 0, 0, 607, 608, 5, 125, 0, 0, 608, 609, 5, 220, 0, 0, 609, 610, 3, 56, 28, 0, 610, 611, 5, 236, 0, 0, 611, 670, 1, 0, 0, 0, 612, 613, 3, 118, 59, 0, 613, 615, 5, 220, 0, 0, 614, 616, 3, 72, 36, 0, 615, 614, 1, 0, 0, 0, 615, 616, 1, 0, 0, 0, 616, 617, 1, 0, 0, 0, 617, 618, 5, 236, 0, 0, 618, 619, 1, 0, 0, 0, 619, 620, 5, 125, 0, 0, 620, 621, 3, 118, 59, 0, 621, 670, 1, 0, 0, 0, 622, 628, 3, 118, 59, 0, 623, 625, 5, 220, 0, 0, 624, 626, 3, 72, 36, 0, 625, 624, 1, 0, 0, 0, 625, 626, 1, 0, 0, 0, 626, 627, 1, 0, 0, 0, 627, 629, 5, 236, 0, 0, 628, 623, 1, 0, 0, 0, 628, 629, 1, 0, 0, 0, 629, 630, 1, 0, 0, 0, 630, 632, 5, 220, 0, 0, 631, 633, 5, 49, 0, 0, 632, 631, 1, 0, 0, 0, 632, 633, 1, 0, 0, 0, 633, 635, 1, 0, 0, 0, 634, 636, 3, 76, 38, 0, 635, 634, 1, 0, 0, 0, 635, 636, 1, 0, 0, 0, 636, 637, 1, 0, 0, 0, 637, 638, 5, 236, 0, 0, 638, 670, 1, 0, 0, 0, 639, 670, 3, 82, 41, 0, 640, 670, 3, 108, 54, 0, 641, 642, 5, 208, 0, 0, 642, 670, 3, 74, 37, 18, 643, 644, 5, 115, 0, 0, 644, 670, 3, 74, 37, 12, 645, 646, 3, 98, 49, 0, 646, 647, 5, 210, 0, 0, 647, 649, 1, 0, 0, 0, 648, 645, 1, 0, 0, 0, 648, 649, 1, 0, 0, 0, 649, 650, 1, 0, 0, 0, 650, 670, 5, 202, 0, 0, 651, 652, 5, 220, 0, 0, 652, 653, 3, 2, 1, 0, 653, 654, 5, 236, 0, 0, 654, 670, 1, 0, 0, 0, 655, 656, 5, 220, 0, 0, 656, 657, 3, 74, 37, 0, 657, 658, 5, 236, 0, 0, 658, 670, 1, 0, 0, 0, 659, 660, 5, 220, 0, 0, 660, 661, 3, 72, 36, 0, 661, 662, 5, 236, 0, 0, 662, 670, 1, 0, 0, 0, 663, 665, 5, 219, 0, 0, 664, 666, 3, 72, 36, 0, 665, 664, 1, 0, 0, 0, 665, 666, 1, 0, 0, 0, 666, 667, 1, 0, 0, 0, 667, 670, 5, 235, 0, 0, 668, 670, 3, 90, 45, 0, 669, 539, 1, 0, 0, 0, 669, 559, 1, 0, 0, 0, 669, 566, 1, 0, 0, 0, 669, 568, 1, 0, 0, 0, 669, 575, 1, 0, 0, 0, 669, 579, 1, 0, 0, 0, 669, 590, 1, 0, 0, 0, 669, 592, 1, 0, 0, 0, 669, 600, 1, 0, 0, 0, 669, 612, 1, 0, 0, 0, 669, 622, 1, 0, 0, 0, 669, 639, 1, 0, 0, 0, 669, 640, 1, 0, 0, 0, 669, 641, 1, 0, 0, 0, 669, 643, 1, 0, 0, 0, 669, 648, 1, 0, 0, 0, 669, 651, 1, 0, 0, 0, 669, 655, 1, 0, 0, 0, 669, 659, 1, 0, 0, 0, 669, 663, 1, 0, 0, 0, 669, 668, 1, 0, 0, 0, 670, 764, 1, 0, 0, 0, 671, 675, 10, 17, 0, 0, 672, 676, 5, 202, 0, 0, 673, 676, 5, 238, 0, 0, 674, 676, 5, 227, 0, 0, 675, 672, 1, 0, 0, 0, 675, 673, 1, 0, 0, 0, 675, 674, 1, 0, 0, 0, 676, 677, 1, 0, 0, 0, 677, 763, 3, 74, 37, 18, 678, 682, 10, 16, 0, 0, 679, 683, 5, 228, 0, 0, 680, 683, 5, 208, 0, 0, 681, 683, 5, 207, 0, 0, 682, 679, 1, 0, 0, 0, 682, 680, 1, 0, 0, 0, 682, 681, 1, 0, 0, 0, 683, 684, 1, 0, 0, 0, 684, 763, 3, 74, 37, 17, 685, 710, 10, 15, 0, 0, 686, 711, 5, 211, 0, 0, 687, 711, 5, 212, 0, 0, 688, 711, 5, 223, 0, 0, 689, 711, 5, 221, 0, 0, 690, 711, 5, 222, 0, 0, 691, 711, 5, 213, 0, 0, 692, 711, 5, 214, 0, 0, 693, 695, 5, 115, 0, 0, 694, 693, 1, 0, 0, 0, 694, 695, 1, 0, 0, 0, 695, 696, 1, 0, 0, 0, 696, 698, 5, 80, 0, 0, 697, 699, 5, 25, 0, 0, 698, 697, 1, 0, 0, 0, 698, 699, 1, 0, 0, 0, 699, 711, 1, 0, 0, 0, 700, 702, 5, 115, 0, 0, 701, 700, 1, 0, 0, 0, 701, 702, 1, 0, 0, 0, 702, 703, 1, 0, 0, 0, 703, 711, 7, 10, 0, 0, 704, 711, 5, 232, 0, 0, 705, 711, 5, 233, 0, 0, 706, 711, 5, 225, 0, 0, 707, 711, 5, 216, 0, 0, 708, 711, 5, 217, 0, 0, 709, 711, 5, 224, 0, 0, 710, 686, 1, 0, 0, 0, 710, 687, 1, 0, 0, 0, 710, 688, 1, 0, 0, 0, 710, 689, 1, 0, 0, 0, 710, 690, 1, 0, 0, 0, 710, 691, 1, 0, 0, 0, 710, 692, 1, 0, 0, 0, 710, 694, 1, 0, 0, 0, 710, 701, 1, 0, 0, 0, 710, 704, 1, 0, 0, 0, 710, 705, 1, 0, 0, 0, 710, 706, 1, 0, 0, 0, 710, 707, 1, 0, 0, 0, 710, 708, 1, 0, 0, 0, 710, 709, 1, 0, 0, 0, 711, 712, 1, 0, 0, 0, 712, 763, 3, 74, 37, 16, 713, 714, 10, 13, 0, 0, 714, 715, 5, 226, 0, 0, 715, 763, 3, 74, 37, 14, 716, 717, 10, 11, 0, 0, 717, 718, 5, 6, 0, 0, 718, 763, 3, 74, 37, 12, 719, 720, 10, 10, 0, 0, 720, 721, 5, 121, 0, 0, 721, 763, 3, 74, 37, 11, 722, 724, 10, 9, 0, 0, 723, 725, 5, 115, 0, 0, 724, 723, 1, 0, 0, 0, 724, 725, 1, 0, 0, 0, 725, 726, 1, 0, 0, 0, 726, 727, 5, 16, 0, 0, 727, 728, 3, 74, 37, 0, 728, 729, 5, 6, 0, 0, 729, 730, 3, 74, 37, 10, 730, 763, 1, 0, 0, 0, 731, 732, 10, 8, 0, 0, 732, 733, 5, 229, 0, 0, 733, 734, 3, 74, 37, 0, 734, 735, 5, 205, 0, 0, 735, 736, 3, 74, 37, 8, 736, 763, 1, 0, 0, 0, 737, 738, 10, 21, 0, 0, 738, 739, 5, 219, 0, 0, 739, 740, 3, 74, 37, 0, 740, 741, 5, 235, 0, 0, 741, 763, 1, 0, 0, 0, 742, 743, 10, 20, 0, 0, 743, 744, 5, 210, 0, 0, 744, 763, 5, 198, 0, 0, 745, 746, 10, 19, 0, 0, 746, 747, 5, 210, 0, 0, 747, 763, 3, 118, 59, 0, 748, 749, 10, 14, 0, 0, 749, 751, 5, 88, 0, 0, 750, 752, 5, 115, 0, 0, 751, 750, 1, 0, 0, 0, 751, 752, 1, 0, 0, 0, 752, 753, 1, 0, 0, 0, 753, 763, 5, 116, 0, 0, 754, 760, 10, 7, 0, 0, 755, 761, 3, 116, 58, 0, 756, 757, 5, 10, 0, 0, 757, 761, 3, 118, 59, 0, 758, 759, 5, 10, 0, 0, 759, 761, 5, 200, 0, 0, 760, 755, 1, 0, 0, 0, 760, 756, 1, 0, 0, 0, 760, 758, 1, 0, 0, 0, 761, 763, 1, 0, 0, 0, 762, 671, 1, 0, 0, 0, 762, 678, 1, 0, 0, 0, 762, 685, 1, 0, 0, 0, 762, 713, 1, 0, 0, 0, 762, 716, 1, 0, 0, 0, 762, 719, 1, 0, 0, 0, 762, 722, 1, 0, 0, 0, 762, 731, 1, 0, 0, 0, 762, 737, 1, 0, 0, 0, 762, 742, 1, 0, 0, 0, 762, 745, 1, 0, 0, 0, 762, 748, 1, 0, 0, 0, 762, 754, 1, 0, 0, 0, 763, 766, 1, 0, 0, 0, 764, 762, 1, 0, 0, 0, 764, 765, 1, 0, 0, 0, 765, 75, 1, 0, 0, 0, 766, 764, 1, 0, 0, 0, 767, 772, 3, 78, 39, 0, 768, 769, 5, 206, 0, 0, 769, 771, 3, 78, 39, 0, 770, 768, 1, 0, 0, 0, 771, 774, 1, 0, 0, 0, 772, 770, 1, 0, 0, 0, 772, 773, 1, 0, 0, 0, 773, 77, 1, 0, 0, 0, 774, 772, 1, 0, 0, 0, 775, 778, 3, 80, 40, 0, 776, 778, 3, 74, 37, 0, 777, 775, 1, 0, 0, 0, 777, 776, 1, 0, 0, 0, 778, 79, 1, 0, 0, 0, 779, 780, 5, 220, 0, 0, 780, 785, 3, 118, 59, 0, 781, 782, 5, 206, 0, 0, 782, 784, 3, 118, 59, 0, 783, 781, 1, 0, 0, 0, 784, 787, 1, 0, 0, 0, 785, 783, 1, 0, 0, 0, 785, 786, 1, 0, 0, 0, 786, 788, 1, 0, 0, 0, 787, 785, 1, 0, 0, 0, 788, 789, 5, 236, 0, 0, 789, 799, 1, 0, 0, 0, 790, 795, 3, 118, 59, 0, 791, 792, 5, 206, 0, 0, 792, 794, 3, 118, 59, 0, 793, 791, 1, 0, 0, 0, 794, 797, 1, 0, 0, 0, 795, 793, 1, 0, 0, 0, 795, 796, 1, 0, 0, 0, 796, 799, 1, 0, 0, 0, 797, 795, 1, 0, 0, 0, 798, 779, 1, 0, 0, 0, 798, 790, 1, 0, 0, 0, 799, 800, 1, 0, 0, 0, 800, 801, 5, 201, 0, 0, 801, 802, 3, 74, 37, 0, 802, 81, 1, 0, 0, 0, 803, 804, 5, 222, 0, 0, 804, 808, 3, 118, 59, 0, 805, 807, 3, 84, 42, 0, 806, 805, 1, 0, 0, 0, 807, 810, 1, 0, 0, 0, 808, 806, 1, 0, 0, 0, 808, 809, 1, 0, 0, 0, 809, 811, 1, 0, 0, 0, 810, 808, 1, 0, 0, 0, 811, 812, 5, 238, 0, 0, 812, 813, 5, 214, 0, 0, 813, 832, 1, 0, 0, 0, 814, 815, 5, 222, 0, 0, 815, 819, 3, 118, 59, 0, 816, 818, 3, 84, 42, 0, 817, 816, 1, 0, 0, 0, 818, 821, 1, 0, 0, 0, 819, 817, 1, 0, 0, 0, 819, 820, 1, 0, 0, 0, 820, 822, 1, 0, 0, 0, 821, 819, 1, 0, 0, 0, 822, 824, 5, 214, 0, 0, 823, 825, 3, 82, 41, 0, 824, 823, 1, 0, 0, 0, 824, 825, 1, 0, 0, 0, 825, 826, 1, 0, 0, 0, 826, 827, 5, 222, 0, 0, 827, 828, 5, 238, 0, 0, 828, 829, 3, 118, 59, 0, 829, 830, 5, 214, 0, 0, 830, 832, 1, 0, 0, 0, 831, 803, 1, 0, 0, 0, 831, 814, 1, 0, 0, 0, 832, 83, 1, 0, 0, 0, 833, 834, 3, 118, 59, 0, 834, 835, 5, 212, 0, 0, 835, 836, 5, 200, 0, 0, 836, 845, 1, 0, 0, 0, 837, 838, 3, 118, 59, 0, 838, 839, 5, 212, 0, 0, 839, 840, 5, 218, 0, 0, 840, 841, 3, 74, 37, 0, 841, 842, 5, 234, 0, 0, 842, 845, 1, 0, 0, 0, 843, 845, 3, 118, 59, 0, 844, 833, 1, 0, 0, 0, 844, 837, 1, 0, 0, 0, 844, 843, 1, 0, 0, 0, 845, 85, 1, 0, 0, 0, 846, 851, 3, 88, 44, 0, 847, 848, 5, 206, 0, 0, 848, 850, 3, 88, 44, 0, 849, 847, 1, 0, 0, 0, 850, 853, 1, 0, 0, 0, 851, 849, 1, 0, 0, 0, 851, 852, 1, 0, 0, 0, 852, 87, 1, 0, 0, 0, 853, 851, 1, 0, 0, 0, 854, 855, 3, 118, 59, 0, 855, 856, 5, 10, 0, 0, 856, 857, 5, 220, 0, 0, 857, 858, 3, 2, 1, 0, 858, 859, 5, 236, 0, 0, 859, 865, 1, 0, 0, 0, 860, 861, 3, 74, 37, 0, 861, 862, 5, 10, 0, 0, 862, 863, 3, 118, 59, 0, 863, 865, 1, 0, 0, 0, 864, 854, 1, 0, 0, 0, 864, 860, 1, 0, 0, 0, 865, 89, 1, 0, 0, 0, 866, 874, 3, 122, 61, 0, 867, 868, 3, 98, 49, 0, 868, 869, 5, 210, 0, 0, 869, 871, 1, 0, 0, 0, 870, 867, 1, 0, 0, 0, 870, 871, 1, 0, 0, 0, 871, 872, 1, 0, 0, 0, 872, 874, 3, 92, 46, 0, 873, 866, 1, 0, 0, 0, 873, 870, 1, 0, 0, 0, 874, 91, 1, 0, 0, 0, 875, 880, 3, 118, 59, 0, 876, 877, 5, 210, 0, 0, 877, 879, 3, 118, 59, 0, 878, 876, 1, 0, 0, 0, 879, 882, 1, 0, 0, 0, 880, 878, 1, 0, 0, 0, 880, 881, 1, 0, 0, 0, 881, 93, 1, 0, 0, 0, 882, 880, 1, 0, 0, 0, 883, 884, 6, 47, -1, 0, 884, 893, 3, 98, 49, 0, 885, 893, 3, 96, 48, 0, 886, 887, 5, 220, 0, 0, 887, 888, 3, 2, 1, 0, 888, 889, 5, 236, 0, 0, 889, 893, 1, 0, 0, 0, 890, 893, 3, 82, 41, 0, 891, 893, 3, 122, 61, 0, 892, 883, 1, 0, 0, 0, 892, 885, 1, 0, 0, 0, 892, 886, 1, 0, 0, 0, 892, 890, 1, 0, 0, 0, 892, 891, 1, 0, 0, 0, 893, 902, 1, 0, 0, 0, 894, 898, 10, 3, 0, 0, 895, 899, 3, 116, 58, 0, 896, 897, 5, 10, 0, 0, 897, 899, 3, 118, 59, 0, 898, 895, 1, 0, 0, 0, 898, 896, 1, 0, 0, 0, 899, 901, 1, 0, 0, 0, 900, 894, 1, 0, 0, 0, 901, 904, 1, 0, 0, 0, 902, 900, 1, 0, 0, 0, 902, 903, 1, 0, 0, 0, 903, 95, 1, 0, 0, 0, 904, 902, 1, 0, 0, 0, 905, 906, 3, 118, 59, 0, 906, 908, 5, 220, 0, 0, 907, 909, 3, 100, 50, 0, 908, 907, 1, 0, 0, 0, 908, 909, 1, 0, 0, 0, 909, 910, 1, 0, 0, 0, 910, 911, 5, 236, 0, 0, 911, 97, 1, 0, 0, 0, 912, 913, 3, 102, 51, 0, 913, 914, 5, 210, 0, 0, 914, 916, 1, 0, 0, 0, 915, 912, 1, 0, 0, 0, 915, 916, 1, 0, 0, 0, 916, 917, 1, 0, 0, 0, 917, 918, 3, 118, 59, 0, 918, 99, 1, 0, 0, 0, 919, 924, 3, 74, 37, 0, 920, 921, 5, 206, 0, 0, 921, 923, 3, 74, 37, 0, 922, 920, 1, 0, 0, 0, 923, 926, 1, 0, 0, 0, 924, 922, 1, 0, 0, 0, 924, 925, 1, 0, 0, 0, 925, 101, 1, 0, 0, 0, 926, 924, 1, 0, 0, 0, 927, 928, 3, 118, 59, 0, 928, 103, 1, 0, 0, 0, 929, 938, 5, 196, 0, 0, 930, 931, 5, 210, 0, 0, 931, 938, 7, 11, 0, 0, 932, 933, 5, 198, 0, 0, 933, 935, 5, 210, 0, 0, 934, 936, 7, 11, 0, 0, 935, 934, 1, 0, 0, 0, 935, 936, 1, 0, 0, 0, 936, 938, 1, 0, 0, 0, 937, 929, 1, 0, 0, 0, 937, 930, 1, 0, 0, 0, 937, 932, 1, 0, 0, 0, 938, 105, 1, 0, 0, 0, 939, 941, 7, 12, 0, 0, 940, 939, 1, 0, 0, 0, 940, 941, 1, 0, 0, 0, 941, 948, 1, 0, 0, 0, 942, 949, 3, 104, 52, 0, 943, 949, 5, 197, 0, 0, 944, 949, 5, 198, 0, 0, 945, 949, 5, 199, 0, 0, 946, 949, 5, 82, 0, 0, 947, 949, 5, 113, 0, 0, 948, 942, 1, 0, 0, 0, 948, 943, 1, 0, 0, 0, 948, 944, 1, 0, 0, 0, 948, 945, 1, 0, 0, 0, 948, 946, 1, 0, 0, 0, 948, 947, 1, 0, 0, 0, 949, 107, 1, 0, 0, 0, 950, 954, 3, 106, 53, 0, 951, 954, 5, 200, 0, 0, 952, 954, 5, 116, 0, 0, 953, 950, 1, 0, 0, 0, 953, 951, 1, 0, 0, 0, 953, 952, 1, 0, 0, 0, 954, 109, 1, 0, 0, 0, 955, 956, 7, 13, 0, 0, 956, 111, 1, 0, 0, 0, 957, 958, 7, 14, 0, 0, 958, 113, 1, 0, 0, 0, 959, 960, 7, 15, 0, 0, 960, 115, 1, 0, 0, 0, 961, 964, 5, 195, 0, 0, 962, 964, 3, 114, 57, 0, 963, 961, 1, 0, 0, 0, 963, 962, 1, 0, 0, 0, 964, 117, 1, 0, 0, 0, 965, 969, 5, 195, 0, 0, 966, 969, 3, 110, 55, 0, 967, 969, 3, 112, 56, 0, 968, 965, 1, 0, 0, 0, 968, 966, 1, 0, 0, 0, 968, 967, 1, 0, 0, 0, 969, 119, 1, 0, 0, 0, 970, 971, 5, 200, 0, 0, 971, 972, 5, 212, 0, 0, 972, 973, 3, 106, 53, 0, 973, 121, 1, 0, 0, 0, 974, 975, 5, 218, 0, 0, 975, 976, 3, 118, 59, 0, 976, 977, 5, 234, 0, 0, 977, 123, 1, 0, 0, 0, 120, 127, 137, 146, 149, 153, 156, 160, 163, 166, 169, 172, 176, 180, 183, 186, 189, 193, 196, 205, 211, 232, 249, 266, 272, 278, 289, 291, 302, 305, 311, 319, 325, 327, 331, 336, 339, 342, 346, 350, 353, 355, 358, 362, 366, 369, 371, 373, 378, 389, 395, 402, 407, 411, 415, 421, 423, 430, 438, 441, 444, 463, 477, 493, 505, 517, 525, 529, 536, 542, 551, 555, 586, 603, 615, 625, 628, 632, 635, 648, 665, 669, 675, 682, 694, 698, 701, 710, 724, 751, 760, 762, 764, 772, 777, 785, 795, 798, 808, 819, 824, 831, 844, 851, 864, 870, 873, 880, 892, 898, 902, 908, 915, 924, 935, 937, 940, 948, 953, 963, 968] \ No newline at end of file diff --git a/hogql_parser/HogQLParserBaseVisitor.h b/hogql_parser/HogQLParserBaseVisitor.h index 8de70d11be4e3..00e3cd4e391ad 100644 --- a/hogql_parser/HogQLParserBaseVisitor.h +++ b/hogql_parser/HogQLParserBaseVisitor.h @@ -27,10 +27,6 @@ class HogQLParserBaseVisitor : public HogQLParserVisitor { return visitChildren(ctx); } - virtual std::any visitSelectStmtWithPlaceholder(HogQLParser::SelectStmtWithPlaceholderContext *ctx) override { - return visitChildren(ctx); - } - virtual std::any visitSelectStmt(HogQLParser::SelectStmtContext *ctx) override { return visitChildren(ctx); } diff --git a/hogql_parser/HogQLParserVisitor.h b/hogql_parser/HogQLParserVisitor.h index dcd629c0446db..8355b14ae1ea4 100644 --- a/hogql_parser/HogQLParserVisitor.h +++ b/hogql_parser/HogQLParserVisitor.h @@ -25,8 +25,6 @@ class HogQLParserVisitor : public antlr4::tree::AbstractParseTreeVisitor { virtual std::any visitSelectStmtWithParens(HogQLParser::SelectStmtWithParensContext *context) = 0; - virtual std::any visitSelectStmtWithPlaceholder(HogQLParser::SelectStmtWithPlaceholderContext *context) = 0; - virtual std::any visitSelectStmt(HogQLParser::SelectStmtContext *context) = 0; virtual std::any visitWithClause(HogQLParser::WithClauseContext *context) = 0; diff --git a/hogql_parser/parser.cpp b/hogql_parser/parser.cpp index 1dfbea3296710..1c16cbe1280c1 100644 --- a/hogql_parser/parser.cpp +++ b/hogql_parser/parser.cpp @@ -306,10 +306,15 @@ class HogQLParseTreeConverter : public HogQLParserBaseVisitor { } VISIT(SelectStmtWithParens) { - auto select_stmt_ctx = ctx->selectStmtWithPlaceholder(); + auto select_stmt_ctx = ctx->selectStmt(); if (select_stmt_ctx) { return visit(select_stmt_ctx); } + + auto placeholder_ctx = ctx->placeholder(); + if (placeholder_ctx) { + return visitAsPyObject(placeholder_ctx); + } return visit(ctx->selectUnionStmt()); } @@ -1756,15 +1761,6 @@ class HogQLParseTreeConverter : public HogQLParserBaseVisitor { VISIT(TableExprPlaceholder) { return visitAsPyObject(ctx->placeholder()); } - VISIT(SelectStmtWithPlaceholder) { - auto placeholder_ctx = ctx->placeholder(); - if (placeholder_ctx) { - return visitAsPyObject(placeholder_ctx); - } - - return visit(ctx->selectStmt()); - } - VISIT(TableExprAlias) { auto alias_ctx = ctx->alias(); string alias = any_cast(alias_ctx ? visit(alias_ctx) : visit(ctx->identifier())); diff --git a/posthog/hogql/grammar/HogQLParser.g4 b/posthog/hogql/grammar/HogQLParser.g4 index 4aed3d6b7e9bf..a0f22ae3cdb0a 100644 --- a/posthog/hogql/grammar/HogQLParser.g4 +++ b/posthog/hogql/grammar/HogQLParser.g4 @@ -9,8 +9,7 @@ options { select: (selectUnionStmt | selectStmt | hogqlxTagElement) EOF; selectUnionStmt: selectStmtWithParens (UNION ALL selectStmtWithParens)*; -selectStmtWithParens: selectStmtWithPlaceholder | LPAREN selectUnionStmt RPAREN; -selectStmtWithPlaceholder: selectStmt | placeholder; +selectStmtWithParens: selectStmt | LPAREN selectUnionStmt RPAREN | placeholder; selectStmt: with=withClause? diff --git a/posthog/hogql/grammar/HogQLParser.interp b/posthog/hogql/grammar/HogQLParser.interp index f056763eb8201..2b24b72a2819d 100644 --- a/posthog/hogql/grammar/HogQLParser.interp +++ b/posthog/hogql/grammar/HogQLParser.interp @@ -492,7 +492,6 @@ rule names: select selectUnionStmt selectStmtWithParens -selectStmtWithPlaceholder selectStmt withClause topClause @@ -555,4 +554,4 @@ placeholder atn: -[4, 1, 242, 984, 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, 1, 0, 1, 0, 1, 0, 3, 0, 130, 8, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 138, 8, 1, 10, 1, 12, 1, 141, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 148, 8, 2, 1, 3, 1, 3, 3, 3, 152, 8, 3, 1, 4, 3, 4, 155, 8, 4, 1, 4, 1, 4, 3, 4, 159, 8, 4, 1, 4, 3, 4, 162, 8, 4, 1, 4, 1, 4, 3, 4, 166, 8, 4, 1, 4, 3, 4, 169, 8, 4, 1, 4, 3, 4, 172, 8, 4, 1, 4, 3, 4, 175, 8, 4, 1, 4, 3, 4, 178, 8, 4, 1, 4, 1, 4, 3, 4, 182, 8, 4, 1, 4, 1, 4, 3, 4, 186, 8, 4, 1, 4, 3, 4, 189, 8, 4, 1, 4, 3, 4, 192, 8, 4, 1, 4, 3, 4, 195, 8, 4, 1, 4, 1, 4, 3, 4, 199, 8, 4, 1, 4, 3, 4, 202, 8, 4, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 211, 8, 6, 1, 7, 1, 7, 1, 7, 1, 8, 3, 8, 217, 8, 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, 9, 1, 9, 1, 9, 5, 9, 236, 8, 9, 10, 9, 12, 9, 239, 9, 9, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 255, 8, 12, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 272, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 278, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 284, 8, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 3, 16, 295, 8, 16, 3, 16, 297, 8, 16, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 3, 19, 308, 8, 19, 1, 19, 3, 19, 311, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 317, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 3, 19, 325, 8, 19, 1, 19, 1, 19, 1, 19, 1, 19, 5, 19, 331, 8, 19, 10, 19, 12, 19, 334, 9, 19, 1, 20, 3, 20, 337, 8, 20, 1, 20, 1, 20, 1, 20, 3, 20, 342, 8, 20, 1, 20, 3, 20, 345, 8, 20, 1, 20, 3, 20, 348, 8, 20, 1, 20, 1, 20, 3, 20, 352, 8, 20, 1, 20, 1, 20, 3, 20, 356, 8, 20, 1, 20, 3, 20, 359, 8, 20, 3, 20, 361, 8, 20, 1, 20, 3, 20, 364, 8, 20, 1, 20, 1, 20, 3, 20, 368, 8, 20, 1, 20, 1, 20, 3, 20, 372, 8, 20, 1, 20, 3, 20, 375, 8, 20, 3, 20, 377, 8, 20, 3, 20, 379, 8, 20, 1, 21, 1, 21, 1, 21, 3, 21, 384, 8, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 395, 8, 22, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 401, 8, 23, 1, 24, 1, 24, 1, 24, 5, 24, 406, 8, 24, 10, 24, 12, 24, 409, 9, 24, 1, 25, 1, 25, 3, 25, 413, 8, 25, 1, 25, 1, 25, 3, 25, 417, 8, 25, 1, 25, 1, 25, 3, 25, 421, 8, 25, 1, 26, 1, 26, 1, 26, 1, 26, 3, 26, 427, 8, 26, 3, 26, 429, 8, 26, 1, 27, 1, 27, 1, 27, 5, 27, 434, 8, 27, 10, 27, 12, 27, 437, 9, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 3, 29, 444, 8, 29, 1, 29, 3, 29, 447, 8, 29, 1, 29, 3, 29, 450, 8, 29, 1, 30, 1, 30, 1, 30, 1, 30, 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, 33, 3, 33, 469, 8, 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, 3, 34, 483, 8, 34, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 5, 36, 497, 8, 36, 10, 36, 12, 36, 500, 9, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 5, 36, 509, 8, 36, 10, 36, 12, 36, 512, 9, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 5, 36, 521, 8, 36, 10, 36, 12, 36, 524, 9, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 3, 36, 531, 8, 36, 1, 36, 1, 36, 3, 36, 535, 8, 36, 1, 37, 1, 37, 1, 37, 5, 37, 540, 8, 37, 10, 37, 12, 37, 543, 9, 37, 1, 38, 1, 38, 1, 38, 3, 38, 548, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 4, 38, 555, 8, 38, 11, 38, 12, 38, 556, 1, 38, 1, 38, 3, 38, 561, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 592, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 609, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 621, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 631, 8, 38, 1, 38, 3, 38, 634, 8, 38, 1, 38, 1, 38, 3, 38, 638, 8, 38, 1, 38, 3, 38, 641, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 654, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 671, 8, 38, 1, 38, 1, 38, 3, 38, 675, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 681, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 688, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 700, 8, 38, 1, 38, 1, 38, 3, 38, 704, 8, 38, 1, 38, 3, 38, 707, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 716, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 730, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 757, 8, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 3, 38, 766, 8, 38, 5, 38, 768, 8, 38, 10, 38, 12, 38, 771, 9, 38, 1, 39, 1, 39, 1, 39, 5, 39, 776, 8, 39, 10, 39, 12, 39, 779, 9, 39, 1, 40, 1, 40, 3, 40, 783, 8, 40, 1, 41, 1, 41, 1, 41, 1, 41, 5, 41, 789, 8, 41, 10, 41, 12, 41, 792, 9, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 5, 41, 799, 8, 41, 10, 41, 12, 41, 802, 9, 41, 3, 41, 804, 8, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 5, 42, 812, 8, 42, 10, 42, 12, 42, 815, 9, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 5, 42, 823, 8, 42, 10, 42, 12, 42, 826, 9, 42, 1, 42, 1, 42, 3, 42, 830, 8, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 837, 8, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 3, 43, 850, 8, 43, 1, 44, 1, 44, 1, 44, 5, 44, 855, 8, 44, 10, 44, 12, 44, 858, 9, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 870, 8, 45, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 876, 8, 46, 1, 46, 3, 46, 879, 8, 46, 1, 47, 1, 47, 1, 47, 5, 47, 884, 8, 47, 10, 47, 12, 47, 887, 9, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 898, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 904, 8, 48, 5, 48, 906, 8, 48, 10, 48, 12, 48, 909, 9, 48, 1, 49, 1, 49, 1, 49, 3, 49, 914, 8, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 3, 50, 921, 8, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 5, 51, 928, 8, 51, 10, 51, 12, 51, 931, 9, 51, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 3, 53, 941, 8, 53, 3, 53, 943, 8, 53, 1, 54, 3, 54, 946, 8, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 3, 54, 954, 8, 54, 1, 55, 1, 55, 1, 55, 3, 55, 959, 8, 55, 1, 56, 1, 56, 1, 57, 1, 57, 1, 58, 1, 58, 1, 59, 1, 59, 3, 59, 969, 8, 59, 1, 60, 1, 60, 1, 60, 3, 60, 974, 8, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 0, 3, 38, 76, 96, 63, 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, 0, 16, 2, 0, 32, 32, 141, 141, 2, 0, 84, 84, 96, 96, 3, 0, 4, 4, 8, 8, 12, 12, 4, 0, 4, 4, 7, 8, 12, 12, 147, 147, 2, 0, 96, 96, 140, 140, 2, 0, 4, 4, 8, 8, 2, 0, 11, 11, 42, 43, 2, 0, 62, 62, 93, 93, 2, 0, 133, 133, 143, 143, 3, 0, 17, 17, 95, 95, 170, 170, 2, 0, 79, 79, 98, 98, 1, 0, 197, 198, 2, 0, 208, 208, 228, 228, 8, 0, 37, 37, 76, 76, 108, 108, 110, 110, 132, 132, 145, 145, 185, 185, 190, 190, 13, 0, 2, 24, 26, 36, 38, 75, 77, 81, 83, 107, 109, 109, 111, 112, 114, 115, 117, 130, 133, 144, 146, 184, 186, 189, 191, 192, 4, 0, 36, 36, 62, 62, 77, 77, 91, 91, 1111, 0, 129, 1, 0, 0, 0, 2, 133, 1, 0, 0, 0, 4, 147, 1, 0, 0, 0, 6, 151, 1, 0, 0, 0, 8, 154, 1, 0, 0, 0, 10, 203, 1, 0, 0, 0, 12, 206, 1, 0, 0, 0, 14, 212, 1, 0, 0, 0, 16, 216, 1, 0, 0, 0, 18, 222, 1, 0, 0, 0, 20, 240, 1, 0, 0, 0, 22, 243, 1, 0, 0, 0, 24, 246, 1, 0, 0, 0, 26, 256, 1, 0, 0, 0, 28, 259, 1, 0, 0, 0, 30, 263, 1, 0, 0, 0, 32, 296, 1, 0, 0, 0, 34, 298, 1, 0, 0, 0, 36, 301, 1, 0, 0, 0, 38, 316, 1, 0, 0, 0, 40, 378, 1, 0, 0, 0, 42, 383, 1, 0, 0, 0, 44, 394, 1, 0, 0, 0, 46, 396, 1, 0, 0, 0, 48, 402, 1, 0, 0, 0, 50, 410, 1, 0, 0, 0, 52, 428, 1, 0, 0, 0, 54, 430, 1, 0, 0, 0, 56, 438, 1, 0, 0, 0, 58, 443, 1, 0, 0, 0, 60, 451, 1, 0, 0, 0, 62, 455, 1, 0, 0, 0, 64, 459, 1, 0, 0, 0, 66, 468, 1, 0, 0, 0, 68, 482, 1, 0, 0, 0, 70, 484, 1, 0, 0, 0, 72, 534, 1, 0, 0, 0, 74, 536, 1, 0, 0, 0, 76, 674, 1, 0, 0, 0, 78, 772, 1, 0, 0, 0, 80, 782, 1, 0, 0, 0, 82, 803, 1, 0, 0, 0, 84, 836, 1, 0, 0, 0, 86, 849, 1, 0, 0, 0, 88, 851, 1, 0, 0, 0, 90, 869, 1, 0, 0, 0, 92, 878, 1, 0, 0, 0, 94, 880, 1, 0, 0, 0, 96, 897, 1, 0, 0, 0, 98, 910, 1, 0, 0, 0, 100, 920, 1, 0, 0, 0, 102, 924, 1, 0, 0, 0, 104, 932, 1, 0, 0, 0, 106, 942, 1, 0, 0, 0, 108, 945, 1, 0, 0, 0, 110, 958, 1, 0, 0, 0, 112, 960, 1, 0, 0, 0, 114, 962, 1, 0, 0, 0, 116, 964, 1, 0, 0, 0, 118, 968, 1, 0, 0, 0, 120, 973, 1, 0, 0, 0, 122, 975, 1, 0, 0, 0, 124, 979, 1, 0, 0, 0, 126, 130, 3, 2, 1, 0, 127, 130, 3, 8, 4, 0, 128, 130, 3, 84, 42, 0, 129, 126, 1, 0, 0, 0, 129, 127, 1, 0, 0, 0, 129, 128, 1, 0, 0, 0, 130, 131, 1, 0, 0, 0, 131, 132, 5, 0, 0, 1, 132, 1, 1, 0, 0, 0, 133, 139, 3, 4, 2, 0, 134, 135, 5, 176, 0, 0, 135, 136, 5, 4, 0, 0, 136, 138, 3, 4, 2, 0, 137, 134, 1, 0, 0, 0, 138, 141, 1, 0, 0, 0, 139, 137, 1, 0, 0, 0, 139, 140, 1, 0, 0, 0, 140, 3, 1, 0, 0, 0, 141, 139, 1, 0, 0, 0, 142, 148, 3, 6, 3, 0, 143, 144, 5, 220, 0, 0, 144, 145, 3, 2, 1, 0, 145, 146, 5, 236, 0, 0, 146, 148, 1, 0, 0, 0, 147, 142, 1, 0, 0, 0, 147, 143, 1, 0, 0, 0, 148, 5, 1, 0, 0, 0, 149, 152, 3, 8, 4, 0, 150, 152, 3, 124, 62, 0, 151, 149, 1, 0, 0, 0, 151, 150, 1, 0, 0, 0, 152, 7, 1, 0, 0, 0, 153, 155, 3, 10, 5, 0, 154, 153, 1, 0, 0, 0, 154, 155, 1, 0, 0, 0, 155, 156, 1, 0, 0, 0, 156, 158, 5, 146, 0, 0, 157, 159, 5, 49, 0, 0, 158, 157, 1, 0, 0, 0, 158, 159, 1, 0, 0, 0, 159, 161, 1, 0, 0, 0, 160, 162, 3, 12, 6, 0, 161, 160, 1, 0, 0, 0, 161, 162, 1, 0, 0, 0, 162, 163, 1, 0, 0, 0, 163, 165, 3, 74, 37, 0, 164, 166, 3, 14, 7, 0, 165, 164, 1, 0, 0, 0, 165, 166, 1, 0, 0, 0, 166, 168, 1, 0, 0, 0, 167, 169, 3, 16, 8, 0, 168, 167, 1, 0, 0, 0, 168, 169, 1, 0, 0, 0, 169, 171, 1, 0, 0, 0, 170, 172, 3, 20, 10, 0, 171, 170, 1, 0, 0, 0, 171, 172, 1, 0, 0, 0, 172, 174, 1, 0, 0, 0, 173, 175, 3, 22, 11, 0, 174, 173, 1, 0, 0, 0, 174, 175, 1, 0, 0, 0, 175, 177, 1, 0, 0, 0, 176, 178, 3, 24, 12, 0, 177, 176, 1, 0, 0, 0, 177, 178, 1, 0, 0, 0, 178, 181, 1, 0, 0, 0, 179, 180, 5, 189, 0, 0, 180, 182, 7, 0, 0, 0, 181, 179, 1, 0, 0, 0, 181, 182, 1, 0, 0, 0, 182, 185, 1, 0, 0, 0, 183, 184, 5, 189, 0, 0, 184, 186, 5, 169, 0, 0, 185, 183, 1, 0, 0, 0, 185, 186, 1, 0, 0, 0, 186, 188, 1, 0, 0, 0, 187, 189, 3, 26, 13, 0, 188, 187, 1, 0, 0, 0, 188, 189, 1, 0, 0, 0, 189, 191, 1, 0, 0, 0, 190, 192, 3, 18, 9, 0, 191, 190, 1, 0, 0, 0, 191, 192, 1, 0, 0, 0, 192, 194, 1, 0, 0, 0, 193, 195, 3, 28, 14, 0, 194, 193, 1, 0, 0, 0, 194, 195, 1, 0, 0, 0, 195, 198, 1, 0, 0, 0, 196, 199, 3, 32, 16, 0, 197, 199, 3, 34, 17, 0, 198, 196, 1, 0, 0, 0, 198, 197, 1, 0, 0, 0, 198, 199, 1, 0, 0, 0, 199, 201, 1, 0, 0, 0, 200, 202, 3, 36, 18, 0, 201, 200, 1, 0, 0, 0, 201, 202, 1, 0, 0, 0, 202, 9, 1, 0, 0, 0, 203, 204, 5, 189, 0, 0, 204, 205, 3, 88, 44, 0, 205, 11, 1, 0, 0, 0, 206, 207, 5, 168, 0, 0, 207, 210, 5, 198, 0, 0, 208, 209, 5, 189, 0, 0, 209, 211, 5, 164, 0, 0, 210, 208, 1, 0, 0, 0, 210, 211, 1, 0, 0, 0, 211, 13, 1, 0, 0, 0, 212, 213, 5, 68, 0, 0, 213, 214, 3, 38, 19, 0, 214, 15, 1, 0, 0, 0, 215, 217, 7, 1, 0, 0, 216, 215, 1, 0, 0, 0, 216, 217, 1, 0, 0, 0, 217, 218, 1, 0, 0, 0, 218, 219, 5, 9, 0, 0, 219, 220, 5, 90, 0, 0, 220, 221, 3, 74, 37, 0, 221, 17, 1, 0, 0, 0, 222, 223, 5, 188, 0, 0, 223, 224, 3, 120, 60, 0, 224, 225, 5, 10, 0, 0, 225, 226, 5, 220, 0, 0, 226, 227, 3, 58, 29, 0, 227, 237, 5, 236, 0, 0, 228, 229, 5, 206, 0, 0, 229, 230, 3, 120, 60, 0, 230, 231, 5, 10, 0, 0, 231, 232, 5, 220, 0, 0, 232, 233, 3, 58, 29, 0, 233, 234, 5, 236, 0, 0, 234, 236, 1, 0, 0, 0, 235, 228, 1, 0, 0, 0, 236, 239, 1, 0, 0, 0, 237, 235, 1, 0, 0, 0, 237, 238, 1, 0, 0, 0, 238, 19, 1, 0, 0, 0, 239, 237, 1, 0, 0, 0, 240, 241, 5, 129, 0, 0, 241, 242, 3, 76, 38, 0, 242, 21, 1, 0, 0, 0, 243, 244, 5, 187, 0, 0, 244, 245, 3, 76, 38, 0, 245, 23, 1, 0, 0, 0, 246, 247, 5, 73, 0, 0, 247, 254, 5, 18, 0, 0, 248, 249, 7, 0, 0, 0, 249, 250, 5, 220, 0, 0, 250, 251, 3, 74, 37, 0, 251, 252, 5, 236, 0, 0, 252, 255, 1, 0, 0, 0, 253, 255, 3, 74, 37, 0, 254, 248, 1, 0, 0, 0, 254, 253, 1, 0, 0, 0, 255, 25, 1, 0, 0, 0, 256, 257, 5, 74, 0, 0, 257, 258, 3, 76, 38, 0, 258, 27, 1, 0, 0, 0, 259, 260, 5, 122, 0, 0, 260, 261, 5, 18, 0, 0, 261, 262, 3, 48, 24, 0, 262, 29, 1, 0, 0, 0, 263, 264, 5, 122, 0, 0, 264, 265, 5, 18, 0, 0, 265, 266, 3, 74, 37, 0, 266, 31, 1, 0, 0, 0, 267, 268, 5, 99, 0, 0, 268, 271, 3, 76, 38, 0, 269, 270, 5, 206, 0, 0, 270, 272, 3, 76, 38, 0, 271, 269, 1, 0, 0, 0, 271, 272, 1, 0, 0, 0, 272, 277, 1, 0, 0, 0, 273, 274, 5, 189, 0, 0, 274, 278, 5, 164, 0, 0, 275, 276, 5, 18, 0, 0, 276, 278, 3, 74, 37, 0, 277, 273, 1, 0, 0, 0, 277, 275, 1, 0, 0, 0, 277, 278, 1, 0, 0, 0, 278, 297, 1, 0, 0, 0, 279, 280, 5, 99, 0, 0, 280, 283, 3, 76, 38, 0, 281, 282, 5, 189, 0, 0, 282, 284, 5, 164, 0, 0, 283, 281, 1, 0, 0, 0, 283, 284, 1, 0, 0, 0, 284, 285, 1, 0, 0, 0, 285, 286, 5, 118, 0, 0, 286, 287, 3, 76, 38, 0, 287, 297, 1, 0, 0, 0, 288, 289, 5, 99, 0, 0, 289, 290, 3, 76, 38, 0, 290, 291, 5, 118, 0, 0, 291, 294, 3, 76, 38, 0, 292, 293, 5, 18, 0, 0, 293, 295, 3, 74, 37, 0, 294, 292, 1, 0, 0, 0, 294, 295, 1, 0, 0, 0, 295, 297, 1, 0, 0, 0, 296, 267, 1, 0, 0, 0, 296, 279, 1, 0, 0, 0, 296, 288, 1, 0, 0, 0, 297, 33, 1, 0, 0, 0, 298, 299, 5, 118, 0, 0, 299, 300, 3, 76, 38, 0, 300, 35, 1, 0, 0, 0, 301, 302, 5, 150, 0, 0, 302, 303, 3, 54, 27, 0, 303, 37, 1, 0, 0, 0, 304, 305, 6, 19, -1, 0, 305, 307, 3, 96, 48, 0, 306, 308, 5, 61, 0, 0, 307, 306, 1, 0, 0, 0, 307, 308, 1, 0, 0, 0, 308, 310, 1, 0, 0, 0, 309, 311, 3, 46, 23, 0, 310, 309, 1, 0, 0, 0, 310, 311, 1, 0, 0, 0, 311, 317, 1, 0, 0, 0, 312, 313, 5, 220, 0, 0, 313, 314, 3, 38, 19, 0, 314, 315, 5, 236, 0, 0, 315, 317, 1, 0, 0, 0, 316, 304, 1, 0, 0, 0, 316, 312, 1, 0, 0, 0, 317, 332, 1, 0, 0, 0, 318, 319, 10, 3, 0, 0, 319, 320, 3, 42, 21, 0, 320, 321, 3, 38, 19, 4, 321, 331, 1, 0, 0, 0, 322, 324, 10, 4, 0, 0, 323, 325, 3, 40, 20, 0, 324, 323, 1, 0, 0, 0, 324, 325, 1, 0, 0, 0, 325, 326, 1, 0, 0, 0, 326, 327, 5, 90, 0, 0, 327, 328, 3, 38, 19, 0, 328, 329, 3, 44, 22, 0, 329, 331, 1, 0, 0, 0, 330, 318, 1, 0, 0, 0, 330, 322, 1, 0, 0, 0, 331, 334, 1, 0, 0, 0, 332, 330, 1, 0, 0, 0, 332, 333, 1, 0, 0, 0, 333, 39, 1, 0, 0, 0, 334, 332, 1, 0, 0, 0, 335, 337, 7, 2, 0, 0, 336, 335, 1, 0, 0, 0, 336, 337, 1, 0, 0, 0, 337, 338, 1, 0, 0, 0, 338, 345, 5, 84, 0, 0, 339, 341, 5, 84, 0, 0, 340, 342, 7, 2, 0, 0, 341, 340, 1, 0, 0, 0, 341, 342, 1, 0, 0, 0, 342, 345, 1, 0, 0, 0, 343, 345, 7, 2, 0, 0, 344, 336, 1, 0, 0, 0, 344, 339, 1, 0, 0, 0, 344, 343, 1, 0, 0, 0, 345, 379, 1, 0, 0, 0, 346, 348, 7, 3, 0, 0, 347, 346, 1, 0, 0, 0, 347, 348, 1, 0, 0, 0, 348, 349, 1, 0, 0, 0, 349, 351, 7, 4, 0, 0, 350, 352, 5, 123, 0, 0, 351, 350, 1, 0, 0, 0, 351, 352, 1, 0, 0, 0, 352, 361, 1, 0, 0, 0, 353, 355, 7, 4, 0, 0, 354, 356, 5, 123, 0, 0, 355, 354, 1, 0, 0, 0, 355, 356, 1, 0, 0, 0, 356, 358, 1, 0, 0, 0, 357, 359, 7, 3, 0, 0, 358, 357, 1, 0, 0, 0, 358, 359, 1, 0, 0, 0, 359, 361, 1, 0, 0, 0, 360, 347, 1, 0, 0, 0, 360, 353, 1, 0, 0, 0, 361, 379, 1, 0, 0, 0, 362, 364, 7, 5, 0, 0, 363, 362, 1, 0, 0, 0, 363, 364, 1, 0, 0, 0, 364, 365, 1, 0, 0, 0, 365, 367, 5, 69, 0, 0, 366, 368, 5, 123, 0, 0, 367, 366, 1, 0, 0, 0, 367, 368, 1, 0, 0, 0, 368, 377, 1, 0, 0, 0, 369, 371, 5, 69, 0, 0, 370, 372, 5, 123, 0, 0, 371, 370, 1, 0, 0, 0, 371, 372, 1, 0, 0, 0, 372, 374, 1, 0, 0, 0, 373, 375, 7, 5, 0, 0, 374, 373, 1, 0, 0, 0, 374, 375, 1, 0, 0, 0, 375, 377, 1, 0, 0, 0, 376, 363, 1, 0, 0, 0, 376, 369, 1, 0, 0, 0, 377, 379, 1, 0, 0, 0, 378, 344, 1, 0, 0, 0, 378, 360, 1, 0, 0, 0, 378, 376, 1, 0, 0, 0, 379, 41, 1, 0, 0, 0, 380, 381, 5, 31, 0, 0, 381, 384, 5, 90, 0, 0, 382, 384, 5, 206, 0, 0, 383, 380, 1, 0, 0, 0, 383, 382, 1, 0, 0, 0, 384, 43, 1, 0, 0, 0, 385, 386, 5, 119, 0, 0, 386, 395, 3, 74, 37, 0, 387, 388, 5, 179, 0, 0, 388, 389, 5, 220, 0, 0, 389, 390, 3, 74, 37, 0, 390, 391, 5, 236, 0, 0, 391, 395, 1, 0, 0, 0, 392, 393, 5, 179, 0, 0, 393, 395, 3, 74, 37, 0, 394, 385, 1, 0, 0, 0, 394, 387, 1, 0, 0, 0, 394, 392, 1, 0, 0, 0, 395, 45, 1, 0, 0, 0, 396, 397, 5, 144, 0, 0, 397, 400, 3, 52, 26, 0, 398, 399, 5, 118, 0, 0, 399, 401, 3, 52, 26, 0, 400, 398, 1, 0, 0, 0, 400, 401, 1, 0, 0, 0, 401, 47, 1, 0, 0, 0, 402, 407, 3, 50, 25, 0, 403, 404, 5, 206, 0, 0, 404, 406, 3, 50, 25, 0, 405, 403, 1, 0, 0, 0, 406, 409, 1, 0, 0, 0, 407, 405, 1, 0, 0, 0, 407, 408, 1, 0, 0, 0, 408, 49, 1, 0, 0, 0, 409, 407, 1, 0, 0, 0, 410, 412, 3, 76, 38, 0, 411, 413, 7, 6, 0, 0, 412, 411, 1, 0, 0, 0, 412, 413, 1, 0, 0, 0, 413, 416, 1, 0, 0, 0, 414, 415, 5, 117, 0, 0, 415, 417, 7, 7, 0, 0, 416, 414, 1, 0, 0, 0, 416, 417, 1, 0, 0, 0, 417, 420, 1, 0, 0, 0, 418, 419, 5, 26, 0, 0, 419, 421, 5, 200, 0, 0, 420, 418, 1, 0, 0, 0, 420, 421, 1, 0, 0, 0, 421, 51, 1, 0, 0, 0, 422, 429, 3, 124, 62, 0, 423, 426, 3, 108, 54, 0, 424, 425, 5, 238, 0, 0, 425, 427, 3, 108, 54, 0, 426, 424, 1, 0, 0, 0, 426, 427, 1, 0, 0, 0, 427, 429, 1, 0, 0, 0, 428, 422, 1, 0, 0, 0, 428, 423, 1, 0, 0, 0, 429, 53, 1, 0, 0, 0, 430, 435, 3, 56, 28, 0, 431, 432, 5, 206, 0, 0, 432, 434, 3, 56, 28, 0, 433, 431, 1, 0, 0, 0, 434, 437, 1, 0, 0, 0, 435, 433, 1, 0, 0, 0, 435, 436, 1, 0, 0, 0, 436, 55, 1, 0, 0, 0, 437, 435, 1, 0, 0, 0, 438, 439, 3, 120, 60, 0, 439, 440, 5, 212, 0, 0, 440, 441, 3, 110, 55, 0, 441, 57, 1, 0, 0, 0, 442, 444, 3, 60, 30, 0, 443, 442, 1, 0, 0, 0, 443, 444, 1, 0, 0, 0, 444, 446, 1, 0, 0, 0, 445, 447, 3, 62, 31, 0, 446, 445, 1, 0, 0, 0, 446, 447, 1, 0, 0, 0, 447, 449, 1, 0, 0, 0, 448, 450, 3, 64, 32, 0, 449, 448, 1, 0, 0, 0, 449, 450, 1, 0, 0, 0, 450, 59, 1, 0, 0, 0, 451, 452, 5, 126, 0, 0, 452, 453, 5, 18, 0, 0, 453, 454, 3, 74, 37, 0, 454, 61, 1, 0, 0, 0, 455, 456, 5, 122, 0, 0, 456, 457, 5, 18, 0, 0, 457, 458, 3, 48, 24, 0, 458, 63, 1, 0, 0, 0, 459, 460, 7, 8, 0, 0, 460, 461, 3, 66, 33, 0, 461, 65, 1, 0, 0, 0, 462, 469, 3, 68, 34, 0, 463, 464, 5, 16, 0, 0, 464, 465, 3, 68, 34, 0, 465, 466, 5, 6, 0, 0, 466, 467, 3, 68, 34, 0, 467, 469, 1, 0, 0, 0, 468, 462, 1, 0, 0, 0, 468, 463, 1, 0, 0, 0, 469, 67, 1, 0, 0, 0, 470, 471, 5, 33, 0, 0, 471, 483, 5, 142, 0, 0, 472, 473, 5, 175, 0, 0, 473, 483, 5, 128, 0, 0, 474, 475, 5, 175, 0, 0, 475, 483, 5, 64, 0, 0, 476, 477, 3, 108, 54, 0, 477, 478, 5, 128, 0, 0, 478, 483, 1, 0, 0, 0, 479, 480, 3, 108, 54, 0, 480, 481, 5, 64, 0, 0, 481, 483, 1, 0, 0, 0, 482, 470, 1, 0, 0, 0, 482, 472, 1, 0, 0, 0, 482, 474, 1, 0, 0, 0, 482, 476, 1, 0, 0, 0, 482, 479, 1, 0, 0, 0, 483, 69, 1, 0, 0, 0, 484, 485, 3, 76, 38, 0, 485, 486, 5, 0, 0, 1, 486, 71, 1, 0, 0, 0, 487, 535, 3, 120, 60, 0, 488, 489, 3, 120, 60, 0, 489, 490, 5, 220, 0, 0, 490, 491, 3, 120, 60, 0, 491, 498, 3, 72, 36, 0, 492, 493, 5, 206, 0, 0, 493, 494, 3, 120, 60, 0, 494, 495, 3, 72, 36, 0, 495, 497, 1, 0, 0, 0, 496, 492, 1, 0, 0, 0, 497, 500, 1, 0, 0, 0, 498, 496, 1, 0, 0, 0, 498, 499, 1, 0, 0, 0, 499, 501, 1, 0, 0, 0, 500, 498, 1, 0, 0, 0, 501, 502, 5, 236, 0, 0, 502, 535, 1, 0, 0, 0, 503, 504, 3, 120, 60, 0, 504, 505, 5, 220, 0, 0, 505, 510, 3, 122, 61, 0, 506, 507, 5, 206, 0, 0, 507, 509, 3, 122, 61, 0, 508, 506, 1, 0, 0, 0, 509, 512, 1, 0, 0, 0, 510, 508, 1, 0, 0, 0, 510, 511, 1, 0, 0, 0, 511, 513, 1, 0, 0, 0, 512, 510, 1, 0, 0, 0, 513, 514, 5, 236, 0, 0, 514, 535, 1, 0, 0, 0, 515, 516, 3, 120, 60, 0, 516, 517, 5, 220, 0, 0, 517, 522, 3, 72, 36, 0, 518, 519, 5, 206, 0, 0, 519, 521, 3, 72, 36, 0, 520, 518, 1, 0, 0, 0, 521, 524, 1, 0, 0, 0, 522, 520, 1, 0, 0, 0, 522, 523, 1, 0, 0, 0, 523, 525, 1, 0, 0, 0, 524, 522, 1, 0, 0, 0, 525, 526, 5, 236, 0, 0, 526, 535, 1, 0, 0, 0, 527, 528, 3, 120, 60, 0, 528, 530, 5, 220, 0, 0, 529, 531, 3, 74, 37, 0, 530, 529, 1, 0, 0, 0, 530, 531, 1, 0, 0, 0, 531, 532, 1, 0, 0, 0, 532, 533, 5, 236, 0, 0, 533, 535, 1, 0, 0, 0, 534, 487, 1, 0, 0, 0, 534, 488, 1, 0, 0, 0, 534, 503, 1, 0, 0, 0, 534, 515, 1, 0, 0, 0, 534, 527, 1, 0, 0, 0, 535, 73, 1, 0, 0, 0, 536, 541, 3, 76, 38, 0, 537, 538, 5, 206, 0, 0, 538, 540, 3, 76, 38, 0, 539, 537, 1, 0, 0, 0, 540, 543, 1, 0, 0, 0, 541, 539, 1, 0, 0, 0, 541, 542, 1, 0, 0, 0, 542, 75, 1, 0, 0, 0, 543, 541, 1, 0, 0, 0, 544, 545, 6, 38, -1, 0, 545, 547, 5, 19, 0, 0, 546, 548, 3, 76, 38, 0, 547, 546, 1, 0, 0, 0, 547, 548, 1, 0, 0, 0, 548, 554, 1, 0, 0, 0, 549, 550, 5, 186, 0, 0, 550, 551, 3, 76, 38, 0, 551, 552, 5, 163, 0, 0, 552, 553, 3, 76, 38, 0, 553, 555, 1, 0, 0, 0, 554, 549, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 554, 1, 0, 0, 0, 556, 557, 1, 0, 0, 0, 557, 560, 1, 0, 0, 0, 558, 559, 5, 52, 0, 0, 559, 561, 3, 76, 38, 0, 560, 558, 1, 0, 0, 0, 560, 561, 1, 0, 0, 0, 561, 562, 1, 0, 0, 0, 562, 563, 5, 53, 0, 0, 563, 675, 1, 0, 0, 0, 564, 565, 5, 20, 0, 0, 565, 566, 5, 220, 0, 0, 566, 567, 3, 76, 38, 0, 567, 568, 5, 10, 0, 0, 568, 569, 3, 72, 36, 0, 569, 570, 5, 236, 0, 0, 570, 675, 1, 0, 0, 0, 571, 572, 5, 36, 0, 0, 572, 675, 5, 200, 0, 0, 573, 574, 5, 59, 0, 0, 574, 575, 5, 220, 0, 0, 575, 576, 3, 112, 56, 0, 576, 577, 5, 68, 0, 0, 577, 578, 3, 76, 38, 0, 578, 579, 5, 236, 0, 0, 579, 675, 1, 0, 0, 0, 580, 581, 5, 86, 0, 0, 581, 582, 3, 76, 38, 0, 582, 583, 3, 112, 56, 0, 583, 675, 1, 0, 0, 0, 584, 585, 5, 155, 0, 0, 585, 586, 5, 220, 0, 0, 586, 587, 3, 76, 38, 0, 587, 588, 5, 68, 0, 0, 588, 591, 3, 76, 38, 0, 589, 590, 5, 65, 0, 0, 590, 592, 3, 76, 38, 0, 591, 589, 1, 0, 0, 0, 591, 592, 1, 0, 0, 0, 592, 593, 1, 0, 0, 0, 593, 594, 5, 236, 0, 0, 594, 675, 1, 0, 0, 0, 595, 596, 5, 166, 0, 0, 596, 675, 5, 200, 0, 0, 597, 598, 5, 171, 0, 0, 598, 599, 5, 220, 0, 0, 599, 600, 7, 9, 0, 0, 600, 601, 5, 200, 0, 0, 601, 602, 5, 68, 0, 0, 602, 603, 3, 76, 38, 0, 603, 604, 5, 236, 0, 0, 604, 675, 1, 0, 0, 0, 605, 606, 3, 120, 60, 0, 606, 608, 5, 220, 0, 0, 607, 609, 3, 74, 37, 0, 608, 607, 1, 0, 0, 0, 608, 609, 1, 0, 0, 0, 609, 610, 1, 0, 0, 0, 610, 611, 5, 236, 0, 0, 611, 612, 1, 0, 0, 0, 612, 613, 5, 125, 0, 0, 613, 614, 5, 220, 0, 0, 614, 615, 3, 58, 29, 0, 615, 616, 5, 236, 0, 0, 616, 675, 1, 0, 0, 0, 617, 618, 3, 120, 60, 0, 618, 620, 5, 220, 0, 0, 619, 621, 3, 74, 37, 0, 620, 619, 1, 0, 0, 0, 620, 621, 1, 0, 0, 0, 621, 622, 1, 0, 0, 0, 622, 623, 5, 236, 0, 0, 623, 624, 1, 0, 0, 0, 624, 625, 5, 125, 0, 0, 625, 626, 3, 120, 60, 0, 626, 675, 1, 0, 0, 0, 627, 633, 3, 120, 60, 0, 628, 630, 5, 220, 0, 0, 629, 631, 3, 74, 37, 0, 630, 629, 1, 0, 0, 0, 630, 631, 1, 0, 0, 0, 631, 632, 1, 0, 0, 0, 632, 634, 5, 236, 0, 0, 633, 628, 1, 0, 0, 0, 633, 634, 1, 0, 0, 0, 634, 635, 1, 0, 0, 0, 635, 637, 5, 220, 0, 0, 636, 638, 5, 49, 0, 0, 637, 636, 1, 0, 0, 0, 637, 638, 1, 0, 0, 0, 638, 640, 1, 0, 0, 0, 639, 641, 3, 78, 39, 0, 640, 639, 1, 0, 0, 0, 640, 641, 1, 0, 0, 0, 641, 642, 1, 0, 0, 0, 642, 643, 5, 236, 0, 0, 643, 675, 1, 0, 0, 0, 644, 675, 3, 84, 42, 0, 645, 675, 3, 110, 55, 0, 646, 647, 5, 208, 0, 0, 647, 675, 3, 76, 38, 18, 648, 649, 5, 115, 0, 0, 649, 675, 3, 76, 38, 12, 650, 651, 3, 100, 50, 0, 651, 652, 5, 210, 0, 0, 652, 654, 1, 0, 0, 0, 653, 650, 1, 0, 0, 0, 653, 654, 1, 0, 0, 0, 654, 655, 1, 0, 0, 0, 655, 675, 5, 202, 0, 0, 656, 657, 5, 220, 0, 0, 657, 658, 3, 2, 1, 0, 658, 659, 5, 236, 0, 0, 659, 675, 1, 0, 0, 0, 660, 661, 5, 220, 0, 0, 661, 662, 3, 76, 38, 0, 662, 663, 5, 236, 0, 0, 663, 675, 1, 0, 0, 0, 664, 665, 5, 220, 0, 0, 665, 666, 3, 74, 37, 0, 666, 667, 5, 236, 0, 0, 667, 675, 1, 0, 0, 0, 668, 670, 5, 219, 0, 0, 669, 671, 3, 74, 37, 0, 670, 669, 1, 0, 0, 0, 670, 671, 1, 0, 0, 0, 671, 672, 1, 0, 0, 0, 672, 675, 5, 235, 0, 0, 673, 675, 3, 92, 46, 0, 674, 544, 1, 0, 0, 0, 674, 564, 1, 0, 0, 0, 674, 571, 1, 0, 0, 0, 674, 573, 1, 0, 0, 0, 674, 580, 1, 0, 0, 0, 674, 584, 1, 0, 0, 0, 674, 595, 1, 0, 0, 0, 674, 597, 1, 0, 0, 0, 674, 605, 1, 0, 0, 0, 674, 617, 1, 0, 0, 0, 674, 627, 1, 0, 0, 0, 674, 644, 1, 0, 0, 0, 674, 645, 1, 0, 0, 0, 674, 646, 1, 0, 0, 0, 674, 648, 1, 0, 0, 0, 674, 653, 1, 0, 0, 0, 674, 656, 1, 0, 0, 0, 674, 660, 1, 0, 0, 0, 674, 664, 1, 0, 0, 0, 674, 668, 1, 0, 0, 0, 674, 673, 1, 0, 0, 0, 675, 769, 1, 0, 0, 0, 676, 680, 10, 17, 0, 0, 677, 681, 5, 202, 0, 0, 678, 681, 5, 238, 0, 0, 679, 681, 5, 227, 0, 0, 680, 677, 1, 0, 0, 0, 680, 678, 1, 0, 0, 0, 680, 679, 1, 0, 0, 0, 681, 682, 1, 0, 0, 0, 682, 768, 3, 76, 38, 18, 683, 687, 10, 16, 0, 0, 684, 688, 5, 228, 0, 0, 685, 688, 5, 208, 0, 0, 686, 688, 5, 207, 0, 0, 687, 684, 1, 0, 0, 0, 687, 685, 1, 0, 0, 0, 687, 686, 1, 0, 0, 0, 688, 689, 1, 0, 0, 0, 689, 768, 3, 76, 38, 17, 690, 715, 10, 15, 0, 0, 691, 716, 5, 211, 0, 0, 692, 716, 5, 212, 0, 0, 693, 716, 5, 223, 0, 0, 694, 716, 5, 221, 0, 0, 695, 716, 5, 222, 0, 0, 696, 716, 5, 213, 0, 0, 697, 716, 5, 214, 0, 0, 698, 700, 5, 115, 0, 0, 699, 698, 1, 0, 0, 0, 699, 700, 1, 0, 0, 0, 700, 701, 1, 0, 0, 0, 701, 703, 5, 80, 0, 0, 702, 704, 5, 25, 0, 0, 703, 702, 1, 0, 0, 0, 703, 704, 1, 0, 0, 0, 704, 716, 1, 0, 0, 0, 705, 707, 5, 115, 0, 0, 706, 705, 1, 0, 0, 0, 706, 707, 1, 0, 0, 0, 707, 708, 1, 0, 0, 0, 708, 716, 7, 10, 0, 0, 709, 716, 5, 232, 0, 0, 710, 716, 5, 233, 0, 0, 711, 716, 5, 225, 0, 0, 712, 716, 5, 216, 0, 0, 713, 716, 5, 217, 0, 0, 714, 716, 5, 224, 0, 0, 715, 691, 1, 0, 0, 0, 715, 692, 1, 0, 0, 0, 715, 693, 1, 0, 0, 0, 715, 694, 1, 0, 0, 0, 715, 695, 1, 0, 0, 0, 715, 696, 1, 0, 0, 0, 715, 697, 1, 0, 0, 0, 715, 699, 1, 0, 0, 0, 715, 706, 1, 0, 0, 0, 715, 709, 1, 0, 0, 0, 715, 710, 1, 0, 0, 0, 715, 711, 1, 0, 0, 0, 715, 712, 1, 0, 0, 0, 715, 713, 1, 0, 0, 0, 715, 714, 1, 0, 0, 0, 716, 717, 1, 0, 0, 0, 717, 768, 3, 76, 38, 16, 718, 719, 10, 13, 0, 0, 719, 720, 5, 226, 0, 0, 720, 768, 3, 76, 38, 14, 721, 722, 10, 11, 0, 0, 722, 723, 5, 6, 0, 0, 723, 768, 3, 76, 38, 12, 724, 725, 10, 10, 0, 0, 725, 726, 5, 121, 0, 0, 726, 768, 3, 76, 38, 11, 727, 729, 10, 9, 0, 0, 728, 730, 5, 115, 0, 0, 729, 728, 1, 0, 0, 0, 729, 730, 1, 0, 0, 0, 730, 731, 1, 0, 0, 0, 731, 732, 5, 16, 0, 0, 732, 733, 3, 76, 38, 0, 733, 734, 5, 6, 0, 0, 734, 735, 3, 76, 38, 10, 735, 768, 1, 0, 0, 0, 736, 737, 10, 8, 0, 0, 737, 738, 5, 229, 0, 0, 738, 739, 3, 76, 38, 0, 739, 740, 5, 205, 0, 0, 740, 741, 3, 76, 38, 8, 741, 768, 1, 0, 0, 0, 742, 743, 10, 21, 0, 0, 743, 744, 5, 219, 0, 0, 744, 745, 3, 76, 38, 0, 745, 746, 5, 235, 0, 0, 746, 768, 1, 0, 0, 0, 747, 748, 10, 20, 0, 0, 748, 749, 5, 210, 0, 0, 749, 768, 5, 198, 0, 0, 750, 751, 10, 19, 0, 0, 751, 752, 5, 210, 0, 0, 752, 768, 3, 120, 60, 0, 753, 754, 10, 14, 0, 0, 754, 756, 5, 88, 0, 0, 755, 757, 5, 115, 0, 0, 756, 755, 1, 0, 0, 0, 756, 757, 1, 0, 0, 0, 757, 758, 1, 0, 0, 0, 758, 768, 5, 116, 0, 0, 759, 765, 10, 7, 0, 0, 760, 766, 3, 118, 59, 0, 761, 762, 5, 10, 0, 0, 762, 766, 3, 120, 60, 0, 763, 764, 5, 10, 0, 0, 764, 766, 5, 200, 0, 0, 765, 760, 1, 0, 0, 0, 765, 761, 1, 0, 0, 0, 765, 763, 1, 0, 0, 0, 766, 768, 1, 0, 0, 0, 767, 676, 1, 0, 0, 0, 767, 683, 1, 0, 0, 0, 767, 690, 1, 0, 0, 0, 767, 718, 1, 0, 0, 0, 767, 721, 1, 0, 0, 0, 767, 724, 1, 0, 0, 0, 767, 727, 1, 0, 0, 0, 767, 736, 1, 0, 0, 0, 767, 742, 1, 0, 0, 0, 767, 747, 1, 0, 0, 0, 767, 750, 1, 0, 0, 0, 767, 753, 1, 0, 0, 0, 767, 759, 1, 0, 0, 0, 768, 771, 1, 0, 0, 0, 769, 767, 1, 0, 0, 0, 769, 770, 1, 0, 0, 0, 770, 77, 1, 0, 0, 0, 771, 769, 1, 0, 0, 0, 772, 777, 3, 80, 40, 0, 773, 774, 5, 206, 0, 0, 774, 776, 3, 80, 40, 0, 775, 773, 1, 0, 0, 0, 776, 779, 1, 0, 0, 0, 777, 775, 1, 0, 0, 0, 777, 778, 1, 0, 0, 0, 778, 79, 1, 0, 0, 0, 779, 777, 1, 0, 0, 0, 780, 783, 3, 82, 41, 0, 781, 783, 3, 76, 38, 0, 782, 780, 1, 0, 0, 0, 782, 781, 1, 0, 0, 0, 783, 81, 1, 0, 0, 0, 784, 785, 5, 220, 0, 0, 785, 790, 3, 120, 60, 0, 786, 787, 5, 206, 0, 0, 787, 789, 3, 120, 60, 0, 788, 786, 1, 0, 0, 0, 789, 792, 1, 0, 0, 0, 790, 788, 1, 0, 0, 0, 790, 791, 1, 0, 0, 0, 791, 793, 1, 0, 0, 0, 792, 790, 1, 0, 0, 0, 793, 794, 5, 236, 0, 0, 794, 804, 1, 0, 0, 0, 795, 800, 3, 120, 60, 0, 796, 797, 5, 206, 0, 0, 797, 799, 3, 120, 60, 0, 798, 796, 1, 0, 0, 0, 799, 802, 1, 0, 0, 0, 800, 798, 1, 0, 0, 0, 800, 801, 1, 0, 0, 0, 801, 804, 1, 0, 0, 0, 802, 800, 1, 0, 0, 0, 803, 784, 1, 0, 0, 0, 803, 795, 1, 0, 0, 0, 804, 805, 1, 0, 0, 0, 805, 806, 5, 201, 0, 0, 806, 807, 3, 76, 38, 0, 807, 83, 1, 0, 0, 0, 808, 809, 5, 222, 0, 0, 809, 813, 3, 120, 60, 0, 810, 812, 3, 86, 43, 0, 811, 810, 1, 0, 0, 0, 812, 815, 1, 0, 0, 0, 813, 811, 1, 0, 0, 0, 813, 814, 1, 0, 0, 0, 814, 816, 1, 0, 0, 0, 815, 813, 1, 0, 0, 0, 816, 817, 5, 238, 0, 0, 817, 818, 5, 214, 0, 0, 818, 837, 1, 0, 0, 0, 819, 820, 5, 222, 0, 0, 820, 824, 3, 120, 60, 0, 821, 823, 3, 86, 43, 0, 822, 821, 1, 0, 0, 0, 823, 826, 1, 0, 0, 0, 824, 822, 1, 0, 0, 0, 824, 825, 1, 0, 0, 0, 825, 827, 1, 0, 0, 0, 826, 824, 1, 0, 0, 0, 827, 829, 5, 214, 0, 0, 828, 830, 3, 84, 42, 0, 829, 828, 1, 0, 0, 0, 829, 830, 1, 0, 0, 0, 830, 831, 1, 0, 0, 0, 831, 832, 5, 222, 0, 0, 832, 833, 5, 238, 0, 0, 833, 834, 3, 120, 60, 0, 834, 835, 5, 214, 0, 0, 835, 837, 1, 0, 0, 0, 836, 808, 1, 0, 0, 0, 836, 819, 1, 0, 0, 0, 837, 85, 1, 0, 0, 0, 838, 839, 3, 120, 60, 0, 839, 840, 5, 212, 0, 0, 840, 841, 5, 200, 0, 0, 841, 850, 1, 0, 0, 0, 842, 843, 3, 120, 60, 0, 843, 844, 5, 212, 0, 0, 844, 845, 5, 218, 0, 0, 845, 846, 3, 76, 38, 0, 846, 847, 5, 234, 0, 0, 847, 850, 1, 0, 0, 0, 848, 850, 3, 120, 60, 0, 849, 838, 1, 0, 0, 0, 849, 842, 1, 0, 0, 0, 849, 848, 1, 0, 0, 0, 850, 87, 1, 0, 0, 0, 851, 856, 3, 90, 45, 0, 852, 853, 5, 206, 0, 0, 853, 855, 3, 90, 45, 0, 854, 852, 1, 0, 0, 0, 855, 858, 1, 0, 0, 0, 856, 854, 1, 0, 0, 0, 856, 857, 1, 0, 0, 0, 857, 89, 1, 0, 0, 0, 858, 856, 1, 0, 0, 0, 859, 860, 3, 120, 60, 0, 860, 861, 5, 10, 0, 0, 861, 862, 5, 220, 0, 0, 862, 863, 3, 2, 1, 0, 863, 864, 5, 236, 0, 0, 864, 870, 1, 0, 0, 0, 865, 866, 3, 76, 38, 0, 866, 867, 5, 10, 0, 0, 867, 868, 3, 120, 60, 0, 868, 870, 1, 0, 0, 0, 869, 859, 1, 0, 0, 0, 869, 865, 1, 0, 0, 0, 870, 91, 1, 0, 0, 0, 871, 879, 3, 124, 62, 0, 872, 873, 3, 100, 50, 0, 873, 874, 5, 210, 0, 0, 874, 876, 1, 0, 0, 0, 875, 872, 1, 0, 0, 0, 875, 876, 1, 0, 0, 0, 876, 877, 1, 0, 0, 0, 877, 879, 3, 94, 47, 0, 878, 871, 1, 0, 0, 0, 878, 875, 1, 0, 0, 0, 879, 93, 1, 0, 0, 0, 880, 885, 3, 120, 60, 0, 881, 882, 5, 210, 0, 0, 882, 884, 3, 120, 60, 0, 883, 881, 1, 0, 0, 0, 884, 887, 1, 0, 0, 0, 885, 883, 1, 0, 0, 0, 885, 886, 1, 0, 0, 0, 886, 95, 1, 0, 0, 0, 887, 885, 1, 0, 0, 0, 888, 889, 6, 48, -1, 0, 889, 898, 3, 100, 50, 0, 890, 898, 3, 98, 49, 0, 891, 892, 5, 220, 0, 0, 892, 893, 3, 2, 1, 0, 893, 894, 5, 236, 0, 0, 894, 898, 1, 0, 0, 0, 895, 898, 3, 84, 42, 0, 896, 898, 3, 124, 62, 0, 897, 888, 1, 0, 0, 0, 897, 890, 1, 0, 0, 0, 897, 891, 1, 0, 0, 0, 897, 895, 1, 0, 0, 0, 897, 896, 1, 0, 0, 0, 898, 907, 1, 0, 0, 0, 899, 903, 10, 3, 0, 0, 900, 904, 3, 118, 59, 0, 901, 902, 5, 10, 0, 0, 902, 904, 3, 120, 60, 0, 903, 900, 1, 0, 0, 0, 903, 901, 1, 0, 0, 0, 904, 906, 1, 0, 0, 0, 905, 899, 1, 0, 0, 0, 906, 909, 1, 0, 0, 0, 907, 905, 1, 0, 0, 0, 907, 908, 1, 0, 0, 0, 908, 97, 1, 0, 0, 0, 909, 907, 1, 0, 0, 0, 910, 911, 3, 120, 60, 0, 911, 913, 5, 220, 0, 0, 912, 914, 3, 102, 51, 0, 913, 912, 1, 0, 0, 0, 913, 914, 1, 0, 0, 0, 914, 915, 1, 0, 0, 0, 915, 916, 5, 236, 0, 0, 916, 99, 1, 0, 0, 0, 917, 918, 3, 104, 52, 0, 918, 919, 5, 210, 0, 0, 919, 921, 1, 0, 0, 0, 920, 917, 1, 0, 0, 0, 920, 921, 1, 0, 0, 0, 921, 922, 1, 0, 0, 0, 922, 923, 3, 120, 60, 0, 923, 101, 1, 0, 0, 0, 924, 929, 3, 76, 38, 0, 925, 926, 5, 206, 0, 0, 926, 928, 3, 76, 38, 0, 927, 925, 1, 0, 0, 0, 928, 931, 1, 0, 0, 0, 929, 927, 1, 0, 0, 0, 929, 930, 1, 0, 0, 0, 930, 103, 1, 0, 0, 0, 931, 929, 1, 0, 0, 0, 932, 933, 3, 120, 60, 0, 933, 105, 1, 0, 0, 0, 934, 943, 5, 196, 0, 0, 935, 936, 5, 210, 0, 0, 936, 943, 7, 11, 0, 0, 937, 938, 5, 198, 0, 0, 938, 940, 5, 210, 0, 0, 939, 941, 7, 11, 0, 0, 940, 939, 1, 0, 0, 0, 940, 941, 1, 0, 0, 0, 941, 943, 1, 0, 0, 0, 942, 934, 1, 0, 0, 0, 942, 935, 1, 0, 0, 0, 942, 937, 1, 0, 0, 0, 943, 107, 1, 0, 0, 0, 944, 946, 7, 12, 0, 0, 945, 944, 1, 0, 0, 0, 945, 946, 1, 0, 0, 0, 946, 953, 1, 0, 0, 0, 947, 954, 3, 106, 53, 0, 948, 954, 5, 197, 0, 0, 949, 954, 5, 198, 0, 0, 950, 954, 5, 199, 0, 0, 951, 954, 5, 82, 0, 0, 952, 954, 5, 113, 0, 0, 953, 947, 1, 0, 0, 0, 953, 948, 1, 0, 0, 0, 953, 949, 1, 0, 0, 0, 953, 950, 1, 0, 0, 0, 953, 951, 1, 0, 0, 0, 953, 952, 1, 0, 0, 0, 954, 109, 1, 0, 0, 0, 955, 959, 3, 108, 54, 0, 956, 959, 5, 200, 0, 0, 957, 959, 5, 116, 0, 0, 958, 955, 1, 0, 0, 0, 958, 956, 1, 0, 0, 0, 958, 957, 1, 0, 0, 0, 959, 111, 1, 0, 0, 0, 960, 961, 7, 13, 0, 0, 961, 113, 1, 0, 0, 0, 962, 963, 7, 14, 0, 0, 963, 115, 1, 0, 0, 0, 964, 965, 7, 15, 0, 0, 965, 117, 1, 0, 0, 0, 966, 969, 5, 195, 0, 0, 967, 969, 3, 116, 58, 0, 968, 966, 1, 0, 0, 0, 968, 967, 1, 0, 0, 0, 969, 119, 1, 0, 0, 0, 970, 974, 5, 195, 0, 0, 971, 974, 3, 112, 56, 0, 972, 974, 3, 114, 57, 0, 973, 970, 1, 0, 0, 0, 973, 971, 1, 0, 0, 0, 973, 972, 1, 0, 0, 0, 974, 121, 1, 0, 0, 0, 975, 976, 5, 200, 0, 0, 976, 977, 5, 212, 0, 0, 977, 978, 3, 108, 54, 0, 978, 123, 1, 0, 0, 0, 979, 980, 5, 218, 0, 0, 980, 981, 3, 120, 60, 0, 981, 982, 5, 234, 0, 0, 982, 125, 1, 0, 0, 0, 121, 129, 139, 147, 151, 154, 158, 161, 165, 168, 171, 174, 177, 181, 185, 188, 191, 194, 198, 201, 210, 216, 237, 254, 271, 277, 283, 294, 296, 307, 310, 316, 324, 330, 332, 336, 341, 344, 347, 351, 355, 358, 360, 363, 367, 371, 374, 376, 378, 383, 394, 400, 407, 412, 416, 420, 426, 428, 435, 443, 446, 449, 468, 482, 498, 510, 522, 530, 534, 541, 547, 556, 560, 591, 608, 620, 630, 633, 637, 640, 653, 670, 674, 680, 687, 699, 703, 706, 715, 729, 756, 765, 767, 769, 777, 782, 790, 800, 803, 813, 824, 829, 836, 849, 856, 869, 875, 878, 885, 897, 903, 907, 913, 920, 929, 940, 942, 945, 953, 958, 968, 973] \ No newline at end of file +[4, 1, 242, 979, 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, 1, 0, 1, 0, 1, 0, 3, 0, 128, 8, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 136, 8, 1, 10, 1, 12, 1, 139, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 147, 8, 2, 1, 3, 3, 3, 150, 8, 3, 1, 3, 1, 3, 3, 3, 154, 8, 3, 1, 3, 3, 3, 157, 8, 3, 1, 3, 1, 3, 3, 3, 161, 8, 3, 1, 3, 3, 3, 164, 8, 3, 1, 3, 3, 3, 167, 8, 3, 1, 3, 3, 3, 170, 8, 3, 1, 3, 3, 3, 173, 8, 3, 1, 3, 1, 3, 3, 3, 177, 8, 3, 1, 3, 1, 3, 3, 3, 181, 8, 3, 1, 3, 3, 3, 184, 8, 3, 1, 3, 3, 3, 187, 8, 3, 1, 3, 3, 3, 190, 8, 3, 1, 3, 1, 3, 3, 3, 194, 8, 3, 1, 3, 3, 3, 197, 8, 3, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 206, 8, 5, 1, 6, 1, 6, 1, 6, 1, 7, 3, 7, 212, 8, 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, 8, 1, 8, 1, 8, 1, 8, 5, 8, 231, 8, 8, 10, 8, 12, 8, 234, 9, 8, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 250, 8, 11, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 267, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 273, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 279, 8, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 3, 15, 290, 8, 15, 3, 15, 292, 8, 15, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 3, 18, 303, 8, 18, 1, 18, 3, 18, 306, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 312, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 3, 18, 320, 8, 18, 1, 18, 1, 18, 1, 18, 1, 18, 5, 18, 326, 8, 18, 10, 18, 12, 18, 329, 9, 18, 1, 19, 3, 19, 332, 8, 19, 1, 19, 1, 19, 1, 19, 3, 19, 337, 8, 19, 1, 19, 3, 19, 340, 8, 19, 1, 19, 3, 19, 343, 8, 19, 1, 19, 1, 19, 3, 19, 347, 8, 19, 1, 19, 1, 19, 3, 19, 351, 8, 19, 1, 19, 3, 19, 354, 8, 19, 3, 19, 356, 8, 19, 1, 19, 3, 19, 359, 8, 19, 1, 19, 1, 19, 3, 19, 363, 8, 19, 1, 19, 1, 19, 3, 19, 367, 8, 19, 1, 19, 3, 19, 370, 8, 19, 3, 19, 372, 8, 19, 3, 19, 374, 8, 19, 1, 20, 1, 20, 1, 20, 3, 20, 379, 8, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 1, 21, 3, 21, 390, 8, 21, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 396, 8, 22, 1, 23, 1, 23, 1, 23, 5, 23, 401, 8, 23, 10, 23, 12, 23, 404, 9, 23, 1, 24, 1, 24, 3, 24, 408, 8, 24, 1, 24, 1, 24, 3, 24, 412, 8, 24, 1, 24, 1, 24, 3, 24, 416, 8, 24, 1, 25, 1, 25, 1, 25, 1, 25, 3, 25, 422, 8, 25, 3, 25, 424, 8, 25, 1, 26, 1, 26, 1, 26, 5, 26, 429, 8, 26, 10, 26, 12, 26, 432, 9, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 3, 28, 439, 8, 28, 1, 28, 3, 28, 442, 8, 28, 1, 28, 3, 28, 445, 8, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 3, 32, 464, 8, 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, 3, 33, 478, 8, 33, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 492, 8, 35, 10, 35, 12, 35, 495, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 504, 8, 35, 10, 35, 12, 35, 507, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 5, 35, 516, 8, 35, 10, 35, 12, 35, 519, 9, 35, 1, 35, 1, 35, 1, 35, 1, 35, 1, 35, 3, 35, 526, 8, 35, 1, 35, 1, 35, 3, 35, 530, 8, 35, 1, 36, 1, 36, 1, 36, 5, 36, 535, 8, 36, 10, 36, 12, 36, 538, 9, 36, 1, 37, 1, 37, 1, 37, 3, 37, 543, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 4, 37, 550, 8, 37, 11, 37, 12, 37, 551, 1, 37, 1, 37, 3, 37, 556, 8, 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, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 587, 8, 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, 604, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 616, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 626, 8, 37, 1, 37, 3, 37, 629, 8, 37, 1, 37, 1, 37, 3, 37, 633, 8, 37, 1, 37, 3, 37, 636, 8, 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, 649, 8, 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, 666, 8, 37, 1, 37, 1, 37, 3, 37, 670, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 676, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 683, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 695, 8, 37, 1, 37, 1, 37, 3, 37, 699, 8, 37, 1, 37, 3, 37, 702, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 711, 8, 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, 725, 8, 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, 752, 8, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 3, 37, 761, 8, 37, 5, 37, 763, 8, 37, 10, 37, 12, 37, 766, 9, 37, 1, 38, 1, 38, 1, 38, 5, 38, 771, 8, 38, 10, 38, 12, 38, 774, 9, 38, 1, 39, 1, 39, 3, 39, 778, 8, 39, 1, 40, 1, 40, 1, 40, 1, 40, 5, 40, 784, 8, 40, 10, 40, 12, 40, 787, 9, 40, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 5, 40, 794, 8, 40, 10, 40, 12, 40, 797, 9, 40, 3, 40, 799, 8, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 5, 41, 807, 8, 41, 10, 41, 12, 41, 810, 9, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 5, 41, 818, 8, 41, 10, 41, 12, 41, 821, 9, 41, 1, 41, 1, 41, 3, 41, 825, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 832, 8, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 3, 42, 845, 8, 42, 1, 43, 1, 43, 1, 43, 5, 43, 850, 8, 43, 10, 43, 12, 43, 853, 9, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 3, 44, 865, 8, 44, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 871, 8, 45, 1, 45, 3, 45, 874, 8, 45, 1, 46, 1, 46, 1, 46, 5, 46, 879, 8, 46, 10, 46, 12, 46, 882, 9, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 893, 8, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 899, 8, 47, 5, 47, 901, 8, 47, 10, 47, 12, 47, 904, 9, 47, 1, 48, 1, 48, 1, 48, 3, 48, 909, 8, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 3, 49, 916, 8, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 5, 50, 923, 8, 50, 10, 50, 12, 50, 926, 9, 50, 1, 51, 1, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 3, 52, 936, 8, 52, 3, 52, 938, 8, 52, 1, 53, 3, 53, 941, 8, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 3, 53, 949, 8, 53, 1, 54, 1, 54, 1, 54, 3, 54, 954, 8, 54, 1, 55, 1, 55, 1, 56, 1, 56, 1, 57, 1, 57, 1, 58, 1, 58, 3, 58, 964, 8, 58, 1, 59, 1, 59, 1, 59, 3, 59, 969, 8, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 0, 3, 36, 74, 94, 62, 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, 0, 16, 2, 0, 32, 32, 141, 141, 2, 0, 84, 84, 96, 96, 3, 0, 4, 4, 8, 8, 12, 12, 4, 0, 4, 4, 7, 8, 12, 12, 147, 147, 2, 0, 96, 96, 140, 140, 2, 0, 4, 4, 8, 8, 2, 0, 11, 11, 42, 43, 2, 0, 62, 62, 93, 93, 2, 0, 133, 133, 143, 143, 3, 0, 17, 17, 95, 95, 170, 170, 2, 0, 79, 79, 98, 98, 1, 0, 197, 198, 2, 0, 208, 208, 228, 228, 8, 0, 37, 37, 76, 76, 108, 108, 110, 110, 132, 132, 145, 145, 185, 185, 190, 190, 13, 0, 2, 24, 26, 36, 38, 75, 77, 81, 83, 107, 109, 109, 111, 112, 114, 115, 117, 130, 133, 144, 146, 184, 186, 189, 191, 192, 4, 0, 36, 36, 62, 62, 77, 77, 91, 91, 1107, 0, 127, 1, 0, 0, 0, 2, 131, 1, 0, 0, 0, 4, 146, 1, 0, 0, 0, 6, 149, 1, 0, 0, 0, 8, 198, 1, 0, 0, 0, 10, 201, 1, 0, 0, 0, 12, 207, 1, 0, 0, 0, 14, 211, 1, 0, 0, 0, 16, 217, 1, 0, 0, 0, 18, 235, 1, 0, 0, 0, 20, 238, 1, 0, 0, 0, 22, 241, 1, 0, 0, 0, 24, 251, 1, 0, 0, 0, 26, 254, 1, 0, 0, 0, 28, 258, 1, 0, 0, 0, 30, 291, 1, 0, 0, 0, 32, 293, 1, 0, 0, 0, 34, 296, 1, 0, 0, 0, 36, 311, 1, 0, 0, 0, 38, 373, 1, 0, 0, 0, 40, 378, 1, 0, 0, 0, 42, 389, 1, 0, 0, 0, 44, 391, 1, 0, 0, 0, 46, 397, 1, 0, 0, 0, 48, 405, 1, 0, 0, 0, 50, 423, 1, 0, 0, 0, 52, 425, 1, 0, 0, 0, 54, 433, 1, 0, 0, 0, 56, 438, 1, 0, 0, 0, 58, 446, 1, 0, 0, 0, 60, 450, 1, 0, 0, 0, 62, 454, 1, 0, 0, 0, 64, 463, 1, 0, 0, 0, 66, 477, 1, 0, 0, 0, 68, 479, 1, 0, 0, 0, 70, 529, 1, 0, 0, 0, 72, 531, 1, 0, 0, 0, 74, 669, 1, 0, 0, 0, 76, 767, 1, 0, 0, 0, 78, 777, 1, 0, 0, 0, 80, 798, 1, 0, 0, 0, 82, 831, 1, 0, 0, 0, 84, 844, 1, 0, 0, 0, 86, 846, 1, 0, 0, 0, 88, 864, 1, 0, 0, 0, 90, 873, 1, 0, 0, 0, 92, 875, 1, 0, 0, 0, 94, 892, 1, 0, 0, 0, 96, 905, 1, 0, 0, 0, 98, 915, 1, 0, 0, 0, 100, 919, 1, 0, 0, 0, 102, 927, 1, 0, 0, 0, 104, 937, 1, 0, 0, 0, 106, 940, 1, 0, 0, 0, 108, 953, 1, 0, 0, 0, 110, 955, 1, 0, 0, 0, 112, 957, 1, 0, 0, 0, 114, 959, 1, 0, 0, 0, 116, 963, 1, 0, 0, 0, 118, 968, 1, 0, 0, 0, 120, 970, 1, 0, 0, 0, 122, 974, 1, 0, 0, 0, 124, 128, 3, 2, 1, 0, 125, 128, 3, 6, 3, 0, 126, 128, 3, 82, 41, 0, 127, 124, 1, 0, 0, 0, 127, 125, 1, 0, 0, 0, 127, 126, 1, 0, 0, 0, 128, 129, 1, 0, 0, 0, 129, 130, 5, 0, 0, 1, 130, 1, 1, 0, 0, 0, 131, 137, 3, 4, 2, 0, 132, 133, 5, 176, 0, 0, 133, 134, 5, 4, 0, 0, 134, 136, 3, 4, 2, 0, 135, 132, 1, 0, 0, 0, 136, 139, 1, 0, 0, 0, 137, 135, 1, 0, 0, 0, 137, 138, 1, 0, 0, 0, 138, 3, 1, 0, 0, 0, 139, 137, 1, 0, 0, 0, 140, 147, 3, 6, 3, 0, 141, 142, 5, 220, 0, 0, 142, 143, 3, 2, 1, 0, 143, 144, 5, 236, 0, 0, 144, 147, 1, 0, 0, 0, 145, 147, 3, 122, 61, 0, 146, 140, 1, 0, 0, 0, 146, 141, 1, 0, 0, 0, 146, 145, 1, 0, 0, 0, 147, 5, 1, 0, 0, 0, 148, 150, 3, 8, 4, 0, 149, 148, 1, 0, 0, 0, 149, 150, 1, 0, 0, 0, 150, 151, 1, 0, 0, 0, 151, 153, 5, 146, 0, 0, 152, 154, 5, 49, 0, 0, 153, 152, 1, 0, 0, 0, 153, 154, 1, 0, 0, 0, 154, 156, 1, 0, 0, 0, 155, 157, 3, 10, 5, 0, 156, 155, 1, 0, 0, 0, 156, 157, 1, 0, 0, 0, 157, 158, 1, 0, 0, 0, 158, 160, 3, 72, 36, 0, 159, 161, 3, 12, 6, 0, 160, 159, 1, 0, 0, 0, 160, 161, 1, 0, 0, 0, 161, 163, 1, 0, 0, 0, 162, 164, 3, 14, 7, 0, 163, 162, 1, 0, 0, 0, 163, 164, 1, 0, 0, 0, 164, 166, 1, 0, 0, 0, 165, 167, 3, 18, 9, 0, 166, 165, 1, 0, 0, 0, 166, 167, 1, 0, 0, 0, 167, 169, 1, 0, 0, 0, 168, 170, 3, 20, 10, 0, 169, 168, 1, 0, 0, 0, 169, 170, 1, 0, 0, 0, 170, 172, 1, 0, 0, 0, 171, 173, 3, 22, 11, 0, 172, 171, 1, 0, 0, 0, 172, 173, 1, 0, 0, 0, 173, 176, 1, 0, 0, 0, 174, 175, 5, 189, 0, 0, 175, 177, 7, 0, 0, 0, 176, 174, 1, 0, 0, 0, 176, 177, 1, 0, 0, 0, 177, 180, 1, 0, 0, 0, 178, 179, 5, 189, 0, 0, 179, 181, 5, 169, 0, 0, 180, 178, 1, 0, 0, 0, 180, 181, 1, 0, 0, 0, 181, 183, 1, 0, 0, 0, 182, 184, 3, 24, 12, 0, 183, 182, 1, 0, 0, 0, 183, 184, 1, 0, 0, 0, 184, 186, 1, 0, 0, 0, 185, 187, 3, 16, 8, 0, 186, 185, 1, 0, 0, 0, 186, 187, 1, 0, 0, 0, 187, 189, 1, 0, 0, 0, 188, 190, 3, 26, 13, 0, 189, 188, 1, 0, 0, 0, 189, 190, 1, 0, 0, 0, 190, 193, 1, 0, 0, 0, 191, 194, 3, 30, 15, 0, 192, 194, 3, 32, 16, 0, 193, 191, 1, 0, 0, 0, 193, 192, 1, 0, 0, 0, 193, 194, 1, 0, 0, 0, 194, 196, 1, 0, 0, 0, 195, 197, 3, 34, 17, 0, 196, 195, 1, 0, 0, 0, 196, 197, 1, 0, 0, 0, 197, 7, 1, 0, 0, 0, 198, 199, 5, 189, 0, 0, 199, 200, 3, 86, 43, 0, 200, 9, 1, 0, 0, 0, 201, 202, 5, 168, 0, 0, 202, 205, 5, 198, 0, 0, 203, 204, 5, 189, 0, 0, 204, 206, 5, 164, 0, 0, 205, 203, 1, 0, 0, 0, 205, 206, 1, 0, 0, 0, 206, 11, 1, 0, 0, 0, 207, 208, 5, 68, 0, 0, 208, 209, 3, 36, 18, 0, 209, 13, 1, 0, 0, 0, 210, 212, 7, 1, 0, 0, 211, 210, 1, 0, 0, 0, 211, 212, 1, 0, 0, 0, 212, 213, 1, 0, 0, 0, 213, 214, 5, 9, 0, 0, 214, 215, 5, 90, 0, 0, 215, 216, 3, 72, 36, 0, 216, 15, 1, 0, 0, 0, 217, 218, 5, 188, 0, 0, 218, 219, 3, 118, 59, 0, 219, 220, 5, 10, 0, 0, 220, 221, 5, 220, 0, 0, 221, 222, 3, 56, 28, 0, 222, 232, 5, 236, 0, 0, 223, 224, 5, 206, 0, 0, 224, 225, 3, 118, 59, 0, 225, 226, 5, 10, 0, 0, 226, 227, 5, 220, 0, 0, 227, 228, 3, 56, 28, 0, 228, 229, 5, 236, 0, 0, 229, 231, 1, 0, 0, 0, 230, 223, 1, 0, 0, 0, 231, 234, 1, 0, 0, 0, 232, 230, 1, 0, 0, 0, 232, 233, 1, 0, 0, 0, 233, 17, 1, 0, 0, 0, 234, 232, 1, 0, 0, 0, 235, 236, 5, 129, 0, 0, 236, 237, 3, 74, 37, 0, 237, 19, 1, 0, 0, 0, 238, 239, 5, 187, 0, 0, 239, 240, 3, 74, 37, 0, 240, 21, 1, 0, 0, 0, 241, 242, 5, 73, 0, 0, 242, 249, 5, 18, 0, 0, 243, 244, 7, 0, 0, 0, 244, 245, 5, 220, 0, 0, 245, 246, 3, 72, 36, 0, 246, 247, 5, 236, 0, 0, 247, 250, 1, 0, 0, 0, 248, 250, 3, 72, 36, 0, 249, 243, 1, 0, 0, 0, 249, 248, 1, 0, 0, 0, 250, 23, 1, 0, 0, 0, 251, 252, 5, 74, 0, 0, 252, 253, 3, 74, 37, 0, 253, 25, 1, 0, 0, 0, 254, 255, 5, 122, 0, 0, 255, 256, 5, 18, 0, 0, 256, 257, 3, 46, 23, 0, 257, 27, 1, 0, 0, 0, 258, 259, 5, 122, 0, 0, 259, 260, 5, 18, 0, 0, 260, 261, 3, 72, 36, 0, 261, 29, 1, 0, 0, 0, 262, 263, 5, 99, 0, 0, 263, 266, 3, 74, 37, 0, 264, 265, 5, 206, 0, 0, 265, 267, 3, 74, 37, 0, 266, 264, 1, 0, 0, 0, 266, 267, 1, 0, 0, 0, 267, 272, 1, 0, 0, 0, 268, 269, 5, 189, 0, 0, 269, 273, 5, 164, 0, 0, 270, 271, 5, 18, 0, 0, 271, 273, 3, 72, 36, 0, 272, 268, 1, 0, 0, 0, 272, 270, 1, 0, 0, 0, 272, 273, 1, 0, 0, 0, 273, 292, 1, 0, 0, 0, 274, 275, 5, 99, 0, 0, 275, 278, 3, 74, 37, 0, 276, 277, 5, 189, 0, 0, 277, 279, 5, 164, 0, 0, 278, 276, 1, 0, 0, 0, 278, 279, 1, 0, 0, 0, 279, 280, 1, 0, 0, 0, 280, 281, 5, 118, 0, 0, 281, 282, 3, 74, 37, 0, 282, 292, 1, 0, 0, 0, 283, 284, 5, 99, 0, 0, 284, 285, 3, 74, 37, 0, 285, 286, 5, 118, 0, 0, 286, 289, 3, 74, 37, 0, 287, 288, 5, 18, 0, 0, 288, 290, 3, 72, 36, 0, 289, 287, 1, 0, 0, 0, 289, 290, 1, 0, 0, 0, 290, 292, 1, 0, 0, 0, 291, 262, 1, 0, 0, 0, 291, 274, 1, 0, 0, 0, 291, 283, 1, 0, 0, 0, 292, 31, 1, 0, 0, 0, 293, 294, 5, 118, 0, 0, 294, 295, 3, 74, 37, 0, 295, 33, 1, 0, 0, 0, 296, 297, 5, 150, 0, 0, 297, 298, 3, 52, 26, 0, 298, 35, 1, 0, 0, 0, 299, 300, 6, 18, -1, 0, 300, 302, 3, 94, 47, 0, 301, 303, 5, 61, 0, 0, 302, 301, 1, 0, 0, 0, 302, 303, 1, 0, 0, 0, 303, 305, 1, 0, 0, 0, 304, 306, 3, 44, 22, 0, 305, 304, 1, 0, 0, 0, 305, 306, 1, 0, 0, 0, 306, 312, 1, 0, 0, 0, 307, 308, 5, 220, 0, 0, 308, 309, 3, 36, 18, 0, 309, 310, 5, 236, 0, 0, 310, 312, 1, 0, 0, 0, 311, 299, 1, 0, 0, 0, 311, 307, 1, 0, 0, 0, 312, 327, 1, 0, 0, 0, 313, 314, 10, 3, 0, 0, 314, 315, 3, 40, 20, 0, 315, 316, 3, 36, 18, 4, 316, 326, 1, 0, 0, 0, 317, 319, 10, 4, 0, 0, 318, 320, 3, 38, 19, 0, 319, 318, 1, 0, 0, 0, 319, 320, 1, 0, 0, 0, 320, 321, 1, 0, 0, 0, 321, 322, 5, 90, 0, 0, 322, 323, 3, 36, 18, 0, 323, 324, 3, 42, 21, 0, 324, 326, 1, 0, 0, 0, 325, 313, 1, 0, 0, 0, 325, 317, 1, 0, 0, 0, 326, 329, 1, 0, 0, 0, 327, 325, 1, 0, 0, 0, 327, 328, 1, 0, 0, 0, 328, 37, 1, 0, 0, 0, 329, 327, 1, 0, 0, 0, 330, 332, 7, 2, 0, 0, 331, 330, 1, 0, 0, 0, 331, 332, 1, 0, 0, 0, 332, 333, 1, 0, 0, 0, 333, 340, 5, 84, 0, 0, 334, 336, 5, 84, 0, 0, 335, 337, 7, 2, 0, 0, 336, 335, 1, 0, 0, 0, 336, 337, 1, 0, 0, 0, 337, 340, 1, 0, 0, 0, 338, 340, 7, 2, 0, 0, 339, 331, 1, 0, 0, 0, 339, 334, 1, 0, 0, 0, 339, 338, 1, 0, 0, 0, 340, 374, 1, 0, 0, 0, 341, 343, 7, 3, 0, 0, 342, 341, 1, 0, 0, 0, 342, 343, 1, 0, 0, 0, 343, 344, 1, 0, 0, 0, 344, 346, 7, 4, 0, 0, 345, 347, 5, 123, 0, 0, 346, 345, 1, 0, 0, 0, 346, 347, 1, 0, 0, 0, 347, 356, 1, 0, 0, 0, 348, 350, 7, 4, 0, 0, 349, 351, 5, 123, 0, 0, 350, 349, 1, 0, 0, 0, 350, 351, 1, 0, 0, 0, 351, 353, 1, 0, 0, 0, 352, 354, 7, 3, 0, 0, 353, 352, 1, 0, 0, 0, 353, 354, 1, 0, 0, 0, 354, 356, 1, 0, 0, 0, 355, 342, 1, 0, 0, 0, 355, 348, 1, 0, 0, 0, 356, 374, 1, 0, 0, 0, 357, 359, 7, 5, 0, 0, 358, 357, 1, 0, 0, 0, 358, 359, 1, 0, 0, 0, 359, 360, 1, 0, 0, 0, 360, 362, 5, 69, 0, 0, 361, 363, 5, 123, 0, 0, 362, 361, 1, 0, 0, 0, 362, 363, 1, 0, 0, 0, 363, 372, 1, 0, 0, 0, 364, 366, 5, 69, 0, 0, 365, 367, 5, 123, 0, 0, 366, 365, 1, 0, 0, 0, 366, 367, 1, 0, 0, 0, 367, 369, 1, 0, 0, 0, 368, 370, 7, 5, 0, 0, 369, 368, 1, 0, 0, 0, 369, 370, 1, 0, 0, 0, 370, 372, 1, 0, 0, 0, 371, 358, 1, 0, 0, 0, 371, 364, 1, 0, 0, 0, 372, 374, 1, 0, 0, 0, 373, 339, 1, 0, 0, 0, 373, 355, 1, 0, 0, 0, 373, 371, 1, 0, 0, 0, 374, 39, 1, 0, 0, 0, 375, 376, 5, 31, 0, 0, 376, 379, 5, 90, 0, 0, 377, 379, 5, 206, 0, 0, 378, 375, 1, 0, 0, 0, 378, 377, 1, 0, 0, 0, 379, 41, 1, 0, 0, 0, 380, 381, 5, 119, 0, 0, 381, 390, 3, 72, 36, 0, 382, 383, 5, 179, 0, 0, 383, 384, 5, 220, 0, 0, 384, 385, 3, 72, 36, 0, 385, 386, 5, 236, 0, 0, 386, 390, 1, 0, 0, 0, 387, 388, 5, 179, 0, 0, 388, 390, 3, 72, 36, 0, 389, 380, 1, 0, 0, 0, 389, 382, 1, 0, 0, 0, 389, 387, 1, 0, 0, 0, 390, 43, 1, 0, 0, 0, 391, 392, 5, 144, 0, 0, 392, 395, 3, 50, 25, 0, 393, 394, 5, 118, 0, 0, 394, 396, 3, 50, 25, 0, 395, 393, 1, 0, 0, 0, 395, 396, 1, 0, 0, 0, 396, 45, 1, 0, 0, 0, 397, 402, 3, 48, 24, 0, 398, 399, 5, 206, 0, 0, 399, 401, 3, 48, 24, 0, 400, 398, 1, 0, 0, 0, 401, 404, 1, 0, 0, 0, 402, 400, 1, 0, 0, 0, 402, 403, 1, 0, 0, 0, 403, 47, 1, 0, 0, 0, 404, 402, 1, 0, 0, 0, 405, 407, 3, 74, 37, 0, 406, 408, 7, 6, 0, 0, 407, 406, 1, 0, 0, 0, 407, 408, 1, 0, 0, 0, 408, 411, 1, 0, 0, 0, 409, 410, 5, 117, 0, 0, 410, 412, 7, 7, 0, 0, 411, 409, 1, 0, 0, 0, 411, 412, 1, 0, 0, 0, 412, 415, 1, 0, 0, 0, 413, 414, 5, 26, 0, 0, 414, 416, 5, 200, 0, 0, 415, 413, 1, 0, 0, 0, 415, 416, 1, 0, 0, 0, 416, 49, 1, 0, 0, 0, 417, 424, 3, 122, 61, 0, 418, 421, 3, 106, 53, 0, 419, 420, 5, 238, 0, 0, 420, 422, 3, 106, 53, 0, 421, 419, 1, 0, 0, 0, 421, 422, 1, 0, 0, 0, 422, 424, 1, 0, 0, 0, 423, 417, 1, 0, 0, 0, 423, 418, 1, 0, 0, 0, 424, 51, 1, 0, 0, 0, 425, 430, 3, 54, 27, 0, 426, 427, 5, 206, 0, 0, 427, 429, 3, 54, 27, 0, 428, 426, 1, 0, 0, 0, 429, 432, 1, 0, 0, 0, 430, 428, 1, 0, 0, 0, 430, 431, 1, 0, 0, 0, 431, 53, 1, 0, 0, 0, 432, 430, 1, 0, 0, 0, 433, 434, 3, 118, 59, 0, 434, 435, 5, 212, 0, 0, 435, 436, 3, 108, 54, 0, 436, 55, 1, 0, 0, 0, 437, 439, 3, 58, 29, 0, 438, 437, 1, 0, 0, 0, 438, 439, 1, 0, 0, 0, 439, 441, 1, 0, 0, 0, 440, 442, 3, 60, 30, 0, 441, 440, 1, 0, 0, 0, 441, 442, 1, 0, 0, 0, 442, 444, 1, 0, 0, 0, 443, 445, 3, 62, 31, 0, 444, 443, 1, 0, 0, 0, 444, 445, 1, 0, 0, 0, 445, 57, 1, 0, 0, 0, 446, 447, 5, 126, 0, 0, 447, 448, 5, 18, 0, 0, 448, 449, 3, 72, 36, 0, 449, 59, 1, 0, 0, 0, 450, 451, 5, 122, 0, 0, 451, 452, 5, 18, 0, 0, 452, 453, 3, 46, 23, 0, 453, 61, 1, 0, 0, 0, 454, 455, 7, 8, 0, 0, 455, 456, 3, 64, 32, 0, 456, 63, 1, 0, 0, 0, 457, 464, 3, 66, 33, 0, 458, 459, 5, 16, 0, 0, 459, 460, 3, 66, 33, 0, 460, 461, 5, 6, 0, 0, 461, 462, 3, 66, 33, 0, 462, 464, 1, 0, 0, 0, 463, 457, 1, 0, 0, 0, 463, 458, 1, 0, 0, 0, 464, 65, 1, 0, 0, 0, 465, 466, 5, 33, 0, 0, 466, 478, 5, 142, 0, 0, 467, 468, 5, 175, 0, 0, 468, 478, 5, 128, 0, 0, 469, 470, 5, 175, 0, 0, 470, 478, 5, 64, 0, 0, 471, 472, 3, 106, 53, 0, 472, 473, 5, 128, 0, 0, 473, 478, 1, 0, 0, 0, 474, 475, 3, 106, 53, 0, 475, 476, 5, 64, 0, 0, 476, 478, 1, 0, 0, 0, 477, 465, 1, 0, 0, 0, 477, 467, 1, 0, 0, 0, 477, 469, 1, 0, 0, 0, 477, 471, 1, 0, 0, 0, 477, 474, 1, 0, 0, 0, 478, 67, 1, 0, 0, 0, 479, 480, 3, 74, 37, 0, 480, 481, 5, 0, 0, 1, 481, 69, 1, 0, 0, 0, 482, 530, 3, 118, 59, 0, 483, 484, 3, 118, 59, 0, 484, 485, 5, 220, 0, 0, 485, 486, 3, 118, 59, 0, 486, 493, 3, 70, 35, 0, 487, 488, 5, 206, 0, 0, 488, 489, 3, 118, 59, 0, 489, 490, 3, 70, 35, 0, 490, 492, 1, 0, 0, 0, 491, 487, 1, 0, 0, 0, 492, 495, 1, 0, 0, 0, 493, 491, 1, 0, 0, 0, 493, 494, 1, 0, 0, 0, 494, 496, 1, 0, 0, 0, 495, 493, 1, 0, 0, 0, 496, 497, 5, 236, 0, 0, 497, 530, 1, 0, 0, 0, 498, 499, 3, 118, 59, 0, 499, 500, 5, 220, 0, 0, 500, 505, 3, 120, 60, 0, 501, 502, 5, 206, 0, 0, 502, 504, 3, 120, 60, 0, 503, 501, 1, 0, 0, 0, 504, 507, 1, 0, 0, 0, 505, 503, 1, 0, 0, 0, 505, 506, 1, 0, 0, 0, 506, 508, 1, 0, 0, 0, 507, 505, 1, 0, 0, 0, 508, 509, 5, 236, 0, 0, 509, 530, 1, 0, 0, 0, 510, 511, 3, 118, 59, 0, 511, 512, 5, 220, 0, 0, 512, 517, 3, 70, 35, 0, 513, 514, 5, 206, 0, 0, 514, 516, 3, 70, 35, 0, 515, 513, 1, 0, 0, 0, 516, 519, 1, 0, 0, 0, 517, 515, 1, 0, 0, 0, 517, 518, 1, 0, 0, 0, 518, 520, 1, 0, 0, 0, 519, 517, 1, 0, 0, 0, 520, 521, 5, 236, 0, 0, 521, 530, 1, 0, 0, 0, 522, 523, 3, 118, 59, 0, 523, 525, 5, 220, 0, 0, 524, 526, 3, 72, 36, 0, 525, 524, 1, 0, 0, 0, 525, 526, 1, 0, 0, 0, 526, 527, 1, 0, 0, 0, 527, 528, 5, 236, 0, 0, 528, 530, 1, 0, 0, 0, 529, 482, 1, 0, 0, 0, 529, 483, 1, 0, 0, 0, 529, 498, 1, 0, 0, 0, 529, 510, 1, 0, 0, 0, 529, 522, 1, 0, 0, 0, 530, 71, 1, 0, 0, 0, 531, 536, 3, 74, 37, 0, 532, 533, 5, 206, 0, 0, 533, 535, 3, 74, 37, 0, 534, 532, 1, 0, 0, 0, 535, 538, 1, 0, 0, 0, 536, 534, 1, 0, 0, 0, 536, 537, 1, 0, 0, 0, 537, 73, 1, 0, 0, 0, 538, 536, 1, 0, 0, 0, 539, 540, 6, 37, -1, 0, 540, 542, 5, 19, 0, 0, 541, 543, 3, 74, 37, 0, 542, 541, 1, 0, 0, 0, 542, 543, 1, 0, 0, 0, 543, 549, 1, 0, 0, 0, 544, 545, 5, 186, 0, 0, 545, 546, 3, 74, 37, 0, 546, 547, 5, 163, 0, 0, 547, 548, 3, 74, 37, 0, 548, 550, 1, 0, 0, 0, 549, 544, 1, 0, 0, 0, 550, 551, 1, 0, 0, 0, 551, 549, 1, 0, 0, 0, 551, 552, 1, 0, 0, 0, 552, 555, 1, 0, 0, 0, 553, 554, 5, 52, 0, 0, 554, 556, 3, 74, 37, 0, 555, 553, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 557, 1, 0, 0, 0, 557, 558, 5, 53, 0, 0, 558, 670, 1, 0, 0, 0, 559, 560, 5, 20, 0, 0, 560, 561, 5, 220, 0, 0, 561, 562, 3, 74, 37, 0, 562, 563, 5, 10, 0, 0, 563, 564, 3, 70, 35, 0, 564, 565, 5, 236, 0, 0, 565, 670, 1, 0, 0, 0, 566, 567, 5, 36, 0, 0, 567, 670, 5, 200, 0, 0, 568, 569, 5, 59, 0, 0, 569, 570, 5, 220, 0, 0, 570, 571, 3, 110, 55, 0, 571, 572, 5, 68, 0, 0, 572, 573, 3, 74, 37, 0, 573, 574, 5, 236, 0, 0, 574, 670, 1, 0, 0, 0, 575, 576, 5, 86, 0, 0, 576, 577, 3, 74, 37, 0, 577, 578, 3, 110, 55, 0, 578, 670, 1, 0, 0, 0, 579, 580, 5, 155, 0, 0, 580, 581, 5, 220, 0, 0, 581, 582, 3, 74, 37, 0, 582, 583, 5, 68, 0, 0, 583, 586, 3, 74, 37, 0, 584, 585, 5, 65, 0, 0, 585, 587, 3, 74, 37, 0, 586, 584, 1, 0, 0, 0, 586, 587, 1, 0, 0, 0, 587, 588, 1, 0, 0, 0, 588, 589, 5, 236, 0, 0, 589, 670, 1, 0, 0, 0, 590, 591, 5, 166, 0, 0, 591, 670, 5, 200, 0, 0, 592, 593, 5, 171, 0, 0, 593, 594, 5, 220, 0, 0, 594, 595, 7, 9, 0, 0, 595, 596, 5, 200, 0, 0, 596, 597, 5, 68, 0, 0, 597, 598, 3, 74, 37, 0, 598, 599, 5, 236, 0, 0, 599, 670, 1, 0, 0, 0, 600, 601, 3, 118, 59, 0, 601, 603, 5, 220, 0, 0, 602, 604, 3, 72, 36, 0, 603, 602, 1, 0, 0, 0, 603, 604, 1, 0, 0, 0, 604, 605, 1, 0, 0, 0, 605, 606, 5, 236, 0, 0, 606, 607, 1, 0, 0, 0, 607, 608, 5, 125, 0, 0, 608, 609, 5, 220, 0, 0, 609, 610, 3, 56, 28, 0, 610, 611, 5, 236, 0, 0, 611, 670, 1, 0, 0, 0, 612, 613, 3, 118, 59, 0, 613, 615, 5, 220, 0, 0, 614, 616, 3, 72, 36, 0, 615, 614, 1, 0, 0, 0, 615, 616, 1, 0, 0, 0, 616, 617, 1, 0, 0, 0, 617, 618, 5, 236, 0, 0, 618, 619, 1, 0, 0, 0, 619, 620, 5, 125, 0, 0, 620, 621, 3, 118, 59, 0, 621, 670, 1, 0, 0, 0, 622, 628, 3, 118, 59, 0, 623, 625, 5, 220, 0, 0, 624, 626, 3, 72, 36, 0, 625, 624, 1, 0, 0, 0, 625, 626, 1, 0, 0, 0, 626, 627, 1, 0, 0, 0, 627, 629, 5, 236, 0, 0, 628, 623, 1, 0, 0, 0, 628, 629, 1, 0, 0, 0, 629, 630, 1, 0, 0, 0, 630, 632, 5, 220, 0, 0, 631, 633, 5, 49, 0, 0, 632, 631, 1, 0, 0, 0, 632, 633, 1, 0, 0, 0, 633, 635, 1, 0, 0, 0, 634, 636, 3, 76, 38, 0, 635, 634, 1, 0, 0, 0, 635, 636, 1, 0, 0, 0, 636, 637, 1, 0, 0, 0, 637, 638, 5, 236, 0, 0, 638, 670, 1, 0, 0, 0, 639, 670, 3, 82, 41, 0, 640, 670, 3, 108, 54, 0, 641, 642, 5, 208, 0, 0, 642, 670, 3, 74, 37, 18, 643, 644, 5, 115, 0, 0, 644, 670, 3, 74, 37, 12, 645, 646, 3, 98, 49, 0, 646, 647, 5, 210, 0, 0, 647, 649, 1, 0, 0, 0, 648, 645, 1, 0, 0, 0, 648, 649, 1, 0, 0, 0, 649, 650, 1, 0, 0, 0, 650, 670, 5, 202, 0, 0, 651, 652, 5, 220, 0, 0, 652, 653, 3, 2, 1, 0, 653, 654, 5, 236, 0, 0, 654, 670, 1, 0, 0, 0, 655, 656, 5, 220, 0, 0, 656, 657, 3, 74, 37, 0, 657, 658, 5, 236, 0, 0, 658, 670, 1, 0, 0, 0, 659, 660, 5, 220, 0, 0, 660, 661, 3, 72, 36, 0, 661, 662, 5, 236, 0, 0, 662, 670, 1, 0, 0, 0, 663, 665, 5, 219, 0, 0, 664, 666, 3, 72, 36, 0, 665, 664, 1, 0, 0, 0, 665, 666, 1, 0, 0, 0, 666, 667, 1, 0, 0, 0, 667, 670, 5, 235, 0, 0, 668, 670, 3, 90, 45, 0, 669, 539, 1, 0, 0, 0, 669, 559, 1, 0, 0, 0, 669, 566, 1, 0, 0, 0, 669, 568, 1, 0, 0, 0, 669, 575, 1, 0, 0, 0, 669, 579, 1, 0, 0, 0, 669, 590, 1, 0, 0, 0, 669, 592, 1, 0, 0, 0, 669, 600, 1, 0, 0, 0, 669, 612, 1, 0, 0, 0, 669, 622, 1, 0, 0, 0, 669, 639, 1, 0, 0, 0, 669, 640, 1, 0, 0, 0, 669, 641, 1, 0, 0, 0, 669, 643, 1, 0, 0, 0, 669, 648, 1, 0, 0, 0, 669, 651, 1, 0, 0, 0, 669, 655, 1, 0, 0, 0, 669, 659, 1, 0, 0, 0, 669, 663, 1, 0, 0, 0, 669, 668, 1, 0, 0, 0, 670, 764, 1, 0, 0, 0, 671, 675, 10, 17, 0, 0, 672, 676, 5, 202, 0, 0, 673, 676, 5, 238, 0, 0, 674, 676, 5, 227, 0, 0, 675, 672, 1, 0, 0, 0, 675, 673, 1, 0, 0, 0, 675, 674, 1, 0, 0, 0, 676, 677, 1, 0, 0, 0, 677, 763, 3, 74, 37, 18, 678, 682, 10, 16, 0, 0, 679, 683, 5, 228, 0, 0, 680, 683, 5, 208, 0, 0, 681, 683, 5, 207, 0, 0, 682, 679, 1, 0, 0, 0, 682, 680, 1, 0, 0, 0, 682, 681, 1, 0, 0, 0, 683, 684, 1, 0, 0, 0, 684, 763, 3, 74, 37, 17, 685, 710, 10, 15, 0, 0, 686, 711, 5, 211, 0, 0, 687, 711, 5, 212, 0, 0, 688, 711, 5, 223, 0, 0, 689, 711, 5, 221, 0, 0, 690, 711, 5, 222, 0, 0, 691, 711, 5, 213, 0, 0, 692, 711, 5, 214, 0, 0, 693, 695, 5, 115, 0, 0, 694, 693, 1, 0, 0, 0, 694, 695, 1, 0, 0, 0, 695, 696, 1, 0, 0, 0, 696, 698, 5, 80, 0, 0, 697, 699, 5, 25, 0, 0, 698, 697, 1, 0, 0, 0, 698, 699, 1, 0, 0, 0, 699, 711, 1, 0, 0, 0, 700, 702, 5, 115, 0, 0, 701, 700, 1, 0, 0, 0, 701, 702, 1, 0, 0, 0, 702, 703, 1, 0, 0, 0, 703, 711, 7, 10, 0, 0, 704, 711, 5, 232, 0, 0, 705, 711, 5, 233, 0, 0, 706, 711, 5, 225, 0, 0, 707, 711, 5, 216, 0, 0, 708, 711, 5, 217, 0, 0, 709, 711, 5, 224, 0, 0, 710, 686, 1, 0, 0, 0, 710, 687, 1, 0, 0, 0, 710, 688, 1, 0, 0, 0, 710, 689, 1, 0, 0, 0, 710, 690, 1, 0, 0, 0, 710, 691, 1, 0, 0, 0, 710, 692, 1, 0, 0, 0, 710, 694, 1, 0, 0, 0, 710, 701, 1, 0, 0, 0, 710, 704, 1, 0, 0, 0, 710, 705, 1, 0, 0, 0, 710, 706, 1, 0, 0, 0, 710, 707, 1, 0, 0, 0, 710, 708, 1, 0, 0, 0, 710, 709, 1, 0, 0, 0, 711, 712, 1, 0, 0, 0, 712, 763, 3, 74, 37, 16, 713, 714, 10, 13, 0, 0, 714, 715, 5, 226, 0, 0, 715, 763, 3, 74, 37, 14, 716, 717, 10, 11, 0, 0, 717, 718, 5, 6, 0, 0, 718, 763, 3, 74, 37, 12, 719, 720, 10, 10, 0, 0, 720, 721, 5, 121, 0, 0, 721, 763, 3, 74, 37, 11, 722, 724, 10, 9, 0, 0, 723, 725, 5, 115, 0, 0, 724, 723, 1, 0, 0, 0, 724, 725, 1, 0, 0, 0, 725, 726, 1, 0, 0, 0, 726, 727, 5, 16, 0, 0, 727, 728, 3, 74, 37, 0, 728, 729, 5, 6, 0, 0, 729, 730, 3, 74, 37, 10, 730, 763, 1, 0, 0, 0, 731, 732, 10, 8, 0, 0, 732, 733, 5, 229, 0, 0, 733, 734, 3, 74, 37, 0, 734, 735, 5, 205, 0, 0, 735, 736, 3, 74, 37, 8, 736, 763, 1, 0, 0, 0, 737, 738, 10, 21, 0, 0, 738, 739, 5, 219, 0, 0, 739, 740, 3, 74, 37, 0, 740, 741, 5, 235, 0, 0, 741, 763, 1, 0, 0, 0, 742, 743, 10, 20, 0, 0, 743, 744, 5, 210, 0, 0, 744, 763, 5, 198, 0, 0, 745, 746, 10, 19, 0, 0, 746, 747, 5, 210, 0, 0, 747, 763, 3, 118, 59, 0, 748, 749, 10, 14, 0, 0, 749, 751, 5, 88, 0, 0, 750, 752, 5, 115, 0, 0, 751, 750, 1, 0, 0, 0, 751, 752, 1, 0, 0, 0, 752, 753, 1, 0, 0, 0, 753, 763, 5, 116, 0, 0, 754, 760, 10, 7, 0, 0, 755, 761, 3, 116, 58, 0, 756, 757, 5, 10, 0, 0, 757, 761, 3, 118, 59, 0, 758, 759, 5, 10, 0, 0, 759, 761, 5, 200, 0, 0, 760, 755, 1, 0, 0, 0, 760, 756, 1, 0, 0, 0, 760, 758, 1, 0, 0, 0, 761, 763, 1, 0, 0, 0, 762, 671, 1, 0, 0, 0, 762, 678, 1, 0, 0, 0, 762, 685, 1, 0, 0, 0, 762, 713, 1, 0, 0, 0, 762, 716, 1, 0, 0, 0, 762, 719, 1, 0, 0, 0, 762, 722, 1, 0, 0, 0, 762, 731, 1, 0, 0, 0, 762, 737, 1, 0, 0, 0, 762, 742, 1, 0, 0, 0, 762, 745, 1, 0, 0, 0, 762, 748, 1, 0, 0, 0, 762, 754, 1, 0, 0, 0, 763, 766, 1, 0, 0, 0, 764, 762, 1, 0, 0, 0, 764, 765, 1, 0, 0, 0, 765, 75, 1, 0, 0, 0, 766, 764, 1, 0, 0, 0, 767, 772, 3, 78, 39, 0, 768, 769, 5, 206, 0, 0, 769, 771, 3, 78, 39, 0, 770, 768, 1, 0, 0, 0, 771, 774, 1, 0, 0, 0, 772, 770, 1, 0, 0, 0, 772, 773, 1, 0, 0, 0, 773, 77, 1, 0, 0, 0, 774, 772, 1, 0, 0, 0, 775, 778, 3, 80, 40, 0, 776, 778, 3, 74, 37, 0, 777, 775, 1, 0, 0, 0, 777, 776, 1, 0, 0, 0, 778, 79, 1, 0, 0, 0, 779, 780, 5, 220, 0, 0, 780, 785, 3, 118, 59, 0, 781, 782, 5, 206, 0, 0, 782, 784, 3, 118, 59, 0, 783, 781, 1, 0, 0, 0, 784, 787, 1, 0, 0, 0, 785, 783, 1, 0, 0, 0, 785, 786, 1, 0, 0, 0, 786, 788, 1, 0, 0, 0, 787, 785, 1, 0, 0, 0, 788, 789, 5, 236, 0, 0, 789, 799, 1, 0, 0, 0, 790, 795, 3, 118, 59, 0, 791, 792, 5, 206, 0, 0, 792, 794, 3, 118, 59, 0, 793, 791, 1, 0, 0, 0, 794, 797, 1, 0, 0, 0, 795, 793, 1, 0, 0, 0, 795, 796, 1, 0, 0, 0, 796, 799, 1, 0, 0, 0, 797, 795, 1, 0, 0, 0, 798, 779, 1, 0, 0, 0, 798, 790, 1, 0, 0, 0, 799, 800, 1, 0, 0, 0, 800, 801, 5, 201, 0, 0, 801, 802, 3, 74, 37, 0, 802, 81, 1, 0, 0, 0, 803, 804, 5, 222, 0, 0, 804, 808, 3, 118, 59, 0, 805, 807, 3, 84, 42, 0, 806, 805, 1, 0, 0, 0, 807, 810, 1, 0, 0, 0, 808, 806, 1, 0, 0, 0, 808, 809, 1, 0, 0, 0, 809, 811, 1, 0, 0, 0, 810, 808, 1, 0, 0, 0, 811, 812, 5, 238, 0, 0, 812, 813, 5, 214, 0, 0, 813, 832, 1, 0, 0, 0, 814, 815, 5, 222, 0, 0, 815, 819, 3, 118, 59, 0, 816, 818, 3, 84, 42, 0, 817, 816, 1, 0, 0, 0, 818, 821, 1, 0, 0, 0, 819, 817, 1, 0, 0, 0, 819, 820, 1, 0, 0, 0, 820, 822, 1, 0, 0, 0, 821, 819, 1, 0, 0, 0, 822, 824, 5, 214, 0, 0, 823, 825, 3, 82, 41, 0, 824, 823, 1, 0, 0, 0, 824, 825, 1, 0, 0, 0, 825, 826, 1, 0, 0, 0, 826, 827, 5, 222, 0, 0, 827, 828, 5, 238, 0, 0, 828, 829, 3, 118, 59, 0, 829, 830, 5, 214, 0, 0, 830, 832, 1, 0, 0, 0, 831, 803, 1, 0, 0, 0, 831, 814, 1, 0, 0, 0, 832, 83, 1, 0, 0, 0, 833, 834, 3, 118, 59, 0, 834, 835, 5, 212, 0, 0, 835, 836, 5, 200, 0, 0, 836, 845, 1, 0, 0, 0, 837, 838, 3, 118, 59, 0, 838, 839, 5, 212, 0, 0, 839, 840, 5, 218, 0, 0, 840, 841, 3, 74, 37, 0, 841, 842, 5, 234, 0, 0, 842, 845, 1, 0, 0, 0, 843, 845, 3, 118, 59, 0, 844, 833, 1, 0, 0, 0, 844, 837, 1, 0, 0, 0, 844, 843, 1, 0, 0, 0, 845, 85, 1, 0, 0, 0, 846, 851, 3, 88, 44, 0, 847, 848, 5, 206, 0, 0, 848, 850, 3, 88, 44, 0, 849, 847, 1, 0, 0, 0, 850, 853, 1, 0, 0, 0, 851, 849, 1, 0, 0, 0, 851, 852, 1, 0, 0, 0, 852, 87, 1, 0, 0, 0, 853, 851, 1, 0, 0, 0, 854, 855, 3, 118, 59, 0, 855, 856, 5, 10, 0, 0, 856, 857, 5, 220, 0, 0, 857, 858, 3, 2, 1, 0, 858, 859, 5, 236, 0, 0, 859, 865, 1, 0, 0, 0, 860, 861, 3, 74, 37, 0, 861, 862, 5, 10, 0, 0, 862, 863, 3, 118, 59, 0, 863, 865, 1, 0, 0, 0, 864, 854, 1, 0, 0, 0, 864, 860, 1, 0, 0, 0, 865, 89, 1, 0, 0, 0, 866, 874, 3, 122, 61, 0, 867, 868, 3, 98, 49, 0, 868, 869, 5, 210, 0, 0, 869, 871, 1, 0, 0, 0, 870, 867, 1, 0, 0, 0, 870, 871, 1, 0, 0, 0, 871, 872, 1, 0, 0, 0, 872, 874, 3, 92, 46, 0, 873, 866, 1, 0, 0, 0, 873, 870, 1, 0, 0, 0, 874, 91, 1, 0, 0, 0, 875, 880, 3, 118, 59, 0, 876, 877, 5, 210, 0, 0, 877, 879, 3, 118, 59, 0, 878, 876, 1, 0, 0, 0, 879, 882, 1, 0, 0, 0, 880, 878, 1, 0, 0, 0, 880, 881, 1, 0, 0, 0, 881, 93, 1, 0, 0, 0, 882, 880, 1, 0, 0, 0, 883, 884, 6, 47, -1, 0, 884, 893, 3, 98, 49, 0, 885, 893, 3, 96, 48, 0, 886, 887, 5, 220, 0, 0, 887, 888, 3, 2, 1, 0, 888, 889, 5, 236, 0, 0, 889, 893, 1, 0, 0, 0, 890, 893, 3, 82, 41, 0, 891, 893, 3, 122, 61, 0, 892, 883, 1, 0, 0, 0, 892, 885, 1, 0, 0, 0, 892, 886, 1, 0, 0, 0, 892, 890, 1, 0, 0, 0, 892, 891, 1, 0, 0, 0, 893, 902, 1, 0, 0, 0, 894, 898, 10, 3, 0, 0, 895, 899, 3, 116, 58, 0, 896, 897, 5, 10, 0, 0, 897, 899, 3, 118, 59, 0, 898, 895, 1, 0, 0, 0, 898, 896, 1, 0, 0, 0, 899, 901, 1, 0, 0, 0, 900, 894, 1, 0, 0, 0, 901, 904, 1, 0, 0, 0, 902, 900, 1, 0, 0, 0, 902, 903, 1, 0, 0, 0, 903, 95, 1, 0, 0, 0, 904, 902, 1, 0, 0, 0, 905, 906, 3, 118, 59, 0, 906, 908, 5, 220, 0, 0, 907, 909, 3, 100, 50, 0, 908, 907, 1, 0, 0, 0, 908, 909, 1, 0, 0, 0, 909, 910, 1, 0, 0, 0, 910, 911, 5, 236, 0, 0, 911, 97, 1, 0, 0, 0, 912, 913, 3, 102, 51, 0, 913, 914, 5, 210, 0, 0, 914, 916, 1, 0, 0, 0, 915, 912, 1, 0, 0, 0, 915, 916, 1, 0, 0, 0, 916, 917, 1, 0, 0, 0, 917, 918, 3, 118, 59, 0, 918, 99, 1, 0, 0, 0, 919, 924, 3, 74, 37, 0, 920, 921, 5, 206, 0, 0, 921, 923, 3, 74, 37, 0, 922, 920, 1, 0, 0, 0, 923, 926, 1, 0, 0, 0, 924, 922, 1, 0, 0, 0, 924, 925, 1, 0, 0, 0, 925, 101, 1, 0, 0, 0, 926, 924, 1, 0, 0, 0, 927, 928, 3, 118, 59, 0, 928, 103, 1, 0, 0, 0, 929, 938, 5, 196, 0, 0, 930, 931, 5, 210, 0, 0, 931, 938, 7, 11, 0, 0, 932, 933, 5, 198, 0, 0, 933, 935, 5, 210, 0, 0, 934, 936, 7, 11, 0, 0, 935, 934, 1, 0, 0, 0, 935, 936, 1, 0, 0, 0, 936, 938, 1, 0, 0, 0, 937, 929, 1, 0, 0, 0, 937, 930, 1, 0, 0, 0, 937, 932, 1, 0, 0, 0, 938, 105, 1, 0, 0, 0, 939, 941, 7, 12, 0, 0, 940, 939, 1, 0, 0, 0, 940, 941, 1, 0, 0, 0, 941, 948, 1, 0, 0, 0, 942, 949, 3, 104, 52, 0, 943, 949, 5, 197, 0, 0, 944, 949, 5, 198, 0, 0, 945, 949, 5, 199, 0, 0, 946, 949, 5, 82, 0, 0, 947, 949, 5, 113, 0, 0, 948, 942, 1, 0, 0, 0, 948, 943, 1, 0, 0, 0, 948, 944, 1, 0, 0, 0, 948, 945, 1, 0, 0, 0, 948, 946, 1, 0, 0, 0, 948, 947, 1, 0, 0, 0, 949, 107, 1, 0, 0, 0, 950, 954, 3, 106, 53, 0, 951, 954, 5, 200, 0, 0, 952, 954, 5, 116, 0, 0, 953, 950, 1, 0, 0, 0, 953, 951, 1, 0, 0, 0, 953, 952, 1, 0, 0, 0, 954, 109, 1, 0, 0, 0, 955, 956, 7, 13, 0, 0, 956, 111, 1, 0, 0, 0, 957, 958, 7, 14, 0, 0, 958, 113, 1, 0, 0, 0, 959, 960, 7, 15, 0, 0, 960, 115, 1, 0, 0, 0, 961, 964, 5, 195, 0, 0, 962, 964, 3, 114, 57, 0, 963, 961, 1, 0, 0, 0, 963, 962, 1, 0, 0, 0, 964, 117, 1, 0, 0, 0, 965, 969, 5, 195, 0, 0, 966, 969, 3, 110, 55, 0, 967, 969, 3, 112, 56, 0, 968, 965, 1, 0, 0, 0, 968, 966, 1, 0, 0, 0, 968, 967, 1, 0, 0, 0, 969, 119, 1, 0, 0, 0, 970, 971, 5, 200, 0, 0, 971, 972, 5, 212, 0, 0, 972, 973, 3, 106, 53, 0, 973, 121, 1, 0, 0, 0, 974, 975, 5, 218, 0, 0, 975, 976, 3, 118, 59, 0, 976, 977, 5, 234, 0, 0, 977, 123, 1, 0, 0, 0, 120, 127, 137, 146, 149, 153, 156, 160, 163, 166, 169, 172, 176, 180, 183, 186, 189, 193, 196, 205, 211, 232, 249, 266, 272, 278, 289, 291, 302, 305, 311, 319, 325, 327, 331, 336, 339, 342, 346, 350, 353, 355, 358, 362, 366, 369, 371, 373, 378, 389, 395, 402, 407, 411, 415, 421, 423, 430, 438, 441, 444, 463, 477, 493, 505, 517, 525, 529, 536, 542, 551, 555, 586, 603, 615, 625, 628, 632, 635, 648, 665, 669, 675, 682, 694, 698, 701, 710, 724, 751, 760, 762, 764, 772, 777, 785, 795, 798, 808, 819, 824, 831, 844, 851, 864, 870, 873, 880, 892, 898, 902, 908, 915, 924, 935, 937, 940, 948, 953, 963, 968] \ No newline at end of file diff --git a/posthog/hogql/grammar/HogQLParser.py b/posthog/hogql/grammar/HogQLParser.py index bda51142b9e78..6bf1053a93059 100644 --- a/posthog/hogql/grammar/HogQLParser.py +++ b/posthog/hogql/grammar/HogQLParser.py @@ -10,7 +10,7 @@ def serializedATN(): return [ - 4,1,242,984,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,242,979,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, @@ -19,384 +19,382 @@ def serializedATN(): 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,1,0,1,0,1,0,3,0,130,8,0,1, - 0,1,0,1,1,1,1,1,1,1,1,5,1,138,8,1,10,1,12,1,141,9,1,1,2,1,2,1,2, - 1,2,1,2,3,2,148,8,2,1,3,1,3,3,3,152,8,3,1,4,3,4,155,8,4,1,4,1,4, - 3,4,159,8,4,1,4,3,4,162,8,4,1,4,1,4,3,4,166,8,4,1,4,3,4,169,8,4, - 1,4,3,4,172,8,4,1,4,3,4,175,8,4,1,4,3,4,178,8,4,1,4,1,4,3,4,182, - 8,4,1,4,1,4,3,4,186,8,4,1,4,3,4,189,8,4,1,4,3,4,192,8,4,1,4,3,4, - 195,8,4,1,4,1,4,3,4,199,8,4,1,4,3,4,202,8,4,1,5,1,5,1,5,1,6,1,6, - 1,6,1,6,3,6,211,8,6,1,7,1,7,1,7,1,8,3,8,217,8,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,9,1,9,1,9,5,9,236,8,9, - 10,9,12,9,239,9,9,1,10,1,10,1,10,1,11,1,11,1,11,1,12,1,12,1,12,1, - 12,1,12,1,12,1,12,1,12,3,12,255,8,12,1,13,1,13,1,13,1,14,1,14,1, - 14,1,14,1,15,1,15,1,15,1,15,1,16,1,16,1,16,1,16,3,16,272,8,16,1, - 16,1,16,1,16,1,16,3,16,278,8,16,1,16,1,16,1,16,1,16,3,16,284,8,16, - 1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,3,16,295,8,16,3,16, - 297,8,16,1,17,1,17,1,17,1,18,1,18,1,18,1,19,1,19,1,19,3,19,308,8, - 19,1,19,3,19,311,8,19,1,19,1,19,1,19,1,19,3,19,317,8,19,1,19,1,19, - 1,19,1,19,1,19,1,19,3,19,325,8,19,1,19,1,19,1,19,1,19,5,19,331,8, - 19,10,19,12,19,334,9,19,1,20,3,20,337,8,20,1,20,1,20,1,20,3,20,342, - 8,20,1,20,3,20,345,8,20,1,20,3,20,348,8,20,1,20,1,20,3,20,352,8, - 20,1,20,1,20,3,20,356,8,20,1,20,3,20,359,8,20,3,20,361,8,20,1,20, - 3,20,364,8,20,1,20,1,20,3,20,368,8,20,1,20,1,20,3,20,372,8,20,1, - 20,3,20,375,8,20,3,20,377,8,20,3,20,379,8,20,1,21,1,21,1,21,3,21, - 384,8,21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,395,8, - 22,1,23,1,23,1,23,1,23,3,23,401,8,23,1,24,1,24,1,24,5,24,406,8,24, - 10,24,12,24,409,9,24,1,25,1,25,3,25,413,8,25,1,25,1,25,3,25,417, - 8,25,1,25,1,25,3,25,421,8,25,1,26,1,26,1,26,1,26,3,26,427,8,26,3, - 26,429,8,26,1,27,1,27,1,27,5,27,434,8,27,10,27,12,27,437,9,27,1, - 28,1,28,1,28,1,28,1,29,3,29,444,8,29,1,29,3,29,447,8,29,1,29,3,29, - 450,8,29,1,30,1,30,1,30,1,30,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,33,3,33,469,8,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,3,34,483,8,34,1,35,1,35, - 1,35,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,5,36,497,8,36, - 10,36,12,36,500,9,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,5,36,509, - 8,36,10,36,12,36,512,9,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,5,36, - 521,8,36,10,36,12,36,524,9,36,1,36,1,36,1,36,1,36,1,36,3,36,531, - 8,36,1,36,1,36,3,36,535,8,36,1,37,1,37,1,37,5,37,540,8,37,10,37, - 12,37,543,9,37,1,38,1,38,1,38,3,38,548,8,38,1,38,1,38,1,38,1,38, - 1,38,4,38,555,8,38,11,38,12,38,556,1,38,1,38,3,38,561,8,38,1,38, - 1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38, - 1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38, - 1,38,1,38,3,38,592,8,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38, - 1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,609,8,38,1,38,1,38,1,38, - 1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,621,8,38,1,38,1,38,1,38, - 1,38,1,38,1,38,1,38,1,38,3,38,631,8,38,1,38,3,38,634,8,38,1,38,1, - 38,3,38,638,8,38,1,38,3,38,641,8,38,1,38,1,38,1,38,1,38,1,38,1,38, - 1,38,1,38,1,38,1,38,1,38,3,38,654,8,38,1,38,1,38,1,38,1,38,1,38, - 1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,671,8,38, - 1,38,1,38,3,38,675,8,38,1,38,1,38,1,38,1,38,3,38,681,8,38,1,38,1, - 38,1,38,1,38,1,38,3,38,688,8,38,1,38,1,38,1,38,1,38,1,38,1,38,1, - 38,1,38,1,38,1,38,3,38,700,8,38,1,38,1,38,3,38,704,8,38,1,38,3,38, - 707,8,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,716,8,38,1,38,1, - 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,730,8, - 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1, - 38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3, - 38,757,8,38,1,38,1,38,1,38,1,38,1,38,1,38,1,38,3,38,766,8,38,5,38, - 768,8,38,10,38,12,38,771,9,38,1,39,1,39,1,39,5,39,776,8,39,10,39, - 12,39,779,9,39,1,40,1,40,3,40,783,8,40,1,41,1,41,1,41,1,41,5,41, - 789,8,41,10,41,12,41,792,9,41,1,41,1,41,1,41,1,41,1,41,5,41,799, - 8,41,10,41,12,41,802,9,41,3,41,804,8,41,1,41,1,41,1,41,1,42,1,42, - 1,42,5,42,812,8,42,10,42,12,42,815,9,42,1,42,1,42,1,42,1,42,1,42, - 1,42,5,42,823,8,42,10,42,12,42,826,9,42,1,42,1,42,3,42,830,8,42, - 1,42,1,42,1,42,1,42,1,42,3,42,837,8,42,1,43,1,43,1,43,1,43,1,43, - 1,43,1,43,1,43,1,43,1,43,1,43,3,43,850,8,43,1,44,1,44,1,44,5,44, - 855,8,44,10,44,12,44,858,9,44,1,45,1,45,1,45,1,45,1,45,1,45,1,45, - 1,45,1,45,1,45,3,45,870,8,45,1,46,1,46,1,46,1,46,3,46,876,8,46,1, - 46,3,46,879,8,46,1,47,1,47,1,47,5,47,884,8,47,10,47,12,47,887,9, - 47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,48,3,48,898,8,48,1, - 48,1,48,1,48,1,48,3,48,904,8,48,5,48,906,8,48,10,48,12,48,909,9, - 48,1,49,1,49,1,49,3,49,914,8,49,1,49,1,49,1,50,1,50,1,50,3,50,921, - 8,50,1,50,1,50,1,51,1,51,1,51,5,51,928,8,51,10,51,12,51,931,9,51, - 1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,3,53,941,8,53,3,53,943,8, - 53,1,54,3,54,946,8,54,1,54,1,54,1,54,1,54,1,54,1,54,3,54,954,8,54, - 1,55,1,55,1,55,3,55,959,8,55,1,56,1,56,1,57,1,57,1,58,1,58,1,59, - 1,59,3,59,969,8,59,1,60,1,60,1,60,3,60,974,8,60,1,61,1,61,1,61,1, - 61,1,62,1,62,1,62,1,62,1,62,0,3,38,76,96,63,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,0,16,2,0,32,32,141,141, - 2,0,84,84,96,96,3,0,4,4,8,8,12,12,4,0,4,4,7,8,12,12,147,147,2,0, - 96,96,140,140,2,0,4,4,8,8,2,0,11,11,42,43,2,0,62,62,93,93,2,0,133, - 133,143,143,3,0,17,17,95,95,170,170,2,0,79,79,98,98,1,0,197,198, - 2,0,208,208,228,228,8,0,37,37,76,76,108,108,110,110,132,132,145, - 145,185,185,190,190,13,0,2,24,26,36,38,75,77,81,83,107,109,109,111, - 112,114,115,117,130,133,144,146,184,186,189,191,192,4,0,36,36,62, - 62,77,77,91,91,1111,0,129,1,0,0,0,2,133,1,0,0,0,4,147,1,0,0,0,6, - 151,1,0,0,0,8,154,1,0,0,0,10,203,1,0,0,0,12,206,1,0,0,0,14,212,1, - 0,0,0,16,216,1,0,0,0,18,222,1,0,0,0,20,240,1,0,0,0,22,243,1,0,0, - 0,24,246,1,0,0,0,26,256,1,0,0,0,28,259,1,0,0,0,30,263,1,0,0,0,32, - 296,1,0,0,0,34,298,1,0,0,0,36,301,1,0,0,0,38,316,1,0,0,0,40,378, - 1,0,0,0,42,383,1,0,0,0,44,394,1,0,0,0,46,396,1,0,0,0,48,402,1,0, - 0,0,50,410,1,0,0,0,52,428,1,0,0,0,54,430,1,0,0,0,56,438,1,0,0,0, - 58,443,1,0,0,0,60,451,1,0,0,0,62,455,1,0,0,0,64,459,1,0,0,0,66,468, - 1,0,0,0,68,482,1,0,0,0,70,484,1,0,0,0,72,534,1,0,0,0,74,536,1,0, - 0,0,76,674,1,0,0,0,78,772,1,0,0,0,80,782,1,0,0,0,82,803,1,0,0,0, - 84,836,1,0,0,0,86,849,1,0,0,0,88,851,1,0,0,0,90,869,1,0,0,0,92,878, - 1,0,0,0,94,880,1,0,0,0,96,897,1,0,0,0,98,910,1,0,0,0,100,920,1,0, - 0,0,102,924,1,0,0,0,104,932,1,0,0,0,106,942,1,0,0,0,108,945,1,0, - 0,0,110,958,1,0,0,0,112,960,1,0,0,0,114,962,1,0,0,0,116,964,1,0, - 0,0,118,968,1,0,0,0,120,973,1,0,0,0,122,975,1,0,0,0,124,979,1,0, - 0,0,126,130,3,2,1,0,127,130,3,8,4,0,128,130,3,84,42,0,129,126,1, - 0,0,0,129,127,1,0,0,0,129,128,1,0,0,0,130,131,1,0,0,0,131,132,5, - 0,0,1,132,1,1,0,0,0,133,139,3,4,2,0,134,135,5,176,0,0,135,136,5, - 4,0,0,136,138,3,4,2,0,137,134,1,0,0,0,138,141,1,0,0,0,139,137,1, - 0,0,0,139,140,1,0,0,0,140,3,1,0,0,0,141,139,1,0,0,0,142,148,3,6, - 3,0,143,144,5,220,0,0,144,145,3,2,1,0,145,146,5,236,0,0,146,148, - 1,0,0,0,147,142,1,0,0,0,147,143,1,0,0,0,148,5,1,0,0,0,149,152,3, - 8,4,0,150,152,3,124,62,0,151,149,1,0,0,0,151,150,1,0,0,0,152,7,1, - 0,0,0,153,155,3,10,5,0,154,153,1,0,0,0,154,155,1,0,0,0,155,156,1, - 0,0,0,156,158,5,146,0,0,157,159,5,49,0,0,158,157,1,0,0,0,158,159, - 1,0,0,0,159,161,1,0,0,0,160,162,3,12,6,0,161,160,1,0,0,0,161,162, - 1,0,0,0,162,163,1,0,0,0,163,165,3,74,37,0,164,166,3,14,7,0,165,164, - 1,0,0,0,165,166,1,0,0,0,166,168,1,0,0,0,167,169,3,16,8,0,168,167, - 1,0,0,0,168,169,1,0,0,0,169,171,1,0,0,0,170,172,3,20,10,0,171,170, - 1,0,0,0,171,172,1,0,0,0,172,174,1,0,0,0,173,175,3,22,11,0,174,173, - 1,0,0,0,174,175,1,0,0,0,175,177,1,0,0,0,176,178,3,24,12,0,177,176, - 1,0,0,0,177,178,1,0,0,0,178,181,1,0,0,0,179,180,5,189,0,0,180,182, - 7,0,0,0,181,179,1,0,0,0,181,182,1,0,0,0,182,185,1,0,0,0,183,184, - 5,189,0,0,184,186,5,169,0,0,185,183,1,0,0,0,185,186,1,0,0,0,186, - 188,1,0,0,0,187,189,3,26,13,0,188,187,1,0,0,0,188,189,1,0,0,0,189, - 191,1,0,0,0,190,192,3,18,9,0,191,190,1,0,0,0,191,192,1,0,0,0,192, - 194,1,0,0,0,193,195,3,28,14,0,194,193,1,0,0,0,194,195,1,0,0,0,195, - 198,1,0,0,0,196,199,3,32,16,0,197,199,3,34,17,0,198,196,1,0,0,0, - 198,197,1,0,0,0,198,199,1,0,0,0,199,201,1,0,0,0,200,202,3,36,18, - 0,201,200,1,0,0,0,201,202,1,0,0,0,202,9,1,0,0,0,203,204,5,189,0, - 0,204,205,3,88,44,0,205,11,1,0,0,0,206,207,5,168,0,0,207,210,5,198, - 0,0,208,209,5,189,0,0,209,211,5,164,0,0,210,208,1,0,0,0,210,211, - 1,0,0,0,211,13,1,0,0,0,212,213,5,68,0,0,213,214,3,38,19,0,214,15, - 1,0,0,0,215,217,7,1,0,0,216,215,1,0,0,0,216,217,1,0,0,0,217,218, - 1,0,0,0,218,219,5,9,0,0,219,220,5,90,0,0,220,221,3,74,37,0,221,17, - 1,0,0,0,222,223,5,188,0,0,223,224,3,120,60,0,224,225,5,10,0,0,225, - 226,5,220,0,0,226,227,3,58,29,0,227,237,5,236,0,0,228,229,5,206, - 0,0,229,230,3,120,60,0,230,231,5,10,0,0,231,232,5,220,0,0,232,233, - 3,58,29,0,233,234,5,236,0,0,234,236,1,0,0,0,235,228,1,0,0,0,236, - 239,1,0,0,0,237,235,1,0,0,0,237,238,1,0,0,0,238,19,1,0,0,0,239,237, - 1,0,0,0,240,241,5,129,0,0,241,242,3,76,38,0,242,21,1,0,0,0,243,244, - 5,187,0,0,244,245,3,76,38,0,245,23,1,0,0,0,246,247,5,73,0,0,247, - 254,5,18,0,0,248,249,7,0,0,0,249,250,5,220,0,0,250,251,3,74,37,0, - 251,252,5,236,0,0,252,255,1,0,0,0,253,255,3,74,37,0,254,248,1,0, - 0,0,254,253,1,0,0,0,255,25,1,0,0,0,256,257,5,74,0,0,257,258,3,76, - 38,0,258,27,1,0,0,0,259,260,5,122,0,0,260,261,5,18,0,0,261,262,3, - 48,24,0,262,29,1,0,0,0,263,264,5,122,0,0,264,265,5,18,0,0,265,266, - 3,74,37,0,266,31,1,0,0,0,267,268,5,99,0,0,268,271,3,76,38,0,269, - 270,5,206,0,0,270,272,3,76,38,0,271,269,1,0,0,0,271,272,1,0,0,0, - 272,277,1,0,0,0,273,274,5,189,0,0,274,278,5,164,0,0,275,276,5,18, - 0,0,276,278,3,74,37,0,277,273,1,0,0,0,277,275,1,0,0,0,277,278,1, - 0,0,0,278,297,1,0,0,0,279,280,5,99,0,0,280,283,3,76,38,0,281,282, - 5,189,0,0,282,284,5,164,0,0,283,281,1,0,0,0,283,284,1,0,0,0,284, - 285,1,0,0,0,285,286,5,118,0,0,286,287,3,76,38,0,287,297,1,0,0,0, - 288,289,5,99,0,0,289,290,3,76,38,0,290,291,5,118,0,0,291,294,3,76, - 38,0,292,293,5,18,0,0,293,295,3,74,37,0,294,292,1,0,0,0,294,295, - 1,0,0,0,295,297,1,0,0,0,296,267,1,0,0,0,296,279,1,0,0,0,296,288, - 1,0,0,0,297,33,1,0,0,0,298,299,5,118,0,0,299,300,3,76,38,0,300,35, - 1,0,0,0,301,302,5,150,0,0,302,303,3,54,27,0,303,37,1,0,0,0,304,305, - 6,19,-1,0,305,307,3,96,48,0,306,308,5,61,0,0,307,306,1,0,0,0,307, - 308,1,0,0,0,308,310,1,0,0,0,309,311,3,46,23,0,310,309,1,0,0,0,310, - 311,1,0,0,0,311,317,1,0,0,0,312,313,5,220,0,0,313,314,3,38,19,0, - 314,315,5,236,0,0,315,317,1,0,0,0,316,304,1,0,0,0,316,312,1,0,0, - 0,317,332,1,0,0,0,318,319,10,3,0,0,319,320,3,42,21,0,320,321,3,38, - 19,4,321,331,1,0,0,0,322,324,10,4,0,0,323,325,3,40,20,0,324,323, - 1,0,0,0,324,325,1,0,0,0,325,326,1,0,0,0,326,327,5,90,0,0,327,328, - 3,38,19,0,328,329,3,44,22,0,329,331,1,0,0,0,330,318,1,0,0,0,330, - 322,1,0,0,0,331,334,1,0,0,0,332,330,1,0,0,0,332,333,1,0,0,0,333, - 39,1,0,0,0,334,332,1,0,0,0,335,337,7,2,0,0,336,335,1,0,0,0,336,337, - 1,0,0,0,337,338,1,0,0,0,338,345,5,84,0,0,339,341,5,84,0,0,340,342, - 7,2,0,0,341,340,1,0,0,0,341,342,1,0,0,0,342,345,1,0,0,0,343,345, - 7,2,0,0,344,336,1,0,0,0,344,339,1,0,0,0,344,343,1,0,0,0,345,379, - 1,0,0,0,346,348,7,3,0,0,347,346,1,0,0,0,347,348,1,0,0,0,348,349, - 1,0,0,0,349,351,7,4,0,0,350,352,5,123,0,0,351,350,1,0,0,0,351,352, - 1,0,0,0,352,361,1,0,0,0,353,355,7,4,0,0,354,356,5,123,0,0,355,354, - 1,0,0,0,355,356,1,0,0,0,356,358,1,0,0,0,357,359,7,3,0,0,358,357, - 1,0,0,0,358,359,1,0,0,0,359,361,1,0,0,0,360,347,1,0,0,0,360,353, - 1,0,0,0,361,379,1,0,0,0,362,364,7,5,0,0,363,362,1,0,0,0,363,364, - 1,0,0,0,364,365,1,0,0,0,365,367,5,69,0,0,366,368,5,123,0,0,367,366, - 1,0,0,0,367,368,1,0,0,0,368,377,1,0,0,0,369,371,5,69,0,0,370,372, - 5,123,0,0,371,370,1,0,0,0,371,372,1,0,0,0,372,374,1,0,0,0,373,375, - 7,5,0,0,374,373,1,0,0,0,374,375,1,0,0,0,375,377,1,0,0,0,376,363, - 1,0,0,0,376,369,1,0,0,0,377,379,1,0,0,0,378,344,1,0,0,0,378,360, - 1,0,0,0,378,376,1,0,0,0,379,41,1,0,0,0,380,381,5,31,0,0,381,384, - 5,90,0,0,382,384,5,206,0,0,383,380,1,0,0,0,383,382,1,0,0,0,384,43, - 1,0,0,0,385,386,5,119,0,0,386,395,3,74,37,0,387,388,5,179,0,0,388, - 389,5,220,0,0,389,390,3,74,37,0,390,391,5,236,0,0,391,395,1,0,0, - 0,392,393,5,179,0,0,393,395,3,74,37,0,394,385,1,0,0,0,394,387,1, - 0,0,0,394,392,1,0,0,0,395,45,1,0,0,0,396,397,5,144,0,0,397,400,3, - 52,26,0,398,399,5,118,0,0,399,401,3,52,26,0,400,398,1,0,0,0,400, - 401,1,0,0,0,401,47,1,0,0,0,402,407,3,50,25,0,403,404,5,206,0,0,404, - 406,3,50,25,0,405,403,1,0,0,0,406,409,1,0,0,0,407,405,1,0,0,0,407, - 408,1,0,0,0,408,49,1,0,0,0,409,407,1,0,0,0,410,412,3,76,38,0,411, - 413,7,6,0,0,412,411,1,0,0,0,412,413,1,0,0,0,413,416,1,0,0,0,414, - 415,5,117,0,0,415,417,7,7,0,0,416,414,1,0,0,0,416,417,1,0,0,0,417, - 420,1,0,0,0,418,419,5,26,0,0,419,421,5,200,0,0,420,418,1,0,0,0,420, - 421,1,0,0,0,421,51,1,0,0,0,422,429,3,124,62,0,423,426,3,108,54,0, - 424,425,5,238,0,0,425,427,3,108,54,0,426,424,1,0,0,0,426,427,1,0, - 0,0,427,429,1,0,0,0,428,422,1,0,0,0,428,423,1,0,0,0,429,53,1,0,0, - 0,430,435,3,56,28,0,431,432,5,206,0,0,432,434,3,56,28,0,433,431, - 1,0,0,0,434,437,1,0,0,0,435,433,1,0,0,0,435,436,1,0,0,0,436,55,1, - 0,0,0,437,435,1,0,0,0,438,439,3,120,60,0,439,440,5,212,0,0,440,441, - 3,110,55,0,441,57,1,0,0,0,442,444,3,60,30,0,443,442,1,0,0,0,443, - 444,1,0,0,0,444,446,1,0,0,0,445,447,3,62,31,0,446,445,1,0,0,0,446, - 447,1,0,0,0,447,449,1,0,0,0,448,450,3,64,32,0,449,448,1,0,0,0,449, - 450,1,0,0,0,450,59,1,0,0,0,451,452,5,126,0,0,452,453,5,18,0,0,453, - 454,3,74,37,0,454,61,1,0,0,0,455,456,5,122,0,0,456,457,5,18,0,0, - 457,458,3,48,24,0,458,63,1,0,0,0,459,460,7,8,0,0,460,461,3,66,33, - 0,461,65,1,0,0,0,462,469,3,68,34,0,463,464,5,16,0,0,464,465,3,68, - 34,0,465,466,5,6,0,0,466,467,3,68,34,0,467,469,1,0,0,0,468,462,1, - 0,0,0,468,463,1,0,0,0,469,67,1,0,0,0,470,471,5,33,0,0,471,483,5, - 142,0,0,472,473,5,175,0,0,473,483,5,128,0,0,474,475,5,175,0,0,475, - 483,5,64,0,0,476,477,3,108,54,0,477,478,5,128,0,0,478,483,1,0,0, - 0,479,480,3,108,54,0,480,481,5,64,0,0,481,483,1,0,0,0,482,470,1, - 0,0,0,482,472,1,0,0,0,482,474,1,0,0,0,482,476,1,0,0,0,482,479,1, - 0,0,0,483,69,1,0,0,0,484,485,3,76,38,0,485,486,5,0,0,1,486,71,1, - 0,0,0,487,535,3,120,60,0,488,489,3,120,60,0,489,490,5,220,0,0,490, - 491,3,120,60,0,491,498,3,72,36,0,492,493,5,206,0,0,493,494,3,120, - 60,0,494,495,3,72,36,0,495,497,1,0,0,0,496,492,1,0,0,0,497,500,1, - 0,0,0,498,496,1,0,0,0,498,499,1,0,0,0,499,501,1,0,0,0,500,498,1, - 0,0,0,501,502,5,236,0,0,502,535,1,0,0,0,503,504,3,120,60,0,504,505, - 5,220,0,0,505,510,3,122,61,0,506,507,5,206,0,0,507,509,3,122,61, - 0,508,506,1,0,0,0,509,512,1,0,0,0,510,508,1,0,0,0,510,511,1,0,0, - 0,511,513,1,0,0,0,512,510,1,0,0,0,513,514,5,236,0,0,514,535,1,0, - 0,0,515,516,3,120,60,0,516,517,5,220,0,0,517,522,3,72,36,0,518,519, - 5,206,0,0,519,521,3,72,36,0,520,518,1,0,0,0,521,524,1,0,0,0,522, - 520,1,0,0,0,522,523,1,0,0,0,523,525,1,0,0,0,524,522,1,0,0,0,525, - 526,5,236,0,0,526,535,1,0,0,0,527,528,3,120,60,0,528,530,5,220,0, - 0,529,531,3,74,37,0,530,529,1,0,0,0,530,531,1,0,0,0,531,532,1,0, - 0,0,532,533,5,236,0,0,533,535,1,0,0,0,534,487,1,0,0,0,534,488,1, - 0,0,0,534,503,1,0,0,0,534,515,1,0,0,0,534,527,1,0,0,0,535,73,1,0, - 0,0,536,541,3,76,38,0,537,538,5,206,0,0,538,540,3,76,38,0,539,537, - 1,0,0,0,540,543,1,0,0,0,541,539,1,0,0,0,541,542,1,0,0,0,542,75,1, - 0,0,0,543,541,1,0,0,0,544,545,6,38,-1,0,545,547,5,19,0,0,546,548, - 3,76,38,0,547,546,1,0,0,0,547,548,1,0,0,0,548,554,1,0,0,0,549,550, - 5,186,0,0,550,551,3,76,38,0,551,552,5,163,0,0,552,553,3,76,38,0, - 553,555,1,0,0,0,554,549,1,0,0,0,555,556,1,0,0,0,556,554,1,0,0,0, - 556,557,1,0,0,0,557,560,1,0,0,0,558,559,5,52,0,0,559,561,3,76,38, - 0,560,558,1,0,0,0,560,561,1,0,0,0,561,562,1,0,0,0,562,563,5,53,0, - 0,563,675,1,0,0,0,564,565,5,20,0,0,565,566,5,220,0,0,566,567,3,76, - 38,0,567,568,5,10,0,0,568,569,3,72,36,0,569,570,5,236,0,0,570,675, - 1,0,0,0,571,572,5,36,0,0,572,675,5,200,0,0,573,574,5,59,0,0,574, - 575,5,220,0,0,575,576,3,112,56,0,576,577,5,68,0,0,577,578,3,76,38, - 0,578,579,5,236,0,0,579,675,1,0,0,0,580,581,5,86,0,0,581,582,3,76, - 38,0,582,583,3,112,56,0,583,675,1,0,0,0,584,585,5,155,0,0,585,586, - 5,220,0,0,586,587,3,76,38,0,587,588,5,68,0,0,588,591,3,76,38,0,589, - 590,5,65,0,0,590,592,3,76,38,0,591,589,1,0,0,0,591,592,1,0,0,0,592, - 593,1,0,0,0,593,594,5,236,0,0,594,675,1,0,0,0,595,596,5,166,0,0, - 596,675,5,200,0,0,597,598,5,171,0,0,598,599,5,220,0,0,599,600,7, - 9,0,0,600,601,5,200,0,0,601,602,5,68,0,0,602,603,3,76,38,0,603,604, - 5,236,0,0,604,675,1,0,0,0,605,606,3,120,60,0,606,608,5,220,0,0,607, - 609,3,74,37,0,608,607,1,0,0,0,608,609,1,0,0,0,609,610,1,0,0,0,610, - 611,5,236,0,0,611,612,1,0,0,0,612,613,5,125,0,0,613,614,5,220,0, - 0,614,615,3,58,29,0,615,616,5,236,0,0,616,675,1,0,0,0,617,618,3, - 120,60,0,618,620,5,220,0,0,619,621,3,74,37,0,620,619,1,0,0,0,620, - 621,1,0,0,0,621,622,1,0,0,0,622,623,5,236,0,0,623,624,1,0,0,0,624, - 625,5,125,0,0,625,626,3,120,60,0,626,675,1,0,0,0,627,633,3,120,60, - 0,628,630,5,220,0,0,629,631,3,74,37,0,630,629,1,0,0,0,630,631,1, - 0,0,0,631,632,1,0,0,0,632,634,5,236,0,0,633,628,1,0,0,0,633,634, - 1,0,0,0,634,635,1,0,0,0,635,637,5,220,0,0,636,638,5,49,0,0,637,636, - 1,0,0,0,637,638,1,0,0,0,638,640,1,0,0,0,639,641,3,78,39,0,640,639, - 1,0,0,0,640,641,1,0,0,0,641,642,1,0,0,0,642,643,5,236,0,0,643,675, - 1,0,0,0,644,675,3,84,42,0,645,675,3,110,55,0,646,647,5,208,0,0,647, - 675,3,76,38,18,648,649,5,115,0,0,649,675,3,76,38,12,650,651,3,100, - 50,0,651,652,5,210,0,0,652,654,1,0,0,0,653,650,1,0,0,0,653,654,1, - 0,0,0,654,655,1,0,0,0,655,675,5,202,0,0,656,657,5,220,0,0,657,658, - 3,2,1,0,658,659,5,236,0,0,659,675,1,0,0,0,660,661,5,220,0,0,661, - 662,3,76,38,0,662,663,5,236,0,0,663,675,1,0,0,0,664,665,5,220,0, - 0,665,666,3,74,37,0,666,667,5,236,0,0,667,675,1,0,0,0,668,670,5, - 219,0,0,669,671,3,74,37,0,670,669,1,0,0,0,670,671,1,0,0,0,671,672, - 1,0,0,0,672,675,5,235,0,0,673,675,3,92,46,0,674,544,1,0,0,0,674, - 564,1,0,0,0,674,571,1,0,0,0,674,573,1,0,0,0,674,580,1,0,0,0,674, - 584,1,0,0,0,674,595,1,0,0,0,674,597,1,0,0,0,674,605,1,0,0,0,674, - 617,1,0,0,0,674,627,1,0,0,0,674,644,1,0,0,0,674,645,1,0,0,0,674, - 646,1,0,0,0,674,648,1,0,0,0,674,653,1,0,0,0,674,656,1,0,0,0,674, - 660,1,0,0,0,674,664,1,0,0,0,674,668,1,0,0,0,674,673,1,0,0,0,675, - 769,1,0,0,0,676,680,10,17,0,0,677,681,5,202,0,0,678,681,5,238,0, - 0,679,681,5,227,0,0,680,677,1,0,0,0,680,678,1,0,0,0,680,679,1,0, - 0,0,681,682,1,0,0,0,682,768,3,76,38,18,683,687,10,16,0,0,684,688, - 5,228,0,0,685,688,5,208,0,0,686,688,5,207,0,0,687,684,1,0,0,0,687, - 685,1,0,0,0,687,686,1,0,0,0,688,689,1,0,0,0,689,768,3,76,38,17,690, - 715,10,15,0,0,691,716,5,211,0,0,692,716,5,212,0,0,693,716,5,223, - 0,0,694,716,5,221,0,0,695,716,5,222,0,0,696,716,5,213,0,0,697,716, - 5,214,0,0,698,700,5,115,0,0,699,698,1,0,0,0,699,700,1,0,0,0,700, - 701,1,0,0,0,701,703,5,80,0,0,702,704,5,25,0,0,703,702,1,0,0,0,703, - 704,1,0,0,0,704,716,1,0,0,0,705,707,5,115,0,0,706,705,1,0,0,0,706, - 707,1,0,0,0,707,708,1,0,0,0,708,716,7,10,0,0,709,716,5,232,0,0,710, - 716,5,233,0,0,711,716,5,225,0,0,712,716,5,216,0,0,713,716,5,217, - 0,0,714,716,5,224,0,0,715,691,1,0,0,0,715,692,1,0,0,0,715,693,1, - 0,0,0,715,694,1,0,0,0,715,695,1,0,0,0,715,696,1,0,0,0,715,697,1, - 0,0,0,715,699,1,0,0,0,715,706,1,0,0,0,715,709,1,0,0,0,715,710,1, - 0,0,0,715,711,1,0,0,0,715,712,1,0,0,0,715,713,1,0,0,0,715,714,1, - 0,0,0,716,717,1,0,0,0,717,768,3,76,38,16,718,719,10,13,0,0,719,720, - 5,226,0,0,720,768,3,76,38,14,721,722,10,11,0,0,722,723,5,6,0,0,723, - 768,3,76,38,12,724,725,10,10,0,0,725,726,5,121,0,0,726,768,3,76, - 38,11,727,729,10,9,0,0,728,730,5,115,0,0,729,728,1,0,0,0,729,730, - 1,0,0,0,730,731,1,0,0,0,731,732,5,16,0,0,732,733,3,76,38,0,733,734, - 5,6,0,0,734,735,3,76,38,10,735,768,1,0,0,0,736,737,10,8,0,0,737, - 738,5,229,0,0,738,739,3,76,38,0,739,740,5,205,0,0,740,741,3,76,38, - 8,741,768,1,0,0,0,742,743,10,21,0,0,743,744,5,219,0,0,744,745,3, - 76,38,0,745,746,5,235,0,0,746,768,1,0,0,0,747,748,10,20,0,0,748, - 749,5,210,0,0,749,768,5,198,0,0,750,751,10,19,0,0,751,752,5,210, - 0,0,752,768,3,120,60,0,753,754,10,14,0,0,754,756,5,88,0,0,755,757, - 5,115,0,0,756,755,1,0,0,0,756,757,1,0,0,0,757,758,1,0,0,0,758,768, - 5,116,0,0,759,765,10,7,0,0,760,766,3,118,59,0,761,762,5,10,0,0,762, - 766,3,120,60,0,763,764,5,10,0,0,764,766,5,200,0,0,765,760,1,0,0, - 0,765,761,1,0,0,0,765,763,1,0,0,0,766,768,1,0,0,0,767,676,1,0,0, - 0,767,683,1,0,0,0,767,690,1,0,0,0,767,718,1,0,0,0,767,721,1,0,0, - 0,767,724,1,0,0,0,767,727,1,0,0,0,767,736,1,0,0,0,767,742,1,0,0, - 0,767,747,1,0,0,0,767,750,1,0,0,0,767,753,1,0,0,0,767,759,1,0,0, - 0,768,771,1,0,0,0,769,767,1,0,0,0,769,770,1,0,0,0,770,77,1,0,0,0, - 771,769,1,0,0,0,772,777,3,80,40,0,773,774,5,206,0,0,774,776,3,80, - 40,0,775,773,1,0,0,0,776,779,1,0,0,0,777,775,1,0,0,0,777,778,1,0, - 0,0,778,79,1,0,0,0,779,777,1,0,0,0,780,783,3,82,41,0,781,783,3,76, - 38,0,782,780,1,0,0,0,782,781,1,0,0,0,783,81,1,0,0,0,784,785,5,220, - 0,0,785,790,3,120,60,0,786,787,5,206,0,0,787,789,3,120,60,0,788, - 786,1,0,0,0,789,792,1,0,0,0,790,788,1,0,0,0,790,791,1,0,0,0,791, - 793,1,0,0,0,792,790,1,0,0,0,793,794,5,236,0,0,794,804,1,0,0,0,795, - 800,3,120,60,0,796,797,5,206,0,0,797,799,3,120,60,0,798,796,1,0, - 0,0,799,802,1,0,0,0,800,798,1,0,0,0,800,801,1,0,0,0,801,804,1,0, - 0,0,802,800,1,0,0,0,803,784,1,0,0,0,803,795,1,0,0,0,804,805,1,0, - 0,0,805,806,5,201,0,0,806,807,3,76,38,0,807,83,1,0,0,0,808,809,5, - 222,0,0,809,813,3,120,60,0,810,812,3,86,43,0,811,810,1,0,0,0,812, - 815,1,0,0,0,813,811,1,0,0,0,813,814,1,0,0,0,814,816,1,0,0,0,815, - 813,1,0,0,0,816,817,5,238,0,0,817,818,5,214,0,0,818,837,1,0,0,0, - 819,820,5,222,0,0,820,824,3,120,60,0,821,823,3,86,43,0,822,821,1, - 0,0,0,823,826,1,0,0,0,824,822,1,0,0,0,824,825,1,0,0,0,825,827,1, - 0,0,0,826,824,1,0,0,0,827,829,5,214,0,0,828,830,3,84,42,0,829,828, - 1,0,0,0,829,830,1,0,0,0,830,831,1,0,0,0,831,832,5,222,0,0,832,833, - 5,238,0,0,833,834,3,120,60,0,834,835,5,214,0,0,835,837,1,0,0,0,836, - 808,1,0,0,0,836,819,1,0,0,0,837,85,1,0,0,0,838,839,3,120,60,0,839, - 840,5,212,0,0,840,841,5,200,0,0,841,850,1,0,0,0,842,843,3,120,60, - 0,843,844,5,212,0,0,844,845,5,218,0,0,845,846,3,76,38,0,846,847, - 5,234,0,0,847,850,1,0,0,0,848,850,3,120,60,0,849,838,1,0,0,0,849, - 842,1,0,0,0,849,848,1,0,0,0,850,87,1,0,0,0,851,856,3,90,45,0,852, - 853,5,206,0,0,853,855,3,90,45,0,854,852,1,0,0,0,855,858,1,0,0,0, - 856,854,1,0,0,0,856,857,1,0,0,0,857,89,1,0,0,0,858,856,1,0,0,0,859, - 860,3,120,60,0,860,861,5,10,0,0,861,862,5,220,0,0,862,863,3,2,1, - 0,863,864,5,236,0,0,864,870,1,0,0,0,865,866,3,76,38,0,866,867,5, - 10,0,0,867,868,3,120,60,0,868,870,1,0,0,0,869,859,1,0,0,0,869,865, - 1,0,0,0,870,91,1,0,0,0,871,879,3,124,62,0,872,873,3,100,50,0,873, - 874,5,210,0,0,874,876,1,0,0,0,875,872,1,0,0,0,875,876,1,0,0,0,876, - 877,1,0,0,0,877,879,3,94,47,0,878,871,1,0,0,0,878,875,1,0,0,0,879, - 93,1,0,0,0,880,885,3,120,60,0,881,882,5,210,0,0,882,884,3,120,60, - 0,883,881,1,0,0,0,884,887,1,0,0,0,885,883,1,0,0,0,885,886,1,0,0, - 0,886,95,1,0,0,0,887,885,1,0,0,0,888,889,6,48,-1,0,889,898,3,100, - 50,0,890,898,3,98,49,0,891,892,5,220,0,0,892,893,3,2,1,0,893,894, - 5,236,0,0,894,898,1,0,0,0,895,898,3,84,42,0,896,898,3,124,62,0,897, - 888,1,0,0,0,897,890,1,0,0,0,897,891,1,0,0,0,897,895,1,0,0,0,897, - 896,1,0,0,0,898,907,1,0,0,0,899,903,10,3,0,0,900,904,3,118,59,0, - 901,902,5,10,0,0,902,904,3,120,60,0,903,900,1,0,0,0,903,901,1,0, - 0,0,904,906,1,0,0,0,905,899,1,0,0,0,906,909,1,0,0,0,907,905,1,0, - 0,0,907,908,1,0,0,0,908,97,1,0,0,0,909,907,1,0,0,0,910,911,3,120, - 60,0,911,913,5,220,0,0,912,914,3,102,51,0,913,912,1,0,0,0,913,914, - 1,0,0,0,914,915,1,0,0,0,915,916,5,236,0,0,916,99,1,0,0,0,917,918, - 3,104,52,0,918,919,5,210,0,0,919,921,1,0,0,0,920,917,1,0,0,0,920, - 921,1,0,0,0,921,922,1,0,0,0,922,923,3,120,60,0,923,101,1,0,0,0,924, - 929,3,76,38,0,925,926,5,206,0,0,926,928,3,76,38,0,927,925,1,0,0, - 0,928,931,1,0,0,0,929,927,1,0,0,0,929,930,1,0,0,0,930,103,1,0,0, - 0,931,929,1,0,0,0,932,933,3,120,60,0,933,105,1,0,0,0,934,943,5,196, - 0,0,935,936,5,210,0,0,936,943,7,11,0,0,937,938,5,198,0,0,938,940, - 5,210,0,0,939,941,7,11,0,0,940,939,1,0,0,0,940,941,1,0,0,0,941,943, - 1,0,0,0,942,934,1,0,0,0,942,935,1,0,0,0,942,937,1,0,0,0,943,107, - 1,0,0,0,944,946,7,12,0,0,945,944,1,0,0,0,945,946,1,0,0,0,946,953, - 1,0,0,0,947,954,3,106,53,0,948,954,5,197,0,0,949,954,5,198,0,0,950, - 954,5,199,0,0,951,954,5,82,0,0,952,954,5,113,0,0,953,947,1,0,0,0, - 953,948,1,0,0,0,953,949,1,0,0,0,953,950,1,0,0,0,953,951,1,0,0,0, - 953,952,1,0,0,0,954,109,1,0,0,0,955,959,3,108,54,0,956,959,5,200, - 0,0,957,959,5,116,0,0,958,955,1,0,0,0,958,956,1,0,0,0,958,957,1, - 0,0,0,959,111,1,0,0,0,960,961,7,13,0,0,961,113,1,0,0,0,962,963,7, - 14,0,0,963,115,1,0,0,0,964,965,7,15,0,0,965,117,1,0,0,0,966,969, - 5,195,0,0,967,969,3,116,58,0,968,966,1,0,0,0,968,967,1,0,0,0,969, - 119,1,0,0,0,970,974,5,195,0,0,971,974,3,112,56,0,972,974,3,114,57, - 0,973,970,1,0,0,0,973,971,1,0,0,0,973,972,1,0,0,0,974,121,1,0,0, - 0,975,976,5,200,0,0,976,977,5,212,0,0,977,978,3,108,54,0,978,123, - 1,0,0,0,979,980,5,218,0,0,980,981,3,120,60,0,981,982,5,234,0,0,982, - 125,1,0,0,0,121,129,139,147,151,154,158,161,165,168,171,174,177, - 181,185,188,191,194,198,201,210,216,237,254,271,277,283,294,296, - 307,310,316,324,330,332,336,341,344,347,351,355,358,360,363,367, - 371,374,376,378,383,394,400,407,412,416,420,426,428,435,443,446, - 449,468,482,498,510,522,530,534,541,547,556,560,591,608,620,630, - 633,637,640,653,670,674,680,687,699,703,706,715,729,756,765,767, - 769,777,782,790,800,803,813,824,829,836,849,856,869,875,878,885, - 897,903,907,913,920,929,940,942,945,953,958,968,973 + 59,7,59,2,60,7,60,2,61,7,61,1,0,1,0,1,0,3,0,128,8,0,1,0,1,0,1,1, + 1,1,1,1,1,1,5,1,136,8,1,10,1,12,1,139,9,1,1,2,1,2,1,2,1,2,1,2,1, + 2,3,2,147,8,2,1,3,3,3,150,8,3,1,3,1,3,3,3,154,8,3,1,3,3,3,157,8, + 3,1,3,1,3,3,3,161,8,3,1,3,3,3,164,8,3,1,3,3,3,167,8,3,1,3,3,3,170, + 8,3,1,3,3,3,173,8,3,1,3,1,3,3,3,177,8,3,1,3,1,3,3,3,181,8,3,1,3, + 3,3,184,8,3,1,3,3,3,187,8,3,1,3,3,3,190,8,3,1,3,1,3,3,3,194,8,3, + 1,3,3,3,197,8,3,1,4,1,4,1,4,1,5,1,5,1,5,1,5,3,5,206,8,5,1,6,1,6, + 1,6,1,7,3,7,212,8,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,8,1,8,1,8,1,8,5,8,231,8,8,10,8,12,8,234,9,8,1,9,1,9,1, + 9,1,10,1,10,1,10,1,11,1,11,1,11,1,11,1,11,1,11,1,11,1,11,3,11,250, + 8,11,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,14,1,14,1,14,1,14,1,15, + 1,15,1,15,1,15,3,15,267,8,15,1,15,1,15,1,15,1,15,3,15,273,8,15,1, + 15,1,15,1,15,1,15,3,15,279,8,15,1,15,1,15,1,15,1,15,1,15,1,15,1, + 15,1,15,1,15,3,15,290,8,15,3,15,292,8,15,1,16,1,16,1,16,1,17,1,17, + 1,17,1,18,1,18,1,18,3,18,303,8,18,1,18,3,18,306,8,18,1,18,1,18,1, + 18,1,18,3,18,312,8,18,1,18,1,18,1,18,1,18,1,18,1,18,3,18,320,8,18, + 1,18,1,18,1,18,1,18,5,18,326,8,18,10,18,12,18,329,9,18,1,19,3,19, + 332,8,19,1,19,1,19,1,19,3,19,337,8,19,1,19,3,19,340,8,19,1,19,3, + 19,343,8,19,1,19,1,19,3,19,347,8,19,1,19,1,19,3,19,351,8,19,1,19, + 3,19,354,8,19,3,19,356,8,19,1,19,3,19,359,8,19,1,19,1,19,3,19,363, + 8,19,1,19,1,19,3,19,367,8,19,1,19,3,19,370,8,19,3,19,372,8,19,3, + 19,374,8,19,1,20,1,20,1,20,3,20,379,8,20,1,21,1,21,1,21,1,21,1,21, + 1,21,1,21,1,21,1,21,3,21,390,8,21,1,22,1,22,1,22,1,22,3,22,396,8, + 22,1,23,1,23,1,23,5,23,401,8,23,10,23,12,23,404,9,23,1,24,1,24,3, + 24,408,8,24,1,24,1,24,3,24,412,8,24,1,24,1,24,3,24,416,8,24,1,25, + 1,25,1,25,1,25,3,25,422,8,25,3,25,424,8,25,1,26,1,26,1,26,5,26,429, + 8,26,10,26,12,26,432,9,26,1,27,1,27,1,27,1,27,1,28,3,28,439,8,28, + 1,28,3,28,442,8,28,1,28,3,28,445,8,28,1,29,1,29,1,29,1,29,1,30,1, + 30,1,30,1,30,1,31,1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,3,32,464, + 8,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, + 3,33,478,8,33,1,34,1,34,1,34,1,35,1,35,1,35,1,35,1,35,1,35,1,35, + 1,35,1,35,5,35,492,8,35,10,35,12,35,495,9,35,1,35,1,35,1,35,1,35, + 1,35,1,35,1,35,5,35,504,8,35,10,35,12,35,507,9,35,1,35,1,35,1,35, + 1,35,1,35,1,35,1,35,5,35,516,8,35,10,35,12,35,519,9,35,1,35,1,35, + 1,35,1,35,1,35,3,35,526,8,35,1,35,1,35,3,35,530,8,35,1,36,1,36,1, + 36,5,36,535,8,36,10,36,12,36,538,9,36,1,37,1,37,1,37,3,37,543,8, + 37,1,37,1,37,1,37,1,37,1,37,4,37,550,8,37,11,37,12,37,551,1,37,1, + 37,3,37,556,8,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,1,37,1,37,1,37,1,37,3,37,587,8,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,604, + 8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,3,37,616, + 8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,3,37,626,8,37,1,37, + 3,37,629,8,37,1,37,1,37,3,37,633,8,37,1,37,3,37,636,8,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,649,8,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,666,8,37,1,37,1,37,3,37,670,8,37,1,37,1,37,1,37,1,37, + 3,37,676,8,37,1,37,1,37,1,37,1,37,1,37,3,37,683,8,37,1,37,1,37,1, + 37,1,37,1,37,1,37,1,37,1,37,1,37,1,37,3,37,695,8,37,1,37,1,37,3, + 37,699,8,37,1,37,3,37,702,8,37,1,37,1,37,1,37,1,37,1,37,1,37,1,37, + 3,37,711,8,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,725,8,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,752,8,37,1,37,1,37,1,37,1,37,1,37,1,37, + 1,37,3,37,761,8,37,5,37,763,8,37,10,37,12,37,766,9,37,1,38,1,38, + 1,38,5,38,771,8,38,10,38,12,38,774,9,38,1,39,1,39,3,39,778,8,39, + 1,40,1,40,1,40,1,40,5,40,784,8,40,10,40,12,40,787,9,40,1,40,1,40, + 1,40,1,40,1,40,5,40,794,8,40,10,40,12,40,797,9,40,3,40,799,8,40, + 1,40,1,40,1,40,1,41,1,41,1,41,5,41,807,8,41,10,41,12,41,810,9,41, + 1,41,1,41,1,41,1,41,1,41,1,41,5,41,818,8,41,10,41,12,41,821,9,41, + 1,41,1,41,3,41,825,8,41,1,41,1,41,1,41,1,41,1,41,3,41,832,8,41,1, + 42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,1,42,3,42,845,8, + 42,1,43,1,43,1,43,5,43,850,8,43,10,43,12,43,853,9,43,1,44,1,44,1, + 44,1,44,1,44,1,44,1,44,1,44,1,44,1,44,3,44,865,8,44,1,45,1,45,1, + 45,1,45,3,45,871,8,45,1,45,3,45,874,8,45,1,46,1,46,1,46,5,46,879, + 8,46,10,46,12,46,882,9,46,1,47,1,47,1,47,1,47,1,47,1,47,1,47,1,47, + 1,47,3,47,893,8,47,1,47,1,47,1,47,1,47,3,47,899,8,47,5,47,901,8, + 47,10,47,12,47,904,9,47,1,48,1,48,1,48,3,48,909,8,48,1,48,1,48,1, + 49,1,49,1,49,3,49,916,8,49,1,49,1,49,1,50,1,50,1,50,5,50,923,8,50, + 10,50,12,50,926,9,50,1,51,1,51,1,52,1,52,1,52,1,52,1,52,1,52,3,52, + 936,8,52,3,52,938,8,52,1,53,3,53,941,8,53,1,53,1,53,1,53,1,53,1, + 53,1,53,3,53,949,8,53,1,54,1,54,1,54,3,54,954,8,54,1,55,1,55,1,56, + 1,56,1,57,1,57,1,58,1,58,3,58,964,8,58,1,59,1,59,1,59,3,59,969,8, + 59,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,0,3,36,74,94,62, + 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,0, + 16,2,0,32,32,141,141,2,0,84,84,96,96,3,0,4,4,8,8,12,12,4,0,4,4,7, + 8,12,12,147,147,2,0,96,96,140,140,2,0,4,4,8,8,2,0,11,11,42,43,2, + 0,62,62,93,93,2,0,133,133,143,143,3,0,17,17,95,95,170,170,2,0,79, + 79,98,98,1,0,197,198,2,0,208,208,228,228,8,0,37,37,76,76,108,108, + 110,110,132,132,145,145,185,185,190,190,13,0,2,24,26,36,38,75,77, + 81,83,107,109,109,111,112,114,115,117,130,133,144,146,184,186,189, + 191,192,4,0,36,36,62,62,77,77,91,91,1107,0,127,1,0,0,0,2,131,1,0, + 0,0,4,146,1,0,0,0,6,149,1,0,0,0,8,198,1,0,0,0,10,201,1,0,0,0,12, + 207,1,0,0,0,14,211,1,0,0,0,16,217,1,0,0,0,18,235,1,0,0,0,20,238, + 1,0,0,0,22,241,1,0,0,0,24,251,1,0,0,0,26,254,1,0,0,0,28,258,1,0, + 0,0,30,291,1,0,0,0,32,293,1,0,0,0,34,296,1,0,0,0,36,311,1,0,0,0, + 38,373,1,0,0,0,40,378,1,0,0,0,42,389,1,0,0,0,44,391,1,0,0,0,46,397, + 1,0,0,0,48,405,1,0,0,0,50,423,1,0,0,0,52,425,1,0,0,0,54,433,1,0, + 0,0,56,438,1,0,0,0,58,446,1,0,0,0,60,450,1,0,0,0,62,454,1,0,0,0, + 64,463,1,0,0,0,66,477,1,0,0,0,68,479,1,0,0,0,70,529,1,0,0,0,72,531, + 1,0,0,0,74,669,1,0,0,0,76,767,1,0,0,0,78,777,1,0,0,0,80,798,1,0, + 0,0,82,831,1,0,0,0,84,844,1,0,0,0,86,846,1,0,0,0,88,864,1,0,0,0, + 90,873,1,0,0,0,92,875,1,0,0,0,94,892,1,0,0,0,96,905,1,0,0,0,98,915, + 1,0,0,0,100,919,1,0,0,0,102,927,1,0,0,0,104,937,1,0,0,0,106,940, + 1,0,0,0,108,953,1,0,0,0,110,955,1,0,0,0,112,957,1,0,0,0,114,959, + 1,0,0,0,116,963,1,0,0,0,118,968,1,0,0,0,120,970,1,0,0,0,122,974, + 1,0,0,0,124,128,3,2,1,0,125,128,3,6,3,0,126,128,3,82,41,0,127,124, + 1,0,0,0,127,125,1,0,0,0,127,126,1,0,0,0,128,129,1,0,0,0,129,130, + 5,0,0,1,130,1,1,0,0,0,131,137,3,4,2,0,132,133,5,176,0,0,133,134, + 5,4,0,0,134,136,3,4,2,0,135,132,1,0,0,0,136,139,1,0,0,0,137,135, + 1,0,0,0,137,138,1,0,0,0,138,3,1,0,0,0,139,137,1,0,0,0,140,147,3, + 6,3,0,141,142,5,220,0,0,142,143,3,2,1,0,143,144,5,236,0,0,144,147, + 1,0,0,0,145,147,3,122,61,0,146,140,1,0,0,0,146,141,1,0,0,0,146,145, + 1,0,0,0,147,5,1,0,0,0,148,150,3,8,4,0,149,148,1,0,0,0,149,150,1, + 0,0,0,150,151,1,0,0,0,151,153,5,146,0,0,152,154,5,49,0,0,153,152, + 1,0,0,0,153,154,1,0,0,0,154,156,1,0,0,0,155,157,3,10,5,0,156,155, + 1,0,0,0,156,157,1,0,0,0,157,158,1,0,0,0,158,160,3,72,36,0,159,161, + 3,12,6,0,160,159,1,0,0,0,160,161,1,0,0,0,161,163,1,0,0,0,162,164, + 3,14,7,0,163,162,1,0,0,0,163,164,1,0,0,0,164,166,1,0,0,0,165,167, + 3,18,9,0,166,165,1,0,0,0,166,167,1,0,0,0,167,169,1,0,0,0,168,170, + 3,20,10,0,169,168,1,0,0,0,169,170,1,0,0,0,170,172,1,0,0,0,171,173, + 3,22,11,0,172,171,1,0,0,0,172,173,1,0,0,0,173,176,1,0,0,0,174,175, + 5,189,0,0,175,177,7,0,0,0,176,174,1,0,0,0,176,177,1,0,0,0,177,180, + 1,0,0,0,178,179,5,189,0,0,179,181,5,169,0,0,180,178,1,0,0,0,180, + 181,1,0,0,0,181,183,1,0,0,0,182,184,3,24,12,0,183,182,1,0,0,0,183, + 184,1,0,0,0,184,186,1,0,0,0,185,187,3,16,8,0,186,185,1,0,0,0,186, + 187,1,0,0,0,187,189,1,0,0,0,188,190,3,26,13,0,189,188,1,0,0,0,189, + 190,1,0,0,0,190,193,1,0,0,0,191,194,3,30,15,0,192,194,3,32,16,0, + 193,191,1,0,0,0,193,192,1,0,0,0,193,194,1,0,0,0,194,196,1,0,0,0, + 195,197,3,34,17,0,196,195,1,0,0,0,196,197,1,0,0,0,197,7,1,0,0,0, + 198,199,5,189,0,0,199,200,3,86,43,0,200,9,1,0,0,0,201,202,5,168, + 0,0,202,205,5,198,0,0,203,204,5,189,0,0,204,206,5,164,0,0,205,203, + 1,0,0,0,205,206,1,0,0,0,206,11,1,0,0,0,207,208,5,68,0,0,208,209, + 3,36,18,0,209,13,1,0,0,0,210,212,7,1,0,0,211,210,1,0,0,0,211,212, + 1,0,0,0,212,213,1,0,0,0,213,214,5,9,0,0,214,215,5,90,0,0,215,216, + 3,72,36,0,216,15,1,0,0,0,217,218,5,188,0,0,218,219,3,118,59,0,219, + 220,5,10,0,0,220,221,5,220,0,0,221,222,3,56,28,0,222,232,5,236,0, + 0,223,224,5,206,0,0,224,225,3,118,59,0,225,226,5,10,0,0,226,227, + 5,220,0,0,227,228,3,56,28,0,228,229,5,236,0,0,229,231,1,0,0,0,230, + 223,1,0,0,0,231,234,1,0,0,0,232,230,1,0,0,0,232,233,1,0,0,0,233, + 17,1,0,0,0,234,232,1,0,0,0,235,236,5,129,0,0,236,237,3,74,37,0,237, + 19,1,0,0,0,238,239,5,187,0,0,239,240,3,74,37,0,240,21,1,0,0,0,241, + 242,5,73,0,0,242,249,5,18,0,0,243,244,7,0,0,0,244,245,5,220,0,0, + 245,246,3,72,36,0,246,247,5,236,0,0,247,250,1,0,0,0,248,250,3,72, + 36,0,249,243,1,0,0,0,249,248,1,0,0,0,250,23,1,0,0,0,251,252,5,74, + 0,0,252,253,3,74,37,0,253,25,1,0,0,0,254,255,5,122,0,0,255,256,5, + 18,0,0,256,257,3,46,23,0,257,27,1,0,0,0,258,259,5,122,0,0,259,260, + 5,18,0,0,260,261,3,72,36,0,261,29,1,0,0,0,262,263,5,99,0,0,263,266, + 3,74,37,0,264,265,5,206,0,0,265,267,3,74,37,0,266,264,1,0,0,0,266, + 267,1,0,0,0,267,272,1,0,0,0,268,269,5,189,0,0,269,273,5,164,0,0, + 270,271,5,18,0,0,271,273,3,72,36,0,272,268,1,0,0,0,272,270,1,0,0, + 0,272,273,1,0,0,0,273,292,1,0,0,0,274,275,5,99,0,0,275,278,3,74, + 37,0,276,277,5,189,0,0,277,279,5,164,0,0,278,276,1,0,0,0,278,279, + 1,0,0,0,279,280,1,0,0,0,280,281,5,118,0,0,281,282,3,74,37,0,282, + 292,1,0,0,0,283,284,5,99,0,0,284,285,3,74,37,0,285,286,5,118,0,0, + 286,289,3,74,37,0,287,288,5,18,0,0,288,290,3,72,36,0,289,287,1,0, + 0,0,289,290,1,0,0,0,290,292,1,0,0,0,291,262,1,0,0,0,291,274,1,0, + 0,0,291,283,1,0,0,0,292,31,1,0,0,0,293,294,5,118,0,0,294,295,3,74, + 37,0,295,33,1,0,0,0,296,297,5,150,0,0,297,298,3,52,26,0,298,35,1, + 0,0,0,299,300,6,18,-1,0,300,302,3,94,47,0,301,303,5,61,0,0,302,301, + 1,0,0,0,302,303,1,0,0,0,303,305,1,0,0,0,304,306,3,44,22,0,305,304, + 1,0,0,0,305,306,1,0,0,0,306,312,1,0,0,0,307,308,5,220,0,0,308,309, + 3,36,18,0,309,310,5,236,0,0,310,312,1,0,0,0,311,299,1,0,0,0,311, + 307,1,0,0,0,312,327,1,0,0,0,313,314,10,3,0,0,314,315,3,40,20,0,315, + 316,3,36,18,4,316,326,1,0,0,0,317,319,10,4,0,0,318,320,3,38,19,0, + 319,318,1,0,0,0,319,320,1,0,0,0,320,321,1,0,0,0,321,322,5,90,0,0, + 322,323,3,36,18,0,323,324,3,42,21,0,324,326,1,0,0,0,325,313,1,0, + 0,0,325,317,1,0,0,0,326,329,1,0,0,0,327,325,1,0,0,0,327,328,1,0, + 0,0,328,37,1,0,0,0,329,327,1,0,0,0,330,332,7,2,0,0,331,330,1,0,0, + 0,331,332,1,0,0,0,332,333,1,0,0,0,333,340,5,84,0,0,334,336,5,84, + 0,0,335,337,7,2,0,0,336,335,1,0,0,0,336,337,1,0,0,0,337,340,1,0, + 0,0,338,340,7,2,0,0,339,331,1,0,0,0,339,334,1,0,0,0,339,338,1,0, + 0,0,340,374,1,0,0,0,341,343,7,3,0,0,342,341,1,0,0,0,342,343,1,0, + 0,0,343,344,1,0,0,0,344,346,7,4,0,0,345,347,5,123,0,0,346,345,1, + 0,0,0,346,347,1,0,0,0,347,356,1,0,0,0,348,350,7,4,0,0,349,351,5, + 123,0,0,350,349,1,0,0,0,350,351,1,0,0,0,351,353,1,0,0,0,352,354, + 7,3,0,0,353,352,1,0,0,0,353,354,1,0,0,0,354,356,1,0,0,0,355,342, + 1,0,0,0,355,348,1,0,0,0,356,374,1,0,0,0,357,359,7,5,0,0,358,357, + 1,0,0,0,358,359,1,0,0,0,359,360,1,0,0,0,360,362,5,69,0,0,361,363, + 5,123,0,0,362,361,1,0,0,0,362,363,1,0,0,0,363,372,1,0,0,0,364,366, + 5,69,0,0,365,367,5,123,0,0,366,365,1,0,0,0,366,367,1,0,0,0,367,369, + 1,0,0,0,368,370,7,5,0,0,369,368,1,0,0,0,369,370,1,0,0,0,370,372, + 1,0,0,0,371,358,1,0,0,0,371,364,1,0,0,0,372,374,1,0,0,0,373,339, + 1,0,0,0,373,355,1,0,0,0,373,371,1,0,0,0,374,39,1,0,0,0,375,376,5, + 31,0,0,376,379,5,90,0,0,377,379,5,206,0,0,378,375,1,0,0,0,378,377, + 1,0,0,0,379,41,1,0,0,0,380,381,5,119,0,0,381,390,3,72,36,0,382,383, + 5,179,0,0,383,384,5,220,0,0,384,385,3,72,36,0,385,386,5,236,0,0, + 386,390,1,0,0,0,387,388,5,179,0,0,388,390,3,72,36,0,389,380,1,0, + 0,0,389,382,1,0,0,0,389,387,1,0,0,0,390,43,1,0,0,0,391,392,5,144, + 0,0,392,395,3,50,25,0,393,394,5,118,0,0,394,396,3,50,25,0,395,393, + 1,0,0,0,395,396,1,0,0,0,396,45,1,0,0,0,397,402,3,48,24,0,398,399, + 5,206,0,0,399,401,3,48,24,0,400,398,1,0,0,0,401,404,1,0,0,0,402, + 400,1,0,0,0,402,403,1,0,0,0,403,47,1,0,0,0,404,402,1,0,0,0,405,407, + 3,74,37,0,406,408,7,6,0,0,407,406,1,0,0,0,407,408,1,0,0,0,408,411, + 1,0,0,0,409,410,5,117,0,0,410,412,7,7,0,0,411,409,1,0,0,0,411,412, + 1,0,0,0,412,415,1,0,0,0,413,414,5,26,0,0,414,416,5,200,0,0,415,413, + 1,0,0,0,415,416,1,0,0,0,416,49,1,0,0,0,417,424,3,122,61,0,418,421, + 3,106,53,0,419,420,5,238,0,0,420,422,3,106,53,0,421,419,1,0,0,0, + 421,422,1,0,0,0,422,424,1,0,0,0,423,417,1,0,0,0,423,418,1,0,0,0, + 424,51,1,0,0,0,425,430,3,54,27,0,426,427,5,206,0,0,427,429,3,54, + 27,0,428,426,1,0,0,0,429,432,1,0,0,0,430,428,1,0,0,0,430,431,1,0, + 0,0,431,53,1,0,0,0,432,430,1,0,0,0,433,434,3,118,59,0,434,435,5, + 212,0,0,435,436,3,108,54,0,436,55,1,0,0,0,437,439,3,58,29,0,438, + 437,1,0,0,0,438,439,1,0,0,0,439,441,1,0,0,0,440,442,3,60,30,0,441, + 440,1,0,0,0,441,442,1,0,0,0,442,444,1,0,0,0,443,445,3,62,31,0,444, + 443,1,0,0,0,444,445,1,0,0,0,445,57,1,0,0,0,446,447,5,126,0,0,447, + 448,5,18,0,0,448,449,3,72,36,0,449,59,1,0,0,0,450,451,5,122,0,0, + 451,452,5,18,0,0,452,453,3,46,23,0,453,61,1,0,0,0,454,455,7,8,0, + 0,455,456,3,64,32,0,456,63,1,0,0,0,457,464,3,66,33,0,458,459,5,16, + 0,0,459,460,3,66,33,0,460,461,5,6,0,0,461,462,3,66,33,0,462,464, + 1,0,0,0,463,457,1,0,0,0,463,458,1,0,0,0,464,65,1,0,0,0,465,466,5, + 33,0,0,466,478,5,142,0,0,467,468,5,175,0,0,468,478,5,128,0,0,469, + 470,5,175,0,0,470,478,5,64,0,0,471,472,3,106,53,0,472,473,5,128, + 0,0,473,478,1,0,0,0,474,475,3,106,53,0,475,476,5,64,0,0,476,478, + 1,0,0,0,477,465,1,0,0,0,477,467,1,0,0,0,477,469,1,0,0,0,477,471, + 1,0,0,0,477,474,1,0,0,0,478,67,1,0,0,0,479,480,3,74,37,0,480,481, + 5,0,0,1,481,69,1,0,0,0,482,530,3,118,59,0,483,484,3,118,59,0,484, + 485,5,220,0,0,485,486,3,118,59,0,486,493,3,70,35,0,487,488,5,206, + 0,0,488,489,3,118,59,0,489,490,3,70,35,0,490,492,1,0,0,0,491,487, + 1,0,0,0,492,495,1,0,0,0,493,491,1,0,0,0,493,494,1,0,0,0,494,496, + 1,0,0,0,495,493,1,0,0,0,496,497,5,236,0,0,497,530,1,0,0,0,498,499, + 3,118,59,0,499,500,5,220,0,0,500,505,3,120,60,0,501,502,5,206,0, + 0,502,504,3,120,60,0,503,501,1,0,0,0,504,507,1,0,0,0,505,503,1,0, + 0,0,505,506,1,0,0,0,506,508,1,0,0,0,507,505,1,0,0,0,508,509,5,236, + 0,0,509,530,1,0,0,0,510,511,3,118,59,0,511,512,5,220,0,0,512,517, + 3,70,35,0,513,514,5,206,0,0,514,516,3,70,35,0,515,513,1,0,0,0,516, + 519,1,0,0,0,517,515,1,0,0,0,517,518,1,0,0,0,518,520,1,0,0,0,519, + 517,1,0,0,0,520,521,5,236,0,0,521,530,1,0,0,0,522,523,3,118,59,0, + 523,525,5,220,0,0,524,526,3,72,36,0,525,524,1,0,0,0,525,526,1,0, + 0,0,526,527,1,0,0,0,527,528,5,236,0,0,528,530,1,0,0,0,529,482,1, + 0,0,0,529,483,1,0,0,0,529,498,1,0,0,0,529,510,1,0,0,0,529,522,1, + 0,0,0,530,71,1,0,0,0,531,536,3,74,37,0,532,533,5,206,0,0,533,535, + 3,74,37,0,534,532,1,0,0,0,535,538,1,0,0,0,536,534,1,0,0,0,536,537, + 1,0,0,0,537,73,1,0,0,0,538,536,1,0,0,0,539,540,6,37,-1,0,540,542, + 5,19,0,0,541,543,3,74,37,0,542,541,1,0,0,0,542,543,1,0,0,0,543,549, + 1,0,0,0,544,545,5,186,0,0,545,546,3,74,37,0,546,547,5,163,0,0,547, + 548,3,74,37,0,548,550,1,0,0,0,549,544,1,0,0,0,550,551,1,0,0,0,551, + 549,1,0,0,0,551,552,1,0,0,0,552,555,1,0,0,0,553,554,5,52,0,0,554, + 556,3,74,37,0,555,553,1,0,0,0,555,556,1,0,0,0,556,557,1,0,0,0,557, + 558,5,53,0,0,558,670,1,0,0,0,559,560,5,20,0,0,560,561,5,220,0,0, + 561,562,3,74,37,0,562,563,5,10,0,0,563,564,3,70,35,0,564,565,5,236, + 0,0,565,670,1,0,0,0,566,567,5,36,0,0,567,670,5,200,0,0,568,569,5, + 59,0,0,569,570,5,220,0,0,570,571,3,110,55,0,571,572,5,68,0,0,572, + 573,3,74,37,0,573,574,5,236,0,0,574,670,1,0,0,0,575,576,5,86,0,0, + 576,577,3,74,37,0,577,578,3,110,55,0,578,670,1,0,0,0,579,580,5,155, + 0,0,580,581,5,220,0,0,581,582,3,74,37,0,582,583,5,68,0,0,583,586, + 3,74,37,0,584,585,5,65,0,0,585,587,3,74,37,0,586,584,1,0,0,0,586, + 587,1,0,0,0,587,588,1,0,0,0,588,589,5,236,0,0,589,670,1,0,0,0,590, + 591,5,166,0,0,591,670,5,200,0,0,592,593,5,171,0,0,593,594,5,220, + 0,0,594,595,7,9,0,0,595,596,5,200,0,0,596,597,5,68,0,0,597,598,3, + 74,37,0,598,599,5,236,0,0,599,670,1,0,0,0,600,601,3,118,59,0,601, + 603,5,220,0,0,602,604,3,72,36,0,603,602,1,0,0,0,603,604,1,0,0,0, + 604,605,1,0,0,0,605,606,5,236,0,0,606,607,1,0,0,0,607,608,5,125, + 0,0,608,609,5,220,0,0,609,610,3,56,28,0,610,611,5,236,0,0,611,670, + 1,0,0,0,612,613,3,118,59,0,613,615,5,220,0,0,614,616,3,72,36,0,615, + 614,1,0,0,0,615,616,1,0,0,0,616,617,1,0,0,0,617,618,5,236,0,0,618, + 619,1,0,0,0,619,620,5,125,0,0,620,621,3,118,59,0,621,670,1,0,0,0, + 622,628,3,118,59,0,623,625,5,220,0,0,624,626,3,72,36,0,625,624,1, + 0,0,0,625,626,1,0,0,0,626,627,1,0,0,0,627,629,5,236,0,0,628,623, + 1,0,0,0,628,629,1,0,0,0,629,630,1,0,0,0,630,632,5,220,0,0,631,633, + 5,49,0,0,632,631,1,0,0,0,632,633,1,0,0,0,633,635,1,0,0,0,634,636, + 3,76,38,0,635,634,1,0,0,0,635,636,1,0,0,0,636,637,1,0,0,0,637,638, + 5,236,0,0,638,670,1,0,0,0,639,670,3,82,41,0,640,670,3,108,54,0,641, + 642,5,208,0,0,642,670,3,74,37,18,643,644,5,115,0,0,644,670,3,74, + 37,12,645,646,3,98,49,0,646,647,5,210,0,0,647,649,1,0,0,0,648,645, + 1,0,0,0,648,649,1,0,0,0,649,650,1,0,0,0,650,670,5,202,0,0,651,652, + 5,220,0,0,652,653,3,2,1,0,653,654,5,236,0,0,654,670,1,0,0,0,655, + 656,5,220,0,0,656,657,3,74,37,0,657,658,5,236,0,0,658,670,1,0,0, + 0,659,660,5,220,0,0,660,661,3,72,36,0,661,662,5,236,0,0,662,670, + 1,0,0,0,663,665,5,219,0,0,664,666,3,72,36,0,665,664,1,0,0,0,665, + 666,1,0,0,0,666,667,1,0,0,0,667,670,5,235,0,0,668,670,3,90,45,0, + 669,539,1,0,0,0,669,559,1,0,0,0,669,566,1,0,0,0,669,568,1,0,0,0, + 669,575,1,0,0,0,669,579,1,0,0,0,669,590,1,0,0,0,669,592,1,0,0,0, + 669,600,1,0,0,0,669,612,1,0,0,0,669,622,1,0,0,0,669,639,1,0,0,0, + 669,640,1,0,0,0,669,641,1,0,0,0,669,643,1,0,0,0,669,648,1,0,0,0, + 669,651,1,0,0,0,669,655,1,0,0,0,669,659,1,0,0,0,669,663,1,0,0,0, + 669,668,1,0,0,0,670,764,1,0,0,0,671,675,10,17,0,0,672,676,5,202, + 0,0,673,676,5,238,0,0,674,676,5,227,0,0,675,672,1,0,0,0,675,673, + 1,0,0,0,675,674,1,0,0,0,676,677,1,0,0,0,677,763,3,74,37,18,678,682, + 10,16,0,0,679,683,5,228,0,0,680,683,5,208,0,0,681,683,5,207,0,0, + 682,679,1,0,0,0,682,680,1,0,0,0,682,681,1,0,0,0,683,684,1,0,0,0, + 684,763,3,74,37,17,685,710,10,15,0,0,686,711,5,211,0,0,687,711,5, + 212,0,0,688,711,5,223,0,0,689,711,5,221,0,0,690,711,5,222,0,0,691, + 711,5,213,0,0,692,711,5,214,0,0,693,695,5,115,0,0,694,693,1,0,0, + 0,694,695,1,0,0,0,695,696,1,0,0,0,696,698,5,80,0,0,697,699,5,25, + 0,0,698,697,1,0,0,0,698,699,1,0,0,0,699,711,1,0,0,0,700,702,5,115, + 0,0,701,700,1,0,0,0,701,702,1,0,0,0,702,703,1,0,0,0,703,711,7,10, + 0,0,704,711,5,232,0,0,705,711,5,233,0,0,706,711,5,225,0,0,707,711, + 5,216,0,0,708,711,5,217,0,0,709,711,5,224,0,0,710,686,1,0,0,0,710, + 687,1,0,0,0,710,688,1,0,0,0,710,689,1,0,0,0,710,690,1,0,0,0,710, + 691,1,0,0,0,710,692,1,0,0,0,710,694,1,0,0,0,710,701,1,0,0,0,710, + 704,1,0,0,0,710,705,1,0,0,0,710,706,1,0,0,0,710,707,1,0,0,0,710, + 708,1,0,0,0,710,709,1,0,0,0,711,712,1,0,0,0,712,763,3,74,37,16,713, + 714,10,13,0,0,714,715,5,226,0,0,715,763,3,74,37,14,716,717,10,11, + 0,0,717,718,5,6,0,0,718,763,3,74,37,12,719,720,10,10,0,0,720,721, + 5,121,0,0,721,763,3,74,37,11,722,724,10,9,0,0,723,725,5,115,0,0, + 724,723,1,0,0,0,724,725,1,0,0,0,725,726,1,0,0,0,726,727,5,16,0,0, + 727,728,3,74,37,0,728,729,5,6,0,0,729,730,3,74,37,10,730,763,1,0, + 0,0,731,732,10,8,0,0,732,733,5,229,0,0,733,734,3,74,37,0,734,735, + 5,205,0,0,735,736,3,74,37,8,736,763,1,0,0,0,737,738,10,21,0,0,738, + 739,5,219,0,0,739,740,3,74,37,0,740,741,5,235,0,0,741,763,1,0,0, + 0,742,743,10,20,0,0,743,744,5,210,0,0,744,763,5,198,0,0,745,746, + 10,19,0,0,746,747,5,210,0,0,747,763,3,118,59,0,748,749,10,14,0,0, + 749,751,5,88,0,0,750,752,5,115,0,0,751,750,1,0,0,0,751,752,1,0,0, + 0,752,753,1,0,0,0,753,763,5,116,0,0,754,760,10,7,0,0,755,761,3,116, + 58,0,756,757,5,10,0,0,757,761,3,118,59,0,758,759,5,10,0,0,759,761, + 5,200,0,0,760,755,1,0,0,0,760,756,1,0,0,0,760,758,1,0,0,0,761,763, + 1,0,0,0,762,671,1,0,0,0,762,678,1,0,0,0,762,685,1,0,0,0,762,713, + 1,0,0,0,762,716,1,0,0,0,762,719,1,0,0,0,762,722,1,0,0,0,762,731, + 1,0,0,0,762,737,1,0,0,0,762,742,1,0,0,0,762,745,1,0,0,0,762,748, + 1,0,0,0,762,754,1,0,0,0,763,766,1,0,0,0,764,762,1,0,0,0,764,765, + 1,0,0,0,765,75,1,0,0,0,766,764,1,0,0,0,767,772,3,78,39,0,768,769, + 5,206,0,0,769,771,3,78,39,0,770,768,1,0,0,0,771,774,1,0,0,0,772, + 770,1,0,0,0,772,773,1,0,0,0,773,77,1,0,0,0,774,772,1,0,0,0,775,778, + 3,80,40,0,776,778,3,74,37,0,777,775,1,0,0,0,777,776,1,0,0,0,778, + 79,1,0,0,0,779,780,5,220,0,0,780,785,3,118,59,0,781,782,5,206,0, + 0,782,784,3,118,59,0,783,781,1,0,0,0,784,787,1,0,0,0,785,783,1,0, + 0,0,785,786,1,0,0,0,786,788,1,0,0,0,787,785,1,0,0,0,788,789,5,236, + 0,0,789,799,1,0,0,0,790,795,3,118,59,0,791,792,5,206,0,0,792,794, + 3,118,59,0,793,791,1,0,0,0,794,797,1,0,0,0,795,793,1,0,0,0,795,796, + 1,0,0,0,796,799,1,0,0,0,797,795,1,0,0,0,798,779,1,0,0,0,798,790, + 1,0,0,0,799,800,1,0,0,0,800,801,5,201,0,0,801,802,3,74,37,0,802, + 81,1,0,0,0,803,804,5,222,0,0,804,808,3,118,59,0,805,807,3,84,42, + 0,806,805,1,0,0,0,807,810,1,0,0,0,808,806,1,0,0,0,808,809,1,0,0, + 0,809,811,1,0,0,0,810,808,1,0,0,0,811,812,5,238,0,0,812,813,5,214, + 0,0,813,832,1,0,0,0,814,815,5,222,0,0,815,819,3,118,59,0,816,818, + 3,84,42,0,817,816,1,0,0,0,818,821,1,0,0,0,819,817,1,0,0,0,819,820, + 1,0,0,0,820,822,1,0,0,0,821,819,1,0,0,0,822,824,5,214,0,0,823,825, + 3,82,41,0,824,823,1,0,0,0,824,825,1,0,0,0,825,826,1,0,0,0,826,827, + 5,222,0,0,827,828,5,238,0,0,828,829,3,118,59,0,829,830,5,214,0,0, + 830,832,1,0,0,0,831,803,1,0,0,0,831,814,1,0,0,0,832,83,1,0,0,0,833, + 834,3,118,59,0,834,835,5,212,0,0,835,836,5,200,0,0,836,845,1,0,0, + 0,837,838,3,118,59,0,838,839,5,212,0,0,839,840,5,218,0,0,840,841, + 3,74,37,0,841,842,5,234,0,0,842,845,1,0,0,0,843,845,3,118,59,0,844, + 833,1,0,0,0,844,837,1,0,0,0,844,843,1,0,0,0,845,85,1,0,0,0,846,851, + 3,88,44,0,847,848,5,206,0,0,848,850,3,88,44,0,849,847,1,0,0,0,850, + 853,1,0,0,0,851,849,1,0,0,0,851,852,1,0,0,0,852,87,1,0,0,0,853,851, + 1,0,0,0,854,855,3,118,59,0,855,856,5,10,0,0,856,857,5,220,0,0,857, + 858,3,2,1,0,858,859,5,236,0,0,859,865,1,0,0,0,860,861,3,74,37,0, + 861,862,5,10,0,0,862,863,3,118,59,0,863,865,1,0,0,0,864,854,1,0, + 0,0,864,860,1,0,0,0,865,89,1,0,0,0,866,874,3,122,61,0,867,868,3, + 98,49,0,868,869,5,210,0,0,869,871,1,0,0,0,870,867,1,0,0,0,870,871, + 1,0,0,0,871,872,1,0,0,0,872,874,3,92,46,0,873,866,1,0,0,0,873,870, + 1,0,0,0,874,91,1,0,0,0,875,880,3,118,59,0,876,877,5,210,0,0,877, + 879,3,118,59,0,878,876,1,0,0,0,879,882,1,0,0,0,880,878,1,0,0,0,880, + 881,1,0,0,0,881,93,1,0,0,0,882,880,1,0,0,0,883,884,6,47,-1,0,884, + 893,3,98,49,0,885,893,3,96,48,0,886,887,5,220,0,0,887,888,3,2,1, + 0,888,889,5,236,0,0,889,893,1,0,0,0,890,893,3,82,41,0,891,893,3, + 122,61,0,892,883,1,0,0,0,892,885,1,0,0,0,892,886,1,0,0,0,892,890, + 1,0,0,0,892,891,1,0,0,0,893,902,1,0,0,0,894,898,10,3,0,0,895,899, + 3,116,58,0,896,897,5,10,0,0,897,899,3,118,59,0,898,895,1,0,0,0,898, + 896,1,0,0,0,899,901,1,0,0,0,900,894,1,0,0,0,901,904,1,0,0,0,902, + 900,1,0,0,0,902,903,1,0,0,0,903,95,1,0,0,0,904,902,1,0,0,0,905,906, + 3,118,59,0,906,908,5,220,0,0,907,909,3,100,50,0,908,907,1,0,0,0, + 908,909,1,0,0,0,909,910,1,0,0,0,910,911,5,236,0,0,911,97,1,0,0,0, + 912,913,3,102,51,0,913,914,5,210,0,0,914,916,1,0,0,0,915,912,1,0, + 0,0,915,916,1,0,0,0,916,917,1,0,0,0,917,918,3,118,59,0,918,99,1, + 0,0,0,919,924,3,74,37,0,920,921,5,206,0,0,921,923,3,74,37,0,922, + 920,1,0,0,0,923,926,1,0,0,0,924,922,1,0,0,0,924,925,1,0,0,0,925, + 101,1,0,0,0,926,924,1,0,0,0,927,928,3,118,59,0,928,103,1,0,0,0,929, + 938,5,196,0,0,930,931,5,210,0,0,931,938,7,11,0,0,932,933,5,198,0, + 0,933,935,5,210,0,0,934,936,7,11,0,0,935,934,1,0,0,0,935,936,1,0, + 0,0,936,938,1,0,0,0,937,929,1,0,0,0,937,930,1,0,0,0,937,932,1,0, + 0,0,938,105,1,0,0,0,939,941,7,12,0,0,940,939,1,0,0,0,940,941,1,0, + 0,0,941,948,1,0,0,0,942,949,3,104,52,0,943,949,5,197,0,0,944,949, + 5,198,0,0,945,949,5,199,0,0,946,949,5,82,0,0,947,949,5,113,0,0,948, + 942,1,0,0,0,948,943,1,0,0,0,948,944,1,0,0,0,948,945,1,0,0,0,948, + 946,1,0,0,0,948,947,1,0,0,0,949,107,1,0,0,0,950,954,3,106,53,0,951, + 954,5,200,0,0,952,954,5,116,0,0,953,950,1,0,0,0,953,951,1,0,0,0, + 953,952,1,0,0,0,954,109,1,0,0,0,955,956,7,13,0,0,956,111,1,0,0,0, + 957,958,7,14,0,0,958,113,1,0,0,0,959,960,7,15,0,0,960,115,1,0,0, + 0,961,964,5,195,0,0,962,964,3,114,57,0,963,961,1,0,0,0,963,962,1, + 0,0,0,964,117,1,0,0,0,965,969,5,195,0,0,966,969,3,110,55,0,967,969, + 3,112,56,0,968,965,1,0,0,0,968,966,1,0,0,0,968,967,1,0,0,0,969,119, + 1,0,0,0,970,971,5,200,0,0,971,972,5,212,0,0,972,973,3,106,53,0,973, + 121,1,0,0,0,974,975,5,218,0,0,975,976,3,118,59,0,976,977,5,234,0, + 0,977,123,1,0,0,0,120,127,137,146,149,153,156,160,163,166,169,172, + 176,180,183,186,189,193,196,205,211,232,249,266,272,278,289,291, + 302,305,311,319,325,327,331,336,339,342,346,350,353,355,358,362, + 366,369,371,373,378,389,395,402,407,411,415,421,423,430,438,441, + 444,463,477,493,505,517,525,529,536,542,551,555,586,603,615,625, + 628,632,635,648,665,669,675,682,694,698,701,710,724,751,760,762, + 764,772,777,785,795,798,808,819,824,831,844,851,864,870,873,880, + 892,898,902,908,915,924,935,937,940,948,953,963,968 ] class HogQLParser ( Parser ): @@ -516,79 +514,78 @@ class HogQLParser ( Parser ): RULE_select = 0 RULE_selectUnionStmt = 1 RULE_selectStmtWithParens = 2 - RULE_selectStmtWithPlaceholder = 3 - RULE_selectStmt = 4 - RULE_withClause = 5 - RULE_topClause = 6 - RULE_fromClause = 7 - RULE_arrayJoinClause = 8 - RULE_windowClause = 9 - RULE_prewhereClause = 10 - RULE_whereClause = 11 - RULE_groupByClause = 12 - RULE_havingClause = 13 - RULE_orderByClause = 14 - RULE_projectionOrderByClause = 15 - RULE_limitAndOffsetClause = 16 - RULE_offsetOnlyClause = 17 - RULE_settingsClause = 18 - RULE_joinExpr = 19 - RULE_joinOp = 20 - RULE_joinOpCross = 21 - RULE_joinConstraintClause = 22 - RULE_sampleClause = 23 - RULE_orderExprList = 24 - RULE_orderExpr = 25 - RULE_ratioExpr = 26 - RULE_settingExprList = 27 - RULE_settingExpr = 28 - RULE_windowExpr = 29 - RULE_winPartitionByClause = 30 - RULE_winOrderByClause = 31 - RULE_winFrameClause = 32 - RULE_winFrameExtend = 33 - RULE_winFrameBound = 34 - RULE_expr = 35 - RULE_columnTypeExpr = 36 - RULE_columnExprList = 37 - RULE_columnExpr = 38 - RULE_columnArgList = 39 - RULE_columnArgExpr = 40 - RULE_columnLambdaExpr = 41 - RULE_hogqlxTagElement = 42 - RULE_hogqlxTagAttribute = 43 - RULE_withExprList = 44 - RULE_withExpr = 45 - RULE_columnIdentifier = 46 - RULE_nestedIdentifier = 47 - RULE_tableExpr = 48 - RULE_tableFunctionExpr = 49 - RULE_tableIdentifier = 50 - RULE_tableArgList = 51 - RULE_databaseIdentifier = 52 - RULE_floatingLiteral = 53 - RULE_numberLiteral = 54 - RULE_literal = 55 - RULE_interval = 56 - RULE_keyword = 57 - RULE_keywordForAlias = 58 - RULE_alias = 59 - RULE_identifier = 60 - RULE_enumValue = 61 - RULE_placeholder = 62 + RULE_selectStmt = 3 + RULE_withClause = 4 + RULE_topClause = 5 + RULE_fromClause = 6 + RULE_arrayJoinClause = 7 + RULE_windowClause = 8 + RULE_prewhereClause = 9 + RULE_whereClause = 10 + RULE_groupByClause = 11 + RULE_havingClause = 12 + RULE_orderByClause = 13 + RULE_projectionOrderByClause = 14 + RULE_limitAndOffsetClause = 15 + RULE_offsetOnlyClause = 16 + RULE_settingsClause = 17 + RULE_joinExpr = 18 + RULE_joinOp = 19 + RULE_joinOpCross = 20 + RULE_joinConstraintClause = 21 + RULE_sampleClause = 22 + RULE_orderExprList = 23 + RULE_orderExpr = 24 + RULE_ratioExpr = 25 + RULE_settingExprList = 26 + RULE_settingExpr = 27 + RULE_windowExpr = 28 + RULE_winPartitionByClause = 29 + RULE_winOrderByClause = 30 + RULE_winFrameClause = 31 + RULE_winFrameExtend = 32 + RULE_winFrameBound = 33 + RULE_expr = 34 + RULE_columnTypeExpr = 35 + RULE_columnExprList = 36 + RULE_columnExpr = 37 + RULE_columnArgList = 38 + RULE_columnArgExpr = 39 + RULE_columnLambdaExpr = 40 + RULE_hogqlxTagElement = 41 + RULE_hogqlxTagAttribute = 42 + RULE_withExprList = 43 + RULE_withExpr = 44 + RULE_columnIdentifier = 45 + RULE_nestedIdentifier = 46 + RULE_tableExpr = 47 + RULE_tableFunctionExpr = 48 + RULE_tableIdentifier = 49 + RULE_tableArgList = 50 + RULE_databaseIdentifier = 51 + RULE_floatingLiteral = 52 + RULE_numberLiteral = 53 + RULE_literal = 54 + RULE_interval = 55 + RULE_keyword = 56 + RULE_keywordForAlias = 57 + RULE_alias = 58 + RULE_identifier = 59 + RULE_enumValue = 60 + RULE_placeholder = 61 ruleNames = [ "select", "selectUnionStmt", "selectStmtWithParens", - "selectStmtWithPlaceholder", "selectStmt", "withClause", - "topClause", "fromClause", "arrayJoinClause", "windowClause", - "prewhereClause", "whereClause", "groupByClause", "havingClause", - "orderByClause", "projectionOrderByClause", "limitAndOffsetClause", - "offsetOnlyClause", "settingsClause", "joinExpr", "joinOp", - "joinOpCross", "joinConstraintClause", "sampleClause", - "orderExprList", "orderExpr", "ratioExpr", "settingExprList", - "settingExpr", "windowExpr", "winPartitionByClause", - "winOrderByClause", "winFrameClause", "winFrameExtend", - "winFrameBound", "expr", "columnTypeExpr", "columnExprList", - "columnExpr", "columnArgList", "columnArgExpr", "columnLambdaExpr", + "selectStmt", "withClause", "topClause", "fromClause", + "arrayJoinClause", "windowClause", "prewhereClause", + "whereClause", "groupByClause", "havingClause", "orderByClause", + "projectionOrderByClause", "limitAndOffsetClause", "offsetOnlyClause", + "settingsClause", "joinExpr", "joinOp", "joinOpCross", + "joinConstraintClause", "sampleClause", "orderExprList", + "orderExpr", "ratioExpr", "settingExprList", "settingExpr", + "windowExpr", "winPartitionByClause", "winOrderByClause", + "winFrameClause", "winFrameExtend", "winFrameBound", + "expr", "columnTypeExpr", "columnExprList", "columnExpr", + "columnArgList", "columnArgExpr", "columnLambdaExpr", "hogqlxTagElement", "hogqlxTagAttribute", "withExprList", "withExpr", "columnIdentifier", "nestedIdentifier", "tableExpr", "tableFunctionExpr", "tableIdentifier", "tableArgList", @@ -889,26 +886,26 @@ def select(self): self.enterRule(localctx, 0, self.RULE_select) try: self.enterOuterAlt(localctx, 1) - self.state = 129 + self.state = 127 self._errHandler.sync(self) la_ = self._interp.adaptivePredict(self._input,0,self._ctx) if la_ == 1: - self.state = 126 + self.state = 124 self.selectUnionStmt() pass elif la_ == 2: - self.state = 127 + self.state = 125 self.selectStmt() pass elif la_ == 3: - self.state = 128 + self.state = 126 self.hogqlxTagElement() pass - self.state = 131 + self.state = 129 self.match(HogQLParser.EOF) except RecognitionException as re: localctx.exception = re @@ -964,19 +961,19 @@ def selectUnionStmt(self): self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 133 + self.state = 131 self.selectStmtWithParens() - self.state = 139 + self.state = 137 self._errHandler.sync(self) _la = self._input.LA(1) while _la==176: - self.state = 134 + self.state = 132 self.match(HogQLParser.UNION) - self.state = 135 + self.state = 133 self.match(HogQLParser.ALL) - self.state = 136 + self.state = 134 self.selectStmtWithParens() - self.state = 141 + self.state = 139 self._errHandler.sync(self) _la = self._input.LA(1) @@ -996,8 +993,8 @@ def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): super().__init__(parent, invokingState) self.parser = parser - def selectStmtWithPlaceholder(self): - return self.getTypedRuleContext(HogQLParser.SelectStmtWithPlaceholderContext,0) + def selectStmt(self): + return self.getTypedRuleContext(HogQLParser.SelectStmtContext,0) def LPAREN(self): @@ -1010,6 +1007,10 @@ def selectUnionStmt(self): def RPAREN(self): return self.getToken(HogQLParser.RPAREN, 0) + def placeholder(self): + return self.getTypedRuleContext(HogQLParser.PlaceholderContext,0) + + def getRuleIndex(self): return HogQLParser.RULE_selectStmtWithParens @@ -1027,78 +1028,26 @@ def selectStmtWithParens(self): localctx = HogQLParser.SelectStmtWithParensContext(self, self._ctx, self.state) self.enterRule(localctx, 4, self.RULE_selectStmtWithParens) try: - self.state = 147 + self.state = 146 self._errHandler.sync(self) token = self._input.LA(1) - if token in [146, 189, 218]: + if token in [146, 189]: self.enterOuterAlt(localctx, 1) - self.state = 142 - self.selectStmtWithPlaceholder() + self.state = 140 + self.selectStmt() pass elif token in [220]: self.enterOuterAlt(localctx, 2) - self.state = 143 + self.state = 141 self.match(HogQLParser.LPAREN) - self.state = 144 + self.state = 142 self.selectUnionStmt() - self.state = 145 + self.state = 143 self.match(HogQLParser.RPAREN) pass - else: - raise NoViableAltException(self) - - except RecognitionException as re: - localctx.exception = re - self._errHandler.reportError(self, re) - self._errHandler.recover(self, re) - finally: - self.exitRule() - return localctx - - - class SelectStmtWithPlaceholderContext(ParserRuleContext): - __slots__ = 'parser' - - def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1): - super().__init__(parent, invokingState) - self.parser = parser - - def selectStmt(self): - return self.getTypedRuleContext(HogQLParser.SelectStmtContext,0) - - - def placeholder(self): - return self.getTypedRuleContext(HogQLParser.PlaceholderContext,0) - - - def getRuleIndex(self): - return HogQLParser.RULE_selectStmtWithPlaceholder - - def accept(self, visitor:ParseTreeVisitor): - if hasattr( visitor, "visitSelectStmtWithPlaceholder" ): - return visitor.visitSelectStmtWithPlaceholder(self) - else: - return visitor.visitChildren(self) - - - - - def selectStmtWithPlaceholder(self): - - localctx = HogQLParser.SelectStmtWithPlaceholderContext(self, self._ctx, self.state) - self.enterRule(localctx, 6, self.RULE_selectStmtWithPlaceholder) - try: - self.state = 151 - self._errHandler.sync(self) - token = self._input.LA(1) - if token in [146, 189]: - self.enterOuterAlt(localctx, 1) - self.state = 149 - self.selectStmt() - pass elif token in [218]: - self.enterOuterAlt(localctx, 2) - self.state = 150 + self.enterOuterAlt(localctx, 3) + self.state = 145 self.placeholder() pass else: @@ -1216,85 +1165,85 @@ def accept(self, visitor:ParseTreeVisitor): def selectStmt(self): localctx = HogQLParser.SelectStmtContext(self, self._ctx, self.state) - self.enterRule(localctx, 8, self.RULE_selectStmt) + self.enterRule(localctx, 6, self.RULE_selectStmt) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 154 + self.state = 149 self._errHandler.sync(self) _la = self._input.LA(1) if _la==189: - self.state = 153 + self.state = 148 localctx.with_ = self.withClause() - self.state = 156 + self.state = 151 self.match(HogQLParser.SELECT) - self.state = 158 + self.state = 153 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,5,self._ctx) + la_ = self._interp.adaptivePredict(self._input,4,self._ctx) if la_ == 1: - self.state = 157 + self.state = 152 self.match(HogQLParser.DISTINCT) - self.state = 161 + self.state = 156 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,6,self._ctx) + la_ = self._interp.adaptivePredict(self._input,5,self._ctx) if la_ == 1: - self.state = 160 + self.state = 155 self.topClause() - self.state = 163 + self.state = 158 localctx.columns = self.columnExprList() - self.state = 165 + self.state = 160 self._errHandler.sync(self) _la = self._input.LA(1) if _la==68: - self.state = 164 + self.state = 159 localctx.from_ = self.fromClause() - self.state = 168 + self.state = 163 self._errHandler.sync(self) _la = self._input.LA(1) if _la==9 or _la==84 or _la==96: - self.state = 167 + self.state = 162 self.arrayJoinClause() - self.state = 171 + self.state = 166 self._errHandler.sync(self) _la = self._input.LA(1) if _la==129: - self.state = 170 + self.state = 165 self.prewhereClause() - self.state = 174 + self.state = 169 self._errHandler.sync(self) _la = self._input.LA(1) if _la==187: - self.state = 173 + self.state = 168 localctx.where = self.whereClause() - self.state = 177 + self.state = 172 self._errHandler.sync(self) _la = self._input.LA(1) if _la==73: - self.state = 176 + self.state = 171 self.groupByClause() - self.state = 181 + self.state = 176 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,12,self._ctx) + la_ = self._interp.adaptivePredict(self._input,11,self._ctx) if la_ == 1: - self.state = 179 + self.state = 174 self.match(HogQLParser.WITH) - self.state = 180 + self.state = 175 _la = self._input.LA(1) if not(_la==32 or _la==141): self._errHandler.recoverInline(self) @@ -1303,60 +1252,60 @@ def selectStmt(self): self.consume() - self.state = 185 + self.state = 180 self._errHandler.sync(self) _la = self._input.LA(1) if _la==189: - self.state = 183 + self.state = 178 self.match(HogQLParser.WITH) - self.state = 184 + self.state = 179 self.match(HogQLParser.TOTALS) - self.state = 188 + self.state = 183 self._errHandler.sync(self) _la = self._input.LA(1) if _la==74: - self.state = 187 + self.state = 182 self.havingClause() - self.state = 191 + self.state = 186 self._errHandler.sync(self) _la = self._input.LA(1) if _la==188: - self.state = 190 + self.state = 185 self.windowClause() - self.state = 194 + self.state = 189 self._errHandler.sync(self) _la = self._input.LA(1) if _la==122: - self.state = 193 + self.state = 188 self.orderByClause() - self.state = 198 + self.state = 193 self._errHandler.sync(self) token = self._input.LA(1) if token in [99]: - self.state = 196 + self.state = 191 self.limitAndOffsetClause() pass elif token in [118]: - self.state = 197 + self.state = 192 self.offsetOnlyClause() pass elif token in [-1, 150, 176, 236]: pass else: pass - self.state = 201 + self.state = 196 self._errHandler.sync(self) _la = self._input.LA(1) if _la==150: - self.state = 200 + self.state = 195 self.settingsClause() @@ -1398,12 +1347,12 @@ def accept(self, visitor:ParseTreeVisitor): def withClause(self): localctx = HogQLParser.WithClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 10, self.RULE_withClause) + self.enterRule(localctx, 8, self.RULE_withClause) try: self.enterOuterAlt(localctx, 1) - self.state = 203 + self.state = 198 self.match(HogQLParser.WITH) - self.state = 204 + self.state = 199 self.withExprList() except RecognitionException as re: localctx.exception = re @@ -1448,20 +1397,20 @@ def accept(self, visitor:ParseTreeVisitor): def topClause(self): localctx = HogQLParser.TopClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 12, self.RULE_topClause) + self.enterRule(localctx, 10, self.RULE_topClause) try: self.enterOuterAlt(localctx, 1) - self.state = 206 + self.state = 201 self.match(HogQLParser.TOP) - self.state = 207 + self.state = 202 self.match(HogQLParser.DECIMAL_LITERAL) - self.state = 210 + self.state = 205 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,19,self._ctx) + la_ = self._interp.adaptivePredict(self._input,18,self._ctx) if la_ == 1: - self.state = 208 + self.state = 203 self.match(HogQLParser.WITH) - self.state = 209 + self.state = 204 self.match(HogQLParser.TIES) @@ -1503,12 +1452,12 @@ def accept(self, visitor:ParseTreeVisitor): def fromClause(self): localctx = HogQLParser.FromClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 14, self.RULE_fromClause) + self.enterRule(localctx, 12, self.RULE_fromClause) try: self.enterOuterAlt(localctx, 1) - self.state = 212 + self.state = 207 self.match(HogQLParser.FROM) - self.state = 213 + self.state = 208 self.joinExpr(0) except RecognitionException as re: localctx.exception = re @@ -1557,15 +1506,15 @@ def accept(self, visitor:ParseTreeVisitor): def arrayJoinClause(self): localctx = HogQLParser.ArrayJoinClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 16, self.RULE_arrayJoinClause) + self.enterRule(localctx, 14, self.RULE_arrayJoinClause) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 216 + self.state = 211 self._errHandler.sync(self) _la = self._input.LA(1) if _la==84 or _la==96: - self.state = 215 + self.state = 210 _la = self._input.LA(1) if not(_la==84 or _la==96): self._errHandler.recoverInline(self) @@ -1574,11 +1523,11 @@ def arrayJoinClause(self): self.consume() - self.state = 218 + self.state = 213 self.match(HogQLParser.ARRAY) - self.state = 219 + self.state = 214 self.match(HogQLParser.JOIN) - self.state = 220 + self.state = 215 self.columnExprList() except RecognitionException as re: localctx.exception = re @@ -1652,39 +1601,39 @@ def accept(self, visitor:ParseTreeVisitor): def windowClause(self): localctx = HogQLParser.WindowClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 18, self.RULE_windowClause) + self.enterRule(localctx, 16, self.RULE_windowClause) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 222 + self.state = 217 self.match(HogQLParser.WINDOW) - self.state = 223 + self.state = 218 self.identifier() - self.state = 224 + self.state = 219 self.match(HogQLParser.AS) - self.state = 225 + self.state = 220 self.match(HogQLParser.LPAREN) - self.state = 226 + self.state = 221 self.windowExpr() - self.state = 227 + self.state = 222 self.match(HogQLParser.RPAREN) - self.state = 237 + self.state = 232 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 228 + self.state = 223 self.match(HogQLParser.COMMA) - self.state = 229 + self.state = 224 self.identifier() - self.state = 230 + self.state = 225 self.match(HogQLParser.AS) - self.state = 231 + self.state = 226 self.match(HogQLParser.LPAREN) - self.state = 232 + self.state = 227 self.windowExpr() - self.state = 233 + self.state = 228 self.match(HogQLParser.RPAREN) - self.state = 239 + self.state = 234 self._errHandler.sync(self) _la = self._input.LA(1) @@ -1726,12 +1675,12 @@ def accept(self, visitor:ParseTreeVisitor): def prewhereClause(self): localctx = HogQLParser.PrewhereClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 20, self.RULE_prewhereClause) + self.enterRule(localctx, 18, self.RULE_prewhereClause) try: self.enterOuterAlt(localctx, 1) - self.state = 240 + self.state = 235 self.match(HogQLParser.PREWHERE) - self.state = 241 + self.state = 236 self.columnExpr(0) except RecognitionException as re: localctx.exception = re @@ -1771,12 +1720,12 @@ def accept(self, visitor:ParseTreeVisitor): def whereClause(self): localctx = HogQLParser.WhereClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 22, self.RULE_whereClause) + self.enterRule(localctx, 20, self.RULE_whereClause) try: self.enterOuterAlt(localctx, 1) - self.state = 243 + self.state = 238 self.match(HogQLParser.WHERE) - self.state = 244 + self.state = 239 self.columnExpr(0) except RecognitionException as re: localctx.exception = re @@ -1831,35 +1780,35 @@ def accept(self, visitor:ParseTreeVisitor): def groupByClause(self): localctx = HogQLParser.GroupByClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 24, self.RULE_groupByClause) + self.enterRule(localctx, 22, self.RULE_groupByClause) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 246 + self.state = 241 self.match(HogQLParser.GROUP) - self.state = 247 + self.state = 242 self.match(HogQLParser.BY) - self.state = 254 + self.state = 249 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,22,self._ctx) + la_ = self._interp.adaptivePredict(self._input,21,self._ctx) if la_ == 1: - self.state = 248 + self.state = 243 _la = self._input.LA(1) if not(_la==32 or _la==141): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 249 + self.state = 244 self.match(HogQLParser.LPAREN) - self.state = 250 + self.state = 245 self.columnExprList() - self.state = 251 + self.state = 246 self.match(HogQLParser.RPAREN) pass elif la_ == 2: - self.state = 253 + self.state = 248 self.columnExprList() pass @@ -1902,12 +1851,12 @@ def accept(self, visitor:ParseTreeVisitor): def havingClause(self): localctx = HogQLParser.HavingClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 26, self.RULE_havingClause) + self.enterRule(localctx, 24, self.RULE_havingClause) try: self.enterOuterAlt(localctx, 1) - self.state = 256 + self.state = 251 self.match(HogQLParser.HAVING) - self.state = 257 + self.state = 252 self.columnExpr(0) except RecognitionException as re: localctx.exception = re @@ -1950,14 +1899,14 @@ def accept(self, visitor:ParseTreeVisitor): def orderByClause(self): localctx = HogQLParser.OrderByClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 28, self.RULE_orderByClause) + self.enterRule(localctx, 26, self.RULE_orderByClause) try: self.enterOuterAlt(localctx, 1) - self.state = 259 + self.state = 254 self.match(HogQLParser.ORDER) - self.state = 260 + self.state = 255 self.match(HogQLParser.BY) - self.state = 261 + self.state = 256 self.orderExprList() except RecognitionException as re: localctx.exception = re @@ -2000,14 +1949,14 @@ def accept(self, visitor:ParseTreeVisitor): def projectionOrderByClause(self): localctx = HogQLParser.ProjectionOrderByClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 30, self.RULE_projectionOrderByClause) + self.enterRule(localctx, 28, self.RULE_projectionOrderByClause) try: self.enterOuterAlt(localctx, 1) - self.state = 263 + self.state = 258 self.match(HogQLParser.ORDER) - self.state = 264 + self.state = 259 self.match(HogQLParser.BY) - self.state = 265 + self.state = 260 self.columnExprList() except RecognitionException as re: localctx.exception = re @@ -2069,41 +2018,41 @@ def accept(self, visitor:ParseTreeVisitor): def limitAndOffsetClause(self): localctx = HogQLParser.LimitAndOffsetClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 32, self.RULE_limitAndOffsetClause) + self.enterRule(localctx, 30, self.RULE_limitAndOffsetClause) self._la = 0 # Token type try: - self.state = 296 + self.state = 291 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,27,self._ctx) + la_ = self._interp.adaptivePredict(self._input,26,self._ctx) if la_ == 1: self.enterOuterAlt(localctx, 1) - self.state = 267 + self.state = 262 self.match(HogQLParser.LIMIT) - self.state = 268 + self.state = 263 self.columnExpr(0) - self.state = 271 + self.state = 266 self._errHandler.sync(self) _la = self._input.LA(1) if _la==206: - self.state = 269 + self.state = 264 self.match(HogQLParser.COMMA) - self.state = 270 + self.state = 265 self.columnExpr(0) - self.state = 277 + self.state = 272 self._errHandler.sync(self) token = self._input.LA(1) if token in [189]: - self.state = 273 + self.state = 268 self.match(HogQLParser.WITH) - self.state = 274 + self.state = 269 self.match(HogQLParser.TIES) pass elif token in [18]: - self.state = 275 + self.state = 270 self.match(HogQLParser.BY) - self.state = 276 + self.state = 271 self.columnExprList() pass elif token in [-1, 150, 176, 236]: @@ -2114,43 +2063,43 @@ def limitAndOffsetClause(self): elif la_ == 2: self.enterOuterAlt(localctx, 2) - self.state = 279 + self.state = 274 self.match(HogQLParser.LIMIT) - self.state = 280 + self.state = 275 self.columnExpr(0) - self.state = 283 + self.state = 278 self._errHandler.sync(self) _la = self._input.LA(1) if _la==189: - self.state = 281 + self.state = 276 self.match(HogQLParser.WITH) - self.state = 282 + self.state = 277 self.match(HogQLParser.TIES) - self.state = 285 + self.state = 280 self.match(HogQLParser.OFFSET) - self.state = 286 + self.state = 281 self.columnExpr(0) pass elif la_ == 3: self.enterOuterAlt(localctx, 3) - self.state = 288 + self.state = 283 self.match(HogQLParser.LIMIT) - self.state = 289 + self.state = 284 self.columnExpr(0) - self.state = 290 + self.state = 285 self.match(HogQLParser.OFFSET) - self.state = 291 + self.state = 286 self.columnExpr(0) - self.state = 294 + self.state = 289 self._errHandler.sync(self) _la = self._input.LA(1) if _la==18: - self.state = 292 + self.state = 287 self.match(HogQLParser.BY) - self.state = 293 + self.state = 288 self.columnExprList() @@ -2195,12 +2144,12 @@ def accept(self, visitor:ParseTreeVisitor): def offsetOnlyClause(self): localctx = HogQLParser.OffsetOnlyClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 34, self.RULE_offsetOnlyClause) + self.enterRule(localctx, 32, self.RULE_offsetOnlyClause) try: self.enterOuterAlt(localctx, 1) - self.state = 298 + self.state = 293 self.match(HogQLParser.OFFSET) - self.state = 299 + self.state = 294 self.columnExpr(0) except RecognitionException as re: localctx.exception = re @@ -2240,12 +2189,12 @@ def accept(self, visitor:ParseTreeVisitor): def settingsClause(self): localctx = HogQLParser.SettingsClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 36, self.RULE_settingsClause) + self.enterRule(localctx, 34, self.RULE_settingsClause) try: self.enterOuterAlt(localctx, 1) - self.state = 301 + self.state = 296 self.match(HogQLParser.SETTINGS) - self.state = 302 + self.state = 297 self.settingExprList() except RecognitionException as re: localctx.exception = re @@ -2372,34 +2321,34 @@ def joinExpr(self, _p:int=0): _parentState = self.state localctx = HogQLParser.JoinExprContext(self, self._ctx, _parentState) _prevctx = localctx - _startState = 38 - self.enterRecursionRule(localctx, 38, self.RULE_joinExpr, _p) + _startState = 36 + self.enterRecursionRule(localctx, 36, self.RULE_joinExpr, _p) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 316 + self.state = 311 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,30,self._ctx) + la_ = self._interp.adaptivePredict(self._input,29,self._ctx) if la_ == 1: localctx = HogQLParser.JoinExprTableContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 305 + self.state = 300 self.tableExpr(0) - self.state = 307 + self.state = 302 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,28,self._ctx) + la_ = self._interp.adaptivePredict(self._input,27,self._ctx) if la_ == 1: - self.state = 306 + self.state = 301 self.match(HogQLParser.FINAL) - self.state = 310 + self.state = 305 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,29,self._ctx) + la_ = self._interp.adaptivePredict(self._input,28,self._ctx) if la_ == 1: - self.state = 309 + self.state = 304 self.sampleClause() @@ -2409,67 +2358,67 @@ def joinExpr(self, _p:int=0): localctx = HogQLParser.JoinExprParensContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 312 + self.state = 307 self.match(HogQLParser.LPAREN) - self.state = 313 + self.state = 308 self.joinExpr(0) - self.state = 314 + self.state = 309 self.match(HogQLParser.RPAREN) pass self._ctx.stop = self._input.LT(-1) - self.state = 332 + self.state = 327 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,33,self._ctx) + _alt = self._interp.adaptivePredict(self._input,32,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: if self._parseListeners is not None: self.triggerExitRuleEvent() _prevctx = localctx - self.state = 330 + self.state = 325 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,32,self._ctx) + la_ = self._interp.adaptivePredict(self._input,31,self._ctx) if la_ == 1: localctx = HogQLParser.JoinExprCrossOpContext(self, HogQLParser.JoinExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_joinExpr) - self.state = 318 + self.state = 313 if not self.precpred(self._ctx, 3): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 3)") - self.state = 319 + self.state = 314 self.joinOpCross() - self.state = 320 + self.state = 315 self.joinExpr(4) pass elif la_ == 2: localctx = HogQLParser.JoinExprOpContext(self, HogQLParser.JoinExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_joinExpr) - self.state = 322 + self.state = 317 if not self.precpred(self._ctx, 4): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 4)") - self.state = 324 + self.state = 319 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & 4496) != 0) or ((((_la - 69)) & ~0x3f) == 0 and ((1 << (_la - 69)) & 134250497) != 0) or _la==140 or _la==147: - self.state = 323 + self.state = 318 self.joinOp() - self.state = 326 + self.state = 321 self.match(HogQLParser.JOIN) - self.state = 327 + self.state = 322 self.joinExpr(0) - self.state = 328 + self.state = 323 self.joinConstraintClause() pass - self.state = 334 + self.state = 329 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,33,self._ctx) + _alt = self._interp.adaptivePredict(self._input,32,self._ctx) except RecognitionException as re: localctx.exception = re @@ -2575,24 +2524,24 @@ def accept(self, visitor:ParseTreeVisitor): def joinOp(self): localctx = HogQLParser.JoinOpContext(self, self._ctx, self.state) - self.enterRule(localctx, 40, self.RULE_joinOp) + self.enterRule(localctx, 38, self.RULE_joinOp) self._la = 0 # Token type try: - self.state = 378 + self.state = 373 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,47,self._ctx) + la_ = self._interp.adaptivePredict(self._input,46,self._ctx) if la_ == 1: localctx = HogQLParser.JoinOpInnerContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 344 + self.state = 339 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,36,self._ctx) + la_ = self._interp.adaptivePredict(self._input,35,self._ctx) if la_ == 1: - self.state = 336 + self.state = 331 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & 4368) != 0): - self.state = 335 + self.state = 330 _la = self._input.LA(1) if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 4368) != 0)): self._errHandler.recoverInline(self) @@ -2601,18 +2550,18 @@ def joinOp(self): self.consume() - self.state = 338 + self.state = 333 self.match(HogQLParser.INNER) pass elif la_ == 2: - self.state = 339 + self.state = 334 self.match(HogQLParser.INNER) - self.state = 341 + self.state = 336 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & 4368) != 0): - self.state = 340 + self.state = 335 _la = self._input.LA(1) if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 4368) != 0)): self._errHandler.recoverInline(self) @@ -2624,7 +2573,7 @@ def joinOp(self): pass elif la_ == 3: - self.state = 343 + self.state = 338 _la = self._input.LA(1) if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 4368) != 0)): self._errHandler.recoverInline(self) @@ -2639,15 +2588,15 @@ def joinOp(self): elif la_ == 2: localctx = HogQLParser.JoinOpLeftRightContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 360 + self.state = 355 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,41,self._ctx) + la_ = self._interp.adaptivePredict(self._input,40,self._ctx) if la_ == 1: - self.state = 347 + self.state = 342 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & 4496) != 0) or _la==147: - self.state = 346 + self.state = 341 _la = self._input.LA(1) if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 4496) != 0) or _la==147): self._errHandler.recoverInline(self) @@ -2656,44 +2605,44 @@ def joinOp(self): self.consume() - self.state = 349 + self.state = 344 _la = self._input.LA(1) if not(_la==96 or _la==140): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 351 + self.state = 346 self._errHandler.sync(self) _la = self._input.LA(1) if _la==123: - self.state = 350 + self.state = 345 self.match(HogQLParser.OUTER) pass elif la_ == 2: - self.state = 353 + self.state = 348 _la = self._input.LA(1) if not(_la==96 or _la==140): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 355 + self.state = 350 self._errHandler.sync(self) _la = self._input.LA(1) if _la==123: - self.state = 354 + self.state = 349 self.match(HogQLParser.OUTER) - self.state = 358 + self.state = 353 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & 4496) != 0) or _la==147: - self.state = 357 + self.state = 352 _la = self._input.LA(1) if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 4496) != 0) or _la==147): self._errHandler.recoverInline(self) @@ -2710,15 +2659,15 @@ def joinOp(self): elif la_ == 3: localctx = HogQLParser.JoinOpFullContext(self, localctx) self.enterOuterAlt(localctx, 3) - self.state = 376 + self.state = 371 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,46,self._ctx) + la_ = self._interp.adaptivePredict(self._input,45,self._ctx) if la_ == 1: - self.state = 363 + self.state = 358 self._errHandler.sync(self) _la = self._input.LA(1) if _la==4 or _la==8: - self.state = 362 + self.state = 357 _la = self._input.LA(1) if not(_la==4 or _la==8): self._errHandler.recoverInline(self) @@ -2727,34 +2676,34 @@ def joinOp(self): self.consume() - self.state = 365 + self.state = 360 self.match(HogQLParser.FULL) - self.state = 367 + self.state = 362 self._errHandler.sync(self) _la = self._input.LA(1) if _la==123: - self.state = 366 + self.state = 361 self.match(HogQLParser.OUTER) pass elif la_ == 2: - self.state = 369 + self.state = 364 self.match(HogQLParser.FULL) - self.state = 371 + self.state = 366 self._errHandler.sync(self) _la = self._input.LA(1) if _la==123: - self.state = 370 + self.state = 365 self.match(HogQLParser.OUTER) - self.state = 374 + self.state = 369 self._errHandler.sync(self) _la = self._input.LA(1) if _la==4 or _la==8: - self.state = 373 + self.state = 368 _la = self._input.LA(1) if not(_la==4 or _la==8): self._errHandler.recoverInline(self) @@ -2809,21 +2758,21 @@ def accept(self, visitor:ParseTreeVisitor): def joinOpCross(self): localctx = HogQLParser.JoinOpCrossContext(self, self._ctx, self.state) - self.enterRule(localctx, 42, self.RULE_joinOpCross) + self.enterRule(localctx, 40, self.RULE_joinOpCross) try: - self.state = 383 + self.state = 378 self._errHandler.sync(self) token = self._input.LA(1) if token in [31]: self.enterOuterAlt(localctx, 1) - self.state = 380 + self.state = 375 self.match(HogQLParser.CROSS) - self.state = 381 + self.state = 376 self.match(HogQLParser.JOIN) pass elif token in [206]: self.enterOuterAlt(localctx, 2) - self.state = 382 + self.state = 377 self.match(HogQLParser.COMMA) pass else: @@ -2876,36 +2825,36 @@ def accept(self, visitor:ParseTreeVisitor): def joinConstraintClause(self): localctx = HogQLParser.JoinConstraintClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 44, self.RULE_joinConstraintClause) + self.enterRule(localctx, 42, self.RULE_joinConstraintClause) try: - self.state = 394 + self.state = 389 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,49,self._ctx) + la_ = self._interp.adaptivePredict(self._input,48,self._ctx) if la_ == 1: self.enterOuterAlt(localctx, 1) - self.state = 385 + self.state = 380 self.match(HogQLParser.ON) - self.state = 386 + self.state = 381 self.columnExprList() pass elif la_ == 2: self.enterOuterAlt(localctx, 2) - self.state = 387 + self.state = 382 self.match(HogQLParser.USING) - self.state = 388 + self.state = 383 self.match(HogQLParser.LPAREN) - self.state = 389 + self.state = 384 self.columnExprList() - self.state = 390 + self.state = 385 self.match(HogQLParser.RPAREN) pass elif la_ == 3: self.enterOuterAlt(localctx, 3) - self.state = 392 + self.state = 387 self.match(HogQLParser.USING) - self.state = 393 + self.state = 388 self.columnExprList() pass @@ -2954,20 +2903,20 @@ def accept(self, visitor:ParseTreeVisitor): def sampleClause(self): localctx = HogQLParser.SampleClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 46, self.RULE_sampleClause) + self.enterRule(localctx, 44, self.RULE_sampleClause) try: self.enterOuterAlt(localctx, 1) - self.state = 396 + self.state = 391 self.match(HogQLParser.SAMPLE) - self.state = 397 + self.state = 392 self.ratioExpr() - self.state = 400 + self.state = 395 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,50,self._ctx) + la_ = self._interp.adaptivePredict(self._input,49,self._ctx) if la_ == 1: - self.state = 398 + self.state = 393 self.match(HogQLParser.OFFSET) - self.state = 399 + self.state = 394 self.ratioExpr() @@ -3015,21 +2964,21 @@ def accept(self, visitor:ParseTreeVisitor): def orderExprList(self): localctx = HogQLParser.OrderExprListContext(self, self._ctx, self.state) - self.enterRule(localctx, 48, self.RULE_orderExprList) + self.enterRule(localctx, 46, self.RULE_orderExprList) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 402 + self.state = 397 self.orderExpr() - self.state = 407 + self.state = 402 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 403 + self.state = 398 self.match(HogQLParser.COMMA) - self.state = 404 + self.state = 399 self.orderExpr() - self.state = 409 + self.state = 404 self._errHandler.sync(self) _la = self._input.LA(1) @@ -3092,17 +3041,17 @@ def accept(self, visitor:ParseTreeVisitor): def orderExpr(self): localctx = HogQLParser.OrderExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 50, self.RULE_orderExpr) + self.enterRule(localctx, 48, self.RULE_orderExpr) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 410 + self.state = 405 self.columnExpr(0) - self.state = 412 + self.state = 407 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & 13194139535360) != 0): - self.state = 411 + self.state = 406 _la = self._input.LA(1) if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 13194139535360) != 0)): self._errHandler.recoverInline(self) @@ -3111,13 +3060,13 @@ def orderExpr(self): self.consume() - self.state = 416 + self.state = 411 self._errHandler.sync(self) _la = self._input.LA(1) if _la==117: - self.state = 414 + self.state = 409 self.match(HogQLParser.NULLS) - self.state = 415 + self.state = 410 _la = self._input.LA(1) if not(_la==62 or _la==93): self._errHandler.recoverInline(self) @@ -3126,13 +3075,13 @@ def orderExpr(self): self.consume() - self.state = 420 + self.state = 415 self._errHandler.sync(self) _la = self._input.LA(1) if _la==26: - self.state = 418 + self.state = 413 self.match(HogQLParser.COLLATE) - self.state = 419 + self.state = 414 self.match(HogQLParser.STRING_LITERAL) @@ -3181,27 +3130,27 @@ def accept(self, visitor:ParseTreeVisitor): def ratioExpr(self): localctx = HogQLParser.RatioExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 52, self.RULE_ratioExpr) + self.enterRule(localctx, 50, self.RULE_ratioExpr) try: - self.state = 428 + self.state = 423 self._errHandler.sync(self) token = self._input.LA(1) if token in [218]: self.enterOuterAlt(localctx, 1) - self.state = 422 + self.state = 417 self.placeholder() pass elif token in [82, 113, 196, 197, 198, 199, 208, 210, 228]: self.enterOuterAlt(localctx, 2) - self.state = 423 + self.state = 418 self.numberLiteral() - self.state = 426 + self.state = 421 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,55,self._ctx) + la_ = self._interp.adaptivePredict(self._input,54,self._ctx) if la_ == 1: - self.state = 424 + self.state = 419 self.match(HogQLParser.SLASH) - self.state = 425 + self.state = 420 self.numberLiteral() @@ -3253,21 +3202,21 @@ def accept(self, visitor:ParseTreeVisitor): def settingExprList(self): localctx = HogQLParser.SettingExprListContext(self, self._ctx, self.state) - self.enterRule(localctx, 54, self.RULE_settingExprList) + self.enterRule(localctx, 52, self.RULE_settingExprList) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 430 + self.state = 425 self.settingExpr() - self.state = 435 + self.state = 430 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 431 + self.state = 426 self.match(HogQLParser.COMMA) - self.state = 432 + self.state = 427 self.settingExpr() - self.state = 437 + self.state = 432 self._errHandler.sync(self) _la = self._input.LA(1) @@ -3313,14 +3262,14 @@ def accept(self, visitor:ParseTreeVisitor): def settingExpr(self): localctx = HogQLParser.SettingExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 56, self.RULE_settingExpr) + self.enterRule(localctx, 54, self.RULE_settingExpr) try: self.enterOuterAlt(localctx, 1) - self.state = 438 + self.state = 433 self.identifier() - self.state = 439 + self.state = 434 self.match(HogQLParser.EQ_SINGLE) - self.state = 440 + self.state = 435 self.literal() except RecognitionException as re: localctx.exception = re @@ -3365,31 +3314,31 @@ def accept(self, visitor:ParseTreeVisitor): def windowExpr(self): localctx = HogQLParser.WindowExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 58, self.RULE_windowExpr) + self.enterRule(localctx, 56, self.RULE_windowExpr) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 443 + self.state = 438 self._errHandler.sync(self) _la = self._input.LA(1) if _la==126: - self.state = 442 + self.state = 437 self.winPartitionByClause() - self.state = 446 + self.state = 441 self._errHandler.sync(self) _la = self._input.LA(1) if _la==122: - self.state = 445 + self.state = 440 self.winOrderByClause() - self.state = 449 + self.state = 444 self._errHandler.sync(self) _la = self._input.LA(1) if _la==133 or _la==143: - self.state = 448 + self.state = 443 self.winFrameClause() @@ -3434,14 +3383,14 @@ def accept(self, visitor:ParseTreeVisitor): def winPartitionByClause(self): localctx = HogQLParser.WinPartitionByClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 60, self.RULE_winPartitionByClause) + self.enterRule(localctx, 58, self.RULE_winPartitionByClause) try: self.enterOuterAlt(localctx, 1) - self.state = 451 + self.state = 446 self.match(HogQLParser.PARTITION) - self.state = 452 + self.state = 447 self.match(HogQLParser.BY) - self.state = 453 + self.state = 448 self.columnExprList() except RecognitionException as re: localctx.exception = re @@ -3484,14 +3433,14 @@ def accept(self, visitor:ParseTreeVisitor): def winOrderByClause(self): localctx = HogQLParser.WinOrderByClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 62, self.RULE_winOrderByClause) + self.enterRule(localctx, 60, self.RULE_winOrderByClause) try: self.enterOuterAlt(localctx, 1) - self.state = 455 + self.state = 450 self.match(HogQLParser.ORDER) - self.state = 456 + self.state = 451 self.match(HogQLParser.BY) - self.state = 457 + self.state = 452 self.orderExprList() except RecognitionException as re: localctx.exception = re @@ -3534,18 +3483,18 @@ def accept(self, visitor:ParseTreeVisitor): def winFrameClause(self): localctx = HogQLParser.WinFrameClauseContext(self, self._ctx, self.state) - self.enterRule(localctx, 64, self.RULE_winFrameClause) + self.enterRule(localctx, 62, self.RULE_winFrameClause) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 459 + self.state = 454 _la = self._input.LA(1) if not(_la==133 or _la==143): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 460 + self.state = 455 self.winFrameExtend() except RecognitionException as re: localctx.exception = re @@ -3618,27 +3567,27 @@ def accept(self, visitor:ParseTreeVisitor): def winFrameExtend(self): localctx = HogQLParser.WinFrameExtendContext(self, self._ctx, self.state) - self.enterRule(localctx, 66, self.RULE_winFrameExtend) + self.enterRule(localctx, 64, self.RULE_winFrameExtend) try: - self.state = 468 + self.state = 463 self._errHandler.sync(self) token = self._input.LA(1) if token in [33, 82, 113, 175, 196, 197, 198, 199, 208, 210, 228]: localctx = HogQLParser.FrameStartContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 462 + self.state = 457 self.winFrameBound() pass elif token in [16]: localctx = HogQLParser.FrameBetweenContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 463 + self.state = 458 self.match(HogQLParser.BETWEEN) - self.state = 464 + self.state = 459 self.winFrameBound() - self.state = 465 + self.state = 460 self.match(HogQLParser.AND) - self.state = 466 + self.state = 461 self.winFrameBound() pass else: @@ -3694,44 +3643,44 @@ def accept(self, visitor:ParseTreeVisitor): def winFrameBound(self): localctx = HogQLParser.WinFrameBoundContext(self, self._ctx, self.state) - self.enterRule(localctx, 68, self.RULE_winFrameBound) + self.enterRule(localctx, 66, self.RULE_winFrameBound) try: self.enterOuterAlt(localctx, 1) - self.state = 482 + self.state = 477 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,62,self._ctx) + la_ = self._interp.adaptivePredict(self._input,61,self._ctx) if la_ == 1: - self.state = 470 + self.state = 465 self.match(HogQLParser.CURRENT) - self.state = 471 + self.state = 466 self.match(HogQLParser.ROW) pass elif la_ == 2: - self.state = 472 + self.state = 467 self.match(HogQLParser.UNBOUNDED) - self.state = 473 + self.state = 468 self.match(HogQLParser.PRECEDING) pass elif la_ == 3: - self.state = 474 + self.state = 469 self.match(HogQLParser.UNBOUNDED) - self.state = 475 + self.state = 470 self.match(HogQLParser.FOLLOWING) pass elif la_ == 4: - self.state = 476 + self.state = 471 self.numberLiteral() - self.state = 477 + self.state = 472 self.match(HogQLParser.PRECEDING) pass elif la_ == 5: - self.state = 479 + self.state = 474 self.numberLiteral() - self.state = 480 + self.state = 475 self.match(HogQLParser.FOLLOWING) pass @@ -3774,12 +3723,12 @@ def accept(self, visitor:ParseTreeVisitor): def expr(self): localctx = HogQLParser.ExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 70, self.RULE_expr) + self.enterRule(localctx, 68, self.RULE_expr) try: self.enterOuterAlt(localctx, 1) - self.state = 484 + self.state = 479 self.columnExpr(0) - self.state = 485 + self.state = 480 self.match(HogQLParser.EOF) except RecognitionException as re: localctx.exception = re @@ -3951,114 +3900,114 @@ def accept(self, visitor:ParseTreeVisitor): def columnTypeExpr(self): localctx = HogQLParser.ColumnTypeExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 72, self.RULE_columnTypeExpr) + self.enterRule(localctx, 70, self.RULE_columnTypeExpr) self._la = 0 # Token type try: - self.state = 534 + self.state = 529 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,67,self._ctx) + la_ = self._interp.adaptivePredict(self._input,66,self._ctx) if la_ == 1: localctx = HogQLParser.ColumnTypeExprSimpleContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 487 + self.state = 482 self.identifier() pass elif la_ == 2: localctx = HogQLParser.ColumnTypeExprNestedContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 488 + self.state = 483 self.identifier() - self.state = 489 + self.state = 484 self.match(HogQLParser.LPAREN) - self.state = 490 + self.state = 485 self.identifier() - self.state = 491 + self.state = 486 self.columnTypeExpr() - self.state = 498 + self.state = 493 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 492 + self.state = 487 self.match(HogQLParser.COMMA) - self.state = 493 + self.state = 488 self.identifier() - self.state = 494 + self.state = 489 self.columnTypeExpr() - self.state = 500 + self.state = 495 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 501 + self.state = 496 self.match(HogQLParser.RPAREN) pass elif la_ == 3: localctx = HogQLParser.ColumnTypeExprEnumContext(self, localctx) self.enterOuterAlt(localctx, 3) - self.state = 503 + self.state = 498 self.identifier() - self.state = 504 + self.state = 499 self.match(HogQLParser.LPAREN) - self.state = 505 + self.state = 500 self.enumValue() - self.state = 510 + self.state = 505 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 506 + self.state = 501 self.match(HogQLParser.COMMA) - self.state = 507 + self.state = 502 self.enumValue() - self.state = 512 + self.state = 507 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 513 + self.state = 508 self.match(HogQLParser.RPAREN) pass elif la_ == 4: localctx = HogQLParser.ColumnTypeExprComplexContext(self, localctx) self.enterOuterAlt(localctx, 4) - self.state = 515 + self.state = 510 self.identifier() - self.state = 516 + self.state = 511 self.match(HogQLParser.LPAREN) - self.state = 517 + self.state = 512 self.columnTypeExpr() - self.state = 522 + self.state = 517 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 518 + self.state = 513 self.match(HogQLParser.COMMA) - self.state = 519 + self.state = 514 self.columnTypeExpr() - self.state = 524 + self.state = 519 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 525 + self.state = 520 self.match(HogQLParser.RPAREN) pass elif la_ == 5: localctx = HogQLParser.ColumnTypeExprParamContext(self, localctx) self.enterOuterAlt(localctx, 5) - self.state = 527 + self.state = 522 self.identifier() - self.state = 528 + self.state = 523 self.match(HogQLParser.LPAREN) - self.state = 530 + self.state = 525 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 529 + self.state = 524 self.columnExprList() - self.state = 532 + self.state = 527 self.match(HogQLParser.RPAREN) pass @@ -4107,23 +4056,23 @@ def accept(self, visitor:ParseTreeVisitor): def columnExprList(self): localctx = HogQLParser.ColumnExprListContext(self, self._ctx, self.state) - self.enterRule(localctx, 74, self.RULE_columnExprList) + self.enterRule(localctx, 72, self.RULE_columnExprList) try: self.enterOuterAlt(localctx, 1) - self.state = 536 + self.state = 531 self.columnExpr(0) - self.state = 541 + self.state = 536 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,68,self._ctx) + _alt = self._interp.adaptivePredict(self._input,67,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: - self.state = 537 + self.state = 532 self.match(HogQLParser.COMMA) - self.state = 538 + self.state = 533 self.columnExpr(0) - self.state = 543 + self.state = 538 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,68,self._ctx) + _alt = self._interp.adaptivePredict(self._input,67,self._ctx) except RecognitionException as re: localctx.exception = re @@ -5016,58 +4965,58 @@ def columnExpr(self, _p:int=0): _parentState = self.state localctx = HogQLParser.ColumnExprContext(self, self._ctx, _parentState) _prevctx = localctx - _startState = 76 - self.enterRecursionRule(localctx, 76, self.RULE_columnExpr, _p) + _startState = 74 + self.enterRecursionRule(localctx, 74, self.RULE_columnExpr, _p) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 674 + self.state = 669 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,81,self._ctx) + la_ = self._interp.adaptivePredict(self._input,80,self._ctx) if la_ == 1: localctx = HogQLParser.ColumnExprCaseContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 545 + self.state = 540 self.match(HogQLParser.CASE) - self.state = 547 + self.state = 542 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,69,self._ctx) + la_ = self._interp.adaptivePredict(self._input,68,self._ctx) if la_ == 1: - self.state = 546 + self.state = 541 localctx.caseExpr = self.columnExpr(0) - self.state = 554 + self.state = 549 self._errHandler.sync(self) _la = self._input.LA(1) while True: - self.state = 549 + self.state = 544 self.match(HogQLParser.WHEN) - self.state = 550 + self.state = 545 localctx.whenExpr = self.columnExpr(0) - self.state = 551 + self.state = 546 self.match(HogQLParser.THEN) - self.state = 552 + self.state = 547 localctx.thenExpr = self.columnExpr(0) - self.state = 556 + self.state = 551 self._errHandler.sync(self) _la = self._input.LA(1) if not (_la==186): break - self.state = 560 + self.state = 555 self._errHandler.sync(self) _la = self._input.LA(1) if _la==52: - self.state = 558 + self.state = 553 self.match(HogQLParser.ELSE) - self.state = 559 + self.state = 554 localctx.elseExpr = self.columnExpr(0) - self.state = 562 + self.state = 557 self.match(HogQLParser.END) pass @@ -5075,17 +5024,17 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprCastContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 564 + self.state = 559 self.match(HogQLParser.CAST) - self.state = 565 + self.state = 560 self.match(HogQLParser.LPAREN) - self.state = 566 + self.state = 561 self.columnExpr(0) - self.state = 567 + self.state = 562 self.match(HogQLParser.AS) - self.state = 568 + self.state = 563 self.columnTypeExpr() - self.state = 569 + self.state = 564 self.match(HogQLParser.RPAREN) pass @@ -5093,9 +5042,9 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprDateContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 571 + self.state = 566 self.match(HogQLParser.DATE) - self.state = 572 + self.state = 567 self.match(HogQLParser.STRING_LITERAL) pass @@ -5103,17 +5052,17 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprExtractContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 573 + self.state = 568 self.match(HogQLParser.EXTRACT) - self.state = 574 + self.state = 569 self.match(HogQLParser.LPAREN) - self.state = 575 + self.state = 570 self.interval() - self.state = 576 + self.state = 571 self.match(HogQLParser.FROM) - self.state = 577 + self.state = 572 self.columnExpr(0) - self.state = 578 + self.state = 573 self.match(HogQLParser.RPAREN) pass @@ -5121,11 +5070,11 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprIntervalContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 580 + self.state = 575 self.match(HogQLParser.INTERVAL) - self.state = 581 + self.state = 576 self.columnExpr(0) - self.state = 582 + self.state = 577 self.interval() pass @@ -5133,27 +5082,27 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprSubstringContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 584 + self.state = 579 self.match(HogQLParser.SUBSTRING) - self.state = 585 + self.state = 580 self.match(HogQLParser.LPAREN) - self.state = 586 + self.state = 581 self.columnExpr(0) - self.state = 587 + self.state = 582 self.match(HogQLParser.FROM) - self.state = 588 + self.state = 583 self.columnExpr(0) - self.state = 591 + self.state = 586 self._errHandler.sync(self) _la = self._input.LA(1) if _la==65: - self.state = 589 + self.state = 584 self.match(HogQLParser.FOR) - self.state = 590 + self.state = 585 self.columnExpr(0) - self.state = 593 + self.state = 588 self.match(HogQLParser.RPAREN) pass @@ -5161,9 +5110,9 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprTimestampContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 595 + self.state = 590 self.match(HogQLParser.TIMESTAMP) - self.state = 596 + self.state = 591 self.match(HogQLParser.STRING_LITERAL) pass @@ -5171,24 +5120,24 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprTrimContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 597 + self.state = 592 self.match(HogQLParser.TRIM) - self.state = 598 + self.state = 593 self.match(HogQLParser.LPAREN) - self.state = 599 + self.state = 594 _la = self._input.LA(1) if not(_la==17 or _la==95 or _la==170): self._errHandler.recoverInline(self) else: self._errHandler.reportMatch(self) self.consume() - self.state = 600 + self.state = 595 self.match(HogQLParser.STRING_LITERAL) - self.state = 601 + self.state = 596 self.match(HogQLParser.FROM) - self.state = 602 + self.state = 597 self.columnExpr(0) - self.state = 603 + self.state = 598 self.match(HogQLParser.RPAREN) pass @@ -5196,28 +5145,28 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprWinFunctionContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 605 + self.state = 600 self.identifier() - self.state = 606 + self.state = 601 self.match(HogQLParser.LPAREN) - self.state = 608 + self.state = 603 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 607 + self.state = 602 self.columnExprList() - self.state = 610 + self.state = 605 self.match(HogQLParser.RPAREN) - self.state = 612 + self.state = 607 self.match(HogQLParser.OVER) - self.state = 613 + self.state = 608 self.match(HogQLParser.LPAREN) - self.state = 614 + self.state = 609 self.windowExpr() - self.state = 615 + self.state = 610 self.match(HogQLParser.RPAREN) pass @@ -5225,24 +5174,24 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprWinFunctionTargetContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 617 + self.state = 612 self.identifier() - self.state = 618 + self.state = 613 self.match(HogQLParser.LPAREN) - self.state = 620 + self.state = 615 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 619 + self.state = 614 self.columnExprList() - self.state = 622 + self.state = 617 self.match(HogQLParser.RPAREN) - self.state = 624 + self.state = 619 self.match(HogQLParser.OVER) - self.state = 625 + self.state = 620 self.identifier() pass @@ -5250,45 +5199,45 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprFunctionContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 627 + self.state = 622 self.identifier() - self.state = 633 + self.state = 628 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,76,self._ctx) + la_ = self._interp.adaptivePredict(self._input,75,self._ctx) if la_ == 1: - self.state = 628 + self.state = 623 self.match(HogQLParser.LPAREN) - self.state = 630 + self.state = 625 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 629 + self.state = 624 self.columnExprList() - self.state = 632 + self.state = 627 self.match(HogQLParser.RPAREN) - self.state = 635 + self.state = 630 self.match(HogQLParser.LPAREN) - self.state = 637 + self.state = 632 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,77,self._ctx) + la_ = self._interp.adaptivePredict(self._input,76,self._ctx) if la_ == 1: - self.state = 636 + self.state = 631 self.match(HogQLParser.DISTINCT) - self.state = 640 + self.state = 635 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 639 + self.state = 634 self.columnArgList() - self.state = 642 + self.state = 637 self.match(HogQLParser.RPAREN) pass @@ -5296,7 +5245,7 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprTagElementContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 644 + self.state = 639 self.hogqlxTagElement() pass @@ -5304,7 +5253,7 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprLiteralContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 645 + self.state = 640 self.literal() pass @@ -5312,9 +5261,9 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprNegateContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 646 + self.state = 641 self.match(HogQLParser.DASH) - self.state = 647 + self.state = 642 self.columnExpr(18) pass @@ -5322,9 +5271,9 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprNotContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 648 + self.state = 643 self.match(HogQLParser.NOT) - self.state = 649 + self.state = 644 self.columnExpr(12) pass @@ -5332,17 +5281,17 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprAsteriskContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 653 + self.state = 648 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -5066549581053953) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or _la==192 or _la==195: - self.state = 650 + self.state = 645 self.tableIdentifier() - self.state = 651 + self.state = 646 self.match(HogQLParser.DOT) - self.state = 655 + self.state = 650 self.match(HogQLParser.ASTERISK) pass @@ -5350,11 +5299,11 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprSubqueryContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 656 + self.state = 651 self.match(HogQLParser.LPAREN) - self.state = 657 + self.state = 652 self.selectUnionStmt() - self.state = 658 + self.state = 653 self.match(HogQLParser.RPAREN) pass @@ -5362,11 +5311,11 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprParensContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 660 + self.state = 655 self.match(HogQLParser.LPAREN) - self.state = 661 + self.state = 656 self.columnExpr(0) - self.state = 662 + self.state = 657 self.match(HogQLParser.RPAREN) pass @@ -5374,11 +5323,11 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprTupleContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 664 + self.state = 659 self.match(HogQLParser.LPAREN) - self.state = 665 + self.state = 660 self.columnExprList() - self.state = 666 + self.state = 661 self.match(HogQLParser.RPAREN) pass @@ -5386,17 +5335,17 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprArrayContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 668 + self.state = 663 self.match(HogQLParser.LBRACKET) - self.state = 670 + self.state = 665 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 669 + self.state = 664 self.columnExprList() - self.state = 672 + self.state = 667 self.match(HogQLParser.RBRACKET) pass @@ -5404,50 +5353,50 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprIdentifierContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 673 + self.state = 668 self.columnIdentifier() pass self._ctx.stop = self._input.LT(-1) - self.state = 769 + self.state = 764 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,92,self._ctx) + _alt = self._interp.adaptivePredict(self._input,91,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: if self._parseListeners is not None: self.triggerExitRuleEvent() _prevctx = localctx - self.state = 767 + self.state = 762 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,91,self._ctx) + la_ = self._interp.adaptivePredict(self._input,90,self._ctx) if la_ == 1: localctx = HogQLParser.ColumnExprPrecedence1Context(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 676 + self.state = 671 if not self.precpred(self._ctx, 17): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 17)") - self.state = 680 + self.state = 675 self._errHandler.sync(self) token = self._input.LA(1) if token in [202]: - self.state = 677 + self.state = 672 localctx.operator = self.match(HogQLParser.ASTERISK) pass elif token in [238]: - self.state = 678 + self.state = 673 localctx.operator = self.match(HogQLParser.SLASH) pass elif token in [227]: - self.state = 679 + self.state = 674 localctx.operator = self.match(HogQLParser.PERCENT) pass else: raise NoViableAltException(self) - self.state = 682 + self.state = 677 localctx.right = self.columnExpr(18) pass @@ -5455,29 +5404,29 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprPrecedence2Context(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 683 + self.state = 678 if not self.precpred(self._ctx, 16): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 16)") - self.state = 687 + self.state = 682 self._errHandler.sync(self) token = self._input.LA(1) if token in [228]: - self.state = 684 + self.state = 679 localctx.operator = self.match(HogQLParser.PLUS) pass elif token in [208]: - self.state = 685 + self.state = 680 localctx.operator = self.match(HogQLParser.DASH) pass elif token in [207]: - self.state = 686 + self.state = 681 localctx.operator = self.match(HogQLParser.CONCAT) pass else: raise NoViableAltException(self) - self.state = 689 + self.state = 684 localctx.right = self.columnExpr(17) pass @@ -5485,79 +5434,79 @@ def columnExpr(self, _p:int=0): localctx = HogQLParser.ColumnExprPrecedence3Context(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) localctx.left = _prevctx self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 690 + self.state = 685 if not self.precpred(self._ctx, 15): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 15)") - self.state = 715 + self.state = 710 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,87,self._ctx) + la_ = self._interp.adaptivePredict(self._input,86,self._ctx) if la_ == 1: - self.state = 691 + self.state = 686 localctx.operator = self.match(HogQLParser.EQ_DOUBLE) pass elif la_ == 2: - self.state = 692 + self.state = 687 localctx.operator = self.match(HogQLParser.EQ_SINGLE) pass elif la_ == 3: - self.state = 693 + self.state = 688 localctx.operator = self.match(HogQLParser.NOT_EQ) pass elif la_ == 4: - self.state = 694 + self.state = 689 localctx.operator = self.match(HogQLParser.LT_EQ) pass elif la_ == 5: - self.state = 695 + self.state = 690 localctx.operator = self.match(HogQLParser.LT) pass elif la_ == 6: - self.state = 696 + self.state = 691 localctx.operator = self.match(HogQLParser.GT_EQ) pass elif la_ == 7: - self.state = 697 + self.state = 692 localctx.operator = self.match(HogQLParser.GT) pass elif la_ == 8: - self.state = 699 + self.state = 694 self._errHandler.sync(self) _la = self._input.LA(1) if _la==115: - self.state = 698 + self.state = 693 localctx.operator = self.match(HogQLParser.NOT) - self.state = 701 + self.state = 696 self.match(HogQLParser.IN) - self.state = 703 + self.state = 698 self._errHandler.sync(self) _la = self._input.LA(1) if _la==25: - self.state = 702 + self.state = 697 self.match(HogQLParser.COHORT) pass elif la_ == 9: - self.state = 706 + self.state = 701 self._errHandler.sync(self) _la = self._input.LA(1) if _la==115: - self.state = 705 + self.state = 700 localctx.operator = self.match(HogQLParser.NOT) - self.state = 708 + self.state = 703 _la = self._input.LA(1) if not(_la==79 or _la==98): self._errHandler.recoverInline(self) @@ -5567,209 +5516,209 @@ def columnExpr(self, _p:int=0): pass elif la_ == 10: - self.state = 709 + self.state = 704 localctx.operator = self.match(HogQLParser.REGEX_SINGLE) pass elif la_ == 11: - self.state = 710 + self.state = 705 localctx.operator = self.match(HogQLParser.REGEX_DOUBLE) pass elif la_ == 12: - self.state = 711 + self.state = 706 localctx.operator = self.match(HogQLParser.NOT_REGEX) pass elif la_ == 13: - self.state = 712 + self.state = 707 localctx.operator = self.match(HogQLParser.IREGEX_SINGLE) pass elif la_ == 14: - self.state = 713 + self.state = 708 localctx.operator = self.match(HogQLParser.IREGEX_DOUBLE) pass elif la_ == 15: - self.state = 714 + self.state = 709 localctx.operator = self.match(HogQLParser.NOT_IREGEX) pass - self.state = 717 + self.state = 712 localctx.right = self.columnExpr(16) pass elif la_ == 4: localctx = HogQLParser.ColumnExprNullishContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 718 + self.state = 713 if not self.precpred(self._ctx, 13): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 13)") - self.state = 719 + self.state = 714 self.match(HogQLParser.NULLISH) - self.state = 720 + self.state = 715 self.columnExpr(14) pass elif la_ == 5: localctx = HogQLParser.ColumnExprAndContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 721 + self.state = 716 if not self.precpred(self._ctx, 11): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 11)") - self.state = 722 + self.state = 717 self.match(HogQLParser.AND) - self.state = 723 + self.state = 718 self.columnExpr(12) pass elif la_ == 6: localctx = HogQLParser.ColumnExprOrContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 724 + self.state = 719 if not self.precpred(self._ctx, 10): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 10)") - self.state = 725 + self.state = 720 self.match(HogQLParser.OR) - self.state = 726 + self.state = 721 self.columnExpr(11) pass elif la_ == 7: localctx = HogQLParser.ColumnExprBetweenContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 727 + self.state = 722 if not self.precpred(self._ctx, 9): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 9)") - self.state = 729 + self.state = 724 self._errHandler.sync(self) _la = self._input.LA(1) if _la==115: - self.state = 728 + self.state = 723 self.match(HogQLParser.NOT) - self.state = 731 + self.state = 726 self.match(HogQLParser.BETWEEN) - self.state = 732 + self.state = 727 self.columnExpr(0) - self.state = 733 + self.state = 728 self.match(HogQLParser.AND) - self.state = 734 + self.state = 729 self.columnExpr(10) pass elif la_ == 8: localctx = HogQLParser.ColumnExprTernaryOpContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 736 + self.state = 731 if not self.precpred(self._ctx, 8): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 8)") - self.state = 737 + self.state = 732 self.match(HogQLParser.QUERY) - self.state = 738 + self.state = 733 self.columnExpr(0) - self.state = 739 + self.state = 734 self.match(HogQLParser.COLON) - self.state = 740 + self.state = 735 self.columnExpr(8) pass elif la_ == 9: localctx = HogQLParser.ColumnExprArrayAccessContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 742 + self.state = 737 if not self.precpred(self._ctx, 21): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 21)") - self.state = 743 + self.state = 738 self.match(HogQLParser.LBRACKET) - self.state = 744 + self.state = 739 self.columnExpr(0) - self.state = 745 + self.state = 740 self.match(HogQLParser.RBRACKET) pass elif la_ == 10: localctx = HogQLParser.ColumnExprTupleAccessContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 747 + self.state = 742 if not self.precpred(self._ctx, 20): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 20)") - self.state = 748 + self.state = 743 self.match(HogQLParser.DOT) - self.state = 749 + self.state = 744 self.match(HogQLParser.DECIMAL_LITERAL) pass elif la_ == 11: localctx = HogQLParser.ColumnExprPropertyAccessContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 750 + self.state = 745 if not self.precpred(self._ctx, 19): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 19)") - self.state = 751 + self.state = 746 self.match(HogQLParser.DOT) - self.state = 752 + self.state = 747 self.identifier() pass elif la_ == 12: localctx = HogQLParser.ColumnExprIsNullContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 753 + self.state = 748 if not self.precpred(self._ctx, 14): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 14)") - self.state = 754 + self.state = 749 self.match(HogQLParser.IS) - self.state = 756 + self.state = 751 self._errHandler.sync(self) _la = self._input.LA(1) if _la==115: - self.state = 755 + self.state = 750 self.match(HogQLParser.NOT) - self.state = 758 + self.state = 753 self.match(HogQLParser.NULL_SQL) pass elif la_ == 13: localctx = HogQLParser.ColumnExprAliasContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr) - self.state = 759 + self.state = 754 if not self.precpred(self._ctx, 7): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 7)") - self.state = 765 + self.state = 760 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,90,self._ctx) + la_ = self._interp.adaptivePredict(self._input,89,self._ctx) if la_ == 1: - self.state = 760 + self.state = 755 self.alias() pass elif la_ == 2: - self.state = 761 + self.state = 756 self.match(HogQLParser.AS) - self.state = 762 + self.state = 757 self.identifier() pass elif la_ == 3: - self.state = 763 + self.state = 758 self.match(HogQLParser.AS) - self.state = 764 + self.state = 759 self.match(HogQLParser.STRING_LITERAL) pass @@ -5777,9 +5726,9 @@ def columnExpr(self, _p:int=0): pass - self.state = 771 + self.state = 766 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,92,self._ctx) + _alt = self._interp.adaptivePredict(self._input,91,self._ctx) except RecognitionException as re: localctx.exception = re @@ -5825,21 +5774,21 @@ def accept(self, visitor:ParseTreeVisitor): def columnArgList(self): localctx = HogQLParser.ColumnArgListContext(self, self._ctx, self.state) - self.enterRule(localctx, 78, self.RULE_columnArgList) + self.enterRule(localctx, 76, self.RULE_columnArgList) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 772 + self.state = 767 self.columnArgExpr() - self.state = 777 + self.state = 772 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 773 + self.state = 768 self.match(HogQLParser.COMMA) - self.state = 774 + self.state = 769 self.columnArgExpr() - self.state = 779 + self.state = 774 self._errHandler.sync(self) _la = self._input.LA(1) @@ -5882,20 +5831,20 @@ def accept(self, visitor:ParseTreeVisitor): def columnArgExpr(self): localctx = HogQLParser.ColumnArgExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 80, self.RULE_columnArgExpr) + self.enterRule(localctx, 78, self.RULE_columnArgExpr) try: - self.state = 782 + self.state = 777 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,94,self._ctx) + la_ = self._interp.adaptivePredict(self._input,93,self._ctx) if la_ == 1: self.enterOuterAlt(localctx, 1) - self.state = 780 + self.state = 775 self.columnLambdaExpr() pass elif la_ == 2: self.enterOuterAlt(localctx, 2) - self.state = 781 + self.state = 776 self.columnExpr(0) pass @@ -5957,45 +5906,45 @@ def accept(self, visitor:ParseTreeVisitor): def columnLambdaExpr(self): localctx = HogQLParser.ColumnLambdaExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 82, self.RULE_columnLambdaExpr) + self.enterRule(localctx, 80, self.RULE_columnLambdaExpr) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 803 + self.state = 798 self._errHandler.sync(self) token = self._input.LA(1) if token in [220]: - self.state = 784 + self.state = 779 self.match(HogQLParser.LPAREN) - self.state = 785 + self.state = 780 self.identifier() - self.state = 790 + self.state = 785 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 786 + self.state = 781 self.match(HogQLParser.COMMA) - self.state = 787 + self.state = 782 self.identifier() - self.state = 792 + self.state = 787 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 793 + self.state = 788 self.match(HogQLParser.RPAREN) pass elif token in [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 114, 115, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 195]: - self.state = 795 + self.state = 790 self.identifier() - self.state = 800 + self.state = 795 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 796 + self.state = 791 self.match(HogQLParser.COMMA) - self.state = 797 + self.state = 792 self.identifier() - self.state = 802 + self.state = 797 self._errHandler.sync(self) _la = self._input.LA(1) @@ -6003,9 +5952,9 @@ def columnLambdaExpr(self): else: raise NoViableAltException(self) - self.state = 805 + self.state = 800 self.match(HogQLParser.ARROW) - self.state = 806 + self.state = 801 self.columnExpr(0) except RecognitionException as re: localctx.exception = re @@ -6107,69 +6056,69 @@ def accept(self, visitor:ParseTreeVisitor): def hogqlxTagElement(self): localctx = HogQLParser.HogqlxTagElementContext(self, self._ctx, self.state) - self.enterRule(localctx, 84, self.RULE_hogqlxTagElement) + self.enterRule(localctx, 82, self.RULE_hogqlxTagElement) self._la = 0 # Token type try: - self.state = 836 + self.state = 831 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,101,self._ctx) + la_ = self._interp.adaptivePredict(self._input,100,self._ctx) if la_ == 1: localctx = HogQLParser.HogqlxTagElementClosedContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 808 + self.state = 803 self.match(HogQLParser.LT) - self.state = 809 + self.state = 804 self.identifier() - self.state = 813 + self.state = 808 self._errHandler.sync(self) _la = self._input.LA(1) while (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -5066549581053953) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or _la==192 or _la==195: - self.state = 810 + self.state = 805 self.hogqlxTagAttribute() - self.state = 815 + self.state = 810 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 816 + self.state = 811 self.match(HogQLParser.SLASH) - self.state = 817 + self.state = 812 self.match(HogQLParser.GT) pass elif la_ == 2: localctx = HogQLParser.HogqlxTagElementNestedContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 819 + self.state = 814 self.match(HogQLParser.LT) - self.state = 820 + self.state = 815 self.identifier() - self.state = 824 + self.state = 819 self._errHandler.sync(self) _la = self._input.LA(1) while (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -5066549581053953) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or _la==192 or _la==195: - self.state = 821 + self.state = 816 self.hogqlxTagAttribute() - self.state = 826 + self.state = 821 self._errHandler.sync(self) _la = self._input.LA(1) - self.state = 827 + self.state = 822 self.match(HogQLParser.GT) - self.state = 829 + self.state = 824 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,100,self._ctx) + la_ = self._interp.adaptivePredict(self._input,99,self._ctx) if la_ == 1: - self.state = 828 + self.state = 823 self.hogqlxTagElement() - self.state = 831 + self.state = 826 self.match(HogQLParser.LT) - self.state = 832 + self.state = 827 self.match(HogQLParser.SLASH) - self.state = 833 + self.state = 828 self.identifier() - self.state = 834 + self.state = 829 self.match(HogQLParser.GT) pass @@ -6225,38 +6174,38 @@ def accept(self, visitor:ParseTreeVisitor): def hogqlxTagAttribute(self): localctx = HogQLParser.HogqlxTagAttributeContext(self, self._ctx, self.state) - self.enterRule(localctx, 86, self.RULE_hogqlxTagAttribute) + self.enterRule(localctx, 84, self.RULE_hogqlxTagAttribute) try: - self.state = 849 + self.state = 844 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,102,self._ctx) + la_ = self._interp.adaptivePredict(self._input,101,self._ctx) if la_ == 1: self.enterOuterAlt(localctx, 1) - self.state = 838 + self.state = 833 self.identifier() - self.state = 839 + self.state = 834 self.match(HogQLParser.EQ_SINGLE) - self.state = 840 + self.state = 835 self.match(HogQLParser.STRING_LITERAL) pass elif la_ == 2: self.enterOuterAlt(localctx, 2) - self.state = 842 + self.state = 837 self.identifier() - self.state = 843 + self.state = 838 self.match(HogQLParser.EQ_SINGLE) - self.state = 844 + self.state = 839 self.match(HogQLParser.LBRACE) - self.state = 845 + self.state = 840 self.columnExpr(0) - self.state = 846 + self.state = 841 self.match(HogQLParser.RBRACE) pass elif la_ == 3: self.enterOuterAlt(localctx, 3) - self.state = 848 + self.state = 843 self.identifier() pass @@ -6305,21 +6254,21 @@ def accept(self, visitor:ParseTreeVisitor): def withExprList(self): localctx = HogQLParser.WithExprListContext(self, self._ctx, self.state) - self.enterRule(localctx, 88, self.RULE_withExprList) + self.enterRule(localctx, 86, self.RULE_withExprList) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 851 + self.state = 846 self.withExpr() - self.state = 856 + self.state = 851 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 852 + self.state = 847 self.match(HogQLParser.COMMA) - self.state = 853 + self.state = 848 self.withExpr() - self.state = 858 + self.state = 853 self._errHandler.sync(self) _la = self._input.LA(1) @@ -6401,34 +6350,34 @@ def accept(self, visitor:ParseTreeVisitor): def withExpr(self): localctx = HogQLParser.WithExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 90, self.RULE_withExpr) + self.enterRule(localctx, 88, self.RULE_withExpr) try: - self.state = 869 + self.state = 864 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,104,self._ctx) + la_ = self._interp.adaptivePredict(self._input,103,self._ctx) if la_ == 1: localctx = HogQLParser.WithExprSubqueryContext(self, localctx) self.enterOuterAlt(localctx, 1) - self.state = 859 + self.state = 854 self.identifier() - self.state = 860 + self.state = 855 self.match(HogQLParser.AS) - self.state = 861 + self.state = 856 self.match(HogQLParser.LPAREN) - self.state = 862 + self.state = 857 self.selectUnionStmt() - self.state = 863 + self.state = 858 self.match(HogQLParser.RPAREN) pass elif la_ == 2: localctx = HogQLParser.WithExprColumnContext(self, localctx) self.enterOuterAlt(localctx, 2) - self.state = 865 + self.state = 860 self.columnExpr(0) - self.state = 866 + self.state = 861 self.match(HogQLParser.AS) - self.state = 867 + self.state = 862 self.identifier() pass @@ -6479,29 +6428,29 @@ def accept(self, visitor:ParseTreeVisitor): def columnIdentifier(self): localctx = HogQLParser.ColumnIdentifierContext(self, self._ctx, self.state) - self.enterRule(localctx, 92, self.RULE_columnIdentifier) + self.enterRule(localctx, 90, self.RULE_columnIdentifier) try: - self.state = 878 + self.state = 873 self._errHandler.sync(self) token = self._input.LA(1) if token in [218]: self.enterOuterAlt(localctx, 1) - self.state = 871 + self.state = 866 self.placeholder() pass elif token in [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 114, 115, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 195]: self.enterOuterAlt(localctx, 2) - self.state = 875 + self.state = 870 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,105,self._ctx) + la_ = self._interp.adaptivePredict(self._input,104,self._ctx) if la_ == 1: - self.state = 872 + self.state = 867 self.tableIdentifier() - self.state = 873 + self.state = 868 self.match(HogQLParser.DOT) - self.state = 877 + self.state = 872 self.nestedIdentifier() pass else: @@ -6551,23 +6500,23 @@ def accept(self, visitor:ParseTreeVisitor): def nestedIdentifier(self): localctx = HogQLParser.NestedIdentifierContext(self, self._ctx, self.state) - self.enterRule(localctx, 94, self.RULE_nestedIdentifier) + self.enterRule(localctx, 92, self.RULE_nestedIdentifier) try: self.enterOuterAlt(localctx, 1) - self.state = 880 + self.state = 875 self.identifier() - self.state = 885 + self.state = 880 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,107,self._ctx) + _alt = self._interp.adaptivePredict(self._input,106,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: - self.state = 881 + self.state = 876 self.match(HogQLParser.DOT) - self.state = 882 + self.state = 877 self.identifier() - self.state = 887 + self.state = 882 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,107,self._ctx) + _alt = self._interp.adaptivePredict(self._input,106,self._ctx) except RecognitionException as re: localctx.exception = re @@ -6714,19 +6663,19 @@ def tableExpr(self, _p:int=0): _parentState = self.state localctx = HogQLParser.TableExprContext(self, self._ctx, _parentState) _prevctx = localctx - _startState = 96 - self.enterRecursionRule(localctx, 96, self.RULE_tableExpr, _p) + _startState = 94 + self.enterRecursionRule(localctx, 94, self.RULE_tableExpr, _p) try: self.enterOuterAlt(localctx, 1) - self.state = 897 + self.state = 892 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,108,self._ctx) + la_ = self._interp.adaptivePredict(self._input,107,self._ctx) if la_ == 1: localctx = HogQLParser.TableExprIdentifierContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 889 + self.state = 884 self.tableIdentifier() pass @@ -6734,7 +6683,7 @@ def tableExpr(self, _p:int=0): localctx = HogQLParser.TableExprFunctionContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 890 + self.state = 885 self.tableFunctionExpr() pass @@ -6742,11 +6691,11 @@ def tableExpr(self, _p:int=0): localctx = HogQLParser.TableExprSubqueryContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 891 + self.state = 886 self.match(HogQLParser.LPAREN) - self.state = 892 + self.state = 887 self.selectUnionStmt() - self.state = 893 + self.state = 888 self.match(HogQLParser.RPAREN) pass @@ -6754,7 +6703,7 @@ def tableExpr(self, _p:int=0): localctx = HogQLParser.TableExprTagContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 895 + self.state = 890 self.hogqlxTagElement() pass @@ -6762,15 +6711,15 @@ def tableExpr(self, _p:int=0): localctx = HogQLParser.TableExprPlaceholderContext(self, localctx) self._ctx = localctx _prevctx = localctx - self.state = 896 + self.state = 891 self.placeholder() pass self._ctx.stop = self._input.LT(-1) - self.state = 907 + self.state = 902 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,110,self._ctx) + _alt = self._interp.adaptivePredict(self._input,109,self._ctx) while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER: if _alt==1: if self._parseListeners is not None: @@ -6778,29 +6727,29 @@ def tableExpr(self, _p:int=0): _prevctx = localctx localctx = HogQLParser.TableExprAliasContext(self, HogQLParser.TableExprContext(self, _parentctx, _parentState)) self.pushNewRecursionContext(localctx, _startState, self.RULE_tableExpr) - self.state = 899 + self.state = 894 if not self.precpred(self._ctx, 3): from antlr4.error.Errors import FailedPredicateException raise FailedPredicateException(self, "self.precpred(self._ctx, 3)") - self.state = 903 + self.state = 898 self._errHandler.sync(self) token = self._input.LA(1) if token in [36, 62, 77, 91, 195]: - self.state = 900 + self.state = 895 self.alias() pass elif token in [10]: - self.state = 901 + self.state = 896 self.match(HogQLParser.AS) - self.state = 902 + self.state = 897 self.identifier() pass else: raise NoViableAltException(self) - self.state = 909 + self.state = 904 self._errHandler.sync(self) - _alt = self._interp.adaptivePredict(self._input,110,self._ctx) + _alt = self._interp.adaptivePredict(self._input,109,self._ctx) except RecognitionException as re: localctx.exception = re @@ -6847,23 +6796,23 @@ def accept(self, visitor:ParseTreeVisitor): def tableFunctionExpr(self): localctx = HogQLParser.TableFunctionExprContext(self, self._ctx, self.state) - self.enterRule(localctx, 98, self.RULE_tableFunctionExpr) + self.enterRule(localctx, 96, self.RULE_tableFunctionExpr) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 910 + self.state = 905 self.identifier() - self.state = 911 + self.state = 906 self.match(HogQLParser.LPAREN) - self.state = 913 + self.state = 908 self._errHandler.sync(self) _la = self._input.LA(1) if (((_la) & ~0x3f) == 0 and ((1 << _la) & -33554436) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -1) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & -9) != 0) or ((((_la - 192)) & ~0x3f) == 0 and ((1 << (_la - 192)) & 70263309817) != 0): - self.state = 912 + self.state = 907 self.tableArgList() - self.state = 915 + self.state = 910 self.match(HogQLParser.RPAREN) except RecognitionException as re: localctx.exception = re @@ -6907,20 +6856,20 @@ def accept(self, visitor:ParseTreeVisitor): def tableIdentifier(self): localctx = HogQLParser.TableIdentifierContext(self, self._ctx, self.state) - self.enterRule(localctx, 100, self.RULE_tableIdentifier) + self.enterRule(localctx, 98, self.RULE_tableIdentifier) try: self.enterOuterAlt(localctx, 1) - self.state = 920 + self.state = 915 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,112,self._ctx) + la_ = self._interp.adaptivePredict(self._input,111,self._ctx) if la_ == 1: - self.state = 917 + self.state = 912 self.databaseIdentifier() - self.state = 918 + self.state = 913 self.match(HogQLParser.DOT) - self.state = 922 + self.state = 917 self.identifier() except RecognitionException as re: localctx.exception = re @@ -6966,21 +6915,21 @@ def accept(self, visitor:ParseTreeVisitor): def tableArgList(self): localctx = HogQLParser.TableArgListContext(self, self._ctx, self.state) - self.enterRule(localctx, 102, self.RULE_tableArgList) + self.enterRule(localctx, 100, self.RULE_tableArgList) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 924 + self.state = 919 self.columnExpr(0) - self.state = 929 + self.state = 924 self._errHandler.sync(self) _la = self._input.LA(1) while _la==206: - self.state = 925 + self.state = 920 self.match(HogQLParser.COMMA) - self.state = 926 + self.state = 921 self.columnExpr(0) - self.state = 931 + self.state = 926 self._errHandler.sync(self) _la = self._input.LA(1) @@ -7019,10 +6968,10 @@ def accept(self, visitor:ParseTreeVisitor): def databaseIdentifier(self): localctx = HogQLParser.DatabaseIdentifierContext(self, self._ctx, self.state) - self.enterRule(localctx, 104, self.RULE_databaseIdentifier) + self.enterRule(localctx, 102, self.RULE_databaseIdentifier) try: self.enterOuterAlt(localctx, 1) - self.state = 932 + self.state = 927 self.identifier() except RecognitionException as re: localctx.exception = re @@ -7070,22 +7019,22 @@ def accept(self, visitor:ParseTreeVisitor): def floatingLiteral(self): localctx = HogQLParser.FloatingLiteralContext(self, self._ctx, self.state) - self.enterRule(localctx, 106, self.RULE_floatingLiteral) + self.enterRule(localctx, 104, self.RULE_floatingLiteral) self._la = 0 # Token type try: - self.state = 942 + self.state = 937 self._errHandler.sync(self) token = self._input.LA(1) if token in [196]: self.enterOuterAlt(localctx, 1) - self.state = 934 + self.state = 929 self.match(HogQLParser.FLOATING_LITERAL) pass elif token in [210]: self.enterOuterAlt(localctx, 2) - self.state = 935 + self.state = 930 self.match(HogQLParser.DOT) - self.state = 936 + self.state = 931 _la = self._input.LA(1) if not(_la==197 or _la==198): self._errHandler.recoverInline(self) @@ -7095,15 +7044,15 @@ def floatingLiteral(self): pass elif token in [198]: self.enterOuterAlt(localctx, 3) - self.state = 937 + self.state = 932 self.match(HogQLParser.DECIMAL_LITERAL) - self.state = 938 + self.state = 933 self.match(HogQLParser.DOT) - self.state = 940 + self.state = 935 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,114,self._ctx) + la_ = self._interp.adaptivePredict(self._input,113,self._ctx) if la_ == 1: - self.state = 939 + self.state = 934 _la = self._input.LA(1) if not(_la==197 or _la==198): self._errHandler.recoverInline(self) @@ -7172,15 +7121,15 @@ def accept(self, visitor:ParseTreeVisitor): def numberLiteral(self): localctx = HogQLParser.NumberLiteralContext(self, self._ctx, self.state) - self.enterRule(localctx, 108, self.RULE_numberLiteral) + self.enterRule(localctx, 106, self.RULE_numberLiteral) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 945 + self.state = 940 self._errHandler.sync(self) _la = self._input.LA(1) if _la==208 or _la==228: - self.state = 944 + self.state = 939 _la = self._input.LA(1) if not(_la==208 or _la==228): self._errHandler.recoverInline(self) @@ -7189,36 +7138,36 @@ def numberLiteral(self): self.consume() - self.state = 953 + self.state = 948 self._errHandler.sync(self) - la_ = self._interp.adaptivePredict(self._input,117,self._ctx) + la_ = self._interp.adaptivePredict(self._input,116,self._ctx) if la_ == 1: - self.state = 947 + self.state = 942 self.floatingLiteral() pass elif la_ == 2: - self.state = 948 + self.state = 943 self.match(HogQLParser.OCTAL_LITERAL) pass elif la_ == 3: - self.state = 949 + self.state = 944 self.match(HogQLParser.DECIMAL_LITERAL) pass elif la_ == 4: - self.state = 950 + self.state = 945 self.match(HogQLParser.HEXADECIMAL_LITERAL) pass elif la_ == 5: - self.state = 951 + self.state = 946 self.match(HogQLParser.INF) pass elif la_ == 6: - self.state = 952 + self.state = 947 self.match(HogQLParser.NAN_SQL) pass @@ -7264,24 +7213,24 @@ def accept(self, visitor:ParseTreeVisitor): def literal(self): localctx = HogQLParser.LiteralContext(self, self._ctx, self.state) - self.enterRule(localctx, 110, self.RULE_literal) + self.enterRule(localctx, 108, self.RULE_literal) try: - self.state = 958 + self.state = 953 self._errHandler.sync(self) token = self._input.LA(1) if token in [82, 113, 196, 197, 198, 199, 208, 210, 228]: self.enterOuterAlt(localctx, 1) - self.state = 955 + self.state = 950 self.numberLiteral() pass elif token in [200]: self.enterOuterAlt(localctx, 2) - self.state = 956 + self.state = 951 self.match(HogQLParser.STRING_LITERAL) pass elif token in [116]: self.enterOuterAlt(localctx, 3) - self.state = 957 + self.state = 952 self.match(HogQLParser.NULL_SQL) pass else: @@ -7342,11 +7291,11 @@ def accept(self, visitor:ParseTreeVisitor): def interval(self): localctx = HogQLParser.IntervalContext(self, self._ctx, self.state) - self.enterRule(localctx, 112, self.RULE_interval) + self.enterRule(localctx, 110, self.RULE_interval) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 960 + self.state = 955 _la = self._input.LA(1) if not(_la==37 or ((((_la - 76)) & ~0x3f) == 0 and ((1 << (_la - 76)) & 72057615512764417) != 0) or ((((_la - 145)) & ~0x3f) == 0 and ((1 << (_la - 145)) & 36283883716609) != 0)): self._errHandler.recoverInline(self) @@ -7918,11 +7867,11 @@ def accept(self, visitor:ParseTreeVisitor): def keyword(self): localctx = HogQLParser.KeywordContext(self, self._ctx, self.state) - self.enterRule(localctx, 114, self.RULE_keyword) + self.enterRule(localctx, 112, self.RULE_keyword) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 962 + self.state = 957 _la = self._input.LA(1) if not(((((_la - 2)) & ~0x3f) == 0 and ((1 << (_la - 2)) & -34368126977) != 0) or ((((_la - 66)) & ~0x3f) == 0 and ((1 << (_la - 66)) & -1288627627820033) != 0) or ((((_la - 130)) & ~0x3f) == 0 and ((1 << (_la - 130)) & 8034421735228932089) != 0)): self._errHandler.recoverInline(self) @@ -7972,11 +7921,11 @@ def accept(self, visitor:ParseTreeVisitor): def keywordForAlias(self): localctx = HogQLParser.KeywordForAliasContext(self, self._ctx, self.state) - self.enterRule(localctx, 116, self.RULE_keywordForAlias) + self.enterRule(localctx, 114, self.RULE_keywordForAlias) self._la = 0 # Token type try: self.enterOuterAlt(localctx, 1) - self.state = 964 + self.state = 959 _la = self._input.LA(1) if not(((((_la - 36)) & ~0x3f) == 0 and ((1 << (_la - 36)) & 36030996109328385) != 0)): self._errHandler.recoverInline(self) @@ -8021,19 +7970,19 @@ def accept(self, visitor:ParseTreeVisitor): def alias(self): localctx = HogQLParser.AliasContext(self, self._ctx, self.state) - self.enterRule(localctx, 118, self.RULE_alias) + self.enterRule(localctx, 116, self.RULE_alias) try: - self.state = 968 + self.state = 963 self._errHandler.sync(self) token = self._input.LA(1) if token in [195]: self.enterOuterAlt(localctx, 1) - self.state = 966 + self.state = 961 self.match(HogQLParser.IDENTIFIER) pass elif token in [36, 62, 77, 91]: self.enterOuterAlt(localctx, 2) - self.state = 967 + self.state = 962 self.keywordForAlias() pass else: @@ -8081,24 +8030,24 @@ def accept(self, visitor:ParseTreeVisitor): def identifier(self): localctx = HogQLParser.IdentifierContext(self, self._ctx, self.state) - self.enterRule(localctx, 120, self.RULE_identifier) + self.enterRule(localctx, 118, self.RULE_identifier) try: - self.state = 973 + self.state = 968 self._errHandler.sync(self) token = self._input.LA(1) if token in [195]: self.enterOuterAlt(localctx, 1) - self.state = 970 + self.state = 965 self.match(HogQLParser.IDENTIFIER) pass elif token in [37, 76, 108, 110, 132, 145, 185, 190]: self.enterOuterAlt(localctx, 2) - self.state = 971 + self.state = 966 self.interval() pass elif token in [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 77, 78, 79, 80, 81, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 109, 111, 112, 114, 115, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 186, 187, 188, 189, 191, 192]: self.enterOuterAlt(localctx, 3) - self.state = 972 + self.state = 967 self.keyword() pass else: @@ -8145,14 +8094,14 @@ def accept(self, visitor:ParseTreeVisitor): def enumValue(self): localctx = HogQLParser.EnumValueContext(self, self._ctx, self.state) - self.enterRule(localctx, 122, self.RULE_enumValue) + self.enterRule(localctx, 120, self.RULE_enumValue) try: self.enterOuterAlt(localctx, 1) - self.state = 975 + self.state = 970 self.match(HogQLParser.STRING_LITERAL) - self.state = 976 + self.state = 971 self.match(HogQLParser.EQ_SINGLE) - self.state = 977 + self.state = 972 self.numberLiteral() except RecognitionException as re: localctx.exception = re @@ -8195,14 +8144,14 @@ def accept(self, visitor:ParseTreeVisitor): def placeholder(self): localctx = HogQLParser.PlaceholderContext(self, self._ctx, self.state) - self.enterRule(localctx, 124, self.RULE_placeholder) + self.enterRule(localctx, 122, self.RULE_placeholder) try: self.enterOuterAlt(localctx, 1) - self.state = 979 + self.state = 974 self.match(HogQLParser.LBRACE) - self.state = 980 + self.state = 975 self.identifier() - self.state = 981 + self.state = 976 self.match(HogQLParser.RBRACE) except RecognitionException as re: localctx.exception = re @@ -8217,9 +8166,9 @@ def placeholder(self): def sempred(self, localctx:RuleContext, ruleIndex:int, predIndex:int): if self._predicates == None: self._predicates = dict() - self._predicates[19] = self.joinExpr_sempred - self._predicates[38] = self.columnExpr_sempred - self._predicates[48] = self.tableExpr_sempred + self._predicates[18] = self.joinExpr_sempred + self._predicates[37] = self.columnExpr_sempred + self._predicates[47] = self.tableExpr_sempred pred = self._predicates.get(ruleIndex, None) if pred is None: raise Exception("No predicate with index:" + str(ruleIndex)) diff --git a/posthog/hogql/grammar/HogQLParserVisitor.py b/posthog/hogql/grammar/HogQLParserVisitor.py index 1e37ae71b22ca..389da7e99385c 100644 --- a/posthog/hogql/grammar/HogQLParserVisitor.py +++ b/posthog/hogql/grammar/HogQLParserVisitor.py @@ -24,11 +24,6 @@ def visitSelectStmtWithParens(self, ctx:HogQLParser.SelectStmtWithParensContext) return self.visitChildren(ctx) - # Visit a parse tree produced by HogQLParser#selectStmtWithPlaceholder. - def visitSelectStmtWithPlaceholder(self, ctx:HogQLParser.SelectStmtWithPlaceholderContext): - return self.visitChildren(ctx) - - # Visit a parse tree produced by HogQLParser#selectStmt. def visitSelectStmt(self, ctx:HogQLParser.SelectStmtContext): return self.visitChildren(ctx) diff --git a/posthog/hogql/parser.py b/posthog/hogql/parser.py index ba9d4160f1acb..5067eb1cff785 100644 --- a/posthog/hogql/parser.py +++ b/posthog/hogql/parser.py @@ -181,7 +181,7 @@ def visitSelectUnionStmt(self, ctx: HogQLParser.SelectUnionStmtContext): return ast.SelectUnionQuery(select_queries=flattened_queries) def visitSelectStmtWithParens(self, ctx: HogQLParser.SelectStmtWithParensContext): - return self.visit(ctx.selectStmtWithPlaceholder() or ctx.selectUnionStmt()) + return self.visit(ctx.selectStmt() or ctx.selectUnionStmt() or ctx.placeholder()) def visitSelectStmt(self, ctx: HogQLParser.SelectStmtContext): select_query = ast.SelectQuery( @@ -833,12 +833,6 @@ def visitTableExprFunction(self, ctx: HogQLParser.TableExprFunctionContext): def visitTableExprTag(self, ctx: HogQLParser.TableExprTagContext): return self.visit(ctx.hogqlxTagElement()) - def visitSelectStmtWithPlaceholder(self, ctx: HogQLParser.SelectStmtWithPlaceholderContext): - if ctx.placeholder(): - return self.visit(ctx.placeholder()) - - return self.visit(ctx.selectStmt()) - def visitTableFunctionExpr(self, ctx: HogQLParser.TableFunctionExprContext): name = self.visit(ctx.identifier()) args = self.visit(ctx.tableArgList()) if ctx.tableArgList() else [] From e0d1406e2c5bc5d5683378450004586d4bb79c96 Mon Sep 17 00:00:00 2001 From: Tom Owers Date: Wed, 17 Jan 2024 17:13:53 +0000 Subject: [PATCH 8/9] Updated mypy --- mypy-baseline.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mypy-baseline.txt b/mypy-baseline.txt index 2dd16e7441fe0..efa583290f9c1 100644 --- a/mypy-baseline.txt +++ b/mypy-baseline.txt @@ -262,6 +262,7 @@ posthog/hogql/resolver.py:0: error: Argument 1 to "get_child" of "Type" has inco posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "Alias") [assignment] posthog/hogql/resolver.py:0: error: Argument "alias" to "Alias" has incompatible type "str | int"; expected "str" [arg-type] posthog/hogql/resolver.py:0: error: Argument 1 to "join" of "str" has incompatible type "list[str | int]"; expected "Iterable[str]" [arg-type] +ee/tasks/subscriptions/__init__.py:0: error: Incompatible import of "settings" (imported name has type Module, local name has type "LazySettings") [assignment] posthog/temporal/data_imports/external_data_job.py:0: error: Argument 2 to "DataImportPipeline" has incompatible type "DltSource"; expected "DltResource" [arg-type] posthog/hogql/transforms/lazy_tables.py:0: error: Incompatible default for argument "context" (default has type "None", argument has type "HogQLContext") [assignment] posthog/hogql/transforms/lazy_tables.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True @@ -376,9 +377,6 @@ posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "Bre posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument 1 to "parse_expr" has incompatible type "str | float | list[str | float] | Any | None"; expected "str" [arg-type] posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] -posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] -posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument 1 to "int" has incompatible type "str | float | list[str | float] | Any | None"; expected "str | Buffer | SupportsInt | SupportsIndex | SupportsTrunc" [arg-type] -posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown_type" [union-attr] posthog/hogql_queries/insights/trends/breakdown.py:0: error: Item "None" of "BreakdownFilter | None" has no attribute "breakdown" [union-attr] posthog/hogql_queries/insights/trends/breakdown.py:0: error: Argument 1 to "parse_expr" has incompatible type "str | float | list[str | float] | Any | None"; expected "str" [arg-type] From fd443c9c17733ffea612e7f564d100db2b3632a5 Mon Sep 17 00:00:00 2001 From: Tom Owers Date: Wed, 17 Jan 2024 19:48:01 +0000 Subject: [PATCH 9/9] Updated mypy --- mypy-baseline.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/mypy-baseline.txt b/mypy-baseline.txt index efa583290f9c1..bb8042bb34f0c 100644 --- a/mypy-baseline.txt +++ b/mypy-baseline.txt @@ -262,7 +262,6 @@ posthog/hogql/resolver.py:0: error: Argument 1 to "get_child" of "Type" has inco posthog/hogql/resolver.py:0: error: Incompatible types in assignment (expression has type "Expr", variable has type "Alias") [assignment] posthog/hogql/resolver.py:0: error: Argument "alias" to "Alias" has incompatible type "str | int"; expected "str" [arg-type] posthog/hogql/resolver.py:0: error: Argument 1 to "join" of "str" has incompatible type "list[str | int]"; expected "Iterable[str]" [arg-type] -ee/tasks/subscriptions/__init__.py:0: error: Incompatible import of "settings" (imported name has type Module, local name has type "LazySettings") [assignment] posthog/temporal/data_imports/external_data_job.py:0: error: Argument 2 to "DataImportPipeline" has incompatible type "DltSource"; expected "DltResource" [arg-type] posthog/hogql/transforms/lazy_tables.py:0: error: Incompatible default for argument "context" (default has type "None", argument has type "HogQLContext") [assignment] posthog/hogql/transforms/lazy_tables.py:0: note: PEP 484 prohibits implicit Optional. Accordingly, mypy has changed its default to no_implicit_optional=True