diff --git a/src/CONST/index.ts b/src/CONST/index.ts index 824d0d752a8d..e758b55fa17c 100644 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -8352,6 +8352,7 @@ const CONST = { ASSIGNEE: 'assignee', REIMBURSABLE: 'reimbursable', BILLABLE: 'billable', + DECLINED: 'declined', POLICY_ID: 'policyID', ACTION: 'action', HAS: 'has', @@ -8443,6 +8444,7 @@ const CONST = { ASSIGNEE: 'assignee', REIMBURSABLE: 'reimbursable', BILLABLE: 'billable', + DECLINED: 'declined', ACTION: 'action', HAS: 'has', PURCHASE_AMOUNT: 'purchase-amount', diff --git a/src/components/Search/FilterComponents/ListFilterContent.tsx b/src/components/Search/FilterComponents/ListFilterContent.tsx index b6c51e39154e..6f0a3a984c39 100644 --- a/src/components/Search/FilterComponents/ListFilterContent.tsx +++ b/src/components/Search/FilterComponents/ListFilterContent.tsx @@ -49,6 +49,7 @@ type ListFilterContentProps = SearchFilterCommonProps & { @@ -250,6 +251,7 @@ function ListFilterContent({ } case CONST.SEARCH.SYNTAX_FILTER_KEYS.BILLABLE: case CONST.SEARCH.SYNTAX_FILTER_KEYS.REIMBURSABLE: + case CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED: case CONST.SEARCH.SYNTAX_FILTER_KEYS.TRANSACTION_STATUS: case CONST.SEARCH.SYNTAX_FILTER_KEYS.WITHDRAWAL_TYPE: { const isSingleSelectFilterValue = (v: ListFilterContentProps['value']): v is SingleSelectListFilterContentProps['value'] => { diff --git a/src/hooks/useAdvancedSearchFilters.ts b/src/hooks/useAdvancedSearchFilters.ts index edf73d9d8470..00fa8f1fd076 100644 --- a/src/hooks/useAdvancedSearchFilters.ts +++ b/src/hooks/useAdvancedSearchFilters.ts @@ -42,6 +42,7 @@ const typeFiltersKeys = { CONST.SEARCH.SYNTAX_FILTER_KEYS.ATTENDEE, CONST.SEARCH.SYNTAX_FILTER_KEYS.REIMBURSABLE, CONST.SEARCH.SYNTAX_FILTER_KEYS.BILLABLE, + CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED, CONST.SEARCH.SYNTAX_FILTER_KEYS.CARD_ID, CONST.SEARCH.SYNTAX_FILTER_KEYS.BANK_ACCOUNT, CONST.SEARCH.SYNTAX_FILTER_KEYS.FEED, @@ -90,6 +91,7 @@ const typeFiltersKeys = { CONST.SEARCH.SYNTAX_FILTER_KEYS.CURRENCY, CONST.SEARCH.SYNTAX_FILTER_KEYS.EXPORTED_TO, CONST.SEARCH.SYNTAX_FILTER_KEYS.PAID_STATUS, + CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED, CONST.SEARCH.SYNTAX_FILTER_KEYS.PAID_BY, CONST.SEARCH.SYNTAX_FILTER_KEYS.TITLE, CONST.SEARCH.SYNTAX_FILTER_KEYS.REPORT_ID, diff --git a/src/hooks/useAutocompleteSuggestions.ts b/src/hooks/useAutocompleteSuggestions.ts index 6e73345649fe..e9b86ff0c99a 100644 --- a/src/hooks/useAutocompleteSuggestions.ts +++ b/src/hooks/useAutocompleteSuggestions.ts @@ -546,7 +546,8 @@ function useAutocompleteSuggestions({ })); } case CONST.SEARCH.SYNTAX_FILTER_KEYS.REIMBURSABLE: - case CONST.SEARCH.SYNTAX_FILTER_KEYS.BILLABLE: { + case CONST.SEARCH.SYNTAX_FILTER_KEYS.BILLABLE: + case CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED: { const filteredValues = BOOLEAN_VALUES.filter((value) => value.includes(autocompleteValue.toLowerCase()) && !alreadyAutocompletedKeys.has(value)).sort(); return filteredValues.map((value) => ({ diff --git a/src/languages/de.ts b/src/languages/de.ts index 3c111a91d40d..1ceb13182684 100644 --- a/src/languages/de.ts +++ b/src/languages/de.ts @@ -10236,6 +10236,7 @@ Fügen Sie weitere Ausgabelimits hinzu, um den Cashflow Ihres Unternehmens zu sc posted: 'Gebucht', withdrawn: 'Zurückgezogen', billable: 'Abrechenbar', + rejected: 'Abgelehnt', reimbursable: 'Erstattungsfähig', purchaseCurrency: 'Kaufwährung', sortOrder: { diff --git a/src/languages/el.ts b/src/languages/el.ts index 9d41fc6123e2..1f86df0c0de8 100644 --- a/src/languages/el.ts +++ b/src/languages/el.ts @@ -10441,6 +10441,7 @@ ${reportName}`, posted: 'Καταχωρισμένο', withdrawn: 'Ανακλήθηκε', billable: 'Χρεώσιμη', + rejected: 'Απορρίφθηκε', reimbursable: 'Επανεντάξιμο', purchaseCurrency: 'Νόμισμα αγοράς', sortOrder: { diff --git a/src/languages/en.ts b/src/languages/en.ts index d444e6990cb0..de93968c5084 100644 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -10486,6 +10486,7 @@ const translations = { createdDate: 'Created date', withdrawn: 'Withdrawn', billable: 'Billable', + rejected: 'Rejected', reimbursable: 'Reimbursable', purchaseCurrency: 'Purchase currency', sortOrder: { diff --git a/src/languages/es.ts b/src/languages/es.ts index 195f7b154cc3..b56cb7d9df99 100644 --- a/src/languages/es.ts +++ b/src/languages/es.ts @@ -10081,6 +10081,7 @@ ${reportName}`, posted: 'Contabilización', withdrawn: 'Retirada', billable: 'Facturable', + rejected: 'Rechazado', reimbursable: 'Reembolsable', purchaseCurrency: 'Moneda de compra', sortOrder: { diff --git a/src/languages/fr.ts b/src/languages/fr.ts index 6c219fc9581d..00f4b752c3b5 100644 --- a/src/languages/fr.ts +++ b/src/languages/fr.ts @@ -10262,6 +10262,7 @@ Ajoutez davantage de règles de dépenses pour protéger la trésorerie de l’e posted: 'Publié', withdrawn: 'Retiré', billable: 'Facturable', + rejected: 'Rejeté', reimbursable: 'Remboursable', purchaseCurrency: 'Devise d’achat', sortOrder: { diff --git a/src/languages/it.ts b/src/languages/it.ts index 692e3f5cc786..0389bd7d30c8 100644 --- a/src/languages/it.ts +++ b/src/languages/it.ts @@ -10188,6 +10188,7 @@ Aggiungi altre regole di spesa per proteggere il flusso di cassa aziendale.`, posted: 'Pubblicato', withdrawn: 'Ritirata', billable: 'Fatturabile', + rejected: 'Rifiutato', reimbursable: 'Rimborsabile', purchaseCurrency: 'Valuta di acquisto', sortOrder: { diff --git a/src/languages/ja.ts b/src/languages/ja.ts index 5296eff81e69..28799a24d53c 100644 --- a/src/languages/ja.ts +++ b/src/languages/ja.ts @@ -10045,6 +10045,7 @@ ${reportName}`, posted: '投稿日', withdrawn: '取下済み', billable: '請求可能', + rejected: '却下済み', reimbursable: '払い戻し対象', purchaseCurrency: '購入通貨', sortOrder: { diff --git a/src/languages/nl.ts b/src/languages/nl.ts index 033fa4777a65..53e6d88d4abe 100644 --- a/src/languages/nl.ts +++ b/src/languages/nl.ts @@ -10154,6 +10154,7 @@ er bestedingsregels toe om de kasstroom van het bedrijf te beschermen.`, posted: 'Gepost', withdrawn: 'Ingetrokken', billable: 'Factureerbaar', + rejected: 'Afgekeurd', reimbursable: 'Vergoedbaar', purchaseCurrency: 'Aankoopvaluta', sortOrder: { diff --git a/src/languages/pl.ts b/src/languages/pl.ts index bae5f41e4b94..459bbc792671 100644 --- a/src/languages/pl.ts +++ b/src/languages/pl.ts @@ -10171,6 +10171,7 @@ Dodaj więcej zasad wydatków, żeby chronić płynność finansową firmy.`, posted: 'Opublikowano', withdrawn: 'Wycofano', billable: 'Fakturowalne', + rejected: 'Odrzucone', reimbursable: 'Podlegające zwrotowi', purchaseCurrency: 'Waluta zakupu', sortOrder: { diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts index 4b4a431dc8e5..ca1dca14cc0d 100644 --- a/src/languages/pt-BR.ts +++ b/src/languages/pt-BR.ts @@ -10152,6 +10152,7 @@ Adicione mais regras de gasto para proteger o fluxo de caixa da empresa.`, posted: 'Publicado', withdrawn: 'Retirado', billable: 'Faturável', + rejected: 'Rejeitado', reimbursable: 'Reembolsável', purchaseCurrency: 'Moeda de compra', sortOrder: { diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts index ee1a6bd65111..ce7ae7a72f3b 100644 --- a/src/languages/zh-hans.ts +++ b/src/languages/zh-hans.ts @@ -9776,6 +9776,7 @@ ${reportName}`, posted: '已发布', withdrawn: '已撤回', billable: '可计费', + rejected: '已拒绝', reimbursable: '可报销', purchaseCurrency: '购买货币', sortOrder: { diff --git a/src/libs/SearchAutocompleteUtils.ts b/src/libs/SearchAutocompleteUtils.ts index 565de6f898f3..cc7d6a71d8b2 100644 --- a/src/libs/SearchAutocompleteUtils.ts +++ b/src/libs/SearchAutocompleteUtils.ts @@ -251,6 +251,7 @@ function filterOutRangesWithCorrectValue( return viewList.includes(range.value); case CONST.SEARCH.SYNTAX_FILTER_KEYS.BILLABLE: case CONST.SEARCH.SYNTAX_FILTER_KEYS.REIMBURSABLE: + case CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED: return booleanList.includes(range.value); case CONST.SEARCH.SYNTAX_FILTER_KEYS.DATE: case CONST.SEARCH.SYNTAX_FILTER_KEYS.SUBMITTED: diff --git a/src/libs/SearchParser/autocompleteParser.js b/src/libs/SearchParser/autocompleteParser.js index 84f09d2facc4..43808487599a 100644 --- a/src/libs/SearchParser/autocompleteParser.js +++ b/src/libs/SearchParser/autocompleteParser.js @@ -228,97 +228,98 @@ function peg$parse(input, options) { var peg$c42 = "withdrawalid"; var peg$c43 = "withdrawal-id"; var peg$c44 = "billable"; - var peg$c45 = "reimbursable"; - var peg$c46 = "type"; - var peg$c47 = "status"; - var peg$c48 = "sortBy"; - var peg$c49 = "sort-by"; - var peg$c50 = "sortOrder"; - var peg$c51 = "sort-order"; - var peg$c52 = "policyID"; - var peg$c53 = "workspace"; - var peg$c54 = "submitted"; - var peg$c55 = "approved"; - var peg$c56 = "anyapproval"; - var peg$c57 = "any-approval"; - var peg$c58 = "paid"; - var peg$c59 = "exported"; - var peg$c60 = "posted"; - var peg$c61 = "withdrawn"; - var peg$c62 = "groupby"; - var peg$c63 = "group-by"; - var peg$c64 = "limit"; - var peg$c65 = "feed"; - var peg$c66 = "title"; - var peg$c67 = "submitteruserid"; - var peg$c68 = "submitter-user-id"; - var peg$c69 = "submitterpayrollid"; - var peg$c70 = "submitter-payroll-id"; - var peg$c71 = "orderdealnumbers"; - var peg$c72 = "order-deal-numbers"; - var peg$c73 = "assignee"; - var peg$c74 = "createdby"; - var peg$c75 = "created-by"; - var peg$c76 = "action"; - var peg$c77 = "total"; - var peg$c78 = "has"; - var peg$c79 = "is"; - var peg$c80 = "purchaseamount"; - var peg$c81 = "purchase-amount"; - var peg$c82 = "purchasecurrency"; - var peg$c83 = "purchase-currency"; - var peg$c84 = "amountdebited"; - var peg$c85 = "amount-debited"; - var peg$c86 = "amountreimbursed"; - var peg$c87 = "amount-reimbursed"; - var peg$c88 = "columns"; - var peg$c89 = "view"; - var peg$c90 = "compare"; - var peg$c91 = "per-diem"; - var peg$c92 = "drafts"; - var peg$c93 = "draft"; - var peg$c94 = "tax"; - var peg$c95 = "policy-name"; - var peg$c96 = "long-report-id"; - var peg$c97 = "exported-to"; - var peg$c98 = "exportedto"; - var peg$c99 = "exchange-rate"; - var peg$c100 = "reimbursable-total"; - var peg$c101 = "non-reimbursable-total"; - var peg$c102 = "group-from"; - var peg$c103 = "group-expenses"; - var peg$c104 = "group-total"; - var peg$c105 = "group-card"; - var peg$c106 = "group-feed"; - var peg$c107 = "group-bank-account"; - var peg$c108 = "group-withdrawn"; - var peg$c109 = "group-withdrawal-id"; - var peg$c110 = "group-amount-debited"; - var peg$c111 = "group-amount-reimbursed"; - var peg$c112 = "group-category"; - var peg$c113 = "group-tag"; - var peg$c114 = "group-merchant"; - var peg$c115 = "group-day"; - var peg$c116 = "group-month"; - var peg$c117 = "group-week"; - var peg$c118 = "group-year"; - var peg$c119 = "group-quarter"; - var peg$c120 = "*:"; - var peg$c121 = "!="; - var peg$c122 = ">="; - var peg$c123 = ">"; - var peg$c124 = "<="; - var peg$c125 = "<"; - var peg$c126 = "\\"; - var peg$c127 = "\u201C"; - var peg$c128 = "\u201D"; - var peg$c129 = "\""; - var peg$c130 = "footercount"; - var peg$c131 = "footer-count"; - var peg$c132 = "footercurrency"; - var peg$c133 = "footer-currency"; - var peg$c134 = "footertotal"; - var peg$c135 = "footer-total"; + var peg$c45 = "declined"; + var peg$c46 = "reimbursable"; + var peg$c47 = "type"; + var peg$c48 = "status"; + var peg$c49 = "sortBy"; + var peg$c50 = "sort-by"; + var peg$c51 = "sortOrder"; + var peg$c52 = "sort-order"; + var peg$c53 = "policyID"; + var peg$c54 = "workspace"; + var peg$c55 = "submitted"; + var peg$c56 = "approved"; + var peg$c57 = "anyapproval"; + var peg$c58 = "any-approval"; + var peg$c59 = "paid"; + var peg$c60 = "exported"; + var peg$c61 = "posted"; + var peg$c62 = "withdrawn"; + var peg$c63 = "groupby"; + var peg$c64 = "group-by"; + var peg$c65 = "limit"; + var peg$c66 = "feed"; + var peg$c67 = "title"; + var peg$c68 = "submitteruserid"; + var peg$c69 = "submitter-user-id"; + var peg$c70 = "submitterpayrollid"; + var peg$c71 = "submitter-payroll-id"; + var peg$c72 = "orderdealnumbers"; + var peg$c73 = "order-deal-numbers"; + var peg$c74 = "assignee"; + var peg$c75 = "createdby"; + var peg$c76 = "created-by"; + var peg$c77 = "action"; + var peg$c78 = "total"; + var peg$c79 = "has"; + var peg$c80 = "is"; + var peg$c81 = "purchaseamount"; + var peg$c82 = "purchase-amount"; + var peg$c83 = "purchasecurrency"; + var peg$c84 = "purchase-currency"; + var peg$c85 = "amountdebited"; + var peg$c86 = "amount-debited"; + var peg$c87 = "amountreimbursed"; + var peg$c88 = "amount-reimbursed"; + var peg$c89 = "columns"; + var peg$c90 = "view"; + var peg$c91 = "compare"; + var peg$c92 = "per-diem"; + var peg$c93 = "drafts"; + var peg$c94 = "draft"; + var peg$c95 = "tax"; + var peg$c96 = "policy-name"; + var peg$c97 = "long-report-id"; + var peg$c98 = "exported-to"; + var peg$c99 = "exportedto"; + var peg$c100 = "exchange-rate"; + var peg$c101 = "reimbursable-total"; + var peg$c102 = "non-reimbursable-total"; + var peg$c103 = "group-from"; + var peg$c104 = "group-expenses"; + var peg$c105 = "group-total"; + var peg$c106 = "group-card"; + var peg$c107 = "group-feed"; + var peg$c108 = "group-bank-account"; + var peg$c109 = "group-withdrawn"; + var peg$c110 = "group-withdrawal-id"; + var peg$c111 = "group-amount-debited"; + var peg$c112 = "group-amount-reimbursed"; + var peg$c113 = "group-category"; + var peg$c114 = "group-tag"; + var peg$c115 = "group-merchant"; + var peg$c116 = "group-day"; + var peg$c117 = "group-month"; + var peg$c118 = "group-week"; + var peg$c119 = "group-year"; + var peg$c120 = "group-quarter"; + var peg$c121 = "*:"; + var peg$c122 = "!="; + var peg$c123 = ">="; + var peg$c124 = ">"; + var peg$c125 = "<="; + var peg$c126 = "<"; + var peg$c127 = "\\"; + var peg$c128 = "\u201C"; + var peg$c129 = "\u201D"; + var peg$c130 = "\""; + var peg$c131 = "footercount"; + var peg$c132 = "footer-count"; + var peg$c133 = "footercurrency"; + var peg$c134 = "footer-currency"; + var peg$c135 = "footertotal"; + var peg$c136 = "footer-total"; var peg$r0 = /^[ \t\r\n\xA0,:=<>!]/; var peg$r1 = /^[:=]/; @@ -383,114 +384,115 @@ function peg$parse(input, options) { var peg$e45 = peg$literalExpectation("withdrawalID", true); var peg$e46 = peg$literalExpectation("withdrawal-id", true); var peg$e47 = peg$literalExpectation("billable", true); - var peg$e48 = peg$literalExpectation("reimbursable", true); - var peg$e49 = peg$literalExpectation("type", true); - var peg$e50 = peg$literalExpectation("status", true); - var peg$e51 = peg$literalExpectation("sortBy", false); - var peg$e52 = peg$literalExpectation("sort-by", true); - var peg$e53 = peg$literalExpectation("sortOrder", false); - var peg$e54 = peg$literalExpectation("sort-order", true); - var peg$e55 = peg$literalExpectation("policyID", false); - var peg$e56 = peg$literalExpectation("workspace", true); - var peg$e57 = peg$literalExpectation("submitted", true); - var peg$e58 = peg$literalExpectation("approved", true); - var peg$e59 = peg$literalExpectation("anyApproval", true); - var peg$e60 = peg$literalExpectation("any-approval", true); - var peg$e61 = peg$literalExpectation("paid", true); - var peg$e62 = peg$literalExpectation("exported", true); - var peg$e63 = peg$literalExpectation("posted", true); - var peg$e64 = peg$literalExpectation("withdrawn", true); - var peg$e65 = peg$literalExpectation("groupBy", true); - var peg$e66 = peg$literalExpectation("group-by", true); - var peg$e67 = peg$literalExpectation("limit", true); - var peg$e68 = peg$literalExpectation("feed", true); - var peg$e69 = peg$literalExpectation("title", true); - var peg$e70 = peg$literalExpectation("submitterUserID", true); - var peg$e71 = peg$literalExpectation("submitter-user-id", true); - var peg$e72 = peg$literalExpectation("submitterPayrollID", true); - var peg$e73 = peg$literalExpectation("submitter-payroll-id", true); - var peg$e74 = peg$literalExpectation("orderDealNumbers", true); - var peg$e75 = peg$literalExpectation("order-deal-numbers", true); - var peg$e76 = peg$literalExpectation("assignee", true); - var peg$e77 = peg$literalExpectation("createdBy", true); - var peg$e78 = peg$literalExpectation("created-by", true); - var peg$e79 = peg$literalExpectation("action", true); - var peg$e80 = peg$literalExpectation("total", true); - var peg$e81 = peg$literalExpectation("has", true); - var peg$e82 = peg$literalExpectation("is", true); - var peg$e83 = peg$literalExpectation("purchaseAmount", true); - var peg$e84 = peg$literalExpectation("purchase-amount", true); - var peg$e85 = peg$literalExpectation("purchaseCurrency", true); - var peg$e86 = peg$literalExpectation("purchase-currency", true); - var peg$e87 = peg$literalExpectation("amountDebited", true); - var peg$e88 = peg$literalExpectation("amount-debited", true); - var peg$e89 = peg$literalExpectation("amountReimbursed", true); - var peg$e90 = peg$literalExpectation("amount-reimbursed", true); - var peg$e91 = peg$literalExpectation("columns", true); - var peg$e92 = peg$literalExpectation("view", true); - var peg$e93 = peg$literalExpectation("compare", true); - var peg$e94 = peg$literalExpectation("per-diem", true); - var peg$e95 = peg$literalExpectation("drafts", true); - var peg$e96 = peg$literalExpectation("draft", true); - var peg$e97 = peg$literalExpectation("tax", true); - var peg$e98 = peg$literalExpectation("policy-name", true); - var peg$e99 = peg$literalExpectation("long-report-id", true); - var peg$e100 = peg$literalExpectation("exported-to", true); - var peg$e101 = peg$classExpectation([":", "="], false, false); - var peg$e102 = peg$literalExpectation("exportedTo", true); - var peg$e103 = peg$literalExpectation("exchange-rate", true); - var peg$e104 = peg$literalExpectation("reimbursable-total", true); - var peg$e105 = peg$literalExpectation("non-reimbursable-total", true); - var peg$e106 = peg$literalExpectation("group-from", true); - var peg$e107 = peg$literalExpectation("group-expenses", true); - var peg$e108 = peg$literalExpectation("group-total", true); - var peg$e109 = peg$literalExpectation("group-card", true); - var peg$e110 = peg$literalExpectation("group-feed", true); - var peg$e111 = peg$literalExpectation("group-bank-account", true); - var peg$e112 = peg$literalExpectation("group-withdrawn", true); - var peg$e113 = peg$literalExpectation("group-withdrawal-id", true); - var peg$e114 = peg$literalExpectation("group-amount-debited", true); - var peg$e115 = peg$literalExpectation("group-amount-reimbursed", true); - var peg$e116 = peg$literalExpectation("group-category", true); - var peg$e117 = peg$literalExpectation("group-tag", true); - var peg$e118 = peg$literalExpectation("group-merchant", true); - var peg$e119 = peg$literalExpectation("group-day", true); - var peg$e120 = peg$literalExpectation("group-month", true); - var peg$e121 = peg$literalExpectation("group-week", true); - var peg$e122 = peg$literalExpectation("group-year", true); - var peg$e123 = peg$literalExpectation("group-quarter", true); - var peg$e124 = peg$otherExpectation("operator"); - var peg$e125 = peg$literalExpectation("*:", false); - var peg$e126 = peg$literalExpectation("!=", false); - var peg$e127 = peg$literalExpectation(">=", false); - var peg$e128 = peg$literalExpectation(">", false); - var peg$e129 = peg$literalExpectation("<=", false); - var peg$e130 = peg$literalExpectation("<", false); - var peg$e131 = peg$literalExpectation("\\", false); - var peg$e132 = peg$classExpectation([",", "\"", "\u201D", "\u201C", "\\"], false, false); - var peg$e133 = peg$otherExpectation("word"); - var peg$e134 = peg$classExpectation([" ", ",", "\t", "\n", "\r", "\xA0"], true, false); - var peg$e135 = peg$otherExpectation("whitespace"); - var peg$e136 = peg$classExpectation([" ", "\t", "\r", "\n", "\xA0"], false, false); - var peg$e137 = peg$otherExpectation("quote"); - var peg$e138 = peg$classExpectation([" ", ",", "\"", "\u201D", "\u201C", "\t", "\n", "\r", "\xA0"], true, false); - var peg$e139 = peg$classExpectation(["\"", ["\u201C", "\u201D"]], false, false); - var peg$e140 = peg$classExpectation(["\"", "\u201D", "\u201C", "\r", "\n"], true, false); - var peg$e141 = peg$literalExpectation("\u201C", false); - var peg$e142 = peg$literalExpectation("\u201D", false); - var peg$e143 = peg$literalExpectation("\"", false); - var peg$e144 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0", ["a", "z"], ["A", "Z"], ["0", "9"]], false, false); - var peg$e145 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"]], false, false); - var peg$e146 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0"], false, false); - var peg$e147 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0", ["a", "z"], ["A", "Z"]], false, false); - var peg$e148 = peg$classExpectation([","], false, false); - var peg$e149 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0", ","], false, false); - var peg$e150 = peg$literalExpectation("footerCount", true); - var peg$e151 = peg$literalExpectation("footer-count", true); - var peg$e152 = peg$literalExpectation("footerCurrency", true); - var peg$e153 = peg$literalExpectation("footer-currency", true); - var peg$e154 = peg$literalExpectation("footerTotal", true); - var peg$e155 = peg$literalExpectation("footer-total", true); + var peg$e48 = peg$literalExpectation("declined", true); + var peg$e49 = peg$literalExpectation("reimbursable", true); + var peg$e50 = peg$literalExpectation("type", true); + var peg$e51 = peg$literalExpectation("status", true); + var peg$e52 = peg$literalExpectation("sortBy", false); + var peg$e53 = peg$literalExpectation("sort-by", true); + var peg$e54 = peg$literalExpectation("sortOrder", false); + var peg$e55 = peg$literalExpectation("sort-order", true); + var peg$e56 = peg$literalExpectation("policyID", false); + var peg$e57 = peg$literalExpectation("workspace", true); + var peg$e58 = peg$literalExpectation("submitted", true); + var peg$e59 = peg$literalExpectation("approved", true); + var peg$e60 = peg$literalExpectation("anyApproval", true); + var peg$e61 = peg$literalExpectation("any-approval", true); + var peg$e62 = peg$literalExpectation("paid", true); + var peg$e63 = peg$literalExpectation("exported", true); + var peg$e64 = peg$literalExpectation("posted", true); + var peg$e65 = peg$literalExpectation("withdrawn", true); + var peg$e66 = peg$literalExpectation("groupBy", true); + var peg$e67 = peg$literalExpectation("group-by", true); + var peg$e68 = peg$literalExpectation("limit", true); + var peg$e69 = peg$literalExpectation("feed", true); + var peg$e70 = peg$literalExpectation("title", true); + var peg$e71 = peg$literalExpectation("submitterUserID", true); + var peg$e72 = peg$literalExpectation("submitter-user-id", true); + var peg$e73 = peg$literalExpectation("submitterPayrollID", true); + var peg$e74 = peg$literalExpectation("submitter-payroll-id", true); + var peg$e75 = peg$literalExpectation("orderDealNumbers", true); + var peg$e76 = peg$literalExpectation("order-deal-numbers", true); + var peg$e77 = peg$literalExpectation("assignee", true); + var peg$e78 = peg$literalExpectation("createdBy", true); + var peg$e79 = peg$literalExpectation("created-by", true); + var peg$e80 = peg$literalExpectation("action", true); + var peg$e81 = peg$literalExpectation("total", true); + var peg$e82 = peg$literalExpectation("has", true); + var peg$e83 = peg$literalExpectation("is", true); + var peg$e84 = peg$literalExpectation("purchaseAmount", true); + var peg$e85 = peg$literalExpectation("purchase-amount", true); + var peg$e86 = peg$literalExpectation("purchaseCurrency", true); + var peg$e87 = peg$literalExpectation("purchase-currency", true); + var peg$e88 = peg$literalExpectation("amountDebited", true); + var peg$e89 = peg$literalExpectation("amount-debited", true); + var peg$e90 = peg$literalExpectation("amountReimbursed", true); + var peg$e91 = peg$literalExpectation("amount-reimbursed", true); + var peg$e92 = peg$literalExpectation("columns", true); + var peg$e93 = peg$literalExpectation("view", true); + var peg$e94 = peg$literalExpectation("compare", true); + var peg$e95 = peg$literalExpectation("per-diem", true); + var peg$e96 = peg$literalExpectation("drafts", true); + var peg$e97 = peg$literalExpectation("draft", true); + var peg$e98 = peg$literalExpectation("tax", true); + var peg$e99 = peg$literalExpectation("policy-name", true); + var peg$e100 = peg$literalExpectation("long-report-id", true); + var peg$e101 = peg$literalExpectation("exported-to", true); + var peg$e102 = peg$classExpectation([":", "="], false, false); + var peg$e103 = peg$literalExpectation("exportedTo", true); + var peg$e104 = peg$literalExpectation("exchange-rate", true); + var peg$e105 = peg$literalExpectation("reimbursable-total", true); + var peg$e106 = peg$literalExpectation("non-reimbursable-total", true); + var peg$e107 = peg$literalExpectation("group-from", true); + var peg$e108 = peg$literalExpectation("group-expenses", true); + var peg$e109 = peg$literalExpectation("group-total", true); + var peg$e110 = peg$literalExpectation("group-card", true); + var peg$e111 = peg$literalExpectation("group-feed", true); + var peg$e112 = peg$literalExpectation("group-bank-account", true); + var peg$e113 = peg$literalExpectation("group-withdrawn", true); + var peg$e114 = peg$literalExpectation("group-withdrawal-id", true); + var peg$e115 = peg$literalExpectation("group-amount-debited", true); + var peg$e116 = peg$literalExpectation("group-amount-reimbursed", true); + var peg$e117 = peg$literalExpectation("group-category", true); + var peg$e118 = peg$literalExpectation("group-tag", true); + var peg$e119 = peg$literalExpectation("group-merchant", true); + var peg$e120 = peg$literalExpectation("group-day", true); + var peg$e121 = peg$literalExpectation("group-month", true); + var peg$e122 = peg$literalExpectation("group-week", true); + var peg$e123 = peg$literalExpectation("group-year", true); + var peg$e124 = peg$literalExpectation("group-quarter", true); + var peg$e125 = peg$otherExpectation("operator"); + var peg$e126 = peg$literalExpectation("*:", false); + var peg$e127 = peg$literalExpectation("!=", false); + var peg$e128 = peg$literalExpectation(">=", false); + var peg$e129 = peg$literalExpectation(">", false); + var peg$e130 = peg$literalExpectation("<=", false); + var peg$e131 = peg$literalExpectation("<", false); + var peg$e132 = peg$literalExpectation("\\", false); + var peg$e133 = peg$classExpectation([",", "\"", "\u201D", "\u201C", "\\"], false, false); + var peg$e134 = peg$otherExpectation("word"); + var peg$e135 = peg$classExpectation([" ", ",", "\t", "\n", "\r", "\xA0"], true, false); + var peg$e136 = peg$otherExpectation("whitespace"); + var peg$e137 = peg$classExpectation([" ", "\t", "\r", "\n", "\xA0"], false, false); + var peg$e138 = peg$otherExpectation("quote"); + var peg$e139 = peg$classExpectation([" ", ",", "\"", "\u201D", "\u201C", "\t", "\n", "\r", "\xA0"], true, false); + var peg$e140 = peg$classExpectation(["\"", ["\u201C", "\u201D"]], false, false); + var peg$e141 = peg$classExpectation(["\"", "\u201D", "\u201C", "\r", "\n"], true, false); + var peg$e142 = peg$literalExpectation("\u201C", false); + var peg$e143 = peg$literalExpectation("\u201D", false); + var peg$e144 = peg$literalExpectation("\"", false); + var peg$e145 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0", ["a", "z"], ["A", "Z"], ["0", "9"]], false, false); + var peg$e146 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"]], false, false); + var peg$e147 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0"], false, false); + var peg$e148 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0", ["a", "z"], ["A", "Z"]], false, false); + var peg$e149 = peg$classExpectation([","], false, false); + var peg$e150 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0", ","], false, false); + var peg$e151 = peg$literalExpectation("footerCount", true); + var peg$e152 = peg$literalExpectation("footer-count", true); + var peg$e153 = peg$literalExpectation("footerCurrency", true); + var peg$e154 = peg$literalExpectation("footer-currency", true); + var peg$e155 = peg$literalExpectation("footerTotal", true); + var peg$e156 = peg$literalExpectation("footer-total", true); var peg$f0 = function(ranges) { return { autocomplete, ranges }; }; var peg$f1 = function(filters) { return filters.filter(Boolean).flat(); }; @@ -589,113 +591,114 @@ function peg$parse(input, options) { var peg$f33 = function() { return "paidStatus"; }; var peg$f34 = function() { return "withdrawalID"; }; var peg$f35 = function() { return "billable"; }; - var peg$f36 = function() { return "reimbursable"; }; - var peg$f37 = function() { return "type"; }; - var peg$f38 = function() { return "status"; }; - var peg$f39 = function() { return "sortBy"; }; - var peg$f40 = function() { return "sortOrder"; }; - var peg$f41 = function() { return "policyID"; }; - var peg$f42 = function() { return "submitted"; }; - var peg$f43 = function() { return "approved"; }; - var peg$f44 = function() { return "anyApproval"; }; + var peg$f36 = function() { return "declined"; }; + var peg$f37 = function() { return "reimbursable"; }; + var peg$f38 = function() { return "type"; }; + var peg$f39 = function() { return "status"; }; + var peg$f40 = function() { return "sortBy"; }; + var peg$f41 = function() { return "sortOrder"; }; + var peg$f42 = function() { return "policyID"; }; + var peg$f43 = function() { return "submitted"; }; + var peg$f44 = function() { return "approved"; }; var peg$f45 = function() { return "anyApproval"; }; - var peg$f46 = function() { return "paid"; }; - var peg$f47 = function() { return "exported"; }; - var peg$f48 = function() { return "posted"; }; - var peg$f49 = function() { return "withdrawn"; }; - var peg$f50 = function() { return "groupBy"; }; - var peg$f51 = function() { return "limit"; }; - var peg$f52 = function() { return "feed"; }; - var peg$f53 = function() { return "title"; }; - var peg$f54 = function() { return "submitterUserID"; }; - var peg$f55 = function() { return "submitterPayrollID"; }; - var peg$f56 = function() { return "orderDealNumbers"; }; - var peg$f57 = function() { return "assignee"; }; - var peg$f58 = function() { return "createdBy"; }; - var peg$f59 = function() { return "action"; }; - var peg$f60 = function() {return "total"; }; - var peg$f61 = function() {return "has"; }; - var peg$f62 = function() {return "is"; }; - var peg$f63 = function() {return "purchaseAmount"}; - var peg$f64 = function() {return "purchaseCurrency"}; - var peg$f65 = function() {return "amountDebited"}; - var peg$f66 = function() {return "amountReimbursed"}; - var peg$f67 = function() { + var peg$f46 = function() { return "anyApproval"; }; + var peg$f47 = function() { return "paid"; }; + var peg$f48 = function() { return "exported"; }; + var peg$f49 = function() { return "posted"; }; + var peg$f50 = function() { return "withdrawn"; }; + var peg$f51 = function() { return "groupBy"; }; + var peg$f52 = function() { return "limit"; }; + var peg$f53 = function() { return "feed"; }; + var peg$f54 = function() { return "title"; }; + var peg$f55 = function() { return "submitterUserID"; }; + var peg$f56 = function() { return "submitterPayrollID"; }; + var peg$f57 = function() { return "orderDealNumbers"; }; + var peg$f58 = function() { return "assignee"; }; + var peg$f59 = function() { return "createdBy"; }; + var peg$f60 = function() { return "action"; }; + var peg$f61 = function() {return "total"; }; + var peg$f62 = function() {return "has"; }; + var peg$f63 = function() {return "is"; }; + var peg$f64 = function() {return "purchaseAmount"}; + var peg$f65 = function() {return "purchaseCurrency"}; + var peg$f66 = function() {return "amountDebited"}; + var peg$f67 = function() {return "amountReimbursed"}; + var peg$f68 = function() { isColumnsContext = true; return "columns"; }; - var peg$f68 = function() {return "view"}; - var peg$f69 = function() {return "compare"}; - var peg$f70 = function() { return isColumnsContext; }; - var peg$f71 = function() { return "perDiem"; }; - var peg$f72 = function() { return "drafts"; }; - var peg$f73 = function() { return "originalamount"; }; - var peg$f74 = function() { return "taxAmount"; }; - var peg$f75 = function() { return "taxrate"; }; - var peg$f76 = function() { return "policyname"; }; - var peg$f77 = function() { return "withdrawalID"; }; - var peg$f78 = function() { return "bankAccount"; }; - var peg$f79 = function() { return "reportID"; }; - var peg$f80 = function() { return "base62ReportID"; }; - var peg$f81 = function() { return "exportedto"; }; - var peg$f82 = function() { return "exportedTo"; }; + var peg$f69 = function() {return "view"}; + var peg$f70 = function() {return "compare"}; + var peg$f71 = function() { return isColumnsContext; }; + var peg$f72 = function() { return "perDiem"; }; + var peg$f73 = function() { return "drafts"; }; + var peg$f74 = function() { return "originalamount"; }; + var peg$f75 = function() { return "taxAmount"; }; + var peg$f76 = function() { return "taxrate"; }; + var peg$f77 = function() { return "policyname"; }; + var peg$f78 = function() { return "withdrawalID"; }; + var peg$f79 = function() { return "bankAccount"; }; + var peg$f80 = function() { return "reportID"; }; + var peg$f81 = function() { return "base62ReportID"; }; + var peg$f82 = function() { return "exportedto"; }; var peg$f83 = function() { return "exportedTo"; }; - var peg$f84 = function() { return "exchangeRate"; }; - var peg$f85 = function() { return "reimbursableTotal"; }; - var peg$f86 = function() { return "nonReimbursableTotal"; }; - var peg$f87 = function() { return "groupFrom"; }; - var peg$f88 = function() { return "groupExpenses"; }; - var peg$f89 = function() { return "groupTotal"; }; - var peg$f90 = function() { return "groupCard"; }; - var peg$f91 = function() { return "groupFeed"; }; - var peg$f92 = function() { return "groupBankAccount"; }; - var peg$f93 = function() { return "groupWithdrawn"; }; - var peg$f94 = function() { return "groupWithdrawalID"; }; - var peg$f95 = function() { return "groupAmountDebited"; }; - var peg$f96 = function() { return "groupAmountReimbursed"; }; - var peg$f97 = function() { return "amountDebited"; }; - var peg$f98 = function() { return "amountReimbursed"; }; - var peg$f99 = function() { return "groupCategory"; }; - var peg$f100 = function() { return "groupTag"; }; - var peg$f101 = function() { return "groupMerchant"; }; - var peg$f102 = function() { return "groupday"; }; - var peg$f103 = function() { return "groupmonth"; }; - var peg$f104 = function() { return "groupweek"; }; - var peg$f105 = function() { return "groupyear"; }; - var peg$f106 = function() { return "groupquarter"; }; - var peg$f107 = function() { return "contains"; }; - var peg$f108 = function() { return "eq"; }; - var peg$f109 = function() { return "neq"; }; - var peg$f110 = function() { return "gte"; }; - var peg$f111 = function() { return "gt"; }; - var peg$f112 = function() { return "lte"; }; - var peg$f113 = function() { return "lt"; }; - var peg$f114 = function(o) { + var peg$f84 = function() { return "exportedTo"; }; + var peg$f85 = function() { return "exchangeRate"; }; + var peg$f86 = function() { return "reimbursableTotal"; }; + var peg$f87 = function() { return "nonReimbursableTotal"; }; + var peg$f88 = function() { return "groupFrom"; }; + var peg$f89 = function() { return "groupExpenses"; }; + var peg$f90 = function() { return "groupTotal"; }; + var peg$f91 = function() { return "groupCard"; }; + var peg$f92 = function() { return "groupFeed"; }; + var peg$f93 = function() { return "groupBankAccount"; }; + var peg$f94 = function() { return "groupWithdrawn"; }; + var peg$f95 = function() { return "groupWithdrawalID"; }; + var peg$f96 = function() { return "groupAmountDebited"; }; + var peg$f97 = function() { return "groupAmountReimbursed"; }; + var peg$f98 = function() { return "amountDebited"; }; + var peg$f99 = function() { return "amountReimbursed"; }; + var peg$f100 = function() { return "groupCategory"; }; + var peg$f101 = function() { return "groupTag"; }; + var peg$f102 = function() { return "groupMerchant"; }; + var peg$f103 = function() { return "groupday"; }; + var peg$f104 = function() { return "groupmonth"; }; + var peg$f105 = function() { return "groupweek"; }; + var peg$f106 = function() { return "groupyear"; }; + var peg$f107 = function() { return "groupquarter"; }; + var peg$f108 = function() { return "contains"; }; + var peg$f109 = function() { return "eq"; }; + var peg$f110 = function() { return "neq"; }; + var peg$f111 = function() { return "gte"; }; + var peg$f112 = function() { return "gt"; }; + var peg$f113 = function() { return "lte"; }; + var peg$f114 = function() { return "lt"; }; + var peg$f115 = function(o) { if (nameOperator) { expectingNestedQuote = (o === "eq" || o === "contains"); } isColumnsContext = false; return o; }; - var peg$f115 = function(c) { return c; }; - var peg$f116 = function(chars) { return chars.join("").trim(); }; - var peg$f117 = function() { + var peg$f116 = function(c) { return c; }; + var peg$f117 = function(chars) { return chars.join("").trim(); }; + var peg$f118 = function() { isColumnsContext = false; return "and"; }; - var peg$f118 = function() { return expectingNestedQuote; }; - var peg$f119 = function(start, inner, end) { //handle no-breaking space + var peg$f119 = function() { return expectingNestedQuote; }; + var peg$f120 = function(start, inner, end) { //handle no-breaking space return [...start, '"', ...inner, '"', ...end].join(""); }; - var peg$f120 = function(start) {return "“"}; - var peg$f121 = function(start) {return "”"}; - var peg$f122 = function(start) {return "\""}; - var peg$f123 = function(start, inner, end) { + var peg$f121 = function(start) {return "“"}; + var peg$f122 = function(start) {return "”"}; + var peg$f123 = function(start) {return "\""}; + var peg$f124 = function(start, inner, end) { return [...start, '"', ...inner, '"'].join(""); }; - var peg$f124 = function() { return "footerCount"; }; - var peg$f125 = function() { return "footerCurrency"; }; - var peg$f126 = function() { return "footerTotal"; }; + var peg$f125 = function() { return "footerCount"; }; + var peg$f126 = function() { return "footerCurrency"; }; + var peg$f127 = function() { return "footerTotal"; }; var peg$currPos = options.peg$currPos | 0; var peg$savedPos = peg$currPos; var peg$posDetailsCache = [{ line: 1, column: 1 }]; @@ -1166,69 +1169,72 @@ function peg$parse(input, options) { if (s1 === peg$FAILED) { s1 = peg$parsebillable(); if (s1 === peg$FAILED) { - s1 = peg$parsepolicyID(); + s1 = peg$parsedeclined(); if (s1 === peg$FAILED) { - s1 = peg$parseaction(); + s1 = peg$parsepolicyID(); if (s1 === peg$FAILED) { - s1 = peg$parsedate(); + s1 = peg$parseaction(); if (s1 === peg$FAILED) { - s1 = peg$parsesubmitted(); + s1 = peg$parsedate(); if (s1 === peg$FAILED) { - s1 = peg$parseanyApproval(); + s1 = peg$parsesubmitted(); if (s1 === peg$FAILED) { - s1 = peg$parseapproved(); + s1 = peg$parseanyApproval(); if (s1 === peg$FAILED) { - s1 = peg$parsepaid(); + s1 = peg$parseapproved(); if (s1 === peg$FAILED) { - s1 = peg$parseexportedTo(); + s1 = peg$parsepaid(); if (s1 === peg$FAILED) { - s1 = peg$parseexported(); + s1 = peg$parseexportedTo(); if (s1 === peg$FAILED) { - s1 = peg$parsewithdrawn(); + s1 = peg$parseexported(); if (s1 === peg$FAILED) { - s1 = peg$parseposted(); + s1 = peg$parsewithdrawn(); if (s1 === peg$FAILED) { - s1 = peg$parsehas(); + s1 = peg$parseposted(); if (s1 === peg$FAILED) { - s1 = peg$parseis(); + s1 = peg$parsehas(); if (s1 === peg$FAILED) { - s1 = peg$parsepurchaseCurrency(); + s1 = peg$parseis(); if (s1 === peg$FAILED) { - s1 = peg$parsepurchaseAmount(); + s1 = peg$parsepurchaseCurrency(); if (s1 === peg$FAILED) { - s1 = peg$parseamountDebited(); + s1 = peg$parsepurchaseAmount(); if (s1 === peg$FAILED) { - s1 = peg$parseamountReimbursed(); + s1 = peg$parseamountDebited(); if (s1 === peg$FAILED) { - s1 = peg$parseamount(); + s1 = peg$parseamountReimbursed(); if (s1 === peg$FAILED) { - s1 = peg$parsemerchant(); + s1 = peg$parseamount(); if (s1 === peg$FAILED) { - s1 = peg$parsedescription(); + s1 = peg$parsemerchant(); if (s1 === peg$FAILED) { - s1 = peg$parsereportID(); + s1 = peg$parsedescription(); if (s1 === peg$FAILED) { - s1 = peg$parsewithdrawalID(); + s1 = peg$parsereportID(); if (s1 === peg$FAILED) { - s1 = peg$parsetitle(); + s1 = peg$parsewithdrawalID(); if (s1 === peg$FAILED) { - s1 = peg$parsesubmitterUserID(); + s1 = peg$parsetitle(); if (s1 === peg$FAILED) { - s1 = peg$parsesubmitterPayrollID(); + s1 = peg$parsesubmitterUserID(); if (s1 === peg$FAILED) { - s1 = peg$parseorderDealNumbers(); + s1 = peg$parsesubmitterPayrollID(); if (s1 === peg$FAILED) { - s1 = peg$parsereportFieldDynamic(); + s1 = peg$parseorderDealNumbers(); if (s1 === peg$FAILED) { - s1 = peg$parsecolumns(); + s1 = peg$parsereportFieldDynamic(); if (s1 === peg$FAILED) { - s1 = peg$parselimit(); + s1 = peg$parsecolumns(); if (s1 === peg$FAILED) { - s1 = peg$parsefooterCount(); + s1 = peg$parselimit(); if (s1 === peg$FAILED) { - s1 = peg$parsefooterCurrency(); + s1 = peg$parsefooterCount(); if (s1 === peg$FAILED) { - s1 = peg$parsefooterTotal(); + s1 = peg$parsefooterCurrency(); + if (s1 === peg$FAILED) { + s1 = peg$parsefooterTotal(); + } } } } @@ -2069,13 +2075,13 @@ function peg$parse(input, options) { return s0; } - function peg$parsereimbursable() { + function peg$parsedeclined() { var s0, s1; s0 = peg$currPos; - s1 = input.substr(peg$currPos, 12); + s1 = input.substr(peg$currPos, 8); if (s1.toLowerCase() === peg$c45) { - peg$currPos += 12; + peg$currPos += 8; } else { s1 = peg$FAILED; if (peg$silentFails === 0) { peg$fail(peg$e48); } @@ -2089,13 +2095,13 @@ function peg$parse(input, options) { return s0; } - function peg$parsetype() { + function peg$parsereimbursable() { var s0, s1; s0 = peg$currPos; - s1 = input.substr(peg$currPos, 4); + s1 = input.substr(peg$currPos, 12); if (s1.toLowerCase() === peg$c46) { - peg$currPos += 4; + peg$currPos += 12; } else { s1 = peg$FAILED; if (peg$silentFails === 0) { peg$fail(peg$e49); } @@ -2109,13 +2115,13 @@ function peg$parse(input, options) { return s0; } - function peg$parsestatus() { + function peg$parsetype() { var s0, s1; s0 = peg$currPos; - s1 = input.substr(peg$currPos, 6); + s1 = input.substr(peg$currPos, 4); if (s1.toLowerCase() === peg$c47) { - peg$currPos += 6; + peg$currPos += 4; } else { s1 = peg$FAILED; if (peg$silentFails === 0) { peg$fail(peg$e50); } @@ -2129,28 +2135,48 @@ function peg$parse(input, options) { return s0; } + function peg$parsestatus() { + var s0, s1; + + s0 = peg$currPos; + s1 = input.substr(peg$currPos, 6); + if (s1.toLowerCase() === peg$c48) { + peg$currPos += 6; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { peg$fail(peg$e51); } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f39(); + } + s0 = s1; + + return s0; + } + function peg$parsesortBy() { var s0, s1; - if (input.substr(peg$currPos, 6) === peg$c48) { - s0 = peg$c48; + if (input.substr(peg$currPos, 6) === peg$c49) { + s0 = peg$c49; peg$currPos += 6; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e51); } + if (peg$silentFails === 0) { peg$fail(peg$e52); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 7); - if (s1.toLowerCase() === peg$c49) { + if (s1.toLowerCase() === peg$c50) { peg$currPos += 7; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e52); } + if (peg$silentFails === 0) { peg$fail(peg$e53); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f39(); + s1 = peg$f40(); } s0 = s1; } @@ -2161,25 +2187,25 @@ function peg$parse(input, options) { function peg$parsesortOrder() { var s0, s1; - if (input.substr(peg$currPos, 9) === peg$c50) { - s0 = peg$c50; + if (input.substr(peg$currPos, 9) === peg$c51) { + s0 = peg$c51; peg$currPos += 9; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e53); } + if (peg$silentFails === 0) { peg$fail(peg$e54); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c51) { + if (s1.toLowerCase() === peg$c52) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e54); } + if (peg$silentFails === 0) { peg$fail(peg$e55); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f40(); + s1 = peg$f41(); } s0 = s1; } @@ -2190,25 +2216,25 @@ function peg$parse(input, options) { function peg$parsepolicyID() { var s0, s1; - if (input.substr(peg$currPos, 8) === peg$c52) { - s0 = peg$c52; + if (input.substr(peg$currPos, 8) === peg$c53) { + s0 = peg$c53; peg$currPos += 8; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e55); } + if (peg$silentFails === 0) { peg$fail(peg$e56); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 9); - if (s1.toLowerCase() === peg$c53) { + if (s1.toLowerCase() === peg$c54) { peg$currPos += 9; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e56); } + if (peg$silentFails === 0) { peg$fail(peg$e57); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f41(); + s1 = peg$f42(); } s0 = s1; } @@ -2221,15 +2247,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 9); - if (s1.toLowerCase() === peg$c54) { + if (s1.toLowerCase() === peg$c55) { peg$currPos += 9; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e57); } + if (peg$silentFails === 0) { peg$fail(peg$e58); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f42(); + s1 = peg$f43(); } s0 = s1; @@ -2241,15 +2267,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 8); - if (s1.toLowerCase() === peg$c55) { + if (s1.toLowerCase() === peg$c56) { peg$currPos += 8; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e58); } + if (peg$silentFails === 0) { peg$fail(peg$e59); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f43(); + s1 = peg$f44(); } s0 = s1; @@ -2261,29 +2287,29 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c56) { + if (s1.toLowerCase() === peg$c57) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e59); } + if (peg$silentFails === 0) { peg$fail(peg$e60); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f44(); + s1 = peg$f45(); } s0 = s1; if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 12); - if (s1.toLowerCase() === peg$c57) { + if (s1.toLowerCase() === peg$c58) { peg$currPos += 12; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e60); } + if (peg$silentFails === 0) { peg$fail(peg$e61); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f45(); + s1 = peg$f46(); } s0 = s1; } @@ -2296,15 +2322,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 4); - if (s1.toLowerCase() === peg$c58) { + if (s1.toLowerCase() === peg$c59) { peg$currPos += 4; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e61); } + if (peg$silentFails === 0) { peg$fail(peg$e62); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f46(); + s1 = peg$f47(); } s0 = s1; @@ -2316,15 +2342,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 8); - if (s1.toLowerCase() === peg$c59) { + if (s1.toLowerCase() === peg$c60) { peg$currPos += 8; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e62); } + if (peg$silentFails === 0) { peg$fail(peg$e63); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f47(); + s1 = peg$f48(); } s0 = s1; @@ -2336,15 +2362,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 6); - if (s1.toLowerCase() === peg$c60) { + if (s1.toLowerCase() === peg$c61) { peg$currPos += 6; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e63); } + if (peg$silentFails === 0) { peg$fail(peg$e64); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f48(); + s1 = peg$f49(); } s0 = s1; @@ -2356,15 +2382,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 9); - if (s1.toLowerCase() === peg$c61) { + if (s1.toLowerCase() === peg$c62) { peg$currPos += 9; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e64); } + if (peg$silentFails === 0) { peg$fail(peg$e65); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f49(); + s1 = peg$f50(); } s0 = s1; @@ -2375,24 +2401,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 7); - if (s0.toLowerCase() === peg$c62) { + if (s0.toLowerCase() === peg$c63) { peg$currPos += 7; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e65); } + if (peg$silentFails === 0) { peg$fail(peg$e66); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 8); - if (s1.toLowerCase() === peg$c63) { + if (s1.toLowerCase() === peg$c64) { peg$currPos += 8; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e66); } + if (peg$silentFails === 0) { peg$fail(peg$e67); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f50(); + s1 = peg$f51(); } s0 = s1; } @@ -2405,15 +2431,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 5); - if (s1.toLowerCase() === peg$c64) { + if (s1.toLowerCase() === peg$c65) { peg$currPos += 5; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e67); } + if (peg$silentFails === 0) { peg$fail(peg$e68); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f51(); + s1 = peg$f52(); } s0 = s1; @@ -2425,15 +2451,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 4); - if (s1.toLowerCase() === peg$c65) { + if (s1.toLowerCase() === peg$c66) { peg$currPos += 4; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e68); } + if (peg$silentFails === 0) { peg$fail(peg$e69); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f52(); + s1 = peg$f53(); } s0 = s1; @@ -2445,15 +2471,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 5); - if (s1.toLowerCase() === peg$c66) { + if (s1.toLowerCase() === peg$c67) { peg$currPos += 5; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e69); } + if (peg$silentFails === 0) { peg$fail(peg$e70); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f53(); + s1 = peg$f54(); } s0 = s1; @@ -2464,24 +2490,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 15); - if (s0.toLowerCase() === peg$c67) { + if (s0.toLowerCase() === peg$c68) { peg$currPos += 15; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e70); } + if (peg$silentFails === 0) { peg$fail(peg$e71); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 17); - if (s1.toLowerCase() === peg$c68) { + if (s1.toLowerCase() === peg$c69) { peg$currPos += 17; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e71); } + if (peg$silentFails === 0) { peg$fail(peg$e72); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f54(); + s1 = peg$f55(); } s0 = s1; } @@ -2493,24 +2519,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 18); - if (s0.toLowerCase() === peg$c69) { + if (s0.toLowerCase() === peg$c70) { peg$currPos += 18; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e72); } + if (peg$silentFails === 0) { peg$fail(peg$e73); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 20); - if (s1.toLowerCase() === peg$c70) { + if (s1.toLowerCase() === peg$c71) { peg$currPos += 20; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e73); } + if (peg$silentFails === 0) { peg$fail(peg$e74); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f55(); + s1 = peg$f56(); } s0 = s1; } @@ -2522,24 +2548,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 16); - if (s0.toLowerCase() === peg$c71) { + if (s0.toLowerCase() === peg$c72) { peg$currPos += 16; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e74); } + if (peg$silentFails === 0) { peg$fail(peg$e75); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 18); - if (s1.toLowerCase() === peg$c72) { + if (s1.toLowerCase() === peg$c73) { peg$currPos += 18; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e75); } + if (peg$silentFails === 0) { peg$fail(peg$e76); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f56(); + s1 = peg$f57(); } s0 = s1; } @@ -2552,15 +2578,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 8); - if (s1.toLowerCase() === peg$c73) { + if (s1.toLowerCase() === peg$c74) { peg$currPos += 8; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e76); } + if (peg$silentFails === 0) { peg$fail(peg$e77); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f57(); + s1 = peg$f58(); } s0 = s1; @@ -2571,24 +2597,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 9); - if (s0.toLowerCase() === peg$c74) { + if (s0.toLowerCase() === peg$c75) { peg$currPos += 9; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e77); } + if (peg$silentFails === 0) { peg$fail(peg$e78); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c75) { + if (s1.toLowerCase() === peg$c76) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e78); } + if (peg$silentFails === 0) { peg$fail(peg$e79); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f58(); + s1 = peg$f59(); } s0 = s1; } @@ -2601,15 +2627,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 6); - if (s1.toLowerCase() === peg$c76) { + if (s1.toLowerCase() === peg$c77) { peg$currPos += 6; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e79); } + if (peg$silentFails === 0) { peg$fail(peg$e80); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f59(); + s1 = peg$f60(); } s0 = s1; @@ -2621,15 +2647,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 5); - if (s1.toLowerCase() === peg$c77) { + if (s1.toLowerCase() === peg$c78) { peg$currPos += 5; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e80); } + if (peg$silentFails === 0) { peg$fail(peg$e81); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f60(); + s1 = peg$f61(); } s0 = s1; @@ -2641,15 +2667,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 3); - if (s1.toLowerCase() === peg$c78) { + if (s1.toLowerCase() === peg$c79) { peg$currPos += 3; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e81); } + if (peg$silentFails === 0) { peg$fail(peg$e82); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f61(); + s1 = peg$f62(); } s0 = s1; @@ -2661,15 +2687,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 2); - if (s1.toLowerCase() === peg$c79) { + if (s1.toLowerCase() === peg$c80) { peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e82); } + if (peg$silentFails === 0) { peg$fail(peg$e83); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f62(); + s1 = peg$f63(); } s0 = s1; @@ -2680,24 +2706,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 14); - if (s0.toLowerCase() === peg$c80) { + if (s0.toLowerCase() === peg$c81) { peg$currPos += 14; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e83); } + if (peg$silentFails === 0) { peg$fail(peg$e84); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 15); - if (s1.toLowerCase() === peg$c81) { + if (s1.toLowerCase() === peg$c82) { peg$currPos += 15; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e84); } + if (peg$silentFails === 0) { peg$fail(peg$e85); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f63(); + s1 = peg$f64(); } s0 = s1; } @@ -2709,24 +2735,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 16); - if (s0.toLowerCase() === peg$c82) { + if (s0.toLowerCase() === peg$c83) { peg$currPos += 16; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e85); } + if (peg$silentFails === 0) { peg$fail(peg$e86); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 17); - if (s1.toLowerCase() === peg$c83) { + if (s1.toLowerCase() === peg$c84) { peg$currPos += 17; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e86); } + if (peg$silentFails === 0) { peg$fail(peg$e87); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f64(); + s1 = peg$f65(); } s0 = s1; } @@ -2738,24 +2764,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 13); - if (s0.toLowerCase() === peg$c84) { + if (s0.toLowerCase() === peg$c85) { peg$currPos += 13; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e87); } + if (peg$silentFails === 0) { peg$fail(peg$e88); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c85) { + if (s1.toLowerCase() === peg$c86) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e88); } + if (peg$silentFails === 0) { peg$fail(peg$e89); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f65(); + s1 = peg$f66(); } s0 = s1; } @@ -2767,24 +2793,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 16); - if (s0.toLowerCase() === peg$c86) { + if (s0.toLowerCase() === peg$c87) { peg$currPos += 16; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e89); } + if (peg$silentFails === 0) { peg$fail(peg$e90); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 17); - if (s1.toLowerCase() === peg$c87) { + if (s1.toLowerCase() === peg$c88) { peg$currPos += 17; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e90); } + if (peg$silentFails === 0) { peg$fail(peg$e91); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f66(); + s1 = peg$f67(); } s0 = s1; } @@ -2797,15 +2823,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 7); - if (s1.toLowerCase() === peg$c88) { + if (s1.toLowerCase() === peg$c89) { peg$currPos += 7; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e91); } + if (peg$silentFails === 0) { peg$fail(peg$e92); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f67(); + s1 = peg$f68(); } s0 = s1; @@ -2817,15 +2843,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 4); - if (s1.toLowerCase() === peg$c89) { + if (s1.toLowerCase() === peg$c90) { peg$currPos += 4; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e92); } + if (peg$silentFails === 0) { peg$fail(peg$e93); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f68(); + s1 = peg$f69(); } s0 = s1; @@ -2837,15 +2863,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 7); - if (s1.toLowerCase() === peg$c90) { + if (s1.toLowerCase() === peg$c91) { peg$currPos += 7; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e93); } + if (peg$silentFails === 0) { peg$fail(peg$e94); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f69(); + s1 = peg$f70(); } s0 = s1; @@ -2857,7 +2883,7 @@ function peg$parse(input, options) { s0 = peg$currPos; peg$savedPos = peg$currPos; - s1 = peg$f70(); + s1 = peg$f71(); if (s1) { s1 = undefined; } else { @@ -2992,11 +3018,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 8); - if (s1.toLowerCase() === peg$c91) { + if (s1.toLowerCase() === peg$c92) { peg$currPos += 8; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e94); } + if (peg$silentFails === 0) { peg$fail(peg$e95); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3011,7 +3037,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f71(); + s0 = peg$f72(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3029,19 +3055,19 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 6); - if (s1.toLowerCase() === peg$c92) { + if (s1.toLowerCase() === peg$c93) { peg$currPos += 6; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e95); } + if (peg$silentFails === 0) { peg$fail(peg$e96); } } if (s1 === peg$FAILED) { s1 = input.substr(peg$currPos, 5); - if (s1.toLowerCase() === peg$c93) { + if (s1.toLowerCase() === peg$c94) { peg$currPos += 5; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e96); } + if (peg$silentFails === 0) { peg$fail(peg$e97); } } } if (s1 !== peg$FAILED) { @@ -3057,7 +3083,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f72(); + s0 = peg$f73(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3075,11 +3101,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 15); - if (s1.toLowerCase() === peg$c81) { + if (s1.toLowerCase() === peg$c82) { peg$currPos += 15; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e84); } + if (peg$silentFails === 0) { peg$fail(peg$e85); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3094,7 +3120,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f73(); + s0 = peg$f74(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3112,11 +3138,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 3); - if (s1.toLowerCase() === peg$c94) { + if (s1.toLowerCase() === peg$c95) { peg$currPos += 3; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e97); } + if (peg$silentFails === 0) { peg$fail(peg$e98); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3131,7 +3157,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f74(); + s0 = peg$f75(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3168,7 +3194,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f75(); + s0 = peg$f76(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3186,11 +3212,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c95) { + if (s1.toLowerCase() === peg$c96) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e98); } + if (peg$silentFails === 0) { peg$fail(peg$e99); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3205,7 +3231,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f76(); + s0 = peg$f77(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3242,7 +3268,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f77(); + s0 = peg$f78(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3279,7 +3305,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f78(); + s0 = peg$f79(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3297,11 +3323,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c96) { + if (s1.toLowerCase() === peg$c97) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e99); } + if (peg$silentFails === 0) { peg$fail(peg$e100); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3316,7 +3342,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f79(); + s0 = peg$f80(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3353,7 +3379,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f80(); + s0 = peg$f81(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3371,11 +3397,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c97) { + if (s1.toLowerCase() === peg$c98) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e100); } + if (peg$silentFails === 0) { peg$fail(peg$e101); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3390,7 +3416,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f81(); + s0 = peg$f82(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3415,7 +3441,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e101); } + if (peg$silentFails === 0) { peg$fail(peg$e102); } } if (s2 !== peg$FAILED) { s1 = [s1, s2]; @@ -3434,11 +3460,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c98) { + if (s1.toLowerCase() === peg$c99) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e102); } + if (peg$silentFails === 0) { peg$fail(peg$e103); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3453,7 +3479,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f82(); + s0 = peg$f83(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3465,11 +3491,11 @@ function peg$parse(input, options) { if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c97) { + if (s1.toLowerCase() === peg$c98) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e100); } + if (peg$silentFails === 0) { peg$fail(peg$e101); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3484,7 +3510,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f83(); + s0 = peg$f84(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3503,11 +3529,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 13); - if (s1.toLowerCase() === peg$c99) { + if (s1.toLowerCase() === peg$c100) { peg$currPos += 13; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e103); } + if (peg$silentFails === 0) { peg$fail(peg$e104); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3522,7 +3548,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f84(); + s0 = peg$f85(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3540,11 +3566,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 18); - if (s1.toLowerCase() === peg$c100) { + if (s1.toLowerCase() === peg$c101) { peg$currPos += 18; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e104); } + if (peg$silentFails === 0) { peg$fail(peg$e105); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3559,7 +3585,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f85(); + s0 = peg$f86(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3577,11 +3603,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 22); - if (s1.toLowerCase() === peg$c101) { + if (s1.toLowerCase() === peg$c102) { peg$currPos += 22; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e105); } + if (peg$silentFails === 0) { peg$fail(peg$e106); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3596,7 +3622,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f86(); + s0 = peg$f87(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3614,11 +3640,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c102) { + if (s1.toLowerCase() === peg$c103) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e106); } + if (peg$silentFails === 0) { peg$fail(peg$e107); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3633,7 +3659,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f87(); + s0 = peg$f88(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3651,11 +3677,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c103) { + if (s1.toLowerCase() === peg$c104) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e107); } + if (peg$silentFails === 0) { peg$fail(peg$e108); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3670,7 +3696,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f88(); + s0 = peg$f89(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3688,11 +3714,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c104) { + if (s1.toLowerCase() === peg$c105) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e108); } + if (peg$silentFails === 0) { peg$fail(peg$e109); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3707,7 +3733,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f89(); + s0 = peg$f90(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3725,11 +3751,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c105) { + if (s1.toLowerCase() === peg$c106) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e109); } + if (peg$silentFails === 0) { peg$fail(peg$e110); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3744,7 +3770,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f90(); + s0 = peg$f91(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3762,11 +3788,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c106) { + if (s1.toLowerCase() === peg$c107) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e110); } + if (peg$silentFails === 0) { peg$fail(peg$e111); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3781,7 +3807,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f91(); + s0 = peg$f92(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3799,11 +3825,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 18); - if (s1.toLowerCase() === peg$c107) { + if (s1.toLowerCase() === peg$c108) { peg$currPos += 18; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e111); } + if (peg$silentFails === 0) { peg$fail(peg$e112); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3818,7 +3844,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f92(); + s0 = peg$f93(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3836,11 +3862,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 15); - if (s1.toLowerCase() === peg$c108) { + if (s1.toLowerCase() === peg$c109) { peg$currPos += 15; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e112); } + if (peg$silentFails === 0) { peg$fail(peg$e113); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3855,7 +3881,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f93(); + s0 = peg$f94(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3873,11 +3899,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 19); - if (s1.toLowerCase() === peg$c109) { + if (s1.toLowerCase() === peg$c110) { peg$currPos += 19; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e113); } + if (peg$silentFails === 0) { peg$fail(peg$e114); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3892,7 +3918,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f94(); + s0 = peg$f95(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3910,11 +3936,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 20); - if (s1.toLowerCase() === peg$c110) { + if (s1.toLowerCase() === peg$c111) { peg$currPos += 20; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e114); } + if (peg$silentFails === 0) { peg$fail(peg$e115); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3929,7 +3955,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f95(); + s0 = peg$f96(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3947,11 +3973,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 23); - if (s1.toLowerCase() === peg$c111) { + if (s1.toLowerCase() === peg$c112) { peg$currPos += 23; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e115); } + if (peg$silentFails === 0) { peg$fail(peg$e116); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3966,7 +3992,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f96(); + s0 = peg$f97(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3984,11 +4010,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c85) { + if (s1.toLowerCase() === peg$c86) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e88); } + if (peg$silentFails === 0) { peg$fail(peg$e89); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4003,7 +4029,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f97(); + s0 = peg$f98(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4021,11 +4047,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 17); - if (s1.toLowerCase() === peg$c87) { + if (s1.toLowerCase() === peg$c88) { peg$currPos += 17; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e90); } + if (peg$silentFails === 0) { peg$fail(peg$e91); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4040,7 +4066,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f98(); + s0 = peg$f99(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4058,11 +4084,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c112) { + if (s1.toLowerCase() === peg$c113) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e116); } + if (peg$silentFails === 0) { peg$fail(peg$e117); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4077,7 +4103,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f99(); + s0 = peg$f100(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4095,11 +4121,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 9); - if (s1.toLowerCase() === peg$c113) { + if (s1.toLowerCase() === peg$c114) { peg$currPos += 9; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e117); } + if (peg$silentFails === 0) { peg$fail(peg$e118); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4114,7 +4140,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f100(); + s0 = peg$f101(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4132,11 +4158,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c114) { + if (s1.toLowerCase() === peg$c115) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e118); } + if (peg$silentFails === 0) { peg$fail(peg$e119); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4151,7 +4177,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f101(); + s0 = peg$f102(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4169,11 +4195,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 9); - if (s1.toLowerCase() === peg$c115) { + if (s1.toLowerCase() === peg$c116) { peg$currPos += 9; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e119); } + if (peg$silentFails === 0) { peg$fail(peg$e120); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4188,7 +4214,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f102(); + s0 = peg$f103(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4206,11 +4232,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c116) { + if (s1.toLowerCase() === peg$c117) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e120); } + if (peg$silentFails === 0) { peg$fail(peg$e121); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4225,7 +4251,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f103(); + s0 = peg$f104(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4243,11 +4269,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c117) { + if (s1.toLowerCase() === peg$c118) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e121); } + if (peg$silentFails === 0) { peg$fail(peg$e122); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4262,7 +4288,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f104(); + s0 = peg$f105(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4280,11 +4306,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c118) { + if (s1.toLowerCase() === peg$c119) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e122); } + if (peg$silentFails === 0) { peg$fail(peg$e123); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4299,7 +4325,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f105(); + s0 = peg$f106(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4317,11 +4343,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 13); - if (s1.toLowerCase() === peg$c119) { + if (s1.toLowerCase() === peg$c120) { peg$currPos += 13; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e123); } + if (peg$silentFails === 0) { peg$fail(peg$e124); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4336,7 +4362,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f106(); + s0 = peg$f107(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4354,16 +4380,16 @@ function peg$parse(input, options) { peg$silentFails++; s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c120) { - s1 = peg$c120; + if (input.substr(peg$currPos, 2) === peg$c121) { + s1 = peg$c121; peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e125); } + if (peg$silentFails === 0) { peg$fail(peg$e126); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f107(); + s1 = peg$f108(); } s0 = s1; if (s0 === peg$FAILED) { @@ -4373,81 +4399,81 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e101); } + if (peg$silentFails === 0) { peg$fail(peg$e102); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f108(); + s1 = peg$f109(); } s0 = s1; if (s0 === peg$FAILED) { s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c121) { - s1 = peg$c121; + if (input.substr(peg$currPos, 2) === peg$c122) { + s1 = peg$c122; peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e126); } + if (peg$silentFails === 0) { peg$fail(peg$e127); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f109(); + s1 = peg$f110(); } s0 = s1; if (s0 === peg$FAILED) { s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c122) { - s1 = peg$c122; + if (input.substr(peg$currPos, 2) === peg$c123) { + s1 = peg$c123; peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e127); } + if (peg$silentFails === 0) { peg$fail(peg$e128); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f110(); + s1 = peg$f111(); } s0 = s1; if (s0 === peg$FAILED) { s0 = peg$currPos; if (input.charCodeAt(peg$currPos) === 62) { - s1 = peg$c123; + s1 = peg$c124; peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e128); } + if (peg$silentFails === 0) { peg$fail(peg$e129); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f111(); + s1 = peg$f112(); } s0 = s1; if (s0 === peg$FAILED) { s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c124) { - s1 = peg$c124; + if (input.substr(peg$currPos, 2) === peg$c125) { + s1 = peg$c125; peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e129); } + if (peg$silentFails === 0) { peg$fail(peg$e130); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f112(); + s1 = peg$f113(); } s0 = s1; if (s0 === peg$FAILED) { s0 = peg$currPos; if (input.charCodeAt(peg$currPos) === 60) { - s1 = peg$c125; + s1 = peg$c126; peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e130); } + if (peg$silentFails === 0) { peg$fail(peg$e131); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f113(); + s1 = peg$f114(); } s0 = s1; } @@ -4459,7 +4485,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e124); } + if (peg$silentFails === 0) { peg$fail(peg$e125); } } return s0; @@ -4472,7 +4498,7 @@ function peg$parse(input, options) { s1 = peg$parseoperator(); if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f114(s1); + s1 = peg$f115(s1); } s0 = s1; @@ -4484,11 +4510,11 @@ function peg$parse(input, options) { s0 = peg$currPos; if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c126; + s1 = peg$c127; peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e131); } + if (peg$silentFails === 0) { peg$fail(peg$e132); } } if (s1 !== peg$FAILED) { s2 = input.charAt(peg$currPos); @@ -4496,11 +4522,11 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e132); } + if (peg$silentFails === 0) { peg$fail(peg$e133); } } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f115(s2); + s0 = peg$f116(s2); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4526,7 +4552,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e134); } + if (peg$silentFails === 0) { peg$fail(peg$e135); } } } if (s2 !== peg$FAILED) { @@ -4539,7 +4565,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e134); } + if (peg$silentFails === 0) { peg$fail(peg$e135); } } } } @@ -4548,13 +4574,13 @@ function peg$parse(input, options) { } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f116(s1); + s1 = peg$f117(s1); } s0 = s1; peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e133); } + if (peg$silentFails === 0) { peg$fail(peg$e134); } } return s0; @@ -4566,7 +4592,7 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = peg$parse_(); peg$savedPos = s0; - s1 = peg$f117(); + s1 = peg$f118(); s0 = s1; return s0; @@ -4582,7 +4608,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e136); } + if (peg$silentFails === 0) { peg$fail(peg$e137); } } while (s1 !== peg$FAILED) { s0.push(s1); @@ -4591,12 +4617,12 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e136); } + if (peg$silentFails === 0) { peg$fail(peg$e137); } } } peg$silentFails--; s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e135); } + if (peg$silentFails === 0) { peg$fail(peg$e136); } return s0; } @@ -4606,7 +4632,7 @@ function peg$parse(input, options) { s0 = peg$currPos; peg$savedPos = peg$currPos; - s1 = peg$f118(); + s1 = peg$f119(); if (s1) { s1 = undefined; } else { @@ -4643,7 +4669,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e138); } + if (peg$silentFails === 0) { peg$fail(peg$e139); } } while (s2 !== peg$FAILED) { s1.push(s2); @@ -4652,7 +4678,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e138); } + if (peg$silentFails === 0) { peg$fail(peg$e139); } } } s2 = input.charAt(peg$currPos); @@ -4660,7 +4686,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e139); } + if (peg$silentFails === 0) { peg$fail(peg$e140); } } if (s2 !== peg$FAILED) { s3 = []; @@ -4671,7 +4697,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e140); } + if (peg$silentFails === 0) { peg$fail(peg$e141); } } } while (s4 !== peg$FAILED) { @@ -4683,7 +4709,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e140); } + if (peg$silentFails === 0) { peg$fail(peg$e141); } } } } @@ -4692,7 +4718,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e139); } + if (peg$silentFails === 0) { peg$fail(peg$e140); } } if (s4 !== peg$FAILED) { s5 = []; @@ -4701,7 +4727,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e134); } + if (peg$silentFails === 0) { peg$fail(peg$e135); } } while (s6 !== peg$FAILED) { s5.push(s6); @@ -4710,11 +4736,11 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e134); } + if (peg$silentFails === 0) { peg$fail(peg$e135); } } } peg$savedPos = s0; - s0 = peg$f119(s1, s3, s5); + s0 = peg$f120(s1, s3, s5); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4726,7 +4752,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e137); } + if (peg$silentFails === 0) { peg$fail(peg$e138); } } return s0; @@ -4743,7 +4769,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e138); } + if (peg$silentFails === 0) { peg$fail(peg$e139); } } while (s2 !== peg$FAILED) { s1.push(s2); @@ -4752,7 +4778,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e138); } + if (peg$silentFails === 0) { peg$fail(peg$e139); } } } s2 = input.charAt(peg$currPos); @@ -4760,7 +4786,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e139); } + if (peg$silentFails === 0) { peg$fail(peg$e140); } } if (s2 !== peg$FAILED) { s3 = []; @@ -4771,7 +4797,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e140); } + if (peg$silentFails === 0) { peg$fail(peg$e141); } } if (s4 === peg$FAILED) { s4 = peg$currPos; @@ -4787,15 +4813,15 @@ function peg$parse(input, options) { } if (s5 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 8220) { - s6 = peg$c127; + s6 = peg$c128; peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e141); } + if (peg$silentFails === 0) { peg$fail(peg$e142); } } if (s6 !== peg$FAILED) { peg$savedPos = s4; - s4 = peg$f120(s1); + s4 = peg$f121(s1); } else { peg$currPos = s4; s4 = peg$FAILED; @@ -4818,15 +4844,15 @@ function peg$parse(input, options) { } if (s5 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 8221) { - s6 = peg$c128; + s6 = peg$c129; peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e142); } + if (peg$silentFails === 0) { peg$fail(peg$e143); } } if (s6 !== peg$FAILED) { peg$savedPos = s4; - s4 = peg$f121(s1); + s4 = peg$f122(s1); } else { peg$currPos = s4; s4 = peg$FAILED; @@ -4849,15 +4875,15 @@ function peg$parse(input, options) { } if (s5 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 34) { - s6 = peg$c129; + s6 = peg$c130; peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e143); } + if (peg$silentFails === 0) { peg$fail(peg$e144); } } if (s6 !== peg$FAILED) { peg$savedPos = s4; - s4 = peg$f122(s1); + s4 = peg$f123(s1); } else { peg$currPos = s4; s4 = peg$FAILED; @@ -4879,7 +4905,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e140); } + if (peg$silentFails === 0) { peg$fail(peg$e141); } } if (s4 === peg$FAILED) { s4 = peg$currPos; @@ -4895,15 +4921,15 @@ function peg$parse(input, options) { } if (s5 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 8220) { - s6 = peg$c127; + s6 = peg$c128; peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e141); } + if (peg$silentFails === 0) { peg$fail(peg$e142); } } if (s6 !== peg$FAILED) { peg$savedPos = s4; - s4 = peg$f120(s1); + s4 = peg$f121(s1); } else { peg$currPos = s4; s4 = peg$FAILED; @@ -4926,15 +4952,15 @@ function peg$parse(input, options) { } if (s5 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 8221) { - s6 = peg$c128; + s6 = peg$c129; peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e142); } + if (peg$silentFails === 0) { peg$fail(peg$e143); } } if (s6 !== peg$FAILED) { peg$savedPos = s4; - s4 = peg$f121(s1); + s4 = peg$f122(s1); } else { peg$currPos = s4; s4 = peg$FAILED; @@ -4957,15 +4983,15 @@ function peg$parse(input, options) { } if (s5 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 34) { - s6 = peg$c129; + s6 = peg$c130; peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e143); } + if (peg$silentFails === 0) { peg$fail(peg$e144); } } if (s6 !== peg$FAILED) { peg$savedPos = s4; - s4 = peg$f122(s1); + s4 = peg$f123(s1); } else { peg$currPos = s4; s4 = peg$FAILED; @@ -4982,7 +5008,7 @@ function peg$parse(input, options) { s4 = peg$parseclosingQuote(); if (s4 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f123(s1, s3, s4); + s0 = peg$f124(s1, s3, s4); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4994,7 +5020,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e137); } + if (peg$silentFails === 0) { peg$fail(peg$e138); } } return s0; @@ -5009,7 +5035,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e139); } + if (peg$silentFails === 0) { peg$fail(peg$e140); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -5047,7 +5073,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e144); } + if (peg$silentFails === 0) { peg$fail(peg$e145); } } while (s2 !== peg$FAILED) { s1.push(s2); @@ -5056,7 +5082,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e144); } + if (peg$silentFails === 0) { peg$fail(peg$e145); } } } s2 = []; @@ -5065,7 +5091,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e145); } + if (peg$silentFails === 0) { peg$fail(peg$e146); } } while (s3 !== peg$FAILED) { s2.push(s3); @@ -5074,7 +5100,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e145); } + if (peg$silentFails === 0) { peg$fail(peg$e146); } } } s3 = []; @@ -5083,7 +5109,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e146); } + if (peg$silentFails === 0) { peg$fail(peg$e147); } } while (s4 !== peg$FAILED) { s3.push(s4); @@ -5092,7 +5118,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e146); } + if (peg$silentFails === 0) { peg$fail(peg$e147); } } } s4 = peg$parseoperator(); @@ -5111,7 +5137,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e147); } + if (peg$silentFails === 0) { peg$fail(peg$e148); } } while (s2 !== peg$FAILED) { s1.push(s2); @@ -5120,7 +5146,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e147); } + if (peg$silentFails === 0) { peg$fail(peg$e148); } } } s2 = peg$currPos; @@ -5167,7 +5193,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e148); } + if (peg$silentFails === 0) { peg$fail(peg$e149); } } } } @@ -5183,7 +5209,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e149); } + if (peg$silentFails === 0) { peg$fail(peg$e150); } } if (s0 === peg$FAILED) { s0 = peg$currPos; @@ -5212,24 +5238,24 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c130) { + if (s1.toLowerCase() === peg$c131) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e150); } + if (peg$silentFails === 0) { peg$fail(peg$e151); } } if (s1 === peg$FAILED) { s1 = input.substr(peg$currPos, 12); - if (s1.toLowerCase() === peg$c131) { + if (s1.toLowerCase() === peg$c132) { peg$currPos += 12; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e151); } + if (peg$silentFails === 0) { peg$fail(peg$e152); } } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f124(); + s1 = peg$f125(); } s0 = s1; @@ -5241,24 +5267,24 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c132) { + if (s1.toLowerCase() === peg$c133) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e152); } + if (peg$silentFails === 0) { peg$fail(peg$e153); } } if (s1 === peg$FAILED) { s1 = input.substr(peg$currPos, 15); - if (s1.toLowerCase() === peg$c133) { + if (s1.toLowerCase() === peg$c134) { peg$currPos += 15; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e153); } + if (peg$silentFails === 0) { peg$fail(peg$e154); } } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f125(); + s1 = peg$f126(); } s0 = s1; @@ -5270,24 +5296,24 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c134) { + if (s1.toLowerCase() === peg$c135) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e154); } + if (peg$silentFails === 0) { peg$fail(peg$e155); } } if (s1 === peg$FAILED) { s1 = input.substr(peg$currPos, 12); - if (s1.toLowerCase() === peg$c135) { + if (s1.toLowerCase() === peg$c136) { peg$currPos += 12; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e155); } + if (peg$silentFails === 0) { peg$fail(peg$e156); } } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f126(); + s1 = peg$f127(); } s0 = s1; diff --git a/src/libs/SearchParser/autocompleteParser.peggy b/src/libs/SearchParser/autocompleteParser.peggy index c85bf26ec469..966f5aec3edf 100644 --- a/src/libs/SearchParser/autocompleteParser.peggy +++ b/src/libs/SearchParser/autocompleteParser.peggy @@ -111,6 +111,7 @@ autocompleteKey "key" / view / reimbursable / billable + / declined / policyID / action / date diff --git a/src/libs/SearchParser/baseRules.peggy b/src/libs/SearchParser/baseRules.peggy index 58e8db687330..3cecfde34284 100644 --- a/src/libs/SearchParser/baseRules.peggy +++ b/src/libs/SearchParser/baseRules.peggy @@ -68,6 +68,7 @@ withdrawalID = "withdrawalID"i / "withdrawal-id"i { return "withdrawalID"; } billable = "billable"i { return "billable"; } +declined = "declined"i { return "declined"; } reimbursable = "reimbursable"i { return "reimbursable"; } type = "type"i { return "type"; } status = "status"i { return "status"; } diff --git a/src/libs/SearchParser/searchParser.js b/src/libs/SearchParser/searchParser.js index e847d7ed3815..ac786bf9fe6f 100644 --- a/src/libs/SearchParser/searchParser.js +++ b/src/libs/SearchParser/searchParser.js @@ -229,97 +229,98 @@ function peg$parse(input, options) { var peg$c42 = "withdrawalid"; var peg$c43 = "withdrawal-id"; var peg$c44 = "billable"; - var peg$c45 = "reimbursable"; - var peg$c46 = "type"; - var peg$c47 = "status"; - var peg$c48 = "sortBy"; - var peg$c49 = "sort-by"; - var peg$c50 = "sortOrder"; - var peg$c51 = "sort-order"; - var peg$c52 = "policyID"; - var peg$c53 = "workspace"; - var peg$c54 = "submitted"; - var peg$c55 = "approved"; - var peg$c56 = "anyapproval"; - var peg$c57 = "any-approval"; - var peg$c58 = "paid"; - var peg$c59 = "exported"; - var peg$c60 = "posted"; - var peg$c61 = "withdrawn"; - var peg$c62 = "groupby"; - var peg$c63 = "group-by"; - var peg$c64 = "limit"; - var peg$c65 = "feed"; - var peg$c66 = "title"; - var peg$c67 = "submitteruserid"; - var peg$c68 = "submitter-user-id"; - var peg$c69 = "submitterpayrollid"; - var peg$c70 = "submitter-payroll-id"; - var peg$c71 = "orderdealnumbers"; - var peg$c72 = "order-deal-numbers"; - var peg$c73 = "assignee"; - var peg$c74 = "createdby"; - var peg$c75 = "created-by"; - var peg$c76 = "action"; - var peg$c77 = "total"; - var peg$c78 = "has"; - var peg$c79 = "is"; - var peg$c80 = "purchaseamount"; - var peg$c81 = "purchase-amount"; - var peg$c82 = "purchasecurrency"; - var peg$c83 = "purchase-currency"; - var peg$c84 = "amountdebited"; - var peg$c85 = "amount-debited"; - var peg$c86 = "amountreimbursed"; - var peg$c87 = "amount-reimbursed"; - var peg$c88 = "columns"; - var peg$c89 = "view"; - var peg$c90 = "compare"; - var peg$c91 = "per-diem"; - var peg$c92 = "drafts"; - var peg$c93 = "draft"; - var peg$c94 = "tax"; - var peg$c95 = "policy-name"; - var peg$c96 = "long-report-id"; - var peg$c97 = "exported-to"; - var peg$c98 = "exportedto"; - var peg$c99 = "exchange-rate"; - var peg$c100 = "reimbursable-total"; - var peg$c101 = "non-reimbursable-total"; - var peg$c102 = "group-from"; - var peg$c103 = "group-expenses"; - var peg$c104 = "group-total"; - var peg$c105 = "group-card"; - var peg$c106 = "group-feed"; - var peg$c107 = "group-bank-account"; - var peg$c108 = "group-withdrawn"; - var peg$c109 = "group-withdrawal-id"; - var peg$c110 = "group-amount-debited"; - var peg$c111 = "group-amount-reimbursed"; - var peg$c112 = "group-category"; - var peg$c113 = "group-tag"; - var peg$c114 = "group-merchant"; - var peg$c115 = "group-day"; - var peg$c116 = "group-month"; - var peg$c117 = "group-week"; - var peg$c118 = "group-year"; - var peg$c119 = "group-quarter"; - var peg$c120 = "*:"; - var peg$c121 = "!="; - var peg$c122 = ">="; - var peg$c123 = ">"; - var peg$c124 = "<="; - var peg$c125 = "<"; - var peg$c126 = "\\"; - var peg$c127 = "\u201C"; - var peg$c128 = "\u201D"; - var peg$c129 = "\""; - var peg$c130 = "footercount"; - var peg$c131 = "footer-count"; - var peg$c132 = "footercurrency"; - var peg$c133 = "footer-currency"; - var peg$c134 = "footertotal"; - var peg$c135 = "footer-total"; + var peg$c45 = "declined"; + var peg$c46 = "reimbursable"; + var peg$c47 = "type"; + var peg$c48 = "status"; + var peg$c49 = "sortBy"; + var peg$c50 = "sort-by"; + var peg$c51 = "sortOrder"; + var peg$c52 = "sort-order"; + var peg$c53 = "policyID"; + var peg$c54 = "workspace"; + var peg$c55 = "submitted"; + var peg$c56 = "approved"; + var peg$c57 = "anyapproval"; + var peg$c58 = "any-approval"; + var peg$c59 = "paid"; + var peg$c60 = "exported"; + var peg$c61 = "posted"; + var peg$c62 = "withdrawn"; + var peg$c63 = "groupby"; + var peg$c64 = "group-by"; + var peg$c65 = "limit"; + var peg$c66 = "feed"; + var peg$c67 = "title"; + var peg$c68 = "submitteruserid"; + var peg$c69 = "submitter-user-id"; + var peg$c70 = "submitterpayrollid"; + var peg$c71 = "submitter-payroll-id"; + var peg$c72 = "orderdealnumbers"; + var peg$c73 = "order-deal-numbers"; + var peg$c74 = "assignee"; + var peg$c75 = "createdby"; + var peg$c76 = "created-by"; + var peg$c77 = "action"; + var peg$c78 = "total"; + var peg$c79 = "has"; + var peg$c80 = "is"; + var peg$c81 = "purchaseamount"; + var peg$c82 = "purchase-amount"; + var peg$c83 = "purchasecurrency"; + var peg$c84 = "purchase-currency"; + var peg$c85 = "amountdebited"; + var peg$c86 = "amount-debited"; + var peg$c87 = "amountreimbursed"; + var peg$c88 = "amount-reimbursed"; + var peg$c89 = "columns"; + var peg$c90 = "view"; + var peg$c91 = "compare"; + var peg$c92 = "per-diem"; + var peg$c93 = "drafts"; + var peg$c94 = "draft"; + var peg$c95 = "tax"; + var peg$c96 = "policy-name"; + var peg$c97 = "long-report-id"; + var peg$c98 = "exported-to"; + var peg$c99 = "exportedto"; + var peg$c100 = "exchange-rate"; + var peg$c101 = "reimbursable-total"; + var peg$c102 = "non-reimbursable-total"; + var peg$c103 = "group-from"; + var peg$c104 = "group-expenses"; + var peg$c105 = "group-total"; + var peg$c106 = "group-card"; + var peg$c107 = "group-feed"; + var peg$c108 = "group-bank-account"; + var peg$c109 = "group-withdrawn"; + var peg$c110 = "group-withdrawal-id"; + var peg$c111 = "group-amount-debited"; + var peg$c112 = "group-amount-reimbursed"; + var peg$c113 = "group-category"; + var peg$c114 = "group-tag"; + var peg$c115 = "group-merchant"; + var peg$c116 = "group-day"; + var peg$c117 = "group-month"; + var peg$c118 = "group-week"; + var peg$c119 = "group-year"; + var peg$c120 = "group-quarter"; + var peg$c121 = "*:"; + var peg$c122 = "!="; + var peg$c123 = ">="; + var peg$c124 = ">"; + var peg$c125 = "<="; + var peg$c126 = "<"; + var peg$c127 = "\\"; + var peg$c128 = "\u201C"; + var peg$c129 = "\u201D"; + var peg$c130 = "\""; + var peg$c131 = "footercount"; + var peg$c132 = "footer-count"; + var peg$c133 = "footercurrency"; + var peg$c134 = "footer-currency"; + var peg$c135 = "footertotal"; + var peg$c136 = "footer-total"; var peg$r0 = /^[^ \t\r\n\xA0]/; var peg$r1 = /^[ \t\r\n\xA0,:=<>!]/; @@ -387,114 +388,115 @@ function peg$parse(input, options) { var peg$e47 = peg$literalExpectation("withdrawalID", true); var peg$e48 = peg$literalExpectation("withdrawal-id", true); var peg$e49 = peg$literalExpectation("billable", true); - var peg$e50 = peg$literalExpectation("reimbursable", true); - var peg$e51 = peg$literalExpectation("type", true); - var peg$e52 = peg$literalExpectation("status", true); - var peg$e53 = peg$literalExpectation("sortBy", false); - var peg$e54 = peg$literalExpectation("sort-by", true); - var peg$e55 = peg$literalExpectation("sortOrder", false); - var peg$e56 = peg$literalExpectation("sort-order", true); - var peg$e57 = peg$literalExpectation("policyID", false); - var peg$e58 = peg$literalExpectation("workspace", true); - var peg$e59 = peg$literalExpectation("submitted", true); - var peg$e60 = peg$literalExpectation("approved", true); - var peg$e61 = peg$literalExpectation("anyApproval", true); - var peg$e62 = peg$literalExpectation("any-approval", true); - var peg$e63 = peg$literalExpectation("paid", true); - var peg$e64 = peg$literalExpectation("exported", true); - var peg$e65 = peg$literalExpectation("posted", true); - var peg$e66 = peg$literalExpectation("withdrawn", true); - var peg$e67 = peg$literalExpectation("groupBy", true); - var peg$e68 = peg$literalExpectation("group-by", true); - var peg$e69 = peg$literalExpectation("limit", true); - var peg$e70 = peg$literalExpectation("feed", true); - var peg$e71 = peg$literalExpectation("title", true); - var peg$e72 = peg$literalExpectation("submitterUserID", true); - var peg$e73 = peg$literalExpectation("submitter-user-id", true); - var peg$e74 = peg$literalExpectation("submitterPayrollID", true); - var peg$e75 = peg$literalExpectation("submitter-payroll-id", true); - var peg$e76 = peg$literalExpectation("orderDealNumbers", true); - var peg$e77 = peg$literalExpectation("order-deal-numbers", true); - var peg$e78 = peg$literalExpectation("assignee", true); - var peg$e79 = peg$literalExpectation("createdBy", true); - var peg$e80 = peg$literalExpectation("created-by", true); - var peg$e81 = peg$literalExpectation("action", true); - var peg$e82 = peg$literalExpectation("total", true); - var peg$e83 = peg$literalExpectation("has", true); - var peg$e84 = peg$literalExpectation("is", true); - var peg$e85 = peg$literalExpectation("purchaseAmount", true); - var peg$e86 = peg$literalExpectation("purchase-amount", true); - var peg$e87 = peg$literalExpectation("purchaseCurrency", true); - var peg$e88 = peg$literalExpectation("purchase-currency", true); - var peg$e89 = peg$literalExpectation("amountDebited", true); - var peg$e90 = peg$literalExpectation("amount-debited", true); - var peg$e91 = peg$literalExpectation("amountReimbursed", true); - var peg$e92 = peg$literalExpectation("amount-reimbursed", true); - var peg$e93 = peg$literalExpectation("columns", true); - var peg$e94 = peg$literalExpectation("view", true); - var peg$e95 = peg$literalExpectation("compare", true); - var peg$e96 = peg$literalExpectation("per-diem", true); - var peg$e97 = peg$literalExpectation("drafts", true); - var peg$e98 = peg$literalExpectation("draft", true); - var peg$e99 = peg$literalExpectation("tax", true); - var peg$e100 = peg$literalExpectation("policy-name", true); - var peg$e101 = peg$literalExpectation("long-report-id", true); - var peg$e102 = peg$literalExpectation("exported-to", true); - var peg$e103 = peg$classExpectation([":", "="], false, false); - var peg$e104 = peg$literalExpectation("exportedTo", true); - var peg$e105 = peg$literalExpectation("exchange-rate", true); - var peg$e106 = peg$literalExpectation("reimbursable-total", true); - var peg$e107 = peg$literalExpectation("non-reimbursable-total", true); - var peg$e108 = peg$literalExpectation("group-from", true); - var peg$e109 = peg$literalExpectation("group-expenses", true); - var peg$e110 = peg$literalExpectation("group-total", true); - var peg$e111 = peg$literalExpectation("group-card", true); - var peg$e112 = peg$literalExpectation("group-feed", true); - var peg$e113 = peg$literalExpectation("group-bank-account", true); - var peg$e114 = peg$literalExpectation("group-withdrawn", true); - var peg$e115 = peg$literalExpectation("group-withdrawal-id", true); - var peg$e116 = peg$literalExpectation("group-amount-debited", true); - var peg$e117 = peg$literalExpectation("group-amount-reimbursed", true); - var peg$e118 = peg$literalExpectation("group-category", true); - var peg$e119 = peg$literalExpectation("group-tag", true); - var peg$e120 = peg$literalExpectation("group-merchant", true); - var peg$e121 = peg$literalExpectation("group-day", true); - var peg$e122 = peg$literalExpectation("group-month", true); - var peg$e123 = peg$literalExpectation("group-week", true); - var peg$e124 = peg$literalExpectation("group-year", true); - var peg$e125 = peg$literalExpectation("group-quarter", true); - var peg$e126 = peg$otherExpectation("operator"); - var peg$e127 = peg$literalExpectation("*:", false); - var peg$e128 = peg$literalExpectation("!=", false); - var peg$e129 = peg$literalExpectation(">=", false); - var peg$e130 = peg$literalExpectation(">", false); - var peg$e131 = peg$literalExpectation("<=", false); - var peg$e132 = peg$literalExpectation("<", false); - var peg$e133 = peg$literalExpectation("\\", false); - var peg$e134 = peg$classExpectation([",", "\"", "\u201D", "\u201C", "\\"], false, false); - var peg$e135 = peg$otherExpectation("word"); - var peg$e136 = peg$classExpectation([" ", ",", "\t", "\n", "\r", "\xA0"], true, false); - var peg$e137 = peg$otherExpectation("whitespace"); - var peg$e138 = peg$classExpectation([" ", "\t", "\r", "\n", "\xA0"], false, false); - var peg$e139 = peg$otherExpectation("quote"); - var peg$e140 = peg$classExpectation([" ", ",", "\"", "\u201D", "\u201C", "\t", "\n", "\r", "\xA0"], true, false); - var peg$e141 = peg$classExpectation(["\"", ["\u201C", "\u201D"]], false, false); - var peg$e142 = peg$classExpectation(["\"", "\u201D", "\u201C", "\r", "\n"], true, false); - var peg$e143 = peg$literalExpectation("\u201C", false); - var peg$e144 = peg$literalExpectation("\u201D", false); - var peg$e145 = peg$literalExpectation("\"", false); - var peg$e146 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0", ["a", "z"], ["A", "Z"], ["0", "9"]], false, false); - var peg$e147 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"]], false, false); - var peg$e148 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0"], false, false); - var peg$e149 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0", ["a", "z"], ["A", "Z"]], false, false); - var peg$e150 = peg$classExpectation([","], false, false); - var peg$e151 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0", ","], false, false); - var peg$e152 = peg$literalExpectation("footerCount", true); - var peg$e153 = peg$literalExpectation("footer-count", true); - var peg$e154 = peg$literalExpectation("footerCurrency", true); - var peg$e155 = peg$literalExpectation("footer-currency", true); - var peg$e156 = peg$literalExpectation("footerTotal", true); - var peg$e157 = peg$literalExpectation("footer-total", true); + var peg$e50 = peg$literalExpectation("declined", true); + var peg$e51 = peg$literalExpectation("reimbursable", true); + var peg$e52 = peg$literalExpectation("type", true); + var peg$e53 = peg$literalExpectation("status", true); + var peg$e54 = peg$literalExpectation("sortBy", false); + var peg$e55 = peg$literalExpectation("sort-by", true); + var peg$e56 = peg$literalExpectation("sortOrder", false); + var peg$e57 = peg$literalExpectation("sort-order", true); + var peg$e58 = peg$literalExpectation("policyID", false); + var peg$e59 = peg$literalExpectation("workspace", true); + var peg$e60 = peg$literalExpectation("submitted", true); + var peg$e61 = peg$literalExpectation("approved", true); + var peg$e62 = peg$literalExpectation("anyApproval", true); + var peg$e63 = peg$literalExpectation("any-approval", true); + var peg$e64 = peg$literalExpectation("paid", true); + var peg$e65 = peg$literalExpectation("exported", true); + var peg$e66 = peg$literalExpectation("posted", true); + var peg$e67 = peg$literalExpectation("withdrawn", true); + var peg$e68 = peg$literalExpectation("groupBy", true); + var peg$e69 = peg$literalExpectation("group-by", true); + var peg$e70 = peg$literalExpectation("limit", true); + var peg$e71 = peg$literalExpectation("feed", true); + var peg$e72 = peg$literalExpectation("title", true); + var peg$e73 = peg$literalExpectation("submitterUserID", true); + var peg$e74 = peg$literalExpectation("submitter-user-id", true); + var peg$e75 = peg$literalExpectation("submitterPayrollID", true); + var peg$e76 = peg$literalExpectation("submitter-payroll-id", true); + var peg$e77 = peg$literalExpectation("orderDealNumbers", true); + var peg$e78 = peg$literalExpectation("order-deal-numbers", true); + var peg$e79 = peg$literalExpectation("assignee", true); + var peg$e80 = peg$literalExpectation("createdBy", true); + var peg$e81 = peg$literalExpectation("created-by", true); + var peg$e82 = peg$literalExpectation("action", true); + var peg$e83 = peg$literalExpectation("total", true); + var peg$e84 = peg$literalExpectation("has", true); + var peg$e85 = peg$literalExpectation("is", true); + var peg$e86 = peg$literalExpectation("purchaseAmount", true); + var peg$e87 = peg$literalExpectation("purchase-amount", true); + var peg$e88 = peg$literalExpectation("purchaseCurrency", true); + var peg$e89 = peg$literalExpectation("purchase-currency", true); + var peg$e90 = peg$literalExpectation("amountDebited", true); + var peg$e91 = peg$literalExpectation("amount-debited", true); + var peg$e92 = peg$literalExpectation("amountReimbursed", true); + var peg$e93 = peg$literalExpectation("amount-reimbursed", true); + var peg$e94 = peg$literalExpectation("columns", true); + var peg$e95 = peg$literalExpectation("view", true); + var peg$e96 = peg$literalExpectation("compare", true); + var peg$e97 = peg$literalExpectation("per-diem", true); + var peg$e98 = peg$literalExpectation("drafts", true); + var peg$e99 = peg$literalExpectation("draft", true); + var peg$e100 = peg$literalExpectation("tax", true); + var peg$e101 = peg$literalExpectation("policy-name", true); + var peg$e102 = peg$literalExpectation("long-report-id", true); + var peg$e103 = peg$literalExpectation("exported-to", true); + var peg$e104 = peg$classExpectation([":", "="], false, false); + var peg$e105 = peg$literalExpectation("exportedTo", true); + var peg$e106 = peg$literalExpectation("exchange-rate", true); + var peg$e107 = peg$literalExpectation("reimbursable-total", true); + var peg$e108 = peg$literalExpectation("non-reimbursable-total", true); + var peg$e109 = peg$literalExpectation("group-from", true); + var peg$e110 = peg$literalExpectation("group-expenses", true); + var peg$e111 = peg$literalExpectation("group-total", true); + var peg$e112 = peg$literalExpectation("group-card", true); + var peg$e113 = peg$literalExpectation("group-feed", true); + var peg$e114 = peg$literalExpectation("group-bank-account", true); + var peg$e115 = peg$literalExpectation("group-withdrawn", true); + var peg$e116 = peg$literalExpectation("group-withdrawal-id", true); + var peg$e117 = peg$literalExpectation("group-amount-debited", true); + var peg$e118 = peg$literalExpectation("group-amount-reimbursed", true); + var peg$e119 = peg$literalExpectation("group-category", true); + var peg$e120 = peg$literalExpectation("group-tag", true); + var peg$e121 = peg$literalExpectation("group-merchant", true); + var peg$e122 = peg$literalExpectation("group-day", true); + var peg$e123 = peg$literalExpectation("group-month", true); + var peg$e124 = peg$literalExpectation("group-week", true); + var peg$e125 = peg$literalExpectation("group-year", true); + var peg$e126 = peg$literalExpectation("group-quarter", true); + var peg$e127 = peg$otherExpectation("operator"); + var peg$e128 = peg$literalExpectation("*:", false); + var peg$e129 = peg$literalExpectation("!=", false); + var peg$e130 = peg$literalExpectation(">=", false); + var peg$e131 = peg$literalExpectation(">", false); + var peg$e132 = peg$literalExpectation("<=", false); + var peg$e133 = peg$literalExpectation("<", false); + var peg$e134 = peg$literalExpectation("\\", false); + var peg$e135 = peg$classExpectation([",", "\"", "\u201D", "\u201C", "\\"], false, false); + var peg$e136 = peg$otherExpectation("word"); + var peg$e137 = peg$classExpectation([" ", ",", "\t", "\n", "\r", "\xA0"], true, false); + var peg$e138 = peg$otherExpectation("whitespace"); + var peg$e139 = peg$classExpectation([" ", "\t", "\r", "\n", "\xA0"], false, false); + var peg$e140 = peg$otherExpectation("quote"); + var peg$e141 = peg$classExpectation([" ", ",", "\"", "\u201D", "\u201C", "\t", "\n", "\r", "\xA0"], true, false); + var peg$e142 = peg$classExpectation(["\"", ["\u201C", "\u201D"]], false, false); + var peg$e143 = peg$classExpectation(["\"", "\u201D", "\u201C", "\r", "\n"], true, false); + var peg$e144 = peg$literalExpectation("\u201C", false); + var peg$e145 = peg$literalExpectation("\u201D", false); + var peg$e146 = peg$literalExpectation("\"", false); + var peg$e147 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0", ["a", "z"], ["A", "Z"], ["0", "9"]], false, false); + var peg$e148 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"]], false, false); + var peg$e149 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0"], false, false); + var peg$e150 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0", ["a", "z"], ["A", "Z"]], false, false); + var peg$e151 = peg$classExpectation([","], false, false); + var peg$e152 = peg$classExpectation([" ", "\t", "\n", "\r", "\xA0", ","], false, false); + var peg$e153 = peg$literalExpectation("footerCount", true); + var peg$e154 = peg$literalExpectation("footer-count", true); + var peg$e155 = peg$literalExpectation("footerCurrency", true); + var peg$e156 = peg$literalExpectation("footer-currency", true); + var peg$e157 = peg$literalExpectation("footerTotal", true); + var peg$e158 = peg$literalExpectation("footer-total", true); var peg$f0 = function(filters) { return applyDefaults(filters); }; var peg$f1 = function(head, tail) { @@ -624,113 +626,114 @@ function peg$parse(input, options) { var peg$f34 = function() { return "paidStatus"; }; var peg$f35 = function() { return "withdrawalID"; }; var peg$f36 = function() { return "billable"; }; - var peg$f37 = function() { return "reimbursable"; }; - var peg$f38 = function() { return "type"; }; - var peg$f39 = function() { return "status"; }; - var peg$f40 = function() { return "sortBy"; }; - var peg$f41 = function() { return "sortOrder"; }; - var peg$f42 = function() { return "policyID"; }; - var peg$f43 = function() { return "submitted"; }; - var peg$f44 = function() { return "approved"; }; - var peg$f45 = function() { return "anyApproval"; }; + var peg$f37 = function() { return "declined"; }; + var peg$f38 = function() { return "reimbursable"; }; + var peg$f39 = function() { return "type"; }; + var peg$f40 = function() { return "status"; }; + var peg$f41 = function() { return "sortBy"; }; + var peg$f42 = function() { return "sortOrder"; }; + var peg$f43 = function() { return "policyID"; }; + var peg$f44 = function() { return "submitted"; }; + var peg$f45 = function() { return "approved"; }; var peg$f46 = function() { return "anyApproval"; }; - var peg$f47 = function() { return "paid"; }; - var peg$f48 = function() { return "exported"; }; - var peg$f49 = function() { return "posted"; }; - var peg$f50 = function() { return "withdrawn"; }; - var peg$f51 = function() { return "groupBy"; }; - var peg$f52 = function() { return "limit"; }; - var peg$f53 = function() { return "feed"; }; - var peg$f54 = function() { return "title"; }; - var peg$f55 = function() { return "submitterUserID"; }; - var peg$f56 = function() { return "submitterPayrollID"; }; - var peg$f57 = function() { return "orderDealNumbers"; }; - var peg$f58 = function() { return "assignee"; }; - var peg$f59 = function() { return "createdBy"; }; - var peg$f60 = function() { return "action"; }; - var peg$f61 = function() {return "total"; }; - var peg$f62 = function() {return "has"; }; - var peg$f63 = function() {return "is"; }; - var peg$f64 = function() {return "purchaseAmount"}; - var peg$f65 = function() {return "purchaseCurrency"}; - var peg$f66 = function() {return "amountDebited"}; - var peg$f67 = function() {return "amountReimbursed"}; - var peg$f68 = function() { + var peg$f47 = function() { return "anyApproval"; }; + var peg$f48 = function() { return "paid"; }; + var peg$f49 = function() { return "exported"; }; + var peg$f50 = function() { return "posted"; }; + var peg$f51 = function() { return "withdrawn"; }; + var peg$f52 = function() { return "groupBy"; }; + var peg$f53 = function() { return "limit"; }; + var peg$f54 = function() { return "feed"; }; + var peg$f55 = function() { return "title"; }; + var peg$f56 = function() { return "submitterUserID"; }; + var peg$f57 = function() { return "submitterPayrollID"; }; + var peg$f58 = function() { return "orderDealNumbers"; }; + var peg$f59 = function() { return "assignee"; }; + var peg$f60 = function() { return "createdBy"; }; + var peg$f61 = function() { return "action"; }; + var peg$f62 = function() {return "total"; }; + var peg$f63 = function() {return "has"; }; + var peg$f64 = function() {return "is"; }; + var peg$f65 = function() {return "purchaseAmount"}; + var peg$f66 = function() {return "purchaseCurrency"}; + var peg$f67 = function() {return "amountDebited"}; + var peg$f68 = function() {return "amountReimbursed"}; + var peg$f69 = function() { isColumnsContext = true; return "columns"; }; - var peg$f69 = function() {return "view"}; - var peg$f70 = function() {return "compare"}; - var peg$f71 = function() { return isColumnsContext; }; - var peg$f72 = function() { return "perDiem"; }; - var peg$f73 = function() { return "drafts"; }; - var peg$f74 = function() { return "originalamount"; }; - var peg$f75 = function() { return "taxAmount"; }; - var peg$f76 = function() { return "taxrate"; }; - var peg$f77 = function() { return "policyname"; }; - var peg$f78 = function() { return "withdrawalID"; }; - var peg$f79 = function() { return "bankAccount"; }; - var peg$f80 = function() { return "reportID"; }; - var peg$f81 = function() { return "base62ReportID"; }; - var peg$f82 = function() { return "exportedto"; }; - var peg$f83 = function() { return "exportedTo"; }; + var peg$f70 = function() {return "view"}; + var peg$f71 = function() {return "compare"}; + var peg$f72 = function() { return isColumnsContext; }; + var peg$f73 = function() { return "perDiem"; }; + var peg$f74 = function() { return "drafts"; }; + var peg$f75 = function() { return "originalamount"; }; + var peg$f76 = function() { return "taxAmount"; }; + var peg$f77 = function() { return "taxrate"; }; + var peg$f78 = function() { return "policyname"; }; + var peg$f79 = function() { return "withdrawalID"; }; + var peg$f80 = function() { return "bankAccount"; }; + var peg$f81 = function() { return "reportID"; }; + var peg$f82 = function() { return "base62ReportID"; }; + var peg$f83 = function() { return "exportedto"; }; var peg$f84 = function() { return "exportedTo"; }; - var peg$f85 = function() { return "exchangeRate"; }; - var peg$f86 = function() { return "reimbursableTotal"; }; - var peg$f87 = function() { return "nonReimbursableTotal"; }; - var peg$f88 = function() { return "groupFrom"; }; - var peg$f89 = function() { return "groupExpenses"; }; - var peg$f90 = function() { return "groupTotal"; }; - var peg$f91 = function() { return "groupCard"; }; - var peg$f92 = function() { return "groupFeed"; }; - var peg$f93 = function() { return "groupBankAccount"; }; - var peg$f94 = function() { return "groupWithdrawn"; }; - var peg$f95 = function() { return "groupWithdrawalID"; }; - var peg$f96 = function() { return "groupAmountDebited"; }; - var peg$f97 = function() { return "groupAmountReimbursed"; }; - var peg$f98 = function() { return "amountDebited"; }; - var peg$f99 = function() { return "amountReimbursed"; }; - var peg$f100 = function() { return "groupCategory"; }; - var peg$f101 = function() { return "groupTag"; }; - var peg$f102 = function() { return "groupMerchant"; }; - var peg$f103 = function() { return "groupday"; }; - var peg$f104 = function() { return "groupmonth"; }; - var peg$f105 = function() { return "groupweek"; }; - var peg$f106 = function() { return "groupyear"; }; - var peg$f107 = function() { return "groupquarter"; }; - var peg$f108 = function() { return "contains"; }; - var peg$f109 = function() { return "eq"; }; - var peg$f110 = function() { return "neq"; }; - var peg$f111 = function() { return "gte"; }; - var peg$f112 = function() { return "gt"; }; - var peg$f113 = function() { return "lte"; }; - var peg$f114 = function() { return "lt"; }; - var peg$f115 = function(o) { + var peg$f85 = function() { return "exportedTo"; }; + var peg$f86 = function() { return "exchangeRate"; }; + var peg$f87 = function() { return "reimbursableTotal"; }; + var peg$f88 = function() { return "nonReimbursableTotal"; }; + var peg$f89 = function() { return "groupFrom"; }; + var peg$f90 = function() { return "groupExpenses"; }; + var peg$f91 = function() { return "groupTotal"; }; + var peg$f92 = function() { return "groupCard"; }; + var peg$f93 = function() { return "groupFeed"; }; + var peg$f94 = function() { return "groupBankAccount"; }; + var peg$f95 = function() { return "groupWithdrawn"; }; + var peg$f96 = function() { return "groupWithdrawalID"; }; + var peg$f97 = function() { return "groupAmountDebited"; }; + var peg$f98 = function() { return "groupAmountReimbursed"; }; + var peg$f99 = function() { return "amountDebited"; }; + var peg$f100 = function() { return "amountReimbursed"; }; + var peg$f101 = function() { return "groupCategory"; }; + var peg$f102 = function() { return "groupTag"; }; + var peg$f103 = function() { return "groupMerchant"; }; + var peg$f104 = function() { return "groupday"; }; + var peg$f105 = function() { return "groupmonth"; }; + var peg$f106 = function() { return "groupweek"; }; + var peg$f107 = function() { return "groupyear"; }; + var peg$f108 = function() { return "groupquarter"; }; + var peg$f109 = function() { return "contains"; }; + var peg$f110 = function() { return "eq"; }; + var peg$f111 = function() { return "neq"; }; + var peg$f112 = function() { return "gte"; }; + var peg$f113 = function() { return "gt"; }; + var peg$f114 = function() { return "lte"; }; + var peg$f115 = function() { return "lt"; }; + var peg$f116 = function(o) { if (nameOperator) { expectingNestedQuote = (o === "eq" || o === "contains"); } isColumnsContext = false; return o; }; - var peg$f116 = function(c) { return c; }; - var peg$f117 = function(chars) { return chars.join("").trim(); }; - var peg$f118 = function() { + var peg$f117 = function(c) { return c; }; + var peg$f118 = function(chars) { return chars.join("").trim(); }; + var peg$f119 = function() { isColumnsContext = false; return "and"; }; - var peg$f119 = function() { return expectingNestedQuote; }; - var peg$f120 = function(start, inner, end) { //handle no-breaking space + var peg$f120 = function() { return expectingNestedQuote; }; + var peg$f121 = function(start, inner, end) { //handle no-breaking space return [...start, '"', ...inner, '"', ...end].join(""); }; - var peg$f121 = function(start) {return "“"}; - var peg$f122 = function(start) {return "”"}; - var peg$f123 = function(start) {return "\""}; - var peg$f124 = function(start, inner, end) { + var peg$f122 = function(start) {return "“"}; + var peg$f123 = function(start) {return "”"}; + var peg$f124 = function(start) {return "\""}; + var peg$f125 = function(start, inner, end) { return [...start, '"', ...inner, '"'].join(""); }; - var peg$f125 = function() { return "footerCount"; }; - var peg$f126 = function() { return "footerCurrency"; }; - var peg$f127 = function() { return "footerTotal"; }; + var peg$f126 = function() { return "footerCount"; }; + var peg$f127 = function() { return "footerCurrency"; }; + var peg$f128 = function() { return "footerTotal"; }; var peg$currPos = options.peg$currPos | 0; var peg$savedPos = peg$currPos; var peg$posDetailsCache = [{ line: 1, column: 1 }]; @@ -1324,27 +1327,30 @@ function peg$parse(input, options) { if (s1 === peg$FAILED) { s1 = peg$parsebillable(); if (s1 === peg$FAILED) { - s1 = peg$parseaction(); + s1 = peg$parsedeclined(); if (s1 === peg$FAILED) { - s1 = peg$parsehas(); + s1 = peg$parseaction(); if (s1 === peg$FAILED) { - s1 = peg$parseis(); + s1 = peg$parsehas(); if (s1 === peg$FAILED) { - s1 = peg$parsepurchaseCurrency(); + s1 = peg$parseis(); if (s1 === peg$FAILED) { - s1 = peg$parsepurchaseAmount(); + s1 = peg$parsepurchaseCurrency(); if (s1 === peg$FAILED) { - s1 = peg$parsepolicyID(); + s1 = peg$parsepurchaseAmount(); if (s1 === peg$FAILED) { - s1 = peg$parsestatus(); + s1 = peg$parsepolicyID(); if (s1 === peg$FAILED) { - s1 = peg$parsefooterCount(); + s1 = peg$parsestatus(); if (s1 === peg$FAILED) { - s1 = peg$parsefooterCurrency(); + s1 = peg$parsefooterCount(); if (s1 === peg$FAILED) { - s1 = peg$parsefooterTotal(); + s1 = peg$parsefooterCurrency(); if (s1 === peg$FAILED) { - s1 = peg$parsereportFieldDynamic(); + s1 = peg$parsefooterTotal(); + if (s1 === peg$FAILED) { + s1 = peg$parsereportFieldDynamic(); + } } } } @@ -2273,13 +2279,13 @@ function peg$parse(input, options) { return s0; } - function peg$parsereimbursable() { + function peg$parsedeclined() { var s0, s1; s0 = peg$currPos; - s1 = input.substr(peg$currPos, 12); + s1 = input.substr(peg$currPos, 8); if (s1.toLowerCase() === peg$c45) { - peg$currPos += 12; + peg$currPos += 8; } else { s1 = peg$FAILED; if (peg$silentFails === 0) { peg$fail(peg$e50); } @@ -2293,13 +2299,13 @@ function peg$parse(input, options) { return s0; } - function peg$parsetype() { + function peg$parsereimbursable() { var s0, s1; s0 = peg$currPos; - s1 = input.substr(peg$currPos, 4); + s1 = input.substr(peg$currPos, 12); if (s1.toLowerCase() === peg$c46) { - peg$currPos += 4; + peg$currPos += 12; } else { s1 = peg$FAILED; if (peg$silentFails === 0) { peg$fail(peg$e51); } @@ -2313,13 +2319,13 @@ function peg$parse(input, options) { return s0; } - function peg$parsestatus() { + function peg$parsetype() { var s0, s1; s0 = peg$currPos; - s1 = input.substr(peg$currPos, 6); + s1 = input.substr(peg$currPos, 4); if (s1.toLowerCase() === peg$c47) { - peg$currPos += 6; + peg$currPos += 4; } else { s1 = peg$FAILED; if (peg$silentFails === 0) { peg$fail(peg$e52); } @@ -2333,28 +2339,48 @@ function peg$parse(input, options) { return s0; } + function peg$parsestatus() { + var s0, s1; + + s0 = peg$currPos; + s1 = input.substr(peg$currPos, 6); + if (s1.toLowerCase() === peg$c48) { + peg$currPos += 6; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { peg$fail(peg$e53); } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f40(); + } + s0 = s1; + + return s0; + } + function peg$parsesortBy() { var s0, s1; - if (input.substr(peg$currPos, 6) === peg$c48) { - s0 = peg$c48; + if (input.substr(peg$currPos, 6) === peg$c49) { + s0 = peg$c49; peg$currPos += 6; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e53); } + if (peg$silentFails === 0) { peg$fail(peg$e54); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 7); - if (s1.toLowerCase() === peg$c49) { + if (s1.toLowerCase() === peg$c50) { peg$currPos += 7; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e54); } + if (peg$silentFails === 0) { peg$fail(peg$e55); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f40(); + s1 = peg$f41(); } s0 = s1; } @@ -2365,25 +2391,25 @@ function peg$parse(input, options) { function peg$parsesortOrder() { var s0, s1; - if (input.substr(peg$currPos, 9) === peg$c50) { - s0 = peg$c50; + if (input.substr(peg$currPos, 9) === peg$c51) { + s0 = peg$c51; peg$currPos += 9; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e55); } + if (peg$silentFails === 0) { peg$fail(peg$e56); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c51) { + if (s1.toLowerCase() === peg$c52) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e56); } + if (peg$silentFails === 0) { peg$fail(peg$e57); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f41(); + s1 = peg$f42(); } s0 = s1; } @@ -2394,25 +2420,25 @@ function peg$parse(input, options) { function peg$parsepolicyID() { var s0, s1; - if (input.substr(peg$currPos, 8) === peg$c52) { - s0 = peg$c52; + if (input.substr(peg$currPos, 8) === peg$c53) { + s0 = peg$c53; peg$currPos += 8; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e57); } + if (peg$silentFails === 0) { peg$fail(peg$e58); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 9); - if (s1.toLowerCase() === peg$c53) { + if (s1.toLowerCase() === peg$c54) { peg$currPos += 9; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e58); } + if (peg$silentFails === 0) { peg$fail(peg$e59); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f42(); + s1 = peg$f43(); } s0 = s1; } @@ -2425,15 +2451,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 9); - if (s1.toLowerCase() === peg$c54) { + if (s1.toLowerCase() === peg$c55) { peg$currPos += 9; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e59); } + if (peg$silentFails === 0) { peg$fail(peg$e60); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f43(); + s1 = peg$f44(); } s0 = s1; @@ -2445,15 +2471,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 8); - if (s1.toLowerCase() === peg$c55) { + if (s1.toLowerCase() === peg$c56) { peg$currPos += 8; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e60); } + if (peg$silentFails === 0) { peg$fail(peg$e61); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f44(); + s1 = peg$f45(); } s0 = s1; @@ -2465,29 +2491,29 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c56) { + if (s1.toLowerCase() === peg$c57) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e61); } + if (peg$silentFails === 0) { peg$fail(peg$e62); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f45(); + s1 = peg$f46(); } s0 = s1; if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 12); - if (s1.toLowerCase() === peg$c57) { + if (s1.toLowerCase() === peg$c58) { peg$currPos += 12; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e62); } + if (peg$silentFails === 0) { peg$fail(peg$e63); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f46(); + s1 = peg$f47(); } s0 = s1; } @@ -2500,15 +2526,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 4); - if (s1.toLowerCase() === peg$c58) { + if (s1.toLowerCase() === peg$c59) { peg$currPos += 4; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e63); } + if (peg$silentFails === 0) { peg$fail(peg$e64); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f47(); + s1 = peg$f48(); } s0 = s1; @@ -2520,15 +2546,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 8); - if (s1.toLowerCase() === peg$c59) { + if (s1.toLowerCase() === peg$c60) { peg$currPos += 8; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e64); } + if (peg$silentFails === 0) { peg$fail(peg$e65); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f48(); + s1 = peg$f49(); } s0 = s1; @@ -2540,15 +2566,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 6); - if (s1.toLowerCase() === peg$c60) { + if (s1.toLowerCase() === peg$c61) { peg$currPos += 6; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e65); } + if (peg$silentFails === 0) { peg$fail(peg$e66); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f49(); + s1 = peg$f50(); } s0 = s1; @@ -2560,15 +2586,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 9); - if (s1.toLowerCase() === peg$c61) { + if (s1.toLowerCase() === peg$c62) { peg$currPos += 9; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e66); } + if (peg$silentFails === 0) { peg$fail(peg$e67); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f50(); + s1 = peg$f51(); } s0 = s1; @@ -2579,24 +2605,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 7); - if (s0.toLowerCase() === peg$c62) { + if (s0.toLowerCase() === peg$c63) { peg$currPos += 7; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e67); } + if (peg$silentFails === 0) { peg$fail(peg$e68); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 8); - if (s1.toLowerCase() === peg$c63) { + if (s1.toLowerCase() === peg$c64) { peg$currPos += 8; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e68); } + if (peg$silentFails === 0) { peg$fail(peg$e69); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f51(); + s1 = peg$f52(); } s0 = s1; } @@ -2609,15 +2635,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 5); - if (s1.toLowerCase() === peg$c64) { + if (s1.toLowerCase() === peg$c65) { peg$currPos += 5; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e69); } + if (peg$silentFails === 0) { peg$fail(peg$e70); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f52(); + s1 = peg$f53(); } s0 = s1; @@ -2629,15 +2655,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 4); - if (s1.toLowerCase() === peg$c65) { + if (s1.toLowerCase() === peg$c66) { peg$currPos += 4; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e70); } + if (peg$silentFails === 0) { peg$fail(peg$e71); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f53(); + s1 = peg$f54(); } s0 = s1; @@ -2649,15 +2675,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 5); - if (s1.toLowerCase() === peg$c66) { + if (s1.toLowerCase() === peg$c67) { peg$currPos += 5; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e71); } + if (peg$silentFails === 0) { peg$fail(peg$e72); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f54(); + s1 = peg$f55(); } s0 = s1; @@ -2668,24 +2694,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 15); - if (s0.toLowerCase() === peg$c67) { + if (s0.toLowerCase() === peg$c68) { peg$currPos += 15; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e72); } + if (peg$silentFails === 0) { peg$fail(peg$e73); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 17); - if (s1.toLowerCase() === peg$c68) { + if (s1.toLowerCase() === peg$c69) { peg$currPos += 17; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e73); } + if (peg$silentFails === 0) { peg$fail(peg$e74); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f55(); + s1 = peg$f56(); } s0 = s1; } @@ -2697,24 +2723,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 18); - if (s0.toLowerCase() === peg$c69) { + if (s0.toLowerCase() === peg$c70) { peg$currPos += 18; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e74); } + if (peg$silentFails === 0) { peg$fail(peg$e75); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 20); - if (s1.toLowerCase() === peg$c70) { + if (s1.toLowerCase() === peg$c71) { peg$currPos += 20; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e75); } + if (peg$silentFails === 0) { peg$fail(peg$e76); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f56(); + s1 = peg$f57(); } s0 = s1; } @@ -2726,24 +2752,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 16); - if (s0.toLowerCase() === peg$c71) { + if (s0.toLowerCase() === peg$c72) { peg$currPos += 16; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e76); } + if (peg$silentFails === 0) { peg$fail(peg$e77); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 18); - if (s1.toLowerCase() === peg$c72) { + if (s1.toLowerCase() === peg$c73) { peg$currPos += 18; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e77); } + if (peg$silentFails === 0) { peg$fail(peg$e78); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f57(); + s1 = peg$f58(); } s0 = s1; } @@ -2756,15 +2782,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 8); - if (s1.toLowerCase() === peg$c73) { + if (s1.toLowerCase() === peg$c74) { peg$currPos += 8; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e78); } + if (peg$silentFails === 0) { peg$fail(peg$e79); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f58(); + s1 = peg$f59(); } s0 = s1; @@ -2775,24 +2801,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 9); - if (s0.toLowerCase() === peg$c74) { + if (s0.toLowerCase() === peg$c75) { peg$currPos += 9; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e79); } + if (peg$silentFails === 0) { peg$fail(peg$e80); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c75) { + if (s1.toLowerCase() === peg$c76) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e80); } + if (peg$silentFails === 0) { peg$fail(peg$e81); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f59(); + s1 = peg$f60(); } s0 = s1; } @@ -2805,15 +2831,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 6); - if (s1.toLowerCase() === peg$c76) { + if (s1.toLowerCase() === peg$c77) { peg$currPos += 6; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e81); } + if (peg$silentFails === 0) { peg$fail(peg$e82); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f60(); + s1 = peg$f61(); } s0 = s1; @@ -2825,15 +2851,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 5); - if (s1.toLowerCase() === peg$c77) { + if (s1.toLowerCase() === peg$c78) { peg$currPos += 5; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e82); } + if (peg$silentFails === 0) { peg$fail(peg$e83); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f61(); + s1 = peg$f62(); } s0 = s1; @@ -2845,15 +2871,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 3); - if (s1.toLowerCase() === peg$c78) { + if (s1.toLowerCase() === peg$c79) { peg$currPos += 3; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e83); } + if (peg$silentFails === 0) { peg$fail(peg$e84); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f62(); + s1 = peg$f63(); } s0 = s1; @@ -2865,15 +2891,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 2); - if (s1.toLowerCase() === peg$c79) { + if (s1.toLowerCase() === peg$c80) { peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e84); } + if (peg$silentFails === 0) { peg$fail(peg$e85); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f63(); + s1 = peg$f64(); } s0 = s1; @@ -2884,24 +2910,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 14); - if (s0.toLowerCase() === peg$c80) { + if (s0.toLowerCase() === peg$c81) { peg$currPos += 14; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e85); } + if (peg$silentFails === 0) { peg$fail(peg$e86); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 15); - if (s1.toLowerCase() === peg$c81) { + if (s1.toLowerCase() === peg$c82) { peg$currPos += 15; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e86); } + if (peg$silentFails === 0) { peg$fail(peg$e87); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f64(); + s1 = peg$f65(); } s0 = s1; } @@ -2913,24 +2939,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 16); - if (s0.toLowerCase() === peg$c82) { + if (s0.toLowerCase() === peg$c83) { peg$currPos += 16; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e87); } + if (peg$silentFails === 0) { peg$fail(peg$e88); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 17); - if (s1.toLowerCase() === peg$c83) { + if (s1.toLowerCase() === peg$c84) { peg$currPos += 17; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e88); } + if (peg$silentFails === 0) { peg$fail(peg$e89); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f65(); + s1 = peg$f66(); } s0 = s1; } @@ -2942,24 +2968,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 13); - if (s0.toLowerCase() === peg$c84) { + if (s0.toLowerCase() === peg$c85) { peg$currPos += 13; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e89); } + if (peg$silentFails === 0) { peg$fail(peg$e90); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c85) { + if (s1.toLowerCase() === peg$c86) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e90); } + if (peg$silentFails === 0) { peg$fail(peg$e91); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f66(); + s1 = peg$f67(); } s0 = s1; } @@ -2971,24 +2997,24 @@ function peg$parse(input, options) { var s0, s1; s0 = input.substr(peg$currPos, 16); - if (s0.toLowerCase() === peg$c86) { + if (s0.toLowerCase() === peg$c87) { peg$currPos += 16; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e91); } + if (peg$silentFails === 0) { peg$fail(peg$e92); } } if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 17); - if (s1.toLowerCase() === peg$c87) { + if (s1.toLowerCase() === peg$c88) { peg$currPos += 17; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e92); } + if (peg$silentFails === 0) { peg$fail(peg$e93); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f67(); + s1 = peg$f68(); } s0 = s1; } @@ -3001,15 +3027,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 7); - if (s1.toLowerCase() === peg$c88) { + if (s1.toLowerCase() === peg$c89) { peg$currPos += 7; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e93); } + if (peg$silentFails === 0) { peg$fail(peg$e94); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f68(); + s1 = peg$f69(); } s0 = s1; @@ -3021,15 +3047,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 4); - if (s1.toLowerCase() === peg$c89) { + if (s1.toLowerCase() === peg$c90) { peg$currPos += 4; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e94); } + if (peg$silentFails === 0) { peg$fail(peg$e95); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f69(); + s1 = peg$f70(); } s0 = s1; @@ -3041,15 +3067,15 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 7); - if (s1.toLowerCase() === peg$c90) { + if (s1.toLowerCase() === peg$c91) { peg$currPos += 7; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e95); } + if (peg$silentFails === 0) { peg$fail(peg$e96); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f70(); + s1 = peg$f71(); } s0 = s1; @@ -3061,7 +3087,7 @@ function peg$parse(input, options) { s0 = peg$currPos; peg$savedPos = peg$currPos; - s1 = peg$f71(); + s1 = peg$f72(); if (s1) { s1 = undefined; } else { @@ -3196,11 +3222,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 8); - if (s1.toLowerCase() === peg$c91) { + if (s1.toLowerCase() === peg$c92) { peg$currPos += 8; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e96); } + if (peg$silentFails === 0) { peg$fail(peg$e97); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3215,7 +3241,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f72(); + s0 = peg$f73(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3233,19 +3259,19 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 6); - if (s1.toLowerCase() === peg$c92) { + if (s1.toLowerCase() === peg$c93) { peg$currPos += 6; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e97); } + if (peg$silentFails === 0) { peg$fail(peg$e98); } } if (s1 === peg$FAILED) { s1 = input.substr(peg$currPos, 5); - if (s1.toLowerCase() === peg$c93) { + if (s1.toLowerCase() === peg$c94) { peg$currPos += 5; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e98); } + if (peg$silentFails === 0) { peg$fail(peg$e99); } } } if (s1 !== peg$FAILED) { @@ -3261,7 +3287,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f73(); + s0 = peg$f74(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3279,11 +3305,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 15); - if (s1.toLowerCase() === peg$c81) { + if (s1.toLowerCase() === peg$c82) { peg$currPos += 15; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e86); } + if (peg$silentFails === 0) { peg$fail(peg$e87); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3298,7 +3324,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f74(); + s0 = peg$f75(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3316,11 +3342,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 3); - if (s1.toLowerCase() === peg$c94) { + if (s1.toLowerCase() === peg$c95) { peg$currPos += 3; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e99); } + if (peg$silentFails === 0) { peg$fail(peg$e100); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3335,7 +3361,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f75(); + s0 = peg$f76(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3372,7 +3398,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f76(); + s0 = peg$f77(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3390,11 +3416,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c95) { + if (s1.toLowerCase() === peg$c96) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e100); } + if (peg$silentFails === 0) { peg$fail(peg$e101); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3409,7 +3435,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f77(); + s0 = peg$f78(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3446,7 +3472,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f78(); + s0 = peg$f79(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3483,7 +3509,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f79(); + s0 = peg$f80(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3501,11 +3527,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c96) { + if (s1.toLowerCase() === peg$c97) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e101); } + if (peg$silentFails === 0) { peg$fail(peg$e102); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3520,7 +3546,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f80(); + s0 = peg$f81(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3557,7 +3583,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f81(); + s0 = peg$f82(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3575,11 +3601,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c97) { + if (s1.toLowerCase() === peg$c98) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e102); } + if (peg$silentFails === 0) { peg$fail(peg$e103); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3594,7 +3620,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f82(); + s0 = peg$f83(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3619,7 +3645,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e103); } + if (peg$silentFails === 0) { peg$fail(peg$e104); } } if (s2 !== peg$FAILED) { s1 = [s1, s2]; @@ -3638,11 +3664,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c98) { + if (s1.toLowerCase() === peg$c99) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e104); } + if (peg$silentFails === 0) { peg$fail(peg$e105); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3657,7 +3683,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f83(); + s0 = peg$f84(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3669,11 +3695,11 @@ function peg$parse(input, options) { if (s0 === peg$FAILED) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c97) { + if (s1.toLowerCase() === peg$c98) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e102); } + if (peg$silentFails === 0) { peg$fail(peg$e103); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3688,7 +3714,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f84(); + s0 = peg$f85(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3707,11 +3733,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 13); - if (s1.toLowerCase() === peg$c99) { + if (s1.toLowerCase() === peg$c100) { peg$currPos += 13; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e105); } + if (peg$silentFails === 0) { peg$fail(peg$e106); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3726,7 +3752,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f85(); + s0 = peg$f86(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3744,11 +3770,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 18); - if (s1.toLowerCase() === peg$c100) { + if (s1.toLowerCase() === peg$c101) { peg$currPos += 18; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e106); } + if (peg$silentFails === 0) { peg$fail(peg$e107); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3763,7 +3789,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f86(); + s0 = peg$f87(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3781,11 +3807,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 22); - if (s1.toLowerCase() === peg$c101) { + if (s1.toLowerCase() === peg$c102) { peg$currPos += 22; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e107); } + if (peg$silentFails === 0) { peg$fail(peg$e108); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3800,7 +3826,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f87(); + s0 = peg$f88(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3818,11 +3844,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c102) { + if (s1.toLowerCase() === peg$c103) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e108); } + if (peg$silentFails === 0) { peg$fail(peg$e109); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3837,7 +3863,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f88(); + s0 = peg$f89(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3855,11 +3881,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c103) { + if (s1.toLowerCase() === peg$c104) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e109); } + if (peg$silentFails === 0) { peg$fail(peg$e110); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3874,7 +3900,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f89(); + s0 = peg$f90(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3892,11 +3918,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c104) { + if (s1.toLowerCase() === peg$c105) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e110); } + if (peg$silentFails === 0) { peg$fail(peg$e111); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3911,7 +3937,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f90(); + s0 = peg$f91(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3929,11 +3955,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c105) { + if (s1.toLowerCase() === peg$c106) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e111); } + if (peg$silentFails === 0) { peg$fail(peg$e112); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3948,7 +3974,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f91(); + s0 = peg$f92(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -3966,11 +3992,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c106) { + if (s1.toLowerCase() === peg$c107) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e112); } + if (peg$silentFails === 0) { peg$fail(peg$e113); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -3985,7 +4011,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f92(); + s0 = peg$f93(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4003,11 +4029,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 18); - if (s1.toLowerCase() === peg$c107) { + if (s1.toLowerCase() === peg$c108) { peg$currPos += 18; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e113); } + if (peg$silentFails === 0) { peg$fail(peg$e114); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4022,7 +4048,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f93(); + s0 = peg$f94(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4040,11 +4066,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 15); - if (s1.toLowerCase() === peg$c108) { + if (s1.toLowerCase() === peg$c109) { peg$currPos += 15; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e114); } + if (peg$silentFails === 0) { peg$fail(peg$e115); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4059,7 +4085,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f94(); + s0 = peg$f95(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4077,11 +4103,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 19); - if (s1.toLowerCase() === peg$c109) { + if (s1.toLowerCase() === peg$c110) { peg$currPos += 19; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e115); } + if (peg$silentFails === 0) { peg$fail(peg$e116); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4096,7 +4122,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f95(); + s0 = peg$f96(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4114,11 +4140,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 20); - if (s1.toLowerCase() === peg$c110) { + if (s1.toLowerCase() === peg$c111) { peg$currPos += 20; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e116); } + if (peg$silentFails === 0) { peg$fail(peg$e117); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4133,7 +4159,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f96(); + s0 = peg$f97(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4151,11 +4177,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 23); - if (s1.toLowerCase() === peg$c111) { + if (s1.toLowerCase() === peg$c112) { peg$currPos += 23; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e117); } + if (peg$silentFails === 0) { peg$fail(peg$e118); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4170,7 +4196,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f97(); + s0 = peg$f98(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4188,11 +4214,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c85) { + if (s1.toLowerCase() === peg$c86) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e90); } + if (peg$silentFails === 0) { peg$fail(peg$e91); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4207,7 +4233,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f98(); + s0 = peg$f99(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4225,11 +4251,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 17); - if (s1.toLowerCase() === peg$c87) { + if (s1.toLowerCase() === peg$c88) { peg$currPos += 17; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e92); } + if (peg$silentFails === 0) { peg$fail(peg$e93); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4244,7 +4270,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f99(); + s0 = peg$f100(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4262,11 +4288,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c112) { + if (s1.toLowerCase() === peg$c113) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e118); } + if (peg$silentFails === 0) { peg$fail(peg$e119); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4281,7 +4307,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f100(); + s0 = peg$f101(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4299,11 +4325,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 9); - if (s1.toLowerCase() === peg$c113) { + if (s1.toLowerCase() === peg$c114) { peg$currPos += 9; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e119); } + if (peg$silentFails === 0) { peg$fail(peg$e120); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4318,7 +4344,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f101(); + s0 = peg$f102(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4336,11 +4362,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c114) { + if (s1.toLowerCase() === peg$c115) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e120); } + if (peg$silentFails === 0) { peg$fail(peg$e121); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4355,7 +4381,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f102(); + s0 = peg$f103(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4373,11 +4399,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 9); - if (s1.toLowerCase() === peg$c115) { + if (s1.toLowerCase() === peg$c116) { peg$currPos += 9; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e121); } + if (peg$silentFails === 0) { peg$fail(peg$e122); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4392,7 +4418,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f103(); + s0 = peg$f104(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4410,11 +4436,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c116) { + if (s1.toLowerCase() === peg$c117) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e122); } + if (peg$silentFails === 0) { peg$fail(peg$e123); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4429,7 +4455,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f104(); + s0 = peg$f105(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4447,11 +4473,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c117) { + if (s1.toLowerCase() === peg$c118) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e123); } + if (peg$silentFails === 0) { peg$fail(peg$e124); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4466,7 +4492,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f105(); + s0 = peg$f106(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4484,11 +4510,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 10); - if (s1.toLowerCase() === peg$c118) { + if (s1.toLowerCase() === peg$c119) { peg$currPos += 10; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e124); } + if (peg$silentFails === 0) { peg$fail(peg$e125); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4503,7 +4529,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f106(); + s0 = peg$f107(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4521,11 +4547,11 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 13); - if (s1.toLowerCase() === peg$c119) { + if (s1.toLowerCase() === peg$c120) { peg$currPos += 13; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e125); } + if (peg$silentFails === 0) { peg$fail(peg$e126); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -4540,7 +4566,7 @@ function peg$parse(input, options) { } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f107(); + s0 = peg$f108(); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4558,16 +4584,16 @@ function peg$parse(input, options) { peg$silentFails++; s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c120) { - s1 = peg$c120; + if (input.substr(peg$currPos, 2) === peg$c121) { + s1 = peg$c121; peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e127); } + if (peg$silentFails === 0) { peg$fail(peg$e128); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f108(); + s1 = peg$f109(); } s0 = s1; if (s0 === peg$FAILED) { @@ -4577,81 +4603,81 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e103); } + if (peg$silentFails === 0) { peg$fail(peg$e104); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f109(); + s1 = peg$f110(); } s0 = s1; if (s0 === peg$FAILED) { s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c121) { - s1 = peg$c121; + if (input.substr(peg$currPos, 2) === peg$c122) { + s1 = peg$c122; peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e128); } + if (peg$silentFails === 0) { peg$fail(peg$e129); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f110(); + s1 = peg$f111(); } s0 = s1; if (s0 === peg$FAILED) { s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c122) { - s1 = peg$c122; + if (input.substr(peg$currPos, 2) === peg$c123) { + s1 = peg$c123; peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e129); } + if (peg$silentFails === 0) { peg$fail(peg$e130); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f111(); + s1 = peg$f112(); } s0 = s1; if (s0 === peg$FAILED) { s0 = peg$currPos; if (input.charCodeAt(peg$currPos) === 62) { - s1 = peg$c123; + s1 = peg$c124; peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e130); } + if (peg$silentFails === 0) { peg$fail(peg$e131); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f112(); + s1 = peg$f113(); } s0 = s1; if (s0 === peg$FAILED) { s0 = peg$currPos; - if (input.substr(peg$currPos, 2) === peg$c124) { - s1 = peg$c124; + if (input.substr(peg$currPos, 2) === peg$c125) { + s1 = peg$c125; peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e131); } + if (peg$silentFails === 0) { peg$fail(peg$e132); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f113(); + s1 = peg$f114(); } s0 = s1; if (s0 === peg$FAILED) { s0 = peg$currPos; if (input.charCodeAt(peg$currPos) === 60) { - s1 = peg$c125; + s1 = peg$c126; peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e132); } + if (peg$silentFails === 0) { peg$fail(peg$e133); } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f114(); + s1 = peg$f115(); } s0 = s1; } @@ -4663,7 +4689,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e126); } + if (peg$silentFails === 0) { peg$fail(peg$e127); } } return s0; @@ -4676,7 +4702,7 @@ function peg$parse(input, options) { s1 = peg$parseoperator(); if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f115(s1); + s1 = peg$f116(s1); } s0 = s1; @@ -4688,11 +4714,11 @@ function peg$parse(input, options) { s0 = peg$currPos; if (input.charCodeAt(peg$currPos) === 92) { - s1 = peg$c126; + s1 = peg$c127; peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e133); } + if (peg$silentFails === 0) { peg$fail(peg$e134); } } if (s1 !== peg$FAILED) { s2 = input.charAt(peg$currPos); @@ -4700,11 +4726,11 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e134); } + if (peg$silentFails === 0) { peg$fail(peg$e135); } } if (s2 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f116(s2); + s0 = peg$f117(s2); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4730,7 +4756,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e136); } + if (peg$silentFails === 0) { peg$fail(peg$e137); } } } if (s2 !== peg$FAILED) { @@ -4743,7 +4769,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e136); } + if (peg$silentFails === 0) { peg$fail(peg$e137); } } } } @@ -4752,13 +4778,13 @@ function peg$parse(input, options) { } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f117(s1); + s1 = peg$f118(s1); } s0 = s1; peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e135); } + if (peg$silentFails === 0) { peg$fail(peg$e136); } } return s0; @@ -4770,7 +4796,7 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = peg$parse_(); peg$savedPos = s0; - s1 = peg$f118(); + s1 = peg$f119(); s0 = s1; return s0; @@ -4786,7 +4812,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e138); } + if (peg$silentFails === 0) { peg$fail(peg$e139); } } while (s1 !== peg$FAILED) { s0.push(s1); @@ -4795,12 +4821,12 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e138); } + if (peg$silentFails === 0) { peg$fail(peg$e139); } } } peg$silentFails--; s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e137); } + if (peg$silentFails === 0) { peg$fail(peg$e138); } return s0; } @@ -4810,7 +4836,7 @@ function peg$parse(input, options) { s0 = peg$currPos; peg$savedPos = peg$currPos; - s1 = peg$f119(); + s1 = peg$f120(); if (s1) { s1 = undefined; } else { @@ -4847,7 +4873,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e140); } + if (peg$silentFails === 0) { peg$fail(peg$e141); } } while (s2 !== peg$FAILED) { s1.push(s2); @@ -4856,7 +4882,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e140); } + if (peg$silentFails === 0) { peg$fail(peg$e141); } } } s2 = input.charAt(peg$currPos); @@ -4864,7 +4890,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e141); } + if (peg$silentFails === 0) { peg$fail(peg$e142); } } if (s2 !== peg$FAILED) { s3 = []; @@ -4875,7 +4901,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e142); } + if (peg$silentFails === 0) { peg$fail(peg$e143); } } } while (s4 !== peg$FAILED) { @@ -4887,7 +4913,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e142); } + if (peg$silentFails === 0) { peg$fail(peg$e143); } } } } @@ -4896,7 +4922,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e141); } + if (peg$silentFails === 0) { peg$fail(peg$e142); } } if (s4 !== peg$FAILED) { s5 = []; @@ -4905,7 +4931,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e136); } + if (peg$silentFails === 0) { peg$fail(peg$e137); } } while (s6 !== peg$FAILED) { s5.push(s6); @@ -4914,11 +4940,11 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e136); } + if (peg$silentFails === 0) { peg$fail(peg$e137); } } } peg$savedPos = s0; - s0 = peg$f120(s1, s3, s5); + s0 = peg$f121(s1, s3, s5); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -4930,7 +4956,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e139); } + if (peg$silentFails === 0) { peg$fail(peg$e140); } } return s0; @@ -4947,7 +4973,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e140); } + if (peg$silentFails === 0) { peg$fail(peg$e141); } } while (s2 !== peg$FAILED) { s1.push(s2); @@ -4956,7 +4982,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e140); } + if (peg$silentFails === 0) { peg$fail(peg$e141); } } } s2 = input.charAt(peg$currPos); @@ -4964,7 +4990,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e141); } + if (peg$silentFails === 0) { peg$fail(peg$e142); } } if (s2 !== peg$FAILED) { s3 = []; @@ -4975,7 +5001,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e142); } + if (peg$silentFails === 0) { peg$fail(peg$e143); } } if (s4 === peg$FAILED) { s4 = peg$currPos; @@ -4991,15 +5017,15 @@ function peg$parse(input, options) { } if (s5 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 8220) { - s6 = peg$c127; + s6 = peg$c128; peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e143); } + if (peg$silentFails === 0) { peg$fail(peg$e144); } } if (s6 !== peg$FAILED) { peg$savedPos = s4; - s4 = peg$f121(s1); + s4 = peg$f122(s1); } else { peg$currPos = s4; s4 = peg$FAILED; @@ -5022,15 +5048,15 @@ function peg$parse(input, options) { } if (s5 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 8221) { - s6 = peg$c128; + s6 = peg$c129; peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e144); } + if (peg$silentFails === 0) { peg$fail(peg$e145); } } if (s6 !== peg$FAILED) { peg$savedPos = s4; - s4 = peg$f122(s1); + s4 = peg$f123(s1); } else { peg$currPos = s4; s4 = peg$FAILED; @@ -5053,15 +5079,15 @@ function peg$parse(input, options) { } if (s5 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 34) { - s6 = peg$c129; + s6 = peg$c130; peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e145); } + if (peg$silentFails === 0) { peg$fail(peg$e146); } } if (s6 !== peg$FAILED) { peg$savedPos = s4; - s4 = peg$f123(s1); + s4 = peg$f124(s1); } else { peg$currPos = s4; s4 = peg$FAILED; @@ -5083,7 +5109,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e142); } + if (peg$silentFails === 0) { peg$fail(peg$e143); } } if (s4 === peg$FAILED) { s4 = peg$currPos; @@ -5099,15 +5125,15 @@ function peg$parse(input, options) { } if (s5 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 8220) { - s6 = peg$c127; + s6 = peg$c128; peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e143); } + if (peg$silentFails === 0) { peg$fail(peg$e144); } } if (s6 !== peg$FAILED) { peg$savedPos = s4; - s4 = peg$f121(s1); + s4 = peg$f122(s1); } else { peg$currPos = s4; s4 = peg$FAILED; @@ -5130,15 +5156,15 @@ function peg$parse(input, options) { } if (s5 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 8221) { - s6 = peg$c128; + s6 = peg$c129; peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e144); } + if (peg$silentFails === 0) { peg$fail(peg$e145); } } if (s6 !== peg$FAILED) { peg$savedPos = s4; - s4 = peg$f122(s1); + s4 = peg$f123(s1); } else { peg$currPos = s4; s4 = peg$FAILED; @@ -5161,15 +5187,15 @@ function peg$parse(input, options) { } if (s5 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 34) { - s6 = peg$c129; + s6 = peg$c130; peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e145); } + if (peg$silentFails === 0) { peg$fail(peg$e146); } } if (s6 !== peg$FAILED) { peg$savedPos = s4; - s4 = peg$f123(s1); + s4 = peg$f124(s1); } else { peg$currPos = s4; s4 = peg$FAILED; @@ -5186,7 +5212,7 @@ function peg$parse(input, options) { s4 = peg$parseclosingQuote(); if (s4 !== peg$FAILED) { peg$savedPos = s0; - s0 = peg$f124(s1, s3, s4); + s0 = peg$f125(s1, s3, s4); } else { peg$currPos = s0; s0 = peg$FAILED; @@ -5198,7 +5224,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e139); } + if (peg$silentFails === 0) { peg$fail(peg$e140); } } return s0; @@ -5213,7 +5239,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e141); } + if (peg$silentFails === 0) { peg$fail(peg$e142); } } if (s1 !== peg$FAILED) { s2 = peg$currPos; @@ -5251,7 +5277,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e146); } + if (peg$silentFails === 0) { peg$fail(peg$e147); } } while (s2 !== peg$FAILED) { s1.push(s2); @@ -5260,7 +5286,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e146); } + if (peg$silentFails === 0) { peg$fail(peg$e147); } } } s2 = []; @@ -5269,7 +5295,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e147); } + if (peg$silentFails === 0) { peg$fail(peg$e148); } } while (s3 !== peg$FAILED) { s2.push(s3); @@ -5278,7 +5304,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e147); } + if (peg$silentFails === 0) { peg$fail(peg$e148); } } } s3 = []; @@ -5287,7 +5313,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e148); } + if (peg$silentFails === 0) { peg$fail(peg$e149); } } while (s4 !== peg$FAILED) { s3.push(s4); @@ -5296,7 +5322,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e148); } + if (peg$silentFails === 0) { peg$fail(peg$e149); } } } s4 = peg$parseoperator(); @@ -5315,7 +5341,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e149); } + if (peg$silentFails === 0) { peg$fail(peg$e150); } } while (s2 !== peg$FAILED) { s1.push(s2); @@ -5324,7 +5350,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e149); } + if (peg$silentFails === 0) { peg$fail(peg$e150); } } } s2 = peg$currPos; @@ -5371,7 +5397,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e150); } + if (peg$silentFails === 0) { peg$fail(peg$e151); } } } } @@ -5387,7 +5413,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e151); } + if (peg$silentFails === 0) { peg$fail(peg$e152); } } if (s0 === peg$FAILED) { s0 = peg$currPos; @@ -5416,24 +5442,24 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c130) { + if (s1.toLowerCase() === peg$c131) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e152); } + if (peg$silentFails === 0) { peg$fail(peg$e153); } } if (s1 === peg$FAILED) { s1 = input.substr(peg$currPos, 12); - if (s1.toLowerCase() === peg$c131) { + if (s1.toLowerCase() === peg$c132) { peg$currPos += 12; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e153); } + if (peg$silentFails === 0) { peg$fail(peg$e154); } } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f125(); + s1 = peg$f126(); } s0 = s1; @@ -5445,24 +5471,24 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 14); - if (s1.toLowerCase() === peg$c132) { + if (s1.toLowerCase() === peg$c133) { peg$currPos += 14; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e154); } + if (peg$silentFails === 0) { peg$fail(peg$e155); } } if (s1 === peg$FAILED) { s1 = input.substr(peg$currPos, 15); - if (s1.toLowerCase() === peg$c133) { + if (s1.toLowerCase() === peg$c134) { peg$currPos += 15; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e155); } + if (peg$silentFails === 0) { peg$fail(peg$e156); } } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f126(); + s1 = peg$f127(); } s0 = s1; @@ -5474,24 +5500,24 @@ function peg$parse(input, options) { s0 = peg$currPos; s1 = input.substr(peg$currPos, 11); - if (s1.toLowerCase() === peg$c134) { + if (s1.toLowerCase() === peg$c135) { peg$currPos += 11; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e156); } + if (peg$silentFails === 0) { peg$fail(peg$e157); } } if (s1 === peg$FAILED) { s1 = input.substr(peg$currPos, 12); - if (s1.toLowerCase() === peg$c135) { + if (s1.toLowerCase() === peg$c136) { peg$currPos += 12; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { peg$fail(peg$e157); } + if (peg$silentFails === 0) { peg$fail(peg$e158); } } } if (s1 !== peg$FAILED) { peg$savedPos = s0; - s1 = peg$f127(); + s1 = peg$f128(); } s0 = s1; diff --git a/src/libs/SearchParser/searchParser.peggy b/src/libs/SearchParser/searchParser.peggy index 021ea38ff849..75238c3cbcfc 100644 --- a/src/libs/SearchParser/searchParser.peggy +++ b/src/libs/SearchParser/searchParser.peggy @@ -322,6 +322,7 @@ key "key" / createdBy / reimbursable / billable + / declined / action / has / is diff --git a/src/libs/SearchQueryUtils.ts b/src/libs/SearchQueryUtils.ts index a6fb18b658c4..d97328d375b5 100644 --- a/src/libs/SearchQueryUtils.ts +++ b/src/libs/SearchQueryUtils.ts @@ -1413,6 +1413,7 @@ function buildQueryStringFromFilterFormValues(filterValues: Partial filterValues.at(0) === value); } diff --git a/src/libs/SearchUIUtils.ts b/src/libs/SearchUIUtils.ts index 95917d0251e6..3bf74e6abdbb 100644 --- a/src/libs/SearchUIUtils.ts +++ b/src/libs/SearchUIUtils.ts @@ -5665,6 +5665,10 @@ const FILTER_VIEW_MAP = { labelKey: 'common.currency', icon: 'MoneyCircle', }, + [CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED]: { + labelKey: 'search.filters.rejected', + icon: 'ThumbsDown', + }, [CONST.SEARCH.SYNTAX_FILTER_KEYS.DESCRIPTION]: { labelKey: 'common.description', icon: 'Document', @@ -5983,7 +5987,14 @@ function getDisplayValue( return form[key]?.sort(localeCompare).join(', '); } - if (key === FILTER_KEYS.BILLABLE || key === FILTER_KEYS.REIMBURSABLE) { + if ( + key === FILTER_KEYS.BILLABLE || + key === FILTER_KEYS.BILLABLE_NOT || + key === FILTER_KEYS.REIMBURSABLE || + key === FILTER_KEYS.REIMBURSABLE_NOT || + key === FILTER_KEYS.DECLINED || + key === FILTER_KEYS.DECLINED_NOT + ) { const formValue = form[key]; return formValue ? translate(`common.${formValue}`) : undefined; } @@ -6287,7 +6298,7 @@ function mapFiltersFormToLabelValueList( } function getSingleSelectFilterOptions(filterKey: SearchAdvancedFiltersKey, translate: LocalizedTranslate) { - if (filterKey === FILTER_KEYS.BILLABLE || filterKey === FILTER_KEYS.REIMBURSABLE) { + if (filterKey === FILTER_KEYS.BILLABLE || filterKey === FILTER_KEYS.REIMBURSABLE || filterKey === FILTER_KEYS.DECLINED) { return Object.values(CONST.SEARCH.BOOLEAN).map((value) => ({value, text: translate(`common.${value}`)})); } diff --git a/src/types/form/SearchAdvancedFiltersForm.ts b/src/types/form/SearchAdvancedFiltersForm.ts index aa752539196e..b0744c0c3c8f 100644 --- a/src/types/form/SearchAdvancedFiltersForm.ts +++ b/src/types/form/SearchAdvancedFiltersForm.ts @@ -247,6 +247,9 @@ const FILTER_KEYS = { BILLABLE_NOT: 'billableNot', BILLABLE: 'billable', + DECLINED_NOT: 'declinedNot', + DECLINED: 'declined', + ACTION_NOT: 'actionNot', ACTION: 'action', @@ -354,6 +357,8 @@ const ALLOWED_TYPE_FILTERS: Record> = { FILTER_KEYS.REIMBURSABLE_NOT, FILTER_KEYS.BILLABLE, FILTER_KEYS.BILLABLE_NOT, + FILTER_KEYS.DECLINED, + FILTER_KEYS.DECLINED_NOT, FILTER_KEYS.REPORT_ID, FILTER_KEYS.REPORT_ID_NOT, FILTER_KEYS.SUBMITTED_ON, @@ -457,6 +462,8 @@ const ALLOWED_TYPE_FILTERS: Record> = { FILTER_KEYS.WITHDRAWAL_STATUS_NOT, FILTER_KEYS.PAID_STATUS, FILTER_KEYS.PAID_STATUS_NOT, + FILTER_KEYS.DECLINED, + FILTER_KEYS.DECLINED_NOT, FILTER_KEYS.WITHDRAWN_AFTER, FILTER_KEYS.WITHDRAWN_BEFORE, FILTER_KEYS.WITHDRAWN_ON, @@ -930,6 +937,9 @@ type SearchAdvancedFiltersForm = Form< [FILTER_KEYS.BILLABLE]: BooleanValue; [FILTER_KEYS.BILLABLE_NOT]: BooleanValue; + [FILTER_KEYS.DECLINED]: BooleanValue; + [FILTER_KEYS.DECLINED_NOT]: BooleanValue; + [FILTER_KEYS.ACTION]: string; [FILTER_KEYS.ACTION_NOT]: string; diff --git a/tests/unit/Search/SearchQueryUtilsTest.ts b/tests/unit/Search/SearchQueryUtilsTest.ts index d78d3021104e..9e80544b68e4 100644 --- a/tests/unit/Search/SearchQueryUtilsTest.ts +++ b/tests/unit/Search/SearchQueryUtilsTest.ts @@ -610,6 +610,34 @@ describe('SearchQueryUtils', () => { expect(result).toEqual('type:expense -transactionStatus:pending'); }); + test('declined filter value', () => { + // Given the Rejected filter set to yes on an expense report search + const filterValues: Partial = { + type: 'expense-report', + declined: 'yes', + }; + + // When the query string is built from the form + const result = buildQueryStringFromFilterFormValues(filterValues); + + // Then the filter is written with the declined key used by the backend + expect(result).toEqual('type:expense-report declined:yes'); + }); + + test('negated declined filter value', () => { + // Given the Rejected filter negated on an expense search + const filterValues: Partial = { + type: 'expense', + declinedNot: 'no', + }; + + // When the query string is built from the form + const result = buildQueryStringFromFilterFormValues(filterValues); + + // Then the declined key gets the "-" prefix + expect(result).toEqual('type:expense -declined:no'); + }); + test('negated receipt type filter value', () => { const filterValues: Partial = { type: 'expense', @@ -2214,6 +2242,52 @@ describe('SearchQueryUtils', () => { expect(result.transactionStatus).toBeUndefined(); }); + test('declined filter populates the form with a yes or no value', () => { + // Given a query that filters expenses on whether they were rejected + const queryJSON = buildSearchQueryJSON('sortBy:date sortOrder:desc type:expense declined:yes'); + + if (!queryJSON) { + throw new Error('Failed to parse query string'); + } + + // When the form values are built from the query + const result = buildFilterFormValuesFromQuery(queryJSON, {}, {}, {}, {}, {}, {}); + + // Then the Rejected filter holds the yes value + expect(result.declined).toEqual('yes'); + }); + + test('declined filter ignores values other than yes and no', () => { + // Given a hand-typed query with a value the boolean filter does not accept + const queryJSON = buildSearchQueryJSON('sortBy:date sortOrder:desc type:expense declined:maybe'); + + if (!queryJSON) { + throw new Error('Failed to parse query string'); + } + + // When the form values are built from the query + const result = buildFilterFormValuesFromQuery(queryJSON, {}, {}, {}, {}, {}, {}); + + // Then the invalid value is dropped instead of being shown as a selection + expect(result.declined).toBeUndefined(); + }); + + test('negated declined filter populates declinedNot', () => { + // Given a query that excludes rejected expense reports with the "-" prefix + const queryJSON = buildSearchQueryJSON('sortBy:date sortOrder:desc type:expense-report -declined:yes'); + + if (!queryJSON) { + throw new Error('Failed to parse query string'); + } + + // When the form values are built from the query + const result = buildFilterFormValuesFromQuery(queryJSON, {}, {}, {}, {}, {}, {}); + + // Then the value lands in the negated form key only + expect(result.declinedNot).toEqual('yes'); + expect(result.declined).toBeUndefined(); + }); + test('negated receipt type filter populates receiptTypeNot', () => { // Negation in the query syntax uses the "-" prefix, which round-trips to the receiptTypeNot form value. const queryString = 'sortBy:date sortOrder:desc type:expense -receipt-type:hotel'; diff --git a/tests/unit/Search/SearchUIUtilsTest.ts b/tests/unit/Search/SearchUIUtilsTest.ts index bdc39c1bf0fa..b8d2f954557c 100644 --- a/tests/unit/Search/SearchUIUtilsTest.ts +++ b/tests/unit/Search/SearchUIUtilsTest.ts @@ -14832,6 +14832,17 @@ describe('SearchUIUtils', () => { // Then the match type is part of the translated label, so a missing operator reads as contains expect(result).toBe(translateLocal(translationKey, 'I')); }); + + test.each([FILTER_KEYS.BILLABLE_NOT, FILTER_KEYS.REIMBURSABLE_NOT, FILTER_KEYS.DECLINED_NOT] as const)('translates the yes/no value of a negated %s filter', (key) => { + // Given a negated yes/no filter, as stored when the query is "-billable:yes", "-reimbursable:yes" or "-declined:yes" + const form = {[key]: CONST.SEARCH.BOOLEAN.YES}; + + // When the filter label is built + const result = SearchUIUtils.getDisplayValue(key, form, CONST.SEARCH.DATA_TYPES.EXPENSE, translateLocal, localeCompare); + + // Then the label uses the localized value instead of the raw query token, matching the non-negated filter + expect(result).toBe(translateLocal('common.yes')); + }); }); describe('filterValidHasValues', () => { diff --git a/tests/unit/SearchParserTest.ts b/tests/unit/SearchParserTest.ts index dacf17412b7e..50801385c9cb 100644 --- a/tests/unit/SearchParserTest.ts +++ b/tests/unit/SearchParserTest.ts @@ -1365,6 +1365,34 @@ const keywordTests = [ }, }, }, + { + query: 'declined:yes', + expected: { + type: 'expense', + sortBy: 'date', + sortOrder: 'desc', + view: 'table', + filters: { + operator: 'eq', + left: 'declined', + right: 'yes', + }, + }, + }, + { + query: 'type:expense-report -declined:no', + expected: { + type: 'expense-report', + sortBy: 'date', + sortOrder: 'desc', + view: 'table', + filters: { + operator: 'neq', + left: 'declined', + right: 'no', + }, + }, + }, { query: 'columns:per-diem,drafts,draft,tax-rate,policy-name,withdrawal-id,bank-account', expected: { diff --git a/tests/unit/hooks/useAutocompleteSuggestions.test.ts b/tests/unit/hooks/useAutocompleteSuggestions.test.ts index 8bfeb89e8f3e..5e20bcd7dae9 100644 --- a/tests/unit/hooks/useAutocompleteSuggestions.test.ts +++ b/tests/unit/hooks/useAutocompleteSuggestions.test.ts @@ -460,6 +460,21 @@ describe('useAutocompleteSuggestions', () => { expect(result.current.at(0)?.filterKey).toBe(CONST.SEARCH.SYNTAX_FILTER_KEYS.REIMBURSABLE); }); + it('returns yes and no suggestions for declined key', () => { + // Given the user has typed the declined key with no value yet + parseForAutocomplete.mockReturnValue({ + autocomplete: {key: CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED, value: ''}, + ranges: [], + }); + + // When suggestions are computed + const {result} = renderHook(() => useAutocompleteSuggestions({...defaultParams, autocompleteQueryValue: 'declined:'})); + + // Then both boolean values are suggested for the declined key + expect(result.current.map((suggestion) => suggestion.text)).toEqual([CONST.SEARCH.BOOLEAN.NO, CONST.SEARCH.BOOLEAN.YES]); + expect(result.current.at(0)?.filterKey).toBe(CONST.SEARCH.SYNTAX_FILTER_KEYS.DECLINED); + }); + it('returns in: suggestions for chat reports', () => { parseForAutocomplete.mockReturnValue({ autocomplete: {key: CONST.SEARCH.SYNTAX_FILTER_KEYS.IN, value: 'gen'},