chrono-node 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/workspace.xml +45 -62
- package/README.md +3 -1
- package/dist/calculation/mergingCalculation.js +4 -2
- package/dist/calculation/mergingCalculation.js.map +1 -1
- package/dist/esm/calculation/mergingCalculation.d.ts +3 -0
- package/dist/esm/calculation/mergingCalculation.js +69 -0
- package/dist/esm/calculation/mergingCalculation.js.map +1 -0
- package/dist/esm/calculation/years.d.ts +2 -0
- package/dist/esm/calculation/years.js +29 -0
- package/dist/esm/calculation/years.js.map +1 -0
- package/dist/esm/chrono.d.ts +41 -0
- package/dist/esm/chrono.js +99 -0
- package/dist/esm/chrono.js.map +1 -0
- package/dist/esm/common/abstractRefiners.d.ts +11 -0
- package/dist/esm/common/abstractRefiners.js +37 -0
- package/dist/esm/common/abstractRefiners.js.map +1 -0
- package/dist/esm/common/calculation/weekdays.d.ts +7 -0
- package/dist/esm/common/calculation/weekdays.js +60 -0
- package/dist/esm/common/calculation/weekdays.js.map +1 -0
- package/dist/esm/common/casualReferences.d.ts +15 -0
- package/dist/esm/common/casualReferences.js +111 -0
- package/dist/esm/common/casualReferences.js.map +1 -0
- package/dist/esm/common/parsers/AbstractParserWithWordBoundary.d.ts +25 -0
- package/dist/esm/common/parsers/AbstractParserWithWordBoundary.js +28 -0
- package/dist/esm/common/parsers/AbstractParserWithWordBoundary.js.map +1 -0
- package/dist/esm/common/parsers/AbstractTimeExpressionParser.d.ts +26 -0
- package/dist/esm/common/parsers/AbstractTimeExpressionParser.js +322 -0
- package/dist/esm/common/parsers/AbstractTimeExpressionParser.js.map +1 -0
- package/dist/esm/common/parsers/ISOFormatParser.d.ts +17 -0
- package/dist/esm/common/parsers/ISOFormatParser.js +62 -0
- package/dist/esm/common/parsers/ISOFormatParser.js.map +1 -0
- package/dist/esm/common/parsers/SlashDateFormatParser.d.ts +9 -0
- package/dist/esm/common/parsers/SlashDateFormatParser.js +64 -0
- package/dist/esm/common/parsers/SlashDateFormatParser.js.map +1 -0
- package/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.d.ts +7 -0
- package/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.js +51 -0
- package/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.d.ts +7 -0
- package/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.js +18 -0
- package/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.d.ts +9 -0
- package/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.js +240 -0
- package/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.js.map +1 -0
- package/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.d.ts +5 -0
- package/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.js +37 -0
- package/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.js.map +1 -0
- package/dist/esm/common/refiners/ForwardDateRefiner.d.ts +5 -0
- package/dist/esm/common/refiners/ForwardDateRefiner.js +67 -0
- package/dist/esm/common/refiners/ForwardDateRefiner.js.map +1 -0
- package/dist/esm/common/refiners/MergeWeekdayComponentRefiner.d.ts +6 -0
- package/dist/esm/common/refiners/MergeWeekdayComponentRefiner.js +20 -0
- package/dist/esm/common/refiners/MergeWeekdayComponentRefiner.js.map +1 -0
- package/dist/esm/common/refiners/OverlapRemovalRefiner.d.ts +5 -0
- package/dist/esm/common/refiners/OverlapRemovalRefiner.js +26 -0
- package/dist/esm/common/refiners/OverlapRemovalRefiner.js.map +1 -0
- package/dist/esm/common/refiners/UnlikelyFormatFilter.d.ts +8 -0
- package/dist/esm/common/refiners/UnlikelyFormatFilter.js +47 -0
- package/dist/esm/common/refiners/UnlikelyFormatFilter.js.map +1 -0
- package/dist/esm/configurations.d.ts +2 -0
- package/dist/esm/configurations.js +19 -0
- package/dist/esm/configurations.js.map +1 -0
- package/dist/esm/debugging.d.ts +11 -0
- package/dist/esm/debugging.js +14 -0
- package/dist/esm/debugging.js.map +1 -0
- package/dist/esm/index.d.ts +53 -0
- package/dist/esm/index.js +36 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/locales/de/constants.d.ts +20 -0
- package/dist/esm/locales/de/constants.js +171 -0
- package/dist/esm/locales/de/constants.js.map +1 -0
- package/dist/esm/locales/de/index.d.ts +8 -0
- package/dist/esm/locales/de/index.js +44 -0
- package/dist/esm/locales/de/index.js.map +1 -0
- package/dist/esm/locales/de/parsers/DECasualDateParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DECasualDateParser.js +61 -0
- package/dist/esm/locales/de/parsers/DECasualDateParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DECasualTimeParser.d.ts +8 -0
- package/dist/esm/locales/de/parsers/DECasualTimeParser.js +69 -0
- package/dist/esm/locales/de/parsers/DECasualTimeParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DEMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DEMonthNameLittleEndianParser.js +47 -0
- package/dist/esm/locales/de/parsers/DEMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DESpecificTimeExpressionParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DESpecificTimeExpressionParser.js +112 -0
- package/dist/esm/locales/de/parsers/DESpecificTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DETimeExpressionParser.d.ts +8 -0
- package/dist/esm/locales/de/parsers/DETimeExpressionParser.js +16 -0
- package/dist/esm/locales/de/parsers/DETimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DETimeUnitRelativeFormatParser.d.ts +8 -0
- package/dist/esm/locales/de/parsers/DETimeUnitRelativeFormatParser.js +32 -0
- package/dist/esm/locales/de/parsers/DETimeUnitRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DETimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DETimeUnitWithinFormatParser.js +13 -0
- package/dist/esm/locales/de/parsers/DETimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/de/parsers/DEWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/de/parsers/DEWeekdayParser.js +40 -0
- package/dist/esm/locales/de/parsers/DEWeekdayParser.js.map +1 -0
- package/dist/esm/locales/de/refiners/DEMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/de/refiners/DEMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/de/refiners/DEMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/de/refiners/DEMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/de/refiners/DEMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/de/refiners/DEMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/en/constants.d.ts +29 -0
- package/dist/esm/locales/en/constants.js +229 -0
- package/dist/esm/locales/en/constants.js.map +1 -0
- package/dist/esm/locales/en/index.d.ts +9 -0
- package/dist/esm/locales/en/index.js +56 -0
- package/dist/esm/locales/en/index.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENCasualDateParser.js +40 -0
- package/dist/esm/locales/en/parsers/ENCasualDateParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENCasualTimeParser.d.ts +6 -0
- package/dist/esm/locales/en/parsers/ENCasualTimeParser.js +26 -0
- package/dist/esm/locales/en/parsers/ENCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENCasualYearMonthDayParser.d.ts +10 -0
- package/dist/esm/locales/en/parsers/ENCasualYearMonthDayParser.js +32 -0
- package/dist/esm/locales/en/parsers/ENCasualYearMonthDayParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.js +54 -0
- package/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.d.ts +6 -0
- package/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.js +56 -0
- package/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENMonthNameParser.d.ts +6 -0
- package/dist/esm/locales/en/parsers/ENMonthNameParser.js +40 -0
- package/dist/esm/locales/en/parsers/ENMonthNameParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.js +51 -0
- package/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.js +15 -0
- package/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeExpressionParser.d.ts +10 -0
- package/dist/esm/locales/en/parsers/ENTimeExpressionParser.js +47 -0
- package/dist/esm/locales/en/parsers/ENTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.d.ts +9 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.js +21 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.js +23 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.d.ts +9 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.js +20 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.js +16 -0
- package/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/en/parsers/ENWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/en/parsers/ENWeekdayParser.js +40 -0
- package/dist/esm/locales/en/parsers/ENWeekdayParser.js.map +1 -0
- package/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/en/refiners/ENMergeRelativeDateRefiner.d.ts +7 -0
- package/dist/esm/locales/en/refiners/ENMergeRelativeDateRefiner.js +33 -0
- package/dist/esm/locales/en/refiners/ENMergeRelativeDateRefiner.js.map +1 -0
- package/dist/esm/locales/es/constants.d.ts +21 -0
- package/dist/esm/locales/es/constants.js +159 -0
- package/dist/esm/locales/es/constants.js.map +1 -0
- package/dist/esm/locales/es/index.d.ts +8 -0
- package/dist/esm/locales/es/index.js +38 -0
- package/dist/esm/locales/es/index.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/es/parsers/ESCasualDateParser.js +23 -0
- package/dist/esm/locales/es/parsers/ESCasualDateParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESCasualTimeParser.d.ts +6 -0
- package/dist/esm/locales/es/parsers/ESCasualTimeParser.js +40 -0
- package/dist/esm/locales/es/parsers/ESCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/es/parsers/ESMonthNameLittleEndianParser.js +46 -0
- package/dist/esm/locales/es/parsers/ESMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESTimeExpressionParser.d.ts +5 -0
- package/dist/esm/locales/es/parsers/ESTimeExpressionParser.js +10 -0
- package/dist/esm/locales/es/parsers/ESTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/es/parsers/ESTimeUnitWithinFormatParser.js +13 -0
- package/dist/esm/locales/es/parsers/ESTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/es/parsers/ESWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/es/parsers/ESWeekdayParser.js +41 -0
- package/dist/esm/locales/es/parsers/ESWeekdayParser.js.map +1 -0
- package/dist/esm/locales/es/refiners/ESMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/es/refiners/ESMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/es/refiners/ESMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/es/refiners/ESMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/es/refiners/ESMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/es/refiners/ESMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/fr/constants.d.ts +23 -0
- package/dist/esm/locales/fr/constants.js +161 -0
- package/dist/esm/locales/fr/constants.js.map +1 -0
- package/dist/esm/locales/fr/index.d.ts +8 -0
- package/dist/esm/locales/fr/index.js +44 -0
- package/dist/esm/locales/fr/index.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRCasualDateParser.js +38 -0
- package/dist/esm/locales/fr/parsers/FRCasualDateParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRCasualTimeParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRCasualTimeParser.js +40 -0
- package/dist/esm/locales/fr/parsers/FRCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRMonthNameLittleEndianParser.js +48 -0
- package/dist/esm/locales/fr/parsers/FRMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRSpecificTimeExpressionParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRSpecificTimeExpressionParser.js +97 -0
- package/dist/esm/locales/fr/parsers/FRSpecificTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRTimeExpressionParser.d.ts +8 -0
- package/dist/esm/locales/fr/parsers/FRTimeExpressionParser.js +16 -0
- package/dist/esm/locales/fr/parsers/FRTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitAgoFormatParser.d.ts +8 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitAgoFormatParser.js +18 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitAgoFormatParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitRelativeFormatParser.d.ts +8 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitRelativeFormatParser.js +33 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitWithinFormatParser.js +13 -0
- package/dist/esm/locales/fr/parsers/FRTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/fr/parsers/FRWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/fr/parsers/FRWeekdayParser.js +36 -0
- package/dist/esm/locales/fr/parsers/FRWeekdayParser.js.map +1 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/fr/refiners/FRMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/ja/constants.d.ts +1 -0
- package/dist/esm/locales/ja/constants.js +12 -0
- package/dist/esm/locales/ja/constants.js.map +1 -0
- package/dist/esm/locales/ja/index.d.ts +8 -0
- package/dist/esm/locales/ja/index.js +24 -0
- package/dist/esm/locales/ja/index.js.map +1 -0
- package/dist/esm/locales/ja/parsers/JPCasualDateParser.d.ts +5 -0
- package/dist/esm/locales/ja/parsers/JPCasualDateParser.js +36 -0
- package/dist/esm/locales/ja/parsers/JPCasualDateParser.js.map +1 -0
- package/dist/esm/locales/ja/parsers/JPStandardParser.d.ts +5 -0
- package/dist/esm/locales/ja/parsers/JPStandardParser.js +47 -0
- package/dist/esm/locales/ja/parsers/JPStandardParser.js.map +1 -0
- package/dist/esm/locales/ja/refiners/JPMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/ja/refiners/JPMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/ja/refiners/JPMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/nl/constants.d.ts +25 -0
- package/dist/esm/locales/nl/constants.js +204 -0
- package/dist/esm/locales/nl/constants.js.map +1 -0
- package/dist/esm/locales/nl/index.d.ts +8 -0
- package/dist/esm/locales/nl/index.js +55 -0
- package/dist/esm/locales/nl/index.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateParser.js +24 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateTimeParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateTimeParser.js +48 -0
- package/dist/esm/locales/nl/parsers/NLCasualDateTimeParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLCasualTimeParser.d.ts +6 -0
- package/dist/esm/locales/nl/parsers/NLCasualTimeParser.js +50 -0
- package/dist/esm/locales/nl/parsers/NLCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLCasualYearMonthDayParser.d.ts +10 -0
- package/dist/esm/locales/nl/parsers/NLCasualYearMonthDayParser.js +32 -0
- package/dist/esm/locales/nl/parsers/NLCasualYearMonthDayParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameMiddleEndianParser.d.ts +6 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameMiddleEndianParser.js +60 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameMiddleEndianParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameParser.d.ts +6 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameParser.js +35 -0
- package/dist/esm/locales/nl/parsers/NLMonthNameParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLRelativeDateFormatParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLRelativeDateFormatParser.js +52 -0
- package/dist/esm/locales/nl/parsers/NLRelativeDateFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLSlashMonthFormatParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLSlashMonthFormatParser.js +15 -0
- package/dist/esm/locales/nl/parsers/NLSlashMonthFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeExpressionParser.d.ts +9 -0
- package/dist/esm/locales/nl/parsers/NLTimeExpressionParser.js +19 -0
- package/dist/esm/locales/nl/parsers/NLTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitAgoFormatParser.d.ts +9 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitAgoFormatParser.js +21 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitAgoFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.js +23 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitLaterFormatParser.d.ts +9 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitLaterFormatParser.js +20 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitLaterFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitWithinFormatParser.js +13 -0
- package/dist/esm/locales/nl/parsers/NLTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/nl/parsers/NLWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/nl/parsers/NLWeekdayParser.js +38 -0
- package/dist/esm/locales/nl/parsers/NLWeekdayParser.js.map +1 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/nl/refiners/NLMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/pt/constants.d.ts +8 -0
- package/dist/esm/locales/pt/constants.js +81 -0
- package/dist/esm/locales/pt/constants.js.map +1 -0
- package/dist/esm/locales/pt/index.d.ts +8 -0
- package/dist/esm/locales/pt/index.js +36 -0
- package/dist/esm/locales/pt/index.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/pt/parsers/PTCasualDateParser.js +24 -0
- package/dist/esm/locales/pt/parsers/PTCasualDateParser.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTCasualTimeParser.d.ts +6 -0
- package/dist/esm/locales/pt/parsers/PTCasualTimeParser.js +40 -0
- package/dist/esm/locales/pt/parsers/PTCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTMonthNameLittleEndianParser.d.ts +7 -0
- package/dist/esm/locales/pt/parsers/PTMonthNameLittleEndianParser.js +46 -0
- package/dist/esm/locales/pt/parsers/PTMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTTimeExpressionParser.d.ts +5 -0
- package/dist/esm/locales/pt/parsers/PTTimeExpressionParser.js +10 -0
- package/dist/esm/locales/pt/parsers/PTTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/pt/parsers/PTWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/pt/parsers/PTWeekdayParser.js +41 -0
- package/dist/esm/locales/pt/parsers/PTWeekdayParser.js.map +1 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/pt/refiners/PTMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/ru/constants.d.ts +33 -0
- package/dist/esm/locales/ru/constants.js +314 -0
- package/dist/esm/locales/ru/constants.js.map +1 -0
- package/dist/esm/locales/ru/index.d.ts +8 -0
- package/dist/esm/locales/ru/index.js +46 -0
- package/dist/esm/locales/ru/index.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUCasualDateParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUCasualDateParser.js +30 -0
- package/dist/esm/locales/ru/parsers/RUCasualDateParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUCasualTimeParser.d.ts +7 -0
- package/dist/esm/locales/ru/parsers/RUCasualTimeParser.js +49 -0
- package/dist/esm/locales/ru/parsers/RUCasualTimeParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameLittleEndianParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameLittleEndianParser.js +56 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameLittleEndianParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameParser.d.ts +7 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameParser.js +42 -0
- package/dist/esm/locales/ru/parsers/RUMonthNameParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RURelativeDateFormatParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RURelativeDateFormatParser.js +54 -0
- package/dist/esm/locales/ru/parsers/RURelativeDateFormatParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUTimeExpressionParser.d.ts +12 -0
- package/dist/esm/locales/ru/parsers/RUTimeExpressionParser.js +54 -0
- package/dist/esm/locales/ru/parsers/RUTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitAgoFormatParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitAgoFormatParser.js +19 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitAgoFormatParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.js +26 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitWithinFormatParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitWithinFormatParser.js +19 -0
- package/dist/esm/locales/ru/parsers/RUTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/esm/locales/ru/parsers/RUWeekdayParser.d.ts +8 -0
- package/dist/esm/locales/ru/parsers/RUWeekdayParser.js +46 -0
- package/dist/esm/locales/ru/parsers/RUWeekdayParser.js.map +1 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/ru/refiners/RUMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/hans/constants.d.ts +27 -0
- package/dist/esm/locales/zh/hans/constants.js +47 -0
- package/dist/esm/locales/zh/hans/constants.js.map +1 -0
- package/dist/esm/locales/zh/hans/index.d.ts +9 -0
- package/dist/esm/locales/zh/hans/index.js +40 -0
- package/dist/esm/locales/zh/hans/index.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansCasualDateParser.js +133 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansCasualDateParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDateParser.d.ts +6 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDateParser.js +67 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDateParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.d.ts +6 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.js +73 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.js +65 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansTimeExpressionParser.d.ts +6 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansTimeExpressionParser.js +433 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansWeekdayParser.js +41 -0
- package/dist/esm/locales/zh/hans/parsers/ZHHansWeekdayParser.js.map +1 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/hant/constants.d.ts +28 -0
- package/dist/esm/locales/zh/hant/constants.js +48 -0
- package/dist/esm/locales/zh/hant/constants.js.map +1 -0
- package/dist/esm/locales/zh/hant/index.d.ts +9 -0
- package/dist/esm/locales/zh/hant/index.js +40 -0
- package/dist/esm/locales/zh/hant/index.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantCasualDateParser.d.ts +7 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantCasualDateParser.js +133 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantCasualDateParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDateParser.d.ts +6 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDateParser.js +59 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDateParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.d.ts +6 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.js +73 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.js +65 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantTimeExpressionParser.d.ts +6 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantTimeExpressionParser.js +433 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantTimeExpressionParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantWeekdayParser.d.ts +7 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantWeekdayParser.js +41 -0
- package/dist/esm/locales/zh/hant/parsers/ZHHantWeekdayParser.js.map +1 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.d.ts +4 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.js +7 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.d.ts +4 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.js +7 -0
- package/dist/esm/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.js.map +1 -0
- package/dist/esm/locales/zh/index.d.ts +2 -0
- package/dist/esm/locales/zh/index.js +3 -0
- package/dist/esm/locales/zh/index.js.map +1 -0
- package/dist/esm/results.d.ts +48 -0
- package/dist/esm/results.js +201 -0
- package/dist/esm/results.js.map +1 -0
- package/dist/esm/timezone.d.ts +194 -0
- package/dist/esm/timezone.js +203 -0
- package/dist/esm/timezone.js.map +1 -0
- package/dist/esm/utils/dayjs.d.ts +8 -0
- package/dist/esm/utils/dayjs.js +40 -0
- package/dist/esm/utils/dayjs.js.map +1 -0
- package/dist/esm/utils/pattern.d.ts +7 -0
- package/dist/esm/utils/pattern.js +25 -0
- package/dist/esm/utils/pattern.js.map +1 -0
- package/dist/esm/utils/timeunits.d.ts +7 -0
- package/dist/esm/utils/timeunits.js +26 -0
- package/dist/esm/utils/timeunits.js.map +1 -0
- package/dist/locales/de/constants.js +8 -8
- package/dist/locales/de/constants.js.map +1 -1
- package/dist/locales/de/index.js +2 -0
- package/dist/locales/de/index.js.map +1 -1
- package/dist/locales/de/parsers/DETimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/locales/de/parsers/DETimeUnitWithinFormatParser.js +16 -0
- package/dist/locales/de/parsers/DETimeUnitWithinFormatParser.js.map +1 -0
- package/dist/locales/en/constants.js +3 -2
- package/dist/locales/en/constants.js.map +1 -1
- package/dist/locales/en/parsers/ENCasualDateParser.js +7 -1
- package/dist/locales/en/parsers/ENCasualDateParser.js.map +1 -1
- package/dist/locales/en/parsers/ENTimeExpressionParser.js +1 -1
- package/dist/locales/en/parsers/ENTimeExpressionParser.js.map +1 -1
- package/dist/locales/en/refiners/ENMergeDateRangeRefiner.js +1 -1
- package/dist/locales/en/refiners/ENMergeDateRangeRefiner.js.map +1 -1
- package/dist/locales/es/constants.d.ts +13 -0
- package/dist/locales/es/constants.js +82 -1
- package/dist/locales/es/constants.js.map +1 -1
- package/dist/locales/es/index.js +2 -0
- package/dist/locales/es/index.js.map +1 -1
- package/dist/locales/es/parsers/ESTimeUnitWithinFormatParser.d.ts +7 -0
- package/dist/locales/es/parsers/ESTimeUnitWithinFormatParser.js +16 -0
- package/dist/locales/es/parsers/ESTimeUnitWithinFormatParser.js.map +1 -0
- package/dist/locales/nl/constants.js +2 -0
- package/dist/locales/nl/constants.js.map +1 -1
- package/dist/locales/ru/parsers/RUCasualDateParser.js +5 -1
- package/dist/locales/ru/parsers/RUCasualDateParser.js.map +1 -1
- package/package.json +1 -1
- package/src/calculation/mergingCalculation.ts +6 -3
- package/src/locales/de/constants.ts +8 -8
- package/src/locales/de/index.ts +2 -0
- package/src/locales/de/parsers/DETimeUnitWithinFormatParser.ts +15 -0
- package/src/locales/en/constants.ts +3 -2
- package/src/locales/en/parsers/ENCasualDateParser.ts +10 -1
- package/src/locales/en/parsers/ENTimeExpressionParser.ts +1 -1
- package/src/locales/en/refiners/ENMergeDateRangeRefiner.ts +1 -1
- package/src/locales/es/constants.ts +89 -0
- package/src/locales/es/index.ts +3 -1
- package/src/locales/es/parsers/ESTimeUnitWithinFormatParser.ts +15 -0
- package/src/locales/nl/constants.ts +2 -0
- package/src/locales/nl/refiners/NLMergeDateRangeRefiner.ts +2 -2
- package/src/locales/nl/refiners/NLMergeDateTimeRefiner.ts +1 -1
- package/src/locales/ru/parsers/RUCasualDateParser.ts +7 -1
- package/test/de/de_time_units_within.test.ts +119 -0
- package/test/en/en.test.ts +10 -0
- package/test/en/en_time_exp.test.ts +60 -0
- package/test/en/en_time_units_ago.test.ts +36 -0
- package/test/en/en_time_units_casual_relative.test.ts +16 -1
- package/test/en/en_time_units_later.test.ts +46 -0
- package/test/es/es_time_units_within.test.ts +119 -0
- package/test/nl/nl_month.test.ts +25 -0
- package/test/ru/ru_casual.test.ts +12 -0
- package/test/system.test.ts +15 -1
- package/coverage/clover.xml +0 -4771
- package/coverage/coverage-final.json +0 -147
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -686
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/results.ts.html +0 -701
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/calculation/index.html +0 -131
- package/coverage/lcov-report/src/calculation/mergingCalculation.ts.html +0 -319
- package/coverage/lcov-report/src/calculation/weeks.ts.html +0 -199
- package/coverage/lcov-report/src/calculation/yearCalculation.ts.html +0 -194
- package/coverage/lcov-report/src/calculation/years.ts.html +0 -199
- package/coverage/lcov-report/src/chrono.js.html +0 -368
- package/coverage/lcov-report/src/chrono.ts.html +0 -649
- package/coverage/lcov-report/src/common/abstractRefiners.ts.html +0 -286
- package/coverage/lcov-report/src/common/calculation/index.html +0 -116
- package/coverage/lcov-report/src/common/calculation/weekdays.ts.html +0 -352
- package/coverage/lcov-report/src/common/casualReferences.ts.html +0 -499
- package/coverage/lcov-report/src/common/index.html +0 -131
- package/coverage/lcov-report/src/common/parsers/AbstractParserWithWordBoundary.ts.html +0 -214
- package/coverage/lcov-report/src/common/parsers/AbstractTimeExpressionParser.ts.html +0 -1384
- package/coverage/lcov-report/src/common/parsers/ISOFormatParser.ts.html +0 -340
- package/coverage/lcov-report/src/common/parsers/SlashDateFormatParser.ts.html +0 -385
- package/coverage/lcov-report/src/common/parsers/index.html +0 -161
- package/coverage/lcov-report/src/common/refiners/AbstractMergeDateRangeRefiner.ts.html +0 -268
- package/coverage/lcov-report/src/common/refiners/AbstractMergeDateTimeRefiner.ts.html +0 -172
- package/coverage/lcov-report/src/common/refiners/ExtractTimezoneAbbrRefiner.ts.html +0 -883
- package/coverage/lcov-report/src/common/refiners/ExtractTimezoneOffsetRefiner.ts.html +0 -226
- package/coverage/lcov-report/src/common/refiners/ForwardDateRefiner.ts.html +0 -334
- package/coverage/lcov-report/src/common/refiners/MergeWeekdayComponentRefiner.ts.html +0 -187
- package/coverage/lcov-report/src/common/refiners/OverlapRemovalRefiner.ts.html +0 -199
- package/coverage/lcov-report/src/common/refiners/UnlikelyFormatFilter.ts.html +0 -265
- package/coverage/lcov-report/src/common/refiners/index.html +0 -221
- package/coverage/lcov-report/src/configurations.ts.html +0 -154
- package/coverage/lcov-report/src/debugging.ts.html +0 -154
- package/coverage/lcov-report/src/index.html +0 -191
- package/coverage/lcov-report/src/index.ts.html +0 -520
- package/coverage/lcov-report/src/locales/de/constants.ts.html +0 -664
- package/coverage/lcov-report/src/locales/de/index.html +0 -131
- package/coverage/lcov-report/src/locales/de/index.ts.html +0 -238
- package/coverage/lcov-report/src/locales/de/parsers/DECasualDateParser.ts.html +0 -325
- package/coverage/lcov-report/src/locales/de/parsers/DECasualTimeParser.ts.html +0 -325
- package/coverage/lcov-report/src/locales/de/parsers/DEMonthNameLittleEndianParser.ts.html +0 -268
- package/coverage/lcov-report/src/locales/de/parsers/DESpecificTimeExpressionParser.ts.html +0 -535
- package/coverage/lcov-report/src/locales/de/parsers/DETimeExpressionParser.ts.html +0 -151
- package/coverage/lcov-report/src/locales/de/parsers/DETimeUnitRelativeFormatParser.ts.html +0 -211
- package/coverage/lcov-report/src/locales/de/parsers/DEWeekdayParser.ts.html +0 -232
- package/coverage/lcov-report/src/locales/de/parsers/index.html +0 -206
- package/coverage/lcov-report/src/locales/de/refiners/DEMergeDateRangeRefiner.ts.html +0 -130
- package/coverage/lcov-report/src/locales/de/refiners/DEMergeDateTimeRefiner.ts.html +0 -115
- package/coverage/lcov-report/src/locales/de/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/en/constants.ts.html +0 -859
- package/coverage/lcov-report/src/locales/en/index.html +0 -131
- package/coverage/lcov-report/src/locales/en/index.ts.html +0 -382
- package/coverage/lcov-report/src/locales/en/parsers/ENCasualDateParser.ts.html +0 -244
- package/coverage/lcov-report/src/locales/en/parsers/ENCasualTimeParser.ts.html +0 -169
- package/coverage/lcov-report/src/locales/en/parsers/ENCasualYearMonthDayParser.ts.html +0 -232
- package/coverage/lcov-report/src/locales/en/parsers/ENDeadlineFormatParser.ts.html +0 -311
- package/coverage/lcov-report/src/locales/en/parsers/ENISOFormatParser.ts.html +0 -317
- package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameLittleEndianParser.ts.html +0 -292
- package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameMiddleEndianParser.ts.html +0 -319
- package/coverage/lcov-report/src/locales/en/parsers/ENMonthNameParser.ts.html +0 -271
- package/coverage/lcov-report/src/locales/en/parsers/ENRelativeDateFormatParser.ts.html +0 -292
- package/coverage/lcov-report/src/locales/en/parsers/ENSlashDateFormatParser.ts.html +0 -443
- package/coverage/lcov-report/src/locales/en/parsers/ENSlashDateFormatStartWithYearParser.ts.html +0 -221
- package/coverage/lcov-report/src/locales/en/parsers/ENSlashMonthFormatParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeExpressionParser.ts.html +0 -250
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitAgoFormatParser.ts.html +0 -160
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.ts.html +0 -166
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitDeadlineFormatParser.ts.html +0 -149
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitLaterFormatParser.ts.html +0 -166
- package/coverage/lcov-report/src/locales/en/parsers/ENTimeUnitWithinFormatParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/en/parsers/ENWeekdayParser.ts.html +0 -229
- package/coverage/lcov-report/src/locales/en/parsers/index.html +0 -311
- package/coverage/lcov-report/src/locales/en/refiners/ENMergeDateRangeRefiner.ts.html +0 -136
- package/coverage/lcov-report/src/locales/en/refiners/ENMergeDateTimeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/en/refiners/ENMergeRelativeDateRefiner.ts.html +0 -259
- package/coverage/lcov-report/src/locales/en/refiners/index.html +0 -146
- package/coverage/lcov-report/src/locales/es/constants.ts.html +0 -340
- package/coverage/lcov-report/src/locales/es/index.html +0 -131
- package/coverage/lcov-report/src/locales/es/index.ts.html +0 -256
- package/coverage/lcov-report/src/locales/es/parsers/ESCasualDateParser.ts.html +0 -178
- package/coverage/lcov-report/src/locales/es/parsers/ESCasualTimeParser.ts.html +0 -226
- package/coverage/lcov-report/src/locales/es/parsers/ESMonthNameLittleEndianParser.ts.html +0 -265
- package/coverage/lcov-report/src/locales/es/parsers/ESTimeExpressionParser.ts.html +0 -145
- package/coverage/lcov-report/src/locales/es/parsers/ESWeekdayParser.ts.html +0 -235
- package/coverage/lcov-report/src/locales/es/parsers/index.html +0 -176
- package/coverage/lcov-report/src/locales/es/refiners/ESMergeDateRangeRefiner.ts.html +0 -130
- package/coverage/lcov-report/src/locales/es/refiners/ESMergeDateTimeRefiner.ts.html +0 -115
- package/coverage/lcov-report/src/locales/es/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/fr/constants.ts.html +0 -637
- package/coverage/lcov-report/src/locales/fr/index.html +0 -131
- package/coverage/lcov-report/src/locales/fr/index.ts.html +0 -280
- package/coverage/lcov-report/src/locales/fr/parsers/FRCasualDateParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/fr/parsers/FRCasualTimeParser.ts.html +0 -232
- package/coverage/lcov-report/src/locales/fr/parsers/FRMonthNameLittleEndianParser.ts.html +0 -277
- package/coverage/lcov-report/src/locales/fr/parsers/FRSpecificTimeExpressionParser.ts.html +0 -484
- package/coverage/lcov-report/src/locales/fr/parsers/FRTimeExpressionParser.ts.html +0 -151
- package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitAgoFormatParser.ts.html +0 -151
- package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitRelativeFormatParser.ts.html +0 -214
- package/coverage/lcov-report/src/locales/fr/parsers/FRTimeUnitWithinFormatParser.ts.html +0 -130
- package/coverage/lcov-report/src/locales/fr/parsers/FRWeekdayParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/fr/parsers/index.html +0 -236
- package/coverage/lcov-report/src/locales/fr/refiners/FRMergeDateRangeRefiner.ts.html +0 -130
- package/coverage/lcov-report/src/locales/fr/refiners/FRMergeDateTimeRefiner.ts.html +0 -115
- package/coverage/lcov-report/src/locales/fr/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/ja/constants.ts.html +0 -157
- package/coverage/lcov-report/src/locales/ja/index.html +0 -131
- package/coverage/lcov-report/src/locales/ja/index.ts.html +0 -214
- package/coverage/lcov-report/src/locales/ja/parsers/JPCasualDateParser.ts.html +0 -217
- package/coverage/lcov-report/src/locales/ja/parsers/JPStandardParser.ts.html +0 -247
- package/coverage/lcov-report/src/locales/ja/parsers/index.html +0 -131
- package/coverage/lcov-report/src/locales/ja/refiners/JPMergeDateRangeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/ja/refiners/index.html +0 -116
- package/coverage/lcov-report/src/locales/nl/constants.ts.html +0 -796
- package/coverage/lcov-report/src/locales/nl/index.html +0 -131
- package/coverage/lcov-report/src/locales/nl/index.ts.html +0 -304
- package/coverage/lcov-report/src/locales/nl/parsers/NLCasualDateParser.ts.html +0 -181
- package/coverage/lcov-report/src/locales/nl/parsers/NLCasualDateTimeParser.ts.html +0 -310
- package/coverage/lcov-report/src/locales/nl/parsers/NLCasualTimeParser.ts.html +0 -265
- package/coverage/lcov-report/src/locales/nl/parsers/NLCasualYearMonthDayParser.ts.html +0 -232
- package/coverage/lcov-report/src/locales/nl/parsers/NLMonthNameMiddleEndianParser.ts.html +0 -349
- package/coverage/lcov-report/src/locales/nl/parsers/NLMonthNameParser.ts.html +0 -235
- package/coverage/lcov-report/src/locales/nl/parsers/NLRelativeDateFormatParser.ts.html +0 -295
- package/coverage/lcov-report/src/locales/nl/parsers/NLSlashMonthFormatParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeExpressionParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitAgoFormatParser.ts.html +0 -163
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitCasualRelativeFormatParser.ts.html +0 -166
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitLaterFormatParser.ts.html +0 -166
- package/coverage/lcov-report/src/locales/nl/parsers/NLTimeUnitWithinFormatParser.ts.html +0 -130
- package/coverage/lcov-report/src/locales/nl/parsers/NLWeekdayParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/nl/parsers/index.html +0 -311
- package/coverage/lcov-report/src/locales/nl/refiners/NLMergeDateRangeRefiner.ts.html +0 -136
- package/coverage/lcov-report/src/locales/nl/refiners/NLMergeDateTimeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/nl/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/pt/constants.ts.html +0 -343
- package/coverage/lcov-report/src/locales/pt/index.html +0 -131
- package/coverage/lcov-report/src/locales/pt/index.ts.html +0 -256
- package/coverage/lcov-report/src/locales/pt/parsers/PTCasualDateParser.ts.html +0 -181
- package/coverage/lcov-report/src/locales/pt/parsers/PTCasualTimeParser.ts.html +0 -226
- package/coverage/lcov-report/src/locales/pt/parsers/PTMonthNameLittleEndianParser.ts.html +0 -265
- package/coverage/lcov-report/src/locales/pt/parsers/PTTimeExpressionParser.ts.html +0 -145
- package/coverage/lcov-report/src/locales/pt/parsers/PTWeekdayParser.ts.html +0 -235
- package/coverage/lcov-report/src/locales/pt/parsers/index.html +0 -176
- package/coverage/lcov-report/src/locales/pt/refiners/PTMergeDateRangeRefiner.ts.html +0 -130
- package/coverage/lcov-report/src/locales/pt/refiners/PTMergeDateTimeRefiner.ts.html +0 -115
- package/coverage/lcov-report/src/locales/pt/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/ru/constants.ts.html +0 -1111
- package/coverage/lcov-report/src/locales/ru/index.html +0 -131
- package/coverage/lcov-report/src/locales/ru/index.ts.html +0 -337
- package/coverage/lcov-report/src/locales/ru/parsers/RUCasualDateParser.ts.html +0 -217
- package/coverage/lcov-report/src/locales/ru/parsers/RUCasualTimeParser.ts.html +0 -253
- package/coverage/lcov-report/src/locales/ru/parsers/RUMonthNameLittleEndianParser.ts.html +0 -301
- package/coverage/lcov-report/src/locales/ru/parsers/RUMonthNameParser.ts.html +0 -268
- package/coverage/lcov-report/src/locales/ru/parsers/RURelativeDateFormatParser.ts.html +0 -310
- package/coverage/lcov-report/src/locales/ru/parsers/RUTimeExpressionParser.ts.html +0 -277
- package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitAgoFormatParser.ts.html +0 -157
- package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitCasualRelativeFormatParser.ts.html +0 -187
- package/coverage/lcov-report/src/locales/ru/parsers/RUTimeUnitWithinFormatParser.ts.html +0 -157
- package/coverage/lcov-report/src/locales/ru/parsers/RUWeekdayParser.ts.html +0 -256
- package/coverage/lcov-report/src/locales/ru/parsers/index.html +0 -251
- package/coverage/lcov-report/src/locales/ru/refiners/RUMergeDateRangeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/ru/refiners/RUMergeDateTimeRefiner.ts.html +0 -124
- package/coverage/lcov-report/src/locales/ru/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/hans/constants.ts.html +0 -241
- package/coverage/lcov-report/src/locales/zh/hans/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/hans/index.ts.html +0 -271
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansCasualDateParser.ts.html +0 -469
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansDateParser.ts.html +0 -310
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansDeadlineFormatParser.ts.html +0 -328
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansRelationWeekdayParser.ts.html +0 -292
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansTimeExpressionParser.ts.html +0 -1357
- package/coverage/lcov-report/src/locales/zh/hans/parsers/ZHHansWeekdayParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/zh/hans/parsers/index.html +0 -191
- package/coverage/lcov-report/src/locales/zh/hans/refiners/ZHHansMergeDateRangeRefiner.ts.html +0 -106
- package/coverage/lcov-report/src/locales/zh/hans/refiners/ZHHansMergeDateTimeRefiner.ts.html +0 -106
- package/coverage/lcov-report/src/locales/zh/hans/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/hant/constants.ts.html +0 -244
- package/coverage/lcov-report/src/locales/zh/hant/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/hant/index.ts.html +0 -274
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantCasualDateParser.ts.html +0 -469
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantDateParser.ts.html +0 -289
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantDeadlineFormatParser.ts.html +0 -328
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantRelationWeekdayParser.ts.html +0 -292
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantTimeExpressionParser.ts.html +0 -1357
- package/coverage/lcov-report/src/locales/zh/hant/parsers/ZHHantWeekdayParser.ts.html +0 -223
- package/coverage/lcov-report/src/locales/zh/hant/parsers/index.html +0 -191
- package/coverage/lcov-report/src/locales/zh/hant/refiners/ZHHantMergeDateRangeRefiner.ts.html +0 -106
- package/coverage/lcov-report/src/locales/zh/hant/refiners/ZHHantMergeDateTimeRefiner.ts.html +0 -106
- package/coverage/lcov-report/src/locales/zh/hant/refiners/index.html +0 -131
- package/coverage/lcov-report/src/locales/zh/index.html +0 -116
- package/coverage/lcov-report/src/locales/zh/index.ts.html +0 -91
- package/coverage/lcov-report/src/options.js.html +0 -1085
- package/coverage/lcov-report/src/parsers/de/DECasualDateParser.js.html +0 -368
- package/coverage/lcov-report/src/parsers/de/DEDeadlineFormatParser.js.html +0 -374
- package/coverage/lcov-report/src/parsers/de/DEMonthNameLittleEndianParser.js.html +0 -347
- package/coverage/lcov-report/src/parsers/de/DEMonthNameParser.js.html +0 -329
- package/coverage/lcov-report/src/parsers/de/DESlashDateFormatParser.js.html +0 -398
- package/coverage/lcov-report/src/parsers/de/DETimeAgoFormatParser.js.html +0 -401
- package/coverage/lcov-report/src/parsers/de/DETimeExpressionParser.js.html +0 -836
- package/coverage/lcov-report/src/parsers/de/DEWeekdayParser.js.html +0 -338
- package/coverage/lcov-report/src/parsers/de/index.html +0 -216
- package/coverage/lcov-report/src/parsers/en/ENCasualDateParser.js.html +0 -275
- package/coverage/lcov-report/src/parsers/en/ENCasualTimeParser.js.html +0 -242
- package/coverage/lcov-report/src/parsers/en/ENDeadlineFormatParser.js.html +0 -359
- package/coverage/lcov-report/src/parsers/en/ENISOFormatParser.js.html +0 -389
- package/coverage/lcov-report/src/parsers/en/ENMonthNameLittleEndianParser.js.html +0 -416
- package/coverage/lcov-report/src/parsers/en/ENMonthNameMiddleEndianParser.js.html +0 -437
- package/coverage/lcov-report/src/parsers/en/ENMonthNameParser.js.html +0 -320
- package/coverage/lcov-report/src/parsers/en/ENRelativeDateFormatParser.js.html +0 -518
- package/coverage/lcov-report/src/parsers/en/ENSlashDateFormatParser.js.html +0 -479
- package/coverage/lcov-report/src/parsers/en/ENSlashDateFormatStartWithYearParser.js.html +0 -245
- package/coverage/lcov-report/src/parsers/en/ENSlashMonthFormatParser.js.html +0 -221
- package/coverage/lcov-report/src/parsers/en/ENTimeAgoFormatParser.js.html +0 -287
- package/coverage/lcov-report/src/parsers/en/ENTimeExpressionParser.js.html +0 -869
- package/coverage/lcov-report/src/parsers/en/ENTimeLaterFormatParser.js.html +0 -305
- package/coverage/lcov-report/src/parsers/en/ENWeekdayParser.js.html +0 -356
- package/coverage/lcov-report/src/parsers/en/index.html +0 -321
- package/coverage/lcov-report/src/parsers/es/ESCasualDateParser.js.html +0 -452
- package/coverage/lcov-report/src/parsers/es/ESDeadlineFormatParser.js.html +0 -260
- package/coverage/lcov-report/src/parsers/es/ESMonthNameLittleEndianParser.js.html +0 -338
- package/coverage/lcov-report/src/parsers/es/ESSlashDateFormatParser.js.html +0 -419
- package/coverage/lcov-report/src/parsers/es/ESTimeAgoFormatParser.js.html +0 -341
- package/coverage/lcov-report/src/parsers/es/ESTimeExpressionParser.js.html +0 -782
- package/coverage/lcov-report/src/parsers/es/ESWeekdayParser.js.html +0 -260
- package/coverage/lcov-report/src/parsers/es/index.html +0 -201
- package/coverage/lcov-report/src/parsers/fr/FRCasualDateParser.js.html +0 -311
- package/coverage/lcov-report/src/parsers/fr/FRDeadlineFormatParser.js.html +0 -359
- package/coverage/lcov-report/src/parsers/fr/FRMonthNameLittleEndianParser.js.html +0 -338
- package/coverage/lcov-report/src/parsers/fr/FRRelativeDateFormatParser.js.html +0 -545
- package/coverage/lcov-report/src/parsers/fr/FRSlashDateFormatParser.js.html +0 -437
- package/coverage/lcov-report/src/parsers/fr/FRTimeAgoFormatParser.js.html +0 -341
- package/coverage/lcov-report/src/parsers/fr/FRTimeExpressionParser.js.html +0 -803
- package/coverage/lcov-report/src/parsers/fr/FRWeekdayParser.js.html +0 -257
- package/coverage/lcov-report/src/parsers/fr/index.html +0 -216
- package/coverage/lcov-report/src/parsers/index.html +0 -111
- package/coverage/lcov-report/src/parsers/ja/JPCasualDateParser.js.html +0 -245
- package/coverage/lcov-report/src/parsers/ja/JPStandardParser.js.html +0 -293
- package/coverage/lcov-report/src/parsers/ja/index.html +0 -126
- package/coverage/lcov-report/src/parsers/nl/NLCasualDateParser.js.html +0 -395
- package/coverage/lcov-report/src/parsers/nl/NLCasualTimeParser.js.html +0 -278
- package/coverage/lcov-report/src/parsers/nl/NLMonthNameLittleEndianParser.js.html +0 -383
- package/coverage/lcov-report/src/parsers/nl/NLMonthNameParser.js.html +0 -320
- package/coverage/lcov-report/src/parsers/nl/NLSlashDateFormatParser.js.html +0 -389
- package/coverage/lcov-report/src/parsers/nl/NLTimeExpressionParser.js.html +0 -836
- package/coverage/lcov-report/src/parsers/nl/NLWeekdayParser.js.html +0 -377
- package/coverage/lcov-report/src/parsers/nl/index.html +0 -201
- package/coverage/lcov-report/src/parsers/parser.js.html +0 -500
- package/coverage/lcov-report/src/parsers/pt/PTCasualDateParser.js.html +0 -449
- package/coverage/lcov-report/src/parsers/pt/PTDeadlineFormatParser.js.html +0 -263
- package/coverage/lcov-report/src/parsers/pt/PTMonthNameLittleEndianParser.js.html +0 -338
- package/coverage/lcov-report/src/parsers/pt/PTSlashDateFormatParser.js.html +0 -419
- package/coverage/lcov-report/src/parsers/pt/PTTimeAgoFormatParser.js.html +0 -341
- package/coverage/lcov-report/src/parsers/pt/PTTimeExpressionParser.js.html +0 -782
- package/coverage/lcov-report/src/parsers/pt/PTWeekdayParser.js.html +0 -260
- package/coverage/lcov-report/src/parsers/pt/index.html +0 -201
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantCasualDateParser.js.html +0 -494
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantDateParser.js.html +0 -281
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantDeadlineFormatParser.js.html +0 -353
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantTimeExpressionParser.js.html +0 -1346
- package/coverage/lcov-report/src/parsers/zh-Hant/ZHHantWeekdayParser.js.html +0 -239
- package/coverage/lcov-report/src/parsers/zh-Hant/index.html +0 -171
- package/coverage/lcov-report/src/refiners/ExtractTimezoneAbbrRefiner.js.html +0 -245
- package/coverage/lcov-report/src/refiners/ExtractTimezoneOffsetRefiner.js.html +0 -218
- package/coverage/lcov-report/src/refiners/ForwardDateRefiner.js.html +0 -239
- package/coverage/lcov-report/src/refiners/OverlapRemovalRefiner.js.html +0 -200
- package/coverage/lcov-report/src/refiners/UnlikelyFormatFilter.js.html +0 -131
- package/coverage/lcov-report/src/refiners/de/DEMergeDateRangeRefiner.js.html +0 -116
- package/coverage/lcov-report/src/refiners/de/DEMergeDateTimeRefiner.js.html +0 -377
- package/coverage/lcov-report/src/refiners/de/index.html +0 -126
- package/coverage/lcov-report/src/refiners/en/ENMergeDateRangeRefiner.js.html +0 -416
- package/coverage/lcov-report/src/refiners/en/ENMergeDateTimeRefiner.js.html +0 -533
- package/coverage/lcov-report/src/refiners/en/ENPrioritizeSpecificDateRefiner.js.html +0 -422
- package/coverage/lcov-report/src/refiners/en/index.html +0 -141
- package/coverage/lcov-report/src/refiners/fr/FRMergeDateRangeRefiner.js.html +0 -374
- package/coverage/lcov-report/src/refiners/fr/FRMergeDateTimeRefiner.js.html +0 -395
- package/coverage/lcov-report/src/refiners/fr/index.html +0 -126
- package/coverage/lcov-report/src/refiners/index.html +0 -186
- package/coverage/lcov-report/src/refiners/ja/JPMergeDateRangeRefiner.js.html +0 -113
- package/coverage/lcov-report/src/refiners/ja/index.html +0 -111
- package/coverage/lcov-report/src/refiners/nl/NLMergeDateRangeRefiner.js.html +0 -116
- package/coverage/lcov-report/src/refiners/nl/NLMergeDateTimeRefiner.js.html +0 -362
- package/coverage/lcov-report/src/refiners/nl/index.html +0 -126
- package/coverage/lcov-report/src/refiners/refiner.js.html +0 -239
- package/coverage/lcov-report/src/result.js.html +0 -545
- package/coverage/lcov-report/src/results.ts.html +0 -916
- package/coverage/lcov-report/src/timezone.ts.html +0 -700
- package/coverage/lcov-report/src/utils/DE.js.html +0 -308
- package/coverage/lcov-report/src/utils/EN.js.html +0 -596
- package/coverage/lcov-report/src/utils/ES.js.html +0 -254
- package/coverage/lcov-report/src/utils/FR.js.html +0 -302
- package/coverage/lcov-report/src/utils/JP.js.html +0 -215
- package/coverage/lcov-report/src/utils/NL.js.html +0 -620
- package/coverage/lcov-report/src/utils/PT.js.html +0 -263
- package/coverage/lcov-report/src/utils/ParserWithWordEndingDetection.ts.html +0 -176
- package/coverage/lcov-report/src/utils/ZH-Hant.js.html +0 -236
- package/coverage/lcov-report/src/utils/dayjs.ts.html +0 -223
- package/coverage/lcov-report/src/utils/index.html +0 -146
- package/coverage/lcov-report/src/utils/pattern.ts.html +0 -175
- package/coverage/lcov-report/src/utils/timeunits.ts.html +0 -199
- package/coverage/lcov-report/test/index.html +0 -116
- package/coverage/lcov-report/test/test_util.js.html +0 -299
- package/coverage/lcov-report/test/test_util.ts.html +0 -490
- package/coverage/lcov.info +0 -8049
- package/dist/bundle.js +0 -5047
- package/dist/calculation/weeks.d.ts +0 -3
- package/dist/calculation/weeks.js +0 -42
- package/dist/calculation/weeks.js.map +0 -1
- package/dist/main.js +0 -1078
- package/docs/assets/css/main.css +0 -2660
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +0 -248
- package/docs/assets/js/search.js +0 -1
- package/docs/classes/chrono.html +0 -377
- package/docs/enums/meridiem.html +0 -191
- package/docs/index.html +0 -329
- package/docs/interfaces/parsedcomponents.html +0 -270
- package/docs/interfaces/parsedresult.html +0 -283
- package/docs/interfaces/parser.html +0 -240
- package/docs/interfaces/parsingoption.html +0 -218
- package/docs/interfaces/refiner.html +0 -218
- package/docs/modules/de.html +0 -298
- package/docs/modules/en.html +0 -361
- package/docs/modules/fr.html +0 -248
- package/docs/modules/ja.html +0 -248
- package/docs/modules/nl.html +0 -275
- package/docs/modules/pt.html +0 -248
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { matchAnyPattern, repeatedTimeunitPattern } from "../../utils/pattern";
|
|
2
|
+
export const WEEKDAY_DICTIONARY = {
|
|
3
|
+
"domingo": 0,
|
|
4
|
+
"dom": 0,
|
|
5
|
+
"lunes": 1,
|
|
6
|
+
"lun": 1,
|
|
7
|
+
"martes": 2,
|
|
8
|
+
"mar": 2,
|
|
9
|
+
"miércoles": 3,
|
|
10
|
+
"miercoles": 3,
|
|
11
|
+
"mié": 3,
|
|
12
|
+
"mie": 3,
|
|
13
|
+
"jueves": 4,
|
|
14
|
+
"jue": 4,
|
|
15
|
+
"viernes": 5,
|
|
16
|
+
"vie": 5,
|
|
17
|
+
"sábado": 6,
|
|
18
|
+
"sabado": 6,
|
|
19
|
+
"sáb": 6,
|
|
20
|
+
"sab": 6,
|
|
21
|
+
};
|
|
22
|
+
export const MONTH_DICTIONARY = {
|
|
23
|
+
"enero": 1,
|
|
24
|
+
"ene": 1,
|
|
25
|
+
"ene.": 1,
|
|
26
|
+
"febrero": 2,
|
|
27
|
+
"feb": 2,
|
|
28
|
+
"feb.": 2,
|
|
29
|
+
"marzo": 3,
|
|
30
|
+
"mar": 3,
|
|
31
|
+
"mar.": 3,
|
|
32
|
+
"abril": 4,
|
|
33
|
+
"abr": 4,
|
|
34
|
+
"abr.": 4,
|
|
35
|
+
"mayo": 5,
|
|
36
|
+
"may": 5,
|
|
37
|
+
"may.": 5,
|
|
38
|
+
"junio": 6,
|
|
39
|
+
"jun": 6,
|
|
40
|
+
"jun.": 6,
|
|
41
|
+
"julio": 7,
|
|
42
|
+
"jul": 7,
|
|
43
|
+
"jul.": 7,
|
|
44
|
+
"agosto": 8,
|
|
45
|
+
"ago": 8,
|
|
46
|
+
"ago.": 8,
|
|
47
|
+
"septiembre": 9,
|
|
48
|
+
"setiembre": 9,
|
|
49
|
+
"sep": 9,
|
|
50
|
+
"sep.": 9,
|
|
51
|
+
"octubre": 10,
|
|
52
|
+
"oct": 10,
|
|
53
|
+
"oct.": 10,
|
|
54
|
+
"noviembre": 11,
|
|
55
|
+
"nov": 11,
|
|
56
|
+
"nov.": 11,
|
|
57
|
+
"diciembre": 12,
|
|
58
|
+
"dic": 12,
|
|
59
|
+
"dic.": 12,
|
|
60
|
+
};
|
|
61
|
+
export const INTEGER_WORD_DICTIONARY = {
|
|
62
|
+
"uno": 1,
|
|
63
|
+
"dos": 2,
|
|
64
|
+
"tres": 3,
|
|
65
|
+
"cuatro": 4,
|
|
66
|
+
"cinco": 5,
|
|
67
|
+
"seis": 6,
|
|
68
|
+
"siete": 7,
|
|
69
|
+
"ocho": 8,
|
|
70
|
+
"nueve": 9,
|
|
71
|
+
"diez": 10,
|
|
72
|
+
"once": 11,
|
|
73
|
+
"doce": 12,
|
|
74
|
+
"trece": 13,
|
|
75
|
+
};
|
|
76
|
+
export const TIME_UNIT_DICTIONARY = {
|
|
77
|
+
"sec": "second",
|
|
78
|
+
"segundo": "second",
|
|
79
|
+
"segundos": "second",
|
|
80
|
+
"min": "minute",
|
|
81
|
+
"mins": "minute",
|
|
82
|
+
"minuto": "minute",
|
|
83
|
+
"minutos": "minute",
|
|
84
|
+
"h": "hour",
|
|
85
|
+
"hr": "hour",
|
|
86
|
+
"hrs": "hour",
|
|
87
|
+
"hora": "hour",
|
|
88
|
+
"horas": "hour",
|
|
89
|
+
"día": "d",
|
|
90
|
+
"días": "d",
|
|
91
|
+
"semana": "week",
|
|
92
|
+
"semanas": "week",
|
|
93
|
+
"mes": "month",
|
|
94
|
+
"meses": "month",
|
|
95
|
+
"cuarto": "quarter",
|
|
96
|
+
"cuartos": "quarter",
|
|
97
|
+
"año": "year",
|
|
98
|
+
"años": "year",
|
|
99
|
+
};
|
|
100
|
+
export const NUMBER_PATTERN = `(?:${matchAnyPattern(INTEGER_WORD_DICTIONARY)}|[0-9]+|[0-9]+\\.[0-9]+|un?|uno?|una?|algunos?|unos?|demi-?)`;
|
|
101
|
+
export function parseNumberPattern(match) {
|
|
102
|
+
const num = match.toLowerCase();
|
|
103
|
+
if (INTEGER_WORD_DICTIONARY[num] !== undefined) {
|
|
104
|
+
return INTEGER_WORD_DICTIONARY[num];
|
|
105
|
+
}
|
|
106
|
+
else if (num === "un" || num === "una" || num === "uno") {
|
|
107
|
+
return 1;
|
|
108
|
+
}
|
|
109
|
+
else if (num.match(/algunos?/)) {
|
|
110
|
+
return 3;
|
|
111
|
+
}
|
|
112
|
+
else if (num.match(/unos?/)) {
|
|
113
|
+
return 3;
|
|
114
|
+
}
|
|
115
|
+
else if (num.match(/media?/)) {
|
|
116
|
+
return 0.5;
|
|
117
|
+
}
|
|
118
|
+
return parseFloat(num);
|
|
119
|
+
}
|
|
120
|
+
export const YEAR_PATTERN = "[0-9]{1,4}(?![^\\s]\\d)(?:\\s*[a|d]\\.?\\s*c\\.?|\\s*a\\.?\\s*d\\.?)?";
|
|
121
|
+
export function parseYear(match) {
|
|
122
|
+
if (match.match(/^[0-9]{1,4}$/)) {
|
|
123
|
+
let yearNumber = parseInt(match);
|
|
124
|
+
if (yearNumber < 100) {
|
|
125
|
+
if (yearNumber > 50) {
|
|
126
|
+
yearNumber = yearNumber + 1900;
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
yearNumber = yearNumber + 2000;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return yearNumber;
|
|
133
|
+
}
|
|
134
|
+
if (match.match(/a\.?\s*c\.?/i)) {
|
|
135
|
+
match = match.replace(/a\.?\s*c\.?/i, "");
|
|
136
|
+
return -parseInt(match);
|
|
137
|
+
}
|
|
138
|
+
return parseInt(match);
|
|
139
|
+
}
|
|
140
|
+
const SINGLE_TIME_UNIT_PATTERN = `(${NUMBER_PATTERN})\\s{0,5}(${matchAnyPattern(TIME_UNIT_DICTIONARY)})\\s{0,5}`;
|
|
141
|
+
const SINGLE_TIME_UNIT_REGEX = new RegExp(SINGLE_TIME_UNIT_PATTERN, "i");
|
|
142
|
+
export const TIME_UNITS_PATTERN = repeatedTimeunitPattern("", SINGLE_TIME_UNIT_PATTERN);
|
|
143
|
+
export function parseTimeUnits(timeunitText) {
|
|
144
|
+
const fragments = {};
|
|
145
|
+
let remainingText = timeunitText;
|
|
146
|
+
let match = SINGLE_TIME_UNIT_REGEX.exec(remainingText);
|
|
147
|
+
while (match) {
|
|
148
|
+
collectDateTimeFragment(fragments, match);
|
|
149
|
+
remainingText = remainingText.substring(match[0].length);
|
|
150
|
+
match = SINGLE_TIME_UNIT_REGEX.exec(remainingText);
|
|
151
|
+
}
|
|
152
|
+
return fragments;
|
|
153
|
+
}
|
|
154
|
+
function collectDateTimeFragment(fragments, match) {
|
|
155
|
+
const num = parseNumberPattern(match[1]);
|
|
156
|
+
const unit = TIME_UNIT_DICTIONARY[match[2].toLowerCase()];
|
|
157
|
+
fragments[unit] = num;
|
|
158
|
+
}
|
|
159
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/locales/es/constants.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ParsedResult, ParsingOption } from "../../index";
|
|
2
|
+
import { Chrono, Configuration } from "../../chrono";
|
|
3
|
+
export declare const casual: Chrono;
|
|
4
|
+
export declare const strict: Chrono;
|
|
5
|
+
export declare function parse(text: string, ref?: Date, option?: ParsingOption): ParsedResult[];
|
|
6
|
+
export declare function parseDate(text: string, ref?: Date, option?: ParsingOption): Date;
|
|
7
|
+
export declare function createCasualConfiguration(littleEndian?: boolean): Configuration;
|
|
8
|
+
export declare function createConfiguration(strictMode?: boolean, littleEndian?: boolean): Configuration;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { includeCommonConfiguration } from "../../configurations";
|
|
2
|
+
import { Chrono } from "../../chrono";
|
|
3
|
+
import SlashDateFormatParser from "../../common/parsers/SlashDateFormatParser";
|
|
4
|
+
import ESWeekdayParser from "./parsers/ESWeekdayParser";
|
|
5
|
+
import ESTimeExpressionParser from "./parsers/ESTimeExpressionParser";
|
|
6
|
+
import ESMergeDateTimeRefiner from "./refiners/ESMergeDateTimeRefiner";
|
|
7
|
+
import ESMergeDateRangeRefiner from "./refiners/ESMergeDateRangeRefiner";
|
|
8
|
+
import ESMonthNameLittleEndianParser from "./parsers/ESMonthNameLittleEndianParser";
|
|
9
|
+
import ESCasualDateParser from "./parsers/ESCasualDateParser";
|
|
10
|
+
import ESCasualTimeParser from "./parsers/ESCasualTimeParser";
|
|
11
|
+
import ESTimeUnitWithinFormatParser from "./parsers/ESTimeUnitWithinFormatParser";
|
|
12
|
+
export const casual = new Chrono(createCasualConfiguration());
|
|
13
|
+
export const strict = new Chrono(createConfiguration(true));
|
|
14
|
+
export function parse(text, ref, option) {
|
|
15
|
+
return casual.parse(text, ref, option);
|
|
16
|
+
}
|
|
17
|
+
export function parseDate(text, ref, option) {
|
|
18
|
+
return casual.parseDate(text, ref, option);
|
|
19
|
+
}
|
|
20
|
+
export function createCasualConfiguration(littleEndian = true) {
|
|
21
|
+
const option = createConfiguration(false, littleEndian);
|
|
22
|
+
option.parsers.push(new ESCasualDateParser());
|
|
23
|
+
option.parsers.push(new ESCasualTimeParser());
|
|
24
|
+
return option;
|
|
25
|
+
}
|
|
26
|
+
export function createConfiguration(strictMode = true, littleEndian = true) {
|
|
27
|
+
return includeCommonConfiguration({
|
|
28
|
+
parsers: [
|
|
29
|
+
new SlashDateFormatParser(littleEndian),
|
|
30
|
+
new ESWeekdayParser(),
|
|
31
|
+
new ESTimeExpressionParser(),
|
|
32
|
+
new ESMonthNameLittleEndianParser(),
|
|
33
|
+
new ESTimeUnitWithinFormatParser(),
|
|
34
|
+
],
|
|
35
|
+
refiners: [new ESMergeDateTimeRefiner(), new ESMergeDateRangeRefiner()],
|
|
36
|
+
}, strictMode);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/locales/es/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,EAAE,MAAM,EAAiB,MAAM,cAAc,CAAC;AACrD,OAAO,qBAAqB,MAAM,4CAA4C,CAAC;AAC/E,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,sBAAsB,MAAM,kCAAkC,CAAC;AACtE,OAAO,sBAAsB,MAAM,mCAAmC,CAAC;AACvE,OAAO,uBAAuB,MAAM,oCAAoC,CAAC;AACzE,OAAO,6BAA6B,MAAM,yCAAyC,CAAC;AACpF,OAAO,kBAAkB,MAAM,8BAA8B,CAAC;AAC9D,OAAO,kBAAkB,MAAM,8BAA8B,CAAC;AAC9D,OAAO,4BAA4B,MAAM,wCAAwC,CAAC;AAGlF,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,yBAAyB,EAAE,CAAC,CAAC;AAC9D,MAAM,CAAC,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC,CAAC;AAE5D,MAAM,UAAU,KAAK,CAAC,IAAY,EAAE,GAAU,EAAE,MAAsB;IAClE,OAAO,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,IAAY,EAAE,GAAU,EAAE,MAAsB;IACtE,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC;AAC/C,CAAC;AAKD,MAAM,UAAU,yBAAyB,CAAC,YAAY,GAAG,IAAI;IACzD,MAAM,MAAM,GAAG,mBAAmB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IACxD,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,kBAAkB,EAAE,CAAC,CAAC;IAC9C,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,kBAAkB,EAAE,CAAC,CAAC;IAC9C,OAAO,MAAM,CAAC;AAClB,CAAC;AAKD,MAAM,UAAU,mBAAmB,CAAC,UAAU,GAAG,IAAI,EAAE,YAAY,GAAG,IAAI;IACtE,OAAO,0BAA0B,CAC7B;QACI,OAAO,EAAE;YACL,IAAI,qBAAqB,CAAC,YAAY,CAAC;YACvC,IAAI,eAAe,EAAE;YACrB,IAAI,sBAAsB,EAAE;YAC5B,IAAI,6BAA6B,EAAE;YACnC,IAAI,4BAA4B,EAAE;SACrC;QACD,QAAQ,EAAE,CAAC,IAAI,sBAAsB,EAAE,EAAE,IAAI,uBAAuB,EAAE,CAAC;KAC1E,EACD,UAAU,CACb,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../chrono";
|
|
2
|
+
import { ParsingComponents, ParsingResult } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
export default class ESCasualDateParser extends AbstractParserWithWordBoundaryChecking {
|
|
5
|
+
innerPattern(context: ParsingContext): RegExp;
|
|
6
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents | ParsingResult;
|
|
7
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
2
|
+
import * as references from "../../../common/casualReferences";
|
|
3
|
+
export default class ESCasualDateParser extends AbstractParserWithWordBoundaryChecking {
|
|
4
|
+
innerPattern(context) {
|
|
5
|
+
return /(ahora|hoy|mañana|ayer)(?=\W|$)/i;
|
|
6
|
+
}
|
|
7
|
+
innerExtract(context, match) {
|
|
8
|
+
const lowerText = match[0].toLowerCase();
|
|
9
|
+
const component = context.createParsingComponents();
|
|
10
|
+
switch (lowerText) {
|
|
11
|
+
case "ahora":
|
|
12
|
+
return references.now(context.reference);
|
|
13
|
+
case "hoy":
|
|
14
|
+
return references.today(context.reference);
|
|
15
|
+
case "mañana":
|
|
16
|
+
return references.tomorrow(context.reference);
|
|
17
|
+
case "ayer":
|
|
18
|
+
return references.yesterday(context.reference);
|
|
19
|
+
}
|
|
20
|
+
return component;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=ESCasualDateParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ESCasualDateParser.js","sourceRoot":"","sources":["../../../../../src/locales/es/parsers/ESCasualDateParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAChH,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAE/D,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,sCAAsC;IAClF,YAAY,CAAC,OAAuB;QAChC,OAAO,kCAAkC,CAAC;IAC9C,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QACzC,MAAM,SAAS,GAAG,OAAO,CAAC,uBAAuB,EAAE,CAAC;QAEpD,QAAQ,SAAS,EAAE;YACf,KAAK,OAAO;gBACR,OAAO,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAE7C,KAAK,KAAK;gBACN,OAAO,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAE/C,KAAK,QAAQ;gBACT,OAAO,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAElD,KAAK,MAAM;gBACP,OAAO,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;SACtD;QAED,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../chrono";
|
|
2
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
3
|
+
export default class ESCasualTimeParser extends AbstractParserWithWordBoundaryChecking {
|
|
4
|
+
innerPattern(): RegExp;
|
|
5
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): import("../../../results").ParsingComponents;
|
|
6
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Meridiem } from "../../../index";
|
|
2
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
3
|
+
import { assignTheNextDay } from "../../../utils/dayjs";
|
|
4
|
+
import dayjs from "dayjs";
|
|
5
|
+
export default class ESCasualTimeParser extends AbstractParserWithWordBoundaryChecking {
|
|
6
|
+
innerPattern() {
|
|
7
|
+
return /(?:esta\s*)?(mañana|tarde|medianoche|mediodia|mediodía|noche)(?=\W|$)/i;
|
|
8
|
+
}
|
|
9
|
+
innerExtract(context, match) {
|
|
10
|
+
const targetDate = dayjs(context.refDate);
|
|
11
|
+
const component = context.createParsingComponents();
|
|
12
|
+
switch (match[1].toLowerCase()) {
|
|
13
|
+
case "tarde":
|
|
14
|
+
component.imply("meridiem", Meridiem.PM);
|
|
15
|
+
component.imply("hour", 15);
|
|
16
|
+
break;
|
|
17
|
+
case "noche":
|
|
18
|
+
component.imply("meridiem", Meridiem.PM);
|
|
19
|
+
component.imply("hour", 22);
|
|
20
|
+
break;
|
|
21
|
+
case "mañana":
|
|
22
|
+
component.imply("meridiem", Meridiem.AM);
|
|
23
|
+
component.imply("hour", 6);
|
|
24
|
+
break;
|
|
25
|
+
case "medianoche":
|
|
26
|
+
assignTheNextDay(component, targetDate);
|
|
27
|
+
component.imply("hour", 0);
|
|
28
|
+
component.imply("minute", 0);
|
|
29
|
+
component.imply("second", 0);
|
|
30
|
+
break;
|
|
31
|
+
case "mediodia":
|
|
32
|
+
case "mediodía":
|
|
33
|
+
component.imply("meridiem", Meridiem.AM);
|
|
34
|
+
component.imply("hour", 12);
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
return component;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=ESCasualTimeParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ESCasualTimeParser.js","sourceRoot":"","sources":["../../../../../src/locales/es/parsers/ESCasualTimeParser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,sCAAsC;IAClF,YAAY;QACR,OAAO,wEAAwE,CAAC;IACpF,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC1C,MAAM,SAAS,GAAG,OAAO,CAAC,uBAAuB,EAAE,CAAC;QACpD,QAAQ,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,EAAE;YAC5B,KAAK,OAAO;gBACR,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;gBACzC,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAC5B,MAAM;YAEV,KAAK,OAAO;gBACR,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;gBACzC,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAC5B,MAAM;YAEV,KAAK,QAAQ;gBACT,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;gBACzC,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;gBAC3B,MAAM;YAEV,KAAK,YAAY;gBACb,gBAAgB,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;gBACxC,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;gBAC3B,SAAS,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;gBAC7B,SAAS,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;gBAC7B,MAAM;YAEV,KAAK,UAAU,CAAC;YAChB,KAAK,UAAU;gBACX,SAAS,CAAC,KAAK,CAAC,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC;gBACzC,SAAS,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;gBAC5B,MAAM;SACb;QAED,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../chrono";
|
|
2
|
+
import { ParsingResult } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
export default class ESMonthNameLittleEndianParser extends AbstractParserWithWordBoundaryChecking {
|
|
5
|
+
innerPattern(): RegExp;
|
|
6
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingResult;
|
|
7
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { findYearClosestToRef } from "../../../calculation/years";
|
|
2
|
+
import { MONTH_DICTIONARY } from "../constants";
|
|
3
|
+
import { YEAR_PATTERN, parseYear } from "../constants";
|
|
4
|
+
import { matchAnyPattern } from "../../../utils/pattern";
|
|
5
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
6
|
+
const PATTERN = new RegExp(`([0-9]{1,2})(?:º|ª|°)?` +
|
|
7
|
+
"(?:\\s*(?:desde|de|\\-|\\–|ao?|\\s)\\s*([0-9]{1,2})(?:º|ª|°)?)?\\s*(?:de)?\\s*" +
|
|
8
|
+
`(?:-|/|\\s*(?:de|,)?\\s*)` +
|
|
9
|
+
`(${matchAnyPattern(MONTH_DICTIONARY)})` +
|
|
10
|
+
`(?:\\s*(?:de|,)?\\s*(${YEAR_PATTERN}))?` +
|
|
11
|
+
`(?=\\W|$)`, "i");
|
|
12
|
+
const DATE_GROUP = 1;
|
|
13
|
+
const DATE_TO_GROUP = 2;
|
|
14
|
+
const MONTH_NAME_GROUP = 3;
|
|
15
|
+
const YEAR_GROUP = 4;
|
|
16
|
+
export default class ESMonthNameLittleEndianParser extends AbstractParserWithWordBoundaryChecking {
|
|
17
|
+
innerPattern() {
|
|
18
|
+
return PATTERN;
|
|
19
|
+
}
|
|
20
|
+
innerExtract(context, match) {
|
|
21
|
+
const result = context.createParsingResult(match.index, match[0]);
|
|
22
|
+
const month = MONTH_DICTIONARY[match[MONTH_NAME_GROUP].toLowerCase()];
|
|
23
|
+
const day = parseInt(match[DATE_GROUP]);
|
|
24
|
+
if (day > 31) {
|
|
25
|
+
match.index = match.index + match[DATE_GROUP].length;
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
result.start.assign("month", month);
|
|
29
|
+
result.start.assign("day", day);
|
|
30
|
+
if (match[YEAR_GROUP]) {
|
|
31
|
+
const yearNumber = parseYear(match[YEAR_GROUP]);
|
|
32
|
+
result.start.assign("year", yearNumber);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
const year = findYearClosestToRef(context.refDate, day, month);
|
|
36
|
+
result.start.imply("year", year);
|
|
37
|
+
}
|
|
38
|
+
if (match[DATE_TO_GROUP]) {
|
|
39
|
+
const endDate = parseInt(match[DATE_TO_GROUP]);
|
|
40
|
+
result.end = result.start.clone();
|
|
41
|
+
result.end.assign("day", endDate);
|
|
42
|
+
}
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=ESMonthNameLittleEndianParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ESMonthNameLittleEndianParser.js","sourceRoot":"","sources":["../../../../../src/locales/es/parsers/ESMonthNameLittleEndianParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAEhH,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,wBAAwB;IACpB,gFAAgF;IAChF,2BAA2B;IAC3B,IAAI,eAAe,CAAC,gBAAgB,CAAC,GAAG;IACxC,wBAAwB,YAAY,KAAK;IACzC,WAAW,EACf,GAAG,CACN,CAAC;AAEF,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,UAAU,GAAG,CAAC,CAAC;AAErB,MAAM,CAAC,OAAO,OAAO,6BAA8B,SAAQ,sCAAsC;IAC7F,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAElE,MAAM,KAAK,GAAG,gBAAgB,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC;QACtE,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;QACxC,IAAI,GAAG,GAAG,EAAE,EAAE;YAEV,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC;YACrD,OAAO,IAAI,CAAC;SACf;QAED,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACpC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAEhC,IAAI,KAAK,CAAC,UAAU,CAAC,EAAE;YACnB,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;YAChD,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;SAC3C;aAAM;YACH,MAAM,IAAI,GAAG,oBAAoB,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;YAC/D,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;SACpC;QAED,IAAI,KAAK,CAAC,aAAa,CAAC,EAAE;YACtB,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;YAE/C,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YAClC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;SACrC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbstractTimeExpressionParser } from "../../../common/parsers/AbstractTimeExpressionParser";
|
|
2
|
+
export default class ESTimeExpressionParser extends AbstractTimeExpressionParser {
|
|
3
|
+
primaryPrefix() {
|
|
4
|
+
return "(?:(?:aslas|deslas|las?|al?|de|del)\\s*)?";
|
|
5
|
+
}
|
|
6
|
+
followingPhase() {
|
|
7
|
+
return "\\s*(?:\\-|\\–|\\~|\\〜|a(?:l)?|\\?)\\s*";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ESTimeExpressionParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ESTimeExpressionParser.js","sourceRoot":"","sources":["../../../../../src/locales/es/parsers/ESTimeExpressionParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,sDAAsD,CAAC;AAEpG,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,4BAA4B;IAC5E,aAAa;QACT,OAAO,2CAA2C,CAAC;IACvD,CAAC;IAED,cAAc;QACV,OAAO,yCAAyC,CAAC;IACrD,CAAC;CAUJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../chrono";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
export default class ESTimeUnitWithinFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
5
|
+
innerPattern(): RegExp;
|
|
6
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TIME_UNITS_PATTERN, parseTimeUnits } from "../constants";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
export default class ESTimeUnitWithinFormatParser extends AbstractParserWithWordBoundaryChecking {
|
|
5
|
+
innerPattern() {
|
|
6
|
+
return new RegExp(`(?:en|por|durante|de|dentro de)\\s*(${TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
|
|
7
|
+
}
|
|
8
|
+
innerExtract(context, match) {
|
|
9
|
+
const timeUnits = parseTimeUnits(match[1]);
|
|
10
|
+
return ParsingComponents.createRelativeFromReference(context.reference, timeUnits);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=ESTimeUnitWithinFormatParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ESTimeUnitWithinFormatParser.js","sourceRoot":"","sources":["../../../../../src/locales/es/parsers/ESTimeUnitWithinFormatParser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAEhH,MAAM,CAAC,OAAO,OAAO,4BAA6B,SAAQ,sCAAsC;IAC5F,YAAY;QACR,OAAO,IAAI,MAAM,CAAC,uCAAuC,kBAAkB,YAAY,EAAE,GAAG,CAAC,CAAC;IAClG,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,SAAS,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3C,OAAO,iBAAiB,CAAC,2BAA2B,CAAC,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IACvF,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ParsingContext } from "../../../chrono";
|
|
2
|
+
import { ParsingComponents } from "../../../results";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
export default class ESWeekdayParser extends AbstractParserWithWordBoundaryChecking {
|
|
5
|
+
innerPattern(): RegExp;
|
|
6
|
+
innerExtract(context: ParsingContext, match: RegExpMatchArray): ParsingComponents;
|
|
7
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { WEEKDAY_DICTIONARY } from "../constants";
|
|
2
|
+
import { matchAnyPattern } from "../../../utils/pattern";
|
|
3
|
+
import { AbstractParserWithWordBoundaryChecking } from "../../../common/parsers/AbstractParserWithWordBoundary";
|
|
4
|
+
import { createParsingComponentsAtWeekday } from "../../../common/calculation/weekdays";
|
|
5
|
+
const PATTERN = new RegExp("(?:(?:\\,|\\(|\\()\\s*)?" +
|
|
6
|
+
"(?:(este|esta|pasado|pr[oó]ximo)\\s*)?" +
|
|
7
|
+
`(${matchAnyPattern(WEEKDAY_DICTIONARY)})` +
|
|
8
|
+
"(?:\\s*(?:\\,|\\)|\\)))?" +
|
|
9
|
+
"(?:\\s*(este|esta|pasado|pr[óo]ximo)\\s*semana)?" +
|
|
10
|
+
"(?=\\W|\\d|$)", "i");
|
|
11
|
+
const PREFIX_GROUP = 1;
|
|
12
|
+
const WEEKDAY_GROUP = 2;
|
|
13
|
+
const POSTFIX_GROUP = 3;
|
|
14
|
+
export default class ESWeekdayParser extends AbstractParserWithWordBoundaryChecking {
|
|
15
|
+
innerPattern() {
|
|
16
|
+
return PATTERN;
|
|
17
|
+
}
|
|
18
|
+
innerExtract(context, match) {
|
|
19
|
+
const dayOfWeek = match[WEEKDAY_GROUP].toLowerCase();
|
|
20
|
+
const weekday = WEEKDAY_DICTIONARY[dayOfWeek];
|
|
21
|
+
if (weekday === undefined) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
const prefix = match[PREFIX_GROUP];
|
|
25
|
+
const postfix = match[POSTFIX_GROUP];
|
|
26
|
+
let norm = prefix || postfix || "";
|
|
27
|
+
norm = norm.toLowerCase();
|
|
28
|
+
let modifier = null;
|
|
29
|
+
if (norm == "pasado") {
|
|
30
|
+
modifier = "this";
|
|
31
|
+
}
|
|
32
|
+
else if (norm == "próximo" || norm == "proximo") {
|
|
33
|
+
modifier = "next";
|
|
34
|
+
}
|
|
35
|
+
else if (norm == "este") {
|
|
36
|
+
modifier = "this";
|
|
37
|
+
}
|
|
38
|
+
return createParsingComponentsAtWeekday(context.reference, weekday, modifier);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=ESWeekdayParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ESWeekdayParser.js","sourceRoot":"","sources":["../../../../../src/locales/es/parsers/ESWeekdayParser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,sCAAsC,EAAE,MAAM,wDAAwD,CAAC;AAChH,OAAO,EAAE,gCAAgC,EAAE,MAAM,sCAAsC,CAAC;AAExF,MAAM,OAAO,GAAG,IAAI,MAAM,CACtB,0BAA0B;IACtB,wCAAwC;IACxC,IAAI,eAAe,CAAC,kBAAkB,CAAC,GAAG;IAC1C,0BAA0B;IAC1B,kDAAkD;IAClD,eAAe,EACnB,GAAG,CACN,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,CAAC;AACvB,MAAM,aAAa,GAAG,CAAC,CAAC;AACxB,MAAM,aAAa,GAAG,CAAC,CAAC;AAExB,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,sCAAsC;IAC/E,YAAY;QACR,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,YAAY,CAAC,OAAuB,EAAE,KAAuB;QACzD,MAAM,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,WAAW,EAAE,CAAC;QACrD,MAAM,OAAO,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;QAC9C,IAAI,OAAO,KAAK,SAAS,EAAE;YACvB,OAAO,IAAI,CAAC;SACf;QAED,MAAM,MAAM,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;QACnC,MAAM,OAAO,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC;QACrC,IAAI,IAAI,GAAG,MAAM,IAAI,OAAO,IAAI,EAAE,CAAC;QACnC,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;QAE1B,IAAI,QAAQ,GAAG,IAAI,CAAC;QACpB,IAAI,IAAI,IAAI,QAAQ,EAAE;YAClB,QAAQ,GAAG,MAAM,CAAC;SACrB;aAAM,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,SAAS,EAAE;YAC/C,QAAQ,GAAG,MAAM,CAAC;SACrB;aAAM,IAAI,IAAI,IAAI,MAAM,EAAE;YACvB,QAAQ,GAAG,MAAM,CAAC;SACrB;QAED,OAAO,gCAAgC,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IAClF,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import AbstractMergeDateRangeRefiner from "../../../common/refiners/AbstractMergeDateRangeRefiner";
|
|
2
|
+
export default class ESMergeDateRangeRefiner extends AbstractMergeDateRangeRefiner {
|
|
3
|
+
patternBetween() {
|
|
4
|
+
return /^\s*(?:-)\s*$/i;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ESMergeDateRangeRefiner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ESMergeDateRangeRefiner.js","sourceRoot":"","sources":["../../../../../src/locales/es/refiners/ESMergeDateRangeRefiner.ts"],"names":[],"mappings":"AAIA,OAAO,6BAA6B,MAAM,wDAAwD,CAAC;AAMnG,MAAM,CAAC,OAAO,OAAO,uBAAwB,SAAQ,6BAA6B;IAC9E,cAAc;QACV,OAAO,gBAAgB,CAAC;IAC5B,CAAC;CACJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import AbstractMergeDateTimeRefiner from "../../../common/refiners/AbstractMergeDateTimeRefiner";
|
|
2
|
+
export default class ESMergeDateTimeRefiner extends AbstractMergeDateTimeRefiner {
|
|
3
|
+
patternBetween() {
|
|
4
|
+
return new RegExp("^\\s*(?:,|de|aslas|a)?\\s*$");
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ESMergeDateTimeRefiner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ESMergeDateTimeRefiner.js","sourceRoot":"","sources":["../../../../../src/locales/es/refiners/ESMergeDateTimeRefiner.ts"],"names":[],"mappings":"AAAA,OAAO,4BAA4B,MAAM,uDAAuD,CAAC;AAKjG,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,4BAA4B;IAC5E,cAAc;QACV,OAAO,IAAI,MAAM,CAAC,6BAA6B,CAAC,CAAC;IACrD,CAAC;CACJ"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OpUnitType, QUnitType } from "dayjs";
|
|
2
|
+
export declare const WEEKDAY_DICTIONARY: {
|
|
3
|
+
[word: string]: number;
|
|
4
|
+
};
|
|
5
|
+
export declare const MONTH_DICTIONARY: {
|
|
6
|
+
[word: string]: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const INTEGER_WORD_DICTIONARY: {
|
|
9
|
+
[word: string]: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const TIME_UNIT_DICTIONARY: {
|
|
12
|
+
[word: string]: OpUnitType | QUnitType;
|
|
13
|
+
};
|
|
14
|
+
export declare const NUMBER_PATTERN: string;
|
|
15
|
+
export declare function parseNumberPattern(match: string): number;
|
|
16
|
+
export declare const ORDINAL_NUMBER_PATTERN = "(?:[0-9]{1,2}(?:er)?)";
|
|
17
|
+
export declare function parseOrdinalNumberPattern(match: string): number;
|
|
18
|
+
export declare const YEAR_PATTERN = "(?:[1-9][0-9]{0,3}\\s*(?:AC|AD|p\\.\\s*C(?:hr?)?\\.\\s*n\\.)|[1-2][0-9]{3}|[5-9][0-9])";
|
|
19
|
+
export declare function parseYear(match: string): number;
|
|
20
|
+
export declare const TIME_UNITS_PATTERN: string;
|
|
21
|
+
export declare function parseTimeUnits(timeunitText: any): {
|
|
22
|
+
[c in OpUnitType | QUnitType]?: number;
|
|
23
|
+
};
|